Lines Matching refs:port_table
6128 struct hba_port *port_table) in _scsih_get_port_table_after_reset() argument
6168 if (port_table[j].port_id == port_id && in _scsih_get_port_table_after_reset()
6169 port_table[j].sas_address == attached_sas_addr) { in _scsih_get_port_table_after_reset()
6170 port_table[j].phy_mask |= (1 << i); in _scsih_get_port_table_after_reset()
6180 port_table[port_count].port_id = port_id; in _scsih_get_port_table_after_reset()
6181 port_table[port_count].phy_mask = (1 << i); in _scsih_get_port_table_after_reset()
6182 port_table[port_count].sas_address = attached_sas_addr; in _scsih_get_port_table_after_reset()
6278 struct hba_port *port_table, in _scsih_del_phy_part_of_anther_port() argument
6288 if (port_table[i].phy_mask & (1 << offset)) { in _scsih_del_phy_part_of_anther_port()
6296 port_table[index].phy_mask |= (1 << offset); in _scsih_del_phy_part_of_anther_port()
6311 struct hba_port *hba_port_entry, struct hba_port *port_table, in _scsih_add_or_del_phys_from_existing_port() argument
6317 phy_mask = hba_port_entry->phy_mask ^ port_table[index].phy_mask; in _scsih_add_or_del_phys_from_existing_port()
6321 if (!(port_table[index].phy_mask & (1 << offset))) { in _scsih_add_or_del_phys_from_existing_port()
6323 ioc, port_table, index, port_count, in _scsih_add_or_del_phys_from_existing_port()
6404 struct hba_port *port_table; in _scsih_sas_port_refresh() local
6430 port_table = kcalloc(ioc->sas_hba.num_phys, in _scsih_sas_port_refresh()
6432 if (!port_table) in _scsih_sas_port_refresh()
6435 port_count = _scsih_get_port_table_after_reset(ioc, port_table); in _scsih_sas_port_refresh()
6443 port_table[j].port_id, in _scsih_sas_port_refresh()
6444 port_table[j].phy_mask, port_table[j].sas_address)); in _scsih_sas_port_refresh()
6461 &port_table[j], &port_entry, &count); in _scsih_sas_port_refresh()
6465 port_table[j].sas_address, in _scsih_sas_port_refresh()
6466 port_table[j].port_id)); in _scsih_sas_port_refresh()
6474 port_entry, port_table, j, port_count); in _scsih_sas_port_refresh()
6477 sas_addr = port_table[j].sas_address; in _scsih_sas_port_refresh()
6479 if (port_table[i].sas_address == sas_addr) in _scsih_sas_port_refresh()
6487 port_entry, port_table, j, port_count); in _scsih_sas_port_refresh()
6493 if (port_entry->port_id != port_table[j].port_id) in _scsih_sas_port_refresh()
6494 port_entry->port_id = port_table[j].port_id; in _scsih_sas_port_refresh()
6496 port_entry->phy_mask = port_table[j].phy_mask; in _scsih_sas_port_refresh()