Home
last modified time | relevance | path

Searched refs:bd_len (Results 1 – 2 of 2) sorted by relevance

/external/f2fs-tools/tools/sg_write_buffer/
Dsg_cmds_basic2.c588 int bd_len, calc_len, offset; in sg_mode_page_offset() local
595 bd_len = resp[3]; in sg_mode_page_offset()
596 offset = bd_len + MODE6_RESP_HDR_LEN; in sg_mode_page_offset()
601 bd_len = sg_get_unaligned_be16(resp + 6); in sg_mode_page_offset()
603 offset = bd_len + MODE10_RESP_HDR_LEN; in sg_mode_page_offset()
609 offset, calc_len, bd_len); in sg_mode_page_offset()
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/
Dscsimain.c3661 int sg_fd, k, num, len, md_len, bd_len, longlba, page_num; in show_scsi_modes() local
3732 bd_len = rsp_buff[3]; in show_scsi_modes()
3739 bd_len = (rsp_buff[6] << 8) + rsp_buff[7]; in show_scsi_modes()
3754 if (bd_len + headerlen > rsp_buff_size) in show_scsi_modes()
3755 bd_len = rsp_buff_size - headerlen; in show_scsi_modes()
3757 printf(" Block descriptor length=%d\n", bd_len); in show_scsi_modes()
3758 if (bd_len > 0) { in show_scsi_modes()
3761 num = bd_len; in show_scsi_modes()
3784 ucp = rsp_buff + bd_len + headerlen; /* start of mode page(s) */ in show_scsi_modes()
3785 md_len -= bd_len + headerlen; /* length of mode page(s) */ in show_scsi_modes()