Home
last modified time | relevance | path

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

12345678910>>...135

/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/
Drx_res.c37 static int mlx5e_rx_res_rss_init_def(struct mlx5e_rx_res *res, in mlx5e_rx_res_rss_init_def() argument
40 bool inner_ft_support = res->features & MLX5E_RX_RES_FEATURE_INNER_FT; in mlx5e_rx_res_rss_init_def()
44 if (WARN_ON(res->rss[0])) in mlx5e_rx_res_rss_init_def()
51 err = mlx5e_rss_init(rss, res->mdev, inner_ft_support, res->drop_rqn, in mlx5e_rx_res_rss_init_def()
52 &res->pkt_merge_param); in mlx5e_rx_res_rss_init_def()
58 res->rss[0] = rss; in mlx5e_rx_res_rss_init_def()
67 int mlx5e_rx_res_rss_init(struct mlx5e_rx_res *res, u32 *rss_idx, unsigned int init_nch) in mlx5e_rx_res_rss_init() argument
69 bool inner_ft_support = res->features & MLX5E_RX_RES_FEATURE_INNER_FT; in mlx5e_rx_res_rss_init()
74 if (!res->rss[i]) in mlx5e_rx_res_rss_init()
84 err = mlx5e_rss_init_no_tirs(rss, res->mdev, inner_ft_support, res->drop_rqn); in mlx5e_rx_res_rss_init()
[all …]
/linux-6.6.21/tools/lib/
Dhweight.c20 unsigned int res = w - ((w >> 1) & 0x55555555); in __sw_hweight32()
21 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()
24 return (res + (res >> 16)) & 0x000000FF; in __sw_hweight32()
30 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16() local
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()
38 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8() local
[all …]
/linux-6.6.21/drivers/gpu/drm/vmwgfx/
Dvmwgfx_resource.c41 void vmw_resource_mob_attach(struct vmw_resource *res) in vmw_resource_mob_attach() argument
43 struct vmw_bo *gbo = res->guest_memory_bo; in vmw_resource_mob_attach()
47 res->used_prio = (res->res_dirty) ? res->func->dirty_prio : in vmw_resource_mob_attach()
48 res->func->prio; in vmw_resource_mob_attach()
55 new = (res->guest_memory_offset < this->guest_memory_offset) ? in vmw_resource_mob_attach()
59 rb_link_node(&res->mob_node, parent, new); in vmw_resource_mob_attach()
60 rb_insert_color(&res->mob_node, &gbo->res_tree); in vmw_resource_mob_attach()
62 vmw_bo_prio_add(gbo, res->used_prio); in vmw_resource_mob_attach()
69 void vmw_resource_mob_detach(struct vmw_resource *res) in vmw_resource_mob_detach() argument
71 struct vmw_bo *gbo = res->guest_memory_bo; in vmw_resource_mob_detach()
[all …]
Dvmwgfx_context.c37 struct vmw_resource res; member
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);
[all …]
Dvmwgfx_shader.c36 struct vmw_resource res; member
49 struct vmw_resource res; member
57 static void vmw_user_shader_free(struct vmw_resource *res);
61 static int vmw_gb_shader_create(struct vmw_resource *res);
62 static int vmw_gb_shader_bind(struct vmw_resource *res,
64 static int vmw_gb_shader_unbind(struct vmw_resource *res,
67 static int vmw_gb_shader_destroy(struct vmw_resource *res);
69 static int vmw_dx_shader_create(struct vmw_resource *res);
70 static int vmw_dx_shader_bind(struct vmw_resource *res,
72 static int vmw_dx_shader_unbind(struct vmw_resource *res,
[all …]
Dvmwgfx_streamoutput.c47 struct vmw_resource res; member
56 static int vmw_dx_streamoutput_create(struct vmw_resource *res);
57 static int vmw_dx_streamoutput_bind(struct vmw_resource *res,
59 static int vmw_dx_streamoutput_unbind(struct vmw_resource *res, bool readback,
61 static void vmw_dx_streamoutput_commit_notify(struct vmw_resource *res,
79 vmw_res_to_dx_streamoutput(struct vmw_resource *res) in vmw_res_to_dx_streamoutput() argument
81 return container_of(res, struct vmw_dx_streamoutput, res); in vmw_res_to_dx_streamoutput()
90 static int vmw_dx_streamoutput_unscrub(struct vmw_resource *res) in vmw_dx_streamoutput_unscrub() argument
92 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res); in vmw_dx_streamoutput_unscrub()
93 struct vmw_private *dev_priv = res->dev_priv; in vmw_dx_streamoutput_unscrub()
[all …]
/linux-6.6.21/lib/
Dhweight.c21 unsigned int res = w - ((w >> 1) & 0x55555555); in __sw_hweight32()
22 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()
25 return (res + (res >> 16)) & 0x000000FF; in __sw_hweight32()
32 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16() local
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()
41 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8() local
[all …]
/linux-6.6.21/drivers/infiniband/core/
Drestrack.c28 dev->res = kcalloc(RDMA_RESTRACK_MAX, sizeof(*rt), GFP_KERNEL); in rdma_restrack_init()
29 if (!dev->res) in rdma_restrack_init()
32 rt = dev->res; in rdma_restrack_init()
62 struct rdma_restrack_root *rt = dev->res; in rdma_restrack_clean()
70 struct xarray *xa = &dev->res[i].xa; in rdma_restrack_clean()
114 struct rdma_restrack_root *rt = &dev->res[type]; in rdma_restrack_count()
127 static struct ib_device *res_to_dev(struct rdma_restrack_entry *res) in res_to_dev() argument
129 switch (res->type) { in res_to_dev()
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()
[all …]
/linux-6.6.21/fs/ocfs2/dlm/
Ddlmthread.c42 void __dlm_wait_on_lockres_flags(struct dlm_lock_resource *res, int flags) in __dlm_wait_on_lockres_flags() argument
46 assert_spin_locked(&res->spinlock); in __dlm_wait_on_lockres_flags()
48 add_wait_queue(&res->wq, &wait); in __dlm_wait_on_lockres_flags()
51 if (res->state & flags) { in __dlm_wait_on_lockres_flags()
52 spin_unlock(&res->spinlock); in __dlm_wait_on_lockres_flags()
54 spin_lock(&res->spinlock); in __dlm_wait_on_lockres_flags()
57 remove_wait_queue(&res->wq, &wait); in __dlm_wait_on_lockres_flags()
61 int __dlm_lockres_has_locks(struct dlm_lock_resource *res) in __dlm_lockres_has_locks() argument
63 if (list_empty(&res->granted) && in __dlm_lockres_has_locks()
64 list_empty(&res->converting) && in __dlm_lockres_has_locks()
[all …]
Ddlmmaster.c49 struct dlm_lock_resource *res,
76 struct dlm_lock_resource *res,
85 static int dlm_do_master_request(struct dlm_lock_resource *res,
90 struct dlm_lock_resource *res,
94 struct dlm_lock_resource *res,
98 struct dlm_lock_resource *res,
105 struct dlm_lock_resource *res);
107 struct dlm_lock_resource *res);
109 struct dlm_lock_resource *res,
112 struct dlm_lock_resource *res);
[all …]
Ddlmconvert.c42 struct dlm_lock_resource *res,
47 struct dlm_lock_resource *res,
60 struct dlm_lock_resource *res, in dlmconvert_master() argument
66 spin_lock(&res->spinlock); in dlmconvert_master()
68 __dlm_wait_on_lockres(res); in dlmconvert_master()
69 __dlm_lockres_reserve_ast(res); in dlmconvert_master()
70 res->state |= DLM_LOCK_RES_IN_PROGRESS; in dlmconvert_master()
72 status = __dlmconvert_master(dlm, res, lock, flags, type, in dlmconvert_master()
75 res->state &= ~DLM_LOCK_RES_IN_PROGRESS; in dlmconvert_master()
76 spin_unlock(&res->spinlock); in dlmconvert_master()
[all …]
/linux-6.6.21/drivers/pnp/
Dmanager.c27 struct resource *res = pnp_get_resource(dev, type, bar); in pnp_find_resource() local
30 if (res) { in pnp_find_resource()
31 res->flags &= ~IORESOURCE_BITS; in pnp_find_resource()
32 res->flags |= rule & IORESOURCE_BITS; in pnp_find_resource()
35 return res; in pnp_find_resource()
40 struct resource *res, local_res; in pnp_assign_port() local
42 res = pnp_find_resource(dev, rule->flags, IORESOURCE_IO, idx); in pnp_assign_port()
43 if (res) { in pnp_assign_port()
45 "flags %#lx\n", idx, (unsigned long long) res->start, in pnp_assign_port()
46 (unsigned long long) res->end, res->flags); in pnp_assign_port()
[all …]
/linux-6.6.21/drivers/media/platform/ti/omap3isp/
Dispresizer.c117 __resizer_get_format(struct isp_res_device *res, in __resizer_get_format() argument
122 return v4l2_subdev_get_try_format(&res->subdev, sd_state, pad); in __resizer_get_format()
124 return &res->formats[pad]; in __resizer_get_format()
134 __resizer_get_crop(struct isp_res_device *res, in __resizer_get_crop() argument
139 return v4l2_subdev_get_try_crop(&res->subdev, sd_state, in __resizer_get_crop()
142 return &res->crop.request; in __resizer_get_crop()
152 static void resizer_set_filters(struct isp_res_device *res, const u16 *h_coeff, in resizer_set_filters() argument
155 struct isp_device *isp = to_isp_device(res); in resizer_set_filters()
183 static void resizer_set_bilinear(struct isp_res_device *res, in resizer_set_bilinear() argument
186 struct isp_device *isp = to_isp_device(res); in resizer_set_bilinear()
[all …]
/linux-6.6.21/include/linux/
Dkstrtox.h9 int __must_check _kstrtoul(const char *s, unsigned int base, unsigned long *res);
10 int __must_check _kstrtol(const char *s, unsigned int base, long *res);
12 int __must_check kstrtoull(const char *s, unsigned int base, unsigned long long *res);
13 int __must_check kstrtoll(const char *s, unsigned int base, long long *res);
30 static inline int __must_check kstrtoul(const char *s, unsigned int base, unsigned long *res) in kstrtoul() argument
38 return kstrtoull(s, base, (unsigned long long *)res); in kstrtoul()
40 return _kstrtoul(s, base, res); in kstrtoul()
58 static inline int __must_check kstrtol(const char *s, unsigned int base, long *res) in kstrtol() argument
66 return kstrtoll(s, base, (long long *)res); in kstrtol()
68 return _kstrtol(s, base, res); in kstrtol()
[all …]
/linux-6.6.21/arch/mips/include/asm/
Dunaligned-emul.h8 #define _LoadHW(addr, value, res, type) \ argument
26 : "=&r" (value), "=r" (res) \
31 #define _LoadW(addr, value, res, type) \ argument
47 : "=&r" (value), "=r" (res) \
53 #define _LoadW(addr, value, res, type) \ argument
82 : "=&r" (value), "=r" (res) \
88 #define _LoadHWU(addr, value, res, type) \ argument
108 : "=&r" (value), "=r" (res) \
113 #define _LoadWU(addr, value, res, type) \ argument
131 : "=&r" (value), "=r" (res) \
[all …]
/linux-6.6.21/drivers/pci/
Dsetup-res.c32 struct resource *res = dev->resource + resno; in pci_std_update_resource() local
42 if (!res->flags) in pci_std_update_resource()
45 if (res->flags & IORESOURCE_UNSET) in pci_std_update_resource()
53 if (res->flags & IORESOURCE_PCI_FIXED) in pci_std_update_resource()
56 pcibios_resource_to_bus(dev->bus, &region, res); in pci_std_update_resource()
59 if (res->flags & IORESOURCE_IO) { in pci_std_update_resource()
61 new |= res->flags & ~PCI_BASE_ADDRESS_IO_MASK; in pci_std_update_resource()
66 new |= res->flags & ~PCI_BASE_ADDRESS_MEM_MASK; in pci_std_update_resource()
81 if (!(res->flags & IORESOURCE_ROM_ENABLE) && in pci_std_update_resource()
86 if (res->flags & IORESOURCE_ROM_ENABLE) in pci_std_update_resource()
[all …]
/linux-6.6.21/drivers/pci/hotplug/
Dcpqphp_sysfs.c32 struct pci_resource *res; in show_ctrl() local
36 res = ctrl->mem_head; in show_ctrl()
37 while (res && index--) { in show_ctrl()
38 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); in show_ctrl()
39 res = res->next; in show_ctrl()
43 res = ctrl->p_mem_head; in show_ctrl()
44 while (res && index--) { in show_ctrl()
45 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); in show_ctrl()
46 res = res->next; in show_ctrl()
50 res = ctrl->io_head; in show_ctrl()
[all …]
/linux-6.6.21/drivers/ps3/
Dps3av_cmd.c145 int res; in ps3av_cmd_init() local
153 res = ps3av_do_pkt(PS3AV_CID_VIDEO_INIT, sizeof(video_init.send_hdr), in ps3av_cmd_init()
155 if (res < 0) in ps3av_cmd_init()
156 return res; in ps3av_cmd_init()
158 res = get_status(&video_init); in ps3av_cmd_init()
159 if (res) { in ps3av_cmd_init()
160 printk(KERN_ERR "PS3AV_CID_VIDEO_INIT: failed %x\n", res); in ps3av_cmd_init()
161 return res; in ps3av_cmd_init()
167 res = ps3av_do_pkt(PS3AV_CID_AUDIO_INIT, sizeof(audio_init.send_hdr), in ps3av_cmd_init()
169 if (res < 0) in ps3av_cmd_init()
[all …]
/linux-6.6.21/drivers/pci/controller/dwc/
Dpcie-qcom.c235 union qcom_pcie_resources res; member
297 struct qcom_pcie_resources_2_1_0 *res = &pcie->res.v2_1_0; in qcom_pcie_get_resources_2_1_0() local
303 res->supplies[0].supply = "vdda"; in qcom_pcie_get_resources_2_1_0()
304 res->supplies[1].supply = "vdda_phy"; in qcom_pcie_get_resources_2_1_0()
305 res->supplies[2].supply = "vdda_refclk"; in qcom_pcie_get_resources_2_1_0()
306 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(res->supplies), in qcom_pcie_get_resources_2_1_0()
307 res->supplies); in qcom_pcie_get_resources_2_1_0()
311 res->clks[0].id = "iface"; in qcom_pcie_get_resources_2_1_0()
312 res->clks[1].id = "core"; in qcom_pcie_get_resources_2_1_0()
313 res->clks[2].id = "phy"; in qcom_pcie_get_resources_2_1_0()
[all …]
/linux-6.6.21/include/kunit/
Dresource.h100 static inline void kunit_get_resource(struct kunit_resource *res) in kunit_get_resource() argument
102 kref_get(&res->refcount); in kunit_get_resource()
111 struct kunit_resource *res = container_of(kref, struct kunit_resource, in kunit_release_resource() local
114 if (res->free) in kunit_release_resource()
115 res->free(res); in kunit_release_resource()
120 if (res->should_kfree) in kunit_release_resource()
121 kfree(res); in kunit_release_resource()
136 static inline void kunit_put_resource(struct kunit_resource *res) in kunit_put_resource() argument
138 kref_put(&res->refcount, kunit_release_resource); in kunit_put_resource()
156 struct kunit_resource *res,
[all …]
/linux-6.6.21/lib/kunit/
Dresource.c22 struct kunit_resource *res, in __kunit_add_resource() argument
28 res->free = free; in __kunit_add_resource()
29 kref_init(&res->refcount); in __kunit_add_resource()
32 ret = init(res, data); in __kunit_add_resource()
36 res->data = data; in __kunit_add_resource()
40 list_add_tail(&res->node, &test->resources); in __kunit_add_resource()
48 void kunit_remove_resource(struct kunit *test, struct kunit_resource *res) in kunit_remove_resource() argument
54 was_linked = !list_empty(&res->node); in kunit_remove_resource()
55 list_del_init(&res->node); in kunit_remove_resource()
59 kunit_put_resource(res); in kunit_remove_resource()
[all …]
/linux-6.6.21/drivers/pcmcia/
Drsrc_iodyn.c27 const struct resource *res, in pcmcia_align() argument
33 start = (res->start & ~data->mask) + data->offset; in pcmcia_align()
34 if (start < res->start) in pcmcia_align()
38 if (res->flags & IORESOURCE_IO) { in pcmcia_align()
45 if (res->flags & IORESOURCE_IO) { in pcmcia_align()
46 if ((res->start + size - 1) >= 1024) in pcmcia_align()
47 start = res->end; in pcmcia_align()
59 struct resource *res = pcmcia_make_resource(0, num, IORESOURCE_IO, in __iodyn_find_io_region() local
70 ret = pci_bus_alloc_resource(s->cb_dev->bus, res, num, 1, in __iodyn_find_io_region()
74 ret = allocate_resource(&ioport_resource, res, num, min, ~0UL, in __iodyn_find_io_region()
[all …]
/linux-6.6.21/tools/testing/selftests/futex/functional/
Dfutex_waitv.c40 int res; in waiterfn() local
48 res = futex_waitv(waitv, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC); in waiterfn()
49 if (res < 0) { in waiterfn()
52 } else if (res != NR_FUTEXES - 1) { in waiterfn()
54 res, NR_FUTEXES - 1); in waiterfn()
63 int res, ret = RET_PASS; in main() local
102 res = futex_wake(u64_to_ptr(waitv[NR_FUTEXES - 1].uaddr), 1, FUTEX_PRIVATE_FLAG); in main()
103 if (res != 1) { in main()
105 res ? errno : res, in main()
106 res ? strerror(errno) : ""); in main()
[all …]
/linux-6.6.21/arch/sparc/kernel/
Dioport.c55 static void __iomem *_sparc_ioremap(struct resource *res, u32 bus, u32 pa, int sz);
58 static void _sparc_free_io(struct resource *res);
128 struct resource *res; in iounmap() local
134 if ((res = lookup_resource(&sparc_iomap, vaddr)) == NULL) { in iounmap()
138 _sparc_free_io(res); in iounmap()
140 if ((char *)res >= (char*)xresv && (char *)res < (char *)&xresv[XNRES]) { in iounmap()
141 xres_free((struct xresource *)res); in iounmap()
143 kfree(res); in iounmap()
148 void __iomem *of_ioremap(struct resource *res, unsigned long offset, in of_ioremap() argument
151 return _sparc_alloc_io(res->flags & 0xF, in of_ioremap()
[all …]
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dlocal_kptr_stash.c52 struct node_data *res; in create_and_stash() local
58 res = bpf_obj_new(typeof(*res)); in create_and_stash()
59 if (!res) in create_and_stash()
61 res->key = val; in create_and_stash()
63 res = bpf_kptr_xchg(&mapval->node, res); in create_and_stash()
64 if (res) in create_and_stash()
65 bpf_obj_drop(res); in create_and_stash()
79 struct plain_local *res; in stash_plain() local
86 res = bpf_obj_new(typeof(*res)); in stash_plain()
87 if (!res) in stash_plain()
[all …]

12345678910>>...135