Searched refs:tf (Results 1 - 25 of 126) sorted by path

123456

/linux-master/drivers/ata/
H A Dsata_promise.h28 static inline unsigned int pdc_pkt_header(struct ata_taskfile *tf, argument
38 switch (tf->protocol) {
40 if (!(tf->flags & ATA_TFLAG_WRITE))
69 buf[15] = tf->ctl;
74 static inline unsigned int pdc_pkt_footer(struct ata_taskfile *tf, u8 *buf, argument
77 if (tf->flags & ATA_TFLAG_DEVICE) {
79 buf[i++] = tf->device;
84 buf[i++] = tf->command;
89 static inline unsigned int pdc_prep_lba28(struct ata_taskfile *tf, u8 *buf, unsigned int i) argument
95 buf[i++] = tf
112 pdc_prep_lba48(struct ata_taskfile *tf, u8 *buf, unsigned int i) argument
[all...]
H A Dacard-ahci.c215 int is_atapi = ata_is_atapi(qc->tf.protocol);
226 ata_tf_to_fis(&qc->tf, qc->dev->link->pmp, 1, cmd_tbl);
241 if (qc->tf.flags & ATA_TFLAG_WRITE)
265 if (qc->tf.protocol == ATA_PROT_PIO && qc->dma_dir == DMA_FROM_DEVICE &&
H A Dahci.c853 struct ata_taskfile tf; local
860 ata_tf_init(link->device, &tf);
861 tf.status = ATA_BUSY;
862 ata_tf_to_fis(&tf, 0, 0, d2h_fis);
915 struct ata_taskfile tf; local
929 ata_tf_init(link->device, &tf);
930 tf.status = ATA_BUSY;
931 ata_tf_to_fis(&tf, 0, 0, d2h_fis);
H A Dahci_brcm.c249 struct ata_taskfile *tf, __le16 *id)
264 err_mask = ata_do_dev_read_id(dev, tf, id);
310 return ata_do_dev_read_id(dev, tf, id);
248 brcm_ahci_read_id(struct ata_device *dev, struct ata_taskfile *tf, __le16 *id) argument
H A Dahci_ceva.c94 struct ata_taskfile *tf, __le16 *id)
98 err_mask = ata_do_dev_read_id(dev, tf, id);
93 ceva_ahci_read_id(struct ata_device *dev, struct ata_taskfile *tf, __le16 *id) argument
H A Dahci_qoriq.c99 struct ata_taskfile tf; local
123 ata_tf_init(link->device, &tf);
124 tf.status = ATA_BUSY;
125 ata_tf_to_fis(&tf, 0, 0, d2h_fis);
H A Dahci_xgene.c214 ctx->last_cmd[ap->port_no] = qc->tf.command;
230 * @tf: proposed taskfile
237 struct ata_taskfile *tf, __le16 *id)
241 err_mask = ata_do_dev_read_id(dev, tf, id);
357 struct ata_taskfile tf; local
364 ata_tf_init(link->device, &tf);
365 tf.status = ATA_BUSY;
366 ata_tf_to_fis(&tf, 0, 0, d2h_fis);
236 xgene_ahci_read_id(struct ata_device *dev, struct ata_taskfile *tf, __le16 *id) argument
H A Dlibahci.c1334 struct ata_taskfile tf; local
1338 tf.lbah = (tmp >> 24) & 0xff;
1339 tf.lbam = (tmp >> 16) & 0xff;
1340 tf.lbal = (tmp >> 8) & 0xff;
1341 tf.nsect = (tmp) & 0xff;
1343 return ata_port_classify(ap, &tf);
1407 struct ata_taskfile *tf, int is_cmd, u16 flags,
1417 ata_tf_to_fis(tf, pmp, is_cmd, fis);
1455 struct ata_taskfile tf; local
1474 ata_tf_init(link->device, &tf);
1406 ahci_exec_polled_cmd(struct ata_port *ap, int pmp, struct ata_taskfile *tf, int is_cmd, u16 flags, unsigned int timeout_msec) argument
1598 struct ata_taskfile tf; local
[all...]
H A Dlibata-acpi.c33 u8 tf[REGS_PER_GTF]; /* regs. 0x1f1 - 0x1f7 */ member in struct:ata_acpi_gtf
543 struct ata_taskfile *tf)
545 ata_tf_init(dev, tf);
547 tf->flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE;
548 tf->protocol = ATA_PROT_NODATA;
549 tf->error = gtf->tf[0]; /* 0x1f1 */
550 tf->nsect = gtf->tf[1]; /* 0x1f2 */
551 tf
541 ata_acpi_gtf_to_tf(struct ata_device *dev, const struct ata_acpi_gtf *gtf, struct ata_taskfile *tf) argument
558 ata_acpi_filter_tf(struct ata_device *dev, const struct ata_taskfile *tf, const struct ata_taskfile *ptf) argument
643 struct ata_taskfile tf, ptf, rtf; local
[all...]
H A Dlibata-core.c579 * @tf: taskfile to examine and configure
581 * Examine the device configuration and tf->flags to determine
582 * the proper read/write command and protocol to use for @tf.
588 struct ata_taskfile *tf)
594 fua = (tf->flags & ATA_TFLAG_FUA) ? 4 : 0;
595 lba48 = (tf->flags & ATA_TFLAG_LBA48) ? 2 : 0;
596 write = (tf->flags & ATA_TFLAG_WRITE) ? 1 : 0;
599 tf->protocol = ATA_PROT_PIO;
603 tf->protocol = ATA_PROT_PIO;
606 tf
587 ata_set_rwcmd_protocol(struct ata_device *dev, struct ata_taskfile *tf) argument
634 ata_tf_read_block(const struct ata_taskfile *tf, struct ata_device *dev) argument
673 struct ata_taskfile *tf = &qc->tf; local
711 struct ata_taskfile *tf = &qc->tf; local
1028 ata_dev_classify(const struct ata_taskfile *tf) argument
1152 ata_tf_to_lba48(const struct ata_taskfile *tf) argument
1166 ata_tf_to_lba(const struct ata_taskfile *tf) argument
1193 struct ata_taskfile tf; local
1244 struct ata_taskfile tf; local
1504 ata_exec_internal_sg(struct ata_device *dev, struct ata_taskfile *tf, const u8 *cdb, int dma_dir, struct scatterlist *sgl, unsigned int n_elem, unsigned int timeout) argument
1674 ata_exec_internal(struct ata_device *dev, struct ata_taskfile *tf, const u8 *cdb, int dma_dir, void *buf, unsigned int buflen, unsigned int timeout) argument
1760 ata_do_dev_read_id(struct ata_device *dev, struct ata_taskfile *tf, __le16 *id) argument
1794 struct ata_taskfile tf; local
1975 ata_dev_power_init_tf(struct ata_device *dev, struct ata_taskfile *tf, bool set_active) argument
2006 struct ata_taskfile tf; local
2044 struct ata_taskfile tf; local
2090 struct ata_taskfile tf; local
2135 struct ata_taskfile tf; local
4500 struct ata_taskfile tf; local
4545 struct ata_taskfile tf; local
4581 struct ata_taskfile tf; local
[all...]
H A Dlibata-eh.c1389 struct ata_taskfile tf; local
1392 ata_tf_init(dev, &tf);
1394 tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE;
1395 tf.command = ATA_CMD_PACKET;
1396 tf.protocol = ATAPI_PROT_NODATA;
1398 err_mask = ata_exec_internal(dev, &tf, cdb, DMA_NONE, NULL, 0, 0);
1400 *r_sense_key = tf.error >> 4;
1421 struct ata_taskfile tf; local
1434 ata_tf_init(dev, &tf);
1435 tf
1480 struct ata_taskfile tf; local
1575 const struct ata_taskfile *tf = &qc->result_tf; local
3010 struct ata_taskfile tf; local
3301 struct ata_taskfile tf; local
[all...]
H A Dlibata-pmp.c42 struct ata_taskfile tf; local
45 ata_tf_init(pmp_dev, &tf);
46 tf.command = ATA_CMD_PMP_READ;
47 tf.protocol = ATA_PROT_NODATA;
48 tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE | ATA_TFLAG_LBA48;
49 tf.feature = reg;
50 tf.device = link->pmp;
52 err_mask = ata_exec_internal(pmp_dev, &tf, NULL, DMA_NONE, NULL, 0,
57 *r_val = tf.nsect | tf
79 struct ata_taskfile tf; local
[all...]
H A Dlibata-sata.c140 * @tf: Taskfile to convert
151 void ata_tf_to_fis(const struct ata_taskfile *tf, u8 pmp, int is_cmd, u8 *fis) argument
158 fis[2] = tf->command;
159 fis[3] = tf->feature;
161 fis[4] = tf->lbal;
162 fis[5] = tf->lbam;
163 fis[6] = tf->lbah;
164 fis[7] = tf->device;
166 fis[8] = tf->hob_lbal;
167 fis[9] = tf
194 ata_tf_from_fis(const u8 *fis, struct ata_taskfile *tf) argument
1302 ata_eh_read_log_10h(struct ata_device *dev, int *tag, struct ata_taskfile *tf) argument
1450 struct ata_taskfile tf; local
[all...]
H A Dlibata-scsi.c221 const struct ata_taskfile *tf)
225 information = ata_tf_read_block(tf, dev);
856 struct ata_taskfile *tf = &qc->result_tf; local
868 tf->status & (ATA_BUSY | ATA_DF | ATA_ERR | ATA_DRQ)) {
869 ata_to_sense_error(qc->ap->print_id, tf->status, tf->error,
898 desc[3] = tf->error;
899 desc[5] = tf->nsect;
900 desc[7] = tf->lbal;
901 desc[9] = tf
219 ata_scsi_set_sense_information(struct ata_device *dev, struct scsi_cmnd *cmd, const struct ata_taskfile *tf) argument
951 struct ata_taskfile *tf = &qc->result_tf; local
1269 struct ata_taskfile *tf = &qc->tf; local
1369 struct ata_taskfile *tf = &qc->tf; local
2849 struct ata_taskfile *tf = &(qc->tf); local
3171 struct ata_taskfile *tf = &qc->tf; local
3440 struct ata_taskfile *tf = &qc->tf; local
3523 struct ata_taskfile *tf = &qc->tf; local
3614 struct ata_taskfile *tf = &qc->tf; local
3704 struct ata_taskfile *tf = &qc->tf; local
3965 struct ata_taskfile *tf = &qc->tf; local
[all...]
H A Dlibata-sff.c336 * @tf: ATA taskfile register set
343 void ata_sff_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) argument
346 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR;
348 if (tf->ctl != ap->last_ctl) {
350 iowrite8(tf->ctl, ioaddr->ctl_addr);
351 ap->last_ctl = tf->ctl;
355 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) {
357 iowrite8(tf->hob_feature, ioaddr->feature_addr);
358 iowrite8(tf->hob_nsect, ioaddr->nsect_addr);
359 iowrite8(tf
392 ata_sff_tf_read(struct ata_port *ap, struct ata_taskfile *tf) argument
431 ata_sff_exec_command(struct ata_port *ap, const struct ata_taskfile *tf) argument
451 ata_tf_to_host(struct ata_port *ap, const struct ata_taskfile *tf, unsigned int tag) argument
1749 struct ata_taskfile tf; local
[all...]
H A Dlibata-transport.c336 * @tf: ATA taskfile register set for device to be identified
345 const struct ata_taskfile *tf)
348 unsigned int class = ata_dev_classify(tf);
344 ata_port_classify(struct ata_port *ap, const struct ata_taskfile *tf) argument
H A Dlibata-zpodd.c37 struct ata_taskfile tf; local
44 ata_tf_init(dev, &tf);
45 tf.flags = ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE;
46 tf.command = ATA_CMD_PACKET;
47 tf.protocol = ATAPI_PROT_NODATA;
49 return ata_exec_internal(dev, &tf, cdb, DMA_NONE, NULL, 0, 0);
58 struct ata_taskfile tf; local
72 ata_tf_init(dev, &tf);
73 tf.flags = ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE;
74 tf
[all...]
H A Dlibata.h47 extern u64 ata_tf_to_lba(const struct ata_taskfile *tf);
48 extern u64 ata_tf_to_lba48(const struct ata_taskfile *tf);
51 extern u64 ata_tf_read_block(const struct ata_taskfile *tf,
54 struct ata_taskfile *tf, const u8 *cdb,
66 struct ata_taskfile *tf, bool set_active);
126 const struct ata_taskfile *tf);
H A Dpata_arasan_cf.c373 if (unlikely(qc->err_mask) && ata_is_dma(qc->tf.protocol))
381 u32 rw = acdev->qc->tf.flags & ATA_TFLAG_WRITE;
435 u32 write = acdev->qc->tf.flags & ATA_TFLAG_WRITE;
639 if (qc->tf.flags & ATA_TFLAG_WRITE)
678 struct ata_taskfile *tf = &qc->tf; local
680 u32 write = tf->flags & ATA_TFLAG_WRITE;
685 ap->ops->sff_exec_command(ap, tf);
695 if (!ata_is_dma(qc->tf.protocol))
704 switch (qc->tf
[all...]
H A Dpata_ep93xx.c375 const struct ata_taskfile *tf)
378 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR;
380 if (tf->ctl != ap->last_ctl) {
381 ep93xx_pata_write_reg(drv_data, tf->ctl, IDECTRL_ADDR_CTL);
382 ap->last_ctl = tf->ctl;
386 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) {
387 ep93xx_pata_write_reg(drv_data, tf->hob_feature,
389 ep93xx_pata_write_reg(drv_data, tf->hob_nsect,
391 ep93xx_pata_write_reg(drv_data, tf->hob_lbal,
393 ep93xx_pata_write_reg(drv_data, tf
374 ep93xx_pata_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) argument
416 ep93xx_pata_tf_read(struct ata_port *ap, struct ata_taskfile *tf) argument
447 ep93xx_pata_exec_command(struct ata_port *ap, const struct ata_taskfile *tf) argument
[all...]
/linux-master/drivers/gpu/drm/i915/selftests/
H A Dlib_sw_fence.h37 void timed_fence_init(struct timed_fence *tf, unsigned long expires);
38 void timed_fence_fini(struct timed_fence *tf);
/linux-master/arch/s390/kvm/
H A Dgaccess.c50 unsigned long tf : 2; /* Region-Second-Table Offset */ member in struct:region1_table_entry::__anon63
65 unsigned long tf : 2; /* Region-Third-Table Offset */ member in struct:region2_table_entry::__anon64
79 unsigned long tf : 2; /* Segment-Table Offset */ member in struct:region3_table_entry_fc0
676 if (vaddr.rsx01 < rfte.tf || vaddr.rsx01 > rfte.tl)
694 if (vaddr.rtx01 < rste.tf || vaddr.rtx01 > rste.tl)
720 if (vaddr.sx01 < rtte.fc0.tf)
1430 if (vaddr.rsx01 < rfte.tf || vaddr.rsx01 > rfte.tl)
1458 if (vaddr.rtx01 < rste.tf || vaddr.rtx01 > rste.tl)
1496 if (vaddr.sx01 < rtte.fc0.tf || vaddr.sx01 > rtte.fc0.tl)
/linux-master/arch/x86/kvm/
H A Demulate.c2456 ctxt->tf = (ctxt->eflags & X86_EFLAGS_TF) != 0;
H A Dkvm_emulate.h321 bool tf; /* TF value before instruction (after for syscall/sysret) */ member in struct:x86_emulate_ctxt
H A Dx86.c8673 ctxt->tf = (ctxt->eflags & X86_EFLAGS_TF) != 0;
9286 if (r && (ctxt->tf || (vcpu->guest_debug & KVM_GUESTDBG_SINGLESTEP)))

Completed in 479 milliseconds

123456