Lines Matching refs:port_vid
614 struct mlxsw_sp_fid_port_vid *port_vid; in mlxsw_sp_fid_reiv_handle() local
625 list_for_each_entry(port_vid, &fid->port_vid_list, list) { in mlxsw_sp_fid_reiv_handle()
627 if (port_vid->local_port < local_port_start) in mlxsw_sp_fid_reiv_handle()
630 if (port_vid->local_port > local_port_end) in mlxsw_sp_fid_reiv_handle()
633 rec_num = port_vid->local_port % MLXSW_REG_REIV_REC_MAX_COUNT; in mlxsw_sp_fid_reiv_handle()
636 valid ? port_vid->vid : 0); in mlxsw_sp_fid_reiv_handle()
881 struct mlxsw_sp_fid_port_vid *port_vid, *tmp_port_vid; in mlxsw_sp_fid_port_vid_list_add() local
883 port_vid = kzalloc(sizeof(*port_vid), GFP_KERNEL); in mlxsw_sp_fid_port_vid_list_add()
884 if (!port_vid) in mlxsw_sp_fid_port_vid_list_add()
887 port_vid->local_port = local_port; in mlxsw_sp_fid_port_vid_list_add()
888 port_vid->vid = vid; in mlxsw_sp_fid_port_vid_list_add()
895 list_add_tail(&port_vid->list, &tmp_port_vid->list); in mlxsw_sp_fid_port_vid_list_add()
903 struct mlxsw_sp_fid_port_vid *port_vid, *tmp; in mlxsw_sp_fid_port_vid_list_del() local
905 list_for_each_entry_safe(port_vid, tmp, &fid->port_vid_list, list) { in mlxsw_sp_fid_port_vid_list_del()
906 if (port_vid->local_port != local_port || port_vid->vid != vid) in mlxsw_sp_fid_port_vid_list_del()
909 list_del(&port_vid->list); in mlxsw_sp_fid_port_vid_list_del()
910 kfree(port_vid); in mlxsw_sp_fid_port_vid_list_del()