Home
last modified time | relevance | path

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

1234567891011

/include/linux/
Dcontainer_of.h18 #define container_of(ptr, type, member) ({ \ macro
34 const typeof(*(ptr)) *: ((const type *)container_of(ptr, type, member)),\
35 default: ((type *)container_of(ptr, type, member)) \
Dpeci.h55 return container_of(d, struct peci_controller, dev); in to_peci_controller()
85 return container_of(d, struct peci_device, dev); in to_peci_device()
Dplist.h229 container_of(plist_first(head), type, member); \
233 container_of(plist_first(head), type, member)
246 container_of(plist_last(head), type, member); \
250 container_of(plist_last(head), type, member)
Dsunxi-rsb.h38 return container_of(d, struct sunxi_rsb_device, dev); in to_sunxi_rsb_device()
67 return container_of(d, struct sunxi_rsb_driver, driver); in to_sunxi_rsb_driver()
Dsiox.h8 #define to_siox_device(_dev) container_of((_dev), struct siox_device, dev)
59 return container_of(driver, struct siox_driver, driver); in to_siox_driver()
Dmei_aux.h29 container_of(auxiliary_dev, struct mei_aux_device, aux_dev)
Dcontainer.h24 return container_of(dev, struct container_dev, dev); in to_container_dev()
Dlwq.h67 _n ? container_of(_n, type, member.node) : NULL; })
84 *(_t1) ? (_n = container_of(*(_t1), typeof(*(_n)), _member.node),\
Dtransport_class.h54 container_of(x, struct transport_class, class)
62 container_of(x, struct transport_container, ac)
/include/crypto/internal/
Daead.h50 return container_of(&inst->alg.base, struct crypto_instance, alg); in aead_crypto_instance()
55 return container_of(&inst->alg, struct aead_instance, alg.base); in aead_instance()
96 return container_of(req, struct aead_request, base); in aead_request_cast()
111 return container_of(spawn->base.alg, struct aead_alg, base); in crypto_spawn_aead_alg()
Dakcipher.h83 return container_of(&inst->alg.base, struct crypto_instance, alg); in akcipher_crypto_instance()
89 return container_of(&inst->alg, struct akcipher_instance, alg.base); in akcipher_instance()
121 return container_of(spawn->base.alg, struct akcipher_alg, base); in crypto_spawn_akcipher_alg()
Dhash.h144 return container_of(__crypto_hash_alg_common(alg), struct ahash_alg, in __crypto_ahash_alg()
150 return container_of(crypto_hash_alg_common(hash), struct ahash_alg, in crypto_ahash_alg()
182 return container_of(inst, struct ahash_instance, s.base); in ahash_instance()
248 return container_of(inst, struct shash_instance, s.base); in shash_instance()
270 return container_of(tfm, struct crypto_shash, base); in __crypto_shash_cast()
/include/sound/
Dseq_device.h28 container_of(_dev, struct snd_seq_device, dev)
52 container_of(_drv, struct snd_seq_driver, driver)
/include/drm/
Ddrm_gem_vram_helper.h78 return container_of(bo, struct drm_gem_vram_object, bo); in drm_gem_vram_of_bo()
90 return container_of(gem, struct drm_gem_vram_object, bo.base); in drm_gem_vram_of_gem()
197 return container_of(bdev, struct drm_vram_mm, bdev); in drm_vram_mm_of_bdev()
/include/linux/ulpi/
Ddriver.h23 #define to_ulpi_dev(d) container_of(d, struct ulpi, dev)
49 #define to_ulpi_driver(d) container_of(d, struct ulpi_driver, driver)
/include/net/
Dxdp_sock_drv.h87 struct xdp_buff_xsk *xskb = container_of(xdp, struct xdp_buff_xsk, xdp); in xsk_buff_xdp_get_dma()
94 struct xdp_buff_xsk *xskb = container_of(xdp, struct xdp_buff_xsk, xdp); in xsk_buff_xdp_get_frame_dma()
122 struct xdp_buff_xsk *xskb = container_of(xdp, struct xdp_buff_xsk, xdp); in xsk_buff_free()
141 struct xdp_buff_xsk *frag = container_of(xdp, struct xdp_buff_xsk, xdp); in xsk_buff_add_frag()
148 struct xdp_buff_xsk *xskb = container_of(first, struct xdp_buff_xsk, xdp); in xsk_buff_get_frag()
164 struct xdp_buff_xsk *xskb = container_of(tail, struct xdp_buff_xsk, xdp); in xsk_buff_del_tail()
171 struct xdp_buff_xsk *xskb = container_of(first, struct xdp_buff_xsk, xdp); in xsk_buff_get_tail()
224 struct xdp_buff_xsk *xskb = container_of(xdp, struct xdp_buff_xsk, xdp); in xsk_buff_dma_sync_for_cpu()
Dswitchdev.h110 container_of((OBJ), struct switchdev_obj_port_vlan, obj)
120 container_of((OBJ), struct switchdev_obj_port_mdb, obj)
133 container_of((OBJ), struct switchdev_obj_mrp, obj)
147 container_of((OBJ), struct switchdev_obj_ring_test_mrp, obj)
158 container_of((OBJ), struct switchdev_obj_ring_role_mrp, obj)
167 container_of((OBJ), struct switchdev_obj_ring_state_mrp, obj)
180 container_of((OBJ), struct switchdev_obj_in_test_mrp, obj)
193 container_of((OBJ), struct switchdev_obj_in_role_mrp, obj)
202 container_of((OBJ), struct switchdev_obj_in_state_mrp, obj)
/include/scsi/
Dscsi_transport_sas.h89 container_of((d), struct sas_phy, dev)
105 container_of((d), struct sas_rphy, dev)
124 container_of((r), struct sas_end_device, rphy)
145 container_of((r), struct sas_expander_device, rphy)
164 container_of((d), struct sas_port, dev)
/include/linux/mlx5/
Deq.h56 (container_of(container_of(ptr, struct mlx5_nb, nb), type, member))
/include/drm/display/
Ddrm_dp_aux_bus.h39 return container_of(dev, struct dp_aux_ep_device, dev); in to_dp_aux_ep_dev()
44 return container_of(drv, struct dp_aux_ep_driver, driver); in to_dp_aux_ep_drv()
/include/soc/starfive/
Dreset-starfive-jh71x0.h15 container_of((_adev), struct jh71x0_reset_adev, adev)
/include/linux/phy/
Domap_usb.h14 #define phy_to_omapusb(x) container_of((x), struct omap_usb, phy)
/include/media/
Dv4l2-flash-led-class.h100 return container_of(sd, struct v4l2_flash, sd); in v4l2_subdev_to_v4l2_flash()
111 return container_of(c->handler, struct v4l2_flash, hdl); in v4l2_ctrl_to_v4l2_flash()
/include/net/caif/
Dcfsrvl.h47 struct cfsrvl *s = container_of(layr, struct cfsrvl, layer); in cfsrvl_get()
56 struct cfsrvl *s = container_of(layr, struct cfsrvl, layer); in cfsrvl_put()
/include/linux/gpio/
Dlegacy-of-mm-gpiochip.h28 return container_of(gc, struct of_mm_gpio_chip, gc); in to_of_mm_gpio_chip()

1234567891011