Lines Matching full:selected
491 * Devices are selected/deselected based upon the following criteria:
496 * devices haven't already been selected and if the user has not
501 * - current number of devices selected (num_selected)
516 * - number of devices selected on the command line by the user
520 * selected by the user or devices matching a pattern given by the
521 * user will be selected in addition to devices that are already
522 * selected. Additional devices will be selected, up to maxshowdevs
526 * given by the user will be selected. No other devices will be
527 * selected.
530 * current selected, as only mode would, but it will also not
533 * explicitly selected by the user or devices matching a pattern
534 * given by the user will be de-selected.
540 * - the number of devices selected and the total number of items in the
546 * 0 -- selected devices are unchanged
547 * 1 -- selected devices changed
573 * In this case, we haven't selected devices before. in devstat_selectdevs()
582 * In this case, we have selected devices before, but the device in devstat_selectdevs()
583 * list has changed since we last selected devices, so we need to in devstat_selectdevs()
592 * In this case, we've selected devices before, and the selection in devstat_selectdevs()
609 * If we're in "only" mode, we want to clear out the selected in devstat_selectdevs()
617 * In all cases, we want to back up the number of selected devices. in devstat_selectdevs()
618 * It is a quick and accurate way to determine whether the selected in devstat_selectdevs()
667 (*dev_select)[i].selected = 0; in devstat_selectdevs()
691 * if it hasn't already been selected. in devstat_selectdevs()
699 * ones to be selected. If we're in remove in devstat_selectdevs()
706 if ((*dev_select)[i].selected) in devstat_selectdevs()
710 (*dev_select)[i].selected = in devstat_selectdevs()
715 (*dev_select)[i].selected = 0; in devstat_selectdevs()
733 * selected is less than the maximum number we can show. in devstat_selectdevs()
813 * if it hasn't already been selected. If in devstat_selectdevs()
814 * it has already been selected, we leave in devstat_selectdevs()
817 * devices have already been selected, and in devstat_selectdevs()
821 * decrement the selected count. in devstat_selectdevs()
827 if ((*dev_select)[k].selected != 0) in devstat_selectdevs()
829 (*dev_select)[k].selected = in devstat_selectdevs()
834 (*dev_select)[k].selected = 0; in devstat_selectdevs()
845 * selected (not selection number, just the fact that they are in devstat_selectdevs()
846 * selected!) and the number of bytes in the "bytes" field of the in devstat_selectdevs()
857 * selected, so the only criterion used to sort them will be their in devstat_selectdevs()
859 * all devices will be selected, so again selection won't matter. in devstat_selectdevs()
871 * isn't already selected. Because the 'selected' in devstat_selectdevs()
874 * the devices that were selected first. in devstat_selectdevs()
877 if ((*dev_select)[i].selected == 0) { in devstat_selectdevs()
878 (*dev_select)[i].selected = in devstat_selectdevs()
886 if ((*dev_select)[i].selected != 0) { in devstat_selectdevs()
887 (*dev_select)[i].selected = in devstat_selectdevs()
896 * selected maxshowdevs number of devices, go through the array and in devstat_selectdevs()
908 if ((*dev_select)[i].selected == 0) { in devstat_selectdevs()
909 (*dev_select)[i].selected = ++selection_number; in devstat_selectdevs()
915 * Look at the number of devices that have been selected. If it in devstat_selectdevs()
918 * selection list to see if the selected devices have changed. in devstat_selectdevs()
937 && ((*dev_select)[i].selected == in devstat_selectdevs()
938 old_dev_select[i].selected)) in devstat_selectdevs()
977 && ((*dev_select)[i].selected == in devstat_selectdevs()
978 old_dev_select[j].selected)){ in devstat_selectdevs()
1004 * has been selected. If one of them has, and the other one has not, the
1005 * selected device is automatically more important than the unselected
1006 * device. If neither device is selected, we judge the devices based upon
1012 if ((((const struct device_selection *)arg1)->selected) in compare_select()
1013 && (((const struct device_selection *)arg2)->selected == 0)) in compare_select()
1015 else if ((((const struct device_selection *)arg1)->selected == 0) in compare_select()
1016 && (((const struct device_selection *)arg2)->selected)) in compare_select()