Lines Matching refs:selected

486  * Devices are selected/deselected based upon the following criteria:
491 * devices haven't already been selected and if the user has not
496 * - current number of devices selected (num_selected)
511 * - number of devices selected on the command line by the user
515 * selected by the user or devices matching a pattern given by the
516 * user will be selected in addition to devices that are already
517 * selected. Additional devices will be selected, up to maxshowdevs
521 * given by the user will be selected. No other devices will be
522 * selected.
525 * current selected, as only mode would, but it will also not
528 * explicitly selected by the user or devices matching a pattern
529 * given by the user will be de-selected.
535 * - the number of devices selected and the total number of items in the
541 * 0 -- selected devices are unchanged
542 * 1 -- selected devices changed
568 * In this case, we haven't selected devices before.
577 * In this case, we have selected devices before, but the device
578 * list has changed since we last selected devices, so we need to
587 * In this case, we've selected devices before, and the selection
604 * If we're in "only" mode, we want to clear out the selected
612 * In all cases, we want to back up the number of selected devices.
613 * It is a quick and accurate way to determine whether the selected
657 (*dev_select)[i].selected = 0;
681 * if it hasn't already been selected.
689 * ones to be selected. If we're in remove
696 if ((*dev_select)[i].selected)
700 (*dev_select)[i].selected =
705 (*dev_select)[i].selected = 0;
723 * selected is less than the maximum number we can show.
803 * if it hasn't already been selected. If
804 * it has already been selected, we leave
807 * devices have already been selected, and
811 * decrement the selected count.
817 if ((*dev_select)[k].selected != 0)
819 (*dev_select)[k].selected =
824 (*dev_select)[k].selected = 0;
835 * selected (not selection number, just the fact that they are
836 * selected!) and the number of bytes in the "bytes" field of the
847 * selected, so the only criterion used to sort them will be their
849 * all devices will be selected, so again selection won't matter.
861 * isn't already selected. Because the 'selected'
864 * the devices that were selected first.
867 if ((*dev_select)[i].selected == 0) {
868 (*dev_select)[i].selected =
876 if ((*dev_select)[i].selected != 0) {
877 (*dev_select)[i].selected =
886 * selected maxshowdevs number of devices, go through the array and
898 if ((*dev_select)[i].selected == 0) {
899 (*dev_select)[i].selected = ++selection_number;
905 * Look at the number of devices that have been selected. If it
908 * selection list to see if the selected devices have changed.
927 && ((*dev_select)[i].selected ==
928 old_dev_select[i].selected))
967 && ((*dev_select)[i].selected ==
968 old_dev_select[j].selected)){
994 * has been selected. If one of them has, and the other one has not, the
995 * selected device is automatically more important than the unselected
996 * device. If neither device is selected, we judge the devices based upon
1002 if ((((const struct device_selection *)arg1)->selected)
1003 && (((const struct device_selection *)arg2)->selected == 0))
1005 else if ((((const struct device_selection *)arg1)->selected == 0)
1006 && (((const struct device_selection *)arg2)->selected))