Searched refs:res (Results 101 - 125 of 3728) sorted by relevance

1234567891011>>

/linux-master/drivers/gpu/drm/amd/display/dc/basics/
H A Dbw_fixed.c51 struct bw_fixed res; local
54 res.value = value << BW_FIXED_BITS_PER_FRACTIONAL_PART;
55 return res;
60 struct bw_fixed res; local
103 res.value = (int64_t)(res_value);
106 res.value = -res.value;
107 return res;
141 struct bw_fixed res; local
157 res
[all...]
/linux-master/arch/m68k/include/asm/
H A Duaccess.h31 #define __put_user_asm(inst, res, x, ptr, bwl, reg, err) \
46 : "+d" (res), "=m" (*(ptr)) \
49 #define __put_user_asm8(inst, res, x, ptr) \
69 : "+d" (res), "+a" (__pu_ptr) \
105 #define __get_user_asm(inst, res, x, ptr, type, bwl, reg, err) ({ \
121 : "+d" (res), "=&" #reg (__gu_val) \
126 #define __get_user_asm8(inst, res, x, ptr) \
151 : "+d" (res), "=&r" (__gu_val.l), \
190 #define ____constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3)\
225 : "+d" (res), "
237 unsigned long res = 0, tmp; local
318 unsigned long res = 0, tmp; local
[all...]
/linux-master/fs/ocfs2/dlm/
H A Ddlmunlock.c42 struct dlm_lock_resource *res,
47 struct dlm_lock_resource *res,
53 struct dlm_lock_resource *res,
76 * taken: res->spinlock and lock->spinlock taken and dropped
82 struct dlm_lock_resource *res,
98 BUG_ON(res->owner != dlm->node_num);
100 BUG_ON(res->owner == dlm->node_num);
109 "while waiting for an ast!", res->lockname.len,
110 res->lockname.name);
114 spin_lock(&res
81 dlmunlock_common(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, struct dlm_lockstatus *lksb, int flags, int *call_ast, int master_node) argument
265 dlm_commit_pending_unlock(struct dlm_lock_resource *res, struct dlm_lock *lock) argument
273 dlm_commit_pending_cancel(struct dlm_lock_resource *res, struct dlm_lock *lock) argument
281 dlmunlock_master(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, struct dlm_lockstatus *lksb, int flags, int *call_ast) argument
291 dlmunlock_remote(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, struct dlm_lockstatus *lksb, int flags, int *call_ast) argument
307 dlm_send_remote_unlock_request(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, struct dlm_lockstatus *lksb, int flags, u8 owner) argument
394 struct dlm_lock_resource *res = NULL; local
525 dlm_get_cancel_actions(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, struct dlm_lockstatus *lksb, int *actions) argument
557 dlm_get_unlock_actions(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, struct dlm_lockstatus *lksb, int *actions) argument
588 struct dlm_lock_resource *res; local
[all...]
H A Ddlmconvert.h12 struct dlm_lock_resource *res,
15 struct dlm_lock_resource *res,
/linux-master/drivers/pcmcia/
H A Drsrc_mgr.c34 struct resource *res = kzalloc(sizeof(*res), GFP_KERNEL); local
36 if (res) {
37 res->name = name;
38 res->start = start;
39 res->end = start + end - 1;
40 res->flags = flags;
42 return res;
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_afmt.c90 struct amdgpu_afmt_acr res; local
100 amdgpu_afmt_calc_cts(clock, &res.cts_32khz, &res.n_32khz, 32000);
101 amdgpu_afmt_calc_cts(clock, &res.cts_44_1khz, &res.n_44_1khz, 44100);
102 amdgpu_afmt_calc_cts(clock, &res.cts_48khz, &res.n_48khz, 48000);
104 return res;
/linux-master/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_system_manager.c38 struct ttm_resource **res)
40 *res = kzalloc(sizeof(**res), GFP_KERNEL);
41 if (!*res)
44 ttm_resource_init(bo, place, *res);
49 struct ttm_resource *res)
51 ttm_resource_fini(man, res);
52 kfree(res);
35 vmw_sys_man_alloc(struct ttm_resource_manager *man, struct ttm_buffer_object *bo, const struct ttm_place *place, struct ttm_resource **res) argument
48 vmw_sys_man_free(struct ttm_resource_manager *man, struct ttm_resource *res) argument
H A Dvmwgfx_context.c37 struct vmw_resource res; member in struct:vmw_user_context
45 static void vmw_user_context_free(struct vmw_resource *res);
49 static int vmw_gb_context_create(struct vmw_resource *res);
50 static int vmw_gb_context_bind(struct vmw_resource *res,
52 static int vmw_gb_context_unbind(struct vmw_resource *res,
55 static int vmw_gb_context_destroy(struct vmw_resource *res);
56 static int vmw_dx_context_create(struct vmw_resource *res);
57 static int vmw_dx_context_bind(struct vmw_resource *res,
59 static int vmw_dx_context_unbind(struct vmw_resource *res,
62 static int vmw_dx_context_destroy(struct vmw_resource *res);
124 struct vmw_resource *res; local
140 vmw_hw_context_destroy(struct vmw_resource *res) argument
180 vmw_gb_context_init(struct vmw_private *dev_priv, bool dx, struct vmw_resource *res, void (*res_free)(struct vmw_resource *res)) argument
241 vmw_context_init(struct vmw_private *dev_priv, struct vmw_resource *res, void (*res_free)(struct vmw_resource *res), bool dx) argument
298 vmw_gb_context_create(struct vmw_resource *res) argument
341 vmw_gb_context_bind(struct vmw_resource *res, struct ttm_validate_buffer *val_buf) argument
368 vmw_gb_context_unbind(struct vmw_resource *res, bool readback, struct ttm_validate_buffer *val_buf) argument
434 vmw_gb_context_destroy(struct vmw_resource *res) argument
465 vmw_dx_context_create(struct vmw_resource *res) argument
508 vmw_dx_context_bind(struct vmw_resource *res, struct ttm_validate_buffer *val_buf) argument
561 struct vmw_resource *res; local
577 vmw_dx_context_unbind(struct vmw_resource *res, bool readback, struct ttm_validate_buffer *val_buf) argument
650 vmw_dx_context_destroy(struct vmw_resource *res) argument
687 vmw_user_context_free(struct vmw_resource *res) argument
710 struct vmw_resource *res = &ctx->res; local
730 struct vmw_resource *res; local
[all...]
/linux-master/tools/perf/tests/shell/
H A Dstat+shadow_stat.sh38 res=`echo $num $cyc | awk '{printf "%.2f", $1 / $2}'`
39 if [ "$ipc" != "$res" ]; then
41 diff=`echo $ipc $res $THRESHOLD | \
45 echo "IPC is different: $res != $ipc ($num / $cyc)"
80 res=`echo $num $cyc | awk '{printf "%.2f", $1 / $2}'`
81 if [ "$ipc" != "$res" ]; then
83 diff=`echo $ipc $res $THRESHOLD | \
87 echo "IPC is different: $res != $ipc ($num / $cyc)"
/linux-master/arch/loongarch/vdso/
H A Dvgettimeofday.c20 int __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res) argument
22 return __cvdso_clock_getres(clock_id, res);
/linux-master/include/rdma/
H A Drestrack.h126 * @res: resource entry
128 static inline bool rdma_is_kernel_res(const struct rdma_restrack_entry *res) argument
130 return !res->user;
135 * @res: resource entry
137 int __must_check rdma_restrack_get(struct rdma_restrack_entry *res);
141 * @res: resource entry
143 int rdma_restrack_put(struct rdma_restrack_entry *res);
166 * @res: resource entry
171 static inline void rdma_restrack_no_track(struct rdma_restrack_entry *res) argument
173 res
175 rdma_restrack_is_tracked(struct rdma_restrack_entry *res) argument
[all...]
/linux-master/drivers/acpi/
H A Dresource.c23 static inline bool acpi_iospace_resource_valid(struct resource *res) argument
26 return res->end < 0x10003;
36 acpi_iospace_resource_valid(struct resource *res) { return true; } argument
72 static void acpi_dev_memresource_flags(struct resource *res, u64 len, argument
75 res->flags = IORESOURCE_MEM;
77 if (!acpi_dev_resource_len_valid(res->start, res->end, len, false))
78 res->flags |= IORESOURCE_DISABLED | IORESOURCE_UNSET;
81 res->flags |= IORESOURCE_MEM_WRITEABLE;
84 static void acpi_dev_get_memresource(struct resource *res, u6 argument
106 acpi_dev_resource_memory(struct acpi_resource *ares, struct resource *res) argument
140 acpi_dev_ioresource_flags(struct resource *res, u64 len, u8 io_decode, u8 translation_type) argument
157 acpi_dev_get_ioresource(struct resource *res, u64 start, u64 len, u8 io_decode) argument
179 acpi_dev_resource_io(struct acpi_resource *ares, struct resource *res) argument
214 struct resource *res = &win->res; local
716 acpi_dev_get_irqresource(struct resource *res, u32 gsi, u8 triggering, u8 polarity, u8 shareable, u8 wake_capable, bool check_override) argument
783 acpi_dev_resource_interrupt(struct acpi_resource *ares, int index, struct resource *res) argument
868 struct resource *res = &win.res; local
967 struct resource *res = &win.res; local
1074 acpi_dev_consumes_res(struct acpi_device *adev, struct resource *res) argument
1100 struct resource *res = context; local
1123 acpi_resource_consumer(struct resource *res) argument
[all...]
/linux-master/arch/mips/pci/
H A Dops-sni.c43 int res; local
45 if ((res = set_config_address(bus->number, devfn, reg)))
46 return res;
66 int res; local
68 if ((res = set_config_address(bus->number, devfn, reg)))
69 return res;
103 int res; local
113 if ((res = pcit_set_config_address(0, devfn, 0)))
114 return res;
120 if ((res
140 int res; local
[all...]
/linux-master/drivers/net/ethernet/cadence/
H A Dmacb_pci.c34 struct resource res[2]; local
46 memset(res, 0x00, sizeof(struct resource) * ARRAY_SIZE(res));
47 res[0].start = pci_resource_start(pdev, 0);
48 res[0].end = pci_resource_end(pdev, 0);
49 res[0].name = PCI_DRIVER_NAME;
50 res[0].flags = IORESOURCE_MEM;
51 res[1].start = pci_irq_vector(pdev, 0);
52 res[1].name = PCI_DRIVER_NAME;
53 res[
[all...]
/linux-master/arch/m68k/atari/
H A Dstram.c156 struct resource *res; local
164 res = kzalloc(sizeof(struct resource), GFP_KERNEL);
165 if (!res)
168 res->name = owner;
169 error = allocate_resource(&stram_pool, res, size, 0, UINT_MAX,
174 kfree(res);
178 pr_debug("atari_stram_alloc: returning %pR\n", res);
179 return atari_stram_to_virt(res->start);
187 struct resource *res; local
190 res
[all...]
/linux-master/arch/arm64/hyperv/
H A Dhv_core.c26 struct arm_smccc_res res; local
34 input_address, output_address, &res);
35 return res.a0;
47 struct arm_smccc_res res; local
52 arm_smccc_1_1_hvc(HV_FUNC_ID, control, input, &res);
53 return res.a0;
62 struct arm_smccc_res res; local
73 &res);
80 BUG_ON(!hv_result_success(res.a0));
94 struct arm_smccc_1_2_regs res; local
[all...]
/linux-master/drivers/watchdog/
H A Darm_smc_wdt.c35 unsigned long arg, struct arm_smccc_res *res)
39 if (!res)
40 res = &local_res;
43 0, 0, 0, 0, res);
45 if (res->a0 == PSCI_RET_NOT_SUPPORTED)
47 if (res->a0 == PSCI_RET_INVALID_PARAMS)
49 if (res->a0 != PSCI_RET_SUCCESS)
61 struct arm_smccc_res res; local
63 smcwd_call(wdd, SMCWD_GET_TIMELEFT, 0, &res);
64 if (res
34 smcwd_call(struct watchdog_device *wdd, enum smcwd_call call, unsigned long arg, struct arm_smccc_res *res) argument
71 int res; local
115 struct arm_smccc_res res; local
[all...]
/linux-master/drivers/dma/ti/
H A Dk3-udma-private.c100 #define XUDMA_GET_PUT_RESOURCE(res) \
101 struct udma_##res *xudma_##res##_get(struct udma_dev *ud, int id) \
103 return __udma_reserve_##res(ud, UDMA_TP_NORMAL, id); \
105 EXPORT_SYMBOL(xudma_##res##_get); \
107 void xudma_##res##_put(struct udma_dev *ud, struct udma_##res *p) \
109 clear_bit(p->id, ud->res##_map); \
111 EXPORT_SYMBOL(xudma_##res##_put)
133 #define XUDMA_GET_RESOURCE_ID(res) \
[all...]
/linux-master/arch/arm64/kvm/hyp/nvhe/
H A Dffa.c71 static void ffa_to_smccc_error(struct arm_smccc_res *res, u64 ffa_errno) argument
73 *res = (struct arm_smccc_res) {
79 static void ffa_to_smccc_res_prop(struct arm_smccc_res *res, int ret, u64 prop) argument
82 *res = (struct arm_smccc_res) { .a0 = FFA_SUCCESS,
85 ffa_to_smccc_error(res, ret);
89 static void ffa_to_smccc_res(struct arm_smccc_res *res, int ret) argument
91 ffa_to_smccc_res_prop(res, ret, 0);
95 struct arm_smccc_res *res)
97 cpu_reg(ctxt, 0) = res->a0;
98 cpu_reg(ctxt, 1) = res
94 ffa_set_retval(struct kvm_cpu_context *ctxt, struct arm_smccc_res *res) argument
113 struct arm_smccc_res res; local
127 struct arm_smccc_res res; local
137 ffa_mem_frag_tx(struct arm_smccc_res *res, u32 handle_lo, u32 handle_hi, u32 fraglen, u32 endpoint_id) argument
146 ffa_mem_frag_rx(struct arm_smccc_res *res, u32 handle_lo, u32 handle_hi, u32 fragoff) argument
155 ffa_mem_xfer(struct arm_smccc_res *res, u64 func_id, u32 len, u32 fraglen) argument
163 ffa_mem_reclaim(struct arm_smccc_res *res, u32 handle_lo, u32 handle_hi, u32 flags) argument
172 ffa_retrieve_req(struct arm_smccc_res *res, u32 len) argument
180 do_ffa_rxtx_map(struct arm_smccc_res *res, struct kvm_cpu_context *ctxt) argument
259 do_ffa_rxtx_unmap(struct arm_smccc_res *res, struct kvm_cpu_context *ctxt) argument
360 do_ffa_mem_frag_tx(struct arm_smccc_res *res, struct kvm_cpu_context *ctxt) argument
418 do_ffa_mem_xfer(const u64 func_id, struct arm_smccc_res *res, struct kvm_cpu_context *ctxt) argument
504 do_ffa_mem_reclaim(struct arm_smccc_res *res, struct kvm_cpu_context *ctxt) argument
613 do_ffa_features(struct arm_smccc_res *res, struct kvm_cpu_context *ctxt) argument
644 struct arm_smccc_res res; local
701 struct arm_smccc_res res; local
[all...]
/linux-master/mm/
H A Ddebug_page_alloc.c23 unsigned long res; local
25 if (kstrtoul(buf, 10, &res) < 0 || res > MAX_PAGE_ORDER / 2) {
29 _debug_guardpage_minorder = res;
30 pr_info("Setting debug_guardpage_minorder to %lu\n", res);
/linux-master/fs/hfsplus/
H A Dextents.c91 int res; local
99 res = hfs_brec_find(fd, hfs_find_rec_by_key);
101 if (res != -ENOENT)
102 return res;
104 res = hfs_bmap_reserve(fd->tree, fd->tree->depth + 1);
105 if (res)
106 return res;
111 if (res)
112 return res;
131 int res local
147 int res; local
160 int res; local
181 int res; local
210 int res; local
231 int res = -EIO; local
402 int res, i; local
446 int res; local
549 int res; local
[all...]
/linux-master/drivers/gpu/drm/ttm/
H A Dttm_resource.c82 ttm_lru_bulk_move_pos(struct ttm_lru_bulk_move *bulk, struct ttm_resource *res) argument
84 return &bulk->pos[res->mem_type][res->bo->priority];
89 struct ttm_resource *res)
91 if (pos->last != res) {
92 if (pos->first == res)
93 pos->first = list_next_entry(res, lru);
94 list_move(&res->lru, &pos->last->lru);
95 pos->last = res;
101 struct ttm_resource *res)
88 ttm_lru_bulk_move_pos_tail(struct ttm_lru_bulk_move_pos *pos, struct ttm_resource *res) argument
100 ttm_lru_bulk_move_add(struct ttm_lru_bulk_move *bulk, struct ttm_resource *res) argument
115 ttm_lru_bulk_move_del(struct ttm_lru_bulk_move *bulk, struct ttm_resource *res) argument
134 ttm_resource_add_bulk_move(struct ttm_resource *res, struct ttm_buffer_object *bo) argument
142 ttm_resource_del_bulk_move(struct ttm_resource *res, struct ttm_buffer_object *bo) argument
150 ttm_resource_move_to_lru_tail(struct ttm_resource *res) argument
181 ttm_resource_init(struct ttm_buffer_object *bo, const struct ttm_place *place, struct ttm_resource *res) argument
218 ttm_resource_fini(struct ttm_resource_manager *man, struct ttm_resource *res) argument
249 ttm_resource_free(struct ttm_buffer_object *bo, struct ttm_resource **res) argument
278 ttm_resource_intersects(struct ttm_device *bdev, struct ttm_resource *res, const struct ttm_place *place, size_t size) argument
304 ttm_resource_compatible(struct ttm_resource *res, struct ttm_placement *placement, bool evicting) argument
340 ttm_resource_set_bo(struct ttm_resource *res, struct ttm_buffer_object *bo) argument
475 struct ttm_resource *res; local
497 ttm_resource_manager_next(struct ttm_resource_manager *man, struct ttm_resource_cursor *cursor, struct ttm_resource *res) argument
[all...]
/linux-master/drivers/xen/
H A Dunpopulated-alloc.c27 int __weak __init arch_xen_unpopulated_init(struct resource **res) argument
29 *res = &iomem_resource;
37 struct resource *res, *tmp_res = NULL; local
43 res = kzalloc(sizeof(*res), GFP_KERNEL);
44 if (!res)
47 res->name = "Xen scratch";
48 res->flags = IORESOURCE_MEM | IORESOURCE_BUSY;
52 ret = allocate_resource(target_resource, res,
71 tmp_res->name = res
[all...]
/linux-master/arch/arm/kernel/
H A Dswp_emulate.c35 #define __user_swpX_asm(data, addr, res, temp, B) \
54 : "=&r" (res), "+r" (data), "=&r" (temp) \
58 #define __user_swp_asm(data, addr, res, temp) \
59 __user_swpX_asm(data, addr, res, temp, "")
60 #define __user_swpb_asm(data, addr, res, temp) \
61 __user_swpX_asm(data, addr, res, temp, "b")
120 unsigned int res = 0; local
134 __user_swpb_asm(*data, address, res, temp);
136 __user_swp_asm(*data, address, res, temp);
139 if (likely(res !
163 unsigned int res = 0; local
[all...]
/linux-master/drivers/rtc/
H A Drtc-ds1343.c88 int res; local
90 res = regmap_read(priv->map, DS1343_CONTROL_REG, &data);
91 if (res)
92 return res;
108 int res; local
115 res = regmap_update_bits(priv->map, DS1343_CONTROL_REG,
117 if (res)
118 return res;
146 int res, data; local
149 res
202 int res; local
241 int res; local
273 int res = 0; local
313 int res = 0; local
350 int res; local
[all...]

Completed in 190 milliseconds

1234567891011>>