sata_port 214 drivers/ata/sata_highbank.c static u32 __combo_phy_reg_read(u8 sata_port, u32 addr) sata_port 217 drivers/ata/sata_highbank.c u8 dev = port_data[sata_port].phy_devs; sata_port 219 drivers/ata/sata_highbank.c writel(CPHY_MAP(dev, addr), port_data[sata_port].phy_base + 0x800); sata_port 220 drivers/ata/sata_highbank.c data = readl(port_data[sata_port].phy_base + CPHY_ADDR(addr)); sata_port 225 drivers/ata/sata_highbank.c static void __combo_phy_reg_write(u8 sata_port, u32 addr, u32 data) sata_port 227 drivers/ata/sata_highbank.c u8 dev = port_data[sata_port].phy_devs; sata_port 229 drivers/ata/sata_highbank.c writel(CPHY_MAP(dev, addr), port_data[sata_port].phy_base + 0x800); sata_port 230 drivers/ata/sata_highbank.c writel(data, port_data[sata_port].phy_base + CPHY_ADDR(addr)); sata_port 234 drivers/ata/sata_highbank.c static void combo_phy_wait_for_ready(u8 sata_port) sata_port 236 drivers/ata/sata_highbank.c while (__combo_phy_reg_read(sata_port, SERDES_CR_CTL) & CR_BUSY) sata_port 240 drivers/ata/sata_highbank.c static u32 combo_phy_read(u8 sata_port, u32 addr) sata_port 242 drivers/ata/sata_highbank.c combo_phy_wait_for_ready(sata_port); sata_port 243 drivers/ata/sata_highbank.c __combo_phy_reg_write(sata_port, SERDES_CR_ADDR, addr); sata_port 244 drivers/ata/sata_highbank.c __combo_phy_reg_write(sata_port, SERDES_CR_CTL, CR_START); sata_port 245 drivers/ata/sata_highbank.c combo_phy_wait_for_ready(sata_port); sata_port 246 drivers/ata/sata_highbank.c return __combo_phy_reg_read(sata_port, SERDES_CR_DATA); sata_port 249 drivers/ata/sata_highbank.c static void combo_phy_write(u8 sata_port, u32 addr, u32 data) sata_port 251 drivers/ata/sata_highbank.c combo_phy_wait_for_ready(sata_port); sata_port 252 drivers/ata/sata_highbank.c __combo_phy_reg_write(sata_port, SERDES_CR_ADDR, addr); sata_port 253 drivers/ata/sata_highbank.c __combo_phy_reg_write(sata_port, SERDES_CR_DATA, data); sata_port 254 drivers/ata/sata_highbank.c __combo_phy_reg_write(sata_port, SERDES_CR_CTL, CR_WR_RDN | CR_START); sata_port 257 drivers/ata/sata_highbank.c static void highbank_cphy_disable_overrides(u8 sata_port) sata_port 259 drivers/ata/sata_highbank.c u8 lane = port_data[sata_port].lane_mapping; sata_port 261 drivers/ata/sata_highbank.c if (unlikely(port_data[sata_port].phy_base == NULL)) sata_port 263 drivers/ata/sata_highbank.c tmp = combo_phy_read(sata_port, CPHY_RX_INPUT_STS + lane * SPHY_LANE); sata_port 265 drivers/ata/sata_highbank.c combo_phy_write(sata_port, CPHY_RX_OVERRIDE + lane * SPHY_LANE, tmp); sata_port 268 drivers/ata/sata_highbank.c static void cphy_override_tx_attenuation(u8 sata_port, u32 val) sata_port 270 drivers/ata/sata_highbank.c u8 lane = port_data[sata_port].lane_mapping; sata_port 276 drivers/ata/sata_highbank.c tmp = combo_phy_read(sata_port, CPHY_TX_INPUT_STS + lane * SPHY_LANE); sata_port 278 drivers/ata/sata_highbank.c combo_phy_write(sata_port, CPHY_TX_OVERRIDE + lane * SPHY_LANE, tmp); sata_port 281 drivers/ata/sata_highbank.c combo_phy_write(sata_port, CPHY_TX_OVERRIDE + lane * SPHY_LANE, tmp); sata_port 284 drivers/ata/sata_highbank.c combo_phy_write(sata_port, CPHY_TX_OVERRIDE + lane * SPHY_LANE, tmp); sata_port 287 drivers/ata/sata_highbank.c static void cphy_override_rx_mode(u8 sata_port, u32 val) sata_port 289 drivers/ata/sata_highbank.c u8 lane = port_data[sata_port].lane_mapping; sata_port 291 drivers/ata/sata_highbank.c tmp = combo_phy_read(sata_port, CPHY_RX_INPUT_STS + lane * SPHY_LANE); sata_port 293 drivers/ata/sata_highbank.c combo_phy_write(sata_port, CPHY_RX_OVERRIDE + lane * SPHY_LANE, tmp); sata_port 296 drivers/ata/sata_highbank.c combo_phy_write(sata_port, CPHY_RX_OVERRIDE + lane * SPHY_LANE, tmp); sata_port 300 drivers/ata/sata_highbank.c combo_phy_write(sata_port, CPHY_RX_OVERRIDE + lane * SPHY_LANE, tmp); sata_port 303 drivers/ata/sata_highbank.c combo_phy_write(sata_port, CPHY_RX_OVERRIDE + lane * SPHY_LANE, tmp); sata_port 306 drivers/ata/sata_highbank.c combo_phy_write(sata_port, CPHY_RX_OVERRIDE + lane * SPHY_LANE, tmp); sata_port 311 drivers/ata/sata_highbank.c static void highbank_cphy_override_lane(u8 sata_port) sata_port 313 drivers/ata/sata_highbank.c u8 lane = port_data[sata_port].lane_mapping; sata_port 316 drivers/ata/sata_highbank.c if (unlikely(port_data[sata_port].phy_base == NULL)) sata_port 319 drivers/ata/sata_highbank.c tmp = combo_phy_read(sata_port, CPHY_RX_INPUT_STS + sata_port 322 drivers/ata/sata_highbank.c cphy_override_rx_mode(sata_port, 3); sata_port 323 drivers/ata/sata_highbank.c cphy_override_tx_attenuation(sata_port, port_data[sata_port].tx_atten); sata_port 822 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = qc->ap->private_data; sata_port 825 drivers/scsi/ipr.c sata_port->ioasa.status |= ATA_BUSY; sata_port 1193 drivers/scsi/ipr.c res->sata_port = NULL; sata_port 4804 drivers/scsi/ipr.c struct ipr_sata_port *sata_port; sata_port 4815 drivers/scsi/ipr.c sata_port = kzalloc(sizeof(*sata_port), GFP_KERNEL); sata_port 4816 drivers/scsi/ipr.c if (!sata_port) sata_port 4822 drivers/scsi/ipr.c sata_port->ioa_cfg = ioa_cfg; sata_port 4823 drivers/scsi/ipr.c sata_port->ap = ap; sata_port 4824 drivers/scsi/ipr.c sata_port->res = res; sata_port 4826 drivers/scsi/ipr.c res->sata_port = sata_port; sata_port 4827 drivers/scsi/ipr.c ap->private_data = sata_port; sata_port 4828 drivers/scsi/ipr.c starget->hostdata = sata_port; sata_port 4830 drivers/scsi/ipr.c kfree(sata_port); sata_port 4849 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = starget->hostdata; sata_port 4864 drivers/scsi/ipr.c if (sata_port) { sata_port 4866 drivers/scsi/ipr.c ata_sas_port_destroy(sata_port->ap); sata_port 4867 drivers/scsi/ipr.c kfree(sata_port); sata_port 4911 drivers/scsi/ipr.c if (res->sata_port) sata_port 4912 drivers/scsi/ipr.c res->sata_port->ap->link.device[0].class = ATA_DEV_NONE; sata_port 4915 drivers/scsi/ipr.c res->sata_port = NULL; sata_port 4953 drivers/scsi/ipr.c if (ipr_is_gata(res) && res->sata_port) sata_port 4954 drivers/scsi/ipr.c ap = res->sata_port->ap; sata_port 4984 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = NULL; sata_port 4989 drivers/scsi/ipr.c sata_port = sdev->sdev_target->hostdata; sata_port 4990 drivers/scsi/ipr.c if (sata_port) { sata_port 4991 drivers/scsi/ipr.c rc = ata_sas_port_init(sata_port->ap); sata_port 4993 drivers/scsi/ipr.c rc = ata_sas_sync_probe(sata_port->ap); sata_port 5247 drivers/scsi/ipr.c if (ipr_is_gata(res) && res->sata_port && ioasc != IPR_IOASC_IOA_WAS_RESET) { sata_port 5249 drivers/scsi/ipr.c memcpy(&res->sata_port->ioasa, &ipr_cmd->s.ioasa64.u.gata, sata_port 5252 drivers/scsi/ipr.c memcpy(&res->sata_port->ioasa, &ipr_cmd->s.ioasa.u.gata, sata_port 5273 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = link->ap->private_data; sata_port 5274 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = sata_port->ioa_cfg; sata_port 5287 drivers/scsi/ipr.c res = sata_port->res; sata_port 5365 drivers/scsi/ipr.c if (ipr_is_gata(res) && res->sata_port) { sata_port 5366 drivers/scsi/ipr.c ap = res->sata_port->ap; sata_port 5396 drivers/scsi/ipr.c if (ipr_is_gata(res) && res->sata_port) sata_port 6563 drivers/scsi/ipr.c if (ipr_is_gata(res) && res->sata_port) { sata_port 6565 drivers/scsi/ipr.c rc = ata_sas_queuecmd(scsi_cmd, res->sata_port->ap); sata_port 6697 drivers/scsi/ipr.c return ata_sas_scsi_ioctl(res->sata_port->ap, sdev, cmd, arg); sata_port 6760 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = ap->private_data; sata_port 6761 drivers/scsi/ipr.c struct ipr_resource_entry *res = sata_port->res; sata_port 6762 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = sata_port->ioa_cfg; sata_port 6801 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = qc->ap->private_data; sata_port 6802 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = sata_port->ioa_cfg; sata_port 6818 drivers/scsi/ipr.c ipr_device_reset(ioa_cfg, sata_port->res); sata_port 6867 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = qc->ap->private_data; sata_port 6868 drivers/scsi/ipr.c struct ipr_resource_entry *res = sata_port->res; sata_port 6873 drivers/scsi/ipr.c memcpy(&sata_port->ioasa, &ipr_cmd->s.ioasa64.u.gata, sata_port 6876 drivers/scsi/ipr.c memcpy(&sata_port->ioasa, &ipr_cmd->s.ioasa.u.gata, sata_port 6884 drivers/scsi/ipr.c qc->err_mask |= __ac_err_mask(sata_port->ioasa.status); sata_port 6886 drivers/scsi/ipr.c qc->err_mask |= ac_err_mask(sata_port->ioasa.status); sata_port 6993 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = ap->private_data; sata_port 6994 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = sata_port->ioa_cfg; sata_port 7035 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = ap->private_data; sata_port 7036 drivers/scsi/ipr.c struct ipr_resource_entry *res = sata_port->res; sata_port 7037 drivers/scsi/ipr.c struct ipr_ioa_cfg *ioa_cfg = sata_port->ioa_cfg; sata_port 7129 drivers/scsi/ipr.c struct ipr_sata_port *sata_port = qc->ap->private_data; sata_port 7130 drivers/scsi/ipr.c struct ipr_ioasa_gata *g = &sata_port->ioasa; sata_port 1325 drivers/scsi/ipr.h struct ipr_sata_port *sata_port;