Lines Matching defs:data
20 * which does the USB-to-ATAPI conversion. By obtaining the data sheet on
93 #define USBAT_ATA_DATA 0x10 /* read/write data (R/W) */
353 * which defines 8 bit data access (set) or 16 bit (unset)
380 * registers where the byte count should be read for transferring the data.
441 * Read block data from the data register
473 * Write block data via the data register
534 unsigned char *data = us->iobuf;
544 * the data via a write-and-test. Any other time we only
545 * send the command to download the data -- the SCSI command
548 * We're only going to try sending the data 10 times. After
591 data[j<<1] = registers[j];
592 data[1+(j<<1)] = data_out[j];
595 result = usbat_bulk_write(us, data, num_registers*2, 0);
608 * waiting for the data. Don't ask me why this should be;
617 * data until all data is received. Thus, the device would
618 * still be waiting for the first byte of data if a stall
619 * occurs, even if the stall implies that some data was
664 usb_stor_dbg(us, "Bummer! %s bulk data 20 times failed\n",
672 * Allows us to write specific data to any registers. The data to be written
675 * Not designed for large transfers of data!
683 unsigned char *data = us->iobuf;
698 /* Number of bytes to be transferred (incl. addresses and data) */
707 /* Create the reg/data, reg/data sequence */
709 data[i<<1] = registers[i];
710 data[1+(i<<1)] = data_out[i];
713 /* Send the data */
714 result = usbat_bulk_write(us, data, num_registers*2, 0);
726 * Allows us to read blocks from a specific data register, based upon the
768 * Allows us to write blocks to a specific data register, based upon the
800 /* Write the data */
1087 /* Read the device identification data */
1105 * Read data from device
1147 * a bounce buffer and move the data a piece at a time between the
1172 /* Read the data we just requested */
1179 /* Store the data in the transfer buffer */
1196 * Write data to device
1238 * a bounce buffer and move the data a piece at a time between the
1255 /* Get the data from the transfer buffer */
1267 /* Write the data */
1290 unsigned char *data,
1305 registers, data, 19,
1316 * Since we're requesting more data than we can handle in
1323 if (data[7+0] == GPCMD_READ_CD) {
1324 len = short_pack(data[7+9], data[7+8]);
1326 len |= data[7+7];
1339 * a bounce buffer and move the data a piece at a time between the
1349 sector = short_pack(data[7+3], data[7+2]);
1351 sector |= short_pack(data[7+5], data[7+4]);
1359 data[3] = len&0xFF; /* (cylL) = expected length (L) */
1360 data[4] = (len>>8)&0xFF; /* (cylH) = expected length (H) */
1364 data[7+2] = MSB_of(sector>>16); /* SCSI command sector */
1365 data[7+3] = LSB_of(sector>>16);
1366 data[7+4] = MSB_of(sector&0xFFFF);
1367 data[7+5] = LSB_of(sector&0xFFFF);
1368 if (data[7+0] == GPCMD_READ_CD)
1369 data[7+6] = 0;
1370 data[7+7] = MSB_of(len / srb->transfersize); /* SCSI command */
1371 data[7+8] = LSB_of(len / srb->transfersize); /* num sectors */
1374 registers, data, 19,
1384 /* Store the data in the transfer buffer */
1557 unsigned char data[32];
1576 data[0] = 0x00;
1577 data[1] = 0x00;
1578 data[2] = 0x00;
1579 data[3] = len&0xFF; /* (cylL) = expected length (L) */
1580 data[4] = (len>>8)&0xFF; /* (cylH) = expected length (H) */
1581 data[5] = 0xB0; /* (device sel) = slave */
1582 data[6] = 0xA0; /* (command) = ATA PACKET COMMAND */
1586 data[i] = (i-7 >= srb->cmd_len) ? 0 : srb->cmnd[i-7];
1599 registers, data, 19,
1616 return usbat_hp8200e_handle_read10(us, registers, data, srb);
1626 result = usbat_multiple_write(us, registers, data, 7);
1647 /* If there is response data to be read in then do it here. */