/drivers/scsi/libsas/ |
H A D | sas_dump.h | 29 void sas_dprint_hae(struct sas_ha_struct *sas_ha, enum ha_event he);
|
H A D | sas_init.c | 103 int sas_register_ha(struct sas_ha_struct *sas_ha) argument 107 mutex_init(&sas_ha->disco_mutex); 108 spin_lock_init(&sas_ha->phy_port_lock); 109 sas_hash_addr(sas_ha->hashed_sas_addr, sas_ha->sas_addr); 111 if (sas_ha->lldd_queue_size == 0) 112 sas_ha->lldd_queue_size = 1; 113 else if (sas_ha->lldd_queue_size == -1) 114 sas_ha->lldd_queue_size = 128; /* Sanity */ 116 set_bit(SAS_HA_REGISTERED, &sas_ha 160 sas_unregister_ha(struct sas_ha_struct *sas_ha) argument 191 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); local 240 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); local 274 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); local 310 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); local 345 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); local [all...] |
H A D | sas_host_smp.c | 22 static void sas_host_smp_discover(struct sas_ha_struct *sas_ha, u8 *resp_data, argument 28 if (phy_id >= sas_ha->num_phys) { 34 phy = sas_ha->sas_phy[phy_id]->phy; 37 memcpy(resp_data + 16, sas_ha->sas_addr, SAS_ADDR_SIZE); 38 memcpy(resp_data + 24, sas_ha->sas_phy[phy_id]->attached_sas_addr, 45 if (!sas_ha->sas_phy[phy_id]->port || 46 !sas_ha->sas_phy[phy_id]->port->port_dev) 49 rphy = sas_ha->sas_phy[phy_id]->port->port_dev->rphy; 116 static int sas_host_smp_write_gpio(struct sas_ha_struct *sas_ha, u8 *resp_data, argument 120 struct sas_internal *i = to_sas_internal(sas_ha 140 sas_report_phy_sata(struct sas_ha_struct *sas_ha, u8 *resp_data, u8 phy_id) argument 183 sas_phy_control(struct sas_ha_struct *sas_ha, u8 phy_id, u8 phy_op, enum sas_linkrate min, enum sas_linkrate max, u8 *resp_data) argument 232 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); local [all...] |
H A D | sas_port.c | 33 struct sas_ha_struct *sas_ha = phy->ha; local 36 SAS_ADDR_SIZE) != 0 || (sas_ha->strict_wide_ports && 52 struct sas_ha_struct *sas_ha = phy->ha; local 55 to_sas_internal(sas_ha->core.shost->transportt); 70 spin_lock_irqsave(&sas_ha->phy_port_lock, flags); 71 for (i = 0; i < sas_ha->num_phys; i++) { 72 port = sas_ha->sas_port[i]; 84 if (i == sas_ha->num_phys) { 85 for (i = 0; i < sas_ha->num_phys; i++) { 86 port = sas_ha 156 struct sas_ha_struct *sas_ha = phy->ha; local 268 sas_init_port(struct asd_sas_port *port, struct sas_ha_struct *sas_ha, int i) argument 283 sas_register_ports(struct sas_ha_struct *sas_ha) argument 297 sas_unregister_ports(struct sas_ha_struct *sas_ha) argument [all...] |
H A D | sas_event.c | 119 static void notify_ha_event(struct sas_ha_struct *sas_ha, enum ha_event event) argument 123 sas_queue_event(event, &sas_ha->pending, 124 &sas_ha->ha_events[event].work, sas_ha); 147 int sas_init_events(struct sas_ha_struct *sas_ha) argument 156 INIT_SAS_WORK(&sas_ha->ha_events[i].work, sas_ha_event_fns[i]); 157 sas_ha->ha_events[i].ha = sas_ha; 160 sas_ha->notify_ha_event = notify_ha_event; 161 sas_ha [all...] |
H A D | sas_phy.c | 56 struct sas_ha_struct *sas_ha = phy->ha; local 59 to_sas_internal(sas_ha->core.shost->transportt); 87 struct sas_ha_struct *sas_ha = phy->ha; local 89 to_sas_internal(sas_ha->core.shost->transportt); 99 int sas_register_phys(struct sas_ha_struct *sas_ha) argument 119 for (i = 0; i < sas_ha->num_phys; i++) { 121 struct asd_sas_phy *phy = sas_ha->sas_phy[i]; 136 phy->ha = sas_ha; 141 phy->phy = sas_phy_alloc(&sas_ha->core.shost->shost_gendev, i); 148 phy->phy->identify.sas_address = SAS_ADDR(sas_ha [all...] |
H A D | sas_dump.c | 55 void sas_dprint_hae(struct sas_ha_struct *sas_ha, enum ha_event he) argument 57 SAS_DPRINTK("ha %s: %s event\n", dev_name(sas_ha->dev),
|
H A D | sas_internal.h | 61 int sas_register_phys(struct sas_ha_struct *sas_ha); 62 void sas_unregister_phys(struct sas_ha_struct *sas_ha); 64 int sas_register_ports(struct sas_ha_struct *sas_ha); 65 void sas_unregister_ports(struct sas_ha_struct *sas_ha); 69 int sas_init_queue(struct sas_ha_struct *sas_ha); 70 int sas_init_events(struct sas_ha_struct *sas_ha); 71 void sas_shutdown_queue(struct sas_ha_struct *sas_ha);
|
H A D | sas_scsi_host.c | 184 struct sas_ha_struct *sas_ha = task->dev->port->ha; local 185 struct scsi_core *core = &sas_ha->core; 190 if (sas_ha->lldd_queue_size < core->task_queue_size + 1) { 206 struct sas_ha_struct *sas_ha = dev->port->ha; local 228 if (sas_ha->lldd_max_execute_num < 2) 252 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(cmd->device->host); local 265 scsi_eh_finish_cmd(cmd, &sas_ha->eh_done_q); 781 struct sas_ha_struct *sas_ha; local 790 sas_ha = dev->port->ha; 868 static void sas_queue(struct sas_ha_struct *sas_ha) argument 926 struct sas_ha_struct *sas_ha = _sas_ha; local 939 sas_init_queue(struct sas_ha_struct *sas_ha) argument 955 sas_shutdown_queue(struct sas_ha_struct *sas_ha) argument [all...] |
H A D | sas_ata.c | 101 struct sas_ha_struct *sas_ha = dev->port->ha; local 108 if (test_bit(SAS_HA_FROZEN, &sas_ha->state)) 187 struct sas_ha_struct *sas_ha = dev->port->ha; local 188 struct Scsi_Host *host = sas_ha->core.shost; 247 if (sas_ha->lldd_max_execute_num < 2) 722 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); local 734 sas_disable_revalidation(sas_ha); 736 spin_lock_irq(&sas_ha->phy_port_lock); 737 for (i = 0; i < sas_ha->num_phys; i++) { 738 struct asd_sas_port *port = sas_ha [all...] |
H A D | sas_discover.c | 184 struct sas_ha_struct *sas_ha = dev->port->ha; local 185 struct Scsi_Host *shost = sas_ha->core.shost; 193 dev_name(sas_ha->dev), 204 struct sas_ha_struct *sas_ha = dev->port->ha; local 205 struct Scsi_Host *shost = sas_ha->core.shost;
|
/drivers/scsi/isci/ |
H A D | init.c | 137 struct sas_ha_struct *sas_ha = SHOST_TO_SAS_HA(shost); local 138 struct isci_host *ihost = container_of(sas_ha, typeof(*ihost), sas_ha); 217 * specific members of the sas_ha struct and calls the libsas 220 * libsas sas_ha struct. 229 struct sas_ha_struct *sas_ha = &(isci_host->sas_ha); local 245 sas_ha->sas_ha_name = DRV_NAME; 246 sas_ha->lldd_module = THIS_MODULE; 247 sas_ha [all...] |
H A D | host.h | 191 struct sas_ha_struct sas_ha; member in struct:isci_host
|
H A D | port.c | 167 ihost->sas_ha.notify_port_event(&iphy->sas_phy, PORTE_BROADCAST_RCVD); 226 isci_host->sas_ha.notify_port_event(&iphy->sas_phy, 273 isci_host->sas_ha.notify_phy_event(&isci_phy->sas_phy,
|
H A D | host.c | 2518 ihost->sas_ha.dev = &ihost->pdev->dev; 2519 ihost->sas_ha.lldd_ha = ihost; 3019 int isci_gpio_write(struct sas_ha_struct *sas_ha, u8 reg_type, u8 reg_index, argument 3022 struct isci_host *ihost = sas_ha->lldd_ha;
|
H A D | phy.c | 1343 iphy->sas_phy.ha = &ihost->sas_ha;
|
/drivers/scsi/aic94xx/ |
H A D | aic94xx_scb.c | 89 struct sas_ha_struct *sas_ha = &asd_ha->sas_ha; local 102 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_LOSS_OF_SIGNAL); 110 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE); 115 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_SPINUP_HOLD); 123 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_OOB_ERROR); 243 struct sas_ha_struct *sas_ha = phy->sas_phy.ha; local 255 sas_ha->notify_port_event(&phy->sas_phy, PORTE_BYTES_DMAED); 263 struct sas_ha_struct *sas_ha = &asd_ha->sas_ha; local 316 struct sas_ha_struct *sas_ha = &ascb->ha->sas_ha; local 419 struct sas_ha_struct *sas_ha = &asd_ha->sas_ha; local [all...] |
H A D | aic94xx_init.c | 699 asd_ha->sas_ha.sas_ha_name = (char *) asd_ha->name; 700 asd_ha->sas_ha.lldd_module = THIS_MODULE; 701 asd_ha->sas_ha.sas_addr = &asd_ha->hw_prof.sas_addr[0]; 708 asd_ha->sas_ha.sas_phy = sas_phys; 709 asd_ha->sas_ha.sas_port= sas_ports; 710 asd_ha->sas_ha.num_phys= ASD_MAX_PHYS; 712 asd_ha->sas_ha.lldd_queue_size = asd_ha->seq.can_queue; 713 asd_ha->sas_ha.lldd_max_execute_num = lldd_max_execute_num; 715 return sas_register_ha(&asd_ha->sas_ha); 722 err = sas_unregister_ha(&asd_ha->sas_ha); [all...] |
H A D | aic94xx.h | 96 int asd_clear_nexus_ha(struct sas_ha_struct *sas_ha);
|
H A D | aic94xx_hwi.c | 49 return sas_request_addr(asd_ha->sas_ha.core.shost, 145 phy->sas_phy.ha = &asd_ha->sas_ha; 721 struct sas_ha_struct *sas_ha = &asd_ha->sas_ha; local 725 sas_ha->notify_ha_event(sas_ha, HAE_RESET);
|
H A D | aic94xx_tmf.c | 134 int asd_clear_nexus_ha(struct sas_ha_struct *sas_ha) argument 136 struct asd_ha_struct *asd_ha = sas_ha->lldd_ha;
|
H A D | aic94xx_hwi.h | 202 struct sas_ha_struct sas_ha; member in struct:asd_ha_struct
|
/drivers/scsi/pm8001/ |
H A D | pm8001_hwi.c | 2964 struct sas_ha_struct *sas_ha; local 2968 sas_ha = pm8001_ha->sas; 3099 struct sas_ha_struct *sas_ha = pm8001_ha->sas; local 3145 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE); 3177 struct sas_ha_struct *sas_ha = pm8001_ha->sas; local 3189 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_OOB_DONE); 3505 struct sas_ha_struct *sas_ha = pm8001_ha->sas; local 3507 struct asd_sas_phy *sas_phy = sas_ha->sas_phy[phy_id]; 3541 sas_ha->notify_phy_event(&phy->sas_phy, PHYE_SPINUP_HOLD); 3546 sas_ha [all...] |
/drivers/scsi/mvsas/ |
H A D | mv_sas.c | 239 struct sas_ha_struct *sas_ha; local 248 sas_ha = mvi->sas; 249 sas_ha->notify_phy_event(sas_phy, PHYE_OOB_DONE); 1185 struct sas_ha_struct *sas_ha = sas_phy->ha; local 1194 while (sas_ha->sas_phy[i]) { 1195 if (sas_ha->sas_phy[i] == sas_phy) 1199 hi = i/((struct mvs_prv_info *)sas_ha->lldd_ha)->n_phy; 1200 mvi = ((struct mvs_prv_info *)sas_ha->lldd_ha)->mvi[hi]; 1982 struct sas_ha_struct *sas_ha = mvi->sas; local 1998 sas_ha [all...] |