Lines Matching refs:tag
389 unsigned int tag,
392 /* We let libATA core do actual (queue) tag allocation */
394 if (unlikely(tag >= SATA_FSL_QUEUE_DEPTH)) {
395 ata_port_dbg(ap, "tag %d invalid : out of range\n", tag);
399 if (unlikely((ioread32(hcr_base + CQ)) & (1 << tag))) {
400 ata_port_dbg(ap, "tag %d invalid : in use!!\n", tag);
404 return tag;
409 unsigned int tag, u32 desc_info,
416 tag * SATA_FSL_CMD_DESC_SIZE;
420 pp->cmdslot[tag].cda = cpu_to_le32(cmd_descriptor_address);
421 pp->cmdslot[tag].prde_fis_len =
423 pp->cmdslot[tag].ttl = cpu_to_le32(data_xfer_len & ~0x03);
424 pp->cmdslot[tag].desc_info = cpu_to_le32(desc_info | (tag & 0x1F));
427 le32_to_cpu(pp->cmdslot[tag].cda),
428 le32_to_cpu(pp->cmdslot[tag].prde_fis_len),
429 le32_to_cpu(pp->cmdslot[tag].ttl),
430 le32_to_cpu(pp->cmdslot[tag].desc_info));
504 unsigned int tag = sata_fsl_tag(ap, qc->hw_tag, hcr_base);
511 cd = (struct command_desc *)pp->cmdentry + tag;
512 cd_paddr = pp->cmdentry_paddr + tag * SATA_FSL_CMD_DESC_SIZE;
531 sata_fsl_setup_cmd_hdr_entry(ap, pp, tag, desc_info, ttl_dwords,
545 unsigned int tag = sata_fsl_tag(ap, qc->hw_tag, hcr_base);
555 iowrite32(1 << tag, CQ + hcr_base);
557 ata_port_dbg(ap, "tag=%d, CQ=0x%x, CA=0x%x\n",
558 tag, ioread32(CQ + hcr_base), ioread32(CA + hcr_base));
574 unsigned int tag = sata_fsl_tag(qc->ap, qc->hw_tag, hcr_base);
577 cd = pp->cmdentry + tag;
1186 u32 tag;
1198 ata_qc_for_each_with_internal(ap, qc, tag) {
1252 ata_port_dbg(ap, "completing ncq cmd,tag=%d,CC=0x%x,CA=0x%x\n",