/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_span.c | 26 prestera_span_entry_create(struct prestera_port *port, u8 span_id) in prestera_span_entry_create() argument 36 entry->id = span_id; in prestera_span_entry_create() 49 prestera_span_entry_find_by_id(struct prestera_span *span, u8 span_id) in prestera_span_entry_find_by_id() argument 54 if (entry->id == span_id) in prestera_span_entry_find_by_id() 75 static int prestera_span_get(struct prestera_port *port, u8 *span_id) in prestera_span_get() argument 85 *span_id = entry->id; in prestera_span_get() 99 *span_id = new_span_id; in prestera_span_get() 103 static int prestera_span_put(struct prestera_switch *sw, u8 span_id) in prestera_span_put() argument 108 entry = prestera_span_entry_find_by_id(sw->span, span_id); in prestera_span_put() 115 err = prestera_hw_span_release(sw, span_id); in prestera_span_put() [all …]
|
H A D | prestera_hw.h | 248 int prestera_hw_span_get(const struct prestera_port *port, u8 *span_id); 249 int prestera_hw_span_bind(const struct prestera_port *port, u8 span_id, 252 int prestera_hw_span_release(struct prestera_switch *sw, u8 span_id);
|
H A D | prestera_flow.h | 15 int span_id; member
|
H A D | prestera_flow.c | 137 binding->span_id = PRESTERA_SPAN_INVALID_ID; in prestera_flow_block_bind()
|
H A D | prestera_hw.c | 1468 int prestera_hw_span_get(const struct prestera_port *port, u8 *span_id) in prestera_hw_span_get() argument 1482 *span_id = resp.id; in prestera_hw_span_get() 1487 int prestera_hw_span_bind(const struct prestera_port *port, u8 span_id, in prestera_hw_span_bind() argument 1493 .id = span_id, in prestera_hw_span_bind() 1522 int prestera_hw_span_release(struct prestera_switch *sw, u8 span_id) in prestera_hw_span_release() argument 1525 .id = span_id in prestera_hw_span_release()
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_matchall.c | 42 err = mlxsw_sp_span_agent_get(mlxsw_sp, &mall_entry->mirror.span_id, in mlxsw_sp_mall_port_mirror_add() 58 parms.span_id = mall_entry->mirror.span_id; in mlxsw_sp_mall_port_mirror_add() 72 mlxsw_sp_span_agent_put(mlxsw_sp, mall_entry->mirror.span_id); in mlxsw_sp_mall_port_mirror_add() 86 parms.span_id = mall_entry->mirror.span_id; in mlxsw_sp_mall_port_mirror_del() 89 mlxsw_sp_span_agent_put(mlxsw_sp, mall_entry->mirror.span_id); in mlxsw_sp_mall_port_mirror_del() 425 err = mlxsw_sp_span_agent_get(mlxsw_sp, &mall_entry->sample.span_id, in mlxsw_sp2_mall_sample_add() 441 trigger_parms.span_id = mall_entry->sample.span_id; in mlxsw_sp2_mall_sample_add() 455 mlxsw_sp_span_agent_put(mlxsw_sp, mall_entry->sample.span_id); in mlxsw_sp2_mall_sample_add() 468 trigger_parms.span_id = mall_entry->sample.span_id; in mlxsw_sp2_mall_sample_del() 472 mlxsw_sp_span_agent_put(mlxsw_sp, mall_entry->sample.span_id); in mlxsw_sp2_mall_sample_del()
|
H A D | spectrum_acl_flex_actions.c | 162 mlxsw_sp_act_mirror_del(void *priv, u16 local_in_port, int span_id, bool ingress) in mlxsw_sp_act_mirror_del() argument 169 mlxsw_sp_span_agent_put(mlxsw_sp, span_id); in mlxsw_sp_act_mirror_del() 205 static void mlxsw_sp1_act_sampler_del(void *priv, u16 local_port, int span_id, in mlxsw_sp1_act_sampler_del() argument 275 static void mlxsw_sp2_act_sampler_del(void *priv, u16 local_port, int span_id, in mlxsw_sp2_act_sampler_del() argument 286 mlxsw_sp_span_agent_put(mlxsw_sp, span_id); in mlxsw_sp2_act_sampler_del()
|
H A D | spectrum_span.h | 51 int span_id; member 100 void mlxsw_sp_span_agent_put(struct mlxsw_sp *mlxsw_sp, int span_id);
|
H A D | core_acl_flex_actions.h | 27 void (*mirror_del)(void *priv, u16 local_in_port, int span_id, 37 void (*sampler_del)(void *priv, u16 local_port, int span_id,
|
H A D | spectrum_qdisc.c | 1771 int span_id; in mlxsw_sp_qevent_span_configure() local 1774 err = mlxsw_sp_span_agent_get(mlxsw_sp, &span_id, agent_parms); in mlxsw_sp_qevent_span_configure() 1783 trigger_parms.span_id = span_id; in mlxsw_sp_qevent_span_configure() 1795 *p_span_id = span_id; in mlxsw_sp_qevent_span_configure() 1804 mlxsw_sp_span_agent_put(mlxsw_sp, span_id); in mlxsw_sp_qevent_span_configure() 1810 int span_id) in mlxsw_sp_qevent_span_deconfigure() argument 1815 .span_id = span_id, in mlxsw_sp_qevent_span_deconfigure() 1826 mlxsw_sp_span_agent_put(mlxsw_sp, span_id); in mlxsw_sp_qevent_span_deconfigure() 1838 &agent_parms, &mall_entry->mirror.span_id); in mlxsw_sp_qevent_mirror_configure() 1845 mlxsw_sp_qevent_span_deconfigure(mlxsw_sp, qevent_binding, mall_entry->mirror.span_id); in mlxsw_sp_qevent_mirror_deconfigure() [all …]
|
H A D | spectrum_span.c | 920 mlxsw_sp_span_entry_find_by_id(struct mlxsw_sp *mlxsw_sp, int span_id) in mlxsw_sp_span_entry_find_by_id() argument 927 if (refcount_read(&curr->ref_count) && curr->id == span_id) in mlxsw_sp_span_entry_find_by_id() 1103 void mlxsw_sp_span_agent_put(struct mlxsw_sp *mlxsw_sp, int span_id) in mlxsw_sp_span_agent_put() argument 1109 span_entry = mlxsw_sp_span_entry_find_by_id(mlxsw_sp, span_id); in mlxsw_sp_span_agent_put() 1240 trigger_entry->parms.span_id, in __mlxsw_sp_span_trigger_port_bind() 1378 mlxsw_reg_mpagr_pack(mpagr_pl, trigger, trigger_entry->parms.span_id, in mlxsw_sp2_span_trigger_global_bind() 1570 if (!mlxsw_sp_span_entry_find_by_id(mlxsw_sp, parms->span_id)) in mlxsw_sp_span_agent_bind() 1577 if (trigger_entry->parms.span_id != parms->span_id || in mlxsw_sp_span_agent_bind() 1606 parms->span_id))) in mlxsw_sp_span_agent_unbind()
|
H A D | core_acl_flex_actions.c | 1355 int span_id; member 1367 mirror->span_id, in mlxsw_afa_mirror_destroy() 1395 ingress, &mirror->span_id); in mlxsw_afa_mirror_create() 1440 err = mlxsw_afa_block_append_allocated_mirror(block, mirror->span_id); in mlxsw_afa_block_append_mirror() 2158 int span_id; member 2168 sampler->span_id, sampler->ingress); in mlxsw_afa_sampler_destroy() 2196 truncate, ingress, &sampler->span_id, in mlxsw_afa_sampler_create() 2245 err = mlxsw_afa_block_append_allocated_sampler(block, sampler->span_id, in mlxsw_afa_block_append_sampler()
|
H A D | spectrum.h | 1197 int span_id; member 1201 int span_id; member 1206 int span_id; /* Relevant for Spectrum-2 onwards. */ member
|
/linux/include/linux/ceph/ |
H A D | osd_client.h | 302 __le64 span_id; member
|