Home
last modified time | relevance | path

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

/external/f2fs-tools/tools/sg_write_buffer/
Dsg_pt_linux_nvme.c412 sntl_inq(struct sg_pt_linux_scsi * ptp, const uint8_t * cdbp, int time_secs, in sntl_inq() argument
427 if (0x2 & cdbp[1]) { /* Reject CmdDt=1 */ in sntl_inq()
440 alloc_len = sg_get_unaligned_be16(cdbp + 3); in sntl_inq()
441 evpd = !!(0x1 & cdbp[1]); in sntl_inq()
442 pg_cd = cdbp[2]; in sntl_inq()
543 sntl_rluns(struct sg_pt_linux_scsi * ptp, const uint8_t * cdbp, int time_secs, in sntl_rluns() argument
555 sel_report = cdbp[2]; in sntl_rluns()
556 alloc_len = sg_get_unaligned_be32(cdbp + 6); in sntl_rluns()
653 sntl_req_sense(struct sg_pt_linux_scsi * ptp, const uint8_t * cdbp, in sntl_req_sense() argument
672 desc = !!(0x1 & cdbp[1]); in sntl_req_sense()
[all …]
Dsg_cmds_extra.c1724 sg_ll_ata_pt(int sg_fd, const unsigned char * cdbp, int cdb_len, in sg_ll_ata_pt() argument
1746 memcpy(apt_cdb + 1, cdbp + 1, 10); in sg_ll_ata_pt()
1752 memcpy(apt_cdb + 1, cdbp + 1, 14); in sg_ll_ata_pt()
1761 memcpy(apt_cdb + 10, cdbp + 10, 32 - 10); in sg_ll_ata_pt()
1767 if (NULL == cdbp) { in sg_ll_ata_pt()
Dsg_lib.c2509 sg_is_scsi_cdb(const uint8_t * cdbp, int clen) in sg_is_scsi_cdb() argument
2517 opcode = cdbp[0]; in sg_is_scsi_cdb()
2524 ilen = 4 + sg_get_unaligned_be16(cdbp + 2); in sg_is_scsi_cdb()
2527 ilen = 8 + cdbp[7]; in sg_is_scsi_cdb()
2528 sa = sg_get_unaligned_be16(cdbp + 8); in sg_is_scsi_cdb()
/external/f2fs-tools/tools/sg_write_buffer/include/
Dsg_lib.h144 void sg_get_command_name(const unsigned char * cdbp, int peri_type,
328 bool sg_is_scsi_cdb(const uint8_t * cdbp, int clen);
Dsg_cmds_extra.h45 int sg_ll_ata_pt(int sg_fd, const unsigned char * cdbp, int cdb_len,
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/
Dscsimain.c1932 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()
[all …]