Lines Matching refs:qevent_binding

1326 					  struct mlxsw_sp_qevent_binding *qevent_binding,  in mlxsw_sp_qevent_span_configure()  argument
1330 struct mlxsw_sp_port *mlxsw_sp_port = qevent_binding->mlxsw_sp_port; in mlxsw_sp_qevent_span_configure()
1344 err = mlxsw_sp_span_agent_bind(mlxsw_sp, qevent_binding->span_trigger, mlxsw_sp_port, in mlxsw_sp_qevent_span_configure()
1349 err = mlxsw_sp_span_trigger_enable(mlxsw_sp_port, qevent_binding->span_trigger, in mlxsw_sp_qevent_span_configure()
1350 qevent_binding->tclass_num); in mlxsw_sp_qevent_span_configure()
1358 mlxsw_sp_span_agent_unbind(mlxsw_sp, qevent_binding->span_trigger, mlxsw_sp_port, in mlxsw_sp_qevent_span_configure()
1368 struct mlxsw_sp_qevent_binding *qevent_binding, in mlxsw_sp_qevent_span_deconfigure() argument
1371 struct mlxsw_sp_port *mlxsw_sp_port = qevent_binding->mlxsw_sp_port; in mlxsw_sp_qevent_span_deconfigure()
1376 mlxsw_sp_span_trigger_disable(mlxsw_sp_port, qevent_binding->span_trigger, in mlxsw_sp_qevent_span_deconfigure()
1377 qevent_binding->tclass_num); in mlxsw_sp_qevent_span_deconfigure()
1378 mlxsw_sp_span_agent_unbind(mlxsw_sp, qevent_binding->span_trigger, mlxsw_sp_port, in mlxsw_sp_qevent_span_deconfigure()
1386 struct mlxsw_sp_qevent_binding *qevent_binding) in mlxsw_sp_qevent_mirror_configure() argument
1392 return mlxsw_sp_qevent_span_configure(mlxsw_sp, mall_entry, qevent_binding, in mlxsw_sp_qevent_mirror_configure()
1398 struct mlxsw_sp_qevent_binding *qevent_binding) in mlxsw_sp_qevent_mirror_deconfigure() argument
1400 mlxsw_sp_qevent_span_deconfigure(mlxsw_sp, qevent_binding, mall_entry->mirror.span_id); in mlxsw_sp_qevent_mirror_deconfigure()
1405 struct mlxsw_sp_qevent_binding *qevent_binding) in mlxsw_sp_qevent_trap_configure() argument
1417 return mlxsw_sp_qevent_span_configure(mlxsw_sp, mall_entry, qevent_binding, in mlxsw_sp_qevent_trap_configure()
1423 struct mlxsw_sp_qevent_binding *qevent_binding) in mlxsw_sp_qevent_trap_deconfigure() argument
1425 mlxsw_sp_qevent_span_deconfigure(mlxsw_sp, qevent_binding, mall_entry->trap.span_id); in mlxsw_sp_qevent_trap_deconfigure()
1430 struct mlxsw_sp_qevent_binding *qevent_binding) in mlxsw_sp_qevent_entry_configure() argument
1434 return mlxsw_sp_qevent_mirror_configure(mlxsw_sp, mall_entry, qevent_binding); in mlxsw_sp_qevent_entry_configure()
1436 return mlxsw_sp_qevent_trap_configure(mlxsw_sp, mall_entry, qevent_binding); in mlxsw_sp_qevent_entry_configure()
1446 struct mlxsw_sp_qevent_binding *qevent_binding) in mlxsw_sp_qevent_entry_deconfigure() argument
1450 return mlxsw_sp_qevent_mirror_deconfigure(mlxsw_sp, mall_entry, qevent_binding); in mlxsw_sp_qevent_entry_deconfigure()
1452 return mlxsw_sp_qevent_trap_deconfigure(mlxsw_sp, mall_entry, qevent_binding); in mlxsw_sp_qevent_entry_deconfigure()
1460 struct mlxsw_sp_qevent_binding *qevent_binding) in mlxsw_sp_qevent_binding_configure() argument
1467 qevent_binding); in mlxsw_sp_qevent_binding_configure()
1477 qevent_binding); in mlxsw_sp_qevent_binding_configure()
1482 struct mlxsw_sp_qevent_binding *qevent_binding) in mlxsw_sp_qevent_binding_deconfigure() argument
1488 qevent_binding); in mlxsw_sp_qevent_binding_deconfigure()
1493 struct mlxsw_sp_qevent_binding *qevent_binding; in mlxsw_sp_qevent_block_configure() local
1496 list_for_each_entry(qevent_binding, &qevent_block->binding_list, list) { in mlxsw_sp_qevent_block_configure()
1497 err = mlxsw_sp_qevent_binding_configure(qevent_block, qevent_binding); in mlxsw_sp_qevent_block_configure()
1505 list_for_each_entry_continue_reverse(qevent_binding, &qevent_block->binding_list, list) in mlxsw_sp_qevent_block_configure()
1506 mlxsw_sp_qevent_binding_deconfigure(qevent_block, qevent_binding); in mlxsw_sp_qevent_block_configure()
1512 struct mlxsw_sp_qevent_binding *qevent_binding; in mlxsw_sp_qevent_block_deconfigure() local
1514 list_for_each_entry(qevent_binding, &qevent_block->binding_list, list) in mlxsw_sp_qevent_block_deconfigure()
1515 mlxsw_sp_qevent_binding_deconfigure(qevent_block, qevent_binding); in mlxsw_sp_qevent_block_deconfigure()
1697 struct mlxsw_sp_qevent_binding *qevent_binding; in mlxsw_sp_qevent_binding_lookup() local
1699 list_for_each_entry(qevent_binding, &block->binding_list, list) in mlxsw_sp_qevent_binding_lookup()
1700 if (qevent_binding->mlxsw_sp_port == mlxsw_sp_port && in mlxsw_sp_qevent_binding_lookup()
1701 qevent_binding->handle == handle && in mlxsw_sp_qevent_binding_lookup()
1702 qevent_binding->span_trigger == span_trigger) in mlxsw_sp_qevent_binding_lookup()
1703 return qevent_binding; in mlxsw_sp_qevent_binding_lookup()
1712 struct mlxsw_sp_qevent_binding *qevent_binding; in mlxsw_sp_setup_tc_block_qevent_bind() local
1749 qevent_binding = mlxsw_sp_qevent_binding_create(mlxsw_sp_port, f->sch->handle, in mlxsw_sp_setup_tc_block_qevent_bind()
1751 if (IS_ERR(qevent_binding)) { in mlxsw_sp_setup_tc_block_qevent_bind()
1752 err = PTR_ERR(qevent_binding); in mlxsw_sp_setup_tc_block_qevent_bind()
1756 err = mlxsw_sp_qevent_binding_configure(qevent_block, qevent_binding); in mlxsw_sp_setup_tc_block_qevent_bind()
1760 list_add(&qevent_binding->list, &qevent_block->binding_list); in mlxsw_sp_setup_tc_block_qevent_bind()
1770 mlxsw_sp_qevent_binding_destroy(qevent_binding); in mlxsw_sp_setup_tc_block_qevent_bind()
1784 struct mlxsw_sp_qevent_binding *qevent_binding; in mlxsw_sp_setup_tc_block_qevent_unbind() local
1793 qevent_binding = mlxsw_sp_qevent_binding_lookup(qevent_block, mlxsw_sp_port, f->sch->handle, in mlxsw_sp_setup_tc_block_qevent_unbind()
1795 if (!qevent_binding) in mlxsw_sp_setup_tc_block_qevent_unbind()
1798 list_del(&qevent_binding->list); in mlxsw_sp_setup_tc_block_qevent_unbind()
1799 mlxsw_sp_qevent_binding_deconfigure(qevent_block, qevent_binding); in mlxsw_sp_setup_tc_block_qevent_unbind()
1800 mlxsw_sp_qevent_binding_destroy(qevent_binding); in mlxsw_sp_setup_tc_block_qevent_unbind()