Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/net/ethernet/marvell/prestera/
Dprestera_devlink.c128 struct prestera_trap_item *trap_items_arr; member
478 trap_data->trap_items_arr = kcalloc(traps_count, in prestera_devlink_traps_register()
481 if (!trap_data->trap_items_arr) { in prestera_devlink_traps_register()
513 kfree(trap_data->trap_items_arr); in prestera_devlink_traps_register()
529 return &trap_data->trap_items_arr[i]; in prestera_get_trap_item_by_cpu_code()
559 return &trap_data->trap_items_arr[i]; in prestera_devlink_trap_item_lookup()
618 kfree(trap_data->trap_items_arr); in prestera_devlink_traps_unregister()
/linux-5.19.10/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth-devlink.c62 return &dpaa2_eth_trap_data->trap_items_arr[i]; in dpaa2_eth_dl_trap_item_lookup()
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()
305 kfree(priv->trap_data->trap_items_arr); in dpaa2_eth_dl_traps_unregister()
Ddpaa2-eth.h501 struct dpaa2_eth_trap_item *trap_items_arr; member
/linux-5.19.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_trap.h17 struct mlxsw_sp_trap_item *trap_items_arr; member
Dspectrum_trap.c1200 if (trap->trap_items_arr[i].trap.id == id) in mlxsw_sp_trap_item_lookup()
1201 return &trap->trap_items_arr[i]; in mlxsw_sp_trap_item_lookup()
1440 trap->trap_items_arr = kcalloc(traps_count, elem_size, GFP_KERNEL); in mlxsw_sp_trap_items_arr_init()
1441 if (!trap->trap_items_arr) in mlxsw_sp_trap_items_arr_init()
1444 memcpy(trap->trap_items_arr, mlxsw_sp_trap_items_arr, in mlxsw_sp_trap_items_arr_init()
1446 memcpy(trap->trap_items_arr + common_traps_count, in mlxsw_sp_trap_items_arr_init()
1456 kfree(mlxsw_sp->trap->trap_items_arr); in mlxsw_sp_trap_items_arr_fini()
1471 trap_item = &trap->trap_items_arr[i]; in mlxsw_sp_traps_init()
1482 trap_item = &trap->trap_items_arr[i]; in mlxsw_sp_traps_init()
1498 trap_item = &trap->trap_items_arr[i]; in mlxsw_sp_traps_fini()
/linux-5.19.10/drivers/net/netdevsim/
Ddev.c645 struct nsim_trap_item *trap_items_arr; member
795 nsim_trap_item = &nsim_trap_data->trap_items_arr[i]; in nsim_dev_trap_report()
859 nsim_trap_data->trap_items_arr = kcalloc(ARRAY_SIZE(nsim_traps_arr), in nsim_dev_traps_init()
862 if (!nsim_trap_data->trap_items_arr) { in nsim_dev_traps_init()
914 kfree(nsim_trap_data->trap_items_arr); in nsim_dev_traps_init()
933 kfree(nsim_dev->trap_data->trap_items_arr); in nsim_dev_traps_exit()
1052 return &nsim_trap_data->trap_items_arr[i]; in nsim_dev_trap_item_lookup()