Searched refs:cesr (Results 1 – 2 of 2) sorted by relevance
521 struct changer_element_status_request cesr; in do_status() local656 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()[all …]
1180 struct changer_element_status_request *cesr) in chgetelemstatus() argument1193 int chet = cesr->cesr_element_type; in chgetelemstatus()1195 int want_voltags = (cesr->cesr_flags & CESR_VOLTAGS) ? 1 : 0; in chgetelemstatus()1205 if ((softc->sc_counts[chet] - cesr->cesr_element_base) <= 0 in chgetelemstatus()1206 || (cesr->cesr_element_base + cesr->cesr_element_count) in chgetelemstatus()1297 (desclen * cesr->cesr_element_count); in chgetelemstatus()1312 + cesr->cesr_element_base, in chgetelemstatus()1315 /* count */ cesr->cesr_element_count, in chgetelemstatus()1337 if (avail != cesr->cesr_element_count) { in chgetelemstatus()1380 cesr->cesr_element_status, in chgetelemstatus()[all …]