Lines Matching defs:sata_port

822 	struct ipr_sata_port *sata_port = qc->ap->private_data;
825 sata_port->ioasa.status |= ATA_BUSY;
1193 res->sata_port = NULL;
4819 struct ipr_sata_port *sata_port;
4830 sata_port = kzalloc(sizeof(*sata_port), GFP_KERNEL);
4831 if (!sata_port)
4837 sata_port->ioa_cfg = ioa_cfg;
4838 sata_port->ap = ap;
4839 sata_port->res = res;
4841 res->sata_port = sata_port;
4842 ap->private_data = sata_port;
4843 starget->hostdata = sata_port;
4845 kfree(sata_port);
4864 struct ipr_sata_port *sata_port = starget->hostdata;
4879 if (sata_port) {
4881 ata_sas_port_destroy(sata_port->ap);
4882 kfree(sata_port);
4926 if (res->sata_port)
4927 res->sata_port->ap->link.device[0].class = ATA_DEV_NONE;
4930 res->sata_port = NULL;
4968 if (ipr_is_gata(res) && res->sata_port)
4969 ap = res->sata_port->ap;
4999 struct ipr_sata_port *sata_port = NULL;
5004 sata_port = sdev->sdev_target->hostdata;
5005 if (sata_port) {
5006 rc = ata_sas_port_init(sata_port->ap);
5008 rc = ata_sas_sync_probe(sata_port->ap);
5262 if (ipr_is_gata(res) && res->sata_port && ioasc != IPR_IOASC_IOA_WAS_RESET) {
5264 memcpy(&res->sata_port->ioasa, &ipr_cmd->s.ioasa64.u.gata,
5267 memcpy(&res->sata_port->ioasa, &ipr_cmd->s.ioasa.u.gata,
5289 struct ipr_sata_port *sata_port = link->ap->private_data;
5290 struct ipr_ioa_cfg *ioa_cfg = sata_port->ioa_cfg;
5303 res = sata_port->res;
5381 if (ipr_is_gata(res) && res->sata_port) {
5382 ap = res->sata_port->ap;
5412 if (ipr_is_gata(res) && res->sata_port)
6578 if (ipr_is_gata(res) && res->sata_port) {
6580 rc = ata_sas_queuecmd(scsi_cmd, res->sata_port->ap);
6712 return ata_sas_scsi_ioctl(res->sata_port->ap, sdev, cmd, arg);
6779 struct ipr_sata_port *sata_port = ap->private_data;
6780 struct ipr_resource_entry *res = sata_port->res;
6781 struct ipr_ioa_cfg *ioa_cfg = sata_port->ioa_cfg;
6820 struct ipr_sata_port *sata_port = qc->ap->private_data;
6821 struct ipr_ioa_cfg *ioa_cfg = sata_port->ioa_cfg;
6837 ipr_device_reset(ioa_cfg, sata_port->res);
6886 struct ipr_sata_port *sata_port = qc->ap->private_data;
6887 struct ipr_resource_entry *res = sata_port->res;
6892 memcpy(&sata_port->ioasa, &ipr_cmd->s.ioasa64.u.gata,
6895 memcpy(&sata_port->ioasa, &ipr_cmd->s.ioasa.u.gata,
6903 qc->err_mask |= __ac_err_mask(sata_port->ioasa.status);
6905 qc->err_mask |= ac_err_mask(sata_port->ioasa.status);
7012 struct ipr_sata_port *sata_port = ap->private_data;
7013 struct ipr_ioa_cfg *ioa_cfg = sata_port->ioa_cfg;
7054 struct ipr_sata_port *sata_port = ap->private_data;
7055 struct ipr_resource_entry *res = sata_port->res;
7056 struct ipr_ioa_cfg *ioa_cfg = sata_port->ioa_cfg;
7148 struct ipr_sata_port *sata_port = qc->ap->private_data;
7149 struct ipr_ioasa_gata *g = &sata_port->ioasa;