Lines Matching refs:cmd_pos
2935 struct bnx2x_mcast_obj *o, struct bnx2x_pending_mcast_cmd *cmd_pos, in bnx2x_mcast_hdl_pending_add_e2() argument
2942 list_for_each_entry_safe(pmac_pos, pmac_pos_n, &cmd_pos->data.macs_head, in bnx2x_mcast_hdl_pending_add_e2()
2946 o->set_one_rule(bp, o, cnt, &cfg_data, cmd_pos->type); in bnx2x_mcast_hdl_pending_add_e2()
2965 if (list_empty(&cmd_pos->data.macs_head)) in bnx2x_mcast_hdl_pending_add_e2()
2966 cmd_pos->done = true; in bnx2x_mcast_hdl_pending_add_e2()
2970 struct bnx2x_mcast_obj *o, struct bnx2x_pending_mcast_cmd *cmd_pos, in bnx2x_mcast_hdl_pending_del_e2() argument
2975 while (cmd_pos->data.macs_num) { in bnx2x_mcast_hdl_pending_del_e2()
2976 o->set_one_rule(bp, o, cnt, NULL, cmd_pos->type); in bnx2x_mcast_hdl_pending_del_e2()
2980 cmd_pos->data.macs_num--; in bnx2x_mcast_hdl_pending_del_e2()
2983 cmd_pos->data.macs_num, cnt); in bnx2x_mcast_hdl_pending_del_e2()
2995 if (!cmd_pos->data.macs_num) in bnx2x_mcast_hdl_pending_del_e2()
2996 cmd_pos->done = true; in bnx2x_mcast_hdl_pending_del_e2()
3000 struct bnx2x_mcast_obj *o, struct bnx2x_pending_mcast_cmd *cmd_pos, in bnx2x_mcast_hdl_pending_restore_e2() argument
3003 cmd_pos->data.next_bin = o->hdl_restore(bp, o, cmd_pos->data.next_bin, in bnx2x_mcast_hdl_pending_restore_e2()
3006 if (cmd_pos->data.next_bin < 0) in bnx2x_mcast_hdl_pending_restore_e2()
3008 cmd_pos->done = true; in bnx2x_mcast_hdl_pending_restore_e2()
3011 cmd_pos->data.next_bin++; in bnx2x_mcast_hdl_pending_restore_e2()
3017 struct bnx2x_pending_mcast_cmd *cmd_pos) in bnx2x_mcast_hdl_pending_set_e2_convert() argument
3030 list_for_each_entry_safe(pmac_pos, pmac_pos_n, &cmd_pos->data.macs_head, in bnx2x_mcast_hdl_pending_set_e2_convert()
3045 cmd_pos->set_convert = true; in bnx2x_mcast_hdl_pending_set_e2_convert()
3046 INIT_LIST_HEAD(&cmd_pos->data.macs_head); in bnx2x_mcast_hdl_pending_set_e2_convert()
3047 elem_group = list_first_entry(&cmd_pos->group_head, in bnx2x_mcast_hdl_pending_set_e2_convert()
3061 list_add_tail(&p_item->link , &cmd_pos->data.macs_head); in bnx2x_mcast_hdl_pending_set_e2_convert()
3084 struct bnx2x_pending_mcast_cmd *cmd_pos, in bnx2x_mcast_hdl_pending_set_e2() argument
3097 if (!cmd_pos->set_convert) in bnx2x_mcast_hdl_pending_set_e2()
3098 bnx2x_mcast_hdl_pending_set_e2_convert(bp, o, cmd_pos); in bnx2x_mcast_hdl_pending_set_e2()
3100 list_for_each_entry_safe(p_item, p_item_n, &cmd_pos->data.macs_head, in bnx2x_mcast_hdl_pending_set_e2()
3114 if (list_empty(&cmd_pos->data.macs_head)) in bnx2x_mcast_hdl_pending_set_e2()
3115 cmd_pos->done = true; in bnx2x_mcast_hdl_pending_set_e2()
3121 struct bnx2x_pending_mcast_cmd *cmd_pos, *cmd_pos_n; in bnx2x_mcast_handle_pending_cmds_e2() local
3125 list_for_each_entry_safe(cmd_pos, cmd_pos_n, &o->pending_cmds_head, in bnx2x_mcast_handle_pending_cmds_e2()
3127 switch (cmd_pos->type) { in bnx2x_mcast_handle_pending_cmds_e2()
3129 bnx2x_mcast_hdl_pending_add_e2(bp, o, cmd_pos, &cnt); in bnx2x_mcast_handle_pending_cmds_e2()
3133 bnx2x_mcast_hdl_pending_del_e2(bp, o, cmd_pos, &cnt); in bnx2x_mcast_handle_pending_cmds_e2()
3137 bnx2x_mcast_hdl_pending_restore_e2(bp, o, cmd_pos, in bnx2x_mcast_handle_pending_cmds_e2()
3142 bnx2x_mcast_hdl_pending_set_e2(bp, o, cmd_pos, &cnt); in bnx2x_mcast_handle_pending_cmds_e2()
3146 BNX2X_ERR("Unknown command: %d\n", cmd_pos->type); in bnx2x_mcast_handle_pending_cmds_e2()
3153 if (cmd_pos->done) { in bnx2x_mcast_handle_pending_cmds_e2()
3154 list_del(&cmd_pos->link); in bnx2x_mcast_handle_pending_cmds_e2()
3155 bnx2x_free_groups(&cmd_pos->group_head); in bnx2x_mcast_handle_pending_cmds_e2()
3156 kfree(cmd_pos); in bnx2x_mcast_handle_pending_cmds_e2()
3752 struct bnx2x_pending_mcast_cmd *cmd_pos; in bnx2x_mcast_handle_pending_cmds_e1() local
3763 cmd_pos = list_first_entry(&o->pending_cmds_head, in bnx2x_mcast_handle_pending_cmds_e1()
3766 switch (cmd_pos->type) { in bnx2x_mcast_handle_pending_cmds_e1()
3768 list_for_each_entry(pmac_pos, &cmd_pos->data.macs_head, link) { in bnx2x_mcast_handle_pending_cmds_e1()
3770 o->set_one_rule(bp, o, cnt, &cfg_data, cmd_pos->type); in bnx2x_mcast_handle_pending_cmds_e1()
3780 cnt = cmd_pos->data.macs_num; in bnx2x_mcast_handle_pending_cmds_e1()
3789 BNX2X_ERR("Unknown command: %d\n", cmd_pos->type); in bnx2x_mcast_handle_pending_cmds_e1()
3793 list_del(&cmd_pos->link); in bnx2x_mcast_handle_pending_cmds_e1()
3794 bnx2x_free_groups(&cmd_pos->group_head); in bnx2x_mcast_handle_pending_cmds_e1()
3795 kfree(cmd_pos); in bnx2x_mcast_handle_pending_cmds_e1()