Lines Matching refs:cdb
11 #define SERVICE_ACTION16(cdb) (cdb[1] & 0x1f) argument
12 #define SERVICE_ACTION32(cdb) (get_unaligned_be16(&cdb[8])) argument
18 scsi_trace_rw6(struct trace_seq *p, unsigned char *cdb, int len) in scsi_trace_rw6() argument
23 lba = get_unaligned_be24(&cdb[1]) & 0x1fffff; in scsi_trace_rw6()
28 txlen = cdb[4] ? cdb[4] : 256; in scsi_trace_rw6()
37 scsi_trace_rw10(struct trace_seq *p, unsigned char *cdb, int len) in scsi_trace_rw10() argument
42 lba = get_unaligned_be32(&cdb[2]); in scsi_trace_rw10()
43 txlen = get_unaligned_be16(&cdb[7]); in scsi_trace_rw10()
46 cdb[1] >> 5); in scsi_trace_rw10()
48 if (cdb[0] == WRITE_SAME) in scsi_trace_rw10()
49 trace_seq_printf(p, " unmap=%u", cdb[1] >> 3 & 1); in scsi_trace_rw10()
57 scsi_trace_rw12(struct trace_seq *p, unsigned char *cdb, int len) in scsi_trace_rw12() argument
62 lba = get_unaligned_be32(&cdb[2]); in scsi_trace_rw12()
63 txlen = get_unaligned_be32(&cdb[6]); in scsi_trace_rw12()
66 cdb[1] >> 5); in scsi_trace_rw12()
73 scsi_trace_rw16(struct trace_seq *p, unsigned char *cdb, int len) in scsi_trace_rw16() argument
79 lba = get_unaligned_be64(&cdb[2]); in scsi_trace_rw16()
80 txlen = get_unaligned_be32(&cdb[10]); in scsi_trace_rw16()
83 cdb[1] >> 5); in scsi_trace_rw16()
85 if (cdb[0] == WRITE_SAME_16) in scsi_trace_rw16()
86 trace_seq_printf(p, " unmap=%u", cdb[1] >> 3 & 1); in scsi_trace_rw16()
94 scsi_trace_rw32(struct trace_seq *p, unsigned char *cdb, int len) in scsi_trace_rw32() argument
100 switch (SERVICE_ACTION32(cdb)) { in scsi_trace_rw32()
118 lba = get_unaligned_be64(&cdb[12]); in scsi_trace_rw32()
119 ei_lbrt = get_unaligned_be32(&cdb[20]); in scsi_trace_rw32()
120 txlen = get_unaligned_be32(&cdb[28]); in scsi_trace_rw32()
123 cmd, lba, txlen, cdb[10] >> 5, ei_lbrt); in scsi_trace_rw32()
125 if (SERVICE_ACTION32(cdb) == WRITE_SAME_32) in scsi_trace_rw32()
126 trace_seq_printf(p, " unmap=%u", cdb[10] >> 3 & 1); in scsi_trace_rw32()
135 scsi_trace_unmap(struct trace_seq *p, unsigned char *cdb, int len) in scsi_trace_unmap() argument
138 unsigned int regions = get_unaligned_be16(&cdb[7]); in scsi_trace_unmap()
147 scsi_trace_service_action_in(struct trace_seq *p, unsigned char *cdb, int len) in scsi_trace_service_action_in() argument
153 switch (SERVICE_ACTION16(cdb)) { in scsi_trace_service_action_in()
165 lba = get_unaligned_be64(&cdb[2]); in scsi_trace_service_action_in()
166 alloc_len = get_unaligned_be32(&cdb[10]); in scsi_trace_service_action_in()
177 scsi_trace_maintenance_in(struct trace_seq *p, unsigned char *cdb, int len) in scsi_trace_maintenance_in() argument
182 switch (SERVICE_ACTION16(cdb)) { in scsi_trace_maintenance_in()
212 alloc_len = get_unaligned_be32(&cdb[6]); in scsi_trace_maintenance_in()
223 scsi_trace_maintenance_out(struct trace_seq *p, unsigned char *cdb, int len) in scsi_trace_maintenance_out() argument
228 switch (SERVICE_ACTION16(cdb)) { in scsi_trace_maintenance_out()
252 alloc_len = get_unaligned_be32(&cdb[6]); in scsi_trace_maintenance_out()
263 scsi_trace_zbc_in(struct trace_seq *p, unsigned char *cdb, int len) in scsi_trace_zbc_in() argument
270 switch (SERVICE_ACTION16(cdb)) { in scsi_trace_zbc_in()
279 zone_id = get_unaligned_be64(&cdb[2]); in scsi_trace_zbc_in()
280 alloc_len = get_unaligned_be32(&cdb[10]); in scsi_trace_zbc_in()
281 options = cdb[14] & 0x3f; in scsi_trace_zbc_in()
285 options, (cdb[14] >> 7) & 1); in scsi_trace_zbc_in()
294 scsi_trace_zbc_out(struct trace_seq *p, unsigned char *cdb, int len) in scsi_trace_zbc_out() argument
299 switch (SERVICE_ACTION16(cdb)) { in scsi_trace_zbc_out()
317 zone_id = get_unaligned_be64(&cdb[2]); in scsi_trace_zbc_out()
320 (unsigned long long)zone_id, cdb[14] & 1); in scsi_trace_zbc_out()
329 scsi_trace_varlen(struct trace_seq *p, unsigned char *cdb, int len) in scsi_trace_varlen() argument
331 switch (SERVICE_ACTION32(cdb)) { in scsi_trace_varlen()
336 return scsi_trace_rw32(p, cdb, len); in scsi_trace_varlen()
338 return scsi_trace_misc(p, cdb, len); in scsi_trace_varlen()
343 scsi_trace_misc(struct trace_seq *p, unsigned char *cdb, int len) in scsi_trace_misc() argument
354 scsi_trace_parse_cdb(struct trace_seq *p, unsigned char *cdb, int len) in scsi_trace_parse_cdb() argument
356 switch (cdb[0]) { in scsi_trace_parse_cdb()
359 return scsi_trace_rw6(p, cdb, len); in scsi_trace_parse_cdb()
364 return scsi_trace_rw10(p, cdb, len); in scsi_trace_parse_cdb()
368 return scsi_trace_rw12(p, cdb, len); in scsi_trace_parse_cdb()
373 return scsi_trace_rw16(p, cdb, len); in scsi_trace_parse_cdb()
375 return scsi_trace_unmap(p, cdb, len); in scsi_trace_parse_cdb()
377 return scsi_trace_service_action_in(p, cdb, len); in scsi_trace_parse_cdb()
379 return scsi_trace_varlen(p, cdb, len); in scsi_trace_parse_cdb()
381 return scsi_trace_maintenance_in(p, cdb, len); in scsi_trace_parse_cdb()
383 return scsi_trace_maintenance_out(p, cdb, len); in scsi_trace_parse_cdb()
385 return scsi_trace_zbc_in(p, cdb, len); in scsi_trace_parse_cdb()
387 return scsi_trace_zbc_out(p, cdb, len); in scsi_trace_parse_cdb()
389 return scsi_trace_misc(p, cdb, len); in scsi_trace_parse_cdb()