Lines Matching refs:ata
49 ata_command ( struct ata_device *ata, struct ata_command *command ) { in ata_command() argument
62 if ( ( rc = ata->command ( ata, command ) ) != 0 ) { in ata_command()
91 struct ata_device *ata = block_to_ata ( blockdev ); in ata_read() local
97 command.cb.device = ( ata->device | ATA_DEV_OBSOLETE | ATA_DEV_LBA ); in ata_read()
98 command.cb.lba48 = ata->lba48; in ata_read()
99 if ( ! ata->lba48 ) in ata_read()
101 command.cb.cmd_stat = ( ata->lba48 ? ATA_CMD_READ_EXT : ATA_CMD_READ ); in ata_read()
103 return ata_command ( ata, &command ); in ata_read()
117 struct ata_device *ata = block_to_ata ( blockdev ); in ata_write() local
123 command.cb.device = ( ata->device | ATA_DEV_OBSOLETE | ATA_DEV_LBA ); in ata_write()
124 command.cb.lba48 = ata->lba48; in ata_write()
125 if ( ! ata->lba48 ) in ata_write()
127 command.cb.cmd_stat = ( ata->lba48 ? in ata_write()
130 return ata_command ( ata, &command ); in ata_write()
140 struct ata_device *ata = block_to_ata ( blockdev ); in ata_identify() local
148 command.cb.device = ( ata->device | ATA_DEV_OBSOLETE | ATA_DEV_LBA ); in ata_identify()
153 if ( ( rc = ata_command ( ata, &command ) ) != 0 ) in ata_identify()
159 ata->lba48 = 1; in ata_identify()
184 int init_atadev ( struct ata_device *ata ) { in init_atadev() argument
186 ata->blockdev.op = &ata_operations; in init_atadev()
187 return ata_identify ( &ata->blockdev ); in init_atadev()