Lines Matching refs:tf
36 struct ata_taskfile tf; in eject_tray() local
43 ata_tf_init(dev, &tf); in eject_tray()
44 tf.flags = ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE; in eject_tray()
45 tf.command = ATA_CMD_PACKET; in eject_tray()
46 tf.protocol = ATAPI_PROT_NODATA; in eject_tray()
48 return ata_exec_internal(dev, &tf, cdb, DMA_NONE, NULL, 0, 0); in eject_tray()
57 struct ata_taskfile tf; in zpodd_get_mech_type() local
66 ata_tf_init(dev, &tf); in zpodd_get_mech_type()
67 tf.flags = ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE; in zpodd_get_mech_type()
68 tf.command = ATA_CMD_PACKET; in zpodd_get_mech_type()
69 tf.protocol = ATAPI_PROT_PIO; in zpodd_get_mech_type()
70 tf.lbam = sizeof(buf); in zpodd_get_mech_type()
72 ret = ata_exec_internal(dev, &tf, cdb, DMA_FROM_DEVICE, in zpodd_get_mech_type()