Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-eth-devlink.c48 struct dpaa2_eth_trap_data *dpaa2_eth_trap_data = priv->trap_data; in dpaa2_eth_dl_trap_item_lookup() local
53 return &dpaa2_eth_trap_data->trap_items_arr[i]; in dpaa2_eth_dl_trap_item_lookup()
235 struct dpaa2_eth_trap_data *dpaa2_eth_trap_data; in dpaa2_eth_dl_traps_register() local
240 dpaa2_eth_trap_data = kzalloc(sizeof(*dpaa2_eth_trap_data), GFP_KERNEL); in dpaa2_eth_dl_traps_register()
241 if (!dpaa2_eth_trap_data) in dpaa2_eth_dl_traps_register()
243 priv->trap_data = dpaa2_eth_trap_data; in dpaa2_eth_dl_traps_register()
245 dpaa2_eth_trap_data->trap_items_arr = kcalloc(ARRAY_SIZE(dpaa2_eth_traps_arr), in dpaa2_eth_dl_traps_register()
248 if (!dpaa2_eth_trap_data->trap_items_arr) { in dpaa2_eth_dl_traps_register()
273 kfree(dpaa2_eth_trap_data->trap_items_arr); in dpaa2_eth_dl_traps_register()
275 kfree(dpaa2_eth_trap_data); in dpaa2_eth_dl_traps_register()
H A Ddpaa2-eth.h534 struct dpaa2_eth_trap_data { struct
633 struct dpaa2_eth_trap_data *trap_data;