Searched refs:fcp_fd (Results 1 – 2 of 2) sorted by relevance
/titanic_41/usr/src/lib/storage/libg_fc/common/ |
H A D | map.c | 1344 int err, fcp_fd; in g_get_inq_dtype() local 1388 if ((fcp_fd = g_object_open(FCP_PATH, O_RDONLY)) == -1) { in g_get_inq_dtype() 1400 if (err = g_issue_fcp_ioctl(fcp_fd, &fcp_data, 0)) { in g_get_inq_dtype() 1402 close(fcp_fd); in g_get_inq_dtype() 1408 close(fcp_fd); in g_get_inq_dtype() 1432 int err, fcp_fd; in get_fca_inq_dtype() local 1451 if ((fcp_fd = g_object_open(FCP_PATH, O_RDONLY)) == -1) { in get_fca_inq_dtype() 1463 if (err = g_issue_fcp_ioctl(fcp_fd, &fcp_data, 0)) { in get_fca_inq_dtype() 1465 close(fcp_fd); in get_fca_inq_dtype() 1471 close(fcp_fd); in get_fca_inq_dtype() [all …]
|
/titanic_41/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_list.c | 880 int fcp_fd, retry, rv; in issue_fcp_scsi_cmd() local 888 fcp_fd = open(FCP_PATH, O_RDONLY | O_NDELAY); in issue_fcp_scsi_cmd() 890 while (fcp_fd < 0 && retry++ < OPEN_RETRY_COUNT && ( in issue_fcp_scsi_cmd() 893 fcp_fd = open(FCP_PATH, O_RDONLY|O_NDELAY); in issue_fcp_scsi_cmd() 895 if (fcp_fd < 0) { in issue_fcp_scsi_cmd() 900 rv = ioctl(fcp_fd, FCP_TGT_SEND_SCSI, fscsi); in issue_fcp_scsi_cmd() 908 rv = ioctl(fcp_fd, FCP_TGT_SEND_SCSI, fscsi); in issue_fcp_scsi_cmd() 910 close(fcp_fd); in issue_fcp_scsi_cmd()
|