Lines Matching refs:driver

46     "driver found for this compatible",
48 "kernel config found for this driver",
49 "multiple config options found for this driver",
52 "matching driver and/or kernel config is hard coded",
63 %driver_config = (); # driver config array, indexed by driver source file
65 %compat_driver = (); # compatible driver array, indexed by compatible
70 # ----- magic compatibles, do not have a driver
176 --black-list-driver use driver black list
178 --white-list-driver use driver white list
186 Report driver source files that match the compatibles in the device
187 tree file and the kernel config options that enable the driver source
200 value, driver file matching the compatible, configuration options, and
203 is required for the driver file to be included in the kernel.
207 --white-list-driver. If the white list option suppresses the correct
211 This program uses heuristics to guess which driver(s) support each
212 compatible string and which config option(s) enables the driver(s).
219 The driver match heuristic used is to search for source files
227 for a driver, look at the makefile for the driver source file.
228 Even if a config option is listed for a driver, some other
251 will be set if the config or driver is in the white lists, even if
252 --white-list-config and --white-list-driver are not specified.
257 --white-list-config and --white-list-driver may not be accurate if this
283 Report of node / compatible string / driver tuples that should
286 A driver may have config file issues noted. The compatible string
287 and/or driver may be in the white lists.
293 Report of node / compatible string / driver tuples that should
297 may be matched by multiple drivers. A driver may have config file
298 issues noted. The compatible string and/or driver may be in the
328 my $driver = $pn_arg_ref->{driver};
371 (exists($driver_config_hard_code_list{$driver}) &&
372 ($driver ne "no_driver"))) {
441 my $driver = $pn_arg_ref->{driver};
460 print " : $compat : $driver : $config : ";
532 my $driver = shift;
534 # ----- Find Kconfig symbols that enable driver
536 my ($dir, $base) = $driver =~ m{(.*)/(.*).c};
546 push @{ $driver_config{$driver} }, $config;
693 push @{ $driver_config{$driver} }, $config;
706 my $driver = shift;
711 if (!@{ $driver_config{$driver} }) {
712 &scan_makefile($pn_arg_ref, $driver);
713 if (!@{ $driver_config{$driver} }) {
714 push @{ $driver_config{$driver} }, "no_config";
718 @configs = @{ $driver_config{$driver} };
744 # it is used to match board, not to bind a driver.
767 $pn_arg{driver} = "no_driver";
777 for my $driver (@{ $compat_driver{$compat} }) {
778 $pn_arg{driver} = $driver;
780 $pn_arg{config_cnt} = $#{ $driver_config{$driver}} + 1;
782 for my $config (@{ $driver_config{$driver} }) {
787 if (!@{ $driver_config{$driver} }) {
789 # $driver in %driver_hard_code_list
791 $lines_printed += &find_kconfig(\%pn_arg, $driver);
808 $pn_arg{driver} = "no_driver";
821 for my $driver (@drivers) {
822 push @{ $compat_driver{$compat} }, $driver;
823 $pn_arg{driver} = $driver;
825 # ----- if driver previously seen, use cached info
827 $pn_arg{config_cnt} = $#{ $driver_config{$driver} } + 1;
828 for my $config (@{ $driver_config{$driver} }) {
832 if (@{ $driver_config{$driver} }) {
838 next DRIVER if ($driver =~ /^$black$/);
843 # ----- Find Kconfig symbols that enable driver
845 $lines_printed += &find_kconfig(\%pn_arg, $driver);
853 # For each driver, multiple CONFIG_ options may be reported.
995 "black-list-driver" => \$black_list_driver,
997 "white-list-driver" => \$white_list_driver,
1028 print "These compatibles are hard coded to have no driver.\n";
1036 print "The driver for these compatibles is hard coded (white list).\n";
1045 if (($driver ne "hardcoded_no_driver") && ($driver ne "no_driver")) {
1047 for my $driver (@{ $driver_hard_code_list{$compat} }) {
1055 print " $driver\n";
1065 for my $driver (sort keys %driver_config_hard_code_list) {
1066 if (length $driver > $max_driver_len) {
1067 $max_driver_len = length $driver;
1070 for my $driver (sort keys %driver_config_hard_code_list) {
1071 if (($driver ne "hardcoded_no_driver") && ($driver ne "no_driver")) {
1073 for my $config (@{ $driver_config_hard_code_list{$driver} }) {
1075 print " $driver";
1076 print " " x ($max_driver_len - length $driver);
1090 for my $driver (@black_list_driver) {
1091 print " $driver\n";
1174 $driver = "hardcoded_no_driver";
1175 for $config ( @{ $driver_config_hard_code_list{$driver} } ) {
1176 push @{ $driver_config{$driver} }, $config;
1181 for my $driver (@{ $driver_hard_code_list{$compat} }) {
1182 push @{ $compat_driver{$compat} }, $driver;
1183 if ($driver ne "hardcoded_no_driver") {
1191 for my $driver (keys %driver_config_hard_code_list) {
1192 if ($driver ne "hardcoded_no_driver") {
1193 for $config ( @{ $driver_config_hard_code_list{$driver} } ) {
1194 push @{ $driver_config{$driver} }, $config;