Home
last modified time | relevance | path

Searched refs:dpaa2_eth_trap_data (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.1/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth-devlink.c57 struct dpaa2_eth_trap_data *dpaa2_eth_trap_data = priv->trap_data; in dpaa2_eth_dl_trap_item_lookup() local
62 return &dpaa2_eth_trap_data->trap_items_arr[i]; in dpaa2_eth_dl_trap_item_lookup()
253 struct dpaa2_eth_trap_data *dpaa2_eth_trap_data; in dpaa2_eth_dl_traps_register() local
258 dpaa2_eth_trap_data = kzalloc(sizeof(*dpaa2_eth_trap_data), GFP_KERNEL); in dpaa2_eth_dl_traps_register()
259 if (!dpaa2_eth_trap_data) in dpaa2_eth_dl_traps_register()
261 priv->trap_data = dpaa2_eth_trap_data; in dpaa2_eth_dl_traps_register()
263 dpaa2_eth_trap_data->trap_items_arr = kcalloc(ARRAY_SIZE(dpaa2_eth_traps_arr), in dpaa2_eth_dl_traps_register()
266 if (!dpaa2_eth_trap_data->trap_items_arr) { in dpaa2_eth_dl_traps_register()
291 kfree(dpaa2_eth_trap_data->trap_items_arr); in dpaa2_eth_dl_traps_register()
293 kfree(dpaa2_eth_trap_data); in dpaa2_eth_dl_traps_register()
Ddpaa2-eth.h500 struct dpaa2_eth_trap_data { struct
595 struct dpaa2_eth_trap_data *trap_data;