/kernel/linux/linux-5.10/drivers/scsi/mvsas/ |
H A D | mv_init.c | 87 sas_phy->enabled = (phy_id < mvi->chip->n_phy) ? 1 : 0; in mvs_phy_init() 229 for (i = 0; i < mvi->chip->n_phy; i++) { in mvs_alloc() 367 ((struct mvs_prv_info *)sha->lldd_ha)->n_phy = mvi->chip->n_phy; in mvs_pci_alloc() 412 phy_nr = core_nr * chip_info->n_phy; in mvs_prep_sas_ha_init() 455 for (i = 0; i < chip_info->n_phy; i++) { in mvs_post_sas_ha_init() 456 sha->sas_phy[j * chip_info->n_phy + i] = in mvs_post_sas_ha_init() 458 sha->sas_port[j * chip_info->n_phy + i] = in mvs_post_sas_ha_init() 468 sha->num_phys = nr_core * chip_info->n_phy; in mvs_post_sas_ha_init() 484 for (i = 0; i < mvi->chip->n_phy; in mvs_init_sas_add() [all...] |
H A D | mv_sas.c | 82 hi = j/((struct mvs_prv_info *)sha->lldd_ha)->n_phy; in mvs_find_dev_mvi() 107 phyno[n] = (j >= mvi->chip->n_phy) ? in mvs_find_dev_phyno() 108 (j - mvi->chip->n_phy) : j; in mvs_find_dev_phyno() 176 hi = i/((struct mvs_prv_info *)sha->lldd_ha)->n_phy; in mvs_phy_control() 260 mv_dprintk("phy %d byte dmaded.\n", i + mvi->id * mvi->chip->n_phy); in mvs_bytes_dmaed() 279 for (i = 0; i < mvi->chip->n_phy; ++i) in mvs_scan_start() 1024 i + mvi->id * mvi->chip->n_phy; in mvs_update_phyinfo() 1065 i + mvi->id * mvi->chip->n_phy, phy->att_dev_info); in mvs_update_phyinfo() 1067 i + mvi->id * mvi->chip->n_phy, phy->att_dev_sas_addr); in mvs_update_phyinfo() 1089 hi = i/((struct mvs_prv_info *)sas_ha->lldd_ha)->n_phy; in mvs_port_notify_formed() [all...] |
H A D | mv_64xx.c | 34 if (mvi->chip->n_phy <= MVS_SOC_PORTS) in mvs_64xx_enable_xmt() 56 for (i = 0; i < mvi->chip->n_phy; i++) { in mvs_64xx_phy_hacks() 322 for (i = 0; i < mvi->chip->n_phy; i++) { in mvs_64xx_init() 345 for (i = 0; i < mvi->chip->n_phy; i++) { in mvs_64xx_init()
|
H A D | mv_sas.h | 164 u32 n_phy; member 402 u8 n_phy; member
|
H A D | mv_chips.h | 190 for (i = 0; i < mvi->chip->n_phy; i++) { in mvs_int_full()
|
H A D | mv_94xx.c | 460 for (i = 0; i < mvi->chip->n_phy; i++) { in mvs_94xx_init() 486 for (i = 0; i < mvi->chip->n_phy; i++) { in mvs_94xx_init() 832 port_id + mvi->id * mvi->chip->n_phy, i, id_frame[i]); in mvs_94xx_get_att_identify_frame()
|
/kernel/linux/linux-6.6/drivers/scsi/mvsas/ |
H A D | mv_init.c | 86 sas_phy->enabled = (phy_id < mvi->chip->n_phy) ? 1 : 0; in mvs_phy_init() 226 for (i = 0; i < mvi->chip->n_phy; i++) { in mvs_alloc() 361 ((struct mvs_prv_info *)sha->lldd_ha)->n_phy = mvi->chip->n_phy; in mvs_pci_alloc() 406 phy_nr = core_nr * chip_info->n_phy; in mvs_prep_sas_ha_init() 449 for (i = 0; i < chip_info->n_phy; i++) { in mvs_post_sas_ha_init() 450 sha->sas_phy[j * chip_info->n_phy + i] = in mvs_post_sas_ha_init() 452 sha->sas_port[j * chip_info->n_phy + i] = in mvs_post_sas_ha_init() 461 sha->num_phys = nr_core * chip_info->n_phy; in mvs_post_sas_ha_init() 479 for (i = 0; i < mvi->chip->n_phy; in mvs_init_sas_add() [all...] |
H A D | mv_sas.c | 80 hi = j/((struct mvs_prv_info *)sha->lldd_ha)->n_phy; in mvs_find_dev_mvi() 107 phyno[n] = (j >= mvi->chip->n_phy) ? in mvs_find_dev_phyno() 108 (j - mvi->chip->n_phy) : j; in mvs_find_dev_phyno() 177 hi = i/((struct mvs_prv_info *)sha->lldd_ha)->n_phy; in mvs_phy_control() 261 mv_dprintk("phy %d byte dmaded.\n", i + mvi->id * mvi->chip->n_phy); in mvs_bytes_dmaed() 280 for (i = 0; i < mvi->chip->n_phy; ++i) in mvs_scan_start() 1018 i + mvi->id * mvi->chip->n_phy; in mvs_update_phyinfo() 1059 i + mvi->id * mvi->chip->n_phy, phy->att_dev_info); in mvs_update_phyinfo() 1061 i + mvi->id * mvi->chip->n_phy, phy->att_dev_sas_addr); in mvs_update_phyinfo() 1083 hi = i/((struct mvs_prv_info *)sas_ha->lldd_ha)->n_phy; in mvs_port_notify_formed() [all...] |
H A D | mv_64xx.c | 34 if (mvi->chip->n_phy <= MVS_SOC_PORTS) in mvs_64xx_enable_xmt() 56 for (i = 0; i < mvi->chip->n_phy; i++) { in mvs_64xx_phy_hacks() 322 for (i = 0; i < mvi->chip->n_phy; i++) { in mvs_64xx_init() 345 for (i = 0; i < mvi->chip->n_phy; i++) { in mvs_64xx_init()
|
H A D | mv_sas.h | 164 u32 n_phy; member 401 u8 n_phy; member
|
H A D | mv_chips.h | 190 for (i = 0; i < mvi->chip->n_phy; i++) { in mvs_int_full()
|
H A D | mv_94xx.c | 460 for (i = 0; i < mvi->chip->n_phy; i++) { in mvs_94xx_init() 486 for (i = 0; i < mvi->chip->n_phy; i++) { in mvs_94xx_init() 832 port_id + mvi->id * mvi->chip->n_phy, i, id_frame[i]); in mvs_94xx_get_att_identify_frame()
|
/kernel/linux/linux-5.10/drivers/scsi/hisi_sas/ |
H A D | hisi_sas_main.c | 152 for (phy_no = 0; phy_no < hisi_hba->n_phy; phy_no++) in hisi_sas_stop_phys() 935 sas_phy->enabled = (phy_no < hisi_hba->n_phy) ? 1 : 0; in hisi_sas_phy_init() 1421 for (phy_no = 0; phy_no < hisi_hba->n_phy; phy_no++) { in hisi_sas_rescan_topology() 1517 for (port_no = 0; port_no < hisi_hba->n_phy; port_no++) { in hisi_sas_terminate_stp_reject() 2298 s = sizeof(struct hisi_sas_initial_fis) * hisi_hba->n_phy; in hisi_sas_init_mem() 2322 for (i = 0; i < hisi_hba->n_phy; i++) { in hisi_sas_alloc() 2463 for (i = 0; i < hisi_hba->n_phy; i++) { in hisi_sas_free() 2544 if (device_property_read_u32(dev, "phy-count", &hisi_hba->n_phy)) { in hisi_sas_get_fw_info() 2638 phy_nr = port_nr = hisi_hba->n_phy; in hisi_sas_probe() 2668 sha->num_phys = hisi_hba->n_phy; in hisi_sas_probe() [all...] |
H A D | hisi_sas_v1_hw.c | 565 for (i = 0; i < hisi_hba->n_phy; i++) { in reset_hw_v1_hw() 574 for (i = 0; i < hisi_hba->n_phy; i++) { in reset_hw_v1_hw() 685 for (i = 0; i < hisi_hba->n_phy; i++) { in init_reg_v1_hw() 801 for (i = 0; i < hisi_hba->n_phy; i++) { in start_phys_v1_hw() 812 for (i = 0; i < hisi_hba->n_phy; i++) { in phys_init_v1_hw() 855 for (i = 0; i < hisi_hba->n_phy; i++) in get_wideport_bitmap_v1_hw() 1641 for (i = 0; i < hisi_hba->n_phy; i++) { in interrupt_init_v1_hw() 1663 idx = hisi_hba->n_phy * HISI_SAS_PHY_INT_NR; in interrupt_init_v1_hw() 1681 idx = (hisi_hba->n_phy * HISI_SAS_PHY_INT_NR) + hisi_hba->queue_count; in interrupt_init_v1_hw() 1709 for (i = 0; i < hisi_hba->n_phy; in interrupt_openall_v1_hw() [all...] |
H A D | hisi_sas_v2_hw.c | 1024 if (hisi_hba->n_phy == 9) in reset_hw_v2_hw() 1032 for (i = 0; i < hisi_hba->n_phy; i++) { in reset_hw_v2_hw() 1041 for (i = 0; i < hisi_hba->n_phy; i++) { in reset_hw_v2_hw() 1123 hisi_hba->reject_stp_links_msk = (1 << hisi_hba->n_phy) - 1; in phys_reject_stp_links_v2_hw() 1124 for (phy_no = 0; phy_no < hisi_hba->n_phy; phy_no++) { in phys_reject_stp_links_v2_hw() 1139 for (phy_no = 0; phy_no < hisi_hba->n_phy; phy_no++) { in phys_try_accept_stp_links_v2_hw() 1229 for (i = 0; i < hisi_hba->n_phy; i++) { in init_reg_v2_hw() 1334 for (i = 0; i < hisi_hba->n_phy; i++) { in link_timeout_enable_link() 1356 for (i = 0; i < hisi_hba->n_phy && reg_val; i++) { in link_timeout_disable_link() 1582 for (i = 0; i < hisi_hba->n_phy; in phys_init_v2_hw() [all...] |
H A D | hisi_sas_v3_hw.c | 608 for (i = 0; i < hisi_hba->n_phy; i++) { in init_reg_v3_hw() 1020 for (i = 0; i < hisi_hba->n_phy; i++) { in phys_init_v3_hw() 1050 for (i = 0; i < hisi_hba->n_phy; i++) in get_wideport_bitmap_v3_hw() 2539 for (i = 0; i < hisi_hba->n_phy; i++) { in interrupt_disable_v3_hw() 2609 if ((reg_index + reg_count) > ((hisi_hba->n_phy + 3) / 4)) { in write_gpio_v3_hw() 3297 phy_nr = port_nr = hisi_hba->n_phy; in hisi_sas_v3_probe() 3323 sha->num_phys = hisi_hba->n_phy; in hisi_sas_v3_probe() 3325 for (i = 0; i < hisi_hba->n_phy; i++) { in hisi_sas_v3_probe()
|
H A D | hisi_sas.h | 421 int n_phy; member
|
/kernel/linux/linux-6.6/drivers/scsi/hisi_sas/ |
H A D | hisi_sas_main.c | 150 for (phy_no = 0; phy_no < hisi_hba->n_phy; phy_no++) in hisi_sas_stop_phys() 1020 sas_phy->enabled = (phy_no < hisi_hba->n_phy) ? 1 : 0; in hisi_sas_phy_init() 1389 for (phy_no = 0; phy_no < hisi_hba->n_phy; phy_no++) { in hisi_sas_rescan_topology() 1444 for (i = 0; i < hisi_hba->n_phy; i++) { in hisi_sas_send_ata_reset_each_phy() 1479 for (port_no = 0; port_no < hisi_hba->n_phy; port_no++) { in hisi_sas_terminate_stp_reject() 1540 for (phy_no = 0; phy_no < hisi_hba->n_phy; phy_no++) { in hisi_sas_controller_reset_done() 2140 s = sizeof(struct hisi_sas_initial_fis) * hisi_hba->n_phy; in hisi_sas_init_mem() 2164 for (i = 0; i < hisi_hba->n_phy; i++) { in hisi_sas_alloc() 2304 for (i = 0; i < hisi_hba->n_phy; i++) { in hisi_sas_free() 2392 if (device_property_read_u32(dev, "phy-count", &hisi_hba->n_phy)) { in hisi_sas_get_fw_info() [all...] |
H A D | hisi_sas_v1_hw.c | 565 for (i = 0; i < hisi_hba->n_phy; i++) { in reset_hw_v1_hw() 574 for (i = 0; i < hisi_hba->n_phy; i++) { in reset_hw_v1_hw() 685 for (i = 0; i < hisi_hba->n_phy; i++) { in init_reg_v1_hw() 801 for (i = 0; i < hisi_hba->n_phy; i++) { in start_phys_v1_hw() 812 for (i = 0; i < hisi_hba->n_phy; i++) { in phys_init_v1_hw() 855 for (i = 0; i < hisi_hba->n_phy; i++) in get_wideport_bitmap_v1_hw() 1630 for (i = 0; i < hisi_hba->n_phy; i++) { in interrupt_init_v1_hw() 1649 idx = hisi_hba->n_phy * HISI_SAS_PHY_INT_NR; in interrupt_init_v1_hw() 1664 idx = (hisi_hba->n_phy * HISI_SAS_PHY_INT_NR) + hisi_hba->queue_count; in interrupt_init_v1_hw() 1689 for (i = 0; i < hisi_hba->n_phy; in interrupt_openall_v1_hw() [all...] |
H A D | hisi_sas_v2_hw.c | 1024 if (hisi_hba->n_phy == 9) in reset_hw_v2_hw() 1032 for (i = 0; i < hisi_hba->n_phy; i++) { in reset_hw_v2_hw() 1041 for (i = 0; i < hisi_hba->n_phy; i++) { in reset_hw_v2_hw() 1123 hisi_hba->reject_stp_links_msk = (1 << hisi_hba->n_phy) - 1; in phys_reject_stp_links_v2_hw() 1124 for (phy_no = 0; phy_no < hisi_hba->n_phy; phy_no++) { in phys_reject_stp_links_v2_hw() 1139 for (phy_no = 0; phy_no < hisi_hba->n_phy; phy_no++) { in phys_try_accept_stp_links_v2_hw() 1229 for (i = 0; i < hisi_hba->n_phy; i++) { in init_reg_v2_hw() 1334 for (i = 0; i < hisi_hba->n_phy; i++) { in link_timeout_enable_link() 1356 for (i = 0; i < hisi_hba->n_phy && reg_val; i++) { in link_timeout_disable_link() 1582 for (i = 0; i < hisi_hba->n_phy; in phys_init_v2_hw() [all...] |
H A D | hisi_sas_v3_hw.c | 620 for (i = 0; i < hisi_hba->n_phy; i++) { in interrupt_enable_v3_hw() 662 for (i = 0; i < hisi_hba->n_phy; i++) { in init_reg_v3_hw() 1075 for (i = 0; i < hisi_hba->n_phy; i++) { in phys_init_v3_hw() 1105 for (i = 0; i < hisi_hba->n_phy; i++) in get_wideport_bitmap_v3_hw() 2667 for (i = 0; i < hisi_hba->n_phy; i++) { in interrupt_disable_v3_hw() 2738 if ((reg_index + reg_count) > ((hisi_hba->n_phy + 3) / 4)) { in write_gpio_v3_hw() 3465 for (phy_cnt = 0; phy_cnt < hisi_hba->n_phy; phy_cnt++) { in debugfs_snapshot_port_reg_v3_hw() 3810 for (p = 0; p < hisi_hba->n_phy; p++) { in debugfs_create_files_v3_hw() 4116 if (phy_no >= hisi_hba->n_phy) in debugfs_bist_phy_v3_hw_write() 4598 for (phy_no = 0; phy_no < hisi_hba->n_phy; phy_n in debugfs_fifo_init_v3_hw() [all...] |
H A D | hisi_sas.h | 410 int n_phy; member
|
/kernel/linux/linux-5.10/drivers/scsi/pm8001/ |
H A D | pm8001_init.c | 144 sas_phy->enabled = (phy_id < pm8001_ha->chip->n_phy) ? 1 : 0; in pm8001_phy_init() 275 pm8001_ha->chip->n_phy); in pm8001_alloc() 290 for (i = 0; i < pm8001_ha->chip->n_phy; i++) { in pm8001_alloc() 572 phy_nr = chip_info->n_phy; in pm8001_prep_sas_ha_init() 618 for (i = 0; i < chip_info->n_phy; i++) { in pm8001_post_sas_ha_init() 629 sha->num_phys = chip_info->n_phy; in pm8001_post_sas_ha_init() 706 for (i = 0; i < pm8001_ha->chip->n_phy; i++) { in pm8001_init_sas_add() 716 for (i = 0; i < pm8001_ha->chip->n_phy; i++) { in pm8001_init_sas_add() 871 for (i = 0; i < pm8001_ha->chip->n_phy; i++) { in pm8001_set_phy_settings_ven_117c_12G() 1368 for (i = 0; i < pm8001_ha->chip->n_phy; in pm8001_pci_resume() [all...] |
H A D | pm8001_sas.h | 222 u32 n_phy; member
|
/kernel/linux/linux-6.6/drivers/scsi/pm8001/ |
H A D | pm8001_init.c | 164 sas_phy->enabled = (phy_id < pm8001_ha->chip->n_phy) ? 1 : 0; in pm8001_phy_init() 294 pm8001_ha->chip->n_phy); in pm8001_alloc() 309 for (i = 0; i < pm8001_ha->chip->n_phy; i++) { in pm8001_alloc() 596 phy_nr = chip_info->n_phy; in pm8001_prep_sas_ha_init() 638 for (i = 0; i < chip_info->n_phy; i++) { in pm8001_post_sas_ha_init() 648 sha->num_phys = chip_info->n_phy; in pm8001_post_sas_ha_init() 738 for (i = 0; i < pm8001_ha->chip->n_phy; i++) { in pm8001_init_sas_add() 748 for (i = 0; i < pm8001_ha->chip->n_phy; i++) { in pm8001_init_sas_add() 904 for (i = 0; i < pm8001_ha->chip->n_phy; i++) { in pm8001_set_phy_settings_ven_117c_12G() 1416 for (i = 0; i < pm8001_ha->chip->n_phy; in pm8001_pci_resume() [all...] |