Searched refs:cdbp (Results 1 - 1 of 1) sorted by relevance

/external/ltp/testcases/kernel/fs/scsi/ltpscsi/
H A Dscsimain.c1932 int sg_build_scsi_cdb(unsigned char *cdbp, int cdb_sz, unsigned int blocks, argument
1940 memset(cdbp, 0, cdb_sz);
1942 cdbp[1] |= 0x10;
1944 cdbp[1] |= 0x8;
1948 cdbp[0] = (unsigned char)(write_true ? wr_opcode[sz_ind] :
1950 cdbp[1] = (unsigned char)((start_block >> 16) & 0x1f);
1951 cdbp[2] = (unsigned char)((start_block >> 8) & 0xff);
1952 cdbp[3] = (unsigned char)(start_block & 0xff);
1953 cdbp[4] = (256 == blocks) ? 0 : (unsigned char)blocks;
1975 cdbp[
[all...]

Completed in 151 milliseconds