Searched refs:tf (Results 1 - 25 of 75) sorted by relevance

123

/drivers/ata/
H A Dsata_promise.h44 static inline unsigned int pdc_pkt_header(struct ata_taskfile *tf, argument
54 switch (tf->protocol) {
56 if (!(tf->flags & ATA_TFLAG_WRITE))
85 buf[15] = tf->ctl;
90 static inline unsigned int pdc_pkt_footer(struct ata_taskfile *tf, u8 *buf, argument
93 if (tf->flags & ATA_TFLAG_DEVICE) {
95 buf[i++] = tf->device;
100 buf[i++] = tf->command;
105 static inline unsigned int pdc_prep_lba28(struct ata_taskfile *tf, u8 *buf, unsigned int i) argument
111 buf[i++] = tf
128 pdc_prep_lba48(struct ata_taskfile *tf, u8 *buf, unsigned int i) argument
[all...]
H A Dsata_svw.c146 static void k2_sata_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) argument
149 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR;
151 if (tf->ctl != ap->last_ctl) {
152 writeb(tf->ctl, ioaddr->ctl_addr);
153 ap->last_ctl = tf->ctl;
156 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) {
157 writew(tf->feature | (((u16)tf->hob_feature) << 8),
159 writew(tf->nsect | (((u16)tf
182 k2_sata_tf_read(struct ata_port *ap, struct ata_taskfile *tf) argument
[all...]
H A Dsata_vsc.c159 static void vsc_sata_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) argument
162 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR;
170 if ((tf->ctl & ATA_NIEN) != (ap->last_ctl & ATA_NIEN)) {
171 ap->last_ctl = tf->ctl;
172 vsc_intr_mask_update(ap, tf->ctl & ATA_NIEN);
174 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) {
175 writew(tf->feature | (((u16)tf->hob_feature) << 8),
177 writew(tf->nsect | (((u16)tf
200 vsc_sata_tf_read(struct ata_port *ap, struct ata_taskfile *tf) argument
[all...]
H A Dlibata-acpi.c33 u8 tf[REGS_PER_GTF]; /* regs. 0x1f1 - 0x1f7 */ member in struct:ata_acpi_gtf
578 struct ata_taskfile *tf)
580 ata_tf_init(dev, tf);
582 tf->flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE;
583 tf->protocol = ATA_PROT_NODATA;
584 tf->feature = gtf->tf[0]; /* 0x1f1 */
585 tf->nsect = gtf->tf[1]; /* 0x1f2 */
586 tf
576 ata_acpi_gtf_to_tf(struct ata_device *dev, const struct ata_acpi_gtf *gtf, struct ata_taskfile *tf) argument
593 ata_acpi_filter_tf(struct ata_device *dev, const struct ata_taskfile *tf, const struct ata_taskfile *ptf) argument
677 struct ata_taskfile tf, ptf, rtf; local
[all...]
H A Dpata_ns87415.c124 unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE);
141 ap->ops->sff_exec_command(ap, &qc->tf);
256 * @tf: ATA taskfile register set for storing input
259 * into @tf. Work around the 87560 bugs.
264 void ns87560_tf_read(struct ata_port *ap, struct ata_taskfile *tf) argument
268 tf->command = ns87560_check_status(ap);
269 tf->feature = ioread8(ioaddr->error_addr);
270 tf->nsect = ioread8(ioaddr->nsect_addr);
271 tf->lbal = ioread8(ioaddr->lbal_addr);
272 tf
[all...]
H A Dpata_octeon_cf.c338 static void octeon_cf_tf_read16(struct ata_port *ap, struct ata_taskfile *tf) argument
345 tf->feature = blob >> 8;
348 tf->nsect = blob & 0xff;
349 tf->lbal = blob >> 8;
352 tf->lbam = blob & 0xff;
353 tf->lbah = blob >> 8;
356 tf->device = blob & 0xff;
357 tf->command = blob >> 8;
359 if (tf->flags & ATA_TFLAG_LBA48) {
361 iowrite8(tf
422 octeon_cf_tf_load16(struct ata_port *ap, const struct ata_taskfile *tf) argument
470 octeon_cf_exec_command16(struct ata_port *ap, const struct ata_taskfile *tf) argument
[all...]
H A Dlibata-scsi.c768 * @tf: ptr to filled out taskfile
777 static void ata_dump_status(unsigned id, struct ata_taskfile *tf) argument
779 u8 stat = tf->command, err = tf->feature;
942 struct ata_taskfile *tf = &qc->result_tf; local
956 tf->command & (ATA_BUSY | ATA_DF | ATA_ERR | ATA_DRQ)) {
957 ata_to_sense_error(qc->ap->print_id, tf->command, tf->feature,
977 desc[3] = tf->feature; /* == error reg */
978 desc[5] = tf
1012 struct ata_taskfile *tf = &qc->result_tf; local
1308 struct ata_taskfile *tf = &qc->tf; local
1392 struct ata_taskfile *tf = &qc->tf; local
1514 struct ata_taskfile *tf = &qc->tf; local
2104 struct ata_taskfile tf; local
2848 struct ata_taskfile *tf = &(qc->tf); local
3032 struct ata_taskfile *tf = &qc->tf; local
[all...]
H A Dpata_samsung_cf.c156 const struct ata_taskfile *tf)
159 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR;
161 if (tf->ctl != ap->last_ctl) {
162 ata_outb(ap->host, tf->ctl, ioaddr->ctl_addr);
163 ap->last_ctl = tf->ctl;
167 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) {
168 ata_outb(ap->host, tf->hob_feature, ioaddr->feature_addr);
169 ata_outb(ap->host, tf->hob_nsect, ioaddr->nsect_addr);
170 ata_outb(ap->host, tf->hob_lbal, ioaddr->lbal_addr);
171 ata_outb(ap->host, tf
155 pata_s3c_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) argument
192 pata_s3c_tf_read(struct ata_port *ap, struct ata_taskfile *tf) argument
218 pata_s3c_exec_command(struct ata_port *ap, const struct ata_taskfile *tf) argument
[all...]
H A Dpata_scc.c273 * @tf: ATA taskfile register set
278 static void scc_tf_load (struct ata_port *ap, const struct ata_taskfile *tf) argument
281 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR;
283 if (tf->ctl != ap->last_ctl) {
284 out_be32(ioaddr->ctl_addr, tf->ctl);
285 ap->last_ctl = tf->ctl;
289 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) {
290 out_be32(ioaddr->feature_addr, tf->hob_feature);
291 out_be32(ioaddr->nsect_addr, tf->hob_nsect);
292 out_be32(ioaddr->lbal_addr, tf
345 scc_tf_read(struct ata_port *ap, struct ata_taskfile *tf) argument
377 scc_exec_command(struct ata_port *ap, const struct ata_taskfile *tf) argument
[all...]
H A Dlibata-core.c533 * @tf: Taskfile to convert
544 void ata_tf_to_fis(const struct ata_taskfile *tf, u8 pmp, int is_cmd, u8 *fis) argument
551 fis[2] = tf->command;
552 fis[3] = tf->feature;
554 fis[4] = tf->lbal;
555 fis[5] = tf->lbam;
556 fis[6] = tf->lbah;
557 fis[7] = tf->device;
559 fis[8] = tf->hob_lbal;
560 fis[9] = tf
586 ata_tf_from_fis(const u8 *fis, struct ata_taskfile *tf) argument
645 ata_rwcmd_protocol(struct ata_taskfile *tf, struct ata_device *dev) argument
690 ata_tf_read_block(struct ata_taskfile *tf, struct ata_device *dev) argument
744 ata_build_rw_tf(struct ata_taskfile *tf, struct ata_device *dev, u64 block, u32 n_block, unsigned int tf_flags, unsigned int tag) argument
1045 ata_dev_classify(const struct ata_taskfile *tf) argument
1172 ata_tf_to_lba48(const struct ata_taskfile *tf) argument
1186 ata_tf_to_lba(const struct ata_taskfile *tf) argument
1213 struct ata_taskfile tf; local
1264 struct ata_taskfile tf; local
1541 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 long timeout) argument
1720 ata_exec_internal(struct ata_device *dev, struct ata_taskfile *tf, const u8 *cdb, int dma_dir, void *buf, unsigned int buflen, unsigned long timeout) argument
1755 struct ata_taskfile tf; local
1832 ata_do_dev_read_id(struct ata_device *dev, struct ata_taskfile *tf, u16 *id) argument
1865 struct ata_taskfile tf; local
4403 struct ata_taskfile tf; local
4449 struct ata_taskfile tf; local
4483 struct ata_taskfile tf; local
[all...]
H A Dpata_via.c382 * @tf: ATA taskfile register set
390 static void via_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) argument
394 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR;
397 if (tf->ctl != ap->last_ctl) {
398 iowrite8(tf->ctl, ioaddr->ctl_addr);
399 ap->last_ctl = tf->ctl;
404 if (tf->flags & ATA_TFLAG_DEVICE) {
405 iowrite8(tf->device, ioaddr->device_addr);
406 vp->cached_device = tf->device;
410 if (is_addr && (tf
[all...]
H A Dpata_bf54x.c430 /* the most restrictive timing value is tf, the DMACK to
664 * @tf: ATA taskfile register set
669 static void bfin_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) argument
672 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR;
674 if (tf->ctl != ap->last_ctl) {
675 write_atapi_register(base, ATA_REG_CTRL, tf->ctl);
676 ap->last_ctl = tf->ctl;
681 if (tf->flags & ATA_TFLAG_LBA48) {
683 tf->hob_feature);
685 tf
740 bfin_tf_read(struct ata_port *ap, struct ata_taskfile *tf) argument
770 bfin_exec_command(struct ata_port *ap, const struct ata_taskfile *tf) argument
[all...]
H A Dlibata-sff.c406 * @tf: ATA taskfile register set
413 void ata_sff_tf_load(struct ata_port *ap, const struct ata_taskfile *tf) argument
416 unsigned int is_addr = tf->flags & ATA_TFLAG_ISADDR;
418 if (tf->ctl != ap->last_ctl) {
420 iowrite8(tf->ctl, ioaddr->ctl_addr);
421 ap->last_ctl = tf->ctl;
425 if (is_addr && (tf->flags & ATA_TFLAG_LBA48)) {
427 iowrite8(tf->hob_feature, ioaddr->feature_addr);
428 iowrite8(tf->hob_nsect, ioaddr->nsect_addr);
429 iowrite8(tf
476 ata_sff_tf_read(struct ata_port *ap, struct ata_taskfile *tf) argument
515 ata_sff_exec_command(struct ata_port *ap, const struct ata_taskfile *tf) argument
536 ata_tf_to_host(struct ata_port *ap, const struct ata_taskfile *tf) argument
1881 struct ata_taskfile tf; local
[all...]
H A Dpata_pdc202xx_old.c39 const struct ata_taskfile *tf)
41 DPRINTK("ata%u: cmd 0x%X\n", ap->print_id, tf->command);
43 iowrite8(tf->command, ap->ioaddr.command_addr);
181 struct ata_taskfile *tf = &qc->tf; local
201 if ((tf->flags & ATA_TFLAG_LBA48) || tf->protocol == ATAPI_PROT_DMA) {
204 if (tf->flags & ATA_TFLAG_WRITE)
231 struct ata_taskfile *tf = &qc->tf; local
38 pdc202xx_exec_command(struct ata_port *ap, const struct ata_taskfile *tf) argument
[all...]
H A Dsata_inic162x.c400 qc ? qc->tf.command : 0xff, irq_stat, idma_stat);
448 if (qc->tf.flags & ATA_TFLAG_WRITE)
451 if (ata_is_dma(qc->tf.protocol))
471 bool is_atapi = ata_is_atapi(qc->tf.protocol);
472 bool is_data = ata_is_data(qc->tf.protocol);
490 cpb->device = qc->tf.device;
491 cpb->feature = qc->tf.feature;
492 cpb->nsect = qc->tf.nsect;
493 cpb->lbal = qc->tf.lbal;
494 cpb->lbam = qc->tf
540 inic_tf_read(struct ata_port *ap, struct ata_taskfile *tf) argument
556 struct ata_taskfile tf; local
629 struct ata_taskfile tf; local
[all...]
H A Dsata_sx4.c223 static void pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf);
224 static void pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf);
318 static inline void pdc20621_ata_sg(struct ata_taskfile *tf, u8 *buf, argument
340 static inline void pdc20621_host_sg(struct ata_taskfile *tf, u8 *buf, argument
362 static inline unsigned int pdc20621_ata_pkt(struct ata_taskfile *tf, argument
380 if ((tf->protocol == ATA_PROT_DMA) && (!(tf->flags & ATA_TFLAG_WRITE)))
382 else if (tf->protocol == ATA_PROT_NODATA)
392 if (tf->protocol == ATA_PROT_NODATA)
410 buf[i++] = tf
415 pdc20621_host_pkt(struct ata_taskfile *tf, u8 *buf, unsigned int portno) argument
965 pdc_tf_load_mmio(struct ata_port *ap, const struct ata_taskfile *tf) argument
973 pdc_exec_command_mmio(struct ata_port *ap, const struct ata_taskfile *tf) argument
[all...]
/drivers/ide/
H A Dide-lib.c37 struct ide_taskfile *tf = &cmd->tf; local
40 low = (tf->lbah << 16) | (tf->lbam << 8) | tf->lbal;
42 tf = &cmd->hob;
43 high = (tf->lbah << 16) | (tf->lbam << 8) | tf->lbal;
45 high = tf
54 struct ide_taskfile *tf = &cmd.tf; local
[all...]
H A Dide-ioctls.c123 struct ide_taskfile *tf = &cmd.tf; local
140 tf->feature = args[2];
142 tf->nsect = args[3];
143 tf->lbal = args[1];
144 tf->lbam = 0x4f;
145 tf->lbah = 0xc2;
146 cmd.valid.out.tf = IDE_VALID_OUT_TF;
147 cmd.valid.in.tf = IDE_VALID_NSECT;
149 tf
[all...]
H A Dide-disk_proc.c12 struct ide_taskfile *tf = &cmd.tf; local
15 tf->feature = ATA_SMART_ENABLE;
16 tf->lbam = ATA_SMART_LBAM_PASS;
17 tf->lbah = ATA_SMART_LBAH_PASS;
18 tf->command = ATA_CMD_SMART;
19 cmd.valid.out.tf = IDE_VALID_OUT_TF | IDE_VALID_DEVICE;
20 cmd.valid.in.tf = IDE_VALID_IN_TF | IDE_VALID_DEVICE;
28 struct ide_taskfile *tf = &cmd.tf; local
[all...]
H A Dide-park.c64 struct ide_taskfile *tf = &cmd.tf; local
70 tf->command = ATA_CMD_IDLEIMMEDIATE;
71 tf->feature = 0x44;
72 tf->lbal = 0x4c;
73 tf->lbam = 0x4e;
74 tf->lbah = 0x55;
75 cmd.valid.out.tf = IDE_VALID_OUT_TF | IDE_VALID_DEVICE;
76 cmd.valid.in.tf = IDE_VALID_IN_TF | IDE_VALID_DEVICE;
78 tf
[all...]
H A Dide-disk.c74 cmd->tf.command = ide_rw_cmds[index + lba48 + write];
89 struct ide_taskfile *tf = &cmd.tf; local
100 cmd.valid.out.tf = IDE_VALID_OUT_TF | IDE_VALID_DEVICE;
101 cmd.valid.in.tf = IDE_VALID_IN_TF | IDE_VALID_DEVICE;
108 tf->nsect = nsectors & 0xff;
109 tf->lbal = (u8) block;
110 tf->lbam = (u8)(block >> 8);
111 tf->lbah = (u8)(block >> 16);
112 tf
209 struct ide_taskfile *tf = &cmd.tf; local
243 struct ide_taskfile *tf = &cmd.tf; local
[all...]
H A Dide-io-std.c89 void ide_tf_load(ide_drive_t *drive, struct ide_taskfile *tf, u8 valid) argument
102 tf_outb(tf->feature, io_ports->feature_addr);
104 tf_outb(tf->nsect, io_ports->nsect_addr);
106 tf_outb(tf->lbal, io_ports->lbal_addr);
108 tf_outb(tf->lbam, io_ports->lbam_addr);
110 tf_outb(tf->lbah, io_ports->lbah_addr);
112 tf_outb(tf->device, io_ports->device_addr);
116 void ide_tf_read(ide_drive_t *drive, struct ide_taskfile *tf, u8 valid) argument
129 tf->error = tf_inb(io_ports->feature_addr);
131 tf
[all...]
H A Dide-taskfile.c35 tp_ops->tf_read(drive, &cmd->tf, cmd->valid.in.tf);
47 printk("%s: tf: feat 0x%02x nsect 0x%02x lbal 0x%02x "
49 s, cmd->tf.feature, cmd->tf.nsect,
50 cmd->tf.lbal, cmd->tf.lbam, cmd->tf.lbah,
51 cmd->tf.device, cmd->tf
82 struct ide_taskfile *tf = &cmd->tf; local
152 struct ide_taskfile *tf = &cmd->tf; local
[all...]
H A Dide-io.c77 struct ide_taskfile *tf = &cmd->tf; local
79 u8 tf_cmd = tf->command;
81 tf->error = err;
82 tf->status = stat;
89 cmd->tf.data = data[0];
97 if (tf->lbal != 0xc4) {
155 static void ide_tf_set_specify_cmd(ide_drive_t *drive, struct ide_taskfile *tf) argument
157 tf->nsect = drive->sect;
158 tf
165 ide_tf_set_restore_cmd(ide_drive_t *drive, struct ide_taskfile *tf) argument
171 ide_tf_set_setmult_cmd(ide_drive_t *drive, struct ide_taskfile *tf) argument
[all...]
/drivers/target/
H A Dtarget_core_fabric_configfs.c49 static void target_fabric_setup_##_name##_cit(struct target_fabric_configfs *tf) \
51 struct target_fabric_configfs_template *tfc = &tf->tf_cit_tmpl; \
57 cit->ct_owner = tf->tf_module; \
316 struct target_fabric_configfs *tf = se_tpg->se_tpg_wwn->wwn_tf; local
371 &TF_CIT_TMPL(tf)->tfc_tpg_mappedlun_cit);
373 "statistics", &TF_CIT_TMPL(tf)->tfc_tpg_mappedlun_stat_cit);
430 struct target_fabric_configfs *tf = se_tpg->se_tpg_wwn->wwn_tf; local
432 tf->tf_ops.fabric_drop_nodeacl(se_nacl);
468 struct target_fabric_configfs *tf = se_tpg->se_tpg_wwn->wwn_tf; local
472 if (!tf
544 struct target_fabric_configfs *tf = se_tpg->se_tpg_wwn->wwn_tf; local
567 struct target_fabric_configfs *tf = se_tpg->se_tpg_wwn->wwn_tf; local
746 struct target_fabric_configfs *tf; local
796 struct target_fabric_configfs *tf = se_tpg->se_tpg_wwn->wwn_tf; local
856 struct target_fabric_configfs *tf = se_tpg->se_tpg_wwn->wwn_tf; local
980 struct target_fabric_configfs *tf = wwn->wwn_tf; local
1002 struct target_fabric_configfs *tf = wwn->wwn_tf; local
1066 struct target_fabric_configfs *tf = wwn->wwn_tf; local
1100 struct target_fabric_configfs *tf = container_of(group, local
1180 target_fabric_setup_cits(struct target_fabric_configfs *tf) argument
[all...]

Completed in 283 milliseconds

123