Lines Matching refs:cmd_pos
2856 struct bnx2x_mcast_obj *o, struct bnx2x_pending_mcast_cmd *cmd_pos, in bnx2x_mcast_hdl_pending_add_e2() argument
2863 list_for_each_entry_safe(pmac_pos, pmac_pos_n, &cmd_pos->data.macs_head, in bnx2x_mcast_hdl_pending_add_e2()
2867 o->set_one_rule(bp, o, cnt, &cfg_data, cmd_pos->type); in bnx2x_mcast_hdl_pending_add_e2()
2886 if (list_empty(&cmd_pos->data.macs_head)) in bnx2x_mcast_hdl_pending_add_e2()
2887 cmd_pos->done = true; in bnx2x_mcast_hdl_pending_add_e2()
2891 struct bnx2x_mcast_obj *o, struct bnx2x_pending_mcast_cmd *cmd_pos, in bnx2x_mcast_hdl_pending_del_e2() argument
2896 while (cmd_pos->data.macs_num) { in bnx2x_mcast_hdl_pending_del_e2()
2897 o->set_one_rule(bp, o, cnt, NULL, cmd_pos->type); in bnx2x_mcast_hdl_pending_del_e2()
2901 cmd_pos->data.macs_num--; in bnx2x_mcast_hdl_pending_del_e2()
2904 cmd_pos->data.macs_num, cnt); in bnx2x_mcast_hdl_pending_del_e2()
2916 if (!cmd_pos->data.macs_num) in bnx2x_mcast_hdl_pending_del_e2()
2917 cmd_pos->done = true; in bnx2x_mcast_hdl_pending_del_e2()
2921 struct bnx2x_mcast_obj *o, struct bnx2x_pending_mcast_cmd *cmd_pos, in bnx2x_mcast_hdl_pending_restore_e2() argument
2924 cmd_pos->data.next_bin = o->hdl_restore(bp, o, cmd_pos->data.next_bin, in bnx2x_mcast_hdl_pending_restore_e2()
2927 if (cmd_pos->data.next_bin < 0) in bnx2x_mcast_hdl_pending_restore_e2()
2929 cmd_pos->done = true; in bnx2x_mcast_hdl_pending_restore_e2()
2932 cmd_pos->data.next_bin++; in bnx2x_mcast_hdl_pending_restore_e2()
2938 struct bnx2x_pending_mcast_cmd *cmd_pos, *cmd_pos_n; in bnx2x_mcast_handle_pending_cmds_e2() local
2942 list_for_each_entry_safe(cmd_pos, cmd_pos_n, &o->pending_cmds_head, in bnx2x_mcast_handle_pending_cmds_e2()
2944 switch (cmd_pos->type) { in bnx2x_mcast_handle_pending_cmds_e2()
2946 bnx2x_mcast_hdl_pending_add_e2(bp, o, cmd_pos, &cnt); in bnx2x_mcast_handle_pending_cmds_e2()
2950 bnx2x_mcast_hdl_pending_del_e2(bp, o, cmd_pos, &cnt); in bnx2x_mcast_handle_pending_cmds_e2()
2954 bnx2x_mcast_hdl_pending_restore_e2(bp, o, cmd_pos, in bnx2x_mcast_handle_pending_cmds_e2()
2959 BNX2X_ERR("Unknown command: %d\n", cmd_pos->type); in bnx2x_mcast_handle_pending_cmds_e2()
2966 if (cmd_pos->done) { in bnx2x_mcast_handle_pending_cmds_e2()
2967 list_del(&cmd_pos->link); in bnx2x_mcast_handle_pending_cmds_e2()
2968 kfree(cmd_pos); in bnx2x_mcast_handle_pending_cmds_e2()
3533 struct bnx2x_pending_mcast_cmd *cmd_pos; in bnx2x_mcast_handle_pending_cmds_e1() local
3544 cmd_pos = list_first_entry(&o->pending_cmds_head, in bnx2x_mcast_handle_pending_cmds_e1()
3547 switch (cmd_pos->type) { in bnx2x_mcast_handle_pending_cmds_e1()
3549 list_for_each_entry(pmac_pos, &cmd_pos->data.macs_head, link) { in bnx2x_mcast_handle_pending_cmds_e1()
3551 o->set_one_rule(bp, o, cnt, &cfg_data, cmd_pos->type); in bnx2x_mcast_handle_pending_cmds_e1()
3561 cnt = cmd_pos->data.macs_num; in bnx2x_mcast_handle_pending_cmds_e1()
3570 BNX2X_ERR("Unknown command: %d\n", cmd_pos->type); in bnx2x_mcast_handle_pending_cmds_e1()
3574 list_del(&cmd_pos->link); in bnx2x_mcast_handle_pending_cmds_e1()
3575 kfree(cmd_pos); in bnx2x_mcast_handle_pending_cmds_e1()