Lines Matching refs:scmd
57 struct uscsi_cmd *scmd;
59 scmd = get_uscsi_cmd();
60 scmd->uscsi_flags = USCSI_READ|USCSI_SILENT;
61 scmd->uscsi_timeout = 60;
62 scmd->uscsi_cdb[0] = READ_TOC_CMD;
63 scmd->uscsi_cdb[6] = trackno;
64 scmd->uscsi_cdb[8] = buflen & 0xff;
65 scmd->uscsi_cdb[7] = (buflen >> 8) & 0xff;
66 scmd->uscsi_cdb[9] = (format << 6) & 0xc0;
67 scmd->uscsi_cdblen = 10;
68 scmd->uscsi_bufaddr = (char *)buf;
69 scmd->uscsi_buflen = buflen;
70 if (uscsi(fd, scmd) < 0)
79 struct uscsi_cmd *scmd;
82 scmd = get_uscsi_cmd();
83 scmd->uscsi_flags = USCSI_READ|USCSI_SILENT;
84 scmd->uscsi_timeout = 60;
85 ((uchar_t *)scmd->uscsi_cdb)[0] = READ_AUDIO_CMD;
86 scmd->uscsi_cdb[5] = start_blk & 0xff;
87 scmd->uscsi_cdb[4] = (start_blk >> 8) & 0xff;
88 scmd->uscsi_cdb[3] = (start_blk >> 16) & 0xff;
89 scmd->uscsi_cdb[2] = (start_blk >> 24) & 0xff;
90 scmd->uscsi_cdb[9] = nblk & 0xff;
91 scmd->uscsi_cdb[8] = (nblk >> 8) & 0xff;
92 scmd->uscsi_cdb[7] = (nblk >> 16) & 0xff;
93 scmd->uscsi_cdb[6] = (nblk >> 24) & 0xff;
94 scmd->uscsi_cdblen = 12;
95 scmd->uscsi_bufaddr = (char *)buf;
96 scmd->uscsi_buflen = nblk*2352;
99 ret = uscsi(target->d_fd, scmd);
113 struct uscsi_cmd *scmd;
147 scmd = get_uscsi_cmd();
148 scmd->uscsi_flags = USCSI_READ|USCSI_SILENT;
149 scmd->uscsi_timeout = 60;
150 scmd->uscsi_cdblen = 6;
151 scmd->uscsi_bufaddr = (char *)mpage;
152 scmd->uscsi_buflen = 16;
154 scmd->uscsi_cdb[0] = MODE_SENSE_6_CMD;
155 scmd->uscsi_cdb[2] = 0x31;
156 scmd->uscsi_cdb[4] = 16;
157 if (uscsi(dev->d_fd, scmd) < 0)
169 scmd = get_uscsi_cmd();
170 scmd->uscsi_flags = USCSI_WRITE|USCSI_SILENT;
171 scmd->uscsi_timeout = 60;
172 scmd->uscsi_cdblen = 6;
173 scmd->uscsi_bufaddr = (char *)mpage;
174 scmd->uscsi_buflen = 16;
176 scmd->uscsi_cdb[0] = MODE_SELECT_6_CMD;
177 scmd->uscsi_cdb[1] = 0x10;
178 scmd->uscsi_cdb[4] = 16;
179 if (uscsi(dev->d_fd, scmd) < 0)