Lines Matching refs:cmd_pos

2649 	struct bnx2x_mcast_obj *o, struct bnx2x_pending_mcast_cmd *cmd_pos,  in bnx2x_mcast_hdl_pending_add_e2()  argument
2656 list_for_each_entry_safe(pmac_pos, pmac_pos_n, &cmd_pos->data.macs_head, in bnx2x_mcast_hdl_pending_add_e2()
2660 o->set_one_rule(bp, o, cnt, &cfg_data, cmd_pos->type); in bnx2x_mcast_hdl_pending_add_e2()
2679 if (list_empty(&cmd_pos->data.macs_head)) in bnx2x_mcast_hdl_pending_add_e2()
2680 cmd_pos->done = true; in bnx2x_mcast_hdl_pending_add_e2()
2684 struct bnx2x_mcast_obj *o, struct bnx2x_pending_mcast_cmd *cmd_pos, in bnx2x_mcast_hdl_pending_del_e2() argument
2689 while (cmd_pos->data.macs_num) { in bnx2x_mcast_hdl_pending_del_e2()
2690 o->set_one_rule(bp, o, cnt, NULL, cmd_pos->type); in bnx2x_mcast_hdl_pending_del_e2()
2694 cmd_pos->data.macs_num--; in bnx2x_mcast_hdl_pending_del_e2()
2697 cmd_pos->data.macs_num, cnt); in bnx2x_mcast_hdl_pending_del_e2()
2709 if (!cmd_pos->data.macs_num) in bnx2x_mcast_hdl_pending_del_e2()
2710 cmd_pos->done = true; in bnx2x_mcast_hdl_pending_del_e2()
2714 struct bnx2x_mcast_obj *o, struct bnx2x_pending_mcast_cmd *cmd_pos, in bnx2x_mcast_hdl_pending_restore_e2() argument
2717 cmd_pos->data.next_bin = o->hdl_restore(bp, o, cmd_pos->data.next_bin, in bnx2x_mcast_hdl_pending_restore_e2()
2720 if (cmd_pos->data.next_bin < 0) in bnx2x_mcast_hdl_pending_restore_e2()
2722 cmd_pos->done = true; in bnx2x_mcast_hdl_pending_restore_e2()
2725 cmd_pos->data.next_bin++; in bnx2x_mcast_hdl_pending_restore_e2()
2731 struct bnx2x_pending_mcast_cmd *cmd_pos, *cmd_pos_n; in bnx2x_mcast_handle_pending_cmds_e2() local
2735 list_for_each_entry_safe(cmd_pos, cmd_pos_n, &o->pending_cmds_head, in bnx2x_mcast_handle_pending_cmds_e2()
2737 switch (cmd_pos->type) { in bnx2x_mcast_handle_pending_cmds_e2()
2739 bnx2x_mcast_hdl_pending_add_e2(bp, o, cmd_pos, &cnt); in bnx2x_mcast_handle_pending_cmds_e2()
2743 bnx2x_mcast_hdl_pending_del_e2(bp, o, cmd_pos, &cnt); in bnx2x_mcast_handle_pending_cmds_e2()
2747 bnx2x_mcast_hdl_pending_restore_e2(bp, o, cmd_pos, in bnx2x_mcast_handle_pending_cmds_e2()
2752 BNX2X_ERR("Unknown command: %d\n", cmd_pos->type); in bnx2x_mcast_handle_pending_cmds_e2()
2759 if (cmd_pos->done) { in bnx2x_mcast_handle_pending_cmds_e2()
2760 list_del(&cmd_pos->link); in bnx2x_mcast_handle_pending_cmds_e2()
2761 kfree(cmd_pos); in bnx2x_mcast_handle_pending_cmds_e2()
3328 struct bnx2x_pending_mcast_cmd *cmd_pos; in bnx2x_mcast_handle_pending_cmds_e1() local
3340 cmd_pos = list_first_entry(&o->pending_cmds_head, in bnx2x_mcast_handle_pending_cmds_e1()
3343 switch (cmd_pos->type) { in bnx2x_mcast_handle_pending_cmds_e1()
3345 list_for_each_entry(pmac_pos, &cmd_pos->data.macs_head, link) { in bnx2x_mcast_handle_pending_cmds_e1()
3347 o->set_one_rule(bp, o, cnt, &cfg_data, cmd_pos->type); in bnx2x_mcast_handle_pending_cmds_e1()
3357 cnt = cmd_pos->data.macs_num; in bnx2x_mcast_handle_pending_cmds_e1()
3366 BNX2X_ERR("Unknown command: %d\n", cmd_pos->type); in bnx2x_mcast_handle_pending_cmds_e1()
3370 list_del(&cmd_pos->link); in bnx2x_mcast_handle_pending_cmds_e1()
3371 kfree(cmd_pos); in bnx2x_mcast_handle_pending_cmds_e1()