Searched refs:trap_items_arr (Results 1 – 5 of 5) sorted by relevance
62 return &dpaa2_eth_trap_data->trap_items_arr[i]; in dpaa2_eth_dl_trap_item_lookup()265 dpaa2_eth_trap_data->trap_items_arr = kcalloc(ARRAY_SIZE(dpaa2_eth_traps_arr), in dpaa2_eth_dl_traps_register()268 if (!dpaa2_eth_trap_data->trap_items_arr) { in dpaa2_eth_dl_traps_register()293 kfree(dpaa2_eth_trap_data->trap_items_arr); in dpaa2_eth_dl_traps_register()307 kfree(priv->trap_data->trap_items_arr); in dpaa2_eth_dl_traps_unregister()
486 struct dpaa2_eth_trap_item *trap_items_arr; member
1047 if (trap->trap_items_arr[i].trap.id == id) in mlxsw_sp_trap_item_lookup()1048 return &trap->trap_items_arr[i]; in mlxsw_sp_trap_item_lookup()1287 trap->trap_items_arr = kcalloc(traps_count, elem_size, GFP_KERNEL); in mlxsw_sp_trap_items_arr_init()1288 if (!trap->trap_items_arr) in mlxsw_sp_trap_items_arr_init()1291 memcpy(trap->trap_items_arr, mlxsw_sp_trap_items_arr, in mlxsw_sp_trap_items_arr_init()1293 memcpy(trap->trap_items_arr + common_traps_count, in mlxsw_sp_trap_items_arr_init()1303 kfree(mlxsw_sp->trap->trap_items_arr); in mlxsw_sp_trap_items_arr_fini()1318 trap_item = &trap->trap_items_arr[i]; in mlxsw_sp_traps_init()1329 trap_item = &trap->trap_items_arr[i]; in mlxsw_sp_traps_init()1345 trap_item = &trap->trap_items_arr[i]; in mlxsw_sp_traps_fini()
17 struct mlxsw_sp_trap_item *trap_items_arr; member
408 struct nsim_trap_item *trap_items_arr; member557 nsim_trap_item = &nsim_trap_data->trap_items_arr[i]; in nsim_dev_trap_report()621 nsim_trap_data->trap_items_arr = kcalloc(ARRAY_SIZE(nsim_traps_arr), in nsim_dev_traps_init()624 if (!nsim_trap_data->trap_items_arr) { in nsim_dev_traps_init()676 kfree(nsim_trap_data->trap_items_arr); in nsim_dev_traps_init()694 kfree(nsim_dev->trap_data->trap_items_arr); in nsim_dev_traps_exit()798 return &nsim_trap_data->trap_items_arr[i]; in nsim_dev_trap_item_lookup()