Lines Matching refs:cmd_pos
2933 struct bnx2x_mcast_obj *o, struct bnx2x_pending_mcast_cmd *cmd_pos, in bnx2x_mcast_hdl_pending_add_e2() argument
2940 list_for_each_entry_safe(pmac_pos, pmac_pos_n, &cmd_pos->data.macs_head, in bnx2x_mcast_hdl_pending_add_e2()
2944 o->set_one_rule(bp, o, cnt, &cfg_data, cmd_pos->type); in bnx2x_mcast_hdl_pending_add_e2()
2963 if (list_empty(&cmd_pos->data.macs_head)) in bnx2x_mcast_hdl_pending_add_e2()
2964 cmd_pos->done = true; in bnx2x_mcast_hdl_pending_add_e2()
2968 struct bnx2x_mcast_obj *o, struct bnx2x_pending_mcast_cmd *cmd_pos, in bnx2x_mcast_hdl_pending_del_e2() argument
2973 while (cmd_pos->data.macs_num) { in bnx2x_mcast_hdl_pending_del_e2()
2974 o->set_one_rule(bp, o, cnt, NULL, cmd_pos->type); in bnx2x_mcast_hdl_pending_del_e2()
2978 cmd_pos->data.macs_num--; in bnx2x_mcast_hdl_pending_del_e2()
2981 cmd_pos->data.macs_num, cnt); in bnx2x_mcast_hdl_pending_del_e2()
2993 if (!cmd_pos->data.macs_num) in bnx2x_mcast_hdl_pending_del_e2()
2994 cmd_pos->done = true; in bnx2x_mcast_hdl_pending_del_e2()
2998 struct bnx2x_mcast_obj *o, struct bnx2x_pending_mcast_cmd *cmd_pos, in bnx2x_mcast_hdl_pending_restore_e2() argument
3001 cmd_pos->data.next_bin = o->hdl_restore(bp, o, cmd_pos->data.next_bin, in bnx2x_mcast_hdl_pending_restore_e2()
3004 if (cmd_pos->data.next_bin < 0) in bnx2x_mcast_hdl_pending_restore_e2()
3006 cmd_pos->done = true; in bnx2x_mcast_hdl_pending_restore_e2()
3009 cmd_pos->data.next_bin++; in bnx2x_mcast_hdl_pending_restore_e2()
3015 struct bnx2x_pending_mcast_cmd *cmd_pos) in bnx2x_mcast_hdl_pending_set_e2_convert() argument
3028 list_for_each_entry_safe(pmac_pos, pmac_pos_n, &cmd_pos->data.macs_head, in bnx2x_mcast_hdl_pending_set_e2_convert()
3043 cmd_pos->set_convert = true; in bnx2x_mcast_hdl_pending_set_e2_convert()
3044 INIT_LIST_HEAD(&cmd_pos->data.macs_head); in bnx2x_mcast_hdl_pending_set_e2_convert()
3045 elem_group = list_first_entry(&cmd_pos->group_head, in bnx2x_mcast_hdl_pending_set_e2_convert()
3059 list_add_tail(&p_item->link , &cmd_pos->data.macs_head); in bnx2x_mcast_hdl_pending_set_e2_convert()
3082 struct bnx2x_pending_mcast_cmd *cmd_pos, in bnx2x_mcast_hdl_pending_set_e2() argument
3095 if (!cmd_pos->set_convert) in bnx2x_mcast_hdl_pending_set_e2()
3096 bnx2x_mcast_hdl_pending_set_e2_convert(bp, o, cmd_pos); in bnx2x_mcast_hdl_pending_set_e2()
3098 list_for_each_entry_safe(p_item, p_item_n, &cmd_pos->data.macs_head, in bnx2x_mcast_hdl_pending_set_e2()
3112 if (list_empty(&cmd_pos->data.macs_head)) in bnx2x_mcast_hdl_pending_set_e2()
3113 cmd_pos->done = true; in bnx2x_mcast_hdl_pending_set_e2()
3119 struct bnx2x_pending_mcast_cmd *cmd_pos, *cmd_pos_n; in bnx2x_mcast_handle_pending_cmds_e2() local
3123 list_for_each_entry_safe(cmd_pos, cmd_pos_n, &o->pending_cmds_head, in bnx2x_mcast_handle_pending_cmds_e2()
3125 switch (cmd_pos->type) { in bnx2x_mcast_handle_pending_cmds_e2()
3127 bnx2x_mcast_hdl_pending_add_e2(bp, o, cmd_pos, &cnt); in bnx2x_mcast_handle_pending_cmds_e2()
3131 bnx2x_mcast_hdl_pending_del_e2(bp, o, cmd_pos, &cnt); in bnx2x_mcast_handle_pending_cmds_e2()
3135 bnx2x_mcast_hdl_pending_restore_e2(bp, o, cmd_pos, in bnx2x_mcast_handle_pending_cmds_e2()
3140 bnx2x_mcast_hdl_pending_set_e2(bp, o, cmd_pos, &cnt); in bnx2x_mcast_handle_pending_cmds_e2()
3144 BNX2X_ERR("Unknown command: %d\n", cmd_pos->type); in bnx2x_mcast_handle_pending_cmds_e2()
3151 if (cmd_pos->done) { in bnx2x_mcast_handle_pending_cmds_e2()
3152 list_del(&cmd_pos->link); in bnx2x_mcast_handle_pending_cmds_e2()
3153 bnx2x_free_groups(&cmd_pos->group_head); in bnx2x_mcast_handle_pending_cmds_e2()
3154 kfree(cmd_pos); in bnx2x_mcast_handle_pending_cmds_e2()
3750 struct bnx2x_pending_mcast_cmd *cmd_pos; in bnx2x_mcast_handle_pending_cmds_e1() local
3761 cmd_pos = list_first_entry(&o->pending_cmds_head, in bnx2x_mcast_handle_pending_cmds_e1()
3764 switch (cmd_pos->type) { in bnx2x_mcast_handle_pending_cmds_e1()
3766 list_for_each_entry(pmac_pos, &cmd_pos->data.macs_head, link) { in bnx2x_mcast_handle_pending_cmds_e1()
3768 o->set_one_rule(bp, o, cnt, &cfg_data, cmd_pos->type); in bnx2x_mcast_handle_pending_cmds_e1()
3778 cnt = cmd_pos->data.macs_num; in bnx2x_mcast_handle_pending_cmds_e1()
3787 BNX2X_ERR("Unknown command: %d\n", cmd_pos->type); in bnx2x_mcast_handle_pending_cmds_e1()
3791 list_del(&cmd_pos->link); in bnx2x_mcast_handle_pending_cmds_e1()
3792 bnx2x_free_groups(&cmd_pos->group_head); in bnx2x_mcast_handle_pending_cmds_e1()
3793 kfree(cmd_pos); in bnx2x_mcast_handle_pending_cmds_e1()