container_of_const
#define LOCOMO_DRV(_d) container_of_const((_d), struct locomo_driver, drv)
#define SA1111_DRV(_d) container_of_const((_d), struct sa1111_driver, drv)
#define to_parisc_driver(d) container_of_const(d, struct parisc_driver, drv)
#define ps3_drv_to_system_bus_drv(_drv) container_of_const(_drv, struct ps3_system_bus_driver, core)
#define to_vio_driver(__drv) container_of_const(__drv, struct vio_driver, driver)
#define to_vio_dev(__dev) container_of_const(__dev, struct vio_dev, dev)
#define to_ccwdrv(n) container_of_const(n, struct ccw_driver, driver)
#define to_vio_driver(__drv) container_of_const(__drv, struct vio_driver, driver)
#define to_vio_dev(__dev) container_of_const(__dev, struct vio_dev, dev)
#define to_elv(atr) container_of_const((atr), struct elv_fs_entry, attr)
#define to_amba_driver(d) container_of_const(d, struct amba_driver, drv)
#define to_subsys_private(obj) container_of_const(obj, struct subsys_private, subsys.kobj)
sp = container_of_const(kset, struct subsys_private, subsys);
sp = container_of_const(kset, struct subsys_private, subsys);
#define to_faux_object(dev) container_of_const(dev, struct faux_object, faux_dev.dev)
#define to_fw_sysfs(__dev) container_of_const(__dev, struct fw_sysfs, dev)
const struct bcma_driver *adrv = container_of_const(drv, struct bcma_driver, drv);
const struct bcma_device *core = container_of_const(dev, struct bcma_device, dev);
#define to_mips_cdmm_driver(d) container_of_const(d, struct mips_cdmm_driver, drv)
#define to_cxl_drv(__drv) container_of_const(__drv, struct cxl_driver, drv)
#define to_dax_drv(__drv) container_of_const(__drv, struct dax_device_driver, drv)
container_of_const(drv, struct idxd_device_driver, drv);
container_of_const(drv, struct fw_driver, driver)->id_table;
#define CB_DRV(d) container_of_const(d, struct coreboot_driver, drv)
container_of_const((global_state), struct intel_cdclk_state, base)
container_of_const((crtc_state), struct intel_crtc_state, uapi)
container_of_const((plane_state), struct intel_plane_state, uapi)
container_of_const((fb), struct intel_framebuffer, base)
container_of_const((conn_state), struct intel_digital_connector_state, base)
container_of_const((conn_state), struct intel_sdvo_connector_state, base.base)
container_of_const((conn_state), struct intel_tv_connector_state, base)
container_of_const((global_state), struct intel_dbuf_state, base)
#define to_pvr_device(drm_dev) container_of_const(drm_dev, struct pvr_device, base)
#define shmem_gem_to_pvr_gem(shmem_obj) container_of_const(shmem_obj, struct pvr_gem_object, base)
#define gem_to_pvr_gem(gem_obj) container_of_const(gem_obj, struct pvr_gem_object, base.base)
#define to_pvr_vm_gpuva(va) container_of_const(va, struct pvr_vm_gpuva, base)
priv_state = container_of_const(state, struct lsdc_crtc_state, base);
return container_of_const(dcp, struct loongson_gfx_desc, dc);
container_of_const(e, struct sun4i_hdmi, encoder)
container_of_const(c, struct sun4i_hdmi, connector)
container_of_const(c, struct drm_atomic_helper_connector_hdmi_priv, connector)
container_of_const(e, struct drm_atomic_helper_connector_hdmi_priv, encoder)
container_of_const(_enc, struct vc4_dummy_output, encoder.base)
container_of_const(_encoder, struct vc4_dpi, encoder.base)
container_of_const(_dev, struct vc4_dev, base)
container_of_const(to_drm_gem_dma_obj(_bo), struct vc4_bo, base)
container_of_const(_fence, struct vc4_fence, base)
container_of_const(_state, struct vc4_hvs_state, base)
container_of_const(_plane, struct vc4_plane, base)
container_of_const(_state, struct vc4_plane_state, base)
container_of_const(_encoder, struct vc4_encoder, base)
container_of_const(_crtc, struct vc4_crtc, base)
return container_of_const(data, struct vc4_pv_data, base);
container_of_const(_state, struct vc4_crtc_state, base)
container_of_const(host, struct vc4_dsi, dsi_host)
container_of_const(_encoder, struct vc4_dsi, encoder.base)
container_of_const(_bridge, struct vc4_dsi, bridge)
container_of_const(_connector, struct vc4_hdmi, connector)
return container_of_const(_encoder, struct vc4_hdmi, encoder);
container_of_const(_state, struct vc4_ctm_state, base)
container_of_const(_state, struct vc4_load_tracker_state, base)
container_of_const(_encoder, struct vc4_txp, encoder.base)
container_of_const(_connector, struct vc4_txp, connector.base)
container_of_const(_encoder, struct vc4_vec, encoder.base)
container_of_const(_connector, struct vc4_vec, connector)
#define to_xe_sriov_kobj(p) container_of_const((p), struct xe_sriov_kobj, base)
#define to_xe_sriov_dev_attr(p) container_of_const((p), struct xe_sriov_dev_attr, attr)
#define to_xe_sriov_vf_attr(p) container_of_const((p), struct xe_sriov_vf_attr, attr)
container_of_const((_d), struct intel_th_driver, driver)
container_of_const(d, struct rmi_function_handler, driver)
container_of_const(common_ptr, struct pt_vtdss, common)
#define to_ipack_driver(drv) container_of_const(drv, struct ipack_driver, driver)
return container_of_const(sd, struct alvium_dev, sd);
return &container_of_const(ctrl->handler, struct alvium_dev,
return container_of_const(sd, struct imx111, sd);
return container_of_const(ctrl->handler, struct imx111, hdl);
return container_of_const(sd, struct imx283, sd);
return container_of_const(sd, struct os05b10, sd);
struct os05b10 *os05b10 = container_of_const(ctrl->handler,
return container_of_const(_sd, struct ov2735, sd);
container_of_const(ctrl->handler, struct ov2735, handler);
return container_of_const(sd, struct ov64a40, sd);
container_of_const(ctrl->handler, struct ov9282, ctrl_handler);
return container_of_const(sd, struct vd55g1, sd);
struct v4l2_subdev *sd = &container_of_const(ctrl->handler,
return container_of_const(sd, struct vd56g3, sd);
return container_of_const(ctrl->handler, struct vd56g3, ctrl_handler);
#define to_bttv_sub_drv(x) container_of_const((x), struct bttv_sub_driver, drv)
container_of_const(__asd, struct sensor_async_subdev, asd)
const struct memstick_driver *ms_drv = container_of_const(drv, struct memstick_driver,
const struct memstick_dev *card = container_of_const(dev, struct memstick_dev,
#define to_mei_cl_driver(d) container_of_const(d, struct mei_cl_driver, driver)
const struct tifm_driver *fm_drv = container_of_const(drv, struct tifm_driver,
const struct tifm_dev *sock = container_of_const(dev, struct tifm_dev, dev);
#define to_sdio_driver(d) container_of_const(d, struct sdio_driver, drv)
container_of_const(attr, struct bond_net, class_attr_bonding_masters);
container_of_const(attr, struct bond_net, class_attr_bonding_masters);
#define to_yt921x_priv(_ds) container_of_const(_ds, struct yt921x_priv, ds)
struct yt921x_port *pp = container_of_const(work, struct yt921x_port,
container_of_const(info, struct iavf_adapter, ptp.info)
const struct idpf_ptp *ptp = container_of_const(info, struct idpf_ptp,
intf = container_of_const(wiphy_dev(hw->wiphy), struct usb_interface, dev);
container_of_const(chan, struct rtw89_chanctx, chan);
(container_of_const((drv), struct nvmem_layout_driver, driver))
#define to_peci_driver(__drv) container_of_const(__drv, struct peci_driver, driver)
const struct vchiq_device *device = container_of_const(dev, struct vchiq_device, dev);
#define dev_to_wblock(__dev) container_of_const(__dev, struct wmi_block, dev.dev)
container_of_const(led, struct samsung_galaxybook, kbd_backlight);
return container_of_const(attr, struct power_supply_attr, dev_attr);
data = container_of_const(desc, struct bd71815_regulator, desc);
data = container_of_const(desc, struct bd71815_regulator, desc);
data = container_of_const(desc, struct bd71828_regulator_data, desc);
data = container_of_const(desc, struct bd718xx_regulator_data, desc);
rdata = container_of_const(rdev->desc, struct bd96801_regulator_data,
data = container_of_const(rdev->desc, struct bd96801_regulator_data, desc);
#define bdev_to_rdev(__bdev) container_of_const(__bdev, struct regulator_dev, bdev)
info = container_of_const(rdev->desc, struct hi6421_regulator_info, desc);
info = container_of_const(rdev->desc, struct hi6421_regulator_info, desc);
info = container_of_const(rdev->desc, struct hi6421_regulator_info, desc);
info = container_of_const(rdev->desc, struct hi6421_regulator_info, desc);
info = container_of_const(rdev->desc, struct hi6421_regulator_info, desc);
info = container_of_const(rdev->desc, struct hi6421v530_regulator_info, rdesc);
info = container_of_const(rdev->desc, struct hi6421v530_regulator_info, rdesc);
sreg = container_of_const(rdev->desc, struct hi6421_spmi_reg_info, desc);
sreg = container_of_const(rdev->desc, struct hi6421_spmi_reg_info, desc);
sreg = container_of_const(rdev->desc, struct hi6421_spmi_reg_info, desc);
rdesc = container_of_const(rdev->desc, struct max77650_regulator_desc, desc);
rdesc = container_of_const(rdev->desc, struct max77650_regulator_desc, desc);
rdesc = container_of_const(rdev->desc, struct max77650_regulator_desc, desc);
info = container_of_const(rdev->desc, struct mt6315_regulator_info, desc);
info = container_of_const(rdev->desc, struct mt6315_regulator_info, desc);
info = container_of_const(rdev->desc, struct mt6315_regulator_info, desc);
#define to_regulator_info(x) container_of_const((x), struct mt6358_regulator_info, desc)
const struct pca9450_regulator_desc *regulator = container_of_const(desc,
const struct pca9450_regulator_desc *data = container_of_const(desc,
const struct pca9450_regulator_desc *desc = container_of_const(rdev->desc,
const struct pca9450_regulator_desc *desc = container_of_const(rdev->desc,
const struct pf1550_desc *desc = container_of_const(rdev->desc,
const struct pf1550_desc *desc = container_of_const(rdev->desc,
const struct pf1550_desc *desc = container_of_const(rdev->desc,
const struct pf1550_desc *desc = container_of_const(rdev->desc,
const struct pf9453_regulator_desc *data = container_of_const(desc,
#define to_rpmsg_driver(d) container_of_const(d, struct rpmsg_driver, drv)
#define to_cssdriver(n) container_of_const(n, struct css_driver, drv)
#define to_ap_drv(x) container_of_const((x), struct ap_driver, driver)
driver = container_of_const(drv, struct tb_service_driver, driver);
const struct tb_service *svc = container_of_const(dev, struct tb_service, dev);
#define to_dwc3_google(d) container_of_const((d), struct dwc3_google, dwc)
#define adev_to_client(adev) container_of_const(adev, struct usbio_client, auxdev)
#define to_vvq(_vq) container_of_const(_vq, struct vring_virtqueue, vq)
#define to_acpi_driver(d) container_of_const(d, struct acpi_driver, drv)
#define to_mipi_dsi_device(__dev) container_of_const(__dev, struct mipi_dsi_device, dev)
#define to_amba_device(d) container_of_const(d, struct amba_device, dev)
#define to_ffa_driver(d) container_of_const(d, struct ffa_driver, driver)
container_of_const(_drv, struct cdx_driver, driver)
#define kobj_to_dev(__kobj) container_of_const(__kobj, struct device, kobj)
#define to_faux_device(x) container_of_const((x), struct faux_device, dev)
#define to_dfl_drv(d) container_of_const(d, struct dfl_driver, drv)
#define to_dio_driver(drv) container_of_const(drv, struct dio_driver, driver)
#define to_eisa_driver(drv) container_of_const(drv,struct eisa_driver, driver)
#define fw_device(dev) container_of_const(dev, struct fw_device, device)
#define fw_unit(dev) container_of_const(dev, struct fw_unit, device)
#define to_fsi_drv(drvp) container_of_const(drvp, struct fsi_driver, drv)
container_of_const(_drv, struct fsl_mc_driver, driver)
#define to_gameport_driver(d) container_of_const(d, struct gameport_driver, driver)
#define to_greybus_driver(d) container_of_const(d, struct greybus_driver, driver)
#define device_to_hv_device(d) container_of_const(d, struct hv_device, device)
#define drv_to_hv_drv(d) container_of_const(d, struct hv_driver, driver)
#define to_i2c_driver(d) container_of_const(d, struct i2c_driver, driver)
#define drv_to_i3cdrv(__drv) container_of_const(__drv, struct i3c_driver, driver)
#define dev_to_i3cdev(__dev) container_of_const(__dev, struct i3c_device, dev)
#define raw6_sk(ptr) container_of_const(ptr, struct raw6_sock, inet.sk)
#define to_maple_driver(n) container_of_const(n, struct maple_driver, drv)
#define to_mcb_device(__dev) container_of_const(__dev, struct mcb_device, dev)
#define to_mcb_driver(__drv) container_of_const(__drv, struct mcb_driver, driver)
#define to_mdio_device(__dev) container_of_const(__dev, struct mdio_device, dev)
#define to_mdio_common_driver(__drv_c) container_of_const(__drv_c, struct mdio_driver_common, \
#define to_mdio_driver(__drv_m) container_of_const(to_mdio_common_driver(__drv_m), \
#define to_mhi_driver(drv) container_of_const(drv, struct mhi_driver, driver)
#define to_mhi_ep_driver(drv) container_of_const(drv, struct mhi_ep_driver, driver)
( __drv ? container_of_const(__drv, struct moxtet_driver, driver) : NULL )
#define to_nd_device_driver(__drv) container_of_const(__drv, struct nd_device_driver, drv)
#define to_pci_epf_driver(drv) container_of_const((drv), struct pci_epf_driver, driver)
( __drv ? container_of_const(__drv, struct pci_driver, driver) : NULL )
#define to_phy_driver(d) container_of_const(to_mdio_common_driver(d), \
#define to_phy_device(__dev) container_of_const(to_mdio_device(__dev), struct phy_device, mdio)
#define to_pnp_driver(drv) container_of_const(drv, struct pnp_driver, driver)
#define dev_to_psy(__dev) container_of_const(__dev, struct power_supply, dev)
#define to_rio_driver(drv) container_of_const(drv,struct rio_driver, driver)
#define to_scmi_dev(d) container_of_const(d, struct scmi_device, dev)
#define to_serio_driver(d) container_of_const(d, struct serio_driver, driver)
#define to_slim_driver(d) container_of_const(d, struct slim_driver, driver)
#define to_apr_driver(d) container_of_const(d, struct apr_driver, driver)
#define drv_to_sdw_driver(_drv) container_of_const(_drv, struct sdw_driver, driver)
#define to_spi_device(__dev) container_of_const(__dev, struct spi_device, dev)
( __drv ? container_of_const(__drv, struct spi_driver, driver) : NULL )
#define drv_to_ssb_drv(_drv) container_of_const(_drv, struct ssb_driver, drv)
#define to_ssam_device(d) container_of_const(d, struct ssam_device, dev)
#define to_ssam_device_driver(d) container_of_const(d, struct ssam_device_driver, driver)
#define to_tc_driver(drv) container_of_const(drv, struct tc_driver, driver)
#define tcp_rsk(ptr) container_of_const(ptr, struct tcp_request_sock, req.req)
#define tcp_sk(ptr) container_of_const(ptr, struct tcp_sock, inet_conn.icsk_inet.sk)
container_of_const(d, struct tee_client_driver, driver)
#define udp_sk(ptr) container_of_const(ptr, struct udp_sock, inet.sk)
#define to_usb_driver(d) container_of_const(d, struct usb_driver, driver)
#define to_usb_device_driver(d) container_of_const(d, struct usb_device_driver, driver)
#define to_usb_interface(__dev) container_of_const(__dev, struct usb_interface, dev)
#define to_usb_device(__dev) container_of_const(__dev, struct usb_device, dev)
#define dev_to_virtio(_dev) container_of_const(_dev, struct virtio_device, dev)
#define drv_to_virtio(__drv) container_of_const(__drv, struct virtio_driver, driver)
#define to_wmi_driver(drv) container_of_const(drv, struct wmi_driver, driver)
#define to_wmi_device(device) container_of_const(device, struct wmi_device, dev)
#define to_zorro_driver(drv) container_of_const(drv, struct zorro_driver, driver)
container_of_const(gobj, struct media_entity, graph_obj)
container_of_const(gobj, struct media_pad, graph_obj)
container_of_const(gobj, struct media_link, graph_obj)
container_of_const(gobj, struct media_interface, graph_obj)
container_of_const(intf, struct media_intf_devnode, intf)
container_of_const(__me_vdev_ent, struct video_device, \
#define to_video_device(cd) container_of_const(cd, struct video_device, dev)
container_of_const(__me_sd_ent, struct v4l2_subdev, entity) : \
#define unix_sk(ptr) container_of_const(ptr, struct unix_sock, sk)
#define ax25_sk(ptr) container_of_const(ptr, struct ax25_sock, sk)
#define inet_csk(ptr) container_of_const(ptr, struct inet_connection_sock, icsk_inet.sk)
#define inet_rsk(ptr) container_of_const(ptr, struct inet_request_sock, req)
#define inet_sk(ptr) container_of_const(ptr, struct inet_sock, sk)
#define dst_rt6_info(_ptr) container_of_const(_ptr, struct rt6_info, dst)
container_of_const((xdp)->base.rxq, type, member)
#define raw_sk(ptr) container_of_const(ptr, struct raw_sock, inet.sk)
#define dst_rtable(_ptr) container_of_const(_ptr, struct rtable, dst)
#define sctp_sk(ptr) container_of_const(ptr, struct sctp_sock, inet.sk)
#define x25_sk(ptr) container_of_const(ptr, struct x25_sock, sk)
#define to_ac97_driver(__drv) container_of_const(__drv, struct ac97_codec_driver, driver)
#define to_xenbus_device(__dev) container_of_const(__dev, struct xenbus_device, dev)
#define to_xenbus_driver(__drv) container_of_const(__drv, struct xenbus_driver, driver)
container_of_const(_attr, struct padata_sysfs_entry, attr)
#define to_module_attr(n) container_of_const(n, struct module_attribute, attr)
#define to_param_attr(n) container_of_const(n, struct param_attribute, mattr)
container_of_const(mattr, struct module_version_attribute, mattr);
#define to_kunit_device(d) container_of_const(d, struct kunit_device, dev)
#define tcp_inet6_sk(sk) (&container_of_const(tcp_sk(sk), \
container_of_const(_ptr, struct tcp_sock, inet_conn.icsk_inet.sk); \
container_of_const(_ptr, struct mptcp_sock, sk.icsk_inet.sk); \
#define mptcp_sk(ptr) container_of_const(ptr, struct mptcp_sock, sk.icsk_inet.sk)
#define pkt_sk(ptr) container_of_const(ptr, struct packet_sock, sk)
#define smc_sk(ptr) container_of_const(ptr, struct smc_sock, sk)
#define to_foo_attr(x) container_of_const(x, struct foo_attribute, attr)
mc = container_of_const(hdr, struct snd_soc_tplg_mixer_control, hdr);