Lines Matching refs:cmd_pos
2609 struct bnx2x_mcast_obj *o, struct bnx2x_pending_mcast_cmd *cmd_pos, in bnx2x_mcast_hdl_pending_add_e2() argument
2616 list_for_each_entry_safe(pmac_pos, pmac_pos_n, &cmd_pos->data.macs_head, in bnx2x_mcast_hdl_pending_add_e2()
2620 o->set_one_rule(bp, o, cnt, &cfg_data, cmd_pos->type); in bnx2x_mcast_hdl_pending_add_e2()
2639 if (list_empty(&cmd_pos->data.macs_head)) in bnx2x_mcast_hdl_pending_add_e2()
2640 cmd_pos->done = true; in bnx2x_mcast_hdl_pending_add_e2()
2644 struct bnx2x_mcast_obj *o, struct bnx2x_pending_mcast_cmd *cmd_pos, in bnx2x_mcast_hdl_pending_del_e2() argument
2649 while (cmd_pos->data.macs_num) { in bnx2x_mcast_hdl_pending_del_e2()
2650 o->set_one_rule(bp, o, cnt, NULL, cmd_pos->type); in bnx2x_mcast_hdl_pending_del_e2()
2654 cmd_pos->data.macs_num--; in bnx2x_mcast_hdl_pending_del_e2()
2657 cmd_pos->data.macs_num, cnt); in bnx2x_mcast_hdl_pending_del_e2()
2669 if (!cmd_pos->data.macs_num) in bnx2x_mcast_hdl_pending_del_e2()
2670 cmd_pos->done = true; in bnx2x_mcast_hdl_pending_del_e2()
2674 struct bnx2x_mcast_obj *o, struct bnx2x_pending_mcast_cmd *cmd_pos, in bnx2x_mcast_hdl_pending_restore_e2() argument
2677 cmd_pos->data.next_bin = o->hdl_restore(bp, o, cmd_pos->data.next_bin, in bnx2x_mcast_hdl_pending_restore_e2()
2680 if (cmd_pos->data.next_bin < 0) in bnx2x_mcast_hdl_pending_restore_e2()
2682 cmd_pos->done = true; in bnx2x_mcast_hdl_pending_restore_e2()
2685 cmd_pos->data.next_bin++; in bnx2x_mcast_hdl_pending_restore_e2()
2691 struct bnx2x_pending_mcast_cmd *cmd_pos, *cmd_pos_n; in bnx2x_mcast_handle_pending_cmds_e2() local
2695 list_for_each_entry_safe(cmd_pos, cmd_pos_n, &o->pending_cmds_head, in bnx2x_mcast_handle_pending_cmds_e2()
2697 switch (cmd_pos->type) { in bnx2x_mcast_handle_pending_cmds_e2()
2699 bnx2x_mcast_hdl_pending_add_e2(bp, o, cmd_pos, &cnt); in bnx2x_mcast_handle_pending_cmds_e2()
2703 bnx2x_mcast_hdl_pending_del_e2(bp, o, cmd_pos, &cnt); in bnx2x_mcast_handle_pending_cmds_e2()
2707 bnx2x_mcast_hdl_pending_restore_e2(bp, o, cmd_pos, in bnx2x_mcast_handle_pending_cmds_e2()
2712 BNX2X_ERR("Unknown command: %d\n", cmd_pos->type); in bnx2x_mcast_handle_pending_cmds_e2()
2719 if (cmd_pos->done) { in bnx2x_mcast_handle_pending_cmds_e2()
2720 list_del(&cmd_pos->link); in bnx2x_mcast_handle_pending_cmds_e2()
2721 kfree(cmd_pos); in bnx2x_mcast_handle_pending_cmds_e2()
3286 struct bnx2x_pending_mcast_cmd *cmd_pos; in bnx2x_mcast_handle_pending_cmds_e1() local
3297 cmd_pos = list_first_entry(&o->pending_cmds_head, in bnx2x_mcast_handle_pending_cmds_e1()
3300 switch (cmd_pos->type) { in bnx2x_mcast_handle_pending_cmds_e1()
3302 list_for_each_entry(pmac_pos, &cmd_pos->data.macs_head, link) { in bnx2x_mcast_handle_pending_cmds_e1()
3304 o->set_one_rule(bp, o, cnt, &cfg_data, cmd_pos->type); in bnx2x_mcast_handle_pending_cmds_e1()
3314 cnt = cmd_pos->data.macs_num; in bnx2x_mcast_handle_pending_cmds_e1()
3323 BNX2X_ERR("Unknown command: %d\n", cmd_pos->type); in bnx2x_mcast_handle_pending_cmds_e1()
3327 list_del(&cmd_pos->link); in bnx2x_mcast_handle_pending_cmds_e1()
3328 kfree(cmd_pos); in bnx2x_mcast_handle_pending_cmds_e1()