Lines Matching refs:port_table
6139 struct hba_port *port_table) in _scsih_get_port_table_after_reset() argument
6180 if (port_table[j].port_id == port_id && in _scsih_get_port_table_after_reset()
6181 port_table[j].sas_address == attached_sas_addr) { in _scsih_get_port_table_after_reset()
6182 port_table[j].phy_mask |= (1 << i); in _scsih_get_port_table_after_reset()
6192 port_table[port_count].port_id = port_id; in _scsih_get_port_table_after_reset()
6193 port_table[port_count].phy_mask = (1 << i); in _scsih_get_port_table_after_reset()
6194 port_table[port_count].sas_address = attached_sas_addr; in _scsih_get_port_table_after_reset()
6290 struct hba_port *port_table, in _scsih_del_phy_part_of_anther_port() argument
6300 if (port_table[i].phy_mask & (1 << offset)) { in _scsih_del_phy_part_of_anther_port()
6308 port_table[index].phy_mask |= (1 << offset); in _scsih_del_phy_part_of_anther_port()
6323 struct hba_port *hba_port_entry, struct hba_port *port_table, in _scsih_add_or_del_phys_from_existing_port() argument
6329 phy_mask = hba_port_entry->phy_mask ^ port_table[index].phy_mask; in _scsih_add_or_del_phys_from_existing_port()
6333 if (!(port_table[index].phy_mask & (1 << offset))) { in _scsih_add_or_del_phys_from_existing_port()
6335 ioc, port_table, index, port_count, in _scsih_add_or_del_phys_from_existing_port()
6416 struct hba_port *port_table; in _scsih_sas_port_refresh() local
6442 port_table = kcalloc(ioc->sas_hba.num_phys, in _scsih_sas_port_refresh()
6444 if (!port_table) in _scsih_sas_port_refresh()
6447 port_count = _scsih_get_port_table_after_reset(ioc, port_table); in _scsih_sas_port_refresh()
6455 port_table[j].port_id, in _scsih_sas_port_refresh()
6456 port_table[j].phy_mask, port_table[j].sas_address)); in _scsih_sas_port_refresh()
6473 &port_table[j], &port_entry, &count); in _scsih_sas_port_refresh()
6477 port_table[j].sas_address, in _scsih_sas_port_refresh()
6478 port_table[j].port_id)); in _scsih_sas_port_refresh()
6486 port_entry, port_table, j, port_count); in _scsih_sas_port_refresh()
6489 sas_addr = port_table[j].sas_address; in _scsih_sas_port_refresh()
6491 if (port_table[i].sas_address == sas_addr) in _scsih_sas_port_refresh()
6499 port_entry, port_table, j, port_count); in _scsih_sas_port_refresh()
6505 if (port_entry->port_id != port_table[j].port_id) in _scsih_sas_port_refresh()
6506 port_entry->port_id = port_table[j].port_id; in _scsih_sas_port_refresh()
6508 port_entry->phy_mask = port_table[j].phy_mask; in _scsih_sas_port_refresh()