Lines Matching refs:port_table

6138 	struct hba_port *port_table)  in _scsih_get_port_table_after_reset()  argument
6179 if (port_table[j].port_id == port_id && in _scsih_get_port_table_after_reset()
6180 port_table[j].sas_address == attached_sas_addr) { in _scsih_get_port_table_after_reset()
6181 port_table[j].phy_mask |= (1 << i); in _scsih_get_port_table_after_reset()
6191 port_table[port_count].port_id = port_id; in _scsih_get_port_table_after_reset()
6192 port_table[port_count].phy_mask = (1 << i); in _scsih_get_port_table_after_reset()
6193 port_table[port_count].sas_address = attached_sas_addr; in _scsih_get_port_table_after_reset()
6289 struct hba_port *port_table, in _scsih_del_phy_part_of_anther_port() argument
6299 if (port_table[i].phy_mask & (1 << offset)) { in _scsih_del_phy_part_of_anther_port()
6307 port_table[index].phy_mask |= (1 << offset); in _scsih_del_phy_part_of_anther_port()
6322 struct hba_port *hba_port_entry, struct hba_port *port_table, in _scsih_add_or_del_phys_from_existing_port() argument
6328 phy_mask = hba_port_entry->phy_mask ^ port_table[index].phy_mask; in _scsih_add_or_del_phys_from_existing_port()
6332 if (!(port_table[index].phy_mask & (1 << offset))) { in _scsih_add_or_del_phys_from_existing_port()
6334 ioc, port_table, index, port_count, in _scsih_add_or_del_phys_from_existing_port()
6415 struct hba_port *port_table; in _scsih_sas_port_refresh() local
6441 port_table = kcalloc(ioc->sas_hba.num_phys, in _scsih_sas_port_refresh()
6443 if (!port_table) in _scsih_sas_port_refresh()
6446 port_count = _scsih_get_port_table_after_reset(ioc, port_table); in _scsih_sas_port_refresh()
6454 port_table[j].port_id, in _scsih_sas_port_refresh()
6455 port_table[j].phy_mask, port_table[j].sas_address)); in _scsih_sas_port_refresh()
6472 &port_table[j], &port_entry, &count); in _scsih_sas_port_refresh()
6476 port_table[j].sas_address, in _scsih_sas_port_refresh()
6477 port_table[j].port_id)); in _scsih_sas_port_refresh()
6485 port_entry, port_table, j, port_count); in _scsih_sas_port_refresh()
6488 sas_addr = port_table[j].sas_address; in _scsih_sas_port_refresh()
6490 if (port_table[i].sas_address == sas_addr) in _scsih_sas_port_refresh()
6498 port_entry, port_table, j, port_count); in _scsih_sas_port_refresh()
6504 if (port_entry->port_id != port_table[j].port_id) in _scsih_sas_port_refresh()
6505 port_entry->port_id = port_table[j].port_id; in _scsih_sas_port_refresh()
6507 port_entry->phy_mask = port_table[j].phy_mask; in _scsih_sas_port_refresh()