Lines Matching defs:e_ptr
416 encioc_element_t *e_ptr;
469 e_ptr = calloc(nobj, sizeof(encioc_element_t));
470 if (e_ptr == NULL) {
475 if (ioctl(fd, ENCIOC_GETELMMAP, (caddr_t) e_ptr) < 0) {
495 e_status.elm_idx = e_ptr[j].elm_idx;
502 e_desc.elm_idx = e_ptr[j].elm_idx;
511 e_devname.elm_idx = e_ptr[j].elm_idx;
518 xo_emit("\tElement {:id/%u}, Type: {:type/%s}\n", e_ptr[j].elm_idx,
519 geteltnm(e_ptr[j].elm_type));
532 print_extra_status(e_ptr[j].elm_type, e_status.cstat, PRINT_STYLE_DASHED);
536 free(e_ptr);
722 encioc_element_t *e_ptr;
772 e_ptr = calloc(nobj, sizeof(encioc_element_t));
773 if (e_ptr == NULL) {
778 if (ioctl(fd, ENCIOC_GETELMMAP, (caddr_t) e_ptr) < 0) {
806 e_status.elm_idx = e_ptr[j].elm_idx;
822 e_desc.elm_idx = e_ptr[j].elm_idx;
831 switch (e_ptr[j].elm_type) {
834 if (e_ptr[j].elm_type != prev_type)
837 show_device(fd, e_ptr[j].elm_idx, e_status, e_desc);
838 prev_type = e_ptr[j].elm_type;
841 if (e_ptr[j].elm_type != prev_type)
845 prev_type = e_ptr[j].elm_type;
849 if (e_ptr[j].elm_type != prev_type)
853 prev_type = e_ptr[j].elm_type;
867 free(e_ptr);