Searched refs:NETDEV_ALIGN (Results 1 – 14 of 14) sorted by relevance
/Linux-v6.6/Documentation/networking/device_drivers/qlogic/ |
D | qlge.rst | 28 NETDEV_ALIGN = 32 29 return netdevice.value_() + align(struct_size("net_device"), NETDEV_ALIGN)
|
/Linux-v6.6/net/ieee802154/ |
D | core.h | 28 struct wpan_phy wpan_phy __aligned(NETDEV_ALIGN);
|
/Linux-v6.6/net/mac802154/ |
D | main.c | 75 priv_size = ALIGN(sizeof(*local), NETDEV_ALIGN) + priv_data_len; in ieee802154_alloc_hw() 88 local->hw.priv = (char *)local + ALIGN(sizeof(*local), NETDEV_ALIGN); in ieee802154_alloc_hw()
|
/Linux-v6.6/drivers/net/can/ |
D | vxcan.c | 168 can_ml = netdev_priv(dev) + ALIGN(sizeof(struct vxcan_priv), NETDEV_ALIGN); in vxcan_setup() 300 .priv_size = ALIGN(sizeof(struct vxcan_priv), NETDEV_ALIGN) + sizeof(struct can_ml_priv),
|
/Linux-v6.6/drivers/net/can/dev/ |
D | dev.c | 249 size = ALIGN(sizeof_priv, NETDEV_ALIGN) + sizeof(struct can_ml_priv); in alloc_candev_mqs() 263 can_ml = (void *)priv + ALIGN(sizeof_priv, NETDEV_ALIGN); in alloc_candev_mqs()
|
/Linux-v6.6/net/devlink/ |
D | devl_internal.h | 58 char priv[] __aligned(NETDEV_ALIGN);
|
/Linux-v6.6/drivers/net/ethernet/wiznet/ |
D | w5100.c | 1075 ALIGN(sizeof(struct w5100_priv), NETDEV_ALIGN); in w5100_ops_priv() 1090 alloc_size = ALIGN(alloc_size, NETDEV_ALIGN); in w5100_probe() 1093 alloc_size += NETDEV_ALIGN - 1; in w5100_probe()
|
/Linux-v6.6/include/net/ |
D | cfg802154.h | 245 char priv[] __aligned(NETDEV_ALIGN);
|
D | cfg80211.h | 5587 char priv[] __aligned(NETDEV_ALIGN);
|
/Linux-v6.6/net/wireless/ |
D | core.h | 119 struct wiphy wiphy __aligned(NETDEV_ALIGN);
|
/Linux-v6.6/net/mac80211/ |
D | main.c | 668 priv_size = ALIGN(sizeof(*local), NETDEV_ALIGN) + priv_data_len; in ieee80211_alloc_hw_nm() 736 local->hw.priv = (char *)local + ALIGN(sizeof(*local), NETDEV_ALIGN); in ieee80211_alloc_hw_nm()
|
/Linux-v6.6/drivers/net/phy/ |
D | mdio_bus.c | 152 size_t aligned_size = ALIGN(sizeof(*bus), NETDEV_ALIGN); in mdiobus_alloc_size()
|
/Linux-v6.6/include/linux/ |
D | netdevice.h | 2429 #define NETDEV_ALIGN 32 macro 2598 return (char *)dev + ALIGN(sizeof(struct net_device), NETDEV_ALIGN); in netdev_priv()
|
/Linux-v6.6/net/core/ |
D | dev.c | 10704 alloc_size = ALIGN(alloc_size, NETDEV_ALIGN); in alloc_netdev_mqs() 10708 alloc_size += NETDEV_ALIGN - 1; in alloc_netdev_mqs() 10714 dev = PTR_ALIGN(p, NETDEV_ALIGN); in alloc_netdev_mqs()
|