Lines Matching +full:eq +full:- +full:level
2 # SPDX-License-Identifier: GPL-2.0
8 Usage: $(basename $0) [-c|-d|-m|-f] [filter options] <list of devices>
25 -c lists the compatible string of the dependencies
26 -d lists the driver name of the dependencies that have probed
27 -m lists the module name of the dependencies that have a module
28 -f list the firmware node path of the dependencies
29 -g list the dependencies as edges and nodes for graphviz
30 -t list the dependencies as edges for tsort
33 --allow-no-driver By default dependencies that don't have a driver
40 --exclude-devlinks Don't follow device links when tracking probe
43 --exclude-parents Don't follow parent devices when tracking probe
51 while [ $i -lt ${#OUT_LIST[@]} ]
56 if [ ! -z "$D" ]
59 # using the -t option.
60 printf '%05u\t%s\n' ${i} "$D" | tr -d \'
68 while [ $i -lt ${#OUT_LIST[@]} ]
72 # if-statement treats 0 (no-error) as true
78 # if-statement treats 1 (error) as false
82 # Return 0 (no-error/true) if parent was added
85 if [ ${ALLOW_PARENTS} -eq 0 ]
92 # then go up one level to find the real parent.
95 while [ ! -e ${PARENT}/driver ]
109 # Return 0 (no-error/true) if one or more suppliers were added
114 if [ ${ALLOW_DEVLINKS} -eq 0 ]
119 SUPPLIER_LINKS=$(ls -1d $CON/supplier:* 2>/dev/null)
133 if [ ! -e $SUPPLIER/driver -a ${ALLOW_NO_DRIVER} -eq 0 ]
148 if [ -e $f ]
150 echo -n $(cat $f)
152 echo -n $1
158 if [ -e $f ]
160 echo -n $(basename $(realpath $f))
162 echo -n $1
168 if [ -e $f ]
170 echo -n $(basename $(realpath $f))
172 echo -n $1
178 if [ ! -e $f ]
183 if [ -e $f ]
185 echo -n $(realpath $f)
187 echo -n $1
194 echo -n "\"$(basename $2)\"->\"$(basename $1)\""
196 echo -n "\"$(basename $1)\""
201 echo -n "\"$2\" \"$1\""
204 function detail_device() { echo -n $1; }
211 while [ $# -gt 0 ]
215 --help)
219 -c)
222 -m)
225 -d)
228 -f)
231 -g)
234 -t)
237 --allow-no-driver)
240 --exclude-devlinks)
243 --exclude-parents)
258 if [ $# -eq 0 ]
267 # Do a breadth first, non-recursive tracking of suppliers. The parent is also
270 while [ $i -lt ${#CONSUMERS[@]} ]
282 if [ ! -e ${CONSUMER}/driver -a ${ALLOW_NO_DRIVER} -eq 0 ]
305 if [ $ROOT -eq 1 ]
311 # Can NOT combine sort and uniq using sort -suk2 because stable sort in toybox
313 dev_to_detail | sort -k2 -k1 | uniq -f 1 | sort | cut -f2-