Searched refs:trap_data (Results 1 – 7 of 7) sorted by relevance
452 trap_data = kzalloc(sizeof(*trap_data), GFP_KERNEL); in prestera_devlink_traps_register()453 if (!trap_data) in prestera_devlink_traps_register()459 if (!trap_data->trap_items_arr) { in prestera_devlink_traps_register()464 trap_data->sw = sw; in prestera_devlink_traps_register()466 sw->trap_data = trap_data; in prestera_devlink_traps_register()491 kfree(trap_data->trap_items_arr); in prestera_devlink_traps_register()493 kfree(trap_data); in prestera_devlink_traps_register()500 struct prestera_trap_data *trap_data = sw->trap_data; in prestera_get_trap_item_by_cpu_code() local532 struct prestera_trap_data *trap_data = sw->trap_data; in prestera_devlink_trap_item_lookup() local584 struct prestera_trap_data *trap_data = sw->trap_data; in prestera_devlink_traps_unregister() local[all …]
295 struct prestera_trap_data *trap_data; member
64 struct __opa_veswport_trap trap_data; in opa_vnic_vema_report_event() local66 trap_data.fabric_id = info->vesw.fabric_id; in opa_vnic_vema_report_event()67 trap_data.veswid = info->vesw.vesw_id; in opa_vnic_vema_report_event()68 trap_data.veswportnum = info->vport.port_num; in opa_vnic_vema_report_event()69 trap_data.opaportnum = adapter->port_num; in opa_vnic_vema_report_event()70 trap_data.veswportindex = adapter->vport_num; in opa_vnic_vema_report_event()71 trap_data.opcode = event; in opa_vnic_vema_report_event()73 opa_vnic_vema_send_trap(adapter, &trap_data, info->vport.encap_slid); in opa_vnic_vema_report_event()
48 struct dpaa2_eth_trap_data *dpaa2_eth_trap_data = priv->trap_data; in dpaa2_eth_dl_trap_item_lookup()243 priv->trap_data = dpaa2_eth_trap_data; in dpaa2_eth_dl_traps_register()276 priv->trap_data = NULL; in dpaa2_eth_dl_traps_register()287 kfree(priv->trap_data->trap_items_arr); in dpaa2_eth_dl_traps_unregister()288 kfree(priv->trap_data); in dpaa2_eth_dl_traps_unregister()
633 struct dpaa2_eth_trap_data *trap_data; member
789 nsim_trap_data = nsim_dev->trap_data; in nsim_dev_trap_report()840 &nsim_dev->trap_data->trap_report_dw, 1); in nsim_dev_trap_report_work()856 &nsim_dev->trap_data->trap_report_dw, in nsim_dev_trap_report_work()893 nsim_dev->trap_data = nsim_trap_data; in nsim_dev_traps_init()913 &nsim_dev->trap_data->trap_report_dw, in nsim_dev_traps_init()945 kfree(nsim_dev->trap_data->trap_policers_cnt_arr); in nsim_dev_traps_exit()946 kfree(nsim_dev->trap_data->trap_items_arr); in nsim_dev_traps_exit()947 kfree(nsim_dev->trap_data); in nsim_dev_traps_exit()1092 spin_lock(&nsim_dev->trap_data->trap_lock); in nsim_dev_devlink_trap_action_set()1094 spin_unlock(&nsim_dev->trap_data->trap_lock); in nsim_dev_devlink_trap_action_set()[all …]
281 struct nsim_trap_data *trap_data; member