Home
last modified time | relevance | path

Searched refs:ucmd (Results 1 – 25 of 29) sorted by relevance

12

/titanic_44/usr/src/lib/storage/libg_fc/common/
H A Dio.c92 struct uscsi_cmd ucmd; in g_scsi_persistent_reserve_in_cmd() local
101 (void) memset((char *)&ucmd, 0, sizeof (ucmd)); in g_scsi_persistent_reserve_in_cmd()
105 ucmd.uscsi_cdb = (caddr_t)&cdb; in g_scsi_persistent_reserve_in_cmd()
106 ucmd.uscsi_cdblen = CDB_GROUP1; in g_scsi_persistent_reserve_in_cmd()
107 ucmd.uscsi_bufaddr = (caddr_t)buf_ptr; in g_scsi_persistent_reserve_in_cmd()
108 ucmd.uscsi_buflen = buf_len; in g_scsi_persistent_reserve_in_cmd()
109 ucmd.uscsi_rqbuf = (caddr_t)&sense; in g_scsi_persistent_reserve_in_cmd()
110 ucmd.uscsi_rqlen = sizeof (struct scsi_extended_sense); in g_scsi_persistent_reserve_in_cmd()
111 ucmd.uscsi_timeout = 60; in g_scsi_persistent_reserve_in_cmd()
117 return (cmd(fd, &ucmd, USCSI_READ | USCSI_SILENT)); in g_scsi_persistent_reserve_in_cmd()
[all …]
H A Dgenf.c786 g_scsi_printerr(struct uscsi_cmd *ucmd, struct scsi_extended_sense *rq, in g_scsi_printerr() argument
858 g_scsi_find_command_name(ucmd->uscsi_cdb[0])); in g_scsi_printerr()
879 string_dump(MSGSTR(47, " cmd: "), (uchar_t *)ucmd, in g_scsi_printerr()
882 (uchar_t *)ucmd->uscsi_cdb, in g_scsi_printerr()
883 ucmd->uscsi_cdblen, HEX_ONLY, msg_string); in g_scsi_printerr()
H A Dmap.c4029 struct uscsi_cmd ucmd; in g_scsi_inquiry_cmd80() local
4034 (void) memset((char *)&ucmd, 0, sizeof (ucmd)); in g_scsi_inquiry_cmd80()
4036 ucmd.uscsi_cdb = (caddr_t)&cdb; in g_scsi_inquiry_cmd80()
4037 ucmd.uscsi_cdblen = CDB_GROUP0; in g_scsi_inquiry_cmd80()
4038 ucmd.uscsi_bufaddr = (caddr_t)buf_ptr; in g_scsi_inquiry_cmd80()
4039 ucmd.uscsi_buflen = buf_len; in g_scsi_inquiry_cmd80()
4040 ucmd.uscsi_rqbuf = (caddr_t)&sense; in g_scsi_inquiry_cmd80()
4041 ucmd.uscsi_rqlen = sizeof (struct scsi_extended_sense); in g_scsi_inquiry_cmd80()
4042 ucmd.uscsi_timeout = 60; in g_scsi_inquiry_cmd80()
4043 return (cmd(fd, &ucmd, USCSI_READ | USCSI_SILENT)); in g_scsi_inquiry_cmd80()
[all …]
/titanic_44/usr/src/cmd/smserverd/
H A Dsmediad.c302 invalid_uscsi_operation(door_data_t *door_dp, struct uscsi_cmd *ucmd) in invalid_uscsi_operation() argument
312 if (ucmd->uscsi_flags & FORBIDDEN_FLAGS) { in invalid_uscsi_operation()
315 ucmd->uscsi_flags, ucmd->uscsi_cdb[0]); in invalid_uscsi_operation()
319 if (ucmd->uscsi_cdb[0] == SCMD_COPY || in invalid_uscsi_operation()
320 ucmd->uscsi_cdb[0] == SCMD_COPY_VERIFY || in invalid_uscsi_operation()
321 ucmd->uscsi_cdb[0] == SCMD_COMPARE || in invalid_uscsi_operation()
322 ucmd->uscsi_cdb[0] == SCMD_WRITE_BUFFER) { in invalid_uscsi_operation()
325 ucmd->uscsi_cdb[0]); in invalid_uscsi_operation()
336 struct uscsi_cmd ucmd; in get_sector_size() local
343 ucmd.uscsi_cdb = (caddr_t)&cdb; in get_sector_size()
[all …]
/titanic_44/usr/src/uts/sun/sys/dada/impl/
H A Dudcd.h69 #define udcd_cmd32toudcd_cmd(u32, ucmd) \ argument
70 ucmd->udcd_error_reg = u32->udcd_error_reg; \
71 ucmd->udcd_status_reg = u32->udcd_status_reg; \
72 ucmd->udcd_status = u32->udcd_status; \
73 ucmd->udcd_timeout = u32->udcd_timeout; \
74 ucmd->udcd_flags = u32->udcd_flags; \
75 ucmd->udcd_resid = u32->udcd_resid; \
76 ucmd->udcd_buflen = u32->udcd_buflen; \
77 ucmd->udcd_bufaddr = (caddr_t)(uintptr_t)u32->udcd_bufaddr; \
78 ucmd->udcd_cmd = (struct dcd_cmd *)(uintptr_t)u32->udcd_cmd; \
[all …]
/titanic_44/usr/src/uts/common/sys/scsi/impl/
H A Duscsi.h76 #define uscsi_cmd32touscsi_cmd(u32, ucmd) \ argument
77 ucmd->uscsi_flags = u32->uscsi_flags; \
78 ucmd->uscsi_status = u32->uscsi_status; \
79 ucmd->uscsi_timeout = u32->uscsi_timeout; \
80 ucmd->uscsi_cdb = (caddr_t)(uintptr_t)u32->uscsi_cdb; \
81 ucmd->uscsi_bufaddr = (caddr_t)(uintptr_t)u32->uscsi_bufaddr; \
82 ucmd->uscsi_buflen = (size_t)u32->uscsi_buflen; \
83 ucmd->uscsi_resid = (size_t)u32->uscsi_resid; \
84 ucmd->uscsi_cdblen = u32->uscsi_cdblen; \
85 ucmd->uscsi_rqlen = u32->uscsi_rqlen; \
[all …]
H A Dusmp.h60 #define usmp_cmd32tousmp_cmd(u32, ucmd) \ argument
61 ucmd->usmp_req = (caddr_t)(uintptr_t)u32->usmp_req; \
62 ucmd->usmp_rsp = (caddr_t)(uintptr_t)u32->usmp_rsp; \
63 ucmd->usmp_reqsize = (size_t)u32->usmp_reqsize; \
64 ucmd->usmp_rspsize = (size_t)u32->usmp_rspsize; \
65 ucmd->usmp_timeout = u32->usmp_timeout;
67 #define usmp_cmdtousmp_cmd32(ucmd, u32) \ argument
68 u32->usmp_req = (caddr32_t)(uintptr_t)ucmd->usmp_req; \
69 u32->usmp_rsp = (caddr32_t)(uintptr_t)ucmd->usmp_rsp; \
70 u32->usmp_reqsize = (size32_t)ucmd->usmp_reqsize; \
[all …]
/titanic_44/usr/src/cmd/format/
H A Dctlr_scsi.c208 struct uscsi_cmd ucmd; local
236 (void) memset((char *)&ucmd, 0, sizeof (ucmd));
242 ucmd.uscsi_cdblen = CDB_GROUP0;
247 ucmd.uscsi_cdblen = CDB_GROUP4;
252 ucmd.uscsi_cdblen = CDB_GROUP1;
256 ucmd.uscsi_cdb = (caddr_t)&cdb;
257 ucmd.uscsi_bufaddr = bufaddr;
258 ucmd.uscsi_buflen = nsectors * cur_blksz;
259 rc = uscsi_cmd(fd, &ucmd, flags);
269 if (ucmd.uscsi_resid == ucmd.uscsi_buflen) {
[all …]
H A Dmenu_scsi.c540 struct uscsi_cmd ucmd; in do_format() local
594 (void) memset((char *)&ucmd, 0, sizeof (ucmd)); in do_format()
597 ucmd.uscsi_cdb = (caddr_t)&cdb; in do_format()
598 ucmd.uscsi_cdblen = CDB_GROUP0; in do_format()
605 ucmd.uscsi_bufaddr = (caddr_t)&defect_hdr; in do_format()
606 ucmd.uscsi_buflen = sizeof (defect_hdr); in do_format()
614 status = uscsi_cmd(cur_file, &ucmd, F_NORMAL); in do_format()
944 struct uscsi_cmd ucmd; in default_all_pages() local
959 (void) memset((char *)&ucmd, 0, sizeof (ucmd)); in default_all_pages()
964 ucmd.uscsi_cdb = (caddr_t)&cdb; in default_all_pages()
[all …]
/titanic_44/usr/src/lib/fm/libdiskstatus/common/
H A Dds_scsi_uscsi.c659 scsi_printerr(struct uscsi_cmd *ucmd, struct scsi_extended_sense *rq, int rqlen) in scsi_printerr() argument
669 find_string(scsi_cmdname_strings, ucmd->uscsi_cdb[0])); in scsi_printerr()
711 ddump("cmd:", (caddr_t)ucmd, in scsi_printerr()
713 ddump("cdb:", (caddr_t)ucmd->uscsi_cdb, in scsi_printerr()
714 ucmd->uscsi_cdblen); in scsi_printerr()
1042 uscsi_cmd(int fd, struct uscsi_cmd *ucmd, void *rqbuf, int *rqlen) in uscsi_cmd() argument
1050 ucmd->uscsi_flags = USCSI_ISOLATE; in uscsi_cmd()
1052 ucmd->uscsi_flags |= USCSI_SILENT; in uscsi_cmd()
1057 if (ucmd->uscsi_buflen > 0) { in uscsi_cmd()
1063 switch ((uint8_t)ucmd->uscsi_cdb[0]) { in uscsi_cmd()
[all …]
/titanic_44/usr/src/lib/libsmedia/plugins/scsi/common/
H A Ds_generic.c646 _m_uscsi_cmd(rmedia_handle_t *handle, struct uscsi_cmd *ucmd) in _m_uscsi_cmd() argument
670 if (ucmd->uscsi_cdblen > MAX_CDB_LEN) { in _m_uscsi_cmd()
675 if ((ucmd->uscsi_flags & USCSI_RQENABLE) && in _m_uscsi_cmd()
676 (ucmd->uscsi_rqlen > MAX_RQ_LEN)) { in _m_uscsi_cmd()
681 if (ucmd->uscsi_cdb == NULL) { in _m_uscsi_cmd()
686 if ((ucmd->uscsi_buflen) && (ucmd->uscsi_bufaddr == NULL)) { in _m_uscsi_cmd()
691 if ((ucmd->uscsi_flags & USCSI_RQENABLE) && in _m_uscsi_cmd()
692 (ucmd->uscsi_rqbuf == NULL)) { in _m_uscsi_cmd()
702 ret_val = remap_shared_buf(handle, ucmd->uscsi_buflen, in _m_uscsi_cmd()
703 ucmd->uscsi_bufaddr); in _m_uscsi_cmd()
[all …]
/titanic_44/usr/src/cmd/luxadm/
H A Dlux_util.c70 static void scsi_printerr(struct uscsi_cmd *ucmd,
283 scsi_printerr(struct uscsi_cmd *ucmd, struct scsi_extended_sense *rq, in scsi_printerr() argument
353 scsi_find_command_name(ucmd->uscsi_cdb[0])); in scsi_printerr()
375 string_dump(MSGSTR(47, " cmd: "), (uchar_t *)ucmd, in scsi_printerr()
378 (uchar_t *)ucmd->uscsi_cdb, in scsi_printerr()
379 ucmd->uscsi_cdblen, HEX_ONLY, msg_string); in scsi_printerr()
617 struct uscsi_cmd ucmd; in scsi_mode_sense_cmd() local
629 (void) memset((char *)&ucmd, 0, sizeof (ucmd)); in scsi_mode_sense_cmd()
638 ucmd.uscsi_cdb = (caddr_t)&cdb; in scsi_mode_sense_cmd()
639 ucmd.uscsi_cdblen = CDB_GROUP1; in scsi_mode_sense_cmd()
[all …]
/titanic_44/usr/src/uts/common/io/scsi/targets/
H A Dsgen.c1202 sgen_uscsi_cmd(dev_t dev, struct uscsi_cmd *ucmd, int flag) in sgen_uscsi_cmd() argument
1229 err = scsi_uscsi_alloc_and_copyin((intptr_t)ucmd, flag, in sgen_uscsi_cmd()
1282 (void) scsi_uscsi_copyout_and_free((intptr_t)ucmd, uscmd); in sgen_uscsi_cmd()
1445 struct uscsi_cmd *ucmd; in sgen_make_uscsi_cmd() local
1453 ucmd = (struct uscsi_cmd *)bp->b_private; in sgen_make_uscsi_cmd()
1455 if (ucmd->uscsi_flags & USCSI_RQENABLE) { in sgen_make_uscsi_cmd()
1456 if (ucmd->uscsi_rqlen > SENSE_LENGTH) { in sgen_make_uscsi_cmd()
1457 stat_size = (int)(ucmd->uscsi_rqlen) + in sgen_make_uscsi_cmd()
1471 ucmd->uscsi_cdblen, /* cmdlen */ in sgen_make_uscsi_cmd()
1493 bcopy(ucmd->uscsi_cdb, pkt->pkt_cdbp, ucmd->uscsi_cdblen); in sgen_make_uscsi_cmd()
[all …]
H A Dst.c628 static int st_uscsi_rcmd(struct scsi_tape *un, struct uscsi_cmd *ucmd,
6193 st_uscsi_cmd(struct scsi_tape *un, struct uscsi_cmd *ucmd, int flag) in st_uscsi_cmd() argument
6231 err = scsi_uscsi_alloc_and_copyin((intptr_t)ucmd, flag, ROUTE, &uscmd); in st_uscsi_cmd()
6340 (void) scsi_uscsi_copyout_and_free((intptr_t)ucmd, uscmd); in st_uscsi_cmd()
8630 struct uscsi_cmd *ucmd; in st_make_cmd() local
8708 } else if ((ucmd = BP_UCMD(bp)) != NULL) { in st_make_cmd()
8712 st_make_uscsi_cmd(un, ucmd, bp, func); in st_make_cmd()
9023 st_make_uscsi_cmd(struct scsi_tape *un, struct uscsi_cmd *ucmd, in st_make_uscsi_cmd() argument
9038 if (ucmd->uscsi_flags & USCSI_RQENABLE) { in st_make_uscsi_cmd()
9040 if (ucmd->uscsi_rqlen > SENSE_LENGTH) { in st_make_uscsi_cmd()
[all …]
/titanic_44/usr/src/cmd/addbadsec/
H A Daddbadsec.c348 struct uscsi_cmd ucmd; local
355 (void) memset((char *)&ucmd, 0, sizeof (ucmd));
360 ucmd.uscsi_cdb = (caddr_t)&cdb;
361 ucmd.uscsi_cdblen = CDB_GROUP0;
362 ucmd.uscsi_bufaddr = (caddr_t)&defect_list;
363 ucmd.uscsi_buflen = sizeof (struct scsi_reassign_blk);
369 ucmd.uscsi_flags = USCSI_ISOLATE | USCSI_DIAGNOSE | USCSI_SILENT;
370 ucmd.uscsi_timeout = 30; /* 30 seconds */
375 if (ioctl(devfd, USCSICMD, &ucmd) == -1)
/titanic_44/usr/src/cmd/hal/probing/storage/
H A Dprobe-storage.c221 struct uscsi_cmd ucmd; in get_disk_properties() local
228 (void) memset((void *) &ucmd, 0, sizeof (ucmd)); in get_disk_properties()
232 ucmd.uscsi_cdb = (caddr_t) & cdb; in get_disk_properties()
233 ucmd.uscsi_cdblen = CDB_GROUP0; in get_disk_properties()
234 ucmd.uscsi_bufaddr = (caddr_t) & inq; in get_disk_properties()
235 ucmd.uscsi_buflen = sizeof (inq); in get_disk_properties()
236 ucmd.uscsi_timeout = 30; in get_disk_properties()
237 ucmd.uscsi_flags = USCSI_READ; in get_disk_properties()
238 status = ioctl(fd, USCSICMD, &ucmd); in get_disk_properties()
239 if (status || ucmd.uscsi_status) { in get_disk_properties()
/titanic_44/usr/src/cmd/sgs/elfedit/common/
H A Delfedit.c2143 while (state.ucmd.list) { in free_user_cmds()
2144 next = state.ucmd.list->ucmd_next; in free_user_cmds()
2145 free(state.ucmd.list); in free_user_cmds()
2146 state.ucmd.list = next; in free_user_cmds()
2148 state.ucmd.tail = NULL; in free_user_cmds()
2149 state.ucmd.n = 0; in free_user_cmds()
2161 USER_CMD_T *ucmd; in dispatch_user_cmds() local
2164 ucmd = state.ucmd.list; in dispatch_user_cmds()
2165 if (ucmd) { in dispatch_user_cmds()
2167 for (; ucmd; ucmd = ucmd->ucmd_next) { in dispatch_user_cmds()
[all …]
H A D_elfedit.h172 } ucmd; member
/titanic_44/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_sess.c1714 struct uscsi_cmd ucmd; in iscsi_sess_testunitready() local
1726 bzero(&ucmd, sizeof (struct uscsi_cmd)); in iscsi_sess_testunitready()
1727 ucmd.uscsi_timeout = iscsi_sess_enum_timeout; in iscsi_sess_testunitready()
1728 ucmd.uscsi_cdb = &cdb[0]; in iscsi_sess_testunitready()
1729 ucmd.uscsi_cdblen = CDB_GROUP0; in iscsi_sess_testunitready()
1732 rval = iscsi_handle_passthru(isp, 0, &ucmd); in iscsi_sess_testunitready()
1767 struct uscsi_cmd ucmd; in iscsi_sess_reportluns() local
1810 bzero(&ucmd, sizeof (struct uscsi_cmd)); in iscsi_sess_reportluns()
1811 ucmd.uscsi_flags = USCSI_READ; in iscsi_sess_reportluns()
1812 ucmd.uscsi_timeout = iscsi_sess_enum_timeout; in iscsi_sess_reportluns()
[all …]
/titanic_44/usr/src/lib/libdiskmgt/common/
H A Ddrive.c1419 struct uscsi_cmd ucmd; in uscsi_mode_sense() local
1440 (void) memset((char *)&ucmd, 0, sizeof (ucmd)); in uscsi_mode_sense()
1446 ucmd.uscsi_cdb = (caddr_t)&cdb; in uscsi_mode_sense()
1447 ucmd.uscsi_cdblen = CDB_GROUP0; in uscsi_mode_sense()
1448 ucmd.uscsi_bufaddr = mode_sense_buf; in uscsi_mode_sense()
1449 ucmd.uscsi_buflen = nbytes; in uscsi_mode_sense()
1451 ucmd.uscsi_flags |= USCSI_SILENT; in uscsi_mode_sense()
1452 ucmd.uscsi_flags |= USCSI_READ; in uscsi_mode_sense()
1453 ucmd.uscsi_timeout = 30; in uscsi_mode_sense()
1454 ucmd.uscsi_flags |= USCSI_RQENABLE; in uscsi_mode_sense()
[all …]
/titanic_44/usr/src/uts/sun/io/dada/targets/
H A Ddad.c1080 struct udcd_cmd ucmd; in dcd_set_multiple() local
1086 (void) bzero((caddr_t)&ucmd, sizeof (ucmd)); in dcd_set_multiple()
1103 ucmd.udcd_flags = 0; in dcd_set_multiple()
1104 ucmd.udcd_cmd = &cdb; in dcd_set_multiple()
1105 ucmd.udcd_bufaddr = NULL; in dcd_set_multiple()
1106 ucmd.udcd_buflen = 0; in dcd_set_multiple()
1107 ucmd.udcd_flags |= UDCD_SILENT; in dcd_set_multiple()
1113 status = dcdioctl_cmd(dev, &ucmd, UIO_SYSSPACE, UIO_SYSSPACE); in dcd_set_multiple()
1124 struct udcd_cmd ucmd; in dcd_set_features() local
1130 (void) bzero((caddr_t)&ucmd, sizeof (ucmd)); in dcd_set_features()
[all …]
/titanic_44/usr/src/lib/sun_sas/common/
H A Dsun_sas.c381 send_uscsi_cmd(const char *devpath, struct uscsi_cmd *ucmd) in send_uscsi_cmd() argument
388 ucmd->uscsi_timeout = 200; in send_uscsi_cmd()
398 if (ioctl(fd, USCSICMD, ucmd) == -1) { in send_uscsi_cmd()
H A Dsun_sas.h286 extern HBA_STATUS send_uscsi_cmd(const char *devpath, struct uscsi_cmd *ucmd);
/titanic_44/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_util.c2450 struct uscsi_cmd ucmd; in scsi_test_unit_ready() local
2454 (void) memset(&ucmd, 0, sizeof (struct uscsi_cmd)); in scsi_test_unit_ready()
2457 ucmd.uscsi_cdb = (caddr_t)&cdb; in scsi_test_unit_ready()
2458 ucmd.uscsi_cdblen = CDB_GROUP0; in scsi_test_unit_ready()
2459 ucmd.uscsi_flags |= USCSI_SILENT; in scsi_test_unit_ready()
2460 ucmd.uscsi_timeout = 60; /* Allow maximum 1 min */ in scsi_test_unit_ready()
2462 retval = ioctl(dev_id, USCSICMD, &ucmd); in scsi_test_unit_ready()
2471 retval = -(ucmd.uscsi_status); in scsi_test_unit_ready()
/titanic_44/usr/src/uts/sun4v/io/
H A Dvds.c1377 struct uscsi_cmd ucmd; in vd_do_scsi_rdwr() local
1400 bzero(&ucmd, sizeof (ucmd)); in vd_do_scsi_rdwr()
1414 ucmd.uscsi_cdblen = CDB_GROUP0; in vd_do_scsi_rdwr()
1418 ucmd.uscsi_cdblen = CDB_GROUP4; in vd_do_scsi_rdwr()
1423 ucmd.uscsi_cdblen = CDB_GROUP1; in vd_do_scsi_rdwr()
1426 ucmd.uscsi_cdb = (caddr_t)&cdb; in vd_do_scsi_rdwr()
1427 ucmd.uscsi_bufaddr = data; in vd_do_scsi_rdwr()
1428 ucmd.uscsi_buflen = nsectors * vd->backend_bsize; in vd_do_scsi_rdwr()
1429 ucmd.uscsi_timeout = vd_scsi_rdwr_timeout; in vd_do_scsi_rdwr()
1434 ucmd.uscsi_flags = USCSI_ISOLATE | USCSI_SILENT; in vd_do_scsi_rdwr()
[all …]

12