Lines Matching defs:cdbp
1929 int sg_build_scsi_cdb(unsigned char *cdbp, int cdb_sz, unsigned int blocks,
1937 memset(cdbp, 0, cdb_sz);
1939 cdbp[1] |= 0x10;
1941 cdbp[1] |= 0x8;
1945 cdbp[0] = (unsigned char)(write_true ? wr_opcode[sz_ind] :
1947 cdbp[1] = (unsigned char)((start_block >> 16) & 0x1f);
1948 cdbp[2] = (unsigned char)((start_block >> 8) & 0xff);
1949 cdbp[3] = (unsigned char)(start_block & 0xff);
1950 cdbp[4] = (256 == blocks) ? 0 : (unsigned char)blocks;
1972 cdbp[0] = (unsigned char)(write_true ? wr_opcode[sz_ind] :
1974 cdbp[2] = (unsigned char)((start_block >> 24) & 0xff);
1975 cdbp[3] = (unsigned char)((start_block >> 16) & 0xff);
1976 cdbp[4] = (unsigned char)((start_block >> 8) & 0xff);
1977 cdbp[5] = (unsigned char)(start_block & 0xff);
1978 cdbp[7] = (unsigned char)((blocks >> 8) & 0xff);
1979 cdbp[8] = (unsigned char)(blocks & 0xff);
1989 cdbp[0] = (unsigned char)(write_true ? wr_opcode[sz_ind] :
1991 cdbp[2] = (unsigned char)((start_block >> 24) & 0xff);
1992 cdbp[3] = (unsigned char)((start_block >> 16) & 0xff);
1993 cdbp[4] = (unsigned char)((start_block >> 8) & 0xff);
1994 cdbp[5] = (unsigned char)(start_block & 0xff);
1995 cdbp[6] = (unsigned char)((blocks >> 24) & 0xff);
1996 cdbp[7] = (unsigned char)((blocks >> 16) & 0xff);
1997 cdbp[8] = (unsigned char)((blocks >> 8) & 0xff);
1998 cdbp[9] = (unsigned char)(blocks & 0xff);
2002 cdbp[0] = (unsigned char)(write_true ? wr_opcode[sz_ind] :
2005 cdbp[6] = (unsigned char)((start_block >> 24) & 0xff);
2006 cdbp[7] = (unsigned char)((start_block >> 16) & 0xff);
2007 cdbp[8] = (unsigned char)((start_block >> 8) & 0xff);
2008 cdbp[9] = (unsigned char)(start_block & 0xff);
2009 cdbp[10] = (unsigned char)((blocks >> 24) & 0xff);
2010 cdbp[11] = (unsigned char)((blocks >> 16) & 0xff);
2011 cdbp[12] = (unsigned char)((blocks >> 8) & 0xff);
2012 cdbp[13] = (unsigned char)(blocks & 0xff);