Lines Matching defs:sg_fd
143 read_log(int sg_fd, unsigned char *resp, int mx_resp_len)
170 res = do_scsi_pt(&uscsi, sg_fd, DEF_PT_TIMEOUT);
464 sg_ll_mode_sense10(int sg_fd, void * resp, int mx_resp_len)
482 res = do_scsi_pt(&uscsi, sg_fd, DEF_PT_TIMEOUT);
501 sg_ll_mode_select10(int sg_fd, void * paramp, int param_len)
524 res = do_scsi_pt(&uscsi, sg_fd, DEF_PT_TIMEOUT);
640 clear_log(int sg_fd, ses_log_call_t *data)
697 res = sg_ll_mode_sense10(sg_fd, ref_md, alloc_len);
734 res = sg_ll_mode_select10(sg_fd, ref_md, md_len);
747 int sg_fd;
753 if ((sg_fd = open_device(device_name)) < 0) {
761 res = read_log(sg_fd, rsp_buff, resp_len);
765 (void) close(sg_fd);
772 (void) close(sg_fd);
776 error = clear_log(sg_fd, data);
778 (void) close(sg_fd);