Lines Matching refs:sg_fd
141 read_log(int sg_fd, unsigned char *resp, int mx_resp_len)
168 res = do_scsi_pt(&uscsi, sg_fd, DEF_PT_TIMEOUT);
462 sg_ll_mode_sense10(int sg_fd, void * resp, int mx_resp_len)
480 res = do_scsi_pt(&uscsi, sg_fd, DEF_PT_TIMEOUT);
499 sg_ll_mode_select10(int sg_fd, void * paramp, int param_len)
522 res = do_scsi_pt(&uscsi, sg_fd, DEF_PT_TIMEOUT);
601 clear_log(int sg_fd, ses_log_call_t *data)
665 res = sg_ll_mode_sense10(sg_fd, ref_md, alloc_len);
707 res = sg_ll_mode_select10(sg_fd, ref_md, md_len);
721 int sg_fd;
727 if ((sg_fd = open_device(device_name)) < 0) {
735 res = read_log(sg_fd, rsp_buff, resp_len);
739 (void) close(sg_fd);
746 (void) close(sg_fd);
750 error = clear_log(sg_fd, data);
752 (void) close(sg_fd);