| /linux/include/scsi/ |
| H A D | scsi_transport_sas.h | 147 struct sas_port { struct 164 container_of((d), struct sas_port, dev) argument 205 extern struct sas_rphy *sas_end_device_alloc(struct sas_port *); 206 extern struct sas_rphy *sas_expander_alloc(struct sas_port *, enum sas_device_type); 213 struct sas_port *sas_port_alloc(struct device *, int); 214 struct sas_port *sas_port_alloc_num(struct device *); 215 int sas_port_add(struct sas_port *); 216 void sas_port_free(struct sas_port *); 217 void sas_port_delete(struct sas_port *); 218 void sas_port_add_phy(struct sas_port *, struct sas_phy *); [all …]
|
| H A D | libsas.h | 107 struct sas_port *port; 124 struct sas_port *parent_port; 273 struct sas_port *port; 378 struct asd_sas_port **sas_port; /* array of valid pointers, must be set */ member
|
| /linux/Documentation/translations/zh_CN/scsi/ |
| H A D | libsas.rst | 112 - 如果该 PHY 属于某个端口(port),此字段指向对应的 sas_port 114 PHY 所属的 sas_port。 125 ``struct sas_port`` 147 struct sas_port sas_ports[MAX_PHYS]; /* (1) */ 163 sas_port subsection 171 - 表示 sas_phy 数组中 PHY 的数量,同时也表示 sas_port 206 int (*lldd_clear_nexus_port)(struct sas_port *); 227 static struct sas_port *sas_ports[MAX_PHYS]; 237 my_ha->sas_ha.sas_port = sas_ports;
|
| /linux/drivers/scsi/smartpqi/ |
| H A D | smartpqi_sas_transport.c | 132 struct sas_port *port; in pqi_alloc_sas_port() 214 if (!device->sas_port) in pqi_find_device_by_sas_rphy() 216 if (device->sas_port->rphy == rphy) in pqi_find_device_by_sas_rphy() 292 device->sas_port = pqi_sas_port; in pqi_add_sas_device() 304 device->sas_port = NULL; in pqi_add_sas_device() 311 if (device->sas_port) { in pqi_remove_sas_device() 312 pqi_free_sas_port(device->sas_port); in pqi_remove_sas_device() 313 device->sas_port = NULL; in pqi_remove_sas_device()
|
| /linux/drivers/scsi/hisi_sas/ |
| H A D | hisi_sas_main.c | 172 struct hisi_sas_port *to_hisi_sas_port(struct asd_sas_port *sas_port) in to_hisi_sas_port() argument 174 return container_of(sas_port, struct hisi_sas_port, sas_port); in to_hisi_sas_port() 497 struct asd_sas_port *sas_port = device->port; in hisi_sas_queue_command() local 508 if (!sas_port) { in hisi_sas_queue_command() 550 port = to_hisi_sas_port(sas_port); in hisi_sas_queue_command() 598 port = to_hisi_sas_port(sas_port); in hisi_sas_queue_command() 946 struct asd_sas_port *sas_port = sas_phy->port; in hisi_sas_phyup_work_common() local 953 sas_port && port && (port->id != phy->port_id)) { in hisi_sas_phyup_work_common() 956 port_dev = sas_port->port_dev; in hisi_sas_phyup_work_common() 1119 struct asd_sas_port *sas_port = sas_phy->port; in hisi_sas_port_notify_formed() local [all …]
|
| H A D | hisi_sas.h | 209 struct asd_sas_port sas_port; member 658 extern struct hisi_sas_port *to_hisi_sas_port(struct asd_sas_port *sas_port);
|
| H A D | hisi_sas_v2_hw.c | 928 struct asd_sas_port *sas_port = device->port; in setup_itct_v2_hw() local 929 struct hisi_sas_port *port = to_hisi_sas_port(sas_port); in setup_itct_v2_hw() 2461 slot->port->sas_port.id); in slot_complete_v2_hw() 2498 struct asd_sas_port *sas_port = device->port; in prep_ata_v2_hw() local 2499 struct hisi_sas_port *port = to_hisi_sas_port(sas_port); in prep_ata_v2_hw() 2591 asd_sas_port = &port->sas_port; in hisi_sas_internal_abort_quirk_timeout()
|
| H A D | hisi_sas_v1_hw.c | 497 struct asd_sas_port *sas_port = device->port; in setup_itct_v1_hw() local 498 struct hisi_sas_port *port = to_hisi_sas_port(sas_port); in setup_itct_v1_hw() 1303 slot->port->sas_port.id); in slot_complete_v1_hw()
|
| H A D | hisi_sas_v3_hw.c | 877 struct asd_sas_port *sas_port = device->port; in setup_itct_v3_hw() local 878 struct hisi_sas_port *port = to_hisi_sas_port(sas_port); in setup_itct_v3_hw() 1480 struct asd_sas_port *sas_port = device->port; in prep_ata_v3_hw() local 1481 struct hisi_sas_port *port = to_hisi_sas_port(sas_port); in prep_ata_v3_hw() 2463 slot->port->sas_port.id); in slot_complete_v3_hw() 4989 sha->sas_port = arr_port; in hisi_sas_v3_probe() 5012 sha->sas_port[i] = &hisi_hba->port[i].sas_port; in hisi_sas_v3_probe()
|
| /linux/drivers/scsi/mvsas/ |
| H A D | mv_sas.c | 64 while (sha->sas_port[i]) { in mvs_find_dev_mvi() 65 if (sha->sas_port[i] == dev->port) { in mvs_find_dev_mvi() 66 spin_lock(&sha->sas_port[i]->phy_list_lock); in mvs_find_dev_mvi() 67 phy = container_of(sha->sas_port[i]->phy_list.next, in mvs_find_dev_mvi() 69 spin_unlock(&sha->sas_port[i]->phy_list_lock); in mvs_find_dev_mvi() 94 while (sha->sas_port[i]) { in mvs_find_dev_phyno() 95 if (sha->sas_port[i] == dev->port) { in mvs_find_dev_phyno() 98 spin_lock(&sha->sas_port[i]->phy_list_lock); in mvs_find_dev_phyno() 100 &sha->sas_port[i]->phy_list, port_phy_el) { in mvs_find_dev_phyno() 112 spin_unlock(&sha->sas_port[i]->phy_list_lock); in mvs_find_dev_phyno() [all …]
|
| H A D | mv_init.c | 401 sha->sas_port = arr_port; in mvs_prep_sas_ha_init() 437 sha->sas_port[j * chip_info->n_phy + i] = in mvs_post_sas_ha_init() 438 &mvi->port[i].sas_port; in mvs_post_sas_ha_init() 605 kfree(sha->sas_port); in mvs_pci_remove()
|
| H A D | mv_sas.h | 196 struct asd_sas_port sas_port; member
|
| /linux/drivers/scsi/ |
| H A D | scsi_transport_sas.c | 824 struct sas_port *port = transport_class_to_sas_port(dev); \ 860 struct sas_port *port = dev_to_sas_port(dev); in sas_port_release() 868 static void sas_port_create_link(struct sas_port *port, in sas_port_create_link() 886 static void sas_port_delete_link(struct sas_port *port, in sas_port_delete_link() 905 struct sas_port *sas_port_alloc(struct device *parent, int port_id) in sas_port_alloc() 908 struct sas_port *port; in sas_port_alloc() 951 struct sas_port *sas_port_alloc_num(struct device *parent) in sas_port_alloc_num() 977 int sas_port_add(struct sas_port *port) in sas_port_add() 1006 void sas_port_free(struct sas_port *port) in sas_port_free() 1020 void sas_port_delete(struct sas_port *port) in sas_port_delete() [all …]
|
| H A D | hpsa.h | 47 struct sas_port *port; 112 struct hpsa_sas_port *sas_port; member
|
| /linux/drivers/scsi/libsas/ |
| H A D | sas_discover.c | 355 struct sas_port *sas_port, *p; in sas_destruct_ports() local 357 list_for_each_entry_safe(sas_port, p, &port->sas_port_del_list, del_list) { in sas_destruct_ports() 358 list_del_init(&sas_port->del_list); in sas_destruct_ports() 359 sas_port_delete(sas_port); in sas_destruct_ports() 426 void sas_device_set_phy(struct domain_device *dev, struct sas_port *port) in sas_device_set_phy()
|
| H A D | Makefile | 12 sas_port.o \
|
| H A D | sas_port.c | 135 port = sas_ha->sas_port[i]; in sas_form_port() 150 port = sas_ha->sas_port[i]; in sas_form_port() 347 struct asd_sas_port *port = sas_ha->sas_port[i]; in sas_register_ports()
|
| H A D | sas_event.c | 100 struct asd_sas_port *port = ha->sas_port[i]; in sas_enable_revalidation()
|
| H A D | sas_init.c | 394 struct asd_sas_port *port = ha->sas_port[i]; in sas_resume_insert_broadcast_ha() 474 struct asd_sas_port *port = ha->sas_port[i]; in sas_suspend_ha()
|
| H A D | sas_internal.h | 92 void sas_device_set_phy(struct domain_device *dev, struct sas_port *port);
|
| /linux/Documentation/scsi/ |
| H A D | libsas.rst | 117 - this points to the sas_port if the phy belongs 119 sas_port this phy is part of. Set by the SAS Layer. 132 ``struct sas_port`` 156 struct sas_port sas_ports[MAX_PHYS]; /* (1) */ 174 sas_port subsection 184 and the number of ports present in the sas_port 220 int (*lldd_clear_nexus_port)(struct sas_port *); 242 static struct sas_port *sas_ports[MAX_PHYS]; 252 my_ha->sas_ha.sas_port = sas_ports;
|
| /linux/drivers/message/fusion/ |
| H A D | mptsas.h | 154 struct sas_port *port; /* transport layer port object */
|
| /linux/drivers/scsi/pm8001/ |
| H A D | pm8001_init.c | 624 sha->sas_port = arr_port; in pm8001_prep_sas_ha_init() 657 sha->sas_port[i] = &pm8001_ha->port[i].sas_port; in pm8001_post_sas_ha_init() 1323 kfree(sha->sas_port); in pm8001_pci_remove()
|
| H A D | pm8001_sas.c | 1234 struct asd_sas_port *sas_port = sas_phy->port; in pm8001_port_formed() local 1237 if (!sas_port) { in pm8001_port_formed() 1241 sas_port->lldd_port = port; in pm8001_port_formed()
|
| /linux/drivers/scsi/aic94xx/ |
| H A D | aic94xx_init.c | 664 asd_ha->sas_ha.sas_port= sas_ports; in asd_register_sas_ha() 680 kfree(asd_ha->sas_ha.sas_port); in asd_unregister_sas_ha()
|