Home
last modified time | relevance | path

Searched refs:container_of (Results 1 – 25 of 2890) sorted by relevance

12345678910>>...116

/linux/drivers/usb/gadget/function/
H A Duvc_configfs.h21 return container_of(to_config_group(item), struct f_uvc_opts, in to_f_uvc_opts()
37 return container_of(item, struct uvcg_control_header, item); in to_uvcg_control_header()
47 container_of(group_ptr, struct uvcg_color_matching, group)
72 return container_of(to_config_group(item), struct uvcg_format, group); in to_uvcg_format()
87 return container_of(item, struct uvcg_streaming_header, item); in to_uvcg_streaming_header()
118 return container_of(item, struct uvcg_frame, item); in to_uvcg_frame()
132 return container_of(to_uvcg_format(item), struct uvcg_uncompressed, fmt); in to_uvcg_uncompressed()
146 return container_of(to_uvcg_format(item), struct uvcg_mjpeg, fmt); in to_uvcg_mjpeg()
160 return container_of(to_uvcg_format(item), struct uvcg_framebased, fmt); in to_uvcg_framebased()
190 return container_of(item, struct uvcg_extension, item); in to_uvcg_extension()
/linux/drivers/phy/tegra/
H A Dxusb.h65 return container_of(lane, struct tegra_xusb_usb3_lane, base); in to_usb3_lane()
77 return container_of(lane, struct tegra_xusb_usb2_lane, base); in to_usb2_lane()
87 return container_of(lane, struct tegra_xusb_ulpi_lane, base); in to_ulpi_lane()
106 return container_of(lane, struct tegra_xusb_hsic_lane, base); in to_hsic_lane()
116 return container_of(lane, struct tegra_xusb_pcie_lane, base); in to_pcie_lane()
126 return container_of(lane, struct tegra_xusb_sata_lane, base); in to_sata_lane()
181 return container_of(dev, struct tegra_xusb_pad, dev); in to_tegra_xusb_pad()
201 return container_of(pad, struct tegra_xusb_usb3_pad, base); in to_usb3_pad()
215 return container_of(pad, struct tegra_xusb_usb2_pad, base); in to_usb2_pad()
225 return container_of(pad, struct tegra_xusb_ulpi_pad, base); in to_ulpi_pad()
[all …]
/linux/mm/damon/
H A Dsysfs-schemes.c44 struct damon_sysfs_scheme_region *region = container_of(kobj, in start_show()
53 struct damon_sysfs_scheme_region *region = container_of(kobj, in end_show()
62 struct damon_sysfs_scheme_region *region = container_of(kobj, in nr_accesses_show()
71 struct damon_sysfs_scheme_region *region = container_of(kobj, in age_show()
80 struct damon_sysfs_scheme_region *region = container_of(kobj, in sz_filter_passed_show()
88 struct damon_sysfs_scheme_region *region = container_of(kobj, in damon_sysfs_scheme_region_release()
154 struct damon_sysfs_scheme_regions *regions = container_of(kobj, in total_bytes_show()
174 kfree(container_of(kobj, struct damon_sysfs_scheme_regions, kobj)); in damon_sysfs_scheme_regions_release()
216 struct damon_sysfs_stats *stats = container_of(kobj, in nr_tried_show()
225 struct damon_sysfs_stats *stats = container_of(kobj, in sz_tried_show()
[all …]
H A Dsysfs.c31 struct damon_sysfs_region *region = container_of(kobj, in start_show()
40 struct damon_sysfs_region *region = container_of(kobj, in start_store()
50 struct damon_sysfs_region *region = container_of(kobj, in end_show()
59 struct damon_sysfs_region *region = container_of(kobj, in end_store()
68 kfree(container_of(kobj, struct damon_sysfs_region, kobj)); in damon_sysfs_region_release()
158 struct damon_sysfs_regions *regions = container_of(kobj, in nr_regions_show()
175 regions = container_of(kobj, struct damon_sysfs_regions, kobj); in nr_regions_store()
189 kfree(container_of(kobj, struct damon_sysfs_regions, kobj)); in damon_sysfs_regions_release()
249 struct damon_sysfs_target *target = container_of(kobj, in pid_target_show()
258 struct damon_sysfs_target *target = container_of(kobj, in pid_target_store()
[all …]
/linux/security/tomoyo/
H A Dgc.c111 container_of(element, typeof(*ptr), head.list); in tomoyo_del_transition_control()
127 container_of(element, typeof(*ptr), head.list); in tomoyo_del_aggregator()
143 container_of(element, typeof(*ptr), head.list); in tomoyo_del_manager()
158 container_of(element, typeof(*acl), list); in tomoyo_del_acl()
165 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl()
172 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl()
180 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl()
188 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl()
198 = container_of(acl, typeof(*entry), head); in tomoyo_del_acl()
208 container_of(ac in tomoyo_del_acl()
[all...]
H A Dgroup.c24 return container_of(a, struct tomoyo_path_group, head)->member_name == in tomoyo_same_path_group()
25 container_of(b, struct tomoyo_path_group, head)->member_name; in tomoyo_same_path_group()
39 return !memcmp(&container_of(a, struct tomoyo_number_group, head) in tomoyo_same_number_group()
41 &container_of(b, struct tomoyo_number_group, head) in tomoyo_same_number_group()
43 sizeof(container_of(a, struct tomoyo_number_group, head) in tomoyo_same_number_group()
58 const struct tomoyo_address_group *p1 = container_of(a, typeof(*p1), in tomoyo_same_address_group()
60 const struct tomoyo_address_group *p2 = container_of(b, typeof(*p2), in tomoyo_same_address_group()
H A Dfile.c259 const struct tomoyo_path_acl *acl = container_of(ptr, typeof(*acl), in tomoyo_check_path_acl()
283 container_of(ptr, typeof(*acl), head); in tomoyo_check_path_number_acl()
304 container_of(ptr, typeof(*acl), head); in tomoyo_check_path2_acl()
324 container_of(ptr, typeof(*acl), head); in tomoyo_check_mkdev_acl()
348 const struct tomoyo_path_acl *p1 = container_of(a, typeof(*p1), head); in tomoyo_same_path_acl()
349 const struct tomoyo_path_acl *p2 = container_of(b, typeof(*p2), head);
367 u16 * const a_perm = &container_of(a, struct tomoyo_path_acl, head) in tomoyo_merge_path_acl()
370 const u16 b_perm = container_of(b, struct tomoyo_path_acl, head)->perm; in tomoyo_merge_path_acl()
420 const struct tomoyo_mkdev_acl *p1 = container_of(a, typeof(*p1), head); in tomoyo_same_mkdev_acl()
421 const struct tomoyo_mkdev_acl *p2 = container_of( in tomoyo_same_mkdev_acl()
[all...]
/linux/tools/testing/selftests/bpf/progs/
H A Drbtree_fail.c25 node_a = container_of(a, struct node_data, node); in less()
26 node_b = container_of(b, struct node_data, node); in less()
98 bpf_obj_drop(container_of(res_n, struct node_data, node)); in rbtree_api_remove_unadded_node()
100 bpf_obj_drop(container_of(res_m, struct node_data, node)); in rbtree_api_remove_unadded_node()
123 n = container_of(res, struct node_data, node); in rbtree_api_remove_no_drop()
218 n = container_of(res, struct node_data, node); in rbtree_api_first_release_unlock_escape()
236 node_a = container_of(a, struct node_data, node); in less__bad_fn_call_add()
237 node_b = container_of(b, struct node_data, node); in less__bad_fn_call_add()
248 node_a = container_of(a, struct node_data, node); in less__bad_fn_call_remove()
249 node_b = container_of( in less__bad_fn_call_remove()
[all...]
H A Drbtree.c41 node_a = container_of(a, struct node_data, node); in less()
42 node_b = container_of(b, struct node_data, node); in less()
117 n = container_of(res, struct node_data, node); in rbtree_add_and_remove()
160 n = container_of(res1, struct node_data, node); in rbtree_add_and_remove_array()
165 n = container_of(res2, struct node_data, node); in rbtree_add_and_remove_array()
170 n = container_of(res3, struct node_data, node); in rbtree_add_and_remove_array()
224 o = container_of(res, struct node_data, node); in rbtree_first_and_remove()
233 o = container_of(res, struct node_data, node); in rbtree_first_and_remove()
244 o = container_of(res, struct node_data, node); in rbtree_first_and_remove()
281 o = container_of(res, struct node_data, node); in rbtree_api_release_aliasing()
[all …]
H A Dlinked_list.c41 bpf_obj_drop(container_of(n, struct foo, node2)); in list_push_pop()
50 bpf_obj_drop(container_of(n, struct foo, node2)); in list_push_pop()
67 f = container_of(n, struct foo, node2); in list_push_pop()
82 f = container_of(n, struct foo, node2); in list_push_pop()
93 bpf_obj_drop(container_of(n, struct foo, node2)); in list_push_pop()
101 bpf_obj_drop(container_of(n, struct foo, node2)); in list_push_pop()
146 pf = container_of(n, struct foo, node2); in list_push_pop_multiple()
165 pf = container_of(n, struct foo, node2); in list_push_pop_multiple()
176 bpf_obj_drop(container_of(n, struct foo, node2)); in list_push_pop_multiple()
184 bpf_obj_drop(container_of(n, struct foo, node2)); in list_push_pop_multiple()
[all …]
/linux/drivers/infiniband/core/
H A Drestrack.c87 return container_of(res, struct ib_pd, res)->device; in res_to_dev()
89 return container_of(res, struct ib_cq, res)->device; in res_to_dev()
91 return container_of(res, struct ib_qp, res)->device; in res_to_dev()
93 return container_of(res, struct rdma_id_private, in res_to_dev()
96 return container_of(res, struct ib_mr, res)->device; in res_to_dev()
98 return container_of(res, struct ib_ucontext, res)->device; in res_to_dev()
100 return container_of(res, struct rdma_counter, res)->device; in res_to_dev()
102 return container_of(res, struct ib_srq, res)->device; in res_to_dev()
104 return container_of(res, struct ib_dmah, res)->device; in res_to_dev()
197 struct ib_qp *qp = container_of(res, struct ib_qp, res); in rdma_restrack_add()
[all …]
/linux/drivers/clk/
H A Dclk-wm831x.c27 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, in wm831x_xtal_is_prepared()
36 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, in wm831x_xtal_recalc_rate()
68 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, in wm831x_fll_is_prepared()
85 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, in wm831x_fll_prepare()
103 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, in wm831x_fll_unprepare()
116 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, in wm831x_fll_recalc_rate()
155 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, in wm831x_fll_set_rate()
180 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, in wm831x_fll_get_parent()
235 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, in wm831x_clkout_is_prepared()
252 struct wm831x_clk *clkdata = container_of(hw, struct wm831x_clk, in wm831x_clkout_prepare()
[all …]
/linux/drivers/md/persistent-data/
H A Ddm-space-map-disk.c37 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_destroy()
44 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_extend()
51 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_get_nr_blocks()
60 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_get_nr_free()
70 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_get_count()
95 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_set_count()
108 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_inc_blocks()
121 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_dec_blocks()
134 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_new_block()
161 struct sm_disk *smd = container_of(sm, struct sm_disk, sm); in sm_disk_commit()
[all …]
H A Ddm-space-map-metadata.c278 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_destroy()
285 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_get_nr_blocks()
294 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_get_nr_free()
307 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_get_count()
347 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_count_is_more_than_one()
399 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_set_count()
417 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_inc_blocks()
436 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_dec_blocks()
453 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_new_block_()
489 struct sm_metadata *smm = container_of(sm, struct sm_metadata, sm); in sm_metadata_new_block()
[all …]
/linux/drivers/misc/
H A Dtifm_core.c43 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_bus_match()
70 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_device_probe()
71 struct tifm_driver *drv = container_of(dev->driver, struct tifm_driver, in tifm_device_probe()
92 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_device_remove()
93 struct tifm_driver *drv = container_of(dev->driver, struct tifm_driver, in tifm_device_remove()
110 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_device_suspend()
111 struct tifm_driver *drv = container_of(dev->driver, struct tifm_driver, in tifm_device_suspend()
121 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in tifm_device_resume()
122 struct tifm_driver *drv = container_of(dev->driver, struct tifm_driver, in tifm_device_resume()
140 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev); in type_show()
[all …]
/linux/drivers/gpu/drm/arm/display/komeda/
H A Dkomeda_kms.h131 #define to_kplane(p) container_of(p, struct komeda_plane, base)
132 #define to_kplane_st(p) container_of(p, struct komeda_plane_state, base)
133 #define to_kconn(p) container_of(p, struct komeda_wb_connector, base)
134 #define to_kcrtc(p) container_of(p, struct komeda_crtc, base)
135 #define to_kcrtc_st(p) container_of(p, struct komeda_crtc_state, base)
136 #define to_kdev(p) container_of(p, struct komeda_kms_dev, base)
137 #define to_wb_conn(x) container_of(x, struct drm_writeback_connector, base)
/linux/drivers/gpu/drm/xe/
H A Dxe_pmu.c93 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in event_to_gt()
101 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in event_to_hwe()
135 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in event_gt_forcewake()
163 struct xe_device *xe = container_of(pmu, typeof(*xe), pmu); in event_supported()
175 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in event_param_valid()
216 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in xe_pmu_event_destroy()
234 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in xe_pmu_event_init()
338 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in xe_pmu_event_read()
361 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in xe_pmu_event_start()
373 struct xe_device *xe = container_of(event->pmu, typeof(*xe), pmu.base); in xe_pmu_event_stop()
[all …]
/linux/fs/nfs/
H A Dsysfs.c27 struct kset *kset = container_of(kobj, struct kset, kobj); in nfs_kset_release()
78 struct nfs_netns_client *c = container_of(kobj, in nfs_netns_identifier_show()
101 struct nfs_netns_client *c = container_of(kobj, in nfs_netns_identifier_store()
124 struct nfs_netns_client *c = container_of(kobj, in nfs_netns_client_release()
133 return to_ns_common(container_of(kobj, struct nfs_netns_client, in nfs_netns_client_namespace()
155 struct nfs_netns_client *c = container_of(kobj, in nfs_netns_object_release()
163 return to_ns_common(container_of(kobj, struct nfs_netns_client, in nfs_netns_namespace()
259 struct nfs_server *server = container_of(kobj, struct nfs_server, kobj); in shutdown_show()
271 server = container_of(kobj, struct nfs_server, kobj); in shutdown_store()
304 struct nfs_server *server = container_of(kobj, struct nfs_server, kobj); in implid_domain_show()
[all …]
H A Ddns_resolve.c77 new = container_of(cnew, struct nfs_dns_ent, h); in nfs_dns_ent_update()
78 key = container_of(ckey, struct nfs_dns_ent, h); in nfs_dns_ent_update()
90 new = container_of(cnew, struct nfs_dns_ent, h); in nfs_dns_ent_init()
91 key = container_of(ckey, struct nfs_dns_ent, h); in nfs_dns_ent_init()
108 item = container_of(head, struct nfs_dns_ent, rcu_head); in nfs_dns_ent_free_rcu()
117 item = container_of(ref, struct nfs_dns_ent, h.ref); in nfs_dns_ent_put()
143 struct nfs_dns_ent *key = container_of(ch, struct nfs_dns_ent, h); in nfs_dns_request()
152 struct nfs_dns_ent *key = container_of(ch, struct nfs_dns_ent, h); in nfs_dns_upcall()
168 a = container_of(ca, struct nfs_dns_ent, h); in nfs_dns_match()
169 b = container_of(cb, struct nfs_dns_ent, h); in nfs_dns_match()
[all …]
/linux/scripts/gdb/linux/
H A Ddevice.py8 from linux.utils import container_of
37 subsys = container_of(kobj, kset_type.get_type().pointer(), 'kobj')
38 subsys_priv = container_of(subsys, subsys_private_type.get_type().pointer(), 'subsys')
44 subsys = container_of(kobj, kset_type.get_type().pointer(), 'kobj')
45 subsys_priv = container_of(subsys, subsys_private_type.get_type().pointer(), 'subsys')
74 dp = container_of(kn, device_private_type.get_type().pointer(), 'knode_bus')
80 dp = container_of(kn, device_private_type.get_type().pointer(), 'knode_class')
86 dp = container_of(kn, device_private_type.get_type().pointer(), 'knode_parent')
/linux/drivers/infiniband/hw/usnic/
H A Dusnic_ib.h103 return container_of(ibdev, struct usnic_ib_dev, ib_dev); in to_usdev()
109 return container_of(ibucontext, struct usnic_ib_ucontext, ibucontext); in to_ucontext()
115 return container_of(ibpd, struct usnic_ib_pd, ibpd); in to_upd()
121 return container_of(ibucontext, struct usnic_ib_ucontext, ibucontext); in to_uucontext()
127 return container_of(ibmr, struct usnic_ib_mr, ibmr); in to_umr()
/linux/drivers/gpu/drm/loongson/
H A Dlsdc_drv.h178 return container_of(connector, struct lsdc_output, connector); in connector_to_lsdc_output()
184 return container_of(encoder, struct lsdc_output, encoder); in encoder_to_lsdc_output()
199 return container_of(output, struct lsdc_display_pipe, output); in output_to_display_pipe()
233 return container_of(crtc, struct lsdc_crtc, base); in to_lsdc_crtc()
239 return container_of(crtc, struct lsdc_display_pipe, crtc.base); in crtc_to_display_pipe()
245 return container_of(plane, struct lsdc_primary, base); in to_lsdc_primary()
251 return container_of(plane, struct lsdc_cursor, base); in to_lsdc_cursor()
302 return container_of(bdev, struct lsdc_device, bdev); in tdev_to_ldev()
307 return container_of(ddev, struct lsdc_device, base); in to_lsdc()
313 return container_of(base, struct lsdc_crtc_state, base); in to_lsdc_crtc_state()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/vfn/
H A Dtu102.c31 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_reset()
39 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_allow()
47 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_block()
55 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_rearm()
63 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_unarm()
71 struct nvkm_vfn *vfn = container_of(intr, typeof(*vfn), intr); in tu102_vfn_intr_pending()
/linux/drivers/infiniband/hw/mthca/
H A Dmthca_provider.h283 return container_of(ibucontext, struct mthca_ucontext, ibucontext); in to_mucontext()
288 return container_of(ibmr, struct mthca_mr, ibmr); in to_mmr()
293 return container_of(ibpd, struct mthca_pd, ibpd); in to_mpd()
298 return container_of(ibah, struct mthca_ah, ibah); in to_mah()
303 return container_of(ibcq, struct mthca_cq, ibcq); in to_mcq()
308 return container_of(ibsrq, struct mthca_srq, ibsrq); in to_msrq()
313 return container_of(ibqp, struct mthca_qp, ibqp); in to_mqp()
/linux/net/sunrpc/
H A Dsvcauth_unix.c45 struct auth_domain *dom = container_of(head, struct auth_domain, rcu_head); in svcauth_unix_domain_release_rcu()
46 struct unix_domain *ud = container_of(dom, struct unix_domain, h); in svcauth_unix_domain_release_rcu()
108 struct cache_head *item = container_of(kref, struct cache_head, ref); in ip_map_put()
109 struct ip_map *im = container_of(item, struct ip_map,h); in ip_map_put()
123 struct ip_map *orig = container_of(corig, struct ip_map, h); in ip_map_match()
124 struct ip_map *new = container_of(cnew, struct ip_map, h); in ip_map_match()
130 struct ip_map *new = container_of(cnew, struct ip_map, h); in ip_map_init()
131 struct ip_map *item = container_of(citem, struct ip_map, h); in ip_map_init()
138 struct ip_map *new = container_of(cnew, struct ip_map, h); in update()
139 struct ip_map *item = container_of(citem, struct ip_map, h); in update()
[all …]

12345678910>>...116