Lines Matching refs:start
61 void scsi_setup_read16(struct scsi_cmd *pccb, lbaint_t start, in scsi_setup_read16() argument
66 pccb->cmd[2] = (unsigned char)(start >> 56) & 0xff; in scsi_setup_read16()
67 pccb->cmd[3] = (unsigned char)(start >> 48) & 0xff; in scsi_setup_read16()
68 pccb->cmd[4] = (unsigned char)(start >> 40) & 0xff; in scsi_setup_read16()
69 pccb->cmd[5] = (unsigned char)(start >> 32) & 0xff; in scsi_setup_read16()
70 pccb->cmd[6] = (unsigned char)(start >> 24) & 0xff; in scsi_setup_read16()
71 pccb->cmd[7] = (unsigned char)(start >> 16) & 0xff; in scsi_setup_read16()
72 pccb->cmd[8] = (unsigned char)(start >> 8) & 0xff; in scsi_setup_read16()
73 pccb->cmd[9] = (unsigned char)start & 0xff; in scsi_setup_read16()
106 static void scsi_setup_read_ext(struct scsi_cmd *pccb, lbaint_t start, in scsi_setup_read_ext() argument
111 pccb->cmd[2] = (unsigned char)(start >> 24) & 0xff; in scsi_setup_read_ext()
112 pccb->cmd[3] = (unsigned char)(start >> 16) & 0xff; in scsi_setup_read_ext()
113 pccb->cmd[4] = (unsigned char)(start >> 8) & 0xff; in scsi_setup_read_ext()
114 pccb->cmd[5] = (unsigned char)start & 0xff; in scsi_setup_read_ext()
127 static void scsi_setup_write_ext(struct scsi_cmd *pccb, lbaint_t start, in scsi_setup_write_ext() argument
132 pccb->cmd[2] = (unsigned char)(start >> 24) & 0xff; in scsi_setup_write_ext()
133 pccb->cmd[3] = (unsigned char)(start >> 16) & 0xff; in scsi_setup_write_ext()
134 pccb->cmd[4] = (unsigned char)(start >> 8) & 0xff; in scsi_setup_write_ext()
135 pccb->cmd[5] = (unsigned char)start & 0xff; in scsi_setup_write_ext()
155 lbaint_t start, blks, max_blks; in scsi_read() local
164 start = blknr; in scsi_read()
173 block_dev->devnum, start, blks, (unsigned long)buffer); in scsi_read()
178 if (start > SCSI_LBA48_READ) { in scsi_read()
182 scsi_setup_read16(pccb, start, blocks); in scsi_read()
183 start += blocks; in scsi_read()
190 scsi_setup_read_ext(pccb, start, smallblks); in scsi_read()
191 start += max_blks; in scsi_read()
196 scsi_setup_read_ext(pccb, start, smallblks); in scsi_read()
197 start += blks; in scsi_read()
202 start, smallblks, buf_addr); in scsi_read()
211 ", blccnt %x buffer %lX\n", start, smallblks, buf_addr); in scsi_read()
225 lbaint_t start, blks, max_blks; in scsi_write() local
234 start = blknr; in scsi_write()
242 __func__, block_dev->devnum, start, blks, (unsigned long)buffer); in scsi_write()
249 scsi_setup_write_ext(pccb, start, smallblks); in scsi_write()
250 start += max_blks; in scsi_write()
255 scsi_setup_write_ext(pccb, start, smallblks); in scsi_write()
256 start += blks; in scsi_write()
260 __func__, start, smallblks, buf_addr); in scsi_write()
269 __func__, start, smallblks, buf_addr); in scsi_write()
338 int start, end; in scsi_ident_cpy() local
340 start = 0; in scsi_ident_cpy()
341 while (start < len) { in scsi_ident_cpy()
342 if (src[start] != ' ') in scsi_ident_cpy()
344 start++; in scsi_ident_cpy()
347 while (end > start) { in scsi_ident_cpy()
352 for (; start <= end; start++) in scsi_ident_cpy()
353 *dest ++= src[start]; in scsi_ident_cpy()