Home
last modified time | relevance | path

Searched refs:trap_data (Results 1 – 7 of 7) sorted by relevance

/linux-5.19.10/drivers/net/ethernet/marvell/prestera/
Dprestera_devlink.c470 struct prestera_trap_data *trap_data; in prestera_devlink_traps_register() local
474 trap_data = kzalloc(sizeof(*trap_data), GFP_KERNEL); in prestera_devlink_traps_register()
475 if (!trap_data) in prestera_devlink_traps_register()
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()
486 trap_data->sw = sw; in prestera_devlink_traps_register()
487 trap_data->traps_count = traps_count; in prestera_devlink_traps_register()
488 sw->trap_data = trap_data; in prestera_devlink_traps_register()
513 kfree(trap_data->trap_items_arr); in prestera_devlink_traps_register()
515 kfree(trap_data); in prestera_devlink_traps_register()
[all …]
Dprestera.h265 struct prestera_trap_data *trap_data; member
/linux-5.19.10/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_vema_iface.c64 struct __opa_veswport_trap trap_data; in opa_vnic_vema_report_event() local
66 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()
/linux-5.19.10/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth-devlink.c57 struct dpaa2_eth_trap_data *dpaa2_eth_trap_data = priv->trap_data; in dpaa2_eth_dl_trap_item_lookup()
261 priv->trap_data = dpaa2_eth_trap_data; in dpaa2_eth_dl_traps_register()
294 priv->trap_data = NULL; in dpaa2_eth_dl_traps_register()
305 kfree(priv->trap_data->trap_items_arr); in dpaa2_eth_dl_traps_unregister()
306 kfree(priv->trap_data); in dpaa2_eth_dl_traps_unregister()
Ddpaa2-eth.h595 struct dpaa2_eth_trap_data *trap_data; member
/linux-5.19.10/drivers/net/netdevsim/
Ddev.c783 nsim_trap_data = nsim_dev->trap_data; in nsim_dev_trap_report()
844 schedule_delayed_work(&nsim_dev->trap_data->trap_report_dw, in nsim_dev_trap_report_work()
881 nsim_dev->trap_data = nsim_trap_data; in nsim_dev_traps_init()
898 INIT_DELAYED_WORK(&nsim_dev->trap_data->trap_report_dw, in nsim_dev_traps_init()
900 schedule_delayed_work(&nsim_dev->trap_data->trap_report_dw, in nsim_dev_traps_init()
925 cancel_delayed_work_sync(&nsim_dev->trap_data->trap_report_dw); in nsim_dev_traps_exit()
932 kfree(nsim_dev->trap_data->trap_policers_cnt_arr); in nsim_dev_traps_exit()
933 kfree(nsim_dev->trap_data->trap_items_arr); in nsim_dev_traps_exit()
934 kfree(nsim_dev->trap_data); in nsim_dev_traps_exit()
1047 struct nsim_trap_data *nsim_trap_data = nsim_dev->trap_data; in nsim_dev_trap_item_lookup()
[all …]
Dnetdevsim.h258 struct nsim_trap_data *trap_data; member