Lines Matching refs:cmd_pos
3092 struct ecore_mcast_obj *o, struct ecore_pending_mcast_cmd *cmd_pos, in ecore_mcast_hdl_pending_add_e2() argument
3100 &cmd_pos->data.macs_head, link, struct ecore_mcast_mac_elem) { in ecore_mcast_hdl_pending_add_e2()
3103 o->set_one_rule(sc, o, cnt, &cfg_data, cmd_pos->type); in ecore_mcast_hdl_pending_add_e2()
3111 &cmd_pos->data.macs_head); in ecore_mcast_hdl_pending_add_e2()
3123 if (ECORE_LIST_IS_EMPTY(&cmd_pos->data.macs_head)) in ecore_mcast_hdl_pending_add_e2()
3124 cmd_pos->done = TRUE; in ecore_mcast_hdl_pending_add_e2()
3128 struct ecore_mcast_obj *o, struct ecore_pending_mcast_cmd *cmd_pos, in ecore_mcast_hdl_pending_del_e2() argument
3133 while (cmd_pos->data.macs_num) { in ecore_mcast_hdl_pending_del_e2()
3134 o->set_one_rule(sc, o, cnt, NULL, cmd_pos->type); in ecore_mcast_hdl_pending_del_e2()
3138 cmd_pos->data.macs_num--; in ecore_mcast_hdl_pending_del_e2()
3141 cmd_pos->data.macs_num, cnt); in ecore_mcast_hdl_pending_del_e2()
3153 if (!cmd_pos->data.macs_num) in ecore_mcast_hdl_pending_del_e2()
3154 cmd_pos->done = TRUE; in ecore_mcast_hdl_pending_del_e2()
3158 struct ecore_mcast_obj *o, struct ecore_pending_mcast_cmd *cmd_pos, in ecore_mcast_hdl_pending_restore_e2() argument
3161 cmd_pos->data.next_bin = o->hdl_restore(sc, o, cmd_pos->data.next_bin, in ecore_mcast_hdl_pending_restore_e2()
3164 if (cmd_pos->data.next_bin < 0) in ecore_mcast_hdl_pending_restore_e2()
3166 cmd_pos->done = TRUE; in ecore_mcast_hdl_pending_restore_e2()
3169 cmd_pos->data.next_bin++; in ecore_mcast_hdl_pending_restore_e2()
3175 struct ecore_pending_mcast_cmd *cmd_pos, *cmd_pos_n; in ecore_mcast_handle_pending_cmds_e2() local
3179 ECORE_LIST_FOR_EACH_ENTRY_SAFE(cmd_pos, cmd_pos_n, in ecore_mcast_handle_pending_cmds_e2()
3181 switch (cmd_pos->type) { in ecore_mcast_handle_pending_cmds_e2()
3183 ecore_mcast_hdl_pending_add_e2(sc, o, cmd_pos, &cnt); in ecore_mcast_handle_pending_cmds_e2()
3187 ecore_mcast_hdl_pending_del_e2(sc, o, cmd_pos, &cnt); in ecore_mcast_handle_pending_cmds_e2()
3191 ecore_mcast_hdl_pending_restore_e2(sc, o, cmd_pos, in ecore_mcast_handle_pending_cmds_e2()
3196 ECORE_ERR("Unknown command: %d\n", cmd_pos->type); in ecore_mcast_handle_pending_cmds_e2()
3203 if (cmd_pos->done) { in ecore_mcast_handle_pending_cmds_e2()
3204 ECORE_LIST_REMOVE_ENTRY(&cmd_pos->link, in ecore_mcast_handle_pending_cmds_e2()
3206 ECORE_FREE(sc, cmd_pos, cmd_pos->alloc_len); in ecore_mcast_handle_pending_cmds_e2()
3775 struct ecore_pending_mcast_cmd *cmd_pos; in ecore_mcast_handle_pending_cmds_e1() local
3786 cmd_pos = ECORE_LIST_FIRST_ENTRY(&o->pending_cmds_head, in ecore_mcast_handle_pending_cmds_e1()
3789 switch (cmd_pos->type) { in ecore_mcast_handle_pending_cmds_e1()
3791 ECORE_LIST_FOR_EACH_ENTRY(pmac_pos, &cmd_pos->data.macs_head, in ecore_mcast_handle_pending_cmds_e1()
3794 o->set_one_rule(sc, o, cnt, &cfg_data, cmd_pos->type); in ecore_mcast_handle_pending_cmds_e1()
3804 cnt = cmd_pos->data.macs_num; in ecore_mcast_handle_pending_cmds_e1()
3813 ECORE_ERR("Unknown command: %d\n", cmd_pos->type); in ecore_mcast_handle_pending_cmds_e1()
3817 ECORE_LIST_REMOVE_ENTRY(&cmd_pos->link, &o->pending_cmds_head); in ecore_mcast_handle_pending_cmds_e1()
3818 ECORE_FREE(sc, cmd_pos, cmd_pos->alloc_len); in ecore_mcast_handle_pending_cmds_e1()