Searched refs:cdbp (Results 1 – 1 of 1) sorted by relevance
1932 int sg_build_scsi_cdb(unsigned char *cdbp, int cdb_sz, unsigned int blocks, in sg_build_scsi_cdb() argument1940 memset(cdbp, 0, cdb_sz); in sg_build_scsi_cdb()1942 cdbp[1] |= 0x10; in sg_build_scsi_cdb()1944 cdbp[1] |= 0x8; in sg_build_scsi_cdb()1948 cdbp[0] = (unsigned char)(write_true ? wr_opcode[sz_ind] : in sg_build_scsi_cdb()1950 cdbp[1] = (unsigned char)((start_block >> 16) & 0x1f); in sg_build_scsi_cdb()1951 cdbp[2] = (unsigned char)((start_block >> 8) & 0xff); in sg_build_scsi_cdb()1952 cdbp[3] = (unsigned char)(start_block & 0xff); in sg_build_scsi_cdb()1953 cdbp[4] = (256 == blocks) ? 0 : (unsigned char)blocks; in sg_build_scsi_cdb()1975 cdbp[0] = (unsigned char)(write_true ? wr_opcode[sz_ind] : in sg_build_scsi_cdb()[all …]