Lines Matching refs:val32
94 u32 val32; in init_sata() local
176 val32 = in_le32(®->hcontrol); in init_sata()
177 val32 &= ~HCONTROL_ONOFF; in init_sata()
178 val32 |= HCONTROL_FORCE_OFFLINE; in init_sata()
179 out_le32(®->hcontrol, val32); in init_sata()
188 val32 = in_le32(®->hcontrol); in init_sata()
189 val32 |= HCONTROL_HDR_SNOOP; in init_sata()
190 out_le32(®->hcontrol, val32); in init_sata()
193 val32 = in_le32(®->hcontrol); in init_sata()
194 val32 &= ~HCONTROL_INT_EN_ALL; in init_sata()
195 out_le32(®->hcontrol, val32); in init_sata()
198 val32 = in_le32(®->hstatus); in init_sata()
199 out_le32(®->hstatus, val32); in init_sata()
208 val32 = in_le32(®->serror); in init_sata()
209 out_le32(®->serror, val32); in init_sata()
212 val32 = in_le32(®->cer); in init_sata()
213 out_le32(®->cer, val32); in init_sata()
216 val32 = in_le32(®->der); in init_sata()
217 out_le32(®->der, val32); in init_sata()
229 val32 = in_le32(®->hcontrol); in init_sata()
230 val32 |= HCONTROL_ONOFF; in init_sata()
231 out_le32(®->hcontrol, val32); in init_sata()
246 val32 = in_le32(®->hstatus); in init_sata()
247 if (val32 & HSTATUS_PHY_RDY) { in init_sata()
259 if (val32 & HSTATUS_SIGNATURE) { in init_sata()
266 val32 = in_le32(®->sstatus); in init_sata()
267 if ((val32 & SSTATUS_SPD_MASK) == SSTATUS_SPD_GEN1) in init_sata()
269 else if ((val32 & SSTATUS_SPD_MASK) == SSTATUS_SPD_GEN2) in init_sata()
319 u32 val32; in fsl_ata_exec_ata_cmd() local
399 val32 = prde_count << CMD_HDR_PRD_ENTRY_SHIFT; in fsl_ata_exec_ata_cmd()
400 val32 |= sizeof(sata_fis_h2d_t); in fsl_ata_exec_ata_cmd()
401 cmd_hdr->prde_fis_len = cpu_to_le32(val32); in fsl_ata_exec_ata_cmd()
406 val32 = CMD_HDR_ATTR_RES | CMD_HDR_ATTR_SNOOP; in fsl_ata_exec_ata_cmd()
408 val32 = CMD_HDR_ATTR_RES | CMD_HDR_ATTR_SNOOP | CMD_HDR_ATTR_FPDMA; in fsl_ata_exec_ata_cmd()
412 val32 |= tag; in fsl_ata_exec_ata_cmd()
414 debug("attribute = %08x\n\r", val32); in fsl_ata_exec_ata_cmd()
415 cmd_hdr->attribute = cpu_to_le32(val32); in fsl_ata_exec_ata_cmd()
421 val32 = (u32)(h2d->pm_port_c & 0x0f); in fsl_ata_exec_ata_cmd()
422 out_le32(®->cqpmp, val32); in fsl_ata_exec_ata_cmd()
430 val32 = 1 << tag; in fsl_ata_exec_ata_cmd()
431 out_le32(®->cqr, val32); in fsl_ata_exec_ata_cmd()
442 val32 = in_le32(®->cer); in fsl_ata_exec_ata_cmd()
444 if (val32) { in fsl_ata_exec_ata_cmd()
450 out_le32(®->cer, val32); in fsl_ata_exec_ata_cmd()
455 val32 = in_le32(®->ccr); in fsl_ata_exec_ata_cmd()
456 out_le32(®->ccr, val32); in fsl_ata_exec_ata_cmd()