• Home
  • Raw
  • Download

Lines Matching refs:val32

113 	u32 val32;  in init_sata()  local
191 val32 = in_le32(&reg->hcontrol); in init_sata()
192 val32 &= ~HCONTROL_ONOFF; in init_sata()
193 val32 |= HCONTROL_FORCE_OFFLINE; in init_sata()
194 out_le32(&reg->hcontrol, val32); in init_sata()
203 val32 = in_le32(&reg->hcontrol); in init_sata()
204 val32 |= HCONTROL_HDR_SNOOP; in init_sata()
205 out_le32(&reg->hcontrol, val32); in init_sata()
208 val32 = in_le32(&reg->hcontrol); in init_sata()
209 val32 &= ~HCONTROL_INT_EN_ALL; in init_sata()
210 out_le32(&reg->hcontrol, val32); in init_sata()
213 val32 = in_le32(&reg->hstatus); in init_sata()
214 out_le32(&reg->hstatus, val32); in init_sata()
223 val32 = in_le32(&reg->serror); in init_sata()
224 out_le32(&reg->serror, val32); in init_sata()
227 val32 = in_le32(&reg->cer); in init_sata()
228 out_le32(&reg->cer, val32); in init_sata()
231 val32 = in_le32(&reg->der); in init_sata()
232 out_le32(&reg->der, val32); in init_sata()
244 val32 = in_le32(&reg->hcontrol); in init_sata()
245 val32 |= HCONTROL_ONOFF; in init_sata()
246 out_le32(&reg->hcontrol, val32); in init_sata()
258 val32 = in_le32(&reg->hstatus); in init_sata()
259 if (val32 & HSTATUS_PHY_RDY) { in init_sata()
271 if (val32 & HSTATUS_SIGNATURE) { in init_sata()
278 val32 = in_le32(&reg->sstatus); in init_sata()
279 if ((val32 & SSTATUS_SPD_MASK) == SSTATUS_SPD_GEN1) in init_sata()
281 else if ((val32 & SSTATUS_SPD_MASK) == SSTATUS_SPD_GEN2) in init_sata()
300 u32 val32; in fsl_ata_exec_ata_cmd() local
383 val32 = prde_count << CMD_HDR_PRD_ENTRY_SHIFT; in fsl_ata_exec_ata_cmd()
384 val32 |= sizeof(sata_fis_h2d_t); in fsl_ata_exec_ata_cmd()
385 cmd_hdr->prde_fis_len = cpu_to_le32(val32); in fsl_ata_exec_ata_cmd()
390 val32 = CMD_HDR_ATTR_RES | CMD_HDR_ATTR_SNOOP; in fsl_ata_exec_ata_cmd()
392 val32 = CMD_HDR_ATTR_RES | CMD_HDR_ATTR_SNOOP | in fsl_ata_exec_ata_cmd()
396 val32 |= tag; in fsl_ata_exec_ata_cmd()
398 debug("attribute = %08x\n\r", val32); in fsl_ata_exec_ata_cmd()
399 cmd_hdr->attribute = cpu_to_le32(val32); in fsl_ata_exec_ata_cmd()
405 val32 = (u32)(h2d->pm_port_c & 0x0f); in fsl_ata_exec_ata_cmd()
406 out_le32(&reg->cqpmp, val32); in fsl_ata_exec_ata_cmd()
414 val32 = 1 << tag; in fsl_ata_exec_ata_cmd()
415 out_le32(&reg->cqr, val32); in fsl_ata_exec_ata_cmd()
426 val32 = in_le32(&reg->cer); in fsl_ata_exec_ata_cmd()
428 if (val32) { in fsl_ata_exec_ata_cmd()
433 out_le32(&reg->cer, val32); in fsl_ata_exec_ata_cmd()
438 val32 = in_le32(&reg->ccr); in fsl_ata_exec_ata_cmd()
439 out_le32(&reg->ccr, val32); in fsl_ata_exec_ata_cmd()