Lines Matching refs:cesr

521 	struct changer_element_status_request cesr;  in do_status()  local
656 bzero(&cesr, sizeof(cesr)); in do_status()
657 cesr.cesr_element_type = chet; in do_status()
658 cesr.cesr_element_base = base; in do_status()
659 cesr.cesr_element_count = count; in do_status()
661 cesr.cesr_element_status = in do_status()
665 if (!cesr.cesr_element_status) in do_status()
669 cesr.cesr_flags |= CESR_VOLTAGS; in do_status()
671 if (ioctl(changer_fd, CHIOGSTATUS, (char *)&cesr)) { in do_status()
672 free(cesr.cesr_element_status); in do_status()
679 &(cesr.cesr_element_status[i]); in do_status()
726 free(cesr.cesr_element_status); in do_status()
1007 struct changer_element_status_request cesr; in get_element_status() local
1016 (void)memset(&cesr, 0, sizeof(cesr)); in get_element_status()
1018 cesr.cesr_element_type = (uint16_t)type; in get_element_status()
1019 cesr.cesr_element_base = (uint16_t)element; in get_element_status()
1020 cesr.cesr_element_count = 1; /* Only this one element */ in get_element_status()
1022 cesr.cesr_flags |= CESR_VOLTAGS; /* Grab voltags as well */ in get_element_status()
1023 cesr.cesr_element_status = ces; in get_element_status()
1025 if (ioctl(changer_fd, CHIOGSTATUS, (char *)&cesr) == -1) { in get_element_status()
1046 struct changer_element_status_request cesr; in find_element() local
1072 (void) memset(&cesr, 0, sizeof(cesr)); in find_element()
1073 cesr.cesr_element_type = CHET_ST; in find_element()
1074 cesr.cesr_element_base = 0; in find_element()
1075 cesr.cesr_element_count = cp.cp_nslots; in find_element()
1076 cesr.cesr_flags |= CESR_VOLTAGS; in find_element()
1077 cesr.cesr_element_status = ces; in find_element()
1079 if (ioctl(changer_fd, CHIOGSTATUS, (char *)&cesr) == -1) { in find_element()
1089 (void) memset(&cesr, 0, sizeof(cesr)); in find_element()
1090 cesr.cesr_element_type = CHET_DT; in find_element()
1091 cesr.cesr_element_base = 0; in find_element()
1092 cesr.cesr_element_count = cp.cp_ndrives; in find_element()
1093 cesr.cesr_flags |= CESR_VOLTAGS; in find_element()
1094 cesr.cesr_element_status = ces; in find_element()
1096 if (ioctl(changer_fd, CHIOGSTATUS, (char *)&cesr) == -1) { in find_element()
1105 (void) memset(&cesr, 0, sizeof(cesr)); in find_element()
1106 cesr.cesr_element_type = CHET_IE; in find_element()
1107 cesr.cesr_element_base = 0; in find_element()
1108 cesr.cesr_element_count = cp.cp_nportals; in find_element()
1109 cesr.cesr_flags |= CESR_VOLTAGS; in find_element()
1110 cesr.cesr_element_status = ces; in find_element()
1112 if (ioctl(changer_fd, CHIOGSTATUS, (char *)&cesr) == -1) { in find_element()
1121 (void) memset(&cesr, 0, sizeof(cesr)); in find_element()
1122 cesr.cesr_element_type = CHET_MT; in find_element()
1123 cesr.cesr_element_base = 0; in find_element()
1124 cesr.cesr_element_count = cp.cp_npickers; in find_element()
1125 cesr.cesr_flags |= CESR_VOLTAGS; in find_element()
1126 cesr.cesr_element_status = ces; in find_element()
1128 if (ioctl(changer_fd, CHIOGSTATUS, (char *)&cesr) == -1) { in find_element()