Home
last modified time | relevance | path

Searched refs:trap_items_arr (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-eth-devlink.c53 return &dpaa2_eth_trap_data->trap_items_arr[i]; in dpaa2_eth_dl_trap_item_lookup()
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()
287 kfree(priv->trap_data->trap_items_arr); in dpaa2_eth_dl_traps_unregister()
H A Ddpaa2-eth.h535 struct dpaa2_eth_trap_item *trap_items_arr; member
/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_devlink.c128 struct prestera_trap_item *trap_items_arr; member
456 trap_data->trap_items_arr = kcalloc(traps_count, in prestera_devlink_traps_register()
459 if (!trap_data->trap_items_arr) { in prestera_devlink_traps_register()
491 kfree(trap_data->trap_items_arr); in prestera_devlink_traps_register()
507 return &trap_data->trap_items_arr[i]; in prestera_get_trap_item_by_cpu_code()
537 return &trap_data->trap_items_arr[i]; in prestera_devlink_trap_item_lookup()
596 kfree(trap_data->trap_items_arr); in prestera_devlink_traps_unregister()
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_trap.h17 struct mlxsw_sp_trap_item *trap_items_arr; member
H A Dspectrum_trap.c1225 if (trap->trap_items_arr[i].trap.id == id) in mlxsw_sp_trap_item_lookup()
1226 return &trap->trap_items_arr[i]; in mlxsw_sp_trap_item_lookup()
1464 trap->trap_items_arr = kcalloc(traps_count, elem_size, GFP_KERNEL); in mlxsw_sp_trap_items_arr_init()
1465 if (!trap->trap_items_arr) in mlxsw_sp_trap_items_arr_init()
1468 memcpy(trap->trap_items_arr, mlxsw_sp_trap_items_arr, in mlxsw_sp_trap_items_arr_init()
1470 memcpy(trap->trap_items_arr + common_traps_count, in mlxsw_sp_trap_items_arr_init()
1480 kfree(mlxsw_sp->trap->trap_items_arr); in mlxsw_sp_trap_items_arr_fini()
1495 trap_item = &trap->trap_items_arr[i]; in mlxsw_sp_traps_init()
1506 trap_item = &trap->trap_items_arr[i]; in mlxsw_sp_traps_init()
1522 trap_item = &trap->trap_items_arr[i]; in mlxsw_sp_traps_fini()
/openbmc/linux/drivers/net/netdevsim/
H A Ddev.c651 struct nsim_trap_item *trap_items_arr; member
801 nsim_trap_item = &nsim_trap_data->trap_items_arr[i]; in nsim_dev_trap_report()
871 nsim_trap_data->trap_items_arr = kcalloc(ARRAY_SIZE(nsim_traps_arr), in nsim_dev_traps_init()
874 if (!nsim_trap_data->trap_items_arr) { in nsim_dev_traps_init()
927 kfree(nsim_trap_data->trap_items_arr); in nsim_dev_traps_init()
946 kfree(nsim_dev->trap_data->trap_items_arr); in nsim_dev_traps_exit()
1056 return &nsim_trap_data->trap_items_arr[i]; in nsim_dev_trap_item_lookup()