Home | History | Annotate | Download | only in net

Lines Matching refs:command

61  * Mark current AoE command complete
68 /* Record overall command status */
69 if ( aoe->command ) {
70 aoe->command->cb.cmd_stat = aoe->status;
71 aoe->command->rc = rc;
72 aoe->command = NULL;
83 * Send AoE command
88 * This transmits an AoE command packet. It does not wait for a
92 struct ata_command *command = aoe->command;
117 count = command->cb.count.native;
120 data_out_len = ( command->data_out ?
148 aoehdr->command = aoe->aoe_cmd_type;
154 /* Fill AoE command */
158 aoeata->aflags = ( ( command->cb.lba48 ? AOE_FL_EXTENDED : 0 )|
159 ( command->cb.device & ATA_DEV_SLAVE ) |
161 aoeata->err_feat = command->cb.err_feat.bytes.cur;
163 aoeata->cmd_stat = command->cb.cmd_stat;
164 aoeata->lba.u64 = cpu_to_le64 ( command->cb.lba.native );
165 if ( ! command->cb.lba48 )
167 ( command->cb.device & ATA_DEV_MASK );
171 command->data_out, aoe->command_offset,
203 * Handle AoE configuration command response
223 * Handle AoE ATA command response
226 * @v aoeata AoE ATA command
227 * @v len Length of AoE ATA command
232 struct ata_command *command = aoe->command;
245 count = command->cb.count.native;
254 if ( command->data_in ) {
257 copy_to_user ( command->data_in, aoe->command_offset,
261 /* Update ATA command and offset */
263 command->cb.lba.native += count;
264 command->cb.count.native -= count;
267 if ( ! command->cb.count.native ) {
322 switch ( aoehdr->command ) {
330 DBGC ( aoe, "AoE %p ignoring command %02x\n",
331 aoe, aoehdr->command );
350 * Issue ATA command via an open AoE session
353 * @v command ATA command
357 struct ata_command *command ) {
361 aoe->command = command;
382 aoe->command = NULL;
395 struct ata_command *command __unused ) {
404 ata->command = aoe_detached_command;
455 ata->command = aoe_command;