Lines Matching defs:dev_select

500  * - device selection list (dev_select)
550 devstat_selectdevs(struct device_selection **dev_select, int *num_selected,
565 if ((dev_select == NULL) || (devices == NULL) || (numdevs < 0))
569 * We always want to make sure that we have as many dev_select
575 if (*dev_select == NULL) {
576 *dev_select = (struct device_selection *)malloc(numdevs *
601 if (*dev_select == NULL) {
603 "%s: Cannot (re)allocate memory for dev_select argument",
642 bcopy(*dev_select, old_dev_select,
647 *dev_select = (struct device_selection *)reallocf(*dev_select,
652 bzero(*dev_select, sizeof(struct device_selection) * numdevs);
655 (*dev_select)[i].device_number =
657 strncpy((*dev_select)[i].device_name,
660 (*dev_select)[i].device_name[DEVSTAT_NAME_LEN - 1]='\0';
661 (*dev_select)[i].unit_number = devices[i].unit_number;
662 (*dev_select)[i].position = i;
667 (*dev_select)[i].selected = 0;
683 (*dev_select)[i].device_name,
684 (*dev_select)[i].unit_number);
706 if ((*dev_select)[i].selected)
710 (*dev_select)[i].selected =
715 (*dev_select)[i].selected = 0;
789 if ((*dev_select)[k].position == j) {
827 if ((*dev_select)[k].selected != 0)
829 (*dev_select)[k].selected =
834 (*dev_select)[k].selected = 0;
864 qsort(*dev_select, *num_selections,
877 if ((*dev_select)[i].selected == 0) {
878 (*dev_select)[i].selected =
886 if ((*dev_select)[i].selected != 0) {
887 (*dev_select)[i].selected =
908 if ((*dev_select)[i].selected == 0) {
909 (*dev_select)[i].selected = ++selection_number;
935 if (((*dev_select)[i].device_number ==
937 && ((*dev_select)[i].selected ==
950 else if ((*dev_select)[i].device_number ==
975 if (((*dev_select)[i].device_number ==
977 && ((*dev_select)[i].selected ==
982 else if ((*dev_select)[i].device_number