Lines Matching refs:config

328 	const struct sabi_config *config;
388 const struct sabi_config *config = samsung->config;
390 u16 port = readw(samsung->sabi + config->header_offsets.port);
405 outb(readb(samsung->sabi + config->header_offsets.en_mem), port);
408 writew(config->main_function, samsung->sabi_iface + SABI_IFACE_MAIN);
417 outb(readb(samsung->sabi + config->header_offsets.iface_func), port);
420 outb(readb(samsung->sabi + config->header_offsets.re_mem), port);
469 const struct sabi_config *config = samsung->config;
470 const struct sabi_commands *commands = &samsung->config->commands;
481 if (user_brightness > config->min_brightness)
482 user_brightness -= config->min_brightness;
491 const struct sabi_config *config = samsung->config;
492 const struct sabi_commands *commands = &samsung->config->commands;
493 u8 user_level = user_brightness + config->min_brightness;
553 const struct sabi_commands *commands = &samsung->config->commands;
574 const struct sabi_commands *commands = &samsung->config->commands;
587 const struct sabi_commands *commands = &samsung->config->commands;
597 const struct sabi_commands *commands = &samsung->config->commands;
649 const struct sabi_config *config = samsung->config;
650 const struct sabi_commands *commands = &config->commands;
662 for (i = 0; config->performance_levels[i].name; ++i) {
663 if (sretval.data[0] == config->performance_levels[i].value)
664 return sysfs_emit(buf, "%s\n", config->performance_levels[i].name);
674 const struct sabi_config *config = samsung->config;
675 const struct sabi_commands *commands = &config->commands;
681 for (i = 0; config->performance_levels[i].name; ++i) {
683 &config->performance_levels[i];
692 if (!config->performance_levels[i].name)
703 const struct sabi_commands *commands = &samsung->config->commands;
727 const struct sabi_commands *commands = &samsung->config->commands;
772 const struct sabi_commands *commands = &samsung->config->commands;
796 const struct sabi_commands *commands = &samsung->config->commands;
841 const struct sabi_commands *commands = &samsung->config->commands;
861 const struct sabi_commands *commands = &samsung->config->commands;
1024 if (samsung->config->sabi_version == 2)
1026 if (samsung->config->sabi_version == 3)
1049 const struct sabi_commands *commands = &samsung->config->commands;
1071 const struct sabi_commands *commands = &samsung->config->commands;
1088 const struct sabi_commands *commands = &samsung->config->commands;
1180 props.max_brightness = samsung->config->max_brightness -
1181 samsung->config->min_brightness;
1206 ok = !!samsung->config->performance_levels[0].name;
1297 const struct sabi_config *config = samsung->config;
1300 if (config && config->commands.set_linux != 0xff)
1301 sabi_set_commandb(samsung, config->commands.set_linux, 0x80);
1312 samsung->config = NULL;
1318 const struct sabi_config *config = samsung->config;
1325 readw(samsung->sabi + config->header_offsets.port));
1327 readb(samsung->sabi + config->header_offsets.iface_func));
1329 readb(samsung->sabi + config->header_offsets.en_mem));
1331 readb(samsung->sabi + config->header_offsets.re_mem));
1333 readw(samsung->sabi + config->header_offsets.data_offset));
1335 readw(samsung->sabi + config->header_offsets.data_segment));
1370 const struct sabi_config *config = NULL;
1389 samsung->config = &sabi_configs[i];
1391 samsung->config->test_string);
1403 config = samsung->config;
1404 commands = &config->commands;
1411 ifaceP = (readw(samsung->sabi + config->header_offsets.data_segment) & 0x0ffff) << 4;
1412 ifaceP += readw(samsung->sabi + config->header_offsets.data_offset) & 0x0ffff;
1440 samsung->config->test_string);