Searched defs:cdb (Results 1 - 25 of 83) sorted by relevance

1234

/drivers/scsi/
H A Dscsi_trace.c22 #define SERVICE_ACTION16(cdb) (cdb[1] & 0x1f)
23 #define SERVICE_ACTION32(cdb) ((cdb[8] << 8) | cdb[9])
29 scsi_trace_rw6(struct trace_seq *p, unsigned char *cdb, int len) argument
34 lba |= ((cdb[1] & 0x1F) << 16);
35 lba |= (cdb[2] << 8);
36 lba |= cdb[3];
37 txlen = cdb[
47 scsi_trace_rw10(struct trace_seq *p, unsigned char *cdb, int len) argument
72 scsi_trace_rw12(struct trace_seq *p, unsigned char *cdb, int len) argument
95 scsi_trace_rw16(struct trace_seq *p, unsigned char *cdb, int len) argument
126 scsi_trace_rw32(struct trace_seq *p, unsigned char *cdb, int len) argument
181 scsi_trace_unmap(struct trace_seq *p, unsigned char *cdb, int len) argument
193 scsi_trace_service_action_in(struct trace_seq *p, unsigned char *cdb, int len) argument
234 scsi_trace_varlen(struct trace_seq *p, unsigned char *cdb, int len) argument
248 scsi_trace_misc(struct trace_seq *p, unsigned char *cdb, int len) argument
259 scsi_trace_parse_cdb(struct trace_seq *p, unsigned char *cdb, int len) argument
[all...]
H A Daha1542.h130 unchar cdb[MAX_CDB+MAX_SENSE];/* SCSI Command Descriptor Block */ member in struct:ccb
H A Daha1740.h133 u8 cdb[MAX_CDB]; /* CDB area */ member in struct:ecb
H A Dconstants.c259 /* attempt to guess cdb length if cdb_len==0 . No trailing linefeed. */
281 printk("cdb[0]=0x%x, sa=0x%x", cdb0, sa);
348 printk("cdb[0]=0x%x (reserved)", cdb0);
350 printk("cdb[0]=0x%x (vendor)", cdb0);
357 printk("cdb[0]=0x%x, sa=0x%x", cdb0, sa);
377 printk("cdb[0]=0x%x, sa=0x%x", cdb0, sa);
393 printk("cdb[0]=0x%x, sa=0x%x", cdb0, sa);
397 printk("cdb[0]=0x%x", cdb0);
399 printk("cdb[0]=0x%x (vendor)", cdb0);
405 void __scsi_print_command(unsigned char *cdb) argument
[all...]
/drivers/ata/
H A Dlibata-zpodd.c37 const char cdb[] = { GPCMD_START_STOP_UNIT, local
48 return ata_exec_internal(dev, &tf, cdb, DMA_NONE, NULL, 0, 0);
58 char cdb[] = { GPCMD_GET_CONFIGURATION, local
72 ret = ata_exec_internal(dev, &tf, cdb, DMA_FROM_DEVICE,
H A Dlibata-eh.c1597 u8 cdb[ATAPI_CDB_LEN] = { TEST_UNIT_READY, 0, 0, 0, 0, 0 }; local
1607 err_mask = ata_exec_internal(dev, &tf, cdb, DMA_NONE, NULL, 0, 0);
1631 u8 cdb[ATAPI_CDB_LEN] = local
1663 return ata_exec_internal(dev, &tf, cdb, DMA_FROM_DEVICE,
2483 const u8 *cdb = qc->cdb; local
2515 "cdb %02x %02x %02x %02x %02x %02x %02x %02x "
2517 cdb[0], cdb[1], cdb[
[all...]
H A Dlibata-scsi.c1332 const u8 *cdb = scmd->cmnd; local
1339 if (cdb[1] & 0x1) {
1342 if (cdb[4] & 0x2)
1344 if (((cdb[4] >> 4) & 0xf) != 0)
1347 if (cdb[4] & 0x1) {
1433 * @cdb: SCSI command to translate
1441 static void scsi_6_lba_len(const u8 *cdb, u64 *plba, u32 *plen) argument
1448 lba |= ((u64)(cdb[1] & 0x1f)) << 16;
1449 lba |= ((u64)cdb[2]) << 8;
1450 lba |= ((u64)cdb[
1468 scsi_10_lba_len(const u8 *cdb, u64 *plba, u32 *plen) argument
1497 scsi_16_lba_len(const u8 *cdb, u64 *plba, u32 *plen) argument
1540 const u8 *cdb = scmd->cmnd; local
1665 const u8 *cdb = scmd->cmnd; local
1750 u8 *cdb = cmd->cmnd; local
2906 const u8 *cdb = scmd->cmnd; local
3090 const u8 *cdb = scmd->cmnd; local
3210 const u8 *cdb = scmd->cmnd; local
[all...]
H A Dsata_inic162x.c230 struct inic_prd prd[LIBATA_MAX_PRD + 1]; /* + 1 for cdb */
231 u8 cdb[ATAPI_CDB_LEN]; member in struct:inic_pkt
447 if (atapi_cmd_type(qc->cdb[0]) == READ)
520 memcpy(pkt->cdb, qc->cdb, ATAPI_CDB_LEN);
522 offsetof(struct inic_pkt, cdb));
H A Dsata_promise.c506 u8 *cdb = qc->cdb; local
569 /* we can represent cdb lengths 2/4/6/8/10/12/14/16 */
574 memcpy(buf+31, cdb, cdb_len);
/drivers/scsi/esas2r/
H A Desas2r_io.c533 u8 *cdb = (u8 *)&rq->vrq->scsi.cdb[0]; local
545 switch (rq->vrq->scsi.cdb[0]) {
550 MAKEDWORD(MAKEWORD(cdb[9],
551 cdb[8]),
552 MAKEWORD(cdb[7],
553 cdb[6]));
564 MAKEDWORD(MAKEWORD(cdb[5],
565 cdb[4]),
566 MAKEWORD(cdb[
[all...]
/drivers/scsi/isci/
H A Dsas.h94 u8 cdb[16]; member in struct:ssp_cmd_iu
/drivers/isdn/capi/
H A Dcapiutil.c569 static _cdebbuf *bufprint(_cdebbuf *cdb, char *fmt, ...) argument
574 if (!cdb)
577 r = cdb->size - cdb->pos;
578 n = vsnprintf(cdb->p, r, fmt, f);
582 size_t ns = 2 * cdb->size;
585 while ((ns - cdb->pos) <= n)
589 cdebbuf_free(cdb);
592 memcpy(nb, cdb->buf, cdb
608 printstructlen(_cdebbuf *cdb, u8 *m, unsigned len) argument
632 printstruct(_cdebbuf *cdb, u8 *m) argument
650 protocol_message_2_pars(_cdebbuf *cdb, _cmsg *cmsg, int level) argument
719 _cdebbuf *cdb; local
746 cdebbuf_free(_cdebbuf *cdb) argument
770 _cdebbuf *cdb; local
816 _cdebbuf *cdb; local
879 cdebbuf_free(_cdebbuf *cdb) argument
[all...]
H A Dkcapi.c349 _cdebbuf *cdb; local
352 cdb = capi_message2str(skb->data);
353 if (cdb) {
355 ctr->cnr, cdb->buf);
356 cdebbuf_free(cdb);
382 cdb = capi_message2str(skb->data);
383 if (cdb) {
385 ctr->cnr, cdb->buf);
386 cdebbuf_free(cdb);
400 cdb
819 _cdebbuf *cdb = capi_message2str(skb->data); local
[all...]
H A Dcapidrv.c1195 _cdebbuf *cdb; local
1329 cdb = capi_cmsg2str(cmsg);
1330 if (cdb) {
1332 card->contrnr, cdb->buf);
1333 cdebbuf_free(cdb);
1591 _cdebbuf *cdb = capi_cmsg2str(&s_cmsg); local
1593 if (cdb) {
1595 ap->applid, cdb->buf);
1596 cdebbuf_free(cdb);
/drivers/target/
H A Dtarget_core_pscsi.c155 unsigned char cdb[MAX_COMMAND_SIZE], *buf; local
162 memset(cdb, 0, MAX_COMMAND_SIZE);
163 cdb[0] = MODE_SENSE;
164 cdb[4] = 0x0c; /* 12 bytes */
166 ret = scsi_execute_req(sdev, cdb, DMA_FROM_DEVICE, buf, 12, NULL,
203 unsigned char cdb[MAX_COMMAND_SIZE], *buf; local
210 memset(cdb, 0, MAX_COMMAND_SIZE);
211 cdb[0] = INQUIRY;
212 cdb[1] = 0x01; /* Query VPD */
213 cdb[
238 unsigned char cdb[MAX_COMMAND_SIZE], *buf, *page_83; local
622 unsigned char *cdb; local
977 pscsi_clear_cdb_lun(unsigned char *cdb) argument
999 unsigned char *cdb = cmd->t_task_cdb; local
[all...]
H A Dtarget_core_sbc.c43 unsigned char *cdb = cmd->t_task_cdb; local
61 if (!(cdb[8] & 1) && !!(cdb[2] | cdb[3] | cdb[4] | cdb[5]))
179 static inline u32 transport_get_sectors_6(unsigned char *cdb) argument
189 return cdb[4] ? : 256;
192 static inline u32 transport_get_sectors_10(unsigned char *cdb) argument
194 return (u32)(cdb[
197 transport_get_sectors_12(unsigned char *cdb) argument
202 transport_get_sectors_16(unsigned char *cdb) argument
211 transport_get_sectors_32(unsigned char *cdb) argument
218 transport_lba_21(unsigned char *cdb) argument
223 transport_lba_32(unsigned char *cdb) argument
228 transport_lba_64(unsigned char *cdb) argument
241 transport_lba_64_ext(unsigned char *cdb) argument
618 sbc_check_prot(struct se_device *dev, struct se_cmd *cmd, unsigned char *cdb, u32 sectors, bool is_write) argument
672 unsigned char *cdb = cmd->t_task_cdb; local
[all...]
H A Dtarget_core_spc.c715 unsigned char *cdb = cmd->t_task_cdb; local
732 if (!(cdb[1] & 0x1)) {
733 if (cdb[2]) {
735 cdb[2]);
746 if (cdb[2] == evpd_handlers[p].page) {
747 buf[1] = cdb[2];
754 pr_err("Unknown VPD Code: 0x%02x\n", cdb[2]);
988 char *cdb = cmd->t_task_cdb; local
992 bool dbd = !!(cdb[1] & 0x08);
993 bool llba = ten ? !!(cdb[
1110 char *cdb = cmd->t_task_cdb; local
1171 unsigned char *cdb = cmd->t_task_cdb; local
1296 unsigned char *cdb = cmd->t_task_cdb; local
[all...]
H A Dtarget_core_xcopy.c584 unsigned char *cdb,
603 sense_rc = target_setup_cmd_from_cdb(cmd, cdb);
676 unsigned char cdb[16]; local
687 memset(&cdb[0], 0, 16);
688 cdb[0] = READ_16;
689 put_unaligned_be64(src_lba, &cdb[2]);
690 put_unaligned_be32(src_sectors, &cdb[10]);
698 rc = target_xcopy_setup_pt_cmd(xpt_cmd, xop, src_dev, &cdb[0],
736 unsigned char cdb[16]; local
747 memset(&cdb[
580 target_xcopy_setup_pt_cmd( struct xcopy_pt_cmd *xpt_cmd, struct xcopy_op *xop, struct se_device *se_dev, unsigned char *cdb, bool remote_port, bool alloc_mem) argument
1055 unsigned char *cdb = &se_cmd->t_task_cdb[0]; local
[all...]
H A Dtarget_core_alua.c474 unsigned char *cdb,
493 /* Only need to check for cdb actually containing LBAs */
562 unsigned char *cdb)
568 switch (cdb[0]) {
580 switch (cdb[1] & 0x1f) {
588 switch (cdb[1] & 0x1f) {
596 switch (cdb[1]) {
619 unsigned char *cdb)
625 switch (cdb[0]) {
630 switch (cdb[
472 core_alua_state_nonoptimized( struct se_cmd *cmd, unsigned char *cdb, int nonop_delay_msecs) argument
560 core_alua_state_standby( struct se_cmd *cmd, unsigned char *cdb) argument
617 core_alua_state_unavailable( struct se_cmd *cmd, unsigned char *cdb) argument
657 core_alua_state_transition( struct se_cmd *cmd, unsigned char *cdb) argument
698 unsigned char *cdb = cmd->t_task_cdb; local
[all...]
H A Dtarget_core_user.c1053 unsigned char *cdb = cmd->t_task_cdb; local
1064 switch (cdb[0]) {
/drivers/block/
H A Dcciss_scsi.c915 unsigned char *cdb,
934 memcpy(c->Request.CDB, cdb, cdblen);
1035 char cdb[6]; local
1050 cdb[0] = CISS_INQUIRY;
1051 cdb[1] = (page != 0);
1052 cdb[2] = page;
1053 cdb[3] = 0;
1054 cdb[4] = bufsize;
1055 cdb[5] = 0;
1056 rc = cciss_scsi_do_simple_cmd(h, c, scsi3addr, cdb,
912 cciss_scsi_do_simple_cmd(ctlr_info_t *h, CommandList_struct *c, unsigned char *scsi3addr, unsigned char *cdb, unsigned char cdblen, unsigned char *buf, int bufsize, int direction) argument
1097 unsigned char cdb[12]; local
[all...]
H A Dida_cmd.h338 __u8 cdb[12]; member in struct:__anon331
H A Dskd_s1120.h304 unsigned char cdb[16]; member in struct:skd_scsi_request
/drivers/scsi/megaraid/
H A Dmegaraid_sas_fusion.c1331 * @cdb: CDB
1332 * @cdb_len: cdb length
1345 u8 *cdb = io_request->CDB.CDB32; local
1353 memset(cdb, 0, sizeof(io_request->CDB.CDB32));
1354 cdb[0] = MEGASAS_SCSI_VARIABLE_LENGTH_CMD;
1355 cdb[7] = MEGASAS_SCSI_ADDL_CDB_LEN;
1358 cdb[9] = MEGASAS_SCSI_SERVICE_ACTION_READ32;
1360 cdb[9] = MEGASAS_SCSI_SERVICE_ACTION_WRITE32;
1361 cdb[10] = MEGASAS_RD_WR_PROTECT_CHECK_ALL;
1364 cdb[1
[all...]
/drivers/isdn/gigaset/
H A Dcapi.c213 _cdebbuf *cdb; local
220 cdb = capi_cmsg2str(p);
221 if (cdb) {
222 gig_dbg(level, "%s: [%d] %s", tag, p->ApplId, cdb->buf);
223 cdebbuf_free(cdb);

Completed in 329 milliseconds

1234