Lines Matching refs:port_fid_mappings
23 unsigned int *port_fid_mappings; member
707 if (!mlxsw_sp->fid_core->port_fid_mappings[pv->local_port]) in mlxsw_sp_fid_vid_to_fid_rif_set()
721 if (!mlxsw_sp->fid_core->port_fid_mappings[pv->local_port]) in mlxsw_sp_fid_vid_to_fid_rif_set()
740 if (!mlxsw_sp->fid_core->port_fid_mappings[pv->local_port]) in mlxsw_sp_fid_vid_to_fid_rif_unset()
1138 if (mlxsw_sp->fid_core->port_fid_mappings[local_port]++ == 0) { in mlxsw_sp_fid_8021d_port_vid_map()
1147 mlxsw_sp->fid_core->port_fid_mappings[local_port]--; in mlxsw_sp_fid_8021d_port_vid_map()
1163 if (mlxsw_sp->fid_core->port_fid_mappings[local_port] == 1) in mlxsw_sp_fid_8021d_port_vid_unmap()
1165 mlxsw_sp->fid_core->port_fid_mappings[local_port]--; in mlxsw_sp_fid_8021d_port_vid_unmap()
1445 if (mlxsw_sp->fid_core->port_fid_mappings[local_port]++ == 0) { in mlxsw_sp_fid_rfid_port_vid_map()
1454 mlxsw_sp->fid_core->port_fid_mappings[local_port]--; in mlxsw_sp_fid_rfid_port_vid_map()
1472 if (mlxsw_sp->fid_core->port_fid_mappings[local_port] == 1) in mlxsw_sp_fid_rfid_port_vid_unmap()
1474 mlxsw_sp->fid_core->port_fid_mappings[local_port]--; in mlxsw_sp_fid_rfid_port_vid_unmap()
1765 if (mlxsw_sp->fid_core->port_fid_mappings[local_port]) { in mlxsw_sp_fid_8021q_port_vid_map()
1785 if (mlxsw_sp->fid_core->port_fid_mappings[local_port]) in mlxsw_sp_fid_8021q_port_vid_map()
1799 if (mlxsw_sp->fid_core->port_fid_mappings[local_port]) in mlxsw_sp_fid_8021q_port_vid_unmap()
2255 mlxsw_sp->fid_core->port_fid_mappings[mlxsw_sp_port->local_port] = 0; in mlxsw_sp_port_fids_init()
2277 mlxsw_sp->fid_core->port_fid_mappings[mlxsw_sp_port->local_port] = 0; in mlxsw_sp_port_fids_fini()
2311 fid_core->port_fid_mappings = kcalloc(max_ports, sizeof(unsigned int), in mlxsw_sp_fids_init()
2313 if (!fid_core->port_fid_mappings) { in mlxsw_sp_fids_init()
2334 kfree(fid_core->port_fid_mappings); in mlxsw_sp_fids_init()
2352 kfree(fid_core->port_fid_mappings); in mlxsw_sp_fids_fini()