Lines Matching refs:cmd_pos

3090 	struct ecore_mcast_obj *o, struct ecore_pending_mcast_cmd *cmd_pos,  in ecore_mcast_hdl_pending_add_e2()  argument
3098 &cmd_pos->data.macs_head, link, struct ecore_mcast_mac_elem) { in ecore_mcast_hdl_pending_add_e2()
3101 o->set_one_rule(sc, o, cnt, &cfg_data, cmd_pos->type); in ecore_mcast_hdl_pending_add_e2()
3109 &cmd_pos->data.macs_head); in ecore_mcast_hdl_pending_add_e2()
3121 if (ECORE_LIST_IS_EMPTY(&cmd_pos->data.macs_head)) in ecore_mcast_hdl_pending_add_e2()
3122 cmd_pos->done = TRUE; in ecore_mcast_hdl_pending_add_e2()
3126 struct ecore_mcast_obj *o, struct ecore_pending_mcast_cmd *cmd_pos, in ecore_mcast_hdl_pending_del_e2() argument
3131 while (cmd_pos->data.macs_num) { in ecore_mcast_hdl_pending_del_e2()
3132 o->set_one_rule(sc, o, cnt, NULL, cmd_pos->type); in ecore_mcast_hdl_pending_del_e2()
3136 cmd_pos->data.macs_num--; in ecore_mcast_hdl_pending_del_e2()
3139 cmd_pos->data.macs_num, cnt); in ecore_mcast_hdl_pending_del_e2()
3151 if (!cmd_pos->data.macs_num) in ecore_mcast_hdl_pending_del_e2()
3152 cmd_pos->done = TRUE; in ecore_mcast_hdl_pending_del_e2()
3156 struct ecore_mcast_obj *o, struct ecore_pending_mcast_cmd *cmd_pos, in ecore_mcast_hdl_pending_restore_e2() argument
3159 cmd_pos->data.next_bin = o->hdl_restore(sc, o, cmd_pos->data.next_bin, in ecore_mcast_hdl_pending_restore_e2()
3162 if (cmd_pos->data.next_bin < 0) in ecore_mcast_hdl_pending_restore_e2()
3164 cmd_pos->done = TRUE; in ecore_mcast_hdl_pending_restore_e2()
3167 cmd_pos->data.next_bin++; in ecore_mcast_hdl_pending_restore_e2()
3173 struct ecore_pending_mcast_cmd *cmd_pos, *cmd_pos_n; in ecore_mcast_handle_pending_cmds_e2() local
3177 ECORE_LIST_FOR_EACH_ENTRY_SAFE(cmd_pos, cmd_pos_n, in ecore_mcast_handle_pending_cmds_e2()
3179 switch (cmd_pos->type) { in ecore_mcast_handle_pending_cmds_e2()
3181 ecore_mcast_hdl_pending_add_e2(sc, o, cmd_pos, &cnt); in ecore_mcast_handle_pending_cmds_e2()
3185 ecore_mcast_hdl_pending_del_e2(sc, o, cmd_pos, &cnt); in ecore_mcast_handle_pending_cmds_e2()
3189 ecore_mcast_hdl_pending_restore_e2(sc, o, cmd_pos, in ecore_mcast_handle_pending_cmds_e2()
3194 ECORE_ERR("Unknown command: %d\n", cmd_pos->type); in ecore_mcast_handle_pending_cmds_e2()
3201 if (cmd_pos->done) { in ecore_mcast_handle_pending_cmds_e2()
3202 ECORE_LIST_REMOVE_ENTRY(&cmd_pos->link, in ecore_mcast_handle_pending_cmds_e2()
3204 ECORE_FREE(sc, cmd_pos, cmd_pos->alloc_len); in ecore_mcast_handle_pending_cmds_e2()
3773 struct ecore_pending_mcast_cmd *cmd_pos; in ecore_mcast_handle_pending_cmds_e1() local
3784 cmd_pos = ECORE_LIST_FIRST_ENTRY(&o->pending_cmds_head, in ecore_mcast_handle_pending_cmds_e1()
3787 switch (cmd_pos->type) { in ecore_mcast_handle_pending_cmds_e1()
3789 ECORE_LIST_FOR_EACH_ENTRY(pmac_pos, &cmd_pos->data.macs_head, in ecore_mcast_handle_pending_cmds_e1()
3792 o->set_one_rule(sc, o, cnt, &cfg_data, cmd_pos->type); in ecore_mcast_handle_pending_cmds_e1()
3802 cnt = cmd_pos->data.macs_num; in ecore_mcast_handle_pending_cmds_e1()
3811 ECORE_ERR("Unknown command: %d\n", cmd_pos->type); in ecore_mcast_handle_pending_cmds_e1()
3815 ECORE_LIST_REMOVE_ENTRY(&cmd_pos->link, &o->pending_cmds_head); in ecore_mcast_handle_pending_cmds_e1()
3816 ECORE_FREE(sc, cmd_pos, cmd_pos->alloc_len); in ecore_mcast_handle_pending_cmds_e1()