Lines Matching refs:mall_entry
1762 struct mlxsw_sp_mall_entry *mall_entry, in mlxsw_sp_qevent_span_configure() argument
1830 struct mlxsw_sp_mall_entry *mall_entry, in mlxsw_sp_qevent_mirror_configure() argument
1834 .to_dev = mall_entry->mirror.to_dev, in mlxsw_sp_qevent_mirror_configure()
1837 return mlxsw_sp_qevent_span_configure(mlxsw_sp, mall_entry, qevent_binding, in mlxsw_sp_qevent_mirror_configure()
1838 &agent_parms, &mall_entry->mirror.span_id); in mlxsw_sp_qevent_mirror_configure()
1842 struct mlxsw_sp_mall_entry *mall_entry, in mlxsw_sp_qevent_mirror_deconfigure() argument
1845 mlxsw_sp_qevent_span_deconfigure(mlxsw_sp, qevent_binding, mall_entry->mirror.span_id); in mlxsw_sp_qevent_mirror_deconfigure()
1849 struct mlxsw_sp_mall_entry *mall_entry, in mlxsw_sp_qevent_trap_configure() argument
1864 return mlxsw_sp_qevent_span_configure(mlxsw_sp, mall_entry, qevent_binding, in mlxsw_sp_qevent_trap_configure()
1865 &agent_parms, &mall_entry->trap.span_id); in mlxsw_sp_qevent_trap_configure()
1869 struct mlxsw_sp_mall_entry *mall_entry, in mlxsw_sp_qevent_trap_deconfigure() argument
1872 mlxsw_sp_qevent_span_deconfigure(mlxsw_sp, qevent_binding, mall_entry->trap.span_id); in mlxsw_sp_qevent_trap_deconfigure()
1877 struct mlxsw_sp_mall_entry *mall_entry, in mlxsw_sp_qevent_entry_configure() argument
1881 if (!(BIT(mall_entry->type) & qevent_binding->action_mask)) { in mlxsw_sp_qevent_entry_configure()
1886 switch (mall_entry->type) { in mlxsw_sp_qevent_entry_configure()
1888 return mlxsw_sp_qevent_mirror_configure(mlxsw_sp, mall_entry, qevent_binding); in mlxsw_sp_qevent_entry_configure()
1890 return mlxsw_sp_qevent_trap_configure(mlxsw_sp, mall_entry, qevent_binding); in mlxsw_sp_qevent_entry_configure()
1899 struct mlxsw_sp_mall_entry *mall_entry, in mlxsw_sp_qevent_entry_deconfigure() argument
1902 switch (mall_entry->type) { in mlxsw_sp_qevent_entry_deconfigure()
1904 return mlxsw_sp_qevent_mirror_deconfigure(mlxsw_sp, mall_entry, qevent_binding); in mlxsw_sp_qevent_entry_deconfigure()
1906 return mlxsw_sp_qevent_trap_deconfigure(mlxsw_sp, mall_entry, qevent_binding); in mlxsw_sp_qevent_entry_deconfigure()
1918 struct mlxsw_sp_mall_entry *mall_entry; in mlxsw_sp_qevent_binding_configure() local
1921 list_for_each_entry(mall_entry, &qevent_block->mall_entry_list, list) { in mlxsw_sp_qevent_binding_configure()
1922 err = mlxsw_sp_qevent_entry_configure(qevent_block->mlxsw_sp, mall_entry, in mlxsw_sp_qevent_binding_configure()
1931 list_for_each_entry_continue_reverse(mall_entry, &qevent_block->mall_entry_list, list) in mlxsw_sp_qevent_binding_configure()
1932 mlxsw_sp_qevent_entry_deconfigure(qevent_block->mlxsw_sp, mall_entry, in mlxsw_sp_qevent_binding_configure()
1940 struct mlxsw_sp_mall_entry *mall_entry; in mlxsw_sp_qevent_binding_deconfigure() local
1942 list_for_each_entry(mall_entry, &qevent_block->mall_entry_list, list) in mlxsw_sp_qevent_binding_deconfigure()
1943 mlxsw_sp_qevent_entry_deconfigure(qevent_block->mlxsw_sp, mall_entry, in mlxsw_sp_qevent_binding_deconfigure()
1981 struct mlxsw_sp_mall_entry *mall_entry; in mlxsw_sp_qevent_mall_entry_find() local
1983 list_for_each_entry(mall_entry, &block->mall_entry_list, list) in mlxsw_sp_qevent_mall_entry_find()
1984 if (mall_entry->cookie == cookie) in mlxsw_sp_qevent_mall_entry_find()
1985 return mall_entry; in mlxsw_sp_qevent_mall_entry_find()
1994 struct mlxsw_sp_mall_entry *mall_entry; in mlxsw_sp_qevent_mall_replace() local
2024 mall_entry = kzalloc(sizeof(*mall_entry), GFP_KERNEL); in mlxsw_sp_qevent_mall_replace()
2025 if (!mall_entry) in mlxsw_sp_qevent_mall_replace()
2027 mall_entry->cookie = f->cookie; in mlxsw_sp_qevent_mall_replace()
2030 mall_entry->type = MLXSW_SP_MALL_ACTION_TYPE_MIRROR; in mlxsw_sp_qevent_mall_replace()
2031 mall_entry->mirror.to_dev = act->dev; in mlxsw_sp_qevent_mall_replace()
2033 mall_entry->type = MLXSW_SP_MALL_ACTION_TYPE_TRAP; in mlxsw_sp_qevent_mall_replace()
2040 list_add_tail(&mall_entry->list, &qevent_block->mall_entry_list); in mlxsw_sp_qevent_mall_replace()
2049 list_del(&mall_entry->list); in mlxsw_sp_qevent_mall_replace()
2051 kfree(mall_entry); in mlxsw_sp_qevent_mall_replace()
2058 struct mlxsw_sp_mall_entry *mall_entry; in mlxsw_sp_qevent_mall_destroy() local
2060 mall_entry = mlxsw_sp_qevent_mall_entry_find(qevent_block, f->cookie); in mlxsw_sp_qevent_mall_destroy()
2061 if (!mall_entry) in mlxsw_sp_qevent_mall_destroy()
2066 list_del(&mall_entry->list); in mlxsw_sp_qevent_mall_destroy()
2067 kfree(mall_entry); in mlxsw_sp_qevent_mall_destroy()