Lines Matching refs:command

69 	if ( aoe->command ) {  in aoe_done()
70 aoe->command->cb.cmd_stat = aoe->status; in aoe_done()
71 aoe->command->rc = rc; in aoe_done()
72 aoe->command = NULL; in aoe_done()
92 struct ata_command *command = aoe->command; in aoe_send_command() local
117 count = command->cb.count.native; in aoe_send_command()
120 data_out_len = ( command->data_out ? in aoe_send_command()
148 aoehdr->command = aoe->aoe_cmd_type; in aoe_send_command()
158 aoeata->aflags = ( ( command->cb.lba48 ? AOE_FL_EXTENDED : 0 )| in aoe_send_command()
159 ( command->cb.device & ATA_DEV_SLAVE ) | in aoe_send_command()
161 aoeata->err_feat = command->cb.err_feat.bytes.cur; in aoe_send_command()
163 aoeata->cmd_stat = command->cb.cmd_stat; in aoe_send_command()
164 aoeata->lba.u64 = cpu_to_le64 ( command->cb.lba.native ); in aoe_send_command()
165 if ( ! command->cb.lba48 ) in aoe_send_command()
167 ( command->cb.device & ATA_DEV_MASK ); in aoe_send_command()
171 command->data_out, aoe->command_offset, in aoe_send_command()
232 struct ata_command *command = aoe->command; in aoe_rx_ata() local
245 count = command->cb.count.native; in aoe_rx_ata()
254 if ( command->data_in ) { in aoe_rx_ata()
257 copy_to_user ( command->data_in, aoe->command_offset, in aoe_rx_ata()
263 command->cb.lba.native += count; in aoe_rx_ata()
264 command->cb.count.native -= count; in aoe_rx_ata()
267 if ( ! command->cb.count.native ) { in aoe_rx_ata()
322 switch ( aoehdr->command ) { in aoe_rx()
331 aoe, aoehdr->command ); in aoe_rx()
357 struct ata_command *command ) { in aoe_command() argument
361 aoe->command = command; in aoe_command()
382 aoe->command = NULL; in aoe_discover()
395 struct ata_command *command __unused ) { in aoe_detached_command()
404 ata->command = aoe_detached_command; in aoe_detach()
455 ata->command = aoe_command; in aoe_attach()