Symbol: container_of_const
arch/arm/include/asm/hardware/locomo.h
192
#define LOCOMO_DRV(_d) container_of_const((_d), struct locomo_driver, drv)
arch/arm/include/asm/hardware/sa1111.h
407
#define SA1111_DRV(_d) container_of_const((_d), struct sa1111_driver, drv)
arch/parisc/include/asm/parisc-device.h
44
#define to_parisc_driver(d) container_of_const(d, struct parisc_driver, drv)
arch/powerpc/include/asm/ps3.h
393
#define ps3_drv_to_system_bus_drv(_drv) container_of_const(_drv, struct ps3_system_bus_driver, core)
arch/powerpc/include/asm/vio.h
159
#define to_vio_driver(__drv) container_of_const(__drv, struct vio_driver, driver)
arch/powerpc/include/asm/vio.h
160
#define to_vio_dev(__dev) container_of_const(__dev, struct vio_dev, dev)
arch/s390/include/asm/ccwdev.h
213
#define to_ccwdrv(n) container_of_const(n, struct ccw_driver, driver)
arch/sparc/include/asm/vio.h
486
#define to_vio_driver(__drv) container_of_const(__drv, struct vio_driver, driver)
arch/sparc/include/asm/vio.h
487
#define to_vio_dev(__dev) container_of_const(__dev, struct vio_dev, dev)
block/elevator.c
408
#define to_elv(atr) container_of_const((atr), struct elv_fs_entry, attr)
drivers/amba/bus.c
29
#define to_amba_driver(d) container_of_const(d, struct amba_driver, drv)
drivers/base/base.h
61
#define to_subsys_private(obj) container_of_const(obj, struct subsys_private, subsys.kobj)
drivers/base/bus.c
76
sp = container_of_const(kset, struct subsys_private, subsys);
drivers/base/class.c
58
sp = container_of_const(kset, struct subsys_private, subsys);
drivers/base/faux.c
30
#define to_faux_object(dev) container_of_const(dev, struct faux_object, faux_dev.dev)
drivers/base/firmware_loader/sysfs.h
83
#define to_fw_sysfs(__dev) container_of_const(__dev, struct fw_sysfs, dev)
drivers/bcma/main.c
596
const struct bcma_driver *adrv = container_of_const(drv, struct bcma_driver, drv);
drivers/bcma/main.c
639
const struct bcma_device *core = container_of_const(dev, struct bcma_device, dev);
drivers/bus/mips_cdmm.c
40
#define to_mips_cdmm_driver(d) container_of_const(d, struct mips_cdmm_driver, drv)
drivers/cxl/cxl.h
902
#define to_cxl_drv(__drv) container_of_const(__drv, struct cxl_driver, drv)
drivers/dax/bus.c
42
#define to_dax_drv(__drv) container_of_const(__drv, struct dax_device_driver, drv)
drivers/dma/idxd/bus.c
39
container_of_const(drv, struct idxd_device_driver, drv);
drivers/firewire/core-device.c
195
container_of_const(drv, struct fw_driver, driver)->id_table;
drivers/firmware/google/coreboot_table.c
25
#define CB_DRV(d) container_of_const(d, struct coreboot_driver, drv)
drivers/gpu/drm/i915/display/intel_cdclk.h
54
container_of_const((global_state), struct intel_cdclk_state, base)
drivers/gpu/drm/i915/display/intel_display_types.h
1653
container_of_const((crtc_state), struct intel_crtc_state, uapi)
drivers/gpu/drm/i915/display/intel_display_types.h
1655
container_of_const((plane_state), struct intel_plane_state, uapi)
drivers/gpu/drm/i915/display/intel_display_types.h
1657
container_of_const((fb), struct intel_framebuffer, base)
drivers/gpu/drm/i915/display/intel_display_types.h
620
container_of_const((conn_state), struct intel_digital_connector_state, base)
drivers/gpu/drm/i915/display/intel_sdvo.c
197
container_of_const((conn_state), struct intel_sdvo_connector_state, base.base)
drivers/gpu/drm/i915/display/intel_tv.c
890
container_of_const((conn_state), struct intel_tv_connector_state, base)
drivers/gpu/drm/i915/display/skl_watermark.c
52
container_of_const((global_state), struct intel_dbuf_state, base)
drivers/gpu/drm/imagination/pvr_device.h
469
#define to_pvr_device(drm_dev) container_of_const(drm_dev, struct pvr_device, base)
drivers/gpu/drm/imagination/pvr_gem.h
116
#define shmem_gem_to_pvr_gem(shmem_obj) container_of_const(shmem_obj, struct pvr_gem_object, base)
drivers/gpu/drm/imagination/pvr_gem.h
120
#define gem_to_pvr_gem(gem_obj) container_of_const(gem_obj, struct pvr_gem_object, base.base)
drivers/gpu/drm/imagination/pvr_vm.c
119
#define to_pvr_vm_gpuva(va) container_of_const(va, struct pvr_vm_gpuva, base)
drivers/gpu/drm/loongson/lsdc_crtc.c
706
priv_state = container_of_const(state, struct lsdc_crtc_state, base);
drivers/gpu/drm/loongson/lsdc_drv.h
95
return container_of_const(dcp, struct loongson_gfx_desc, dc);
drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c
38
container_of_const(e, struct sun4i_hdmi, encoder)
drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c
41
container_of_const(c, struct sun4i_hdmi, connector)
drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c
43
container_of_const(c, struct drm_atomic_helper_connector_hdmi_priv, connector)
drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c
46
container_of_const(e, struct drm_atomic_helper_connector_hdmi_priv, encoder)
drivers/gpu/drm/vc4/tests/vc4_mock.h
42
container_of_const(_enc, struct vc4_dummy_output, encoder.base)
drivers/gpu/drm/vc4/vc4_dpi.c
102
container_of_const(_encoder, struct vc4_dpi, encoder.base)
drivers/gpu/drm/vc4/vc4_drv.h
240
container_of_const(_dev, struct vc4_dev, base)
drivers/gpu/drm/vc4/vc4_drv.h
280
container_of_const(to_drm_gem_dma_obj(_bo), struct vc4_bo, base)
drivers/gpu/drm/vc4/vc4_drv.h
290
container_of_const(_fence, struct vc4_fence, base)
drivers/gpu/drm/vc4/vc4_drv.h
376
container_of_const(_state, struct vc4_hvs_state, base)
drivers/gpu/drm/vc4/vc4_drv.h
387
container_of_const(_plane, struct vc4_plane, base)
drivers/gpu/drm/vc4/vc4_drv.h
461
container_of_const(_state, struct vc4_plane_state, base)
drivers/gpu/drm/vc4/vc4_drv.h
490
container_of_const(_encoder, struct vc4_encoder, base)
drivers/gpu/drm/vc4/vc4_drv.h
600
container_of_const(_crtc, struct vc4_crtc, base)
drivers/gpu/drm/vc4/vc4_drv.h
613
return container_of_const(data, struct vc4_pv_data, base);
drivers/gpu/drm/vc4/vc4_drv.h
637
container_of_const(_state, struct vc4_crtc_state, base)
drivers/gpu/drm/vc4/vc4_dsi.c
604
container_of_const(host, struct vc4_dsi, dsi_host)
drivers/gpu/drm/vc4/vc4_dsi.c
607
container_of_const(_encoder, struct vc4_dsi, encoder.base)
drivers/gpu/drm/vc4/vc4_dsi.c
610
container_of_const(_bridge, struct vc4_dsi, bridge)
drivers/gpu/drm/vc4/vc4_hdmi.h
223
container_of_const(_connector, struct vc4_hdmi, connector)
drivers/gpu/drm/vc4/vc4_hdmi.h
229
return container_of_const(_encoder, struct vc4_hdmi, encoder);
drivers/gpu/drm/vc4/vc4_kms.c
36
container_of_const(_state, struct vc4_ctm_state, base)
drivers/gpu/drm/vc4/vc4_kms.c
45
container_of_const(_state, struct vc4_load_tracker_state, base)
drivers/gpu/drm/vc4/vc4_txp.c
177
container_of_const(_encoder, struct vc4_txp, encoder.base)
drivers/gpu/drm/vc4/vc4_txp.c
180
container_of_const(_connector, struct vc4_txp, connector.base)
drivers/gpu/drm/vc4/vc4_vec.c
224
container_of_const(_encoder, struct vc4_vec, encoder.base)
drivers/gpu/drm/vc4/vc4_vec.c
227
container_of_const(_connector, struct vc4_vec, connector)
drivers/gpu/drm/xe/xe_sriov_pf_sysfs.c
73
#define to_xe_sriov_kobj(p) container_of_const((p), struct xe_sriov_kobj, base)
drivers/gpu/drm/xe/xe_sriov_pf_sysfs.c
80
#define to_xe_sriov_dev_attr(p) container_of_const((p), struct xe_sriov_dev_attr, attr)
drivers/gpu/drm/xe/xe_sriov_pf_sysfs.c
99
#define to_xe_sriov_vf_attr(p) container_of_const((p), struct xe_sriov_vf_attr, attr)
drivers/hwtracing/intel_th/intel_th.h
192
container_of_const((_d), struct intel_th_driver, driver)
drivers/input/rmi4/rmi_bus.h
90
container_of_const(d, struct rmi_function_handler, driver)
drivers/iommu/generic_pt/fmt/vtdss.h
59
container_of_const(common_ptr, struct pt_vtdss, common)
drivers/ipack/ipack.c
16
#define to_ipack_driver(drv) container_of_const(drv, struct ipack_driver, driver)
drivers/media/i2c/alvium-csi2.h
468
return container_of_const(sd, struct alvium_dev, sd);
drivers/media/i2c/alvium-csi2.h
473
return &container_of_const(ctrl->handler, struct alvium_dev,
drivers/media/i2c/imx111.c
684
return container_of_const(sd, struct imx111, sd);
drivers/media/i2c/imx111.c
689
return container_of_const(ctrl->handler, struct imx111, hdl);
drivers/media/i2c/imx283.c
576
return container_of_const(sd, struct imx283, sd);
drivers/media/i2c/os05b10.c
508
return container_of_const(sd, struct os05b10, sd);
drivers/media/i2c/os05b10.c
513
struct os05b10 *os05b10 = container_of_const(ctrl->handler,
drivers/media/i2c/ov2735.c
405
return container_of_const(_sd, struct ov2735, sd);
drivers/media/i2c/ov2735.c
432
container_of_const(ctrl->handler, struct ov2735, handler);
drivers/media/i2c/ov64a40.c
2860
return container_of_const(sd, struct ov64a40, sd);
drivers/media/i2c/ov9282.c
852
container_of_const(ctrl->handler, struct ov9282, ctrl_handler);
drivers/media/i2c/vd55g1.c
572
return container_of_const(sd, struct vd55g1, sd);
drivers/media/i2c/vd55g1.c
577
struct v4l2_subdev *sd = &container_of_const(ctrl->handler,
drivers/media/i2c/vd56g3.c
251
return container_of_const(sd, struct vd56g3, sd);
drivers/media/i2c/vd56g3.c
256
return container_of_const(ctrl->handler, struct vd56g3, ctrl_handler);
drivers/media/pci/bt8xx/bttv.h
344
#define to_bttv_sub_drv(x) container_of_const((x), struct bttv_sub_driver, drv)
drivers/media/pci/intel/ipu3/ipu3-cio2.c
1358
container_of_const(__asd, struct sensor_async_subdev, asd)
drivers/memstick/core/memstick.c
45
const struct memstick_driver *ms_drv = container_of_const(drv, struct memstick_driver,
drivers/memstick/core/memstick.c
61
const struct memstick_dev *card = container_of_const(dev, struct memstick_dev,
drivers/misc/mei/bus.c
22
#define to_mei_cl_driver(d) container_of_const(d, struct mei_cl_driver, driver)
drivers/misc/tifm_core.c
44
const struct tifm_driver *fm_drv = container_of_const(drv, struct tifm_driver,
drivers/misc/tifm_core.c
60
const struct tifm_dev *sock = container_of_const(dev, struct tifm_dev, dev);
drivers/mmc/core/sdio_bus.c
29
#define to_sdio_driver(d) container_of_const(d, struct sdio_driver, drv)
drivers/net/bonding/bond_sysfs.c
39
container_of_const(attr, struct bond_net, class_attr_bonding_masters);
drivers/net/bonding/bond_sysfs.c
83
container_of_const(attr, struct bond_net, class_attr_bonding_masters);
drivers/net/dsa/yt921x.c
185
#define to_yt921x_priv(_ds) container_of_const(_ds, struct yt921x_priv, ds)
drivers/net/dsa/yt921x.c
731
struct yt921x_port *pp = container_of_const(work, struct yt921x_port,
drivers/net/ethernet/intel/iavf/iavf_ptp.c
8
container_of_const(info, struct iavf_adapter, ptp.info)
drivers/net/ethernet/intel/idpf/idpf_ptp.h
210
const struct idpf_ptp *ptp = container_of_const(info, struct idpf_ptp,
drivers/net/wireless/realtek/rtlwifi/rtl8192du/sw.c
29
intf = container_of_const(wiphy_dev(hw->wiphy), struct usb_interface, dev);
drivers/net/wireless/realtek/rtw89/core.h
7137
container_of_const(chan, struct rtw89_chanctx, chan);
drivers/nvmem/layouts.c
20
(container_of_const((drv), struct nvmem_layout_driver, driver))
drivers/peci/internal.h
99
#define to_peci_driver(__drv) container_of_const(__drv, struct peci_driver, driver)
drivers/platform/raspberrypi/vchiq-interface/vchiq_bus.c
28
const struct vchiq_device *device = container_of_const(dev, struct vchiq_device, dev);
drivers/platform/wmi/core.c
99
#define dev_to_wblock(__dev) container_of_const(__dev, struct wmi_block, dev.dev)
drivers/platform/x86/samsung-galaxybook.c
356
container_of_const(led, struct samsung_galaxybook, kbd_backlight);
drivers/power/supply/power_supply_sysfs.c
240
return container_of_const(attr, struct power_supply_attr, dev_attr);
drivers/regulator/bd71815-regulator.c
178
data = container_of_const(desc, struct bd71815_regulator, desc);
drivers/regulator/bd71815-regulator.c
201
data = container_of_const(desc, struct bd71815_regulator, desc);
drivers/regulator/bd71828-regulator.c
190
data = container_of_const(desc, struct bd71828_regulator_data, desc);
drivers/regulator/bd718x7-regulator.c
703
data = container_of_const(desc, struct bd718xx_regulator_data, desc);
drivers/regulator/bd96801-regulator.c
344
rdata = container_of_const(rdev->desc, struct bd96801_regulator_data,
drivers/regulator/bd96801-regulator.c
359
data = container_of_const(rdev->desc, struct bd96801_regulator_data, desc);
drivers/regulator/core.c
6378
#define bdev_to_rdev(__bdev) container_of_const(__bdev, struct regulator_dev, bdev)
drivers/regulator/hi6421-regulator.c
390
info = container_of_const(rdev->desc, struct hi6421_regulator_info, desc);
drivers/regulator/hi6421-regulator.c
403
info = container_of_const(rdev->desc, struct hi6421_regulator_info, desc);
drivers/regulator/hi6421-regulator.c
417
info = container_of_const(rdev->desc, struct hi6421_regulator_info, desc);
drivers/regulator/hi6421-regulator.c
442
info = container_of_const(rdev->desc, struct hi6421_regulator_info, desc);
drivers/regulator/hi6421-regulator.c
467
info = container_of_const(rdev->desc, struct hi6421_regulator_info, desc);
drivers/regulator/hi6421v530-regulator.c
113
info = container_of_const(rdev->desc, struct hi6421v530_regulator_info, rdesc);
drivers/regulator/hi6421v530-regulator.c
128
info = container_of_const(rdev->desc, struct hi6421v530_regulator_info, rdesc);
drivers/regulator/hi6421v600-regulator.c
124
sreg = container_of_const(rdev->desc, struct hi6421_spmi_reg_info, desc);
drivers/regulator/hi6421v600-regulator.c
139
sreg = container_of_const(rdev->desc, struct hi6421_spmi_reg_info, desc);
drivers/regulator/hi6421v600-regulator.c
165
sreg = container_of_const(rdev->desc, struct hi6421_spmi_reg_info, desc);
drivers/regulator/max77650-regulator.c
101
rdesc = container_of_const(rdev->desc, struct max77650_regulator_desc, desc);
drivers/regulator/max77650-regulator.c
71
rdesc = container_of_const(rdev->desc, struct max77650_regulator_desc, desc);
drivers/regulator/max77650-regulator.c
88
rdesc = container_of_const(rdev->desc, struct max77650_regulator_desc, desc);
drivers/regulator/mt6315-regulator.c
114
info = container_of_const(rdev->desc, struct mt6315_regulator_info, desc);
drivers/regulator/mt6315-regulator.c
168
info = container_of_const(rdev->desc, struct mt6315_regulator_info, desc);
drivers/regulator/mt6315-regulator.c
83
info = container_of_const(rdev->desc, struct mt6315_regulator_info, desc);
drivers/regulator/mt6358-regulator.c
34
#define to_regulator_info(x) container_of_const((x), struct mt6358_regulator_info, desc)
drivers/regulator/pca9450-regulator.c
252
const struct pca9450_regulator_desc *regulator = container_of_const(desc,
drivers/regulator/pca9450-regulator.c
266
const struct pca9450_regulator_desc *data = container_of_const(desc,
drivers/regulator/pca9450-regulator.c
311
const struct pca9450_regulator_desc *desc = container_of_const(rdev->desc,
drivers/regulator/pca9450-regulator.c
336
const struct pca9450_regulator_desc *desc = container_of_const(rdev->desc,
drivers/regulator/pf1550-regulator.c
114
const struct pf1550_desc *desc = container_of_const(rdev->desc,
drivers/regulator/pf1550-regulator.c
74
const struct pf1550_desc *desc = container_of_const(rdev->desc,
drivers/regulator/pf1550-regulator.c
85
const struct pf1550_desc *desc = container_of_const(rdev->desc,
drivers/regulator/pf1550-regulator.c
96
const struct pf1550_desc *desc = container_of_const(rdev->desc,
drivers/regulator/pf9453-regulator.c
541
const struct pf9453_regulator_desc *data = container_of_const(desc,
drivers/rpmsg/rpmsg_internal.h
19
#define to_rpmsg_driver(d) container_of_const(d, struct rpmsg_driver, drv)
drivers/s390/cio/css.h
106
#define to_cssdriver(n) container_of_const(n, struct css_driver, drv)
drivers/s390/crypto/ap_bus.h
161
#define to_ap_drv(x) container_of_const((x), struct ap_driver, driver)
drivers/thunderbolt/domain.c
59
driver = container_of_const(drv, struct tb_service_driver, driver);
drivers/thunderbolt/xdomain.c
991
const struct tb_service *svc = container_of_const(dev, struct tb_service, dev);
drivers/usb/dwc3/dwc3-google.c
75
#define to_dwc3_google(d) container_of_const((d), struct dwc3_google, dwc)
drivers/usb/misc/usbio.c
135
#define adev_to_client(adev) container_of_const(adev, struct usbio_client, auxdev)
drivers/virtio/virtio_ring.c
282
#define to_vvq(_vq) container_of_const(_vq, struct vring_virtqueue, vq)
include/acpi/acpi_bus.h
567
#define to_acpi_driver(d) container_of_const(d, struct acpi_driver, drv)
include/drm/drm_mipi_dsi.h
222
#define to_mipi_dsi_device(__dev) container_of_const(__dev, struct mipi_dsi_device, dev)
include/linux/amba/bus.h
110
#define to_amba_device(d) container_of_const(d, struct amba_device, dev)
include/linux/arm_ffa.h
159
#define to_ffa_driver(d) container_of_const(d, struct ffa_driver, driver)
include/linux/cdx/cdx_bus.h
214
container_of_const(_drv, struct cdx_driver, driver)
include/linux/device.h
708
#define kobj_to_dev(__kobj) container_of_const(__kobj, struct device, kobj)
include/linux/device/faux.h
32
#define to_faux_device(x) container_of_const((x), struct faux_device, dev)
include/linux/dfl.h
74
#define to_dfl_drv(d) container_of_const(d, struct dfl_driver, drv)
include/linux/dio.h
96
#define to_dio_driver(drv) container_of_const(drv, struct dio_driver, driver)
include/linux/eisa.h
66
#define to_eisa_driver(drv) container_of_const(drv,struct eisa_driver, driver)
include/linux/firewire.h
240
#define fw_device(dev) container_of_const(dev, struct fw_device, device)
include/linux/firewire.h
258
#define fw_unit(dev) container_of_const(dev, struct fw_unit, device)
include/linux/fsi.h
59
#define to_fsi_drv(drvp) container_of_const(drvp, struct fsi_driver, drv)
include/linux/fsl/mc.h
59
container_of_const(_drv, struct fsl_mc_driver, driver)
include/linux/gameport.h
61
#define to_gameport_driver(d) container_of_const(d, struct gameport_driver, driver)
include/linux/greybus.h
67
#define to_greybus_driver(d) container_of_const(d, struct greybus_driver, driver)
include/linux/hyperv.h
1292
#define device_to_hv_device(d) container_of_const(d, struct hv_device, device)
include/linux/hyperv.h
1293
#define drv_to_hv_drv(d) container_of_const(d, struct hv_driver, driver)
include/linux/i2c.h
306
#define to_i2c_driver(d) container_of_const(d, struct i2c_driver, driver)
include/linux/i3c/device.h
194
#define drv_to_i3cdrv(__drv) container_of_const(__drv, struct i3c_driver, driver)
include/linux/i3c/device.h
204
#define dev_to_i3cdev(__dev) container_of_const(__dev, struct i3c_device, dev)
include/linux/ipv6.h
348
#define raw6_sk(ptr) container_of_const(ptr, struct raw6_sock, inet.sk)
include/linux/maple.h
100
#define to_maple_driver(n) container_of_const(n, struct maple_driver, drv)
include/linux/mcb.h
78
#define to_mcb_device(__dev) container_of_const(__dev, struct mcb_device, dev)
include/linux/mcb.h
97
#define to_mcb_driver(__drv) container_of_const(__drv, struct mcb_driver, driver)
include/linux/mdio.h
47
#define to_mdio_device(__dev) container_of_const(__dev, struct mdio_device, dev)
include/linux/mdio.h
56
#define to_mdio_common_driver(__drv_c) container_of_const(__drv_c, struct mdio_driver_common, \
include/linux/mdio.h
76
#define to_mdio_driver(__drv_m) container_of_const(to_mdio_common_driver(__drv_m), \
include/linux/mhi.h
529
#define to_mhi_driver(drv) container_of_const(drv, struct mhi_driver, driver)
include/linux/mhi_ep.h
224
#define to_mhi_ep_driver(drv) container_of_const(drv, struct mhi_ep_driver, driver)
include/linux/moxtet.h
65
( __drv ? container_of_const(__drv, struct moxtet_driver, driver) : NULL )
include/linux/nd.h
87
#define to_nd_device_driver(__drv) container_of_const(__drv, struct nd_device_driver, drv)
include/linux/pci-epf.h
111
#define to_pci_epf_driver(drv) container_of_const((drv), struct pci_epf_driver, driver)
include/linux/pci.h
1039
( __drv ? container_of_const(__drv, struct pci_driver, driver) : NULL )
include/linux/phy.h
1566
#define to_phy_driver(d) container_of_const(to_mdio_common_driver(d), \
include/linux/phy.h
817
#define to_phy_device(__dev) container_of_const(to_mdio_device(__dev), struct phy_device, mdio)
include/linux/pnp.h
386
#define to_pnp_driver(drv) container_of_const(drv, struct pnp_driver, driver)
include/linux/power_supply.h
354
#define dev_to_psy(__dev) container_of_const(__dev, struct power_supply, dev)
include/linux/rio.h
468
#define to_rio_driver(drv) container_of_const(drv,struct rio_driver, driver)
include/linux/scmi_protocol.h
948
#define to_scmi_dev(d) container_of_const(d, struct scmi_device, dev)
include/linux/serio.h
84
#define to_serio_driver(d) container_of_const(d, struct serio_driver, driver)
include/linux/slimbus.h
94
#define to_slim_driver(d) container_of_const(d, struct slim_driver, driver)
include/linux/soc/qcom/apr.h
165
#define to_apr_driver(d) container_of_const(d, struct apr_driver, driver)
include/linux/soundwire/sdw_type.h
16
#define drv_to_sdw_driver(_drv) container_of_const(_drv, struct sdw_driver, driver)
include/linux/spi/spi.h
267
#define to_spi_device(__dev) container_of_const(__dev, struct spi_device, dev)
include/linux/spi/spi.h
369
( __drv ? container_of_const(__drv, struct spi_driver, driver) : NULL )
include/linux/ssb/ssb.h
328
#define drv_to_ssb_drv(_drv) container_of_const(_drv, struct ssb_driver, drv)
include/linux/surface_aggregator/device.h
231
#define to_ssam_device(d) container_of_const(d, struct ssam_device, dev)
include/linux/surface_aggregator/device.h
245
#define to_ssam_device_driver(d) container_of_const(d, struct ssam_device_driver, driver)
include/linux/tc.h
111
#define to_tc_driver(drv) container_of_const(drv, struct tc_driver, driver)
include/linux/tcp.h
184
#define tcp_rsk(ptr) container_of_const(ptr, struct tcp_request_sock, req.req)
include/linux/tcp.h
551
#define tcp_sk(ptr) container_of_const(ptr, struct tcp_sock, inet_conn.icsk_inet.sk)
include/linux/tee_drv.h
326
container_of_const(d, struct tee_client_driver, driver)
include/linux/udp.h
135
#define udp_sk(ptr) container_of_const(ptr, struct udp_sock, inet.sk)
include/linux/usb.h
1274
#define to_usb_driver(d) container_of_const(d, struct usb_driver, driver)
include/linux/usb.h
1324
#define to_usb_device_driver(d) container_of_const(d, struct usb_device_driver, driver)
include/linux/usb.h
276
#define to_usb_interface(__dev) container_of_const(__dev, struct usb_interface, dev)
include/linux/usb.h
747
#define to_usb_device(__dev) container_of_const(__dev, struct usb_device, dev)
include/linux/virtio.h
191
#define dev_to_virtio(_dev) container_of_const(_dev, struct virtio_device, dev)
include/linux/virtio.h
266
#define drv_to_virtio(__drv) container_of_const(__drv, struct virtio_driver, driver)
include/linux/wmi.h
120
#define to_wmi_driver(drv) container_of_const(drv, struct wmi_driver, driver)
include/linux/wmi.h
39
#define to_wmi_device(device) container_of_const(device, struct wmi_device, dev)
include/linux/zorro.h
55
#define to_zorro_driver(drv) container_of_const(drv, struct zorro_driver, driver)
include/media/media-entity.h
630
container_of_const(gobj, struct media_entity, graph_obj)
include/media/media-entity.h
639
container_of_const(gobj, struct media_pad, graph_obj)
include/media/media-entity.h
648
container_of_const(gobj, struct media_link, graph_obj)
include/media/media-entity.h
657
container_of_const(gobj, struct media_interface, graph_obj)
include/media/media-entity.h
666
container_of_const(intf, struct media_intf_devnode, intf)
include/media/v4l2-dev.h
323
container_of_const(__me_vdev_ent, struct video_device, \
include/media/v4l2-dev.h
333
#define to_video_device(cd) container_of_const(cd, struct video_device, dev)
include/media/v4l2-subdev.h
1106
container_of_const(__me_sd_ent, struct v4l2_subdev, entity) : \
include/net/af_unix.h
57
#define unix_sk(ptr) container_of_const(ptr, struct unix_sock, sk)
include/net/ax25.h
260
#define ax25_sk(ptr) container_of_const(ptr, struct ax25_sock, sk)
include/net/inet_connection_sock.h
152
#define inet_csk(ptr) container_of_const(ptr, struct inet_connection_sock, icsk_inet.sk)
include/net/inet_sock.h
103
#define inet_rsk(ptr) container_of_const(ptr, struct inet_request_sock, req)
include/net/inet_sock.h
362
#define inet_sk(ptr) container_of_const(ptr, struct inet_sock, sk)
include/net/ip6_fib.h
238
#define dst_rt6_info(_ptr) container_of_const(_ptr, struct rt6_info, dst)
include/net/libeth/xdp.h
1711
container_of_const((xdp)->base.rxq, type, member)
include/net/raw.h
87
#define raw_sk(ptr) container_of_const(ptr, struct raw_sock, inet.sk)
include/net/route.h
80
#define dst_rtable(_ptr) container_of_const(_ptr, struct rtable, dst)
include/net/sctp/structs.h
238
#define sctp_sk(ptr) container_of_const(ptr, struct sctp_sock, inet.sk)
include/net/x25.h
180
#define x25_sk(ptr) container_of_const(ptr, struct x25_sock, sk)
include/sound/ac97/codec.h
76
#define to_ac97_driver(__drv) container_of_const(__drv, struct ac97_codec_driver, driver)
include/xen/xenbus.h
100
#define to_xenbus_device(__dev) container_of_const(__dev, struct xenbus_device, dev)
include/xen/xenbus.h
128
#define to_xenbus_driver(__drv) container_of_const(__drv, struct xenbus_driver, driver)
kernel/padata.c
822
container_of_const(_attr, struct padata_sysfs_entry, attr)
kernel/params.c
542
#define to_module_attr(n) container_of_const(n, struct module_attribute, attr)
kernel/params.c
559
#define to_param_attr(n) container_of_const(n, struct param_attribute, mattr)
kernel/params.c
853
container_of_const(mattr, struct module_version_attribute, mattr);
lib/kunit/device.c
37
#define to_kunit_device(d) container_of_const(d, struct kunit_device, dev)
net/ipv6/tcp_ipv6.c
94
#define tcp_inet6_sk(sk) (&container_of_const(tcp_sk(sk), \
net/mptcp/protocol.h
389
container_of_const(_ptr, struct tcp_sock, inet_conn.icsk_inet.sk); \
net/mptcp/protocol.h
394
container_of_const(_ptr, struct mptcp_sock, sk.icsk_inet.sk); \
net/mptcp/protocol.h
398
#define mptcp_sk(ptr) container_of_const(ptr, struct mptcp_sock, sk.icsk_inet.sk)
net/packet/internal.h
131
#define pkt_sk(ptr) container_of_const(ptr, struct packet_sock, sk)
net/smc/smc.h
333
#define smc_sk(ptr) container_of_const(ptr, struct smc_sock, sk)
samples/kobject/kset-example.c
44
#define to_foo_attr(x) container_of_const(x, struct foo_attribute, attr)
sound/soc/qcom/qdsp6/topology.c
1216
mc = container_of_const(hdr, struct snd_soc_tplg_mixer_control, hdr);