Lines Matching refs:dev_select

495  * - device selection list (dev_select)
545 devstat_selectdevs(struct device_selection **dev_select, int *num_selected,
560 if ((dev_select == NULL) || (devices == NULL) || (numdevs < 0))
564 * We always want to make sure that we have as many dev_select
570 if (*dev_select == NULL) {
571 *dev_select = (struct device_selection *)malloc(numdevs *
582 *dev_select = (struct device_selection *)reallocf(*dev_select,
596 if (*dev_select == NULL) {
598 "%s: Cannot (re)allocate memory for dev_select argument",
637 bcopy(*dev_select, old_dev_select,
642 bzero(*dev_select, sizeof(struct device_selection) * numdevs);
645 (*dev_select)[i].device_number =
647 strncpy((*dev_select)[i].device_name,
650 (*dev_select)[i].device_name[DEVSTAT_NAME_LEN - 1]='\0';
651 (*dev_select)[i].unit_number = devices[i].unit_number;
652 (*dev_select)[i].position = i;
657 (*dev_select)[i].selected = 0;
673 (*dev_select)[i].device_name,
674 (*dev_select)[i].unit_number);
696 if ((*dev_select)[i].selected)
700 (*dev_select)[i].selected =
705 (*dev_select)[i].selected = 0;
779 if ((*dev_select)[k].position == j) {
817 if ((*dev_select)[k].selected != 0)
819 (*dev_select)[k].selected =
824 (*dev_select)[k].selected = 0;
854 qsort(*dev_select, *num_selections,
867 if ((*dev_select)[i].selected == 0) {
868 (*dev_select)[i].selected =
876 if ((*dev_select)[i].selected != 0) {
877 (*dev_select)[i].selected =
898 if ((*dev_select)[i].selected == 0) {
899 (*dev_select)[i].selected = ++selection_number;
925 if (((*dev_select)[i].device_number ==
927 && ((*dev_select)[i].selected ==
940 else if ((*dev_select)[i].device_number ==
965 if (((*dev_select)[i].device_number ==
967 && ((*dev_select)[i].selected ==
972 else if ((*dev_select)[i].device_number