Lines Matching refs:cdbp

1932 int sg_build_scsi_cdb(unsigned char *cdbp, int cdb_sz, unsigned int blocks,
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[0] = (unsigned char)(write_true ? wr_opcode[sz_ind] :
1977 cdbp[2] = (unsigned char)((start_block >> 24) & 0xff);
1978 cdbp[3] = (unsigned char)((start_block >> 16) & 0xff);
1979 cdbp[4] = (unsigned char)((start_block >> 8) & 0xff);
1980 cdbp[5] = (unsigned char)(start_block & 0xff);
1981 cdbp[7] = (unsigned char)((blocks >> 8) & 0xff);
1982 cdbp[8] = (unsigned char)(blocks & 0xff);
1992 cdbp[0] = (unsigned char)(write_true ? wr_opcode[sz_ind] :
1994 cdbp[2] = (unsigned char)((start_block >> 24) & 0xff);
1995 cdbp[3] = (unsigned char)((start_block >> 16) & 0xff);
1996 cdbp[4] = (unsigned char)((start_block >> 8) & 0xff);
1997 cdbp[5] = (unsigned char)(start_block & 0xff);
1998 cdbp[6] = (unsigned char)((blocks >> 24) & 0xff);
1999 cdbp[7] = (unsigned char)((blocks >> 16) & 0xff);
2000 cdbp[8] = (unsigned char)((blocks >> 8) & 0xff);
2001 cdbp[9] = (unsigned char)(blocks & 0xff);
2005 cdbp[0] = (unsigned char)(write_true ? wr_opcode[sz_ind] :
2008 cdbp[6] = (unsigned char)((start_block >> 24) & 0xff);
2009 cdbp[7] = (unsigned char)((start_block >> 16) & 0xff);
2010 cdbp[8] = (unsigned char)((start_block >> 8) & 0xff);
2011 cdbp[9] = (unsigned char)(start_block & 0xff);
2012 cdbp[10] = (unsigned char)((blocks >> 24) & 0xff);
2013 cdbp[11] = (unsigned char)((blocks >> 16) & 0xff);
2014 cdbp[12] = (unsigned char)((blocks >> 8) & 0xff);
2015 cdbp[13] = (unsigned char)(blocks & 0xff);