Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 3053) sorted by relevance

12345678910>>...123

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Drx_res.c54 err = mlx5e_rss_init(rss, res->mdev, inner_ft_support, res->drop_rqn, in mlx5e_rx_res_rss_init_def()
61 res->rss[0] = rss; in mlx5e_rx_res_rss_init_def()
77 if (!res->rss[i]) in mlx5e_rx_res_rss_init()
93 mlx5e_rss_enable(rss, res->rss_rqns, res->rss_nch); in mlx5e_rx_res_rss_init()
95 res->rss[i] = rss; in mlx5e_rx_res_rss_init()
168 mlx5e_rss_enable(rss, res->rss_rqns, res->rss_nch); in mlx5e_rx_res_rss_enable()
292 res->channels = kvcalloc(res->max_nch, sizeof(*res->channels), GFP_KERNEL); in mlx5e_rx_res_channels_init()
300 res->mdev, false, res->drop_rqn); in mlx5e_rx_res_channels_init()
330 res->mdev, false, res->drop_rqn); in mlx5e_rx_res_channels_init()
394 err = mlx5e_rqt_init_direct(&res->ptp.rqt, res->mdev, false, res->drop_rqn); in mlx5e_rx_res_ptp_init()
[all …]
/linux/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_resource.c46 res->used_prio = (res->res_dirty) ? res->func->dirty_prio : in vmw_resource_mob_attach()
134 res->func->unbind(res, false, &val_buf); in vmw_resource_release()
139 res->func->dirty_free(res); in vmw_resource_release()
150 res->hw_destroy(res); in vmw_resource_release()
155 res->res_free(res); in vmw_resource_release()
424 if (res->backup->dirty && !res->dirty) { in vmw_resource_do_validate()
428 } else if (!res->backup->dirty && res->dirty) { in vmw_resource_do_validate()
441 (res->backup_offset + res->backup_size, in vmw_resource_do_validate()
517 if (!res->func->may_evict || res->id == -1 || res->pin_count) in vmw_resource_unreserve()
793 (void) res->func->unbind(res, res->res_dirty, &val_buf); in vmw_resource_unbind_list()
[all …]
A Dvmwgfx_context.c133 if (res) in vmw_context_cotables_unref()
141 container_of(res, struct vmw_user_context, res); in vmw_hw_context_destroy()
155 (void) res->func->destroy(res); in vmw_hw_context_destroy()
185 container_of(res, struct vmw_user_context, res); in vmw_gb_context_init()
374 container_of(res, struct vmw_user_context, res); in vmw_gb_context_unbind()
564 if (res) in vmw_dx_context_scrub_cotables()
565 res = vmw_resource_reference_unless_doomed(res); in vmw_dx_context_scrub_cotables()
567 if (!res) in vmw_dx_context_scrub_cotables()
583 container_of(res, struct vmw_user_context, res); in vmw_dx_context_unbind()
711 struct vmw_resource *res = &ctx->res; in vmw_user_context_base_release() local
[all …]
A Dvmwgfx_shader.c135 return container_of(res, struct vmw_shader, res); in vmw_res_to_shader()
147 return container_of(res, struct vmw_dx_shader, res); in vmw_res_to_dx_shader()
153 (void) res->func->destroy(res); in vmw_hw_shader_destroy()
155 res->id = -1; in vmw_hw_shader_destroy()
179 kfree(res); in vmw_gb_shader_init()
373 res->id = -1; in vmw_dx_shader_commit_notify()
495 res->id = -1; in vmw_dx_shader_scrub()
624 res = &shader->res; in vmw_dx_shader_add()
671 container_of(res, struct vmw_user_shader, shader.res); in vmw_user_shader_free()
754 res = &ushader->shader.res; in vmw_user_shader_alloc()
[all …]
A Dvmwgfx_cotable.c51 struct vmw_resource res; member
140 return container_of(res, struct vmw_cotable, res); in vmw_cotable()
153 res->id = -1; in vmw_cotable_destroy()
291 res->id = -1; in vmw_cotable_scrub()
462 res->backup = buf; in vmw_cotable_resize()
560 kfree(res); in vmw_cotable_free()
604 vcotbl->res.id = type; in vmw_cotable_alloc()
610 vcotbl->res.backup_size = PFN_ALIGN(vcotbl->res.backup_size); in vmw_cotable_alloc()
620 return &vcotbl->res; in vmw_cotable_alloc()
647 res->id = -1; in vmw_cotable_notify()
[all …]
/linux/drivers/infiniband/core/
A Drestrack.c29 if (!dev->res) in rdma_restrack_init()
32 rt = dev->res; in rdma_restrack_init()
131 return container_of(res, struct ib_pd, res)->device; in res_to_dev()
133 return container_of(res, struct ib_cq, res)->device; in res_to_dev()
135 return container_of(res, struct ib_qp, res)->device; in res_to_dev()
140 return container_of(res, struct ib_mr, res)->device; in res_to_dev()
146 return container_of(res, struct ib_srq, res)->device; in res_to_dev()
235 rt = &dev->res[res->type]; in rdma_restrack_add()
247 ret = xa_insert(&rt->xa, res->id, res, GFP_KERNEL); in rdma_restrack_add()
292 if (!res || !rdma_restrack_get(res)) in rdma_restrack_get_byid()
[all …]
/linux/fs/ocfs2/dlm/
A Ddlmthread.c115 dlm->name, res->lockname.len, res->lockname.name); in __dlm_lockres_calc_usage()
124 dlm->name, res->lockname.len, res->lockname.name); in __dlm_lockres_calc_usage()
158 dlm->name, res->lockname.len, res->lockname.name); in __dlm_do_purge_lockres()
166 dlm->name, res->lockname.len, res->lockname.name); in __dlm_do_purge_lockres()
202 res->lockname.len, res->lockname.name, master); in dlm_purge_lockres()
207 dlm->name, res->lockname.len, res->lockname.name); in dlm_purge_lockres()
242 dlm->name, res->lockname.len, res->lockname.name); in dlm_purge_lockres()
261 res->lockname.len, res->lockname.name); in dlm_purge_lockres()
362 res->lockname.len, res->lockname.name); in dlm_shuffle_lists()
499 if (res) { in dlm_kick_thread()
[all …]
A Ddlmmaster.c491 res->lockname.len, res->lockname.name, in dlm_lockres_release()
575 memset(res->refmap, 0, sizeof(res->refmap)); in dlm_init_lockres()
585 if (!res) in dlm_new_lockres()
596 if (res) in dlm_new_lockres()
629 res->lockname.len, res->lockname.name, res->inflight_locks, in __dlm_lockres_grab_inflight_ref()
650 res->lockname.len, res->lockname.name, res->inflight_locks, in dlm_lockres_drop_inflight_ref()
974 res->lockname.name, res->owner); in dlm_get_lock_resource()
1019 res->lockname.len, res->lockname.name, res->owner); in dlm_wait_for_lock_mastery()
1109 res->lockname.len, res->lockname.name); in dlm_wait_for_lock_mastery()
1121 res->lockname.len, res->lockname.name, m); in dlm_wait_for_lock_mastery()
[all …]
A Ddlmconvert.c77 wake_up(&res->wq); in dlmconvert_master()
211 "%d to %d...\n", res->lockname.len, res->lockname.name, in __dlmconvert_master()
284 res->lockname.len, res->lockname.name, in dlmconvert_remote()
331 dlm->name, res->lockname.len, res->lockname.name); in dlmconvert_remote()
341 wake_up(&res->wq); in dlmconvert_remote()
364 mlog(0, "%.*s\n", res->lockname.len, res->lockname.name); in dlm_send_remote_convert_request()
403 res->owner); in dlm_send_remote_convert_request()
470 if (!res) { in dlm_convert_lock_handler()
528 wake_up(&res->wq); in dlm_convert_lock_handler()
549 if (res) in dlm_convert_lock_handler()
[all …]
A Ddlmlock.c166 wake_up(&res->wq); in dlmlock_master()
271 wake_up(&res->wq); in dlmlock_remote()
359 dlm_lockres_get(res); in dlm_lock_attach_lockres()
360 lock->lockres = res; in dlm_lock_attach_lockres()
368 res = lock->lockres; in dlm_lock_detach_lockres()
369 if (res) { in dlm_lock_detach_lockres()
492 if (!res) { in dlm_create_lock_handler()
514 if (res) in dlm_create_lock_handler()
594 if (!res) { in dlmlock()
662 if (!res) { in dlmlock()
[all …]
A Ddlmunlock.c158 owner = res->owner; in dlmunlock_common()
232 wake_up(&res->wq); in dlmunlock_common()
321 mlog(0, "%.*s\n", res->lockname.len, res->lockname.name); in dlm_send_remote_unlock_request()
329 res->lockname.len, res->lockname.name); in dlm_send_remote_unlock_request()
430 if (!res) { in dlm_unlock_lock_handler()
439 queue=&res->granted; in dlm_unlock_lock_handler()
517 if (res) in dlm_unlock_lock_handler()
617 res = lock->lockres; in dlmunlock()
618 BUG_ON(!res); in dlmunlock()
619 dlm_lockres_get(res); in dlmunlock()
[all …]
/linux/drivers/pci/controller/dwc/
A Dpcie-qcom.c250 struct qcom_pcie_resources_2_1_0 *res = &pcie->res.v2_1_0; in qcom_pcie_get_resources_2_1_0() local
305 struct qcom_pcie_resources_2_1_0 *res = &pcie->res.v2_1_0; in qcom_pcie_deinit_2_1_0() local
322 struct qcom_pcie_resources_2_1_0 *res = &pcie->res.v2_1_0; in qcom_pcie_init_2_1_0() local
726 ret = devm_clk_bulk_get(dev, res->num_clks, res->clks); in qcom_pcie_get_resources_2_4_0()
806 clk_bulk_disable_unprepare(res->num_clks, res->clks); in qcom_pcie_deinit_2_4_0()
935 ret = clk_bulk_prepare_enable(res->num_clks, res->clks); in qcom_pcie_init_2_4_0()
1175 ret = devm_clk_bulk_get(dev, res->num_clks, res->clks); in qcom_pcie_get_resources_2_7_0()
1213 clk_set_parent(res->pipe_clk_src, res->ref_clk_src); in qcom_pcie_init_2_7_0()
1267 clk_bulk_disable_unprepare(res->num_clks, res->clks); in qcom_pcie_init_2_7_0()
1278 clk_bulk_disable_unprepare(res->num_clks, res->clks); in qcom_pcie_deinit_2_7_0()
[all …]
/linux/tools/lib/
A Dhweight.c21 res = (res & 0x33333333) + ((res >> 2) & 0x33333333); in __sw_hweight32()
22 res = (res + (res >> 4)) & 0x0F0F0F0F; in __sw_hweight32()
23 res = res + (res >> 8); in __sw_hweight32()
31 res = (res & 0x3333) + ((res >> 2) & 0x3333); in __sw_hweight16()
32 res = (res + (res >> 4)) & 0x0F0F; in __sw_hweight16()
33 return (res + (res >> 8)) & 0x00FF; in __sw_hweight16()
39 res = (res & 0x33) + ((res >> 2) & 0x33); in __sw_hweight8()
40 return (res + (res >> 4)) & 0x0F; in __sw_hweight8()
57 res = (res + (res >> 4)) & 0x0F0F0F0F0F0F0F0Ful; in __sw_hweight64()
58 res = res + (res >> 8); in __sw_hweight64()
[all …]
/linux/lib/
A Dhweight.c22 res = (res & 0x33333333) + ((res >> 2) & 0x33333333); in __sw_hweight32()
23 res = (res + (res >> 4)) & 0x0F0F0F0F; in __sw_hweight32()
24 res = res + (res >> 8); in __sw_hweight32()
33 res = (res & 0x3333) + ((res >> 2) & 0x3333); in __sw_hweight16()
34 res = (res + (res >> 4)) & 0x0F0F; in __sw_hweight16()
35 return (res + (res >> 8)) & 0x00FF; in __sw_hweight16()
42 res = (res & 0x33) + ((res >> 2) & 0x33); in __sw_hweight8()
43 return (res + (res >> 4)) & 0x0F; in __sw_hweight8()
61 res = (res + (res >> 4)) & 0x0F0F0F0F0F0F0F0Ful; in __sw_hweight64()
62 res = res + (res >> 8); in __sw_hweight64()
[all …]
/linux/drivers/media/platform/omap3isp/
A Dispresizer.c915 resizer_set_ratio(res, &res->ratio); in resizer_set_crop_params()
927 res->crop_offset = (res->crop.active.top * input->width + in resizer_set_crop_params()
933 resizer_set_start(res, (res->crop_offset / 2) & 0xf, 0); in resizer_set_crop_params()
940 res->addr_base + (res->crop_offset & ~0x1f)); in resizer_set_crop_params()
947 resizer_set_start(res, res->crop.active.left * 2, in resizer_set_crop_params()
955 resizer_set_input_size(res, res->crop.active.width, in resizer_set_crop_params()
964 resizer_set_source(res, res->input); in resizer_configure()
1539 res->crop.active = res->crop.request; in resizer_set_format()
1540 resizer_calc_ratios(res, &res->crop.active, format, in resizer_set_format()
1750 res->video_in.isp = to_isp_device(res); in resizer_init_entities()
[all …]
/linux/drivers/pnp/
A Dmanager.c62 res->end = res->start + rule->size - 1; in pnp_assign_port()
66 res->end = res->start + rule->size - 1; in pnp_assign_port()
77 pnp_add_io_resource(dev, res->start, res->end, res->flags); in pnp_assign_port()
113 res->end = res->start + rule->size - 1; in pnp_assign_mem()
117 res->end = res->start + rule->size - 1; in pnp_assign_mem()
128 pnp_add_mem_resource(dev, res->start, res->end, res->flags); in pnp_assign_mem()
145 idx, (int) res->start, res->flags); in pnp_assign_irq()
163 res->end = res->start; in pnp_assign_irq()
168 res->start = res->end = xtab[i]; in pnp_assign_irq()
204 idx, (int) res->start, res->flags); in pnp_assign_dma()
[all …]
/linux/drivers/ps3/
A Dps3av_cmd.c145 int res; in ps3av_cmd_init() local
188 if (res) in ps3av_cmd_init()
196 int res; in ps3av_cmd_fin() local
207 if (res) in ps3av_cmd_fin()
235 if (res) in ps3av_cmd_av_video_mute()
243 int res; in ps3av_cmd_av_video_disable_sig() local
256 if (res) in ps3av_cmd_av_video_disable_sig()
266 int res; in ps3av_cmd_av_tv_mute() local
279 if (res) in ps3av_cmd_av_tv_mute()
288 int res; in ps3av_cmd_enable_event() local
[all …]
/linux/arch/mips/include/asm/
A Dunaligned-emul.h764 #define LoadHWUE(addr, value, res) _LoadHWU(addr, value, res, user) argument
765 #define LoadWU(addr, value, res) _LoadWU(addr, value, res, kernel) argument
766 #define LoadWUE(addr, value, res) _LoadWU(addr, value, res, user) argument
767 #define LoadHW(addr, value, res) _LoadHW(addr, value, res, kernel) argument
768 #define LoadHWE(addr, value, res) _LoadHW(addr, value, res, user) argument
769 #define LoadW(addr, value, res) _LoadW(addr, value, res, kernel) argument
770 #define LoadWE(addr, value, res) _LoadW(addr, value, res, user) argument
771 #define LoadDW(addr, value, res) _LoadDW(addr, value, res) argument
775 #define StoreW(addr, value, res) _StoreW(addr, value, res, kernel) argument
776 #define StoreWE(addr, value, res) _StoreW(addr, value, res, user) argument
[all …]
/linux/drivers/pci/
A Dsetup-res.c42 if (!res->flags) in pci_std_update_resource()
206 end = res->end; in pci_revert_fw_address()
208 res->end = res->start + size - 1; in pci_revert_fw_address()
220 resno, res); in pci_revert_fw_address()
226 res->end = end; in pci_revert_fw_address()
323 resno, res); in pci_assign_resource()
370 resno, res); in pci_reassign_resource()
404 res->end = resource_size(res) - 1; in pci_release_resource()
405 res->start = 0; in pci_release_resource()
446 res->end = res->start + pci_rebar_size_to_bytes(size) - 1; in pci_resize_resource()
[all …]
/linux/include/linux/
A Dkstrtox.h40 return _kstrtoul(s, base, res); in kstrtoul()
66 return kstrtoll(s, base, (long long *)res); in kstrtol()
68 return _kstrtol(s, base, res); in kstrtol()
76 return kstrtoull(s, base, res); in kstrtou64()
81 return kstrtoll(s, base, res); in kstrtos64()
86 return kstrtouint(s, base, res); in kstrtou32()
91 return kstrtoint(s, base, res); in kstrtos32()
114 return kstrtoull_from_user(s, count, base, res); in kstrtou64_from_user()
119 return kstrtoll_from_user(s, count, base, res); in kstrtos64_from_user()
129 return kstrtoint_from_user(s, count, base, res); in kstrtos32_from_user()
[all …]
/linux/drivers/pci/hotplug/
A Dcpqphp_sysfs.c36 res = ctrl->mem_head; in show_ctrl()
39 res = res->next; in show_ctrl()
46 res = res->next; in show_ctrl()
50 res = ctrl->io_head; in show_ctrl()
53 res = res->next; in show_ctrl()
57 res = ctrl->bus_head; in show_ctrl()
60 res = res->next; in show_ctrl()
85 res = res->next; in show_dev()
92 res = res->next; in show_dev()
99 res = res->next; in show_dev()
[all …]
A Dibmphp_res.c468 res = res->next; in update_resources()
481 res = res->next; in update_resources()
525 res = res->next; in fix_me()
1056 res->end = res->start + res->len - 1; in ibmphp_check_resource()
1095 res->end = res->start + res->len - 1; in ibmphp_check_resource()
1135 res->end = res->start + res->len - 1; in ibmphp_check_resource()
1172 res->end = res->start + res->len - 1; in ibmphp_check_resource()
1233 res->end = res->start + res->len - 1; in ibmphp_check_resource()
1248 res->end = res->start + res->len - 1; in ibmphp_check_resource()
1314 res->end = res->start + res->len - 1; in ibmphp_check_resource()
[all …]
/linux/drivers/pcmcia/
A Drsrc_iodyn.c78 kfree(res); in __iodyn_find_io_region()
79 res = NULL; in __iodyn_find_io_region()
81 return res; in __iodyn_find_io_region()
106 struct resource *res = s->io[i].res; in iodyn_find_io() local
109 if (res && (res->flags & IORESOURCE_BITS) != in iodyn_find_io()
113 if (!res) { in iodyn_find_io()
117 res = s->io[i].res = __iodyn_find_io_region(s, *base, in iodyn_find_io()
119 if (!res) in iodyn_find_io()
127 *parent = res; in iodyn_find_io()
134 if (adjust_resource(s->io[i].res, res->start, in iodyn_find_io()
[all …]
/linux/tools/testing/selftests/futex/functional/
A Dfutex_waitv.c40 int res; in waiterfn() local
49 if (res < 0) { in waiterfn()
103 if (res != 1) { in main()
105 res ? errno : res, in main()
136 if (res != 1) { in main()
138 res ? errno : res, in main()
159 res ? errno : res, in main()
178 res ? errno : res, in main()
196 res ? errno : res, in main()
212 res ? errno : res, in main()
[all …]
/linux/drivers/thunderbolt/
A Deeprom.c46 if (res) in tb_eeprom_active()
51 if (res) in tb_eeprom_active()
58 if (res) in tb_eeprom_active()
74 int res; in tb_eeprom_transfer() local
77 if (res) in tb_eeprom_transfer()
82 if (res) in tb_eeprom_transfer()
86 if (res) in tb_eeprom_transfer()
101 if (res) in tb_eeprom_out()
121 if (res) in tb_eeprom_in()
140 int res; in tb_eeprom_get_drom_offset() local
[all …]

Completed in 123 milliseconds

12345678910>>...123