Lines Matching refs:ces

678 			struct changer_element_status *ces =  in do_status()  local
680 printf("%s %d: %s", description, ces->ces_addr, in do_status()
681 bits_to_string(ces->ces_flags, in do_status()
685 ces->ces_sensecode, in do_status()
686 ces->ces_sensequal); in do_status()
689 ces->ces_pvoltag.cv_volid, in do_status()
690 ces->ces_pvoltag.cv_serial); in do_status()
693 ces->ces_avoltag.cv_volid, in do_status()
694 ces->ces_avoltag.cv_serial); in do_status()
696 if (ces->ces_flags & CES_SOURCE_VALID) in do_status()
699 ces->ces_source_type), in do_status()
700 ces->ces_source_addr); in do_status()
705 printf(" intaddr: <%d>", ces->ces_int_addr); in do_status()
708 if (ces->ces_flags & CES_SCSIID_VALID) in do_status()
709 printf("%d", ces->ces_scsi_id); in do_status()
713 if (ces->ces_flags & CES_LUN_VALID) in do_status()
714 printf("%d", ces->ces_scsi_lun); in do_status()
719 if (ces->ces_designator_length > 0) in do_status()
720 print_designator(ces->ces_designator, in do_status()
721 ces->ces_code_set, in do_status()
722 ces->ces_designator_length); in do_status()
943 struct changer_element_status *ces; in do_return() local
969 ces = get_element_status((unsigned int)type, (unsigned int)element, in do_return()
972 if (NULL == ces) in do_return()
975 if (!(ces->ces_flags & CES_SOURCE_VALID)) in do_return()
982 cmd.cm_totype = ces->ces_source_type; in do_return()
983 cmd.cm_tounit = ces->ces_source_addr; in do_return()
987 free(ces); in do_return()
1008 struct changer_element_status *ces; in get_element_status() local
1010 ces = (struct changer_element_status *) in get_element_status()
1013 if (NULL == ces) in get_element_status()
1023 cesr.cesr_element_status = ces; in get_element_status()
1026 free(ces); in get_element_status()
1031 return ces; in get_element_status()
1047 struct changer_element_status *ch_ces, *ces; in find_element() local
1068 ces = ch_ces; in find_element()
1077 cesr.cesr_element_status = ces; in find_element()
1083 ces += cp.cp_nslots; in find_element()
1094 cesr.cesr_element_status = ces; in find_element()
1100 ces += cp.cp_ndrives; in find_element()
1110 cesr.cesr_element_status = ces; in find_element()
1116 ces += cp.cp_nportals; in find_element()
1126 cesr.cesr_element_status = ces; in find_element()
1139 ces = &ch_ces[elem]; in find_element()
1142 if ((ces->ces_flags & (CES_STATUS_ACCESS|CES_STATUS_FULL)) in find_element()
1148 (const char *)ces->ces_pvoltag.cv_volid) == 0) { in find_element()
1149 *et = ces->ces_type; in find_element()
1150 *eu = ces->ces_addr; in find_element()