Lines Matching refs:port_vid
755 struct mlxsw_sp_fid_port_vid *port_vid; in mlxsw_sp_fid_reiv_handle() local
766 list_for_each_entry(port_vid, &fid->port_vid_list, list) { in mlxsw_sp_fid_reiv_handle()
768 if (port_vid->local_port < local_port_start) in mlxsw_sp_fid_reiv_handle()
771 if (port_vid->local_port > local_port_end) in mlxsw_sp_fid_reiv_handle()
774 rec_num = port_vid->local_port % MLXSW_REG_REIV_REC_MAX_COUNT; in mlxsw_sp_fid_reiv_handle()
777 valid ? port_vid->vid : 0); in mlxsw_sp_fid_reiv_handle()
1023 struct mlxsw_sp_fid_port_vid *port_vid, *tmp_port_vid; in mlxsw_sp_fid_port_vid_list_add() local
1025 port_vid = kzalloc(sizeof(*port_vid), GFP_KERNEL); in mlxsw_sp_fid_port_vid_list_add()
1026 if (!port_vid) in mlxsw_sp_fid_port_vid_list_add()
1029 port_vid->local_port = local_port; in mlxsw_sp_fid_port_vid_list_add()
1030 port_vid->vid = vid; in mlxsw_sp_fid_port_vid_list_add()
1037 list_add_tail(&port_vid->list, &tmp_port_vid->list); in mlxsw_sp_fid_port_vid_list_add()
1045 struct mlxsw_sp_fid_port_vid *port_vid, *tmp; in mlxsw_sp_fid_port_vid_list_del() local
1047 list_for_each_entry_safe(port_vid, tmp, &fid->port_vid_list, list) { in mlxsw_sp_fid_port_vid_list_del()
1048 if (port_vid->local_port != local_port || port_vid->vid != vid) in mlxsw_sp_fid_port_vid_list_del()
1051 list_del(&port_vid->list); in mlxsw_sp_fid_port_vid_list_del()
1052 kfree(port_vid); in mlxsw_sp_fid_port_vid_list_del()