| /linux/drivers/usb/gadget/function/ |
| H A D | uvc_configfs.h | 21 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 D | xusb.h | 65 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/tools/testing/selftests/bpf/progs/ |
| H A D | rbtree_fail.c | 25 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 D | rbtree.c | 41 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 D | linked_list.c | 41 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( in list_push_pop_multiple() [all...] |
| /linux/security/tomoyo/ |
| H A D | gc.c | 111 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 D | group.c | 24 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 D | file.c | 259 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/drivers/clk/ |
| H A D | clk-wm831x.c | 27 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 D | dm-space-map-disk.c | 37 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 D | dm-space-map-metadata.c | 278 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/gpu/drm/arm/display/komeda/ |
| H A D | komeda_kms.h | 131 #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/infiniband/hw/usnic/ |
| H A D | usnic_ib.h | 103 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/scripts/gdb/linux/ |
| H A D | device.py | 8 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/gpu/drm/xe/ |
| H A D | xe_pmu.c | 93 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/drivers/gpu/drm/nouveau/nvkm/subdev/vfn/ |
| H A D | tu102.c | 31 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/fs/nfs/ |
| H A D | sysfs.c | 27 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 …]
|
| /linux/drivers/gpu/drm/loongson/ |
| H A D | lsdc_drv.h | 178 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/infiniband/hw/mthca/ |
| H A D | mthca_provider.h | 283 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/drivers/gpu/drm/arm/ |
| H A D | malidp_drv.h | 48 #define drm_to_malidp(x) container_of(x, struct malidp_drm, base) 49 #define crtc_to_malidp_device(x) container_of(x, struct malidp_drm, crtc) 75 #define to_malidp_plane(x) container_of(x, struct malidp_plane, base) 76 #define to_malidp_plane_state(x) container_of(x, struct malidp_plane_state, base) 87 #define to_malidp_crtc_state(x) container_of(x, struct malidp_crtc_state, base)
|
| /linux/kernel/bpf/ |
| H A D | arraymap.c | 169 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_lookup_elem() 180 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_get_hash() 190 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_direct_value_addr() 204 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_direct_value_meta() 220 struct bpf_array *array = container_of(map, struct bpf_array, map); in array_map_gen_lookup() 253 struct bpf_array *array = container_of(map, struct bpf_array, map); in percpu_array_map_lookup_elem() 264 struct bpf_array *array = container_of(map, struct bpf_array, map); in percpu_array_map_direct_value_addr() 279 struct bpf_array *array = container_of(map, struct bpf_array, map); in percpu_array_map_direct_value_meta() 296 struct bpf_array *array = container_of(map, struct bpf_array, map); in percpu_array_map_gen_lookup() 327 struct bpf_array *array = container_of(map, struct bpf_array, map); in percpu_array_map_lookup_percpu_elem() [all …]
|
| /linux/drivers/dma/sh/ |
| H A D | shdma.h | 55 #define to_sh_chan(chan) container_of(chan, struct sh_dmae_chan, shdma_chan) 56 #define to_sh_desc(lh) container_of(lh, struct sh_desc, node) 57 #define tx_to_sh_desc(tx) container_of(tx, struct sh_desc, async_tx) 58 #define to_sh_dev(chan) container_of(chan->shdma_chan.dma_chan.device,\
|
| /linux/drivers/vfio/pci/pds/ |
| H A D | vfio_dev.c | 25 return container_of(core_device, struct pds_vfio_pci_device, in pds_vfio_pci_drvdata() 44 container_of(vdev, struct pds_vfio_pci_device, in pds_vfio_set_device_state() 88 container_of(vdev, struct pds_vfio_pci_device, in pds_vfio_get_device_state() 119 container_of(vdev, struct pds_vfio_pci_device, in pds_vfio_init_device() 152 container_of(vdev, struct pds_vfio_pci_device, in pds_vfio_release_device() 162 container_of(vdev, struct pds_vfio_pci_device, in pds_vfio_open_device() 180 container_of(vdev, struct pds_vfio_pci_device, in pds_vfio_close_device()
|
| /linux/drivers/hwtracing/coresight/ |
| H A D | coresight-syscfg-configfs.c | 29 struct cscfg_fs_config *fs_config = container_of(to_config_group(item), in cscfg_cfg_description_show() 38 struct cscfg_fs_config *fs_config = container_of(to_config_group(item), in cscfg_cfg_feature_refs_show() 60 fs_preset = container_of(to_config_group(item), struct cscfg_fs_preset, group); in cscfg_cfg_values_show() 93 struct cscfg_fs_config *fs_config = container_of(to_config_group(item), in cscfg_cfg_enable_show() 102 struct cscfg_fs_config *fs_config = container_of(to_config_group(item), in cscfg_cfg_enable_store() 121 struct cscfg_fs_config *fs_config = container_of(to_config_group(item), in cscfg_cfg_preset_show() 130 struct cscfg_fs_config *fs_config = container_of(to_config_group(item), in cscfg_cfg_preset_store() 233 struct cscfg_fs_feature *fs_feat = container_of(to_config_group(item), in cscfg_feat_description_show() 242 struct cscfg_fs_feature *fs_feat = container_of(to_config_group(item), in cscfg_feat_matches_show() 260 struct cscfg_fs_feature *fs_feat = container_of(to_config_group(item), in cscfg_feat_nr_params_show() [all …]
|
| /linux/drivers/net/ipa/ |
| H A D | ipa_gsi.c | 18 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_gsi_trans_complete() 25 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_gsi_trans_release() 33 struct ipa *ipa = container_of(gsi, struct ipa, gsi); in ipa_gsi_channel_tx_queued() 44 struct ipa *ipa = container_of(gsi, struct ipa, gsi); in ipa_gsi_channel_tx_completed()
|