• Home
  • Raw
  • Download

Lines Matching refs:cdbp

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