Searched refs:config (Results 1 - 200 of 3539) sorted by relevance

1234567891011>>

/linux-4.4.14/drivers/block/rsxx/
H A DMakefile2 rsxx-objs := config.o core.o cregs.o dev.o dma.o
H A Dconfig.c2 * Filename: config.c
103 memcpy(&cfg, &card->config, sizeof(cfg)); rsxx_save_config()
107 "Cannot save config with invalid version %d\n", rsxx_save_config()
136 st = rsxx_creg_read(card, CREG_ADD_CONFIG, sizeof(card->config), rsxx_load_config()
137 &card->config, 1); rsxx_load_config()
140 "Failed reading card config.\n"); rsxx_load_config()
144 config_hdr_be_to_cpu(&card->config.hdr); rsxx_load_config()
146 if (card->config.hdr.version == RSXX_CFG_VERSION) { rsxx_load_config()
154 config_data_swab(&card->config); rsxx_load_config()
157 crc = config_data_crc32(&card->config); rsxx_load_config()
158 if (crc != card->config.hdr.crc) { rsxx_load_config()
163 card->config.hdr.crc, crc); rsxx_load_config()
168 config_data_le_to_cpu(&card->config); rsxx_load_config()
170 } else if (card->config.hdr.version != 0) { rsxx_load_config()
172 "Invalid config version %d.\n", rsxx_load_config()
173 card->config.hdr.version); rsxx_load_config()
182 initialize_config(&card->config); rsxx_load_config()
191 card->config.hdr.version); rsxx_load_config()
193 card->config.hdr.crc); rsxx_load_config()
195 card->config.data.block_size); rsxx_load_config()
197 card->config.data.stripe_size); rsxx_load_config()
199 card->config.data.vendor_id); rsxx_load_config()
201 card->config.data.cache_order); rsxx_load_config()
203 card->config.data.intr_coal.mode); rsxx_load_config()
205 card->config.data.intr_coal.count); rsxx_load_config()
207 card->config.data.intr_coal.latency); rsxx_load_config()
/linux-4.4.14/arch/m68k/mvme147/
H A DMakefile5 obj-y := config.o
/linux-4.4.14/scripts/
H A Ddiffconfig3 # diffconfig - a tool to compare .config files.
15 Diffconfig is a simple utility for comparing two .config files.
16 Using standard diff to compare .config files often includes extraneous and
24 changed and new values in kernel config option format.
26 If no config files are specified, .config and .config.old are used.
29 $ diffconfig .config config-with-some-changes
38 # returns a dictionary of name/value pairs for config items in the file
50 def print_config(op, config, value, new_value):
56 print("# CONFIG_%s is not set" % config)
58 print("CONFIG_%s=%s" % (config, new_value))
61 print("-%s %s" % (config, value))
63 print("+%s %s" % (config, new_value))
65 print(" %s %s -> %s" % (config, value, new_value))
85 # if no filenames given, assume .config and .config.old
89 configa_filename = build_dir + ".config.old"
90 configb_filename = build_dir + ".config"
105 for config in a:
106 if config not in b:
107 old.append(config)
109 for config in old:
110 print_config("-", config, a[config], None)
111 del a[config]
115 for config in a:
116 if a[config] != b[config]:
117 changed.append(config)
119 del b[config]
121 for config in changed:
122 print_config("->", config, a[config], b[config])
123 del b[config]
128 for config in new:
129 print_config("+", config, None, b[config])
/linux-4.4.14/arch/avr32/mach-at32ap/
H A Dhsmc.c32 void smc_set_timing(struct smc_config *config, smc_set_timing() argument
41 config->ncs_read_setup = 0; smc_set_timing()
42 config->nrd_setup = 0; smc_set_timing()
43 config->ncs_write_setup = 0; smc_set_timing()
44 config->nwe_setup = 0; smc_set_timing()
45 config->ncs_read_pulse = 0; smc_set_timing()
46 config->nrd_pulse = 0; smc_set_timing()
47 config->ncs_write_pulse = 0; smc_set_timing()
48 config->nwe_pulse = 0; smc_set_timing()
49 config->read_cycle = 0; smc_set_timing()
50 config->write_cycle = 0; smc_set_timing()
63 config->ncs_read_setup = ns2cyc(timing->ncs_read_setup); smc_set_timing()
66 config->nrd_setup = ns2cyc(timing->nrd_setup); smc_set_timing()
69 config->ncs_write_setup = ns2cyc(timing->ncs_write_setup); smc_set_timing()
72 config->nwe_setup = ns2cyc(timing->nwe_setup); smc_set_timing()
75 config->ncs_read_pulse = ns2cyc(timing->ncs_read_pulse); smc_set_timing()
78 config->nrd_pulse = ns2cyc(timing->nrd_pulse); smc_set_timing()
81 config->ncs_write_pulse = ns2cyc(timing->ncs_write_pulse); smc_set_timing()
84 config->nwe_pulse = ns2cyc(timing->nwe_pulse); smc_set_timing()
87 config->read_cycle = ns2cyc(timing->read_cycle); smc_set_timing()
90 config->write_cycle = ns2cyc(timing->write_cycle); smc_set_timing()
98 cycle = config->ncs_read_setup + config->ncs_read_pulse + recover; smc_set_timing()
100 if (config->read_cycle < cycle) smc_set_timing()
101 config->read_cycle = cycle; smc_set_timing()
109 cycle = config->nrd_setup + config->nrd_pulse + recover; smc_set_timing()
111 if (config->read_cycle < cycle) smc_set_timing()
112 config->read_cycle = cycle; smc_set_timing()
120 cycle = config->ncs_write_setup + config->ncs_write_pulse + recover; smc_set_timing()
122 if (config->write_cycle < cycle) smc_set_timing()
123 config->write_cycle = cycle; smc_set_timing()
131 cycle = config->nwe_setup + config->nwe_pulse + recover; smc_set_timing()
133 if (config->write_cycle < cycle) smc_set_timing()
134 config->write_cycle = cycle; smc_set_timing()
138 int smc_set_configuration(int cs, const struct smc_config *config) smc_set_configuration() argument
148 setup = (HSMC_BF(NWE_SETUP, config->nwe_setup) smc_set_configuration()
149 | HSMC_BF(NCS_WR_SETUP, config->ncs_write_setup) smc_set_configuration()
150 | HSMC_BF(NRD_SETUP, config->nrd_setup) smc_set_configuration()
151 | HSMC_BF(NCS_RD_SETUP, config->ncs_read_setup)); smc_set_configuration()
152 pulse = (HSMC_BF(NWE_PULSE, config->nwe_pulse) smc_set_configuration()
153 | HSMC_BF(NCS_WR_PULSE, config->ncs_write_pulse) smc_set_configuration()
154 | HSMC_BF(NRD_PULSE, config->nrd_pulse) smc_set_configuration()
155 | HSMC_BF(NCS_RD_PULSE, config->ncs_read_pulse)); smc_set_configuration()
156 cycle = (HSMC_BF(NWE_CYCLE, config->write_cycle) smc_set_configuration()
157 | HSMC_BF(NRD_CYCLE, config->read_cycle)); smc_set_configuration()
159 switch (config->bus_width) { smc_set_configuration()
173 switch (config->nwait_mode) { smc_set_configuration()
190 if (config->tdf_cycles) { smc_set_configuration()
191 mode |= HSMC_BF(TDF_CYCLES, config->tdf_cycles); smc_set_configuration()
194 if (config->nrd_controlled) smc_set_configuration()
196 if (config->nwe_controlled) smc_set_configuration()
198 if (config->byte_write) smc_set_configuration()
200 if (config->tdf_mode) smc_set_configuration()
/linux-4.4.14/tools/power/cpupower/bench/
H A Dmain.c27 #include "config.h"
80 struct config *config = NULL; main() local
82 config = prepare_default_config(); main()
84 if (config == NULL) main()
95 if (config->output != NULL) main()
96 fclose(config->output); main()
98 config->output = prepare_output(optarg); main()
100 if (config->output == NULL) main()
106 sscanf(optarg, "%li", &config->sleep); main()
110 sscanf(optarg, "%li", &config->load); main()
114 sscanf(optarg, "%u", &config->cpu); main()
118 strncpy(config->governor, optarg, 14); main()
123 config->prio = string_to_prio(optarg); main()
126 if (config != NULL) { main()
127 if (config->output != NULL) main()
128 fclose(config->output); main()
129 free(config); main()
135 sscanf(optarg, "%u", &config->cycles); main()
139 sscanf(optarg, "%u", &config->rounds); main()
143 sscanf(optarg, "%li", &config->load_step); main()
147 sscanf(optarg, "%li", &config->sleep_step); main()
151 if (prepare_config(optarg, config)) main()
155 config->verbose = 1; main()
161 if (config != NULL) { main()
162 if (config->output != NULL) main()
163 fclose(config->output); main()
164 free(config); main()
170 if (config->verbose) { main()
172 printf("config:\n\t" main()
181 config->sleep, main()
182 config->load, main()
183 config->sleep_step, main()
184 config->load_step, main()
185 config->cpu, main()
186 config->cycles, main()
187 config->rounds, main()
188 config->governor); main()
191 prepare_user(config); main()
192 prepare_system(config); main()
193 start_benchmark(config); main()
195 if (config->output != stdout) main()
196 fclose(config->output); main()
198 free(config); main()
H A Dparse.c32 #include "config.h"
117 * returns the default config
119 * @retval default config on success
123 struct config *prepare_default_config() prepare_default_config()
125 struct config *config = malloc(sizeof(struct config)); prepare_default_config() local
129 config->sleep = 500000; prepare_default_config()
130 config->load = 500000; prepare_default_config()
131 config->sleep_step = 500000; prepare_default_config()
132 config->load_step = 500000; prepare_default_config()
133 config->cycles = 5; prepare_default_config()
134 config->rounds = 50; prepare_default_config()
135 config->cpu = 0; prepare_default_config()
136 config->prio = SCHED_HIGH; prepare_default_config()
137 config->verbose = 0; prepare_default_config()
138 strncpy(config->governor, "ondemand", 8); prepare_default_config()
140 config->output = stdout; prepare_default_config()
143 if (prepare_config(DEFAULT_CONFIG_FILE, config)) prepare_default_config()
146 return config; prepare_default_config()
150 * parses config file and returns the config to the caller
152 * @param path config file name
158 int prepare_config(const char *path, struct config *config) prepare_config() argument
164 if (config == NULL) { prepare_config()
165 fprintf(stderr, "error: config is NULL\n"); prepare_config()
173 free(config); prepare_config()
187 sscanf(val, "%li", &config->sleep); prepare_config()
190 sscanf(val, "%li", &config->load); prepare_config()
193 sscanf(val, "%li", &config->load_step); prepare_config()
196 sscanf(val, "%li", &config->sleep_step); prepare_config()
199 sscanf(val, "%u", &config->cycles); prepare_config()
202 sscanf(val, "%u", &config->rounds); prepare_config()
205 sscanf(val, "%u", &config->verbose); prepare_config()
208 config->output = prepare_output(val); prepare_config()
211 sscanf(val, "%u", &config->cpu); prepare_config()
214 strncpy(config->governor, val, prepare_config()
215 sizeof(config->governor)); prepare_config()
216 config->governor[sizeof(config->governor) - 1] = '\0'; prepare_config()
221 config->prio = string_to_prio(val); prepare_config()
H A Dbenchmark.c24 #include "config.h"
30 if (config->output != stdout) { \
45 unsigned int calculate_timespace(long load, struct config *config) calculate_timespace() argument
53 if (config->verbose) calculate_timespace()
75 if (config->verbose) calculate_timespace()
87 * @param config config values for the benchmark
91 void start_benchmark(struct config *config) start_benchmark() argument
100 sleep_time = config->sleep; start_benchmark()
101 load_time = config->load; start_benchmark()
104 for (_round = 1; _round <= config->rounds; _round++) start_benchmark()
105 total_time += _round * (config->sleep + config->load); start_benchmark()
108 for (_round = 0; _round < config->rounds; _round++) { start_benchmark()
116 if (set_cpufreq_governor("performance", config->cpu) != 0) start_benchmark()
122 calculations = calculate_timespace(load_time, config); start_benchmark()
124 if (config->verbose) start_benchmark()
126 " for %lius\n", _round + 1, config->cycles, start_benchmark()
129 fprintf(config->output, "%u %li %li ", start_benchmark()
132 if (config->verbose) start_benchmark()
138 for (cycle = 0; cycle < config->cycles; cycle++) { start_benchmark()
144 if (config->verbose) start_benchmark()
151 fprintf(config->output, "%li ", start_benchmark()
152 performance_time / config->cycles); start_benchmark()
159 if (set_cpufreq_governor(config->governor, config->cpu) != 0) start_benchmark()
164 for (cycle = 0; cycle < config->cycles; cycle++) { start_benchmark()
170 if (config->verbose) start_benchmark()
181 fprintf(config->output, "%li ", start_benchmark()
182 powersave_time / config->cycles); start_benchmark()
183 fprintf(config->output, "%.3f\n", start_benchmark()
185 fflush(config->output); start_benchmark()
187 if (config->verbose) start_benchmark()
191 sleep_time += config->sleep_step; start_benchmark()
192 load_time += config->load_step; start_benchmark()
H A Dsystem.c30 #include "config.h"
134 * @param config benchmark config values
138 void prepare_user(const struct config *config) prepare_user() argument
144 for (round = 0; round < config->rounds; round++) { prepare_user()
145 sleep_time += 2 * config->cycles * prepare_user()
146 (config->sleep + config->sleep_step * round); prepare_user()
147 load_time += 2 * config->cycles * prepare_user()
148 (config->load + config->load_step * round) + prepare_user()
149 (config->load + config->load_step * round * 4); prepare_user()
152 if (config->verbose || config->output != stdout) prepare_user()
160 * @param config benchmark config values
164 void prepare_system(const struct config *config) prepare_system() argument
166 if (config->verbose) prepare_system()
167 printf("set cpu affinity to cpu #%u\n", config->cpu); prepare_system()
169 set_cpu_affinity(config->cpu); prepare_system()
171 switch (config->prio) { prepare_system()
173 if (config->verbose) prepare_system()
179 if (config->verbose) prepare_system()
185 if (config->verbose) prepare_system()
H A Dparse.h20 /* struct that holds the required config parameters */
21 struct config struct
51 int prepare_config(const char *path, struct config *config);
52 struct config *prepare_default_config();
/linux-4.4.14/arch/m68k/mvme16x/
H A DMakefile5 obj-y := config.o rtc.o
/linux-4.4.14/arch/m68k/q40/
H A DMakefile5 obj-y := config.o q40ints.o
/linux-4.4.14/arch/m68k/sun3x/
H A DMakefile5 obj-y := config.o time.o dvma.o prom.o
/linux-4.4.14/arch/m68k/apollo/
H A DMakefile5 obj-y := config.o dn_ints.o
/linux-4.4.14/arch/m68k/bvme6000/
H A DMakefile5 obj-y := config.o rtc.o
/linux-4.4.14/arch/m68k/hp300/
H A DMakefile5 obj-y := config.o time.o reboot.o
/linux-4.4.14/arch/um/kernel/
H A DMakefile13 obj-y = config.o exec.o exitcode.o irq.o ksyms.o mem.o \
24 USER_OBJS := config.o
28 targets := config.c config.tmp
33 $(obj)/config.tmp: $(objtree)/.config FORCE
40 $(obj)/config.c: $(src)/config.c.in $(obj)/config.tmp FORCE
46 -e 'r $(obj)/config.tmp' \
/linux-4.4.14/drivers/rtc/
H A Drtc-da9063.c77 const struct da9063_compatible_rtc_regmap *config; member in struct:da9063_compatible_rtc
177 const struct da9063_compatible_rtc_regmap *config = rtc->config; da9063_data_to_tm() local
179 tm->tm_sec = data[RTC_SEC] & config->rtc_count_sec_mask; da9063_data_to_tm()
180 tm->tm_min = data[RTC_MIN] & config->rtc_count_min_mask; da9063_data_to_tm()
181 tm->tm_hour = data[RTC_HOUR] & config->rtc_count_hour_mask; da9063_data_to_tm()
182 tm->tm_mday = data[RTC_DAY] & config->rtc_count_day_mask; da9063_data_to_tm()
184 config->rtc_count_month_mask); da9063_data_to_tm()
186 config->rtc_count_year_mask); da9063_data_to_tm()
192 const struct da9063_compatible_rtc_regmap *config = rtc->config; da9063_tm_to_data() local
194 data[RTC_SEC] &= ~config->rtc_count_sec_mask; da9063_tm_to_data()
195 data[RTC_SEC] |= tm->tm_sec & config->rtc_count_sec_mask; da9063_tm_to_data()
197 data[RTC_MIN] &= ~config->rtc_count_min_mask; da9063_tm_to_data()
198 data[RTC_MIN] |= tm->tm_min & config->rtc_count_min_mask; da9063_tm_to_data()
200 data[RTC_HOUR] &= ~config->rtc_count_hour_mask; da9063_tm_to_data()
201 data[RTC_HOUR] |= tm->tm_hour & config->rtc_count_hour_mask; da9063_tm_to_data()
203 data[RTC_DAY] &= ~config->rtc_count_day_mask; da9063_tm_to_data()
204 data[RTC_DAY] |= tm->tm_mday & config->rtc_count_day_mask; da9063_tm_to_data()
206 data[RTC_MONTH] &= ~config->rtc_count_month_mask; da9063_tm_to_data()
208 config->rtc_count_month_mask; da9063_tm_to_data()
210 data[RTC_YEAR] &= ~config->rtc_count_year_mask; da9063_tm_to_data()
212 config->rtc_count_year_mask; da9063_tm_to_data()
218 const struct da9063_compatible_rtc_regmap *config = rtc->config; da9063_rtc_stop_alarm() local
221 config->rtc_alarm_year_reg, da9063_rtc_stop_alarm()
222 config->rtc_alarm_on_mask, da9063_rtc_stop_alarm()
229 const struct da9063_compatible_rtc_regmap *config = rtc->config; da9063_rtc_start_alarm() local
232 config->rtc_alarm_year_reg, da9063_rtc_start_alarm()
233 config->rtc_alarm_on_mask, da9063_rtc_start_alarm()
234 config->rtc_alarm_on_mask); da9063_rtc_start_alarm()
240 const struct da9063_compatible_rtc_regmap *config = rtc->config; da9063_rtc_read_time() local
247 config->rtc_count_secs_reg, da9063_rtc_read_time()
254 if (!(data[RTC_SEC] & config->rtc_ready_to_read_mask)) { da9063_rtc_read_time()
276 const struct da9063_compatible_rtc_regmap *config = rtc->config; da9063_rtc_set_time() local
282 config->rtc_count_secs_reg, da9063_rtc_set_time()
293 const struct da9063_compatible_rtc_regmap *config = rtc->config; da9063_rtc_read_alarm() local
300 config->rtc_alarm_secs_reg, da9063_rtc_read_alarm()
301 &data[config->rtc_data_start], da9063_rtc_read_alarm()
302 config->rtc_alarm_len); da9063_rtc_read_alarm()
308 alrm->enabled = !!(data[RTC_YEAR] & config->rtc_alarm_on_mask); da9063_rtc_read_alarm()
311 config->rtc_event_reg, da9063_rtc_read_alarm()
316 if (val & config->rtc_event_alarm_mask) da9063_rtc_read_alarm()
327 const struct da9063_compatible_rtc_regmap *config = rtc->config; da9063_rtc_set_alarm() local
340 config->rtc_alarm_secs_reg, da9063_rtc_set_alarm()
341 &data[config->rtc_data_start], da9063_rtc_set_alarm()
342 config->rtc_alarm_len); da9063_rtc_set_alarm()
373 const struct da9063_compatible_rtc_regmap *config = rtc->config; da9063_alarm_event() local
376 config->rtc_alarm_year_reg, da9063_alarm_event()
377 config->rtc_alarm_on_mask, da9063_alarm_event()
397 const struct da9063_compatible_rtc_regmap *config; da9063_rtc_probe() local
413 rtc->config = match->data; da9063_rtc_probe()
418 rtc->config = &da9063_ad_regs; da9063_rtc_probe()
427 config = rtc->config; da9063_rtc_probe()
429 config->rtc_enable_reg, da9063_rtc_probe()
430 config->rtc_enable_mask, da9063_rtc_probe()
431 config->rtc_enable_mask); da9063_rtc_probe()
438 config->rtc_enable_32k_crystal_reg, da9063_rtc_probe()
439 config->rtc_crystal_mask, da9063_rtc_probe()
440 config->rtc_crystal_mask); da9063_rtc_probe()
447 config->rtc_alarm_secs_reg, da9063_rtc_probe()
448 config->rtc_alarm_status_mask, da9063_rtc_probe()
456 config->rtc_alarm_secs_reg, da9063_rtc_probe()
465 config->rtc_alarm_year_reg, da9063_rtc_probe()
466 config->rtc_tick_on_mask, da9063_rtc_probe()
475 config->rtc_alarm_secs_reg, da9063_rtc_probe()
476 &data[config->rtc_data_start], da9063_rtc_probe()
477 config->rtc_alarm_len); da9063_rtc_probe()
H A Drtc-spear.c88 static inline void spear_rtc_clear_interrupt(struct spear_rtc_config *config) spear_rtc_clear_interrupt() argument
93 spin_lock_irqsave(&config->lock, flags); spear_rtc_clear_interrupt()
94 val = readl(config->ioaddr + STATUS_REG); spear_rtc_clear_interrupt()
96 writel(val, config->ioaddr + STATUS_REG); spear_rtc_clear_interrupt()
97 spin_unlock_irqrestore(&config->lock, flags); spear_rtc_clear_interrupt()
100 static inline void spear_rtc_enable_interrupt(struct spear_rtc_config *config) spear_rtc_enable_interrupt() argument
104 val = readl(config->ioaddr + CTRL_REG); spear_rtc_enable_interrupt()
106 spear_rtc_clear_interrupt(config); spear_rtc_enable_interrupt()
108 writel(val, config->ioaddr + CTRL_REG); spear_rtc_enable_interrupt()
112 static inline void spear_rtc_disable_interrupt(struct spear_rtc_config *config) spear_rtc_disable_interrupt() argument
116 val = readl(config->ioaddr + CTRL_REG); spear_rtc_disable_interrupt()
119 writel(val, config->ioaddr + CTRL_REG); spear_rtc_disable_interrupt()
123 static inline int is_write_complete(struct spear_rtc_config *config) is_write_complete() argument
128 spin_lock_irqsave(&config->lock, flags); is_write_complete()
129 if ((readl(config->ioaddr + STATUS_REG)) & STATUS_FAIL) is_write_complete()
131 spin_unlock_irqrestore(&config->lock, flags); is_write_complete()
136 static void rtc_wait_not_busy(struct spear_rtc_config *config) rtc_wait_not_busy() argument
143 spin_lock_irqsave(&config->lock, flags); rtc_wait_not_busy()
144 status = readl(config->ioaddr + STATUS_REG); rtc_wait_not_busy()
145 spin_unlock_irqrestore(&config->lock, flags); rtc_wait_not_busy()
155 struct spear_rtc_config *config = dev_id; spear_rtc_irq() local
159 spin_lock_irqsave(&config->lock, flags); spear_rtc_irq()
160 irq_data = readl(config->ioaddr + STATUS_REG); spear_rtc_irq()
161 spin_unlock_irqrestore(&config->lock, flags); spear_rtc_irq()
164 spear_rtc_clear_interrupt(config); spear_rtc_irq()
166 rtc_update_irq(config->rtc, 1, events); spear_rtc_irq()
208 struct spear_rtc_config *config = dev_get_drvdata(dev); spear_rtc_read_time() local
212 rtc_wait_not_busy(config); spear_rtc_read_time()
214 time = readl(config->ioaddr + TIME_REG); spear_rtc_read_time()
215 date = readl(config->ioaddr + DATE_REG); spear_rtc_read_time()
237 struct spear_rtc_config *config = dev_get_drvdata(dev); spear_rtc_set_time() local
243 rtc_wait_not_busy(config); spear_rtc_set_time()
248 writel(time, config->ioaddr + TIME_REG); spear_rtc_set_time()
249 writel(date, config->ioaddr + DATE_REG); spear_rtc_set_time()
251 return is_write_complete(config); spear_rtc_set_time()
264 struct spear_rtc_config *config = dev_get_drvdata(dev); spear_rtc_read_alarm() local
267 rtc_wait_not_busy(config); spear_rtc_read_alarm()
269 time = readl(config->ioaddr + ALARM_TIME_REG); spear_rtc_read_alarm()
270 date = readl(config->ioaddr + ALARM_DATE_REG); spear_rtc_read_alarm()
279 alm->enabled = readl(config->ioaddr + CTRL_REG) & INT_ENABLE; spear_rtc_read_alarm()
294 struct spear_rtc_config *config = dev_get_drvdata(dev); spear_rtc_set_alarm() local
301 rtc_wait_not_busy(config); spear_rtc_set_alarm()
308 writel(time, config->ioaddr + ALARM_TIME_REG); spear_rtc_set_alarm()
309 writel(date, config->ioaddr + ALARM_DATE_REG); spear_rtc_set_alarm()
310 err = is_write_complete(config); spear_rtc_set_alarm()
315 spear_rtc_enable_interrupt(config); spear_rtc_set_alarm()
317 spear_rtc_disable_interrupt(config); spear_rtc_set_alarm()
324 struct spear_rtc_config *config = dev_get_drvdata(dev); spear_alarm_irq_enable() local
327 spear_rtc_clear_interrupt(config); spear_alarm_irq_enable()
332 spear_rtc_disable_interrupt(config); spear_alarm_irq_enable()
336 spear_rtc_enable_interrupt(config); spear_alarm_irq_enable()
357 struct spear_rtc_config *config; spear_rtc_probe() local
361 config = devm_kzalloc(&pdev->dev, sizeof(*config), GFP_KERNEL); spear_rtc_probe()
362 if (!config) spear_rtc_probe()
373 config); spear_rtc_probe()
381 config->ioaddr = devm_ioremap_resource(&pdev->dev, res); spear_rtc_probe()
382 if (IS_ERR(config->ioaddr)) spear_rtc_probe()
383 return PTR_ERR(config->ioaddr); spear_rtc_probe()
385 config->clk = devm_clk_get(&pdev->dev, NULL); spear_rtc_probe()
386 if (IS_ERR(config->clk)) spear_rtc_probe()
387 return PTR_ERR(config->clk); spear_rtc_probe()
389 status = clk_prepare_enable(config->clk); spear_rtc_probe()
393 spin_lock_init(&config->lock); spear_rtc_probe()
394 platform_set_drvdata(pdev, config); spear_rtc_probe()
396 config->rtc = devm_rtc_device_register(&pdev->dev, pdev->name, spear_rtc_probe()
398 if (IS_ERR(config->rtc)) { spear_rtc_probe()
400 PTR_ERR(config->rtc)); spear_rtc_probe()
401 status = PTR_ERR(config->rtc); spear_rtc_probe()
405 config->rtc->uie_unsupported = 1; spear_rtc_probe()
413 clk_disable_unprepare(config->clk); spear_rtc_probe()
420 struct spear_rtc_config *config = platform_get_drvdata(pdev); spear_rtc_remove() local
422 spear_rtc_disable_interrupt(config); spear_rtc_remove()
423 clk_disable_unprepare(config->clk); spear_rtc_remove()
433 struct spear_rtc_config *config = platform_get_drvdata(pdev); spear_rtc_suspend() local
439 config->irq_wake = 1; spear_rtc_suspend()
441 spear_rtc_disable_interrupt(config); spear_rtc_suspend()
442 clk_disable(config->clk); spear_rtc_suspend()
451 struct spear_rtc_config *config = platform_get_drvdata(pdev); spear_rtc_resume() local
457 if (config->irq_wake) { spear_rtc_resume()
459 config->irq_wake = 0; spear_rtc_resume()
462 clk_enable(config->clk); spear_rtc_resume()
463 spear_rtc_enable_interrupt(config); spear_rtc_resume()
474 struct spear_rtc_config *config = platform_get_drvdata(pdev); spear_rtc_shutdown() local
476 spear_rtc_disable_interrupt(config); spear_rtc_shutdown()
477 clk_disable(config->clk); spear_rtc_shutdown()
/linux-4.4.14/drivers/gpu/drm/msm/hdmi/
H A Dhdmi_connector.c83 const struct hdmi_platform_config *config = hdmi->config; gpio_config() local
87 if (config->ddc_clk_gpio != -1) { gpio_config()
88 ret = gpio_request(config->ddc_clk_gpio, "HDMI_DDC_CLK"); gpio_config()
91 "HDMI_DDC_CLK", config->ddc_clk_gpio, ret); gpio_config()
94 gpio_set_value_cansleep(config->ddc_clk_gpio, 1); gpio_config()
97 if (config->ddc_data_gpio != -1) { gpio_config()
98 ret = gpio_request(config->ddc_data_gpio, "HDMI_DDC_DATA"); gpio_config()
101 "HDMI_DDC_DATA", config->ddc_data_gpio, ret); gpio_config()
104 gpio_set_value_cansleep(config->ddc_data_gpio, 1); gpio_config()
107 ret = gpio_request(config->hpd_gpio, "HDMI_HPD"); gpio_config()
110 "HDMI_HPD", config->hpd_gpio, ret); gpio_config()
113 gpio_direction_input(config->hpd_gpio); gpio_config()
114 gpio_set_value_cansleep(config->hpd_gpio, 1); gpio_config()
116 if (config->mux_en_gpio != -1) { gpio_config()
117 ret = gpio_request(config->mux_en_gpio, "HDMI_MUX_EN"); gpio_config()
120 "HDMI_MUX_EN", config->mux_en_gpio, ret); gpio_config()
123 gpio_set_value_cansleep(config->mux_en_gpio, 1); gpio_config()
126 if (config->mux_sel_gpio != -1) { gpio_config()
127 ret = gpio_request(config->mux_sel_gpio, "HDMI_MUX_SEL"); gpio_config()
130 "HDMI_MUX_SEL", config->mux_sel_gpio, ret); gpio_config()
133 gpio_set_value_cansleep(config->mux_sel_gpio, 0); gpio_config()
136 if (config->mux_lpm_gpio != -1) { gpio_config()
137 ret = gpio_request(config->mux_lpm_gpio, gpio_config()
143 config->mux_lpm_gpio, ret); gpio_config()
146 gpio_set_value_cansleep(config->mux_lpm_gpio, 1); gpio_config()
150 if (config->ddc_clk_gpio != -1) gpio_config()
151 gpio_free(config->ddc_clk_gpio); gpio_config()
153 if (config->ddc_data_gpio != -1) gpio_config()
154 gpio_free(config->ddc_data_gpio); gpio_config()
156 gpio_free(config->hpd_gpio); gpio_config()
158 if (config->mux_en_gpio != -1) { gpio_config()
159 gpio_set_value_cansleep(config->mux_en_gpio, 0); gpio_config()
160 gpio_free(config->mux_en_gpio); gpio_config()
163 if (config->mux_sel_gpio != -1) { gpio_config()
164 gpio_set_value_cansleep(config->mux_sel_gpio, 1); gpio_config()
165 gpio_free(config->mux_sel_gpio); gpio_config()
168 if (config->mux_lpm_gpio != -1) { gpio_config()
169 gpio_set_value_cansleep(config->mux_lpm_gpio, 0); gpio_config()
170 gpio_free(config->mux_lpm_gpio); gpio_config()
178 if (config->mux_sel_gpio != -1) gpio_config()
179 gpio_free(config->mux_sel_gpio); gpio_config()
181 if (config->mux_en_gpio != -1) gpio_config()
182 gpio_free(config->mux_en_gpio); gpio_config()
184 gpio_free(config->hpd_gpio); gpio_config()
186 if (config->ddc_data_gpio != -1) gpio_config()
187 gpio_free(config->ddc_data_gpio); gpio_config()
189 if (config->ddc_clk_gpio != -1) gpio_config()
190 gpio_free(config->ddc_clk_gpio); gpio_config()
198 const struct hdmi_platform_config *config = hdmi->config; hpd_enable() local
204 for (i = 0; i < config->hpd_reg_cnt; i++) { hpd_enable()
208 config->hpd_reg_names[i], ret); hpd_enable()
225 for (i = 0; i < config->hpd_clk_cnt; i++) { hpd_enable()
226 if (config->hpd_freq && config->hpd_freq[i]) { hpd_enable()
228 config->hpd_freq[i]); hpd_enable()
231 config->hpd_clk_names[i], ret); hpd_enable()
237 config->hpd_clk_names[i], ret); hpd_enable()
274 const struct hdmi_platform_config *config = hdmi->config; hdp_disable() local
283 for (i = 0; i < config->hpd_clk_cnt; i++) hdp_disable()
294 for (i = 0; i < config->hpd_reg_cnt; i++) { hdp_disable()
298 config->hpd_reg_names[i], ret); hdp_disable()
350 const struct hdmi_platform_config *config = hdmi->config; detect_gpio() local
351 return gpio_get_value(config->hpd_gpio) ? detect_gpio()
429 const struct hdmi_platform_config *config = hdmi->config; hdmi_connector_mode_valid() local
442 if (config->pwr_clk_cnt > 0) hdmi_connector_mode_valid()
H A Dhdmi.c94 struct hdmi_platform_config *config = pdev->dev.platform_data; hdmi_init() local
106 hdmi->config = config; hdmi_init()
110 if (config->phy_init) { hdmi_init()
111 hdmi->phy = config->phy_init(hdmi); hdmi_init()
121 hdmi->mmio = msm_ioremap(pdev, config->mmio_name, "HDMI"); hdmi_init()
129 config->mmio_name); hdmi_init()
133 config->qfprom_mmio_name, "HDMI_QFPROM"); hdmi_init()
140 config->hpd_reg_cnt, GFP_KERNEL); hdmi_init()
145 for (i = 0; i < config->hpd_reg_cnt; i++) { hdmi_init()
149 config->hpd_reg_names[i]); hdmi_init()
153 config->hpd_reg_names[i], ret); hdmi_init()
161 config->pwr_reg_cnt, GFP_KERNEL); hdmi_init()
166 for (i = 0; i < config->pwr_reg_cnt; i++) { hdmi_init()
170 config->pwr_reg_names[i]); hdmi_init()
174 config->pwr_reg_names[i], ret); hdmi_init()
182 config->hpd_clk_cnt, GFP_KERNEL); hdmi_init()
187 for (i = 0; i < config->hpd_clk_cnt; i++) { hdmi_init()
190 clk = devm_clk_get(&pdev->dev, config->hpd_clk_names[i]); hdmi_init()
194 config->hpd_clk_names[i], ret); hdmi_init()
202 config->pwr_clk_cnt, GFP_KERNEL); hdmi_init()
207 for (i = 0; i < config->pwr_clk_cnt; i++) { hdmi_init()
210 clk = devm_clk_get(&pdev->dev, config->pwr_clk_names[i]); hdmi_init()
214 config->pwr_clk_names[i], ret); hdmi_init()
447 static struct hdmi_platform_config config = {}; hdmi_bind() local
453 config.phy_init = hdmi_phy_8960_init; hdmi_bind()
454 config.hpd_reg_names = hpd_reg_names; hdmi_bind()
455 config.hpd_reg_cnt = ARRAY_SIZE(hpd_reg_names); hdmi_bind()
456 config.hpd_clk_names = hpd_clk_names; hdmi_bind()
457 config.hpd_clk_cnt = ARRAY_SIZE(hpd_clk_names); hdmi_bind()
458 config.ddc_clk_gpio = 70; hdmi_bind()
459 config.ddc_data_gpio = 71; hdmi_bind()
460 config.hpd_gpio = 72; hdmi_bind()
461 config.mux_en_gpio = -1; hdmi_bind()
462 config.mux_sel_gpio = -1; hdmi_bind()
465 config.phy_init = hdmi_phy_8960_init; hdmi_bind()
466 config.hpd_reg_names = hpd_reg_names; hdmi_bind()
467 config.hpd_reg_cnt = ARRAY_SIZE(hpd_reg_names); hdmi_bind()
468 config.hpd_clk_names = hpd_clk_names; hdmi_bind()
469 config.hpd_clk_cnt = ARRAY_SIZE(hpd_clk_names); hdmi_bind()
470 config.ddc_clk_gpio = 100; hdmi_bind()
471 config.ddc_data_gpio = 101; hdmi_bind()
472 config.hpd_gpio = 102; hdmi_bind()
473 config.mux_en_gpio = -1; hdmi_bind()
474 config.mux_sel_gpio = -1; hdmi_bind()
479 config.phy_init = hdmi_phy_8x60_init; hdmi_bind()
480 config.hpd_reg_names = hpd_reg_names; hdmi_bind()
481 config.hpd_reg_cnt = ARRAY_SIZE(hpd_reg_names); hdmi_bind()
482 config.hpd_clk_names = hpd_clk_names; hdmi_bind()
483 config.hpd_clk_cnt = ARRAY_SIZE(hpd_clk_names); hdmi_bind()
484 config.ddc_clk_gpio = 170; hdmi_bind()
485 config.ddc_data_gpio = 171; hdmi_bind()
486 config.hpd_gpio = 172; hdmi_bind()
487 config.mux_en_gpio = -1; hdmi_bind()
488 config.mux_sel_gpio = -1; hdmi_bind()
490 config.mmio_name = "hdmi_msm_hdmi_addr"; hdmi_bind()
491 config.qfprom_mmio_name = "hdmi_msm_qfprom_addr"; hdmi_bind()
493 hdmi_cfg = &config; hdmi_bind()
H A Dhdmi_bridge.c35 const struct hdmi_platform_config *config = hdmi->config; power_on() local
38 for (i = 0; i < config->pwr_reg_cnt; i++) { power_on()
42 config->pwr_reg_names[i], ret); power_on()
46 if (config->pwr_clk_cnt > 0) { power_on()
51 config->pwr_clk_names[0], ret); power_on()
55 for (i = 0; i < config->pwr_clk_cnt; i++) { power_on()
59 config->pwr_clk_names[i], ret); power_on()
69 const struct hdmi_platform_config *config = hdmi->config; power_off() local
77 for (i = 0; i < config->pwr_clk_cnt; i++) power_off()
80 for (i = 0; i < config->pwr_reg_cnt; i++) { power_off()
84 config->pwr_reg_names[i], ret); power_off()
/linux-4.4.14/tools/perf/util/
H A Denvironment.c2 * We put all the perf config variables in this same object
3 * file, so that programs can link against the config parser
/linux-4.4.14/tools/usb/ffs-aio-example/multibuff/host_app/
H A DMakefile2 LIBUSB_CFLAGS = $(shell pkg-config --cflags libusb-1.0)
3 LIBUSB_LIBS = $(shell pkg-config --libs libusb-1.0)
/linux-4.4.14/tools/usb/ffs-aio-example/simple/host_app/
H A DMakefile2 LIBUSB_CFLAGS = $(shell pkg-config --cflags libusb-1.0)
3 LIBUSB_LIBS = $(shell pkg-config --libs libusb-1.0)
/linux-4.4.14/scripts/kconfig/
H A DMakefile5 PHONY += xconfig gconfig menuconfig config silentoldconfig update-po-config \
30 config: $(obj)/conf
37 $(Q)mkdir -p include/config include/generated
41 $(Q)mkdir -p include/config include/generated
42 $(Q)perl $< --$@ $(srctree) $(Kconfig) > .tmp.config
43 $(Q)if [ -f .config ]; then \
44 cmp -s .tmp.config .config || \
45 (mv -f .config .config.old.1; \
46 mv -f .tmp.config .config; \
48 mv -f .config.old.1 .config.old) \
50 mv -f .tmp.config .config; \
53 $(Q)rm -f .tmp.config
57 update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h
58 $(Q)$(kecho) " GEN config.pot"
64 --output $(obj)/config.pot
65 $(Q)sed -i s/CHARSET/UTF-8/ $(obj)/config.pot
71 >> $(obj)/config.pot; \
74 $(Q)msguniq --sort-by-file --to-code=UTF-8 $(obj)/config.pot \
76 $(Q)rm -f $(obj)/config.pot
114 %.config: $(obj)/conf
116 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m .config $(configfiles)
120 kvmconfig: kvm_guest.config
124 xenconfig: xen.config
129 $(Q)$(MAKE) -f $(srctree)/Makefile allnoconfig tiny.config
133 @echo ' config - Update current config utilising a line-oriented program'
134 @echo ' nconfig - Update current config utilising a ncurses menu based'
136 @echo ' menuconfig - Update current config utilising a menu based program'
137 @echo ' xconfig - Update current config utilising a Qt based front-end'
138 @echo ' gconfig - Update current config utilising a GTK+ based front-end'
139 @echo ' oldconfig - Update current config utilising a provided .config as base'
140 @echo ' localmodconfig - Update current config disabling modules not loaded'
141 @echo ' localyesconfig - Update current config converting local mods to core'
143 @echo ' defconfig - New config with default from ARCH supplied defconfig'
144 @echo ' savedefconfig - Save current config as ./defconfig (minimal config)'
145 @echo ' allnoconfig - New config where all options are answered with no'
146 @echo ' allyesconfig - New config where all options are accepted with yes'
147 @echo ' allmodconfig - New config selecting modules when possible'
148 @echo ' alldefconfig - New config with all symbols set to default'
149 @echo ' randconfig - New config with random answer to all options'
193 clean-files += config.pot linux.pot
216 HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0`
217 HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \
223 pkg-config --libs menuw panelw ncursesw 2>/dev/null \
224 || pkg-config --libs menu panel ncurses 2>/dev/null \
235 if pkg-config --exists Qt5Core; then \
236 cflags="-std=c++11 -fPIC `pkg-config --cflags Qt5Core Qt5Gui Qt5Widgets`"; \
237 libs=`pkg-config --libs Qt5Core Qt5Gui Qt5Widgets`; \
238 moc=`pkg-config --variable=host_bins Qt5Core`/moc; \
239 elif pkg-config --exists QtCore; then \
240 cflags=`pkg-config --cflags QtCore QtGui`; \
241 libs=`pkg-config --libs QtCore QtGui`; \
242 moc=`pkg-config --variable=moc_location QtCore`; \
245 echo >&2 "* Could not find Qt via pkg-config."; \
262 @if `pkg-config --exists gtk+-2.0 gmodule-2.0 libglade-2.0`; then \
263 if `pkg-config --atleast-version=2.0.0 gtk+-2.0`; then \
H A Dstreamline_config.pl21 # 1. Boot up the kernel that you want to stream line the config on.
24 # 3. Copy the configuraton file to this directory as .config
29 # 6. Back up your old config (if you want too).
30 # 7. copy the config_strip file to .config
39 # cp /boot/config-2.6.10-1-686-smp .config
41 # mv .config config_sav
42 # mv config_strip .config
58 my $config = ".config";
65 "file" => ".config",
69 "file" => "/proc/config.gz",
73 "file" => "/boot/config-$uname",
116 print STDERR "using config: '$file'\n";
123 die "No config file found";
158 my $config;
202 if (/^\s*(menu)?config\s+(\S+)\s*$/) {
204 $config = $2;
209 $depends{$config} .= " " . $ifdeps[$i];
211 $depends{$config} = $ifdeps[$i];
216 # collect the depends for the config
219 $depends{$config} = $1;
221 $depends{$config} .= " " . $1;
226 $depends{$config} .= " " . $dep;
227 dprint "Added default depends $dep to $config\n";
230 # Get the configs that select this config
234 $selects{$conf} .= " " . $config;
236 $selects{$conf} = $config;
241 # note if the config has a prompt
242 $prompts{$config} = 1;
331 # Objects may be enabled by more than one config.
415 print STDERR "$module config not found!!\n";
419 # Read the current config, and see what is enabled. We want to
439 # config that is in the depend list of another config. This script does
441 # config A that depends on !B, we can still add B to the list of depends
442 # to keep on. If A was on in the original config, B would not have been
456 # We only need to process if the depend config is a module
462 # We must make sure that this config has its
475 # when a config has no prompt and requires another config to be
477 # config, but found that that can balloon into enabling hundreds
482 # else to do. If there isn't, we pick the first config that was
483 # enabled in the orignal config and use that.
486 my ($config, $p) = @_;
497 # Make sure that this config exists in the current .config file
499 dprint "$conf not set for $config select\n";
503 # Check if something other than a module selects this config
505 dprint "$conf (non module) selects config, we are good\n";
510 dprint "$conf selects $config so we are good\n";
511 # A set config selects this config, we are good
514 # Set this config to be selected
523 # If no possible config selected this, then something happened.
525 print STDERR "WARNING: $config is required, but nothing in the\n";
526 print STDERR " current config selects it.\n";
530 # If we are here, then we found no config that is set and
531 # selects this config. Repeat.
533 # Make this config need to be selected
535 dprint "$next_config selected by select $config\n";
548 foreach my $config (keys %configs) {
550 # If this config is not a module, we do not need to process it
551 if (defined($orig_configs{$config}) && $orig_configs{$config} ne "m") {
555 $config =~ s/^CONFIG_//;
556 $depconfig = $config;
558 if (defined($depends{$config})) {
559 # This config has dependencies. Make sure they are also included
560 parse_config_depends $depends{$config};
563 # If the config has no prompt, then we need to check if a config
565 if (!defined($prompts{$config}) && defined($selects{$config})) {
566 $process_selects{$config} = 1;
574 foreach my $config (keys %process_selects) {
575 $config =~ s/^CONFIG_//;
577 dprint "Process select $config\n";
579 # config has no prompt and must be selected.
580 parse_config_selects $config, $selects{$config};
596 # Finally, read the .config file and turn off any module enabled that
/linux-4.4.14/arch/m68k/mac/
H A DMakefile5 obj-y := config.o macints.o iop.o via.o oss.o psc.o \
/linux-4.4.14/arch/m68k/sun3/
H A DMakefile7 obj-$(CONFIG_SUN3) += config.o mmu_emu.o leds.o dvma.o intersil.o
/linux-4.4.14/arch/m68k/amiga/
H A DMakefile5 obj-y := config.o amiints.o cia.o chipram.o amisound.o platform.o
/linux-4.4.14/arch/m68k/atari/
H A DMakefile5 obj-y := config.o time.o debug.o ataints.o stdma.o \
/linux-4.4.14/drivers/scsi/
H A Dultrastor.c119 * Fix abort and reset to work properly (config.aborted wasn't cleared
216 /* Used to store configuration info read from config i/o registers. Most of
259 } config = {0}; variable in typeref:struct:ultrastor_config
332 static void log_ultrastor_abort(struct ultrastor_config *config, log_ultrastor_abort() argument
341 if (! (config->mscp_free & (1 << i))) log_ultrastor_abort()
342 fmt[21 + i*2] = '0' + config->mscp[i].target_id; log_ultrastor_abort()
348 printk(fmt, command, &config->mscp[command], config->mscp_free); log_ultrastor_abort()
375 if (config.bios_segment) ultrastor_14f_detect()
383 config.port_address = PORT_OVERRIDE; ultrastor_14f_detect()
387 config.port_address = ultrastor_ports_14f[i]; ultrastor_14f_detect()
391 printk("US14F: detect: testing port address %03X\n", config.port_address); ultrastor_14f_detect()
394 in_byte = inb(U14F_PRODUCT_ID(config.port_address)); ultrastor_14f_detect()
400 printk("US14F: detect: no adapter at port %03X\n", config.port_address); ultrastor_14f_detect()
406 release_region(config.port_address, 0x0c); ultrastor_14f_detect()
410 in_byte = inb(U14F_PRODUCT_ID(config.port_address) + 1); ultrastor_14f_detect()
417 printk("US14F: detect: no adapter at port %03X\n", config.port_address); ultrastor_14f_detect()
423 release_region(config.port_address, 0x0c); ultrastor_14f_detect()
442 config.port_address); ultrastor_14f_detect()
447 outb(ultrastor_bus_reset ? 0xc2 : 0x82, LCL_DOORBELL_MASK(config.port_address)); ultrastor_14f_detect()
454 *(char *)&config_1 = inb(CONFIG(config.port_address + 0)); ultrastor_14f_detect()
455 *(char *)&config_2 = inb(CONFIG(config.port_address + 1)); ultrastor_14f_detect()
456 config.bios_segment = bios_segment_table[config_1.bios_segment]; ultrastor_14f_detect()
457 config.doorbell_address = config.port_address; ultrastor_14f_detect()
458 config.ogm_address = config.port_address + 0x8; ultrastor_14f_detect()
459 config.icm_address = config.port_address + 0xC; ultrastor_14f_detect()
460 config.interrupt = interrupt_table_14f[config_1.interrupt]; ultrastor_14f_detect()
461 config.ha_scsi_id = config_2.ha_scsi_id; ultrastor_14f_detect()
462 config.heads = mapping_table[config_2.mapping_mode].heads; ultrastor_14f_detect()
463 config.sectors = mapping_table[config_2.mapping_mode].sectors; ultrastor_14f_detect()
464 config.bios_drive_number = config_2.bios_drive_number; ultrastor_14f_detect()
465 config.subversion = (version_byte & 0x0F); ultrastor_14f_detect()
466 if (config.subversion == U34F) ultrastor_14f_detect()
467 config.dma_channel = 0; ultrastor_14f_detect()
469 config.dma_channel = dma_channel_table_14f[config_1.dma_channel]; ultrastor_14f_detect()
471 if (!config.bios_segment) { ultrastor_14f_detect()
479 if (config.subversion != U34F) ultrastor_14f_detect()
480 if (!config.dma_channel || !(config_2.tfr_port & 0x2)) { ultrastor_14f_detect()
500 config.port_address, config.bios_segment, config.interrupt, ultrastor_14f_detect()
501 config.dma_channel, config.ha_scsi_id, config.subversion); ultrastor_14f_detect()
503 tpnt->this_id = config.ha_scsi_id; ultrastor_14f_detect()
504 tpnt->unchecked_isa_dma = (config.subversion != U34F); ultrastor_14f_detect()
507 config.mscp_free = ~0; ultrastor_14f_detect()
511 * Brrr, &config.mscp[0].SCint->host) it is something magical.... ultrastor_14f_detect()
514 if (request_irq(config.interrupt, do_ultrastor_interrupt, 0, "Ultrastor", &config.mscp[0].SCint->device->host)) { ultrastor_14f_detect()
516 config.interrupt); ultrastor_14f_detect()
519 if (config.dma_channel && request_dma(config.dma_channel,"Ultrastor")) { ultrastor_14f_detect()
521 config.dma_channel); ultrastor_14f_detect()
522 free_irq(config.interrupt, NULL); ultrastor_14f_detect()
531 release_region(config.port_address, 0x0c); ultrastor_14f_detect()
555 config.revision = inb(addr+3);
556 config.slot = i;
568 config.bios_segment = bios_segment_table[config_1 & 7];
572 config.interrupt = 15;
575 config.interrupt = 14;
578 config.interrupt = 11;
581 config.interrupt = 10;
590 config.port_address = addr;
591 config.doorbell_address = addr + 12;
592 config.ogm_address = addr + 0x17;
593 config.icm_address = addr + 0x1C;
595 config.ha_scsi_id = config_2 & 7;
596 config.heads = mapping_table[(config_2 >> 3) & 3].heads;
597 config.sectors = mapping_table[(config_2 >> 3) & 3].sectors;
604 config.port_address, config.bios_segment,
605 config.interrupt, config.ha_scsi_id);
607 tpnt->this_id = config.ha_scsi_id;
614 free_irq(config.interrupt, do_ultrastor_interrupt);
618 if (request_irq(config.interrupt, do_ultrastor_interrupt, 0, "Ultrastor", shpnt))
621 config.interrupt);
625 shpnt->irq = config.interrupt;
626 shpnt->dma_channel = config.dma_channel;
627 shpnt->io_port = config.port_address;
630 config.mscp_free = ~0;
669 if (config.slot)
671 config.slot, config.interrupt);
672 else if (config.subversion)
674 config.port_address, (int)config.bios_segment,
675 config.interrupt);
678 config.port_address, (int)config.bios_segment,
679 config.interrupt, config.dma_channel);
713 if ((config.mscp_free & ((1U << ULTRASTOR_MAX_CMDS) - 1)) == 0)
715 mscp_index = find_and_clear_bit_16(&config.mscp_free);
718 if (xchgb(0xff, &config.aborted[mscp_index]) != 0)
724 my_mscp = &config.mscp[mscp_index];
768 if (config.slot)
769 while (inb(config.ogm_address - 1) != 0 && config.aborted[mscp_index] == 0xff)
774 while ((inb(LCL_DOORBELL_INTR(config.doorbell_address)) & (config.slot ? 2 : 1)) && config.aborted[mscp_index] == 0xff)
782 if (inb(LCL_DOORBELL_INTR(config.doorbell_address)) & (config.slot ? 2 : 1))
785 status = xchgb(0, &config.aborted[mscp_index]);
791 log_ultrastor_abort(&config, mscp_index);
797 set_bit(mscp_index, &config.mscp_free);
810 outl(isa_virt_to_bus(my_mscp), config.ogm_address);
813 if (config.slot) {
815 outb(1, config.ogm_address - 1);
816 outb(0x2, LCL_DOORBELL_INTR(config.doorbell_address));
818 outb(0x1, LCL_DOORBELL_INTR(config.doorbell_address));
858 if(config.slot)
865 mscp_index = ((struct mscp *)SCpnt->host_scribble) - config.mscp;
870 if (config.slot)
872 int port0 = (config.slot << 12) | 0xc80;
897 if (config.slot ? inb(config.icm_address - 1) == 2 :
898 (inb(SYS_DOORBELL_INTR(config.doorbell_address)) & 1))
910 old_aborted = xchgb(DID_ABORT, &config.aborted[mscp_index]);
919 if (config.slot && inb(config.ogm_address - 1) == 0)
924 outl(isa_virt_to_bus(&config.mscp[mscp_index]), config.ogm_address);
926 outb(0x80, config.ogm_address - 1);
927 outb(0x2, LCL_DOORBELL_INTR(config.doorbell_address));
929 log_ultrastor_abort(&config, mscp_index);
938 log_ultrastor_abort(&config, mscp_index);
952 if (config.mscp[mscp_index].SCint != SCpnt)
954 config.mscp[mscp_index].SCint, SCpnt);
956 if (config.mscp[mscp_index].SCint == NULL)
959 if (config.mscp[mscp_index].SCint != SCpnt) panic("Bad abort");
960 config.mscp[mscp_index].SCint = NULL;
961 done = config.mscp[mscp_index].done;
962 config.mscp[mscp_index].done = NULL;
982 if(config.slot)
988 outb(0xc0, LCL_DOORBELL_INTR(config.doorbell_address));
989 if (config.slot)
991 outb(0, config.ogm_address - 1);
992 outb(0, config.icm_address - 1);
996 if (config.mscp_busy && config.mscp->done && config.mscp->SCint)
998 config.mscp->SCint->result = DID_RESET << 16;
999 config.mscp->done(config.mscp->SCint);
1001 config.mscp->SCint = 0;
1005 if (! (config.mscp_free & (1 << i)) &&
1006 config.mscp[i].done && config.mscp[i].SCint)
1008 config.mscp[i].SCint->result = DID_RESET << 16;
1009 config.mscp[i].done(config.mscp[i].SCint);
1010 config.mscp[i].done = NULL;
1012 config.mscp[i].SCint = NULL;
1022 memset((unsigned char *)config.aborted, 0, sizeof config.aborted);
1024 config.mscp_busy = 0;
1026 config.mscp_free = ~0;
1038 unsigned int s = config.heads * config.sectors;
1040 dkinfo[0] = config.heads;
1041 dkinfo[1] = config.sectors;
1061 mscp = &config.mscp[0];
1063 mscp = (struct mscp *)isa_bus_to_virt(inl(config.icm_address));
1064 mscp_index = mscp - config.mscp;
1075 if (config.slot) {
1076 unsigned char icm_status = inb(config.icm_address - 1);
1084 outb(2, SYS_DOORBELL_INTR(config.doorbell_address));
1085 outb(0, config.icm_address - 1);
1100 outb(1, SYS_DOORBELL_INTR(config.doorbell_address));
1112 config.mscp_busy = FALSE;
1114 set_bit(mscp_index, &config.mscp_free);
1116 config.aborted[mscp_index] = 0;
1152 config.mscp_busy = FALSE;
1154 set_bit(mscp_index, &config.mscp_free);
1158 if (config.aborted[mscp_index])
1160 mscp_index, (unsigned int) mscp, config.aborted[mscp_index]);
1162 config.aborted[mscp_index] = 0;
1169 if (config.slot ? inb(config.icm_address - 1) :
1170 (inb(SYS_DOORBELL_INTR(config.doorbell_address)) & 1))
H A Da100u2w.h294 u8 Target00Config; /* 16 - Channel 0 Target 0 config */
295 u8 Target01Config; /* 17 - Channel 0 Target 1 config */
296 u8 Target02Config; /* 18 - Channel 0 Target 2 config */
297 u8 Target03Config; /* 19 - Channel 0 Target 3 config */
298 u8 Target04Config; /* 1A - Channel 0 Target 4 config */
299 u8 Target05Config; /* 1B - Channel 0 Target 5 config */
300 u8 Target06Config; /* 1C - Channel 0 Target 6 config */
301 u8 Target07Config; /* 1D - Channel 0 Target 7 config */
302 u8 Target08Config; /* 1E - Channel 0 Target 8 config */
303 u8 Target09Config; /* 1F - Channel 0 Target 9 config */
304 u8 Target0AConfig; /* 20 - Channel 0 Target A config */
305 u8 Target0BConfig; /* 21 - Channel 0 Target B config */
306 u8 Target0CConfig; /* 22 - Channel 0 Target C config */
307 u8 Target0DConfig; /* 23 - Channel 0 Target D config */
308 u8 Target0EConfig; /* 24 - Channel 0 Target E config */
309 u8 Target0FConfig; /* 25 - Channel 0 Target F config */
319 u8 Target10Config; /* 2C - Channel 1 Target 0 config */
320 u8 Target11Config; /* 2D - Channel 1 Target 1 config */
321 u8 Target12Config; /* 2E - Channel 1 Target 2 config */
322 u8 Target13Config; /* 2F - Channel 1 Target 3 config */
323 u8 Target14Config; /* 30 - Channel 1 Target 4 config */
324 u8 Target15Config; /* 31 - Channel 1 Target 5 config */
325 u8 Target16Config; /* 32 - Channel 1 Target 6 config */
326 u8 Target17Config; /* 33 - Channel 1 Target 7 config */
327 u8 Target18Config; /* 34 - Channel 1 Target 8 config */
328 u8 Target19Config; /* 35 - Channel 1 Target 9 config */
329 u8 Target1AConfig; /* 36 - Channel 1 Target A config */
330 u8 Target1BConfig; /* 37 - Channel 1 Target B config */
331 u8 Target1CConfig; /* 38 - Channel 1 Target C config */
332 u8 Target1DConfig; /* 39 - Channel 1 Target D config */
333 u8 Target1EConfig; /* 3A - Channel 1 Target E config */
334 u8 Target1FConfig; /* 3B - Channel 1 Target F config */
/linux-4.4.14/sound/soc/codecs/
H A Dad193x-i2c.c27 struct regmap_config config; ad193x_i2c_probe() local
29 config = ad193x_regmap_config; ad193x_i2c_probe()
30 config.val_bits = 8; ad193x_i2c_probe()
31 config.reg_bits = 8; ad193x_i2c_probe()
34 devm_regmap_init_i2c(client, &config), ad193x_i2c_probe()
H A Dad193x-spi.c20 struct regmap_config config; ad193x_spi_probe() local
22 config = ad193x_regmap_config; ad193x_spi_probe()
23 config.val_bits = 8; ad193x_spi_probe()
24 config.reg_bits = 16; ad193x_spi_probe()
25 config.read_flag_mask = 0x09; ad193x_spi_probe()
26 config.write_flag_mask = 0x08; ad193x_spi_probe()
28 return ad193x_probe(&spi->dev, devm_regmap_init_spi(spi, &config), ad193x_spi_probe()
H A Dadav801.c25 struct regmap_config config; adav80x_spi_probe() local
27 config = adav80x_regmap_config; adav80x_spi_probe()
28 config.read_flag_mask = 0x01; adav80x_spi_probe()
30 return adav80x_bus_probe(&spi->dev, devm_regmap_init_spi(spi, &config)); adav80x_spi_probe()
H A Dadau1761-i2c.c21 struct regmap_config config; adau1761_i2c_probe() local
23 config = adau1761_regmap_config; adau1761_i2c_probe()
24 config.val_bits = 8; adau1761_i2c_probe()
25 config.reg_bits = 16; adau1761_i2c_probe()
28 devm_regmap_init_i2c(client, &config), adau1761_i2c_probe()
H A Dadau1781-i2c.c21 struct regmap_config config; adau1781_i2c_probe() local
23 config = adau1781_regmap_config; adau1781_i2c_probe()
24 config.val_bits = 8; adau1781_i2c_probe()
25 config.reg_bits = 16; adau1781_i2c_probe()
28 devm_regmap_init_i2c(client, &config), adau1781_i2c_probe()
H A Dadau1977-i2c.c21 struct regmap_config config; adau1977_i2c_probe() local
23 config = adau1977_regmap_config; adau1977_i2c_probe()
24 config.val_bits = 8; adau1977_i2c_probe()
25 config.reg_bits = 8; adau1977_i2c_probe()
28 devm_regmap_init_i2c(client, &config), adau1977_i2c_probe()
H A Dcs42l51-i2c.c29 struct regmap_config config; cs42l51_i2c_probe() local
31 config = cs42l51_regmap; cs42l51_i2c_probe()
32 config.val_bits = 8; cs42l51_i2c_probe()
33 config.reg_bits = 8; cs42l51_i2c_probe()
35 return cs42l51_probe(&i2c->dev, devm_regmap_init_i2c(i2c, &config)); cs42l51_i2c_probe()
H A Dcs4271-spi.c25 struct regmap_config config; cs4271_spi_probe() local
27 config = cs4271_regmap_config; cs4271_spi_probe()
28 config.reg_bits = 16; cs4271_spi_probe()
29 config.val_bits = 8; cs4271_spi_probe()
30 config.read_flag_mask = 0x21; cs4271_spi_probe()
31 config.write_flag_mask = 0x20; cs4271_spi_probe()
33 return cs4271_probe(&spi->dev, devm_regmap_init_spi(spi, &config)); cs4271_spi_probe()
H A Dadau1761-spi.c34 struct regmap_config config; adau1761_spi_probe() local
39 config = adau1761_regmap_config; adau1761_spi_probe()
40 config.val_bits = 8; adau1761_spi_probe()
41 config.reg_bits = 24; adau1761_spi_probe()
42 config.read_flag_mask = 0x1; adau1761_spi_probe()
45 devm_regmap_init_spi(spi, &config), adau1761_spi_probe()
H A Dadau1781-spi.c34 struct regmap_config config; adau1781_spi_probe() local
39 config = adau1781_regmap_config; adau1781_spi_probe()
40 config.val_bits = 8; adau1781_spi_probe()
41 config.reg_bits = 24; adau1781_spi_probe()
42 config.read_flag_mask = 0x1; adau1781_spi_probe()
45 devm_regmap_init_spi(spi, &config), adau1781_spi_probe()
H A Dadau1977-spi.c34 struct regmap_config config; adau1977_spi_probe() local
39 config = adau1977_regmap_config; adau1977_spi_probe()
40 config.val_bits = 8; adau1977_spi_probe()
41 config.reg_bits = 16; adau1977_spi_probe()
42 config.read_flag_mask = 0x1; adau1977_spi_probe()
45 devm_regmap_init_spi(spi, &config), adau1977_spi_probe()
H A Dcs4271-i2c.c26 struct regmap_config config; cs4271_i2c_probe() local
28 config = cs4271_regmap_config; cs4271_i2c_probe()
29 config.reg_bits = 8; cs4271_i2c_probe()
30 config.val_bits = 8; cs4271_i2c_probe()
33 devm_regmap_init_i2c(client, &config)); cs4271_i2c_probe()
H A Dpcm512x-i2c.c27 struct regmap_config config = pcm512x_regmap; pcm512x_i2c_probe() local
30 config.read_flag_mask = 0x80; pcm512x_i2c_probe()
31 config.write_flag_mask = 0x80; pcm512x_i2c_probe()
33 regmap = devm_regmap_init_i2c(i2c, &config); pcm512x_i2c_probe()
/linux-4.4.14/include/uapi/linux/
H A Dppp-comp.h48 #define CI_BSD_COMPRESS 21 /* config. option for BSD-Compress */
49 #define CILEN_BSD_COMPRESS 3 /* length of config. option */
51 /* Macros for handling the 3rd byte of the BSD-Compress config option. */
64 #define CI_DEFLATE 26 /* config option for Deflate */
66 #define CILEN_DEFLATE 4 /* length of its config option */
80 #define CI_MPPE 18 /* config option for MPPE */
81 #define CILEN_MPPE 6 /* length of config option */
87 #define CI_PREDICTOR_1 1 /* config option for Predictor-1 */
88 #define CILEN_PREDICTOR_1 2 /* length of its config option */
89 #define CI_PREDICTOR_2 2 /* config option for Predictor-2 */
90 #define CILEN_PREDICTOR_2 2 /* length of its config option */
/linux-4.4.14/drivers/iio/adc/
H A Dmcp3422.c43 #define MCP3422_CHANNEL(config) (((config) & MCP3422_CHANNEL_MASK) >> 5)
44 #define MCP3422_PGA(config) ((config) & MCP3422_PGA_MASK)
45 #define MCP3422_SAMPLE_RATE(config) (((config) & MCP3422_SRATE_MASK) >> 2)
92 u8 config; member in struct:mcp3422
105 adc->config = newconfig; mcp3422_update_config()
114 static int mcp3422_read(struct mcp3422 *adc, int *value, u8 *config) mcp3422_read() argument
117 u8 sample_rate = MCP3422_SAMPLE_RATE(adc->config); mcp3422_read()
124 *config = buf[3]; mcp3422_read()
128 *config = buf[2]; mcp3422_read()
140 u8 config; mcp3422_read_channel() local
143 if (req_channel != MCP3422_CHANNEL(adc->config)) { mcp3422_read_channel()
144 config = adc->config; mcp3422_read_channel()
145 config &= ~MCP3422_CHANNEL_MASK; mcp3422_read_channel()
146 config |= MCP3422_CHANNEL_VALUE(req_channel); mcp3422_read_channel()
147 config &= ~MCP3422_PGA_MASK; mcp3422_read_channel()
148 config |= MCP3422_PGA_VALUE(adc->pga[req_channel]); mcp3422_read_channel()
149 ret = mcp3422_update_config(adc, config); mcp3422_read_channel()
152 msleep(mcp3422_read_times[MCP3422_SAMPLE_RATE(adc->config)]); mcp3422_read_channel()
155 return mcp3422_read(adc, value, &config); mcp3422_read_channel()
165 u8 sample_rate = MCP3422_SAMPLE_RATE(adc->config); mcp3422_read_raw()
166 u8 pga = MCP3422_PGA(adc->config); mcp3422_read_raw()
182 *val1 = mcp3422_sample_rates[MCP3422_SAMPLE_RATE(adc->config)]; mcp3422_read_raw()
198 u8 config = adc->config; mcp3422_write_raw() local
200 u8 sample_rate = MCP3422_SAMPLE_RATE(config); mcp3422_write_raw()
212 config &= ~MCP3422_CHANNEL_MASK; mcp3422_write_raw()
213 config |= MCP3422_CHANNEL_VALUE(req_channel); mcp3422_write_raw()
214 config &= ~MCP3422_PGA_MASK; mcp3422_write_raw()
215 config |= MCP3422_PGA_VALUE(adc->pga[req_channel]); mcp3422_write_raw()
217 return mcp3422_update_config(adc, config); mcp3422_write_raw()
242 config &= ~MCP3422_CHANNEL_MASK; mcp3422_write_raw()
243 config |= MCP3422_CHANNEL_VALUE(req_channel); mcp3422_write_raw()
244 config &= ~MCP3422_SRATE_MASK; mcp3422_write_raw()
245 config |= MCP3422_SAMPLE_RATE_VALUE(temp); mcp3422_write_raw()
247 return mcp3422_update_config(adc, config); mcp3422_write_raw()
284 u8 sample_rate = MCP3422_SAMPLE_RATE(adc->config); mcp3422_show_scales()
334 u8 config; mcp3422_probe() local
370 config = (MCP3422_CONT_SAMPLING mcp3422_probe()
374 mcp3422_update_config(adc, config); mcp3422_probe()
/linux-4.4.14/drivers/staging/sm750fb/
H A Dddk750_sii164.c128 unsigned char config; sii164InitChip() local
146 config = SII164_CONFIGURATION_LATCH_FALLING; sii164InitChip()
148 config = SII164_CONFIGURATION_LATCH_RISING; sii164InitChip()
152 config |= SII164_CONFIGURATION_BUS_12BITS; sii164InitChip()
154 config |= SII164_CONFIGURATION_BUS_24BITS; sii164InitChip()
158 config |= SII164_CONFIGURATION_CLOCK_SINGLE; sii164InitChip()
160 config |= SII164_CONFIGURATION_CLOCK_DUAL; sii164InitChip()
164 config |= SII164_CONFIGURATION_HSYNC_FORCE_LOW; sii164InitChip()
166 config |= SII164_CONFIGURATION_HSYNC_AS_IS; sii164InitChip()
170 config |= SII164_CONFIGURATION_VSYNC_FORCE_LOW; sii164InitChip()
172 config |= SII164_CONFIGURATION_VSYNC_AS_IS; sii164InitChip()
174 i2cWriteReg(SII164_I2C_ADDRESS, SII164_CONFIGURATION, config); sii164InitChip()
181 config = SII164_DESKEW_DISABLE; sii164InitChip()
183 config = SII164_DESKEW_ENABLE; sii164InitChip()
187 config |= SII164_DESKEW_1_STEP; sii164InitChip()
190 config |= SII164_DESKEW_2_STEP; sii164InitChip()
193 config |= SII164_DESKEW_3_STEP; sii164InitChip()
196 config |= SII164_DESKEW_4_STEP; sii164InitChip()
199 config |= SII164_DESKEW_5_STEP; sii164InitChip()
202 config |= SII164_DESKEW_6_STEP; sii164InitChip()
205 config |= SII164_DESKEW_7_STEP; sii164InitChip()
208 config |= SII164_DESKEW_8_STEP; sii164InitChip()
211 i2cWriteReg(SII164_I2C_ADDRESS, SII164_DESKEW, config); sii164InitChip()
215 config = SII164_PLL_FILTER_SYNC_CONTINUOUS_DISABLE; sii164InitChip()
217 config = SII164_PLL_FILTER_SYNC_CONTINUOUS_ENABLE; sii164InitChip()
221 config |= SII164_PLL_FILTER_DISABLE; sii164InitChip()
223 config |= SII164_PLL_FILTER_ENABLE; sii164InitChip()
226 config |= ((pllFilterValue & 0x07) << 1); sii164InitChip()
228 i2cWriteReg(SII164_I2C_ADDRESS, SII164_PLL, config); sii164InitChip()
231 config = i2cReadReg(SII164_I2C_ADDRESS, SII164_CONFIGURATION); sii164InitChip()
232 config |= SII164_CONFIGURATION_POWER_NORMAL; sii164InitChip()
233 i2cWriteReg(SII164_I2C_ADDRESS, SII164_CONFIGURATION, config); sii164InitChip()
284 unsigned char config; sii164SetPower() local
286 config = i2cReadReg(SII164_I2C_ADDRESS, SII164_CONFIGURATION); sii164SetPower()
289 config &= ~SII164_CONFIGURATION_POWER_MASK; sii164SetPower()
290 config |= SII164_CONFIGURATION_POWER_NORMAL; sii164SetPower()
291 i2cWriteReg(SII164_I2C_ADDRESS, SII164_CONFIGURATION, config); sii164SetPower()
294 config &= ~SII164_CONFIGURATION_POWER_MASK; sii164SetPower()
295 config |= SII164_CONFIGURATION_POWER_DOWN; sii164SetPower()
296 i2cWriteReg(SII164_I2C_ADDRESS, SII164_CONFIGURATION, config); sii164SetPower()
/linux-4.4.14/tools/perf/tests/
H A Dpmu.c11 { "krava01", "config:0-1,62-63\n", },
12 { "krava02", "config:10-17\n", },
13 { "krava03", "config:5\n", },
25 .config = (char *) "krava01",
31 .config = (char *) "krava02",
37 .config = (char *) "krava03",
43 .config = (char *) "krava11",
49 .config = (char *) "krava12",
55 .config = (char *) "krava13",
61 .config = (char *) "krava21",
67 .config = (char *) "krava22",
73 .config = (char *) "krava23",
162 if (attr.config != 0xc00000000002a823) test__pmu()
H A Dparse-events.c52 TEST_ASSERT_VAL("wrong config", 0x1a == evsel->attr.config); test__checkevent_raw()
62 TEST_ASSERT_VAL("wrong config", 1 == evsel->attr.config); test__checkevent_numeric()
72 TEST_ASSERT_VAL("wrong config", test__checkevent_symbolic_name()
73 PERF_COUNT_HW_INSTRUCTIONS == evsel->attr.config); test__checkevent_symbolic_name()
83 TEST_ASSERT_VAL("wrong config", test__checkevent_symbolic_name_config()
84 PERF_COUNT_HW_CPU_CYCLES == evsel->attr.config); test__checkevent_symbolic_name_config()
104 TEST_ASSERT_VAL("wrong config", test__checkevent_symbolic_alias()
105 PERF_COUNT_SW_PAGE_FAULTS == evsel->attr.config); test__checkevent_symbolic_alias()
115 TEST_ASSERT_VAL("wrong config", (1 << 16) == evsel->attr.config); test__checkevent_genhw()
125 TEST_ASSERT_VAL("wrong config", 0 == evsel->attr.config); test__checkevent_breakpoint()
139 TEST_ASSERT_VAL("wrong config", 0 == evsel->attr.config); test__checkevent_breakpoint_x()
153 TEST_ASSERT_VAL("wrong config", 0 == evsel->attr.config); test__checkevent_breakpoint_r()
168 TEST_ASSERT_VAL("wrong config", 0 == evsel->attr.config); test__checkevent_breakpoint_w()
183 TEST_ASSERT_VAL("wrong config", 0 == evsel->attr.config); test__checkevent_breakpoint_rw()
410 TEST_ASSERT_VAL("wrong config", 10 == evsel->attr.config); test__checkevent_pmu()
430 TEST_ASSERT_VAL("wrong config", 1 == evsel->attr.config); test__checkevent_list()
452 TEST_ASSERT_VAL("wrong config", 1 == evsel->attr.config); test__checkevent_list()
465 /* cpu/config=1,name=krava/u */ test__checkevent_pmu_name()
468 TEST_ASSERT_VAL("wrong config", 1 == evsel->attr.config); test__checkevent_pmu_name()
471 /* cpu/config=2/u" */ test__checkevent_pmu_name()
475 TEST_ASSERT_VAL("wrong config", 2 == evsel->attr.config); test__checkevent_pmu_name()
477 !strcmp(perf_evsel__name(evsel), "cpu/config=2/u")); test__checkevent_pmu_name()
486 /* cpu/config=1,call-graph=fp,time,period=100000/ */ test__checkevent_pmu_partial_time_callgraph()
489 TEST_ASSERT_VAL("wrong config", 1 == evsel->attr.config); test__checkevent_pmu_partial_time_callgraph()
499 /* cpu/config=2,call-graph=no,time=0,period=2000/ */ test__checkevent_pmu_partial_time_callgraph()
502 TEST_ASSERT_VAL("wrong config", 2 == evsel->attr.config); test__checkevent_pmu_partial_time_callgraph()
566 /* config=10 */ test__checkterms_simple()
573 TEST_ASSERT_VAL("wrong config", !term->config); test__checkterms_simple()
582 TEST_ASSERT_VAL("wrong config", !term->config); test__checkterms_simple()
591 TEST_ASSERT_VAL("wrong config", !term->config); test__checkterms_simple()
600 TEST_ASSERT_VAL("wrong config", !strcmp(term->config, "umask")); test__checkterms_simple()
615 TEST_ASSERT_VAL("wrong config", test__group1()
616 PERF_COUNT_HW_INSTRUCTIONS == evsel->attr.config); test__group1()
631 TEST_ASSERT_VAL("wrong config", test__group1()
632 PERF_COUNT_HW_CPU_CYCLES == evsel->attr.config); test__group1()
657 TEST_ASSERT_VAL("wrong config", test__group2()
658 PERF_COUNT_SW_PAGE_FAULTS == evsel->attr.config); test__group2()
673 TEST_ASSERT_VAL("wrong config", test__group2()
674 PERF_COUNT_HW_CACHE_REFERENCES == evsel->attr.config); test__group2()
688 TEST_ASSERT_VAL("wrong config", test__group2()
689 PERF_COUNT_HW_CPU_CYCLES == evsel->attr.config); test__group2()
731 TEST_ASSERT_VAL("wrong config", test__group3()
732 PERF_COUNT_HW_CPU_CYCLES == evsel->attr.config); test__group3()
748 TEST_ASSERT_VAL("wrong config", test__group3()
749 PERF_COUNT_HW_CPU_CYCLES == evsel->attr.config); test__group3()
766 TEST_ASSERT_VAL("wrong config", 3 == evsel->attr.config); test__group3()
780 TEST_ASSERT_VAL("wrong config", test__group3()
781 PERF_COUNT_HW_INSTRUCTIONS == evsel->attr.config); test__group3()
804 TEST_ASSERT_VAL("wrong config", test__group4()
805 PERF_COUNT_HW_CPU_CYCLES == evsel->attr.config); test__group4()
822 TEST_ASSERT_VAL("wrong config", test__group4()
823 PERF_COUNT_HW_INSTRUCTIONS == evsel->attr.config); test__group4()
848 TEST_ASSERT_VAL("wrong config", test__group5()
849 PERF_COUNT_HW_CPU_CYCLES == evsel->attr.config); test__group5()
865 TEST_ASSERT_VAL("wrong config", test__group5()
866 PERF_COUNT_HW_INSTRUCTIONS == evsel->attr.config); test__group5()
880 TEST_ASSERT_VAL("wrong config", test__group5()
881 PERF_COUNT_HW_CPU_CYCLES == evsel->attr.config); test__group5()
897 TEST_ASSERT_VAL("wrong config", test__group5()
898 PERF_COUNT_HW_INSTRUCTIONS == evsel->attr.config); test__group5()
911 TEST_ASSERT_VAL("wrong config", test__group5()
912 PERF_COUNT_HW_CPU_CYCLES == evsel->attr.config); test__group5()
934 TEST_ASSERT_VAL("wrong config", test__group_gh1()
935 PERF_COUNT_HW_CPU_CYCLES == evsel->attr.config); test__group_gh1()
950 TEST_ASSERT_VAL("wrong config", test__group_gh1()
951 PERF_COUNT_HW_CACHE_MISSES == evsel->attr.config); test__group_gh1()
974 TEST_ASSERT_VAL("wrong config", test__group_gh2()
975 PERF_COUNT_HW_CPU_CYCLES == evsel->attr.config); test__group_gh2()
990 TEST_ASSERT_VAL("wrong config", test__group_gh2()
991 PERF_COUNT_HW_CACHE_MISSES == evsel->attr.config); test__group_gh2()
1014 TEST_ASSERT_VAL("wrong config", test__group_gh3()
1015 PERF_COUNT_HW_CPU_CYCLES == evsel->attr.config); test__group_gh3()
1030 TEST_ASSERT_VAL("wrong config", test__group_gh3()
1031 PERF_COUNT_HW_CACHE_MISSES == evsel->attr.config); test__group_gh3()
1054 TEST_ASSERT_VAL("wrong config", test__group_gh4()
1055 PERF_COUNT_HW_CPU_CYCLES == evsel->attr.config); test__group_gh4()
1070 TEST_ASSERT_VAL("wrong config", test__group_gh4()
1071 PERF_COUNT_HW_CACHE_MISSES == evsel->attr.config); test__group_gh4()
1093 TEST_ASSERT_VAL("wrong config", test__leader_sample1()
1094 PERF_COUNT_HW_CPU_CYCLES == evsel->attr.config); test__leader_sample1()
1108 TEST_ASSERT_VAL("wrong config", test__leader_sample1()
1109 PERF_COUNT_HW_CACHE_MISSES == evsel->attr.config); test__leader_sample1()
1122 TEST_ASSERT_VAL("wrong config", test__leader_sample1()
1123 PERF_COUNT_HW_BRANCH_MISSES == evsel->attr.config); test__leader_sample1()
1146 TEST_ASSERT_VAL("wrong config", test__leader_sample2()
1147 PERF_COUNT_HW_INSTRUCTIONS == evsel->attr.config); test__leader_sample2()
1161 TEST_ASSERT_VAL("wrong config", test__leader_sample2()
1162 PERF_COUNT_HW_BRANCH_MISSES == evsel->attr.config); test__leader_sample2()
1198 TEST_ASSERT_VAL("wrong config", test__pinned_group()
1199 PERF_COUNT_HW_CPU_CYCLES == evsel->attr.config); test__pinned_group()
1207 TEST_ASSERT_VAL("wrong config", test__pinned_group()
1208 PERF_COUNT_HW_CACHE_MISSES == evsel->attr.config); test__pinned_group()
1213 TEST_ASSERT_VAL("wrong config", test__pinned_group()
1214 PERF_COUNT_HW_BRANCH_MISSES == evsel->attr.config); test__pinned_group()
1226 TEST_ASSERT_VAL("wrong config", 0 == evsel->attr.config); test__checkevent_breakpoint_len()
1241 TEST_ASSERT_VAL("wrong config", 0 == evsel->attr.config); test__checkevent_breakpoint_len_w()
1269 TEST_ASSERT_VAL("wrong config", test__checkevent_precise_max_modifier()
1270 PERF_COUNT_SW_TASK_CLOCK == evsel->attr.config); test__checkevent_precise_max_modifier()
1586 .name = "cpu/config=10,config1,config2=3,period=1000/u",
1591 .name = "cpu/config=1,name=krava/u,cpu/config=2/u",
1596 .name = "cpu/config=1,call-graph=fp,time,period=100000/,cpu/config=2,call-graph=no,time=0,period=2000/",
1610 .str = "config=10,config1,config2=3,umask=1",
/linux-4.4.14/drivers/mmc/host/
H A Dmmci_qcom_dml.c59 u32 config; dml_start_xfer() local
65 config = readl_relaxed(base + DML_CONFIG); dml_start_xfer()
66 config = (config & ~PRODUCER_CRCI_MSK) | PRODUCER_CRCI_X_SEL; dml_start_xfer()
67 config = (config & ~CONSUMER_CRCI_MSK) | CONSUMER_CRCI_DISABLE; dml_start_xfer()
68 writel_relaxed(config, base + DML_CONFIG); dml_start_xfer()
77 config = readl_relaxed(base + DML_CONFIG); dml_start_xfer()
78 config |= PRODUCER_TRANS_END_EN; dml_start_xfer()
79 writel_relaxed(config, base + DML_CONFIG); dml_start_xfer()
85 config = readl_relaxed(base + DML_CONFIG); dml_start_xfer()
86 config = (config & ~CONSUMER_CRCI_MSK) | CONSUMER_CRCI_X_SEL; dml_start_xfer()
87 config = (config & ~PRODUCER_CRCI_MSK) | PRODUCER_CRCI_DISABLE; dml_start_xfer()
88 writel_relaxed(config, base + DML_CONFIG); dml_start_xfer()
90 config = readl_relaxed(base + DML_CONFIG); dml_start_xfer()
91 config &= ~PRODUCER_TRANS_END_EN; dml_start_xfer()
92 writel_relaxed(config, base + DML_CONFIG); dml_start_xfer()
124 u32 config; dml_hw_init() local
140 config = (PRODUCER_CRCI_DISABLE | CONSUMER_CRCI_DISABLE); dml_hw_init()
146 config &= ~BYPASS; dml_hw_init()
151 config &= ~DIRECT_MODE; dml_hw_init()
157 config &= ~INFINITE_CONS_TRANS; dml_hw_init()
158 writel_relaxed(config, base + DML_CONFIG); dml_hw_init()
/linux-4.4.14/drivers/regulator/
H A Dgpio-regulator.c139 struct gpio_regulator_config *config; of_get_gpio_regulator_config() local
144 config = devm_kzalloc(dev, of_get_gpio_regulator_config()
147 if (!config) of_get_gpio_regulator_config()
150 config->init_data = of_get_regulator_init_data(dev, np, desc); of_get_gpio_regulator_config()
151 if (!config->init_data) of_get_gpio_regulator_config()
154 config->supply_name = config->init_data->constraints.name; of_get_gpio_regulator_config()
157 config->enable_high = true; of_get_gpio_regulator_config()
160 config->enabled_at_boot = true; of_get_gpio_regulator_config()
162 of_property_read_u32(np, "startup-delay-us", &config->startup_delay); of_get_gpio_regulator_config()
164 config->enable_gpio = of_get_named_gpio(np, "enable-gpio", 0); of_get_gpio_regulator_config()
172 config->nr_gpios = ret; of_get_gpio_regulator_config()
173 config->gpios = devm_kzalloc(dev, of_get_gpio_regulator_config()
174 sizeof(struct gpio) * config->nr_gpios, of_get_gpio_regulator_config()
176 if (!config->gpios) of_get_gpio_regulator_config()
184 if (proplen > 0 && proplen != config->nr_gpios) { of_get_gpio_regulator_config()
189 for (i = 0; i < config->nr_gpios; i++) { of_get_gpio_regulator_config()
193 config->gpios[i].gpio = gpio; of_get_gpio_regulator_config()
198 config->gpios[i].flags = of_get_gpio_regulator_config()
211 config->states = devm_kzalloc(dev, of_get_gpio_regulator_config()
215 if (!config->states) of_get_gpio_regulator_config()
220 &config->states[i].value); of_get_gpio_regulator_config()
222 &config->states[i].gpios); of_get_gpio_regulator_config()
224 config->nr_states = i; of_get_gpio_regulator_config()
226 config->type = REGULATOR_VOLTAGE; of_get_gpio_regulator_config()
230 config->type = REGULATOR_VOLTAGE; of_get_gpio_regulator_config()
232 config->type = REGULATOR_CURRENT; of_get_gpio_regulator_config()
238 return config; of_get_gpio_regulator_config()
248 struct gpio_regulator_config *config = dev_get_platdata(&pdev->dev); gpio_regulator_probe() local
260 config = of_get_gpio_regulator_config(&pdev->dev, np, gpio_regulator_probe()
262 if (IS_ERR(config)) gpio_regulator_probe()
263 return PTR_ERR(config); gpio_regulator_probe()
266 drvdata->desc.name = kstrdup(config->supply_name, GFP_KERNEL); gpio_regulator_probe()
273 if (config->nr_gpios != 0) { gpio_regulator_probe()
274 drvdata->gpios = kmemdup(config->gpios, gpio_regulator_probe()
275 config->nr_gpios * sizeof(struct gpio), gpio_regulator_probe()
283 drvdata->nr_gpios = config->nr_gpios; gpio_regulator_probe()
292 drvdata->states = kmemdup(config->states, gpio_regulator_probe()
293 config->nr_states * gpio_regulator_probe()
301 drvdata->nr_states = config->nr_states; gpio_regulator_probe()
304 drvdata->desc.enable_time = config->startup_delay; gpio_regulator_probe()
307 switch (config->type) { gpio_regulator_probe()
311 drvdata->desc.n_voltages = config->nr_states; gpio_regulator_probe()
326 if (config->gpios[ptr].flags & GPIOF_OUT_INIT_HIGH) gpio_regulator_probe()
332 cfg.init_data = config->init_data; gpio_regulator_probe()
336 if (gpio_is_valid(config->enable_gpio)) { gpio_regulator_probe()
337 cfg.ena_gpio = config->enable_gpio; gpio_regulator_probe()
340 cfg.ena_gpio_invert = !config->enable_high; gpio_regulator_probe()
341 if (config->enabled_at_boot) { gpio_regulator_probe()
342 if (config->enable_high) gpio_regulator_probe()
347 if (config->enable_high) gpio_regulator_probe()
H A Dfixed.c53 struct fixed_voltage_config *config; of_get_fixed_voltage_config() local
57 config = devm_kzalloc(dev, sizeof(struct fixed_voltage_config), of_get_fixed_voltage_config()
59 if (!config) of_get_fixed_voltage_config()
62 config->init_data = of_get_regulator_init_data(dev, dev->of_node, desc); of_get_fixed_voltage_config()
63 if (!config->init_data) of_get_fixed_voltage_config()
66 init_data = config->init_data; of_get_fixed_voltage_config()
69 config->supply_name = init_data->constraints.name; of_get_fixed_voltage_config()
71 config->microvolts = init_data->constraints.min_uV; of_get_fixed_voltage_config()
79 config->enabled_at_boot = true; of_get_fixed_voltage_config()
81 config->gpio = of_get_named_gpio(np, "gpio", 0); of_get_fixed_voltage_config()
90 * if (config->gpio < 0 && config->gpio != -ENOENT) of_get_fixed_voltage_config()
92 if ((config->gpio == -ENODEV) || (config->gpio == -EPROBE_DEFER)) of_get_fixed_voltage_config()
95 of_property_read_u32(np, "startup-delay-us", &config->startup_delay); of_get_fixed_voltage_config()
97 config->enable_high = of_property_read_bool(np, "enable-active-high"); of_get_fixed_voltage_config()
98 config->gpio_is_open_drain = of_property_read_bool(np, of_get_fixed_voltage_config()
102 config->input_supply = "vin"; of_get_fixed_voltage_config()
104 return config; of_get_fixed_voltage_config()
112 struct fixed_voltage_config *config; reg_fixed_voltage_probe() local
123 config = of_get_fixed_voltage_config(&pdev->dev, reg_fixed_voltage_probe()
125 if (IS_ERR(config)) reg_fixed_voltage_probe()
126 return PTR_ERR(config); reg_fixed_voltage_probe()
128 config = dev_get_platdata(&pdev->dev); reg_fixed_voltage_probe()
131 if (!config) reg_fixed_voltage_probe()
135 config->supply_name, reg_fixed_voltage_probe()
145 drvdata->desc.enable_time = config->startup_delay; reg_fixed_voltage_probe()
147 if (config->input_supply) { reg_fixed_voltage_probe()
149 config->input_supply, reg_fixed_voltage_probe()
158 if (config->microvolts) reg_fixed_voltage_probe()
161 drvdata->desc.fixed_uV = config->microvolts; reg_fixed_voltage_probe()
163 if (gpio_is_valid(config->gpio)) { reg_fixed_voltage_probe()
164 cfg.ena_gpio = config->gpio; reg_fixed_voltage_probe()
168 cfg.ena_gpio_invert = !config->enable_high; reg_fixed_voltage_probe()
169 if (config->enabled_at_boot) { reg_fixed_voltage_probe()
170 if (config->enable_high) reg_fixed_voltage_probe()
175 if (config->enable_high) reg_fixed_voltage_probe()
180 if (config->gpio_is_open_drain) reg_fixed_voltage_probe()
184 cfg.init_data = config->init_data; reg_fixed_voltage_probe()
H A Dstw481x-vmmc.c58 struct regulator_config config = { }; stw481x_vmmc_regulator_probe() local
71 config.dev = &pdev->dev; stw481x_vmmc_regulator_probe()
72 config.driver_data = stw481x; stw481x_vmmc_regulator_probe()
73 config.regmap = stw481x->map; stw481x_vmmc_regulator_probe()
74 config.of_node = pdev->dev.of_node; stw481x_vmmc_regulator_probe()
75 config.init_data = of_get_regulator_init_data(&pdev->dev, stw481x_vmmc_regulator_probe()
79 rdev = devm_regulator_register(&pdev->dev, &vmmc_regulator, &config); stw481x_vmmc_regulator_probe()
H A Dpcf50633-regulator.c83 struct regulator_config config = { }; pcf50633_regulator_probe() local
88 config.dev = &pdev->dev; pcf50633_regulator_probe()
89 config.init_data = dev_get_platdata(&pdev->dev); pcf50633_regulator_probe()
90 config.driver_data = pcf; pcf50633_regulator_probe()
91 config.regmap = pcf->regmap; pcf50633_regulator_probe()
94 &config); pcf50633_regulator_probe()
H A Dsky81452-regulator.c72 struct regulator_config config = { }; sky81452_reg_probe() local
75 config.dev = dev->parent; sky81452_reg_probe()
76 config.init_data = init_data; sky81452_reg_probe()
77 config.of_node = dev->of_node; sky81452_reg_probe()
78 config.regmap = dev_get_drvdata(dev->parent); sky81452_reg_probe()
80 rdev = devm_regulator_register(dev, &sky81452_reg, &config); sky81452_reg_probe()
H A Ddummy.c46 struct regulator_config config = { }; dummy_regulator_probe() local
49 config.dev = &pdev->dev; dummy_regulator_probe()
50 config.init_data = &dummy_initdata; dummy_regulator_probe()
52 dummy_regulator_rdev = regulator_register(&dummy_desc, &config); dummy_regulator_probe()
H A Dwm8994-regulator.c130 struct regulator_config config = { }; wm8994_ldo_probe() local
144 config.dev = wm8994->dev; wm8994_ldo_probe()
145 config.driver_data = ldo; wm8994_ldo_probe()
146 config.regmap = wm8994->regmap; wm8994_ldo_probe()
147 config.init_data = &ldo->init_data; wm8994_ldo_probe()
149 config.ena_gpio = pdata->ldo[id].enable; wm8994_ldo_probe()
151 config.ena_gpio = wm8994->pdata.ldo[id].enable; wm8994_ldo_probe()
152 config.ena_gpio_initialized = true; wm8994_ldo_probe()
162 if (!config.ena_gpio) wm8994_ldo_probe()
170 &config); wm8994_ldo_probe()
H A Drt5033-regulator.c88 struct regulator_config config = {}; rt5033_regulator_probe() local
90 config.dev = rt5033->dev; rt5033_regulator_probe()
91 config.driver_data = rt5033; rt5033_regulator_probe()
96 config.regmap = rt5033->regmap; rt5033_regulator_probe()
99 &rt5033_supported_regulators[i], &config); rt5033_regulator_probe()
H A Darizona-ldo1.c188 struct regulator_config *config, arizona_ldo1_of_get_pdata()
192 struct arizona_ldo1 *ldo1 = config->driver_data; arizona_ldo1_of_get_pdata()
204 config->ena_gpio_initialized = true; arizona_ldo1_of_get_pdata()
211 config->of_node = init_node; arizona_ldo1_of_get_pdata()
238 struct regulator_config config = { }; arizona_ldo1_probe() local
278 config.dev = arizona->dev; arizona_ldo1_probe()
279 config.driver_data = ldo1; arizona_ldo1_probe()
280 config.regmap = arizona->regmap; arizona_ldo1_probe()
284 ret = arizona_ldo1_of_get_pdata(arizona, &config, desc); arizona_ldo1_probe()
290 config.ena_gpio = arizona->pdata.ldoena; arizona_ldo1_probe()
293 config.init_data = arizona->pdata.ldo1; arizona_ldo1_probe()
295 config.init_data = &ldo1->init_data; arizona_ldo1_probe()
301 if (config.init_data->num_consumer_supplies == 0) arizona_ldo1_probe()
304 ldo1->regulator = devm_regulator_register(&pdev->dev, desc, &config); arizona_ldo1_probe()
306 of_node_put(config.of_node); arizona_ldo1_probe()
187 arizona_ldo1_of_get_pdata(struct arizona *arizona, struct regulator_config *config, const struct regulator_desc *desc) arizona_ldo1_of_get_pdata() argument
H A Disl6271a-regulator.c112 struct regulator_config config = { }; isl6271a_probe() local
129 config.dev = &i2c->dev; isl6271a_probe()
131 config.init_data = init_data; isl6271a_probe()
133 config.init_data = NULL; isl6271a_probe()
134 config.driver_data = pmic; isl6271a_probe()
137 &config); isl6271a_probe()
H A Dvexpress.c62 struct regulator_config config = { }; vexpress_regulator_probe() local
88 config.dev = &pdev->dev; vexpress_regulator_probe()
89 config.init_data = init_data; vexpress_regulator_probe()
90 config.driver_data = reg; vexpress_regulator_probe()
91 config.of_node = pdev->dev.of_node; vexpress_regulator_probe()
93 reg->regdev = devm_regulator_register(&pdev->dev, &reg->desc, &config); vexpress_regulator_probe()
H A Dinternal.h41 struct regulator_config *config,
47 struct regulator_config *config, regulator_of_get_init_data()
45 regulator_of_get_init_data(struct device *dev, const struct regulator_desc *desc, struct regulator_config *config, struct device_node **node) regulator_of_get_init_data() argument
/linux-4.4.14/drivers/ide/
H A Dide-legacy.c7 unsigned long config) ide_legacy_init_one()
37 hw->config = config; ide_legacy_init_one()
42 int ide_legacy_device_add(const struct ide_port_info *d, unsigned long config) ide_legacy_device_add() argument
49 ide_legacy_init_one(hws, &hw[0], 0, d, config); ide_legacy_device_add()
50 ide_legacy_init_one(hws, &hw[1], 1, d, config); ide_legacy_device_add()
5 ide_legacy_init_one(struct ide_hw **hws, struct ide_hw *hw, u8 port_no, const struct ide_port_info *d, unsigned long config) ide_legacy_init_one() argument
/linux-4.4.14/Documentation/networking/timestamping/
H A Dhwtstamp_config.c88 struct hwtstamp_config config; main() local
98 config.flags = 0; main()
99 config.tx_type = lookup_value(tx_types, N_TX_TYPES, argv[2]); main()
100 config.rx_filter = lookup_value(rx_filters, N_RX_FILTERS, argv[3]); main()
101 if (config.tx_type < 0 || config.rx_filter < 0) { main()
114 ifr.ifr_data = (caddr_t)&config; main()
121 printf("flags = %#x\n", config.flags); main()
122 name = lookup_name(tx_types, N_TX_TYPES, config.tx_type); main()
126 printf("tx_type = %d\n", config.tx_type); main()
127 name = lookup_name(rx_filters, N_RX_FILTERS, config.rx_filter); main()
131 printf("rx_filter = %d\n", config.rx_filter); main()
/linux-4.4.14/arch/mips/cavium-octeon/executive/
H A Dcvmx-pko.c34 #include <asm/octeon/cvmx-config.h>
77 union cvmx_pko_mem_iqueue_ptrs config; __cvmx_pko_iport_config() local
81 config.u64 = 0; __cvmx_pko_iport_config()
82 config.s.index = queue; __cvmx_pko_iport_config()
83 config.s.qid = base_queue + queue; __cvmx_pko_iport_config()
84 config.s.ipid = pko_port; __cvmx_pko_iport_config()
85 config.s.tail = (queue == (num_queues - 1)); __cvmx_pko_iport_config()
86 config.s.s_tail = (queue == static_priority_end); __cvmx_pko_iport_config()
87 config.s.static_p = (static_priority_base >= 0); __cvmx_pko_iport_config()
88 config.s.static_q = (queue <= static_priority_end); __cvmx_pko_iport_config()
89 config.s.qos_mask = 0xff; __cvmx_pko_iport_config()
105 config.s.buf_ptr = cvmx_ptr_to_phys(buf_ptr) >> 7; __cvmx_pko_iport_config()
107 cvmx_write_csr(CVMX_PKO_MEM_IQUEUE_PTRS, config.u64); __cvmx_pko_iport_config()
124 union cvmx_pko_mem_iport_ptrs config; __cvmx_pko_port_map_o68() local
129 config.u64 = 0; __cvmx_pko_port_map_o68()
130 config.s.eid = 31; /* Invalid */ __cvmx_pko_port_map_o68()
132 config.s.ipid = port; __cvmx_pko_port_map_o68()
133 cvmx_write_csr(CVMX_PKO_MEM_IPORT_PTRS, config.u64); __cvmx_pko_port_map_o68()
146 config.s.ipid = port; __cvmx_pko_port_map_o68()
147 config.s.qos_mask = 0xff; __cvmx_pko_port_map_o68()
148 config.s.crc = 1; __cvmx_pko_port_map_o68()
149 config.s.min_pkt = 1; __cvmx_pko_port_map_o68()
150 config.s.intr = __cvmx_pko_int(interface, index); __cvmx_pko_port_map_o68()
151 config.s.eid = config.s.intr; __cvmx_pko_port_map_o68()
152 config.s.pipe = (mode == CVMX_HELPER_INTERFACE_MODE_LOOP) ? __cvmx_pko_port_map_o68()
154 cvmx_write_csr(CVMX_PKO_MEM_IPORT_PTRS, config.u64); __cvmx_pko_port_map_o68()
181 * output system. This does chip global config, and should only be
187 union cvmx_pko_reg_cmd_buf config; cvmx_pko_initialize_global() local
194 config.u64 = 0; cvmx_pko_initialize_global()
195 config.s.pool = CVMX_FPA_OUTPUT_BUFFER_POOL; cvmx_pko_initialize_global()
196 config.s.size = CVMX_FPA_OUTPUT_BUFFER_POOL_SIZE / 8 - 1; cvmx_pko_initialize_global()
198 cvmx_write_csr(CVMX_PKO_REG_CMD_BUF, config.u64); cvmx_pko_initialize_global()
297 union cvmx_pko_mem_queue_ptrs config; cvmx_pko_shutdown() local
303 config.u64 = 0; cvmx_pko_shutdown()
304 config.s.tail = 1; cvmx_pko_shutdown()
305 config.s.index = 0; cvmx_pko_shutdown()
306 config.s.port = CVMX_PKO_MEM_QUEUE_PTRS_ILLEGAL_PID; cvmx_pko_shutdown()
307 config.s.queue = queue & 0x7f; cvmx_pko_shutdown()
308 config.s.qos_mask = 0; cvmx_pko_shutdown()
309 config.s.buf_ptr = 0; cvmx_pko_shutdown()
316 cvmx_write_csr(CVMX_PKO_MEM_QUEUE_PTRS, config.u64); cvmx_pko_shutdown()
346 union cvmx_pko_mem_queue_ptrs config; cvmx_pko_config_port() local
443 config.u64 = 0; cvmx_pko_config_port()
444 config.s.tail = queue == (num_queues - 1); cvmx_pko_config_port()
445 config.s.index = queue; cvmx_pko_config_port()
446 config.s.port = port; cvmx_pko_config_port()
447 config.s.queue = base_queue + queue; cvmx_pko_config_port()
450 config.s.static_p = static_priority_base >= 0; cvmx_pko_config_port()
451 config.s.static_q = (int)queue <= static_priority_end; cvmx_pko_config_port()
452 config.s.s_tail = (int)queue == static_priority_end; cvmx_pko_config_port()
461 config.s.qos_mask = 0x00; cvmx_pko_config_port()
464 config.s.qos_mask = 0x01; cvmx_pko_config_port()
467 config.s.qos_mask = 0x11; cvmx_pko_config_port()
470 config.s.qos_mask = 0x49; cvmx_pko_config_port()
473 config.s.qos_mask = 0x55; cvmx_pko_config_port()
476 config.s.qos_mask = 0x57; cvmx_pko_config_port()
479 config.s.qos_mask = 0x77; cvmx_pko_config_port()
482 config.s.qos_mask = 0x7f; cvmx_pko_config_port()
485 config.s.qos_mask = 0xff; cvmx_pko_config_port()
490 config.s.qos_mask = 0xff; cvmx_pko_config_port()
497 config.s.qos_mask = 0xff; cvmx_pko_config_port()
536 config.s.buf_ptr = cvmx_ptr_to_phys(buf_ptr); cvmx_pko_config_port()
538 config.s.buf_ptr = 0; cvmx_pko_config_port()
544 cvmx_write_csr(CVMX_PKO_MEM_QUEUE_PTRS, config.u64); cvmx_pko_config_port()
/linux-4.4.14/drivers/staging/lustre/lnet/lnet/
H A DMakefile3 lnet-y := api-ni.o config.o nidstrings.o \
/linux-4.4.14/drivers/net/ethernet/neterion/vxge/
H A DMakefile7 vxge-objs := vxge-config.o vxge-traffic.o vxge-ethtool.o vxge-main.o
/linux-4.4.14/fs/dlm/
H A DMakefile3 config.o \
/linux-4.4.14/arch/m68k/68360/
H A DMakefile7 obj-y := config.o commproc.o entry.o ints.o
/linux-4.4.14/drivers/media/dvb-frontends/
H A Dlnbp21.c40 u8 config; member in struct:lnbp21
52 .buf = &lnbp21->config, lnbp21_set_voltage()
53 .len = sizeof(lnbp21->config) }; lnbp21_set_voltage()
55 lnbp21->config &= ~(LNBP21_VSEL | LNBP21_EN); lnbp21_set_voltage()
61 lnbp21->config |= LNBP21_EN; lnbp21_set_voltage()
64 lnbp21->config |= (LNBP21_EN | LNBP21_VSEL); lnbp21_set_voltage()
70 lnbp21->config |= lnbp21->override_or; lnbp21_set_voltage()
71 lnbp21->config &= lnbp21->override_and; lnbp21_set_voltage()
80 .buf = &lnbp21->config, lnbp21_enable_high_lnb_voltage()
81 .len = sizeof(lnbp21->config) }; lnbp21_enable_high_lnb_voltage()
84 lnbp21->config |= LNBP21_LLC; lnbp21_enable_high_lnb_voltage()
86 lnbp21->config &= ~LNBP21_LLC; lnbp21_enable_high_lnb_voltage()
88 lnbp21->config |= lnbp21->override_or; lnbp21_enable_high_lnb_voltage()
89 lnbp21->config &= lnbp21->override_and; lnbp21_enable_high_lnb_voltage()
99 .buf = &lnbp21->config, lnbp21_set_tone()
100 .len = sizeof(lnbp21->config) }; lnbp21_set_tone()
104 lnbp21->config &= ~LNBP21_TEN; lnbp21_set_tone()
107 lnbp21->config |= LNBP21_TEN; lnbp21_set_tone()
113 lnbp21->config |= lnbp21->override_or; lnbp21_set_tone()
114 lnbp21->config &= lnbp21->override_and; lnbp21_set_tone()
131 u8 override_clear, u8 i2c_addr, u8 config) lnbx2x_attach()
138 lnbp21->config = config; lnbx2x_attach()
129 lnbx2x_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, u8 override_set, u8 override_clear, u8 i2c_addr, u8 config) lnbx2x_attach() argument
H A Dlnbp22.c47 u8 config[4]; member in struct:lnbp22
58 .buf = (char *)&lnbp22->config, lnbp22_set_voltage()
59 .len = sizeof(lnbp22->config), lnbp22_set_voltage()
65 lnbp22->config[3] = 0x60; /* Power down */ lnbp22_set_voltage()
70 lnbp22->config[3] |= LNBP22_EN; lnbp22_set_voltage()
73 lnbp22->config[3] |= (LNBP22_EN | LNBP22_VSEL); lnbp22_set_voltage()
79 dprintk(1, "%s: 0x%02x)\n", __func__, lnbp22->config[3]); lnbp22_set_voltage()
89 .buf = (char *)&lnbp22->config, lnbp22_enable_high_lnb_voltage()
90 .len = sizeof(lnbp22->config), lnbp22_enable_high_lnb_voltage()
95 lnbp22->config[3] |= LNBP22_LLC; lnbp22_enable_high_lnb_voltage()
97 lnbp22->config[3] &= ~LNBP22_LLC; lnbp22_enable_high_lnb_voltage()
121 lnbp22->config[0] = 0x00; /* ? */ lnbp22_attach()
122 lnbp22->config[1] = 0x28; /* ? */ lnbp22_attach()
123 lnbp22->config[2] = 0x48; /* ? */ lnbp22_attach()
124 lnbp22->config[3] = 0x60; /* Power down */ lnbp22_attach()
H A Disl6405.c39 u8 config; member in struct:isl6405
51 .buf = &isl6405->config, isl6405_set_voltage()
52 .len = sizeof(isl6405->config) }; isl6405_set_voltage()
55 isl6405->config &= ~(ISL6405_VSEL2 | ISL6405_EN2); isl6405_set_voltage()
60 isl6405->config |= ISL6405_EN2; isl6405_set_voltage()
63 isl6405->config |= (ISL6405_EN2 | ISL6405_VSEL2); isl6405_set_voltage()
69 isl6405->config &= ~(ISL6405_VSEL1 | ISL6405_EN1); isl6405_set_voltage()
74 isl6405->config |= ISL6405_EN1; isl6405_set_voltage()
77 isl6405->config |= (ISL6405_EN1 | ISL6405_VSEL1); isl6405_set_voltage()
83 isl6405->config |= isl6405->override_or; isl6405_set_voltage()
84 isl6405->config &= isl6405->override_and; isl6405_set_voltage()
93 .buf = &isl6405->config, isl6405_enable_high_lnb_voltage()
94 .len = sizeof(isl6405->config) }; isl6405_enable_high_lnb_voltage()
98 isl6405->config |= ISL6405_LLC2; isl6405_enable_high_lnb_voltage()
100 isl6405->config &= ~ISL6405_LLC2; isl6405_enable_high_lnb_voltage()
103 isl6405->config |= ISL6405_LLC1; isl6405_enable_high_lnb_voltage()
105 isl6405->config &= ~ISL6405_LLC1; isl6405_enable_high_lnb_voltage()
107 isl6405->config |= isl6405->override_or; isl6405_enable_high_lnb_voltage()
108 isl6405->config &= isl6405->override_and; isl6405_enable_high_lnb_voltage()
132 isl6405->config = ISL6405_ISEL2; isl6405_attach()
134 isl6405->config = ISL6405_ISEL1; isl6405_attach()
H A Disl6421.c39 u8 config; member in struct:isl6421
51 .buf = &isl6421->config, isl6421_set_voltage()
52 .len = sizeof(isl6421->config) }; isl6421_set_voltage()
54 isl6421->config &= ~(ISL6421_VSEL1 | ISL6421_EN1); isl6421_set_voltage()
60 isl6421->config |= ISL6421_EN1; isl6421_set_voltage()
63 isl6421->config |= (ISL6421_EN1 | ISL6421_VSEL1); isl6421_set_voltage()
69 isl6421->config |= isl6421->override_or; isl6421_set_voltage()
70 isl6421->config &= isl6421->override_and; isl6421_set_voltage()
79 .buf = &isl6421->config, isl6421_enable_high_lnb_voltage()
80 .len = sizeof(isl6421->config) }; isl6421_enable_high_lnb_voltage()
83 isl6421->config |= ISL6421_LLC1; isl6421_enable_high_lnb_voltage()
85 isl6421->config &= ~ISL6421_LLC1; isl6421_enable_high_lnb_voltage()
87 isl6421->config |= isl6421->override_or; isl6421_enable_high_lnb_voltage()
88 isl6421->config &= isl6421->override_and; isl6421_enable_high_lnb_voltage()
98 .buf = &isl6421->config, isl6421_set_tone()
99 .len = sizeof(isl6421->config) }; isl6421_set_tone()
103 isl6421->config |= ISL6421_ENT1; isl6421_set_tone()
106 isl6421->config &= ~ISL6421_ENT1; isl6421_set_tone()
112 isl6421->config |= isl6421->override_or; isl6421_set_tone()
113 isl6421->config &= isl6421->override_and; isl6421_set_tone()
136 isl6421->config = ISL6421_ISEL1; isl6421_attach()
H A Dtda8261.c32 const struct tda8261_config *config; member in struct:tda8261_state
41 const struct tda8261_config *config = state->config; tda8261_read() local
43 struct i2c_msg msg = { .addr = config->addr, .flags = I2C_M_RD,.buf = buf, .len = 1 }; tda8261_read()
53 const struct tda8261_config *config = state->config; tda8261_write() local
55 struct i2c_msg msg = { .addr = config->addr, .flags = 0, .buf = buf, .len = 4 }; tda8261_write()
114 const struct tda8261_config *config = state->config; tda8261_set_state() local
130 N = (frequency + (div_tab[config->step_size] - 1)) / div_tab[config->step_size]; tda8261_set_state()
132 __func__, config->step_size, div_tab[config->step_size], N, N); tda8261_set_state()
136 buf[2] = (0x01 << 7) | ((ref_div[config->step_size] & 0x07) << 1); tda8261_set_state()
198 const struct tda8261_config *config, tda8261_attach()
206 state->config = config; tda8261_attach()
212 fe->ops.tuner_ops.info.frequency_step = div_tab[config->step_size]; tda8261_attach()
213 // fe->ops.tuner_ops.tuner_name = &config->buf; tda8261_attach()
197 tda8261_attach(struct dvb_frontend *fe, const struct tda8261_config *config, struct i2c_adapter *i2c) tda8261_attach() argument
H A Dsp887x.h21 extern struct dvb_frontend* sp887x_attach(const struct sp887x_config* config,
24 static inline struct dvb_frontend* sp887x_attach(const struct sp887x_config* config, sp887x_attach() argument
H A Dtda665x.c31 const struct tda665x_config *config; member in struct:tda665x_state
39 const struct tda665x_config *config = state->config; tda665x_read() local
41 struct i2c_msg msg = { .addr = config->addr, .flags = I2C_M_RD, .buf = buf, .len = 2 }; tda665x_read()
55 const struct tda665x_config *config = state->config; tda665x_write() local
57 struct i2c_msg msg = { .addr = config->addr, .flags = 0, .buf = buf, .len = length }; tda665x_write()
119 const struct tda665x_config *config = state->config; tda665x_set_state() local
127 if ((frequency < config->frequency_max) || (frequency > config->frequency_min)) { tda665x_set_state()
132 frequency += config->frequency_offst; tda665x_set_state()
133 frequency *= config->ref_multiplier; tda665x_set_state()
134 frequency += config->ref_divider >> 1; tda665x_set_state()
135 frequency /= config->ref_divider; tda665x_set_state()
224 const struct tda665x_config *config, tda665x_attach()
234 state->config = config; tda665x_attach()
241 memcpy(info->name, config->name, sizeof(config->name)); tda665x_attach()
242 info->frequency_min = config->frequency_min; tda665x_attach()
243 info->frequency_max = config->frequency_max; tda665x_attach()
244 info->frequency_step = config->frequency_offst; tda665x_attach()
223 tda665x_attach(struct dvb_frontend *fe, const struct tda665x_config *config, struct i2c_adapter *i2c) tda665x_attach() argument
H A Dlgs8gxx.c60 msg.addr = priv->config->demod_address; lgs8gxx_write_reg()
61 if (priv->config->prod != LGS8GXX_PROD_LGS8G75 && reg >= 0xC0) lgs8gxx_write_reg()
88 dev_addr = priv->config->demod_address; lgs8gxx_read_reg()
89 if (priv->config->prod != LGS8GXX_PROD_LGS8G75 && reg >= 0xC0) lgs8gxx_read_reg()
134 const struct lgs8gxx_config *config = priv->config; lgs8gxx_set_ad_mode() local
140 ((config->ext_adc) ? 0x80 : 0x00) | lgs8gxx_set_ad_mode()
141 ((config->if_neg_center) ? 0x04 : 0x00) | lgs8gxx_set_ad_mode()
142 ((config->if_freq == 0) ? 0x08 : 0x00) | /* Baseband */ lgs8gxx_set_ad_mode()
143 ((config->adc_signed) ? 0x02 : 0x00) | lgs8gxx_set_ad_mode()
144 ((config->if_neg_edge) ? 0x01 : 0x00); lgs8gxx_set_ad_mode()
146 if (config->ext_adc && lgs8gxx_set_ad_mode()
147 (config->prod == LGS8GXX_PROD_LGS8G52)) { lgs8gxx_set_ad_mode()
162 if_clk = priv->config->if_clk_freq; lgs8gxx_set_if_freq()
177 if (priv->config->prod == LGS8GXX_PROD_LGS8G75) { lgs8gxx_set_if_freq()
199 if (priv->config->prod == LGS8GXX_PROD_LGS8G75) lgs8gxx_get_afc_phase()
212 val *= priv->config->if_clk_freq; lgs8gxx_get_afc_phase()
221 u8 prod = priv->config->prod; lgs8gxx_set_mode_auto()
259 if (priv->config->prod == LGS8GXX_PROD_LGS8G52) lgs8gxx_set_mode_auto()
269 if (priv->config->prod == LGS8GXX_PROD_LGS8G75) { lgs8gxx_set_mode_manual()
297 if (priv->config->prod == LGS8GXX_PROD_LGS8913) lgs8gxx_set_mode_manual()
314 if (priv->config->prod == LGS8GXX_PROD_LGS8G75) lgs8gxx_is_locked()
321 if (priv->config->prod == LGS8GXX_PROD_LGS8G75) lgs8gxx_is_locked()
334 if (priv->config->prod == LGS8GXX_PROD_LGS8G75) { lgs8gxx_wait_ca_lock()
356 if (priv->config->prod == LGS8GXX_PROD_LGS8G75) { lgs8gxx_is_autodetect_finished()
385 if (priv->config->prod == LGS8GXX_PROD_LGS8G75) { lgs8gxx_autolock_gi()
422 if (priv->config->prod == LGS8GXX_PROD_LGS8G75) { lgs8gxx_auto_detect()
459 if (priv->config->prod != LGS8GXX_PROD_LGS8G75) { lgs8gxx_auto_detect()
496 if (priv->config->prod == LGS8GXX_PROD_LGS8913) { lgs8gxx_auto_lock()
503 if (priv->config->prod == LGS8GXX_PROD_LGS8G75) { lgs8gxx_auto_lock()
511 if (priv->config->prod == LGS8GXX_PROD_LGS8913) lgs8gxx_auto_lock()
537 reg_addr = (priv->config->prod == LGS8GXX_PROD_LGS8G75) ? 0x30 : 0xC2; lgs8gxx_set_mpeg_mode()
560 if (priv->config->prod != LGS8GXX_PROD_LGS8G75) lgs8g75_set_adc_vpp()
628 const struct lgs8gxx_config *config = priv->config; lgs8gxx_init() local
636 if (config->prod == LGS8GXX_PROD_LGS8G75) lgs8gxx_init()
637 lgs8g75_set_adc_vpp(priv, config->adc_vpp); lgs8gxx_init()
640 err = lgs8gxx_set_mpeg_mode(priv, config->serial_ts, lgs8gxx_init()
641 config->ts_clk_pol, lgs8gxx_init()
642 config->ts_clk_gated); lgs8gxx_init()
646 if (config->prod == LGS8GXX_PROD_LGS8913) lgs8gxx_init()
648 lgs8gxx_set_if_freq(priv, priv->config->if_freq); lgs8gxx_init()
747 if (priv->config->prod == LGS8GXX_PROD_LGS8G75) { lgs8gxx_read_status()
761 if (priv->config->prod == LGS8GXX_PROD_LGS8913) { lgs8gxx_read_status()
879 if (priv->config->prod == LGS8GXX_PROD_LGS8913) lgs8gxx_read_signal_strength()
881 else if (priv->config->prod == LGS8GXX_PROD_LGS8G75) lgs8gxx_read_signal_strength()
893 if (priv->config->prod == LGS8GXX_PROD_LGS8G75) lgs8gxx_read_snr()
916 if (priv->config->prod == LGS8GXX_PROD_LGS8G75) { packet_counter_start()
936 if (priv->config->prod == LGS8GXX_PROD_LGS8G75) { packet_counter_stop()
958 if (priv->config->prod == LGS8GXX_PROD_LGS8G75) { lgs8gxx_read_ber()
989 if (priv->config->tuner_address == 0) lgs8gxx_i2c_gate_ctrl()
992 u8 v = 0x80 | priv->config->tuner_address; lgs8gxx_i2c_gate_ctrl()
1029 struct dvb_frontend *lgs8gxx_attach(const struct lgs8gxx_config *config, lgs8gxx_attach() argument
1037 if (config == NULL || i2c == NULL) lgs8gxx_attach()
1044 priv->config = config; lgs8gxx_attach()
1050 __func__, priv->config->demod_address); lgs8gxx_attach()
1060 if (config->prod == LGS8GXX_PROD_LGS8G75) lgs8gxx_attach()
H A Dtda10048.c143 /* We'll cache and update the attach config settings */
144 struct tda10048_config config; member in struct:tda10048_state
223 struct tda10048_config *config = &state->config; tda10048_writereg() local
227 .addr = config->demod_address, tda10048_writereg()
242 struct tda10048_config *config = &state->config; tda10048_readreg() local
247 { .addr = config->demod_address, tda10048_readreg()
249 { .addr = config->demod_address, tda10048_readreg()
266 struct tda10048_config *config = &state->config; tda10048_writeregbulk() local
282 msg.addr = config->demod_address; tda10048_writeregbulk()
422 struct tda10048_config *config = &state->config; tda10048_set_if() local
431 if_freq_khz = config->dtv6_if_freq_khz; tda10048_set_if()
434 if_freq_khz = config->dtv7_if_freq_khz; tda10048_set_if()
437 if_freq_khz = config->dtv8_if_freq_khz; tda10048_set_if()
445 if ((pll_tab[i].clk_freq_khz == config->clk_freq_khz) && tda10048_set_if()
480 struct tda10048_config *config = &state->config; tda10048_firmware_upload() local
485 u8 wlen = config->fwbulkwritelen; tda10048_firmware_upload()
691 struct tda10048_config *config = &state->config; tda10048_i2c_gate_ctrl() local
694 if (config->disable_gate_access) tda10048_i2c_gate_ctrl()
763 struct tda10048_config *config = &state->config; tda10048_init() local
780 tda10048_output_mode(fe, config->output_mode); tda10048_init()
783 tda10048_set_inversion(fe, config->inversion); tda10048_init()
1061 struct tda10048_config *config = &state->config; tda10048_establish_defaults() local
1063 /* Validate/default the config */ tda10048_establish_defaults()
1064 if (config->dtv6_if_freq_khz == 0) { tda10048_establish_defaults()
1065 config->dtv6_if_freq_khz = TDA10048_IF_4300; tda10048_establish_defaults()
1069 config->dtv6_if_freq_khz); tda10048_establish_defaults()
1072 if (config->dtv7_if_freq_khz == 0) { tda10048_establish_defaults()
1073 config->dtv7_if_freq_khz = TDA10048_IF_4300; tda10048_establish_defaults()
1077 config->dtv7_if_freq_khz); tda10048_establish_defaults()
1080 if (config->dtv8_if_freq_khz == 0) { tda10048_establish_defaults()
1081 config->dtv8_if_freq_khz = TDA10048_IF_4300; tda10048_establish_defaults()
1085 config->dtv8_if_freq_khz); tda10048_establish_defaults()
1088 if (config->clk_freq_khz == 0) { tda10048_establish_defaults()
1089 config->clk_freq_khz = TDA10048_CLK_16000; tda10048_establish_defaults()
1093 config->clk_freq_khz); tda10048_establish_defaults()
1099 struct dvb_frontend *tda10048_attach(const struct tda10048_config *config, tda10048_attach() argument
1111 /* setup the state and clone the config */ tda10048_attach()
1112 memcpy(&state->config, config, sizeof(*config)); tda10048_attach()
1114 state->fwloaded = config->no_firmware; tda10048_attach()
1127 if (config->set_pll) { tda10048_attach()
1128 state->pll_mfactor = config->pll_m; tda10048_attach()
1129 state->pll_nfactor = config->pll_n; tda10048_attach()
1130 state->pll_pfactor = config->pll_p; tda10048_attach()
H A Dor51211.c59 const struct or51211_config* config; member in struct:or51211_state
134 state->config->reset(fe); or51211_load_firmware()
136 if (i2c_writebytes(state,state->config->demod_address,tudata,585)) { or51211_load_firmware()
142 if (i2c_writebytes(state,state->config->demod_address, or51211_load_firmware()
149 if (i2c_writebytes(state,state->config->demod_address,run_buf,2)) { or51211_load_firmware()
156 if (i2c_writebytes(state,state->config->demod_address,run_buf,2)) { or51211_load_firmware()
171 state->config->setmode(fe, mode); or51211_setmode()
173 if (i2c_writebytes(state,state->config->demod_address,run_buf,2)) { or51211_setmode()
180 if (i2c_writebytes(state,state->config->demod_address,run_buf,2)) { or51211_setmode()
196 if (i2c_writebytes(state,state->config->demod_address,cmd_buf,3)) { or51211_setmode()
206 if (i2c_writebytes(state,state->config->demod_address,rec_buf,3)) { or51211_setmode()
210 if (i2c_readbytes(state,state->config->demod_address,&rec_buf[10],2)) { or51211_setmode()
248 if (i2c_writebytes(state,state->config->demod_address,snd_buf,3)) { or51211_read_status()
253 if (i2c_readbytes(state,state->config->demod_address,rec_buf,2)) { or51211_read_status()
306 if (i2c_writebytes(state,state->config->demod_address,snd_buf,3)) { or51211_read_snr()
310 if (i2c_readbytes(state,state->config->demod_address,rec_buf,2)) { or51211_read_snr()
366 const struct or51211_config* config = state->config; or51211_init() local
376 ret = config->request_firmware(fe, &fw, or51211_init()
402 if (i2c_writebytes(state,state->config->demod_address, or51211_init()
415 if (i2c_writebytes(state,state->config->demod_address, or51211_init()
421 if (i2c_readbytes(state,state->config->demod_address, or51211_init()
432 if (i2c_writebytes(state,state->config->demod_address, or51211_init()
438 if (i2c_readbytes(state,state->config->demod_address, or51211_init()
450 if (i2c_writebytes(state,state->config->demod_address, or51211_init()
457 if (i2c_readbytes(state,state->config->demod_address, or51211_init()
478 if (i2c_writebytes(state,state->config->demod_address, or51211_init()
484 if (i2c_readbytes(state,state->config->demod_address, or51211_init()
507 state->config->sleep(fe); or51211_release()
513 struct dvb_frontend* or51211_attach(const struct or51211_config* config, or51211_attach() argument
524 state->config = config; or51211_attach()
H A Dsi21xx.h17 extern struct dvb_frontend *si21xx_attach(const struct si21xx_config *config,
21 const struct si21xx_config *config, struct i2c_adapter *i2c) si21xx_attach()
20 si21xx_attach( const struct si21xx_config *config, struct i2c_adapter *i2c) si21xx_attach() argument
H A Dlnbh25.c33 * @config: Registers configuration:
41 u8 config[3]; member in struct:lnbh25_priv
100 .len = sizeof(priv->config), lnbh25_set_voltage()
101 .buf = priv->config lnbh25_set_voltage()
120 priv->config[1] = data1_reg; lnbh25_set_voltage()
124 priv->config[0], priv->config[1], priv->config[2]); lnbh25_set_voltage()
165 priv->config[0] = 0x02; lnbh25_attach()
166 priv->config[1] = 0x00; lnbh25_attach()
167 priv->config[2] = cfg->data2_config; lnbh25_attach()
H A Dix2505v.c39 const struct ix2505v_config *config; member in struct:ix2505v_state
64 u8 addr = state->config->tuner_address; ix2505v_read_status_reg()
81 { .addr = state->config->tuner_address, .flags = 0, ix2505v_write()
147 if (state->config->tuner_gain) ix2505v_set_params()
148 gain = (state->config->tuner_gain < 4) ix2505v_set_params()
149 ? state->config->tuner_gain : 0; ix2505v_set_params()
153 if (state->config->tuner_chargepump) ix2505v_set_params()
154 cc = state->config->tuner_chargepump; ix2505v_set_params()
244 if (state->config->min_delay_ms) ix2505v_set_params()
245 msleep(state->config->min_delay_ms); ix2505v_set_params()
273 const struct ix2505v_config *config, ix2505v_attach()
279 if (NULL == config) { ix2505v_attach()
280 deb_i2c("%s: no config ", __func__); ix2505v_attach()
288 state->config = config; ix2505v_attach()
291 if (state->config->tuner_write_only) { ix2505v_attach()
311 __func__, fe->ops.tuner_ops.info.name, config->tuner_address); ix2505v_attach()
272 ix2505v_attach(struct dvb_frontend *fe, const struct ix2505v_config *config, struct i2c_adapter *i2c) ix2505v_attach() argument
H A Dves1820.c38 const struct ves1820_config* config; member in struct:ves1820_state
62 struct i2c_msg msg = {.addr = state->config->demod_address,.flags = 0,.buf = buf,.len = 3 }; ves1820_writereg()
79 {.addr = state->config->demod_address,.flags = 0,.buf = b0,.len = 2}, ves1820_readreg()
80 {.addr = state->config->demod_address,.flags = I2C_M_RD,.buf = b1,.len = 1} ves1820_readreg()
99 if (!state->config->invert) reg0 |= 0x20; ves1820_setup_reg0()
102 if (!state->config->invert) reg0 &= ~0x20; ves1820_setup_reg0()
126 if (symbolrate > state->config->xin / 2) ves1820_set_symbolrate()
127 symbolrate = state->config->xin / 2; ves1820_set_symbolrate()
132 if (symbolrate < state->config->xin / 16) ves1820_set_symbolrate()
134 if (symbolrate < state->config->xin / 32) ves1820_set_symbolrate()
136 if (symbolrate < state->config->xin / 64) ves1820_set_symbolrate()
140 fpxin = state->config->xin * 10; ves1820_set_symbolrate()
163 fin = state->config->xin >> 4; ves1820_set_symbolrate()
172 BDRI = (((state->config->xin << 5) / symbolrate) + 1) / 2; ves1820_set_symbolrate()
201 if (state->config->selagc) ves1820_init()
237 ves1820_writereg(state, 2, ves1820_inittab[2] | (state->config->selagc ? 0x08 : 0)); ves1820_set_parameters()
330 if (!state->config->invert) { ves1820_get_frontend()
374 struct dvb_frontend* ves1820_attach(const struct ves1820_config* config, ves1820_attach() argument
387 state->config = config; ves1820_attach()
400 state->frontend.ops.info.symbol_rate_min = (state->config->xin / 2) / 64; /* SACLK/64 == (XIN/2)/64 */ ves1820_attach()
401 state->frontend.ops.info.symbol_rate_max = (state->config->xin / 2) / 4; /* SACLK/4 */ ves1820_attach()
H A Dstv0367.h44 dvb_frontend *stv0367ter_attach(const struct stv0367_config *config,
47 dvb_frontend *stv0367cab_attach(const struct stv0367_config *config,
51 dvb_frontend *stv0367ter_attach(const struct stv0367_config *config, stv0367ter_attach() argument
58 dvb_frontend *stv0367cab_attach(const struct stv0367_config *config, stv0367cab_attach() argument
H A Dstb0899_drv.c234 .addr = state->config->demod_address, _stb0899_read_reg()
239 .addr = state->config->demod_address, _stb0899_read_reg()
303 .addr = state->config->demod_address, _stb0899_read_s2reg()
310 .addr = state->config->demod_address, _stb0899_read_s2reg()
317 .addr = state->config->demod_address, _stb0899_read_s2reg()
406 .addr = state->config->demod_address, stb0899_write_s2reg()
413 .addr = state->config->demod_address, stb0899_write_s2reg()
460 .addr = state->config->demod_address, stb0899_read_regs()
465 .addr = state->config->demod_address, stb0899_read_regs()
508 .addr = state->config->demod_address, stb0899_write_regs()
568 mclk = (div + 1) * state->config->xtal_freq / 6; stb0899_get_mclk()
585 dprintk(state->verbose, FE_DEBUG, 1, "state->config=%p", state->config); stb0899_set_mclk()
586 mdiv = ((6 * Mclk) / state->config->xtal_freq) - 1; stb0899_set_mclk()
597 struct stb0899_config *config = state->config; stb0899_postproc() local
598 const struct stb0899_postproc *postproc = config->postproc; stb0899_postproc()
899 struct stb0899_config *config = state->config; stb0899_init() local
905 for (i = 0; config->init_dev[i].address != 0xffff; i++) stb0899_init()
906 stb0899_write_reg(state, config->init_dev[i].address, config->init_dev[i].data); stb0899_init()
910 for (i = 0; config->init_s2_demod[i].offset != 0xffff; i++) stb0899_init()
912 config->init_s2_demod[i].base_address, stb0899_init()
913 config->init_s2_demod[i].offset, stb0899_init()
914 config->init_s2_demod[i].data); stb0899_init()
918 for (i = 0; config->init_s1_demod[i].address != 0xffff; i++) stb0899_init()
919 stb0899_write_reg(state, config->init_s1_demod[i].address, config->init_s1_demod[i].data); stb0899_init()
923 for (i = 0; config->init_s2_fec[i].offset != 0xffff; i++) stb0899_init()
925 config->init_s2_fec[i].base_address, stb0899_init()
926 config->init_s2_fec[i].offset, stb0899_init()
927 config->init_s2_fec[i].data); stb0899_init()
931 for (i = 0; config->init_tst[i].address != 0xffff; i++) stb0899_init()
932 stb0899_write_reg(state, config->init_tst[i].address, config->init_tst[i].data); stb0899_init()
1415 struct stb0899_config *config = state->config; stb0899_set_iterations() local
1425 if (iter_scale > config->ldpc_max_iter) stb0899_set_iterations()
1426 iter_scale = config->ldpc_max_iter; stb0899_set_iterations()
1438 struct stb0899_config *config = state->config; stb0899_search() local
1455 if (state->config->tuner_set_rfsiggain) { stb0899_search()
1462 state->config->tuner_set_rfsiggain(fe, gain); stb0899_search()
1466 stb0899_set_mclk(state, config->lo_clk); stb0899_search()
1468 stb0899_set_mclk(state, config->hi_clk); stb0899_search()
1489 if (state->config->tuner_set_bandwidth) stb0899_search()
1490 state->config->tuner_set_bandwidth(fe, (13 * (stb0899_carr_width(state) + SearchRange)) / 10); stb0899_search()
1491 if (state->config->tuner_get_bandwidth) stb0899_search()
1492 state->config->tuner_get_bandwidth(fe, &internal->tuner_bw); stb0899_search()
1528 if (state->config->tuner_set_bandwidth) stb0899_search()
1529 state->config->tuner_set_bandwidth(fe, (stb0899_carr_width(state) + SearchRange)); stb0899_search()
1530 if (state->config->tuner_get_bandwidth) stb0899_search()
1531 state->config->tuner_get_bandwidth(fe, &internal->tuner_bw); stb0899_search()
1631 struct dvb_frontend *stb0899_attach(struct stb0899_config *config, struct i2c_adapter *i2c) stb0899_attach() argument
1640 state->config = config; stb0899_attach()
1645 state->internal.inversion = config->inversion; stb0899_attach()
H A Ds921.h29 extern struct dvb_frontend *s921_attach(const struct s921_config *config,
34 const struct s921_config *config, struct i2c_adapter *i2c) s921_attach()
33 s921_attach( const struct s921_config *config, struct i2c_adapter *i2c) s921_attach() argument
/linux-4.4.14/drivers/gpu/drm/msm/adreno/
H A Dadreno_device.c112 struct adreno_platform_config *config; adreno_load_gpu() local
122 config = pdev->dev.platform_data; adreno_load_gpu()
123 rev = config->rev; adreno_load_gpu()
124 info = adreno_info(config->rev); adreno_load_gpu()
170 static struct adreno_platform_config config = {}; adreno_bind() local
182 config.rev = ADRENO_REV((val >> 24) & 0xff, adreno_bind()
186 config.fast_rate = 0; adreno_bind()
187 config.slow_rate = ~0; for_each_child_of_node()
197 config.fast_rate = max(config.fast_rate, val); for_each_child_of_node()
198 config.slow_rate = min(config.slow_rate, val); for_each_child_of_node()
203 if (!config.fast_rate) {
212 config.fast_rate = 450000000;
213 config.slow_rate = 27000000;
214 config.bus_freq = 4;
215 config.rev = ADRENO_REV(3, 2, 1, 0);
217 config.fast_rate = 400000000;
218 config.slow_rate = 27000000;
219 config.bus_freq = 4;
222 config.rev = ADRENO_REV(3, 2, 0, 2);
225 config.rev = ADRENO_REV(3, 2, 0, 1);
227 config.rev = ADRENO_REV(3, 2, 0, 0);
230 config.fast_rate = 400000000;
231 config.slow_rate = 320000000;
232 config.bus_freq = 4;
235 config.rev = ADRENO_REV(3, 2, 1, 0);
237 config.rev = ADRENO_REV(3, 2, 1, 1);
240 config.fast_rate = 400000000;
241 config.slow_rate = 27000000;
242 config.bus_freq = 3;
246 config.rev = ADRENO_REV(3, 0, 5, 2);
248 config.rev = ADRENO_REV(3, 0, 5, 0);
252 config.bus_scale_table = pdata->bus_scale_table;
255 dev->platform_data = &config;
/linux-4.4.14/drivers/media/platform/exynos4-is/
H A Dfimc-is-param.c46 src = &is->config[is->config_index].global.shotmode; __fimc_is_hw_update_param_global_shotmode()
55 src = &is->config[is->config_index].sensor.frame_rate; __fimc_is_hw_update_param_sensor_framerate()
62 struct chain_config *cfg = &is->config[is->config_index]; __fimc_is_hw_update_param()
154 __hw_param_copy(&par->fd.config, &cfg->fd.config); __fimc_is_hw_update_param()
166 struct chain_config *config = &is->config[is->config_index]; __get_pending_param_count() local
171 count = hweight32(config->p_region_index[0]); __get_pending_param_count()
172 count += hweight32(config->p_region_index[1]); __get_pending_param_count()
184 p_index = &is->config[id].p_region_index[0]; __is_hw_update_params()
214 isp = &is->config[is->config_index].isp; __is_get_frame_size()
226 isp = &is->config[index].isp; __is_set_frame_size()
227 drc = &is->config[index].drc; __is_set_frame_size()
228 fd = &is->config[index].fd; __is_set_frame_size()
245 &is->config[index].p_region_index[0])) __is_set_frame_size()
272 sensor = &is->config[index].sensor; __is_set_sensor()
273 isp = &is->config[index].isp; __is_set_sensor()
294 isp = &is->config[is->config_index].isp; __is_set_init_isp_aa()
314 struct isp_param *isp = &is->config[index].isp; __is_set_isp_flash()
328 isp = &is->config[index].isp; __is_set_isp_awb()
342 isp = &is->config[index].isp; __is_set_isp_effect()
355 isp = &is->config[index].isp; __is_set_isp_iso()
370 p_index = &is->config[index].p_region_index[0]; __is_set_isp_adjust()
371 isp = &is->config[index].isp; __is_set_isp_adjust()
417 p_index = &is->config[index].p_region_index[0]; __is_set_isp_metering()
418 isp = &is->config[index].isp; __is_set_isp_metering()
451 isp = &is->config[index].isp; __is_set_isp_afc()
465 drc = &is->config[index].drc; __is_set_drc_control()
478 p_index = &is->config[index].p_region_index[1]; __is_set_fd_control()
479 fd = &is->config[index].fd; __is_set_fd_control()
493 p_index = &is->config[index].p_region_index[1]; __is_set_fd_config_maxface()
494 fd = &is->config[index].fd; __is_set_fd_config_maxface()
496 fd->config.max_number = val; __is_set_fd_config_maxface()
499 fd->config.cmd = FD_CONFIG_COMMAND_MAXIMUM_NUMBER; __is_set_fd_config_maxface()
500 fd->config.err = ERROR_FD_NONE; __is_set_fd_config_maxface()
503 fd->config.cmd |= FD_CONFIG_COMMAND_MAXIMUM_NUMBER; __is_set_fd_config_maxface()
513 p_index = &is->config[index].p_region_index[1]; __is_set_fd_config_rollangle()
514 fd = &is->config[index].fd; __is_set_fd_config_rollangle()
516 fd->config.roll_angle = val; __is_set_fd_config_rollangle()
519 fd->config.cmd = FD_CONFIG_COMMAND_ROLL_ANGLE; __is_set_fd_config_rollangle()
520 fd->config.err = ERROR_FD_NONE; __is_set_fd_config_rollangle()
523 fd->config.cmd |= FD_CONFIG_COMMAND_ROLL_ANGLE; __is_set_fd_config_rollangle()
533 p_index = &is->config[index].p_region_index[1]; __is_set_fd_config_yawangle()
534 fd = &is->config[index].fd; __is_set_fd_config_yawangle()
536 fd->config.yaw_angle = val; __is_set_fd_config_yawangle()
539 fd->config.cmd = FD_CONFIG_COMMAND_YAW_ANGLE; __is_set_fd_config_yawangle()
540 fd->config.err = ERROR_FD_NONE; __is_set_fd_config_yawangle()
543 fd->config.cmd |= FD_CONFIG_COMMAND_YAW_ANGLE; __is_set_fd_config_yawangle()
553 p_index = &is->config[index].p_region_index[1]; __is_set_fd_config_smilemode()
554 fd = &is->config[index].fd; __is_set_fd_config_smilemode()
556 fd->config.smile_mode = val; __is_set_fd_config_smilemode()
559 fd->config.cmd = FD_CONFIG_COMMAND_SMILE_MODE; __is_set_fd_config_smilemode()
560 fd->config.err = ERROR_FD_NONE; __is_set_fd_config_smilemode()
563 fd->config.cmd |= FD_CONFIG_COMMAND_SMILE_MODE; __is_set_fd_config_smilemode()
573 p_index = &is->config[index].p_region_index[1]; __is_set_fd_config_blinkmode()
574 fd = &is->config[index].fd; __is_set_fd_config_blinkmode()
576 fd->config.blink_mode = val; __is_set_fd_config_blinkmode()
579 fd->config.cmd = FD_CONFIG_COMMAND_BLINK_MODE; __is_set_fd_config_blinkmode()
580 fd->config.err = ERROR_FD_NONE; __is_set_fd_config_blinkmode()
583 fd->config.cmd |= FD_CONFIG_COMMAND_BLINK_MODE; __is_set_fd_config_blinkmode()
593 p_index = &is->config[index].p_region_index[1]; __is_set_fd_config_eyedetect()
594 fd = &is->config[index].fd; __is_set_fd_config_eyedetect()
596 fd->config.eye_detect = val; __is_set_fd_config_eyedetect()
599 fd->config.cmd = FD_CONFIG_COMMAND_EYES_DETECT; __is_set_fd_config_eyedetect()
600 fd->config.err = ERROR_FD_NONE; __is_set_fd_config_eyedetect()
603 fd->config.cmd |= FD_CONFIG_COMMAND_EYES_DETECT; __is_set_fd_config_eyedetect()
613 p_index = &is->config[index].p_region_index[1]; __is_set_fd_config_mouthdetect()
614 fd = &is->config[index].fd; __is_set_fd_config_mouthdetect()
616 fd->config.mouth_detect = val; __is_set_fd_config_mouthdetect()
619 fd->config.cmd = FD_CONFIG_COMMAND_MOUTH_DETECT; __is_set_fd_config_mouthdetect()
620 fd->config.err = ERROR_FD_NONE; __is_set_fd_config_mouthdetect()
623 fd->config.cmd |= FD_CONFIG_COMMAND_MOUTH_DETECT; __is_set_fd_config_mouthdetect()
633 p_index = &is->config[index].p_region_index[1]; __is_set_fd_config_orientation()
634 fd = &is->config[index].fd; __is_set_fd_config_orientation()
636 fd->config.orientation = val; __is_set_fd_config_orientation()
639 fd->config.cmd = FD_CONFIG_COMMAND_ORIENTATION; __is_set_fd_config_orientation()
640 fd->config.err = ERROR_FD_NONE; __is_set_fd_config_orientation()
643 fd->config.cmd |= FD_CONFIG_COMMAND_ORIENTATION; __is_set_fd_config_orientation()
653 p_index = &is->config[index].p_region_index[1]; __is_set_fd_config_orientation_val()
654 fd = &is->config[index].fd; __is_set_fd_config_orientation_val()
656 fd->config.orientation_value = val; __is_set_fd_config_orientation_val()
659 fd->config.cmd = FD_CONFIG_COMMAND_ORIENTATION_VALUE; __is_set_fd_config_orientation_val()
660 fd->config.err = ERROR_FD_NONE; __is_set_fd_config_orientation_val()
663 fd->config.cmd |= FD_CONFIG_COMMAND_ORIENTATION_VALUE; __is_set_fd_config_orientation_val()
677 global = &is->config[index].global; fimc_is_set_initial_params()
678 isp = &is->config[index].isp; fimc_is_set_initial_params()
679 drc = &is->config[index].drc; fimc_is_set_initial_params()
680 fd = &is->config[index].fd; fimc_is_set_initial_params()
681 p_index = &is->config[index].p_region_index[0]; fimc_is_set_initial_params()
/linux-4.4.14/fs/fscache/
H A Dobject-list.c24 unsigned long config; /* display configuration */ member in struct:fscache_objlist_data
171 unsigned long config = data->config; fscache_objlist_show() local
179 if (config & (FSCACHE_OBJLIST_CONFIG_KEY | fscache_objlist_show()
182 if (config & FSCACHE_OBJLIST_CONFIG_KEY) fscache_objlist_show()
184 if ((config & (FSCACHE_OBJLIST_CONFIG_KEY | fscache_objlist_show()
188 if (config & FSCACHE_OBJLIST_CONFIG_AUX) fscache_objlist_show()
198 if (config & (FSCACHE_OBJLIST_CONFIG_KEY | fscache_objlist_show()
211 if (!(config & yes)) \ fscache_objlist_show()
214 if (!(config & no)) \ fscache_objlist_show()
220 if (~config) { fscache_objlist_show()
277 config & FSCACHE_OBJLIST_CONFIG_KEY) fscache_objlist_show()
282 config & FSCACHE_OBJLIST_CONFIG_AUX) fscache_objlist_show()
292 if (config & FSCACHE_OBJLIST_CONFIG_KEY) fscache_objlist_show()
320 unsigned long config; fscache_objlist_config() local
329 config = 0; fscache_objlist_config()
337 case 'K': config |= FSCACHE_OBJLIST_CONFIG_KEY; break; fscache_objlist_config()
338 case 'A': config |= FSCACHE_OBJLIST_CONFIG_AUX; break; fscache_objlist_config()
339 case 'C': config |= FSCACHE_OBJLIST_CONFIG_COOKIE; break; fscache_objlist_config()
340 case 'c': config |= FSCACHE_OBJLIST_CONFIG_NOCOOKIE; break; fscache_objlist_config()
341 case 'B': config |= FSCACHE_OBJLIST_CONFIG_BUSY; break; fscache_objlist_config()
342 case 'b': config |= FSCACHE_OBJLIST_CONFIG_IDLE; break; fscache_objlist_config()
343 case 'W': config |= FSCACHE_OBJLIST_CONFIG_PENDWR; break; fscache_objlist_config()
344 case 'w': config |= FSCACHE_OBJLIST_CONFIG_NOPENDWR; break; fscache_objlist_config()
345 case 'R': config |= FSCACHE_OBJLIST_CONFIG_READS; break; fscache_objlist_config()
346 case 'r': config |= FSCACHE_OBJLIST_CONFIG_NOREADS; break; fscache_objlist_config()
347 case 'S': config |= FSCACHE_OBJLIST_CONFIG_WORK; break; fscache_objlist_config()
348 case 's': config |= FSCACHE_OBJLIST_CONFIG_NOWORK; break; fscache_objlist_config()
355 if (!(config & (FSCACHE_OBJLIST_CONFIG_COOKIE | FSCACHE_OBJLIST_CONFIG_NOCOOKIE))) fscache_objlist_config()
356 config |= FSCACHE_OBJLIST_CONFIG_COOKIE | FSCACHE_OBJLIST_CONFIG_NOCOOKIE; fscache_objlist_config()
357 if (!(config & (FSCACHE_OBJLIST_CONFIG_BUSY | FSCACHE_OBJLIST_CONFIG_IDLE))) fscache_objlist_config()
358 config |= FSCACHE_OBJLIST_CONFIG_BUSY | FSCACHE_OBJLIST_CONFIG_IDLE; fscache_objlist_config()
359 if (!(config & (FSCACHE_OBJLIST_CONFIG_PENDWR | FSCACHE_OBJLIST_CONFIG_NOPENDWR))) fscache_objlist_config()
360 config |= FSCACHE_OBJLIST_CONFIG_PENDWR | FSCACHE_OBJLIST_CONFIG_NOPENDWR; fscache_objlist_config()
361 if (!(config & (FSCACHE_OBJLIST_CONFIG_READS | FSCACHE_OBJLIST_CONFIG_NOREADS))) fscache_objlist_config()
362 config |= FSCACHE_OBJLIST_CONFIG_READS | FSCACHE_OBJLIST_CONFIG_NOREADS; fscache_objlist_config()
363 if (!(config & (FSCACHE_OBJLIST_CONFIG_EVENTS | FSCACHE_OBJLIST_CONFIG_NOEVENTS))) fscache_objlist_config()
364 config |= FSCACHE_OBJLIST_CONFIG_EVENTS | FSCACHE_OBJLIST_CONFIG_NOEVENTS; fscache_objlist_config()
365 if (!(config & (FSCACHE_OBJLIST_CONFIG_WORK | FSCACHE_OBJLIST_CONFIG_NOWORK))) fscache_objlist_config()
366 config |= FSCACHE_OBJLIST_CONFIG_WORK | FSCACHE_OBJLIST_CONFIG_NOWORK; fscache_objlist_config()
368 data->config = config; fscache_objlist_config()
373 data->config = ULONG_MAX; fscache_objlist_config()
/linux-4.4.14/arch/arm/mach-omap1/
H A Dusb.c62 omap_otg_init(struct omap_usb_config *config) omap_otg_init() argument
76 if (config->pins[0] > 2) /* alt pingroup 2 */ omap_otg_init()
78 syscon |= config->usb0_init(config->pins[0], is_usb0_device(config)); omap_otg_init()
79 syscon |= config->usb1_init(config->pins[1]); omap_otg_init()
80 syscon |= config->usb2_init(config->pins[2], alt_pingroup); omap_otg_init()
84 syscon = config->hmc_mode; omap_otg_init()
87 if (config->otg) omap_otg_init()
96 printk("USB: hmc %d", config->hmc_mode); omap_otg_init()
98 printk(", usb2 alt %d wires", config->pins[2]); omap_otg_init()
99 else if (config->pins[0]) omap_otg_init()
100 printk(", usb0 %d wires%s", config->pins[0], omap_otg_init()
101 is_usb0_device(config) ? " (dev)" : ""); omap_otg_init()
102 if (config->pins[1]) omap_otg_init()
103 printk(", usb1 %d wires", config->pins[1]); omap_otg_init()
104 if (!alt_pingroup && config->pins[2]) omap_otg_init()
105 printk(", usb2 %d wires", config->pins[2]); omap_otg_init()
106 if (config->otg) omap_otg_init()
107 printk(", Mini-AB on usb%d", config->otg - 1); omap_otg_init()
127 if (config->otg || config->register_dev) { omap_otg_init()
128 struct platform_device *udc_device = config->udc_device; omap_otg_init()
132 udc_device->dev.platform_data = config; omap_otg_init()
140 if (config->otg || config->register_host) { omap_otg_init()
141 struct platform_device *ohci_device = config->ohci_device; omap_otg_init()
145 ohci_device->dev.platform_data = config; omap_otg_init()
153 if (config->otg) { omap_otg_init()
154 struct platform_device *otg_device = config->otg_device; omap_otg_init()
158 otg_device->dev.platform_data = config; omap_otg_init()
169 void omap_otg_init(struct omap_usb_config *config) {} omap_otg_init() argument
360 /* alternate pin config, external transceiver */ omap1_usb0_init()
362 printk(KERN_ERR "no usb0 alt pin config on 15xx\n"); omap1_usb0_init()
561 static void __init omap_1510_usb_init(struct omap_usb_config *config) omap_1510_usb_init() argument
566 config->usb0_init(config->pins[0], is_usb0_device(config)); omap_1510_usb_init()
567 config->usb1_init(config->pins[1]); omap_1510_usb_init()
568 config->usb2_init(config->pins[2], 0); omap_1510_usb_init()
571 val |= (config->hmc_mode << 1); omap_1510_usb_init()
574 printk("USB: hmc %d", config->hmc_mode); omap_1510_usb_init()
575 if (config->pins[0]) omap_1510_usb_init()
576 printk(", usb0 %d wires%s", config->pins[0], omap_1510_usb_init()
577 is_usb0_device(config) ? " (dev)" : ""); omap_1510_usb_init()
578 if (config->pins[1]) omap_1510_usb_init()
579 printk(", usb1 %d wires", config->pins[1]); omap_1510_usb_init()
580 if (config->pins[2]) omap_1510_usb_init()
581 printk(", usb2 %d wires", config->pins[2]); omap_1510_usb_init()
604 if (config->register_dev) { omap_1510_usb_init()
607 udc_device.dev.platform_data = config; omap_1510_usb_init()
616 if (config->register_host) { omap_1510_usb_init()
619 ohci_device.dev.platform_data = config; omap_1510_usb_init()
629 static inline void omap_1510_usb_init(struct omap_usb_config *config) {} omap_1510_usb_init() argument
H A Dfb.c54 void __init omapfb_set_lcd_config(const struct omap_lcd_config *config) omapfb_set_lcd_config() argument
56 omapfb_config.lcd = *config; omapfb_set_lcd_config()
63 * If the board file has not set the lcd config with omap_init_fb()
76 void __init omapfb_set_lcd_config(const struct omap_lcd_config *config) omapfb_set_lcd_config() argument
/linux-4.4.14/drivers/media/tuners/
H A Dmt2063.h13 struct mt2063_config *config,
19 struct mt2063_config *config, mt2063_attach()
18 mt2063_attach(struct dvb_frontend *fe, struct mt2063_config *config, struct i2c_adapter *i2c) mt2063_attach() argument
H A Dfc0011.h8 /** struct fc0011_config - fc0011 hardware config
29 const struct fc0011_config *config);
34 const struct fc0011_config *config) fc0011_attach()
32 fc0011_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, const struct fc0011_config *config) fc0011_attach() argument
/linux-4.4.14/arch/mips/mm/
H A Dc-tx39.c45 unsigned long flags, config; tx39h_flush_icache_all() local
49 config = read_c0_conf(); tx39h_flush_icache_all()
50 write_c0_conf(config & ~TX39_CONF_ICE); tx39h_flush_icache_all()
53 write_c0_conf(config); tx39h_flush_icache_all()
86 unsigned long flags, config; tx39_blast_icache_page() local
89 config = read_c0_conf(); tx39_blast_icache_page()
90 write_c0_conf(config & ~TX39_CONF_ICE); tx39_blast_icache_page()
93 write_c0_conf(config); tx39_blast_icache_page()
99 unsigned long flags, config; tx39_blast_icache_page_indexed() local
102 config = read_c0_conf(); tx39_blast_icache_page_indexed()
103 write_c0_conf(config & ~TX39_CONF_ICE); tx39_blast_icache_page_indexed()
106 write_c0_conf(config); tx39_blast_icache_page_indexed()
112 unsigned long flags, config; tx39_blast_icache() local
115 config = read_c0_conf(); tx39_blast_icache()
116 write_c0_conf(config & ~TX39_CONF_ICE); tx39_blast_icache()
119 write_c0_conf(config); tx39_blast_icache()
241 unsigned long flags, config; tx39_flush_icache_range() local
244 config = read_c0_conf(); tx39_flush_icache_range()
245 write_c0_conf(config & ~TX39_CONF_ICE); tx39_flush_icache_range()
248 write_c0_conf(config); tx39_flush_icache_range()
296 unsigned long config; tx39_flush_cache_sigtramp() local
303 config = read_c0_conf(); tx39_flush_cache_sigtramp()
304 write_c0_conf(config & ~TX39_CONF_ICE); tx39_flush_cache_sigtramp()
307 write_c0_conf(config); tx39_flush_cache_sigtramp()
313 unsigned long config; tx39_probe_cache() local
315 config = read_c0_conf(); tx39_probe_cache()
317 icache_size = 1 << (10 + ((config & TX39_CONF_ICS_MASK) >> tx39_probe_cache()
319 dcache_size = 1 << (10 + ((config & TX39_CONF_DCS_MASK) >> tx39_probe_cache()
349 unsigned long config; tx39_cache_init() local
351 config = read_c0_conf(); tx39_cache_init()
352 config &= ~TX39_CONF_WBON; tx39_cache_init()
353 write_c0_conf(config); tx39_cache_init()
/linux-4.4.14/tools/testing/selftests/memfd/
H A DMakefile15 fuse_mnt.o: CFLAGS += $(shell pkg-config fuse --cflags)
16 fuse_mnt: LDFLAGS += $(shell pkg-config fuse --libs)
/linux-4.4.14/sound/soc/ux500/
H A Dux500_msp_i2s.c176 struct ux500_msp_config *config) configure_protocol()
182 data_size = config->data_size; configure_protocol()
183 msp->def_elem_len = config->def_elem_len; configure_protocol()
184 if (config->default_protdesc == 1) { configure_protocol()
185 if (config->protocol >= MSP_INVALID_PROTOCOL) { configure_protocol()
191 (struct msp_protdesc *)&prot_descs[config->protocol]; configure_protocol()
193 protdesc = (struct msp_protdesc *)&config->protdesc; configure_protocol()
203 if (config->direction & MSP_DIR_TX) configure_protocol()
205 if (config->direction & MSP_DIR_RX) configure_protocol()
219 static int setup_bitclk(struct ux500_msp *msp, struct ux500_msp_config *config) setup_bitclk() argument
231 if (config->default_protdesc) setup_bitclk()
233 (struct msp_protdesc *)&prot_descs[config->protocol]; setup_bitclk()
235 protdesc = (struct msp_protdesc *)&config->protdesc; setup_bitclk()
237 switch (config->protocol) { setup_bitclk()
241 sck_div = config->f_inputclk / (config->frame_freq * setup_bitclk()
247 sck_div = config->f_inputclk / (config->frame_freq * setup_bitclk()
254 config->protocol); setup_bitclk()
263 msp->f_bitclk = (config->f_inputclk)/(sck_div + 1); setup_bitclk()
275 struct ux500_msp_config *config) configure_multichannel()
281 if (config->default_protdesc == 1) { configure_multichannel()
282 if (config->protocol >= MSP_INVALID_PROTOCOL) { configure_multichannel()
285 __func__, config->protocol); configure_multichannel()
289 &prot_descs[config->protocol]; configure_multichannel()
291 protdesc = (struct msp_protdesc *)&config->protdesc; configure_multichannel()
294 mcfg = &config->multichannel_config; configure_multichannel()
353 static int enable_msp(struct ux500_msp *msp, struct ux500_msp_config *config) enable_msp() argument
359 configure_protocol(msp, config); enable_msp()
360 setup_bitclk(msp, config); enable_msp()
361 if (config->multichannel_configured == 1) { enable_msp()
362 status = configure_multichannel(msp, config); enable_msp()
370 if ((config->direction & MSP_DIR_RX) && enable_msp()
376 if ((config->direction == MSP_DIR_TX) && enable_msp()
384 if (config->direction & MSP_DIR_RX) enable_msp()
386 if (config->direction & MSP_DIR_TX) enable_msp()
390 writel(config->iodelay, msp->registers + MSP_IODLY); enable_msp()
435 struct ux500_msp_config *config) ux500_msp_i2s_open()
448 tx_sel = (config->direction & MSP_DIR_TX) > 0; ux500_msp_i2s_open()
449 rx_sel = (config->direction & MSP_DIR_RX) > 0; ux500_msp_i2s_open()
469 /* First do the global config register */ ux500_msp_i2s_open()
475 new_reg = (config->tx_clk_sel | config->rx_clk_sel | ux500_msp_i2s_open()
476 config->rx_fsync_pol | config->tx_fsync_pol | ux500_msp_i2s_open()
477 config->rx_fsync_sel | config->tx_fsync_sel | ux500_msp_i2s_open()
478 config->rx_fifo_config | config->tx_fifo_config | ux500_msp_i2s_open()
479 config->srg_clk_sel | config->loopback_enable | ux500_msp_i2s_open()
480 config->tx_data_enable); ux500_msp_i2s_open()
487 res = enable_msp(msp, config); ux500_msp_i2s_open()
493 if (config->loopback_enable & 0x80) ux500_msp_i2s_open()
175 configure_protocol(struct ux500_msp *msp, struct ux500_msp_config *config) configure_protocol() argument
274 configure_multichannel(struct ux500_msp *msp, struct ux500_msp_config *config) configure_multichannel() argument
434 ux500_msp_i2s_open(struct ux500_msp *msp, struct ux500_msp_config *config) ux500_msp_i2s_open() argument
/linux-4.4.14/drivers/misc/
H A Dspear13xx_pcie_gadget.c57 struct spear_pcie_gadget_config config; member in struct:pcie_gadget_target
62 ssize_t (*show)(struct spear_pcie_gadget_config *config,
64 ssize_t (*store)(struct spear_pcie_gadget_config *config,
89 static void spear_dbi_read_reg(struct spear_pcie_gadget_config *config, spear_dbi_read_reg() argument
92 struct pcie_app_reg __iomem *app_reg = config->va_app_base; spear_dbi_read_reg()
98 va_address = (ulong)config->va_dbi_base + (where & ~0x3); spear_dbi_read_reg()
111 static void spear_dbi_write_reg(struct spear_pcie_gadget_config *config, spear_dbi_write_reg() argument
114 struct pcie_app_reg __iomem *app_reg = config->va_app_base; spear_dbi_write_reg()
120 va_address = (ulong)config->va_dbi_base + (where & ~0x3); spear_dbi_write_reg()
135 static int pci_find_own_next_cap_ttl(struct spear_pcie_gadget_config *config, pci_find_own_next_cap_ttl() argument
141 spear_dbi_read_reg(config, pos, 1, &pos); pci_find_own_next_cap_ttl()
145 spear_dbi_read_reg(config, pos + PCI_CAP_LIST_ID, 1, &id); pci_find_own_next_cap_ttl()
155 static int pci_find_own_next_cap(struct spear_pcie_gadget_config *config, pci_find_own_next_cap() argument
160 return pci_find_own_next_cap_ttl(config, pos, cap, &ttl); pci_find_own_next_cap()
163 static int pci_find_own_cap_start(struct spear_pcie_gadget_config *config, pci_find_own_cap_start() argument
168 spear_dbi_read_reg(config, PCI_STATUS, 2, &status); pci_find_own_cap_start()
200 static int pci_find_own_capability(struct spear_pcie_gadget_config *config, pci_find_own_capability() argument
206 spear_dbi_read_reg(config, PCI_HEADER_TYPE, 1, &hdr_type); pci_find_own_capability()
208 pos = pci_find_own_cap_start(config, hdr_type); pci_find_own_capability()
210 pos = pci_find_own_next_cap(config, pos, cap); pci_find_own_capability()
266 struct spear_pcie_gadget_config *config = to_target(item) pcie_gadget_int_type_store() local
271 spear_dbi_write_reg(config, PCI_INTERRUPT_LINE, 1, 1); pcie_gadget_int_type_store()
274 vector = config->requested_msi; pcie_gadget_int_type_store()
280 spear_dbi_write_reg(config, PCI_INTERRUPT_LINE, 1, 0); pcie_gadget_int_type_store()
281 cap = pci_find_own_capability(config, PCI_CAP_ID_MSI); pcie_gadget_int_type_store()
282 spear_dbi_read_reg(config, cap + PCI_MSI_FLAGS, 1, &flags); pcie_gadget_int_type_store()
285 spear_dbi_write_reg(config, cap + PCI_MSI_FLAGS, 1, flags); pcie_gadget_int_type_store()
289 strcpy(config->int_type, buf); pcie_gadget_int_type_store()
296 struct spear_pcie_gadget_config *config = to_target(item) pcie_gadget_no_of_msi_show() local
305 cap = pci_find_own_capability(config, PCI_CAP_ID_MSI); pcie_gadget_no_of_msi_show()
306 spear_dbi_read_reg(config, cap + PCI_MSI_FLAGS, 1, &flags); pcie_gadget_no_of_msi_show()
313 config->configured_msi = vector; pcie_gadget_no_of_msi_show()
327 if (config->requested_msi > 32) pcie_gadget_no_of_msi_store()
328 config->requested_msi = 32; pcie_gadget_no_of_msi_store()
357 struct spear_pcie_gadget_config *config = to_target(item) pcie_gadget_send_msi_store() local
358 struct pcie_app_reg __iomem *app_reg = config->va_app_base; pcie_gadget_send_msi_store()
367 if (!config->configured_msi) pcie_gadget_send_msi_store()
370 if (vector >= config->configured_msi) pcie_gadget_send_msi_store()
447 struct spear_pcie_gadget_config *config = to_target(item) pcie_gadget_bar0_size_store() local
478 config->bar0_size = size; pcie_gadget_bar0_size_store()
479 spear_dbi_write_reg(config, PCIE_BAR0_MASK_REG, 4, size - 1); pcie_gadget_bar0_size_store()
497 struct spear_pcie_gadget_config *config = to_target(item) pcie_gadget_bar0_address_store() local
498 struct pcie_app_reg __iomem *app_reg = config->va_app_base; pcie_gadget_bar0_address_store()
506 address &= ~(config->bar0_size - 1); pcie_gadget_bar0_address_store()
507 if (config->va_bar0_address) pcie_gadget_bar0_address_store()
508 iounmap(config->va_bar0_address); pcie_gadget_bar0_address_store()
509 config->va_bar0_address = ioremap(address, config->bar0_size); pcie_gadget_bar0_address_store()
510 if (!config->va_bar0_address) pcie_gadget_bar0_address_store()
544 struct spear_pcie_gadget_config *config = to_target(item) pcie_gadget_bar0_data_show() local
547 if (!config->va_bar0_address) pcie_gadget_bar0_data_show()
550 data = readl((ulong)config->va_bar0_address + config->bar0_rw_offset); pcie_gadget_bar0_data_show()
558 struct spear_pcie_gadget_config *config = to_target(item) pcie_gadget_bar0_data_store() local
566 if (!config->va_bar0_address) pcie_gadget_bar0_data_store()
569 writel(data, (ulong)config->va_bar0_address + config->bar0_rw_offset); pcie_gadget_bar0_data_store()
606 static void spear13xx_pcie_device_init(struct spear_pcie_gadget_config *config) spear13xx_pcie_device_init() argument
608 struct pcie_app_reg __iomem *app_reg = config->va_app_base; spear13xx_pcie_device_init()
612 writel(config->base, &app_reg->in0_mem_addr_start); spear13xx_pcie_device_init()
638 config->bar0_size = INBOUND_ADDR_MASK + 1; spear13xx_pcie_device_init()
639 spear_dbi_write_reg(config, PCIE_BAR0_MASK_REG, 4, INBOUND_ADDR_MASK); spear13xx_pcie_device_init()
640 spear_dbi_write_reg(config, PCI_BASE_ADDRESS_0, 4, 0xC); spear13xx_pcie_device_init()
641 config->va_bar0_address = ioremap(SPEAR13XX_SYSRAM1_BASE, spear13xx_pcie_device_init()
642 config->bar0_size); spear13xx_pcie_device_init()
659 spear_dbi_write_reg(config, PCI_INTERRUPT_LINE, 1, 1); spear13xx_pcie_device_init()
669 struct spear_pcie_gadget_config *config; spear_pcie_gadget_probe() local
682 config = &target->config; spear_pcie_gadget_probe()
686 config->va_app_base = devm_ioremap_resource(&pdev->dev, res0); spear_pcie_gadget_probe()
687 if (IS_ERR(config->va_app_base)) { spear_pcie_gadget_probe()
689 return PTR_ERR(config->va_app_base); spear_pcie_gadget_probe()
694 config->base = (void __iomem *)res1->start; spear_pcie_gadget_probe()
696 config->va_dbi_base = devm_ioremap_resource(&pdev->dev, res1); spear_pcie_gadget_probe()
697 if (IS_ERR(config->va_dbi_base)) { spear_pcie_gadget_probe()
699 return PTR_ERR(config->va_dbi_base); spear_pcie_gadget_probe()
763 spear13xx_pcie_device_init(config); spear_pcie_gadget_probe()
/linux-4.4.14/arch/x86/kernel/cpu/
H A Dperf_event_intel_uncore_nhmex.c189 DEFINE_UNCORE_FORMAT_ATTR(event, event, "config:0-7");
190 DEFINE_UNCORE_FORMAT_ATTR(event5, event, "config:1-5");
191 DEFINE_UNCORE_FORMAT_ATTR(umask, umask, "config:8-15");
192 DEFINE_UNCORE_FORMAT_ATTR(edge, edge, "config:18");
193 DEFINE_UNCORE_FORMAT_ATTR(inv, inv, "config:23");
194 DEFINE_UNCORE_FORMAT_ATTR(thresh8, thresh, "config:24-31");
195 DEFINE_UNCORE_FORMAT_ATTR(counter, counter, "config:6-7");
207 u64 config; nhmex_uncore_msr_disable_box() local
210 rdmsrl(msr, config); nhmex_uncore_msr_disable_box()
211 config &= ~((1ULL << uncore_num_counters(box)) - 1); nhmex_uncore_msr_disable_box()
214 config &= ~NHMEX_W_PMON_GLOBAL_FIXED_EN; nhmex_uncore_msr_disable_box()
215 wrmsrl(msr, config); nhmex_uncore_msr_disable_box()
222 u64 config; nhmex_uncore_msr_enable_box() local
225 rdmsrl(msr, config); nhmex_uncore_msr_enable_box()
226 config |= (1ULL << uncore_num_counters(box)) - 1; nhmex_uncore_msr_enable_box()
229 config |= NHMEX_W_PMON_GLOBAL_FIXED_EN; nhmex_uncore_msr_enable_box()
230 wrmsrl(msr, config); nhmex_uncore_msr_enable_box()
246 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT22); nhmex_uncore_msr_enable_event()
248 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT0); nhmex_uncore_msr_enable_event()
350 ctr = (hwc->config & NHMEX_B_PMON_CTR_MASK) >> nhmex_bbox_hw_config()
352 ev_sel = (hwc->config & NHMEX_B_PMON_CTL_EV_SEL_MASK) >> nhmex_bbox_hw_config()
365 reg1->config = event->attr.config1; nhmex_bbox_hw_config()
366 reg2->config = event->attr.config2; nhmex_bbox_hw_config()
377 wrmsrl(reg1->reg, reg1->config); nhmex_bbox_msr_enable_event()
378 wrmsrl(reg1->reg + 1, reg2->config); nhmex_bbox_msr_enable_event()
381 (hwc->config & NHMEX_B_PMON_CTL_EV_SEL_MASK)); nhmex_bbox_msr_enable_event()
386 * Use bits 6-7 in the event config to select counter.
441 if ((hwc->config & NHMEX_PMON_CTL_EV_SEL_MASK) != nhmex_sbox_hw_config()
450 reg1->config = event->attr.config1; nhmex_sbox_hw_config()
451 reg2->config = event->attr.config2; nhmex_sbox_hw_config()
463 wrmsrl(reg1->reg + 1, reg1->config); nhmex_sbox_msr_enable_event()
464 wrmsrl(reg1->reg + 2, reg2->config); nhmex_sbox_msr_enable_event()
467 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT22); nhmex_sbox_msr_enable_event()
546 static bool nhmex_mbox_get_shared_reg(struct intel_uncore_box *box, int idx, u64 config) nhmex_mbox_get_shared_reg() argument
556 if (!atomic_read(&er->ref) || er->config == config) { nhmex_mbox_get_shared_reg()
558 er->config = config; nhmex_mbox_get_shared_reg()
590 if (!atomic_read(&er->ref) || !((er->config ^ config) & mask)) { nhmex_mbox_get_shared_reg()
598 er->config &= ~mask; nhmex_mbox_get_shared_reg()
599 er->config |= (config & mask); nhmex_mbox_get_shared_reg()
627 u64 config = reg1->config; nhmex_mbox_alter_er() local
632 config &= NHMEX_M_PMON_ZDP_CTL_FVC_EVENT_MASK(idx); nhmex_mbox_alter_er()
634 config &= WSMEX_M_PMON_ZDP_CTL_FVC_EVENT_MASK(idx); nhmex_mbox_alter_er()
637 config <<= 3 * idx; nhmex_mbox_alter_er()
640 config >>= 3 * idx; nhmex_mbox_alter_er()
645 config |= NHMEX_M_PMON_ZDP_CTL_FVC_MASK & reg1->config; nhmex_mbox_alter_er()
647 config |= WSMEX_M_PMON_ZDP_CTL_FVC_MASK & reg1->config; nhmex_mbox_alter_er()
648 config |= NHMEX_M_PMON_ZDP_CTL_FVC_MASK & reg1->config; nhmex_mbox_alter_er()
652 hwc->config += idx << NHMEX_M_PMON_CTL_INC_SEL_SHIFT; nhmex_mbox_alter_er()
654 hwc->config -= idx << NHMEX_M_PMON_CTL_INC_SEL_SHIFT; nhmex_mbox_alter_er()
655 reg1->config = config; nhmex_mbox_alter_er()
658 return config; nhmex_mbox_alter_er()
667 u64 config1 = reg1->config; nhmex_mbox_get_constraint()
688 !nhmex_mbox_get_shared_reg(box, reg2->idx, reg2->config)) nhmex_mbox_get_constraint()
769 * config1 to pass two MSRs' config. nhmex_mbox_hw_config()
772 if (er->event != (event->hw.config & er->config_mask)) nhmex_mbox_hw_config()
781 /* always use the 32~63 bits to pass the PLD config */ nhmex_mbox_hw_config()
791 reg1->config = event->attr.config1; nhmex_mbox_hw_config()
801 reg2->config = event->attr.config2; nhmex_mbox_hw_config()
803 reg2->config = ~0ULL; nhmex_mbox_hw_config()
816 u64 config; nhmex_mbox_shared_reg_config() local
819 return box->shared_regs[idx].config; nhmex_mbox_shared_reg_config()
823 config = er->config; nhmex_mbox_shared_reg_config()
825 return config; nhmex_mbox_shared_reg_config()
846 if (reg2->config != ~0ULL) { nhmex_mbox_msr_enable_event()
848 reg2->config & NHMEX_M_PMON_ADDR_MATCH_MASK); nhmex_mbox_msr_enable_event()
850 (reg2->config >> NHMEX_M_PMON_ADDR_MASK_SHIFT)); nhmex_mbox_msr_enable_event()
855 wrmsrl(hwc->config_base, hwc->config | NHMEX_PMON_CTL_EN_BIT0); nhmex_mbox_msr_enable_event()
858 DEFINE_UNCORE_FORMAT_ATTR(count_mode, count_mode, "config:2-3");
859 DEFINE_UNCORE_FORMAT_ATTR(storage_mode, storage_mode, "config:4-5");
860 DEFINE_UNCORE_FORMAT_ATTR(wrap_mode, wrap_mode, "config:6");
861 DEFINE_UNCORE_FORMAT_ATTR(flag_mode, flag_mode, "config:7");
862 DEFINE_UNCORE_FORMAT_ATTR(inc_sel, inc_sel, "config:9-13");
863 DEFINE_UNCORE_FORMAT_ATTR(set_flag_sel, set_flag_sel, "config:19-21");
945 hwc->config -= 1 << NHMEX_R_PMON_CTL_EV_SEL_SHIFT; nhmex_rbox_alter_er()
948 hwc->config += 1 << NHMEX_R_PMON_CTL_EV_SEL_SHIFT; nhmex_rbox_alter_er()
951 /* adjust extra register config */ nhmex_rbox_alter_er()
955 reg1->config >>= 8; nhmex_rbox_alter_er()
959 reg1->config <<= 8; nhmex_rbox_alter_er()
986 config1 = reg1->config; nhmex_rbox_get_constraint()
997 if (!atomic_read(&er->ref) || er->config == reg1->config) { nhmex_rbox_get_constraint()
999 er->config = reg1->config; nhmex_rbox_get_constraint()
1009 !((er->config ^ config1) & mask)) { nhmex_rbox_get_constraint()
1011 er->config &= ~mask; nhmex_rbox_get_constraint()
1012 er->config |= config1 & mask; nhmex_rbox_get_constraint()
1017 (er->config == (hwc->config >> 32) && nhmex_rbox_get_constraint()
1018 er->config1 == reg1->config && nhmex_rbox_get_constraint()
1019 er->config2 == reg2->config)) { nhmex_rbox_get_constraint()
1021 er->config = (hwc->config >> 32); nhmex_rbox_get_constraint()
1022 er->config1 = reg1->config; nhmex_rbox_get_constraint()
1023 er->config2 = reg2->config; nhmex_rbox_get_constraint()
1086 idx = (event->hw.config & NHMEX_R_PMON_CTL_EV_SEL_MASK) >> nhmex_rbox_hw_config()
1092 reg1->config = event->attr.config1; nhmex_rbox_hw_config()
1097 hwc->config |= event->attr.config & (~0ULL << 32); nhmex_rbox_hw_config()
1098 reg2->config = event->attr.config2; nhmex_rbox_hw_config()
1116 wrmsrl(NHMEX_R_MSR_PORTN_IPERF_CFG0(port), reg1->config); nhmex_rbox_msr_enable_event()
1119 wrmsrl(NHMEX_R_MSR_PORTN_IPERF_CFG1(port), reg1->config); nhmex_rbox_msr_enable_event()
1128 hwc->config >> 32); nhmex_rbox_msr_enable_event()
1129 wrmsrl(NHMEX_R_MSR_PORTN_XBR_SET1_MATCH(port), reg1->config); nhmex_rbox_msr_enable_event()
1130 wrmsrl(NHMEX_R_MSR_PORTN_XBR_SET1_MASK(port), reg2->config); nhmex_rbox_msr_enable_event()
1134 hwc->config >> 32); nhmex_rbox_msr_enable_event()
1135 wrmsrl(NHMEX_R_MSR_PORTN_XBR_SET2_MATCH(port), reg1->config); nhmex_rbox_msr_enable_event()
1136 wrmsrl(NHMEX_R_MSR_PORTN_XBR_SET2_MASK(port), reg2->config); nhmex_rbox_msr_enable_event()
1141 (hwc->config & NHMEX_R_PMON_CTL_EV_SEL_MASK)); nhmex_rbox_msr_enable_event()
1144 DEFINE_UNCORE_FORMAT_ATTR(xbr_mm_cfg, xbr_mm_cfg, "config:32-63");
H A Dperf_event_amd_ibs.c60 u64 (*get_count)(u64 config);
181 static int perf_ibs_precise_event(struct perf_event *event, u64 *config) perf_ibs_precise_event() argument
195 switch (event->attr.config) { perf_ibs_precise_event()
197 *config = 0; perf_ibs_precise_event()
202 switch (event->attr.config) { perf_ibs_precise_event()
204 *config = 0; perf_ibs_precise_event()
207 *config = IBS_OP_CNT_CTL; perf_ibs_precise_event()
231 u64 max_cnt, config; perf_ibs_init() local
236 config = event->attr.config; perf_ibs_init()
239 ret = perf_ibs_precise_event(event, &config); perf_ibs_init()
250 if (config & ~perf_ibs->config_mask) perf_ibs_init()
254 if (config & perf_ibs->cnt_mask) perf_ibs_init()
268 max_cnt = config & perf_ibs->cnt_mask; perf_ibs_init()
269 config &= ~perf_ibs->cnt_mask; perf_ibs_init()
285 hwc->config = config; perf_ibs_init()
302 static u64 get_ibs_fetch_count(u64 config) get_ibs_fetch_count() argument
304 return (config & IBS_FETCH_CNT) >> 12; get_ibs_fetch_count()
307 static u64 get_ibs_op_count(u64 config) get_ibs_op_count() argument
311 if (config & IBS_OP_VAL) get_ibs_op_count()
312 count += (config & IBS_OP_MAX_CNT) << 4; /* cnt rolled over */ get_ibs_op_count()
315 count += (config & IBS_OP_CUR_CNT) >> 32; get_ibs_op_count()
322 u64 *config) perf_ibs_event_update()
324 u64 count = perf_ibs->get_count(*config); perf_ibs_event_update()
332 rdmsrl(event->hw.config_base, *config); perf_ibs_event_update()
333 count = perf_ibs->get_count(*config); perf_ibs_event_update()
338 struct hw_perf_event *hwc, u64 config) perf_ibs_enable_event()
340 wrmsrl(hwc->config_base, hwc->config | config | perf_ibs->enable_mask); perf_ibs_enable_event()
351 struct hw_perf_event *hwc, u64 config) perf_ibs_disable_event()
353 config &= ~perf_ibs->cnt_mask; perf_ibs_disable_event()
354 wrmsrl(hwc->config_base, config); perf_ibs_disable_event()
355 config &= ~perf_ibs->enable_mask; perf_ibs_disable_event()
356 wrmsrl(hwc->config_base, config); perf_ibs_disable_event()
390 u64 config; perf_ibs_stop() local
398 rdmsrl(hwc->config_base, config); perf_ibs_stop()
402 perf_ibs_disable_event(perf_ibs, hwc, config); perf_ibs_stop()
414 config &= ~perf_ibs->valid_mask; perf_ibs_stop()
416 perf_ibs_event_update(perf_ibs, event, &config); perf_ibs_stop()
455 PMU_FORMAT_ATTR(rand_en, "config:57"); perf_ibs_read()
456 PMU_FORMAT_ATTR(cnt_ctl, "config:19"); perf_ibs_read()
527 u64 *buf, *config, period; perf_ibs_handle_irq() local
545 config = &ibs_data.regs[0]; perf_ibs_handle_irq()
546 perf_ibs_event_update(perf_ibs, event, config); perf_ibs_handle_irq()
602 perf_ibs_disable_event(perf_ibs, hwc, *config); perf_ibs_handle_irq()
321 perf_ibs_event_update(struct perf_ibs *perf_ibs, struct perf_event *event, u64 *config) perf_ibs_event_update() argument
337 perf_ibs_enable_event(struct perf_ibs *perf_ibs, struct hw_perf_event *hwc, u64 config) perf_ibs_enable_event() argument
350 perf_ibs_disable_event(struct perf_ibs *perf_ibs, struct hw_perf_event *hwc, u64 config) perf_ibs_disable_event() argument
H A Dperf_event_amd_iommu.c27 /* iommu pmu config masks */
28 #define _GET_CSOURCE(ev) ((ev->hw.config & 0xFFULL))
29 #define _GET_DEVID(ev) ((ev->hw.config >> 8) & 0xFFFFULL)
30 #define _GET_PASID(ev) ((ev->hw.config >> 24) & 0xFFFFULL)
31 #define _GET_DOMID(ev) ((ev->hw.config >> 40) & 0xFFFFULL)
32 #define _GET_DEVID_MASK(ev) ((ev->hw.extra_reg.config) & 0xFFFFULL)
33 #define _GET_PASID_MASK(ev) ((ev->hw.extra_reg.config >> 16) & 0xFFFFULL)
34 #define _GET_DOMID_MASK(ev) ((ev->hw.extra_reg.config >> 32) & 0xFFFFULL)
55 PMU_FORMAT_ATTR(csource, "config:0-7");
56 PMU_FORMAT_ATTR(devid, "config:8-23");
57 PMU_FORMAT_ATTR(pasid, "config:24-39");
58 PMU_FORMAT_ATTR(domid, "config:40-55");
201 u64 config, config1; perf_iommu_event_init() local
229 config = event->attr.config; perf_iommu_event_init()
243 /* update the hw_perf_event struct with the iommu config data */ perf_iommu_event_init()
244 hwc->config = config; perf_iommu_event_init()
245 hwc->extra_reg.config = config1; perf_iommu_event_init()
345 u64 config; perf_iommu_stop() local
359 config = hwc->config; perf_iommu_stop()
H A Dperf_event_p4.c620 static u64 p4_get_alias_event(u64 config) p4_get_alias_event() argument
630 if (!(config & P4_CONFIG_ALIASABLE)) p4_get_alias_event()
633 config_match = config & P4_CONFIG_EVENT_ALIAS_MASK; p4_get_alias_event()
648 return config_match | (config & P4_CONFIG_EVENT_ALIAS_IMMUTABLE_BITS); p4_get_alias_event()
705 static struct p4_event_bind *p4_config_get_bind(u64 config) p4_config_get_bind() argument
707 unsigned int evnt = p4_config_unpack_event(config); p4_config_get_bind()
720 u64 config; p4_pmu_event_map() local
722 config = p4_general_events[hw_event]; p4_pmu_event_map()
723 bind = p4_config_get_bind(config); p4_pmu_event_map()
725 config |= p4_config_pack_cccr(P4_CCCR_ESEL(esel)); p4_pmu_event_map()
727 return config; p4_pmu_event_map()
754 v = p4_config_unpack_event(event->attr.config); p4_validate_raw_event()
784 emask = p4_config_unpack_escr(event->attr.config) & P4_ESCR_EVENTMASK_MASK; p4_validate_raw_event()
791 if (p4_config_pebs_has(event->attr.config, P4_PEBS_CONFIG_ENABLE)) p4_validate_raw_event()
794 v = p4_config_unpack_metric(event->attr.config); p4_validate_raw_event()
810 * specific flags in config (and will save some cpu cycles) p4_hw_config()
816 event->hw.config = p4_config_pack_escr(escr) | p4_hw_config()
820 event->hw.config = p4_set_ht_bit(event->hw.config); p4_hw_config()
829 event->attr.config &= P4_CONFIG_MASK; p4_hw_config()
839 event->hw.config |= event->attr.config; p4_hw_config()
840 bind = p4_config_get_bind(event->attr.config); p4_hw_config()
846 event->hw.config |= p4_config_pack_cccr(P4_CCCR_ESEL(esel)); p4_hw_config()
913 p4_config_unpack_cccr(hwc->config) & ~P4_CCCR_ENABLE & ~P4_CCCR_OVF & ~P4_CCCR_RESERVED); p4_pmu_disable_event()
932 static void p4_pmu_enable_pebs(u64 config) p4_pmu_enable_pebs() argument
939 idx = p4_config_unpack_metric(config); p4_pmu_enable_pebs()
952 int thread = p4_ht_config_thread(hwc->config); p4_pmu_enable_event()
953 u64 escr_conf = p4_config_unpack_escr(p4_clear_ht_bit(hwc->config)); p4_pmu_enable_event()
954 unsigned int idx = p4_config_unpack_event(hwc->config); p4_pmu_enable_event()
965 WARN_ON_ONCE(p4_is_event_cascaded(hwc->config)); p4_pmu_enable_event()
972 cccr = p4_config_unpack_cccr(hwc->config); p4_pmu_enable_event()
978 p4_pmu_enable_pebs(hwc->config); p4_pmu_enable_event()
1073 if (!p4_should_swap_ts(hwc->config, cpu)) p4_pmu_swap_config_ts()
1081 escr = p4_config_unpack_escr(hwc->config); p4_pmu_swap_config_ts()
1082 cccr = p4_config_unpack_cccr(hwc->config); p4_pmu_swap_config_ts()
1095 hwc->config = p4_config_pack_escr(escr); p4_pmu_swap_config_ts()
1096 hwc->config |= p4_config_pack_cccr(cccr); p4_pmu_swap_config_ts()
1097 hwc->config |= P4_CONFIG_HT; p4_pmu_swap_config_ts()
1109 hwc->config = p4_config_pack_escr(escr); p4_pmu_swap_config_ts()
1110 hwc->config |= p4_config_pack_cccr(cccr); p4_pmu_swap_config_ts()
1111 hwc->config &= ~P4_CONFIG_HT; p4_pmu_swap_config_ts()
1236 bind = p4_config_get_bind(hwc->config); p4_pmu_schedule_events()
1241 if (hwc->idx != -1 && !p4_should_swap_ts(hwc->config, cpu)) { p4_pmu_schedule_events()
1253 config_alias = p4_get_alias_event(hwc->config); p4_pmu_schedule_events()
1256 hwc->config = config_alias; p4_pmu_schedule_events()
1263 * Unfortunately, p4_pmu_swap_config_ts touches the hwc->config p4_pmu_schedule_events()
1276 if (p4_should_swap_ts(hwc->config, cpu)) p4_pmu_schedule_events()
1290 PMU_FORMAT_ATTR(cccr, "config:0-31" );
1291 PMU_FORMAT_ATTR(escr, "config:32-62");
1292 PMU_FORMAT_ATTR(ht, "config:63" );
/linux-4.4.14/arch/mips/ath25/
H A Dboard.c39 /* config magic found */ check_board_data()
87 /* AR2316 relocates radio config to new location */ find_radio_config()
105 struct ath25_boarddata *config; ath25_find_config() local
117 ath25_board.config = NULL; ath25_find_config()
138 ath25_board.config = (struct ath25_boarddata *)board_data; ath25_find_config()
142 config = ath25_board.config; ath25_find_config()
143 if (is_zero_ether_addr(config->enet0_mac)) { ath25_find_config()
145 config->reset_config_gpio = 0xffff; ath25_find_config()
146 config->sys_led_gpio = 0xffff; ath25_find_config()
147 random_ether_addr(config->wlan0_mac); ath25_find_config()
148 config->wlan0_mac[0] &= ~0x06; ath25_find_config()
149 random_ether_addr(config->enet0_mac); ath25_find_config()
150 random_ether_addr(config->enet1_mac); ath25_find_config()
154 /* Radio config starts 0x100 bytes after board config, regardless ath25_find_config()
166 pr_info("Radio config found at offset 0x%x (0x%x)\n", rcfg - bcfg, ath25_find_config()
174 ether_addr_copy(mac_addr, ath25_board.config->wlan0_mac); ath25_find_config()
/linux-4.4.14/drivers/gpu/drm/i2c/
H A Dadv7511.c237 struct adv7511_video_config config; adv7511_set_config_csc() local
243 config.hdmi_mode = drm_detect_hdmi_monitor(adv7511->edid); adv7511_set_config_csc()
245 config.hdmi_mode = false; adv7511_set_config_csc()
247 hdmi_avi_infoframe_init(&config.avi_infoframe); adv7511_set_config_csc()
249 config.avi_infoframe.scan_mode = HDMI_SCAN_MODE_UNDERSCAN; adv7511_set_config_csc()
252 config.csc_enable = false; adv7511_set_config_csc()
253 config.avi_infoframe.colorspace = HDMI_COLORSPACE_RGB; adv7511_set_config_csc()
255 config.csc_scaling_factor = ADV7511_CSC_SCALING_4; adv7511_set_config_csc()
256 config.csc_coefficents = adv7511_csc_ycbcr_to_rgb; adv7511_set_config_csc()
260 config.hdmi_mode) { adv7511_set_config_csc()
261 config.csc_enable = false; adv7511_set_config_csc()
262 config.avi_infoframe.colorspace = adv7511_set_config_csc()
265 config.csc_enable = true; adv7511_set_config_csc()
266 config.avi_infoframe.colorspace = HDMI_COLORSPACE_RGB; adv7511_set_config_csc()
270 if (config.hdmi_mode) { adv7511_set_config_csc()
273 switch (config.avi_infoframe.colorspace) { adv7511_set_config_csc()
295 adv7511_set_colormap(adv7511, config.csc_enable, adv7511_set_config_csc()
296 config.csc_coefficents, adv7511_set_config_csc()
297 config.csc_scaling_factor); adv7511_set_config_csc()
305 hdmi_avi_infoframe_pack(&config.avi_infoframe, infoframe, adv7511_set_config_csc()
316 const struct adv7511_link_config *config) adv7511_set_link_config()
328 clock_delay = (config->clock_delay + 1200) / 400; adv7511_set_link_config()
329 color_depth = config->input_color_depth == 8 ? 3 adv7511_set_link_config()
330 : (config->input_color_depth == 10 ? 1 : 2); adv7511_set_link_config()
333 if (config->input_colorspace != HDMI_COLORSPACE_YUV422) adv7511_set_link_config()
334 input_id = config->input_clock == ADV7511_INPUT_CLOCK_DDR adv7511_set_link_config()
336 else if (config->input_clock == ADV7511_INPUT_CLOCK_DDR) adv7511_set_link_config()
337 input_id = config->embedded_sync ? 8 : 7; adv7511_set_link_config()
338 else if (config->input_clock == ADV7511_INPUT_CLOCK_2X) adv7511_set_link_config()
339 input_id = config->embedded_sync ? 4 : 3; adv7511_set_link_config()
341 input_id = config->embedded_sync ? 2 : 1; adv7511_set_link_config()
347 (input_styles[config->input_style] << 2)); adv7511_set_link_config()
349 config->input_justification << 3); adv7511_set_link_config()
351 config->sync_pulse << 2); adv7511_set_link_config()
355 adv7511->embedded_sync = config->embedded_sync; adv7511_set_link_config()
356 adv7511->hsync_polarity = config->hsync_polarity; adv7511_set_link_config()
357 adv7511->vsync_polarity = config->vsync_polarity; adv7511_set_link_config()
358 adv7511->rgb = config->input_colorspace == HDMI_COLORSPACE_RGB; adv7511_set_link_config()
768 struct adv7511_link_config *config) adv7511_parse_dt()
773 memset(config, 0, sizeof(*config)); adv7511_parse_dt()
775 of_property_read_u32(np, "adi,input-depth", &config->input_color_depth); adv7511_parse_dt()
776 if (config->input_color_depth != 8 && config->input_color_depth != 10 && adv7511_parse_dt()
777 config->input_color_depth != 12) adv7511_parse_dt()
785 config->input_colorspace = HDMI_COLORSPACE_RGB; adv7511_parse_dt()
787 config->input_colorspace = HDMI_COLORSPACE_YUV422; adv7511_parse_dt()
789 config->input_colorspace = HDMI_COLORSPACE_YUV444; adv7511_parse_dt()
798 config->input_clock = ADV7511_INPUT_CLOCK_1X; adv7511_parse_dt()
800 config->input_clock = ADV7511_INPUT_CLOCK_2X; adv7511_parse_dt()
802 config->input_clock = ADV7511_INPUT_CLOCK_DDR; adv7511_parse_dt()
806 if (config->input_colorspace == HDMI_COLORSPACE_YUV422 || adv7511_parse_dt()
807 config->input_clock != ADV7511_INPUT_CLOCK_1X) { adv7511_parse_dt()
809 &config->input_style); adv7511_parse_dt()
813 if (config->input_style < 1 || config->input_style > 3) adv7511_parse_dt()
822 config->input_justification = adv7511_parse_dt()
825 config->input_justification = adv7511_parse_dt()
828 config->input_justification = adv7511_parse_dt()
834 config->input_style = 1; adv7511_parse_dt()
835 config->input_justification = ADV7511_INPUT_JUSTIFICATION_LEFT; adv7511_parse_dt()
838 of_property_read_u32(np, "adi,clock-delay", &config->clock_delay); adv7511_parse_dt()
839 if (config->clock_delay < -1200 || config->clock_delay > 1600) adv7511_parse_dt()
842 config->embedded_sync = of_property_read_bool(np, "adi,embedded-sync"); adv7511_parse_dt()
845 config->sync_pulse = ADV7511_INPUT_SYNC_PULSE_NONE; adv7511_parse_dt()
846 config->vsync_polarity = ADV7511_SYNC_POLARITY_PASSTHROUGH; adv7511_parse_dt()
847 config->hsync_polarity = ADV7511_SYNC_POLARITY_PASSTHROUGH; adv7511_parse_dt()
315 adv7511_set_link_config(struct adv7511 *adv7511, const struct adv7511_link_config *config) adv7511_set_link_config() argument
767 adv7511_parse_dt(struct device_node *np, struct adv7511_link_config *config) adv7511_parse_dt() argument
/linux-4.4.14/drivers/clk/sunxi/
H A Dclk-factors.c51 struct clk_factors_config *config = factors->config; clk_factors_recalc_rate() local
57 if (config->nwidth != SUNXI_FACTORS_NOT_APPLICABLE) clk_factors_recalc_rate()
58 n = FACTOR_GET(config->nshift, config->nwidth, reg); clk_factors_recalc_rate()
59 if (config->kwidth != SUNXI_FACTORS_NOT_APPLICABLE) clk_factors_recalc_rate()
60 k = FACTOR_GET(config->kshift, config->kwidth, reg); clk_factors_recalc_rate()
61 if (config->mwidth != SUNXI_FACTORS_NOT_APPLICABLE) clk_factors_recalc_rate()
62 m = FACTOR_GET(config->mshift, config->mwidth, reg); clk_factors_recalc_rate()
63 if (config->pwidth != SUNXI_FACTORS_NOT_APPLICABLE) clk_factors_recalc_rate()
64 p = FACTOR_GET(config->pshift, config->pwidth, reg); clk_factors_recalc_rate()
67 rate = (parent_rate * (n + config->n_start) * (k + 1) >> p) / (m + 1); clk_factors_recalc_rate()
126 struct clk_factors_config *config = factors->config; clk_factors_set_rate() local
138 reg = FACTOR_SET(config->nshift, config->nwidth, reg, n); clk_factors_set_rate()
139 reg = FACTOR_SET(config->kshift, config->kwidth, reg, k); clk_factors_set_rate()
140 reg = FACTOR_SET(config->mshift, config->mwidth, reg, m); clk_factors_set_rate()
141 reg = FACTOR_SET(config->pshift, config->pwidth, reg, p); clk_factors_set_rate()
195 factors->config = data->table; sunxi_factors_register()
/linux-4.4.14/drivers/usb/gadget/
H A DMakefile9 libcomposite-y := usbstring.o config.o epautoconf.o
H A Dcomposite.c186 * @config: the configuration
198 int usb_add_function(struct usb_configuration *config, usb_add_function() argument
203 DBG(config->cdev, "adding '%s'/%p to config '%s'/%p\n", usb_add_function()
205 config->label, config); usb_add_function()
210 function->config = config; usb_add_function()
211 list_add_tail(&function->list, &config->functions); usb_add_function()
221 value = function->bind(config, function); usb_add_function()
224 function->config = NULL; usb_add_function()
234 if (!config->fullspeed && function->fs_descriptors) usb_add_function()
235 config->fullspeed = true; usb_add_function()
236 if (!config->highspeed && function->hs_descriptors) usb_add_function()
237 config->highspeed = true; usb_add_function()
238 if (!config->superspeed && function->ss_descriptors) usb_add_function()
239 config->superspeed = true; usb_add_function()
243 DBG(config->cdev, "adding '%s'/%p --> %d\n", usb_add_function()
282 struct usb_composite_dev *cdev = function->config->cdev; usb_function_deactivate()
310 struct usb_composite_dev *cdev = function->config->cdev; usb_function_activate()
331 * @config: configuration associated with the interface
352 int usb_interface_id(struct usb_configuration *config, usb_interface_id() argument
355 unsigned id = config->next_interface_id; usb_interface_id()
358 config->interface[id] = function; usb_interface_id()
359 config->next_interface_id = id + 1; usb_interface_id()
385 static int config_buf(struct usb_configuration *config, config_buf() argument
395 /* write the config descriptor */ config_buf()
400 c->bNumInterfaces = config->next_interface_id; config_buf()
401 c->bConfigurationValue = config->bConfigurationValue; config_buf()
402 c->iConfiguration = config->iConfiguration; config_buf()
403 c->bmAttributes = USB_CONFIG_ATT_ONE | config->bmAttributes; config_buf()
404 c->bMaxPower = encode_bMaxPower(speed, config); config_buf()
407 if (config->descriptors) { config_buf()
409 config->descriptors); config_buf()
417 list_for_each_entry(f, &config->functions, list) { config_buf()
467 /* This is a lookup by config *INDEX* */ config_desc()
478 /* skip OS Descriptors config which is handled separately */ config_desc()
626 DBG(cdev, "reset config\n"); reset_config()
628 list_for_each_entry(f, &cdev->config->functions, list) { reset_config()
634 cdev->config = NULL; reset_config()
655 if (cdev->config) set_config()
663 } else { /* Zero configuration value - need to reset the config */ set_config()
664 if (cdev->config) set_config()
669 INFO(cdev, "%s config #%d: %s\n", set_config()
677 cdev->config = c; set_config()
746 struct usb_configuration *config) usb_add_config_only()
750 if (!config->bConfigurationValue) usb_add_config_only()
755 if (c->bConfigurationValue == config->bConfigurationValue) usb_add_config_only()
759 config->cdev = cdev; usb_add_config_only()
760 list_add_tail(&config->list, &cdev->configs); usb_add_config_only()
762 INIT_LIST_HEAD(&config->functions); usb_add_config_only()
763 config->next_interface_id = 0; usb_add_config_only()
764 memset(config->interface, 0, sizeof(config->interface)); usb_add_config_only()
773 * @config: the configuration, with bConfigurationValue assigned
786 struct usb_configuration *config, usb_add_config()
794 DBG(cdev, "adding config #%u '%s'/%p\n", usb_add_config()
795 config->bConfigurationValue, usb_add_config()
796 config->label, config); usb_add_config()
798 status = usb_add_config_only(cdev, config); usb_add_config()
802 status = bind(config); usb_add_config()
804 while (!list_empty(&config->functions)) { usb_add_config()
807 f = list_first_entry(&config->functions, usb_add_config()
813 f->unbind(config, f); usb_add_config()
817 list_del(&config->list); usb_add_config()
818 config->cdev = NULL; usb_add_config()
823 config->bConfigurationValue, config, usb_add_config()
824 config->superspeed ? " super" : "", usb_add_config()
825 config->highspeed ? " high" : "", usb_add_config()
826 config->fullspeed usb_add_config()
833 struct usb_function *f = config->interface[i]; usb_add_config()
847 DBG(cdev, "added config '%s'/%u --> %d\n", config->label, usb_add_config()
848 config->bConfigurationValue, status); usb_add_config()
854 struct usb_configuration *config) remove_config()
856 while (!list_empty(&config->functions)) { remove_config()
859 f = list_first_entry(&config->functions, remove_config()
864 f->unbind(config, f); remove_config()
868 list_del(&config->list); remove_config()
869 if (config->unbind) { remove_config()
870 DBG(cdev, "unbind config '%s'/%p\n", config->label, config); remove_config()
871 config->unbind(config); remove_config()
879 * @config: the configuration
883 * try to enumerate the device while we are changing the config list.
886 struct usb_configuration *config) usb_remove_config()
892 if (cdev->config == config) usb_remove_config()
897 remove_config(cdev, config); usb_remove_config()
1454 * the work is in config and function specific setup.
1546 struct usb_configuration *config; composite_setup() local
1549 if (cdev->config) composite_setup()
1550 config = cdev->config; composite_setup()
1552 config = list_first_entry( composite_setup()
1555 if (!config) composite_setup()
1567 memcpy(req->buf, config->descriptors[0], value); composite_setup()
1592 if (cdev->config) composite_setup()
1593 *(u8 *)req->buf = cdev->config->bConfigurationValue; composite_setup()
1605 if (!cdev->config || intf >= MAX_CONFIG_INTERFACES) composite_setup()
1607 f = cdev->config->interface[intf]; composite_setup()
1625 if (!cdev->config || intf >= MAX_CONFIG_INTERFACES) composite_setup()
1627 f = cdev->config->interface[intf]; composite_setup()
1652 if (!cdev->config || intf >= MAX_CONFIG_INTERFACES) composite_setup()
1654 f = cdev->config->interface[intf]; composite_setup()
1675 if (!cdev->config || intf >= MAX_CONFIG_INTERFACES) composite_setup()
1677 f = cdev->config->interface[intf]; composite_setup()
1792 * in config 0, etc. composite_setup()
1794 if (cdev->config) { composite_setup()
1795 list_for_each_entry(f, &cdev->config->functions, list) composite_setup()
1803 if (!cdev->config || intf >= MAX_CONFIG_INTERFACES) composite_setup()
1805 f = cdev->config->interface[intf]; composite_setup()
1810 list_for_each_entry(f, &cdev->config->functions, list) { composite_setup()
1814 if (&f->list == &cdev->config->functions) composite_setup()
1824 c = cdev->config; composite_setup()
1828 /* try current config's setup */ composite_setup()
1834 /* try the only function in the current config */ composite_setup()
1873 /* REVISIT: should we have config and device level composite_disconnect()
1877 if (cdev->config) composite_disconnect()
1905 WARN_ON(cdev->config); __composite_unbind()
2119 /* REVISIT: should we have config level composite_suspend()
2123 if (cdev->config) { composite_suspend()
2124 list_for_each_entry(f, &cdev->config->functions, list) { composite_suspend()
2143 /* REVISIT: should we have config level composite_resume()
2149 if (cdev->config) { composite_resume()
2150 list_for_each_entry(f, &cdev->config->functions, list) { composite_resume()
2155 maxpower = cdev->config->MaxPower; composite_resume()
745 usb_add_config_only(struct usb_composite_dev *cdev, struct usb_configuration *config) usb_add_config_only() argument
785 usb_add_config(struct usb_composite_dev *cdev, struct usb_configuration *config, int (*bind)(struct usb_configuration *)) usb_add_config() argument
853 remove_config(struct usb_composite_dev *cdev, struct usb_configuration *config) remove_config() argument
885 usb_remove_config(struct usb_composite_dev *cdev, struct usb_configuration *config) usb_remove_config() argument
/linux-4.4.14/drivers/usb/core/
H A DMakefile6 usbcore-y += config.o file.o buffer.o sysfs.o endpoint.o
H A Dconfig.c59 dev_warn(ddev, "No SuperSpeed endpoint companion for config %d " usb_parse_ss_endpoint_companion()
85 "config %d interface %d altsetting %d ep %d: " usb_parse_ss_endpoint_companion()
91 "config %d interface %d altsetting %d ep %d: " usb_parse_ss_endpoint_companion()
101 "config %d interface %d altsetting %d ep %d: " usb_parse_ss_endpoint_companion()
110 "config %d interface %d altsetting %d ep %d: " usb_parse_ss_endpoint_companion()
117 "config %d interface %d altsetting %d ep %d: " usb_parse_ss_endpoint_companion()
135 "config %d interface %d altsetting %d ep %d: " usb_parse_ss_endpoint_companion()
163 dev_warn(ddev, "config %d interface %d altsetting %d has an " usb_parse_endpoint()
171 dev_warn(ddev, "config %d interface %d altsetting %d has an " usb_parse_endpoint()
236 dev_warn(ddev, "config %d interface %d altsetting %d " usb_parse_endpoint()
250 dev_warn(ddev, "config %d interface %d altsetting %d " usb_parse_endpoint()
270 dev_warn(ddev, "config %d interface %d altsetting %d " usb_parse_endpoint()
314 struct usb_host_config *config, unsigned char *buffer, int size, usb_parse_interface()
336 for (i = 0; i < config->desc.bNumInterfaces; ++i) { usb_parse_interface()
338 intfc = config->intf_cache[i]; usb_parse_interface()
351 dev_warn(ddev, "Duplicate descriptor for config %d " usb_parse_interface()
377 dev_warn(ddev, "too many endpoints for config %d interface %d " usb_parse_interface()
408 dev_warn(ddev, "config %d interface %d altsetting %d has %d " usb_parse_interface()
421 struct usb_host_config *config, unsigned char *buffer, int size) usb_parse_configuration()
436 memcpy(&config->desc, buffer, USB_DT_CONFIG_SIZE); usb_parse_configuration()
437 if (config->desc.bDescriptorType != USB_DT_CONFIG || usb_parse_configuration()
438 config->desc.bLength < USB_DT_CONFIG_SIZE || usb_parse_configuration()
439 config->desc.bLength > size) { usb_parse_configuration()
440 dev_err(ddev, "invalid descriptor for config index %d: " usb_parse_configuration()
442 config->desc.bDescriptorType, config->desc.bLength); usb_parse_configuration()
445 cfgno = config->desc.bConfigurationValue; usb_parse_configuration()
447 buffer += config->desc.bLength; usb_parse_configuration()
448 size -= config->desc.bLength; usb_parse_configuration()
450 nintf = nintf_orig = config->desc.bNumInterfaces; usb_parse_configuration()
452 dev_warn(ddev, "config %d has too many interfaces: %d, " usb_parse_configuration()
466 dev_warn(ddev, "config %d descriptor has %d excess " usb_parse_configuration()
474 dev_warn(ddev, "config %d has an invalid descriptor " usb_parse_configuration()
475 "of length %d, skipping remainder of the config\n", usb_parse_configuration()
486 dev_warn(ddev, "config %d has an invalid " usb_parse_configuration()
496 dev_warn(ddev, "config %d has more interface " usb_parse_configuration()
504 dev_warn(ddev, "config %d has an invalid " usb_parse_configuration()
531 config->intf_assoc[iad_num] = usb_parse_configuration()
539 dev_warn(ddev, "config %d contains an unexpected " usb_parse_configuration()
545 config->desc.wTotalLength = cpu_to_le16(buffer2 - buffer0); usb_parse_configuration()
548 dev_warn(ddev, "config %d has %d interface%s, different from " usb_parse_configuration()
552 dev_warn(ddev, "config %d has no interfaces?\n", cfgno); usb_parse_configuration()
553 config->desc.bNumInterfaces = nintf = n; usb_parse_configuration()
562 dev_warn(ddev, "config %d has no interface number " usb_parse_configuration()
571 "config %d interface %d: %d, " usb_parse_configuration()
578 config->intf_cache[i] = intfc = kzalloc(len, GFP_KERNEL); usb_parse_configuration()
588 config->extra = buffer; usb_parse_configuration()
591 config->extralen = i; usb_parse_configuration()
600 retval = usb_parse_interface(ddev, cfgno, config, usb_parse_configuration()
611 intfc = config->intf_cache[i]; usb_parse_configuration()
619 dev_warn(ddev, "config %d interface %d has no " usb_parse_configuration()
634 if (!dev->config) usb_destroy_configuration()
646 struct usb_host_config *cf = &dev->config[c]; usb_destroy_configuration()
655 kfree(dev->config); usb_destroy_configuration()
656 dev->config = NULL; usb_destroy_configuration()
661 * Get the USB config descriptors, cache and parse'em
689 dev->config = kzalloc(length, GFP_KERNEL); usb_get_configuration()
690 if (!dev->config) usb_get_configuration()
709 dev_err(ddev, "unable to read config index %d " usb_get_configuration()
713 dev_err(ddev, "chopping to %d config(s)\n", cfgno); usb_get_configuration()
717 dev_err(ddev, "config index %d descriptor too short " usb_get_configuration()
739 dev_err(ddev, "unable to read config index %d " usb_get_configuration()
745 dev_warn(ddev, "config index %d descriptor too short " usb_get_configuration()
753 &dev->config[cfgno], bigbuffer, length); usb_get_configuration()
313 usb_parse_interface(struct device *ddev, int cfgno, struct usb_host_config *config, unsigned char *buffer, int size, u8 inums[], u8 nalts[]) usb_parse_interface() argument
420 usb_parse_configuration(struct usb_device *dev, int cfgidx, struct usb_host_config *config, unsigned char *buffer, int size) usb_parse_configuration() argument
/linux-4.4.14/drivers/staging/comedi/drivers/
H A Dpcm3724.c62 static int compute_buffer(int config, int devno, struct comedi_subdevice *s) compute_buffer() argument
67 config |= PCM3724_DIO_DIR_A0_OUT; compute_buffer()
69 config |= PCM3724_DIO_DIR_A1_OUT; compute_buffer()
73 config |= PCM3724_DIO_DIR_B0_OUT; compute_buffer()
75 config |= PCM3724_DIO_DIR_B1_OUT; compute_buffer()
79 config |= PCM3724_DIO_DIR_C0_OUT; compute_buffer()
81 config |= PCM3724_DIO_DIR_C1_OUT; compute_buffer()
83 return config; compute_buffer()
91 int config; do_3724_config() local
95 config = I8255_CTRL_CW; do_3724_config()
98 /* 1 in io_bits indicates output, 1 in config indicates input */ do_3724_config()
100 config |= I8255_CTRL_A_IO; do_3724_config()
103 config |= I8255_CTRL_B_IO; do_3724_config()
106 config |= I8255_CTRL_C_HI_IO | I8255_CTRL_C_LO_IO; do_3724_config()
118 outb(config, port_8255_cfg); do_3724_config()
158 /* overriding the 8255 insn config */ subdev_3724_insn_config()
/linux-4.4.14/drivers/net/wireless/ti/wl1251/
H A Dinit.c38 wl1251_warning("couldn't set feature config"); wl1251_hw_init_hwenc_config()
103 int wl1251_hw_init_rx_config(struct wl1251 *wl, u32 config, u32 filter) wl1251_hw_init_rx_config() argument
111 ret = wl1251_acx_rx_config(wl, config, filter); wl1251_hw_init_rx_config()
232 struct acx_tx_queue_qos_config *config, wl1251_hw_init_txq_fill()
235 config->qid = qid; wl1251_hw_init_txq_fill()
239 config->high_threshold = wl1251_hw_init_txq_fill()
241 config->low_threshold = wl1251_hw_init_txq_fill()
245 config->high_threshold = wl1251_hw_init_txq_fill()
247 config->low_threshold = wl1251_hw_init_txq_fill()
251 config->high_threshold = wl1251_hw_init_txq_fill()
253 config->low_threshold = wl1251_hw_init_txq_fill()
257 config->high_threshold = wl1251_hw_init_txq_fill()
259 config->low_threshold = wl1251_hw_init_txq_fill()
272 struct acx_tx_queue_qos_config *config; wl1251_hw_init_tx_queue_config() local
276 wl1251_debug(DEBUG_ACX, "acx tx queue config"); wl1251_hw_init_tx_queue_config()
278 config = kzalloc(sizeof(*config), GFP_KERNEL); wl1251_hw_init_tx_queue_config()
279 if (!config) { wl1251_hw_init_tx_queue_config()
285 ret = wl1251_hw_init_txq_fill(i, config, wl1251_hw_init_tx_queue_config()
291 config, sizeof(*config)); wl1251_hw_init_tx_queue_config()
302 kfree(config); wl1251_hw_init_tx_queue_config()
353 /* RX config */ wl1251_hw_init()
362 /* TX queues config */ wl1251_hw_init()
367 /* PHY layer config */ wl1251_hw_init()
231 wl1251_hw_init_txq_fill(u8 qid, struct acx_tx_queue_qos_config *config, u32 num_blocks) wl1251_hw_init_txq_fill() argument
/linux-4.4.14/drivers/clk/qcom/
H A Dclk-pll.c96 u32 l, m, n, config; clk_pll_recalc_rate() local
116 regmap_read(pll->clkr.regmap, pll->config_reg, &config); clk_pll_recalc_rate()
117 config >>= pll->post_div_shift; clk_pll_recalc_rate()
118 config &= BIT(pll->post_div_width) - 1; clk_pll_recalc_rate()
119 rate /= config + 1; clk_pll_recalc_rate()
252 const struct pll_config *config) clk_pll_configure()
257 regmap_write(regmap, pll->l_reg, config->l); clk_pll_configure()
258 regmap_write(regmap, pll->m_reg, config->m); clk_pll_configure()
259 regmap_write(regmap, pll->n_reg, config->n); clk_pll_configure()
261 val = config->vco_val; clk_pll_configure()
262 val |= config->pre_div_val; clk_pll_configure()
263 val |= config->post_div_val; clk_pll_configure()
264 val |= config->mn_ena_mask; clk_pll_configure()
265 val |= config->main_output_mask; clk_pll_configure()
266 val |= config->aux_output_mask; clk_pll_configure()
268 mask = config->vco_mask; clk_pll_configure()
269 mask |= config->pre_div_mask; clk_pll_configure()
270 mask |= config->post_div_mask; clk_pll_configure()
271 mask |= config->mn_ena_mask; clk_pll_configure()
272 mask |= config->main_output_mask; clk_pll_configure()
273 mask |= config->aux_output_mask; clk_pll_configure()
279 const struct pll_config *config, bool fsm_mode) clk_pll_configure_sr()
281 clk_pll_configure(pll, regmap, config); clk_pll_configure_sr()
288 const struct pll_config *config, bool fsm_mode) clk_pll_configure_sr_hpm_lp()
290 clk_pll_configure(pll, regmap, config); clk_pll_configure_sr_hpm_lp()
251 clk_pll_configure(struct clk_pll *pll, struct regmap *regmap, const struct pll_config *config) clk_pll_configure() argument
278 clk_pll_configure_sr(struct clk_pll *pll, struct regmap *regmap, const struct pll_config *config, bool fsm_mode) clk_pll_configure_sr() argument
287 clk_pll_configure_sr_hpm_lp(struct clk_pll *pll, struct regmap *regmap, const struct pll_config *config, bool fsm_mode) clk_pll_configure_sr_hpm_lp() argument
/linux-4.4.14/arch/m68k/68000/
H A DMakefile6 # Merged all 68000 based cpu's config
/linux-4.4.14/sound/soc/spear/
H A Dspear_pcm.c41 struct snd_dmaengine_pcm_config *config, devm_spear_pcm_platform_register()
44 *config = spear_dmaengine_pcm_config; devm_spear_pcm_platform_register()
45 config->compat_filter_fn = filter; devm_spear_pcm_platform_register()
47 return devm_snd_dmaengine_pcm_register(dev, config, devm_spear_pcm_platform_register()
40 devm_spear_pcm_platform_register(struct device *dev, struct snd_dmaengine_pcm_config *config, bool (*filter)(struct dma_chan *chan, void *slave)) devm_spear_pcm_platform_register() argument
/linux-4.4.14/drivers/mfd/
H A Dda9052-spi.c26 struct regmap_config config; da9052_spi_probe() local
44 config = da9052_regmap_config; da9052_spi_probe()
45 config.read_flag_mask = 1; da9052_spi_probe()
46 config.reg_bits = 7; da9052_spi_probe()
47 config.pad_bits = 1; da9052_spi_probe()
48 config.val_bits = 8; da9052_spi_probe()
49 config.use_single_rw = 1; da9052_spi_probe()
51 da9052->regmap = devm_regmap_init_spi(spi, &config); da9052_spi_probe()
H A Dpm8921-core.c65 u8 config[0]; member in struct:pm_irq_chip
189 u8 block, config; pm8xxx_irq_mask_ack() local
193 config = chip->config[pmirq] | PM_IRQF_MASK_ALL | PM_IRQF_CLR; pm8xxx_irq_mask_ack()
194 pm8xxx_config_irq(chip, block, config); pm8xxx_irq_mask_ack()
201 u8 block, config; pm8xxx_irq_unmask() local
205 config = chip->config[pmirq]; pm8xxx_irq_unmask()
206 pm8xxx_config_irq(chip, block, config); pm8xxx_irq_unmask()
214 u8 block, config; pm8xxx_irq_set_type() local
219 chip->config[pmirq] = (irq_bit << PM_IRQF_BITS_SHIFT) pm8xxx_irq_set_type()
223 chip->config[pmirq] &= ~PM_IRQF_MASK_RE; pm8xxx_irq_set_type()
225 chip->config[pmirq] &= ~PM_IRQF_MASK_FE; pm8xxx_irq_set_type()
227 chip->config[pmirq] |= PM_IRQF_LVL_SEL; pm8xxx_irq_set_type()
230 chip->config[pmirq] &= ~PM_IRQF_MASK_RE; pm8xxx_irq_set_type()
232 chip->config[pmirq] &= ~PM_IRQF_MASK_FE; pm8xxx_irq_set_type()
235 config = chip->config[pmirq] | PM_IRQF_CLR; pm8xxx_irq_set_type()
236 return pm8xxx_config_irq(chip, block, config); pm8xxx_irq_set_type()
356 sizeof(chip->config[0]) * nirqs, pm8921_probe()
/linux-4.4.14/sound/soc/
H A Dsoc-generic-dmaengine-pcm.c35 const struct snd_dmaengine_pcm_config *config; member in struct:dmaengine_pcm
58 * @slave_config: DMA slave config to prepare
63 * snd_hwparams_to_dma_slave_config to fill in the slave config based on the
101 if (!pcm->config) dmaengine_pcm_hw_params()
104 prepare_slave_config = pcm->config->prepare_slave_config; dmaengine_pcm_hw_params()
133 if (pcm->config && pcm->config->pcm_hardware) dmaengine_pcm_set_runtime_hwparams()
135 pcm->config->pcm_hardware); dmaengine_pcm_set_runtime_hwparams()
222 if (pcm->config && pcm->config->compat_request_channel) dmaengine_pcm_compat_request_channel()
223 return pcm->config->compat_request_channel(rtd, substream); dmaengine_pcm_compat_request_channel()
225 if (pcm->config) dmaengine_pcm_compat_request_channel()
226 fn = pcm->config->compat_filter_fn; dmaengine_pcm_compat_request_channel()
253 const struct snd_dmaengine_pcm_config *config = pcm->config; dmaengine_pcm_new() local
262 if (config && config->prealloc_buffer_size) { dmaengine_pcm_new()
263 prealloc_buffer_size = config->prealloc_buffer_size; dmaengine_pcm_new()
264 max_buffer_size = config->pcm_hardware->buffer_bytes_max; dmaengine_pcm_new()
345 struct device *dev, const struct snd_dmaengine_pcm_config *config) dmaengine_pcm_request_chan_of()
356 if (config && config->dma_dev) { dmaengine_pcm_request_chan_of()
364 dev_name(config->dma_dev)); dmaengine_pcm_request_chan_of()
365 dev = config->dma_dev; dmaengine_pcm_request_chan_of()
374 if (config && config->chan_names[i]) dmaengine_pcm_request_chan_of()
375 name = config->chan_names[i]; dmaengine_pcm_request_chan_of()
411 * @config: Platform specific PCM configuration
415 const struct snd_dmaengine_pcm_config *config, unsigned int flags) snd_dmaengine_pcm_register()
424 pcm->config = config; snd_dmaengine_pcm_register()
427 ret = dmaengine_pcm_request_chan_of(pcm, dev, config); snd_dmaengine_pcm_register()
344 dmaengine_pcm_request_chan_of(struct dmaengine_pcm *pcm, struct device *dev, const struct snd_dmaengine_pcm_config *config) dmaengine_pcm_request_chan_of() argument
414 snd_dmaengine_pcm_register(struct device *dev, const struct snd_dmaengine_pcm_config *config, unsigned int flags) snd_dmaengine_pcm_register() argument
/linux-4.4.14/sound/soc/fsl/
H A Dimx-pcm-dma.c60 struct snd_dmaengine_pcm_config *config; imx_pcm_dma_init() local
63 config = devm_kzalloc(&pdev->dev, imx_pcm_dma_init()
65 *config = imx_dmaengine_pcm_config; imx_pcm_dma_init()
67 config->prealloc_buffer_size = size; imx_pcm_dma_init()
75 config->pcm_hardware = pcm_hardware; imx_pcm_dma_init()
78 config, imx_pcm_dma_init()
/linux-4.4.14/sound/soc/tegra/
H A Dtegra_pcm.c66 struct snd_dmaengine_pcm_config *config, tegra_pcm_platform_register_with_chan_names()
69 *config = tegra_dmaengine_pcm_config; tegra_pcm_platform_register_with_chan_names()
70 config->dma_dev = dev->parent; tegra_pcm_platform_register_with_chan_names()
71 config->chan_names[0] = txdmachan; tegra_pcm_platform_register_with_chan_names()
72 config->chan_names[1] = rxdmachan; tegra_pcm_platform_register_with_chan_names()
74 return snd_dmaengine_pcm_register(dev, config, 0); tegra_pcm_platform_register_with_chan_names()
65 tegra_pcm_platform_register_with_chan_names(struct device *dev, struct snd_dmaengine_pcm_config *config, char *txdmachan, char *rxdmachan) tegra_pcm_platform_register_with_chan_names() argument
/linux-4.4.14/drivers/power/
H A Dmax17042_battery.c536 struct max17042_config_data *config = chip->pdata->config_data; max17042_write_config_regs() local
539 regmap_write(map, MAX17042_CONFIG, config->config); max17042_write_config_regs()
540 regmap_write(map, MAX17042_LearnCFG, config->learn_cfg); max17042_write_config_regs()
542 config->filter_cfg); max17042_write_config_regs()
543 regmap_write(map, MAX17042_RelaxCFG, config->relax_cfg); max17042_write_config_regs()
547 config->full_soc_thresh); max17042_write_config_regs()
552 struct max17042_config_data *config = chip->pdata->config_data; max17042_write_custom_regs() local
555 max17042_write_verify_reg(map, MAX17042_RCOMP0, config->rcomp0); max17042_write_custom_regs()
556 max17042_write_verify_reg(map, MAX17042_TempCo, config->tcompc0); max17042_write_custom_regs()
557 max17042_write_verify_reg(map, MAX17042_ICHGTerm, config->ichgt_term); max17042_write_custom_regs()
559 regmap_write(map, MAX17042_EmptyTempCo, config->empty_tempco); max17042_write_custom_regs()
561 config->kempty0); max17042_write_custom_regs()
564 config->qrtbl00); max17042_write_custom_regs()
566 config->qrtbl10); max17042_write_custom_regs()
568 config->qrtbl20); max17042_write_custom_regs()
570 config->qrtbl30); max17042_write_custom_regs()
576 struct max17042_config_data *config = chip->pdata->config_data; max17042_update_capacity_regs() local
580 config->fullcap); max17042_update_capacity_regs()
581 regmap_write(map, MAX17042_DesignCap, config->design_cap); max17042_update_capacity_regs()
583 config->fullcapnom); max17042_update_capacity_regs()
602 struct max17042_config_data *config = chip->pdata->config_data; max17042_load_new_capacity_params() local
619 dq_acc = config->fullcap / dQ_ACC_DIV; max17042_load_new_capacity_params()
624 config->fullcap); max17042_load_new_capacity_params()
626 config->design_cap); max17042_load_new_capacity_params()
628 config->fullcapnom); max17042_load_new_capacity_params()
641 struct max17042_config_data *config = chip->pdata->config_data; max17042_override_por_values() local
643 max17042_override_por(map, MAX17042_TGAIN, config->tgain); max17042_override_por_values()
644 max17042_override_por(map, MAx17042_TOFF, config->toff); max17042_override_por_values()
645 max17042_override_por(map, MAX17042_CGAIN, config->cgain); max17042_override_por_values()
646 max17042_override_por(map, MAX17042_COFF, config->coff); max17042_override_por_values()
648 max17042_override_por(map, MAX17042_VALRT_Th, config->valrt_thresh); max17042_override_por_values()
649 max17042_override_por(map, MAX17042_TALRT_Th, config->talrt_thresh); max17042_override_por_values()
651 config->soc_alrt_thresh); max17042_override_por_values()
652 max17042_override_por(map, MAX17042_CONFIG, config->config); max17042_override_por_values()
653 max17042_override_por(map, MAX17042_SHDNTIMER, config->shdntimer); max17042_override_por_values()
655 max17042_override_por(map, MAX17042_DesignCap, config->design_cap); max17042_override_por_values()
656 max17042_override_por(map, MAX17042_ICHGTerm, config->ichgt_term); max17042_override_por_values()
658 max17042_override_por(map, MAX17042_AtRate, config->at_rate); max17042_override_por_values()
659 max17042_override_por(map, MAX17042_LearnCFG, config->learn_cfg); max17042_override_por_values()
660 max17042_override_por(map, MAX17042_FilterCFG, config->filter_cfg); max17042_override_por_values()
661 max17042_override_por(map, MAX17042_RelaxCFG, config->relax_cfg); max17042_override_por_values()
662 max17042_override_por(map, MAX17042_MiscCFG, config->misc_cfg); max17042_override_por_values()
663 max17042_override_por(map, MAX17042_MaskSOC, config->masksoc); max17042_override_por_values()
665 max17042_override_por(map, MAX17042_FullCAP, config->fullcap); max17042_override_por_values()
666 max17042_override_por(map, MAX17042_FullCAPNom, config->fullcapnom); max17042_override_por_values()
669 config->socempty); max17042_override_por_values()
670 max17042_override_por(map, MAX17042_LAvg_empty, config->lavg_empty); max17042_override_por_values()
671 max17042_override_por(map, MAX17042_dQacc, config->dqacc); max17042_override_por_values()
672 max17042_override_por(map, MAX17042_dPacc, config->dpacc); max17042_override_por_values()
675 max17042_override_por(map, MAX17042_V_empty, config->vempty); max17042_override_por_values()
677 max17042_override_por(map, MAX17047_V_empty, config->vempty); max17042_override_por_values()
678 max17042_override_por(map, MAX17042_TempNom, config->temp_nom); max17042_override_por_values()
679 max17042_override_por(map, MAX17042_TempLim, config->temp_lim); max17042_override_por_values()
680 max17042_override_por(map, MAX17042_FCTC, config->fctc); max17042_override_por_values()
681 max17042_override_por(map, MAX17042_RCOMP0, config->rcomp0); max17042_override_por_values()
682 max17042_override_por(map, MAX17042_TempCo, config->tcompc0); max17042_override_por_values()
685 config->empty_tempco); max17042_override_por_values()
687 config->kempty0); max17042_override_por_values()
/linux-4.4.14/drivers/char/
H A Dnsc_gpio.c24 /* retrieve current config w/o changing it */ nsc_gpio_dump()
25 u32 config = amp->gpio_config(index, ~0, 0); nsc_gpio_dump() local
29 index, config, nsc_gpio_dump()
30 (config & 1) ? "OE" : "TS", /* output-enabled/tristate */ nsc_gpio_dump()
31 (config & 2) ? "PP" : "OD", /* push pull / open drain */ nsc_gpio_dump()
32 (config & 4) ? "PUE" : "PUD", /* pull up enabled/disabled */ nsc_gpio_dump()
33 (config & 8) ? "LOCKED" : "", /* locked / unlocked */ nsc_gpio_dump()
34 (config & 16) ? "LEVEL" : "EDGE",/* level/edge input */ nsc_gpio_dump()
35 (config & 32) ? "HI" : "LO", /* trigger on rise/fall edge */ nsc_gpio_dump()
36 (config & 64) ? "DEBOUNCE" : "", /* debounce */ nsc_gpio_dump()
/linux-4.4.14/drivers/clk/shmobile/
H A Dclk-r8a7779.c95 const struct cpg_clk_config *config, r8a7779_cpg_register_clock()
106 div = config->z_div; r8a7779_cpg_register_clock()
107 mult = config->z_mult; r8a7779_cpg_register_clock()
109 div = config->zs_and_s_div; r8a7779_cpg_register_clock()
111 div = config->s1_div; r8a7779_cpg_register_clock()
113 div = config->p_div; r8a7779_cpg_register_clock()
115 div = config->b_and_out_div; r8a7779_cpg_register_clock()
125 const struct cpg_clk_config *config; r8a7779_cpg_clocks_init() local
151 config = &cpg_clk_configs[CPG_CLK_CONFIG_INDEX(cpg_mode)]; r8a7779_cpg_clocks_init()
161 clk = r8a7779_cpg_register_clock(np, cpg, config, r8a7779_cpg_clocks_init()
94 r8a7779_cpg_register_clock(struct device_node *np, struct r8a7779_cpg *cpg, const struct cpg_clk_config *config, unsigned int plla_mult, const char *name) r8a7779_cpg_register_clock() argument
/linux-4.4.14/drivers/gpu/drm/radeon/
H A Drv770.c1188 rdev->config.rv770.tiling_group_size = 256; rv770_gpu_init()
1191 rdev->config.rv770.max_pipes = 4; rv770_gpu_init()
1192 rdev->config.rv770.max_tile_pipes = 8; rv770_gpu_init()
1193 rdev->config.rv770.max_simds = 10; rv770_gpu_init()
1194 rdev->config.rv770.max_backends = 4; rv770_gpu_init()
1195 rdev->config.rv770.max_gprs = 256; rv770_gpu_init()
1196 rdev->config.rv770.max_threads = 248; rv770_gpu_init()
1197 rdev->config.rv770.max_stack_entries = 512; rv770_gpu_init()
1198 rdev->config.rv770.max_hw_contexts = 8; rv770_gpu_init()
1199 rdev->config.rv770.max_gs_threads = 16 * 2; rv770_gpu_init()
1200 rdev->config.rv770.sx_max_export_size = 128; rv770_gpu_init()
1201 rdev->config.rv770.sx_max_export_pos_size = 16; rv770_gpu_init()
1202 rdev->config.rv770.sx_max_export_smx_size = 112; rv770_gpu_init()
1203 rdev->config.rv770.sq_num_cf_insts = 2; rv770_gpu_init()
1205 rdev->config.rv770.sx_num_of_sets = 7; rv770_gpu_init()
1206 rdev->config.rv770.sc_prim_fifo_size = 0xF9; rv770_gpu_init()
1207 rdev->config.rv770.sc_hiz_tile_fifo_size = 0x30; rv770_gpu_init()
1208 rdev->config.rv770.sc_earlyz_tile_fifo_fize = 0x130; rv770_gpu_init()
1211 rdev->config.rv770.max_pipes = 2; rv770_gpu_init()
1212 rdev->config.rv770.max_tile_pipes = 4; rv770_gpu_init()
1213 rdev->config.rv770.max_simds = 8; rv770_gpu_init()
1214 rdev->config.rv770.max_backends = 2; rv770_gpu_init()
1215 rdev->config.rv770.max_gprs = 128; rv770_gpu_init()
1216 rdev->config.rv770.max_threads = 248; rv770_gpu_init()
1217 rdev->config.rv770.max_stack_entries = 256; rv770_gpu_init()
1218 rdev->config.rv770.max_hw_contexts = 8; rv770_gpu_init()
1219 rdev->config.rv770.max_gs_threads = 16 * 2; rv770_gpu_init()
1220 rdev->config.rv770.sx_max_export_size = 256; rv770_gpu_init()
1221 rdev->config.rv770.sx_max_export_pos_size = 32; rv770_gpu_init()
1222 rdev->config.rv770.sx_max_export_smx_size = 224; rv770_gpu_init()
1223 rdev->config.rv770.sq_num_cf_insts = 2; rv770_gpu_init()
1225 rdev->config.rv770.sx_num_of_sets = 7; rv770_gpu_init()
1226 rdev->config.rv770.sc_prim_fifo_size = 0xf9; rv770_gpu_init()
1227 rdev->config.rv770.sc_hiz_tile_fifo_size = 0x30; rv770_gpu_init()
1228 rdev->config.rv770.sc_earlyz_tile_fifo_fize = 0x130; rv770_gpu_init()
1229 if (rdev->config.rv770.sx_max_export_pos_size > 16) { rv770_gpu_init()
1230 rdev->config.rv770.sx_max_export_pos_size -= 16; rv770_gpu_init()
1231 rdev->config.rv770.sx_max_export_smx_size += 16; rv770_gpu_init()
1235 rdev->config.rv770.max_pipes = 2; rv770_gpu_init()
1236 rdev->config.rv770.max_tile_pipes = 2; rv770_gpu_init()
1237 rdev->config.rv770.max_simds = 2; rv770_gpu_init()
1238 rdev->config.rv770.max_backends = 1; rv770_gpu_init()
1239 rdev->config.rv770.max_gprs = 256; rv770_gpu_init()
1240 rdev->config.rv770.max_threads = 192; rv770_gpu_init()
1241 rdev->config.rv770.max_stack_entries = 256; rv770_gpu_init()
1242 rdev->config.rv770.max_hw_contexts = 4; rv770_gpu_init()
1243 rdev->config.rv770.max_gs_threads = 8 * 2; rv770_gpu_init()
1244 rdev->config.rv770.sx_max_export_size = 128; rv770_gpu_init()
1245 rdev->config.rv770.sx_max_export_pos_size = 16; rv770_gpu_init()
1246 rdev->config.rv770.sx_max_export_smx_size = 112; rv770_gpu_init()
1247 rdev->config.rv770.sq_num_cf_insts = 1; rv770_gpu_init()
1249 rdev->config.rv770.sx_num_of_sets = 7; rv770_gpu_init()
1250 rdev->config.rv770.sc_prim_fifo_size = 0x40; rv770_gpu_init()
1251 rdev->config.rv770.sc_hiz_tile_fifo_size = 0x30; rv770_gpu_init()
1252 rdev->config.rv770.sc_earlyz_tile_fifo_fize = 0x130; rv770_gpu_init()
1255 rdev->config.rv770.max_pipes = 4; rv770_gpu_init()
1256 rdev->config.rv770.max_tile_pipes = 4; rv770_gpu_init()
1257 rdev->config.rv770.max_simds = 8; rv770_gpu_init()
1258 rdev->config.rv770.max_backends = 4; rv770_gpu_init()
1259 rdev->config.rv770.max_gprs = 256; rv770_gpu_init()
1260 rdev->config.rv770.max_threads = 248; rv770_gpu_init()
1261 rdev->config.rv770.max_stack_entries = 512; rv770_gpu_init()
1262 rdev->config.rv770.max_hw_contexts = 8; rv770_gpu_init()
1263 rdev->config.rv770.max_gs_threads = 16 * 2; rv770_gpu_init()
1264 rdev->config.rv770.sx_max_export_size = 256; rv770_gpu_init()
1265 rdev->config.rv770.sx_max_export_pos_size = 32; rv770_gpu_init()
1266 rdev->config.rv770.sx_max_export_smx_size = 224; rv770_gpu_init()
1267 rdev->config.rv770.sq_num_cf_insts = 2; rv770_gpu_init()
1269 rdev->config.rv770.sx_num_of_sets = 7; rv770_gpu_init()
1270 rdev->config.rv770.sc_prim_fifo_size = 0x100; rv770_gpu_init()
1271 rdev->config.rv770.sc_hiz_tile_fifo_size = 0x30; rv770_gpu_init()
1272 rdev->config.rv770.sc_earlyz_tile_fifo_fize = 0x130; rv770_gpu_init()
1274 if (rdev->config.rv770.sx_max_export_pos_size > 16) { rv770_gpu_init()
1275 rdev->config.rv770.sx_max_export_pos_size -= 16; rv770_gpu_init()
1276 rdev->config.rv770.sx_max_export_smx_size += 16; rv770_gpu_init()
1296 /* setup tiling, simd, pipe config */ rv770_gpu_init()
1314 tmp = rdev->config.rv770.max_simds - rv770_gpu_init()
1316 rdev->config.rv770.active_simds = tmp; rv770_gpu_init()
1318 switch (rdev->config.rv770.max_tile_pipes) { rv770_gpu_init()
1333 rdev->config.rv770.tiling_npipes = rdev->config.rv770.max_tile_pipes; rv770_gpu_init()
1337 for (i = 0; i < rdev->config.rv770.max_backends; i++) rv770_gpu_init()
1341 for (i = 0; i < rdev->config.rv770.max_backends; i++) rv770_gpu_init()
1345 tmp = r6xx_remap_render_backend(rdev, tmp, rdev->config.rv770.max_backends, rv770_gpu_init()
1348 rdev->config.rv770.backend_map = tmp; rv770_gpu_init()
1358 rdev->config.rv770.tiling_nbanks = 4 << ((gb_tiling_config >> 4) & 0x3); rv770_gpu_init()
1371 rdev->config.rv770.tile_config = gb_tiling_config; rv770_gpu_init()
1409 smx_dc_ctl0 |= CACHE_DEPTH((rdev->config.rv770.sx_num_of_sets * 64) - 1); rv770_gpu_init()
1442 WREG32(SX_EXPORT_BUFFER_SIZES, (COLOR_BUFFER_SIZE((rdev->config.rv770.sx_max_export_size / 4) - 1) | rv770_gpu_init()
1443 POSITION_BUFFER_SIZE((rdev->config.rv770.sx_max_export_pos_size / 4) - 1) | rv770_gpu_init()
1444 SMX_BUFFER_SIZE((rdev->config.rv770.sx_max_export_smx_size / 4) - 1))); rv770_gpu_init()
1446 WREG32(PA_SC_FIFO_SIZE, (SC_PRIM_FIFO_SIZE(rdev->config.rv770.sc_prim_fifo_size) | rv770_gpu_init()
1447 SC_HIZ_TILE_FIFO_SIZE(rdev->config.rv770.sc_hiz_tile_fifo_size) | rv770_gpu_init()
1448 SC_EARLYZ_TILE_FIFO_SIZE(rdev->config.rv770.sc_earlyz_tile_fifo_fize))); rv770_gpu_init()
1458 sq_ms_fifo_sizes = (CACHE_FIFO_SIZE(16 * rdev->config.rv770.sq_num_cf_insts) | rv770_gpu_init()
1495 WREG32(SQ_GPR_RESOURCE_MGMT_1, (NUM_PS_GPRS((rdev->config.rv770.max_gprs * 24)/64) | rv770_gpu_init()
1496 NUM_VS_GPRS((rdev->config.rv770.max_gprs * 24)/64) | rv770_gpu_init()
1497 NUM_CLAUSE_TEMP_GPRS(((rdev->config.rv770.max_gprs * 24)/64)/2))); rv770_gpu_init()
1499 WREG32(SQ_GPR_RESOURCE_MGMT_2, (NUM_GS_GPRS((rdev->config.rv770.max_gprs * 7)/64) | rv770_gpu_init()
1500 NUM_ES_GPRS((rdev->config.rv770.max_gprs * 7)/64))); rv770_gpu_init()
1502 sq_thread_resource_mgmt = (NUM_PS_THREADS((rdev->config.rv770.max_threads * 4)/8) | rv770_gpu_init()
1503 NUM_VS_THREADS((rdev->config.rv770.max_threads * 2)/8) | rv770_gpu_init()
1504 NUM_ES_THREADS((rdev->config.rv770.max_threads * 1)/8)); rv770_gpu_init()
1505 if (((rdev->config.rv770.max_threads * 1) / 8) > rdev->config.rv770.max_gs_threads) rv770_gpu_init()
1506 sq_thread_resource_mgmt |= NUM_GS_THREADS(rdev->config.rv770.max_gs_threads); rv770_gpu_init()
1508 sq_thread_resource_mgmt |= NUM_GS_THREADS((rdev->config.rv770.max_gs_threads * 1)/8); rv770_gpu_init()
1511 WREG32(SQ_STACK_RESOURCE_MGMT_1, (NUM_PS_STACK_ENTRIES((rdev->config.rv770.max_stack_entries * 1)/4) | rv770_gpu_init()
1512 NUM_VS_STACK_ENTRIES((rdev->config.rv770.max_stack_entries * 1)/4))); rv770_gpu_init()
1514 WREG32(SQ_STACK_RESOURCE_MGMT_2, (NUM_GS_STACK_ENTRIES((rdev->config.rv770.max_stack_entries * 1)/4) | rv770_gpu_init()
1515 NUM_ES_STACK_ENTRIES((rdev->config.rv770.max_stack_entries * 1)/4))); rv770_gpu_init()
1517 sq_dyn_gpr_size_simd_ab_0 = (SIMDA_RING0((rdev->config.rv770.max_gprs * 38)/64) | rv770_gpu_init()
1518 SIMDA_RING1((rdev->config.rv770.max_gprs * 38)/64) | rv770_gpu_init()
1519 SIMDB_RING0((rdev->config.rv770.max_gprs * 38)/64) | rv770_gpu_init()
1520 SIMDB_RING1((rdev->config.rv770.max_gprs * 38)/64)); rv770_gpu_init()
1554 num_gs_verts_per_thread = rdev->config.rv770.max_pipes * 16; rv770_gpu_init()
H A Devergreen.c2298 wm_high.bytes_per_pixel = 4; /* XXX: get this from fb config */ evergreen_program_watermarks()
2325 wm_low.bytes_per_pixel = 4; /* XXX: get this from fb config */ evergreen_program_watermarks()
3100 radeon_ring_write(ring, rdev->config.evergreen.max_hw_contexts - 1); evergreen_cp_start()
3246 rdev->config.evergreen.num_ses = 2; evergreen_gpu_init()
3247 rdev->config.evergreen.max_pipes = 4; evergreen_gpu_init()
3248 rdev->config.evergreen.max_tile_pipes = 8; evergreen_gpu_init()
3249 rdev->config.evergreen.max_simds = 10; evergreen_gpu_init()
3250 rdev->config.evergreen.max_backends = 4 * rdev->config.evergreen.num_ses; evergreen_gpu_init()
3251 rdev->config.evergreen.max_gprs = 256; evergreen_gpu_init()
3252 rdev->config.evergreen.max_threads = 248; evergreen_gpu_init()
3253 rdev->config.evergreen.max_gs_threads = 32; evergreen_gpu_init()
3254 rdev->config.evergreen.max_stack_entries = 512; evergreen_gpu_init()
3255 rdev->config.evergreen.sx_num_of_sets = 4; evergreen_gpu_init()
3256 rdev->config.evergreen.sx_max_export_size = 256; evergreen_gpu_init()
3257 rdev->config.evergreen.sx_max_export_pos_size = 64; evergreen_gpu_init()
3258 rdev->config.evergreen.sx_max_export_smx_size = 192; evergreen_gpu_init()
3259 rdev->config.evergreen.max_hw_contexts = 8; evergreen_gpu_init()
3260 rdev->config.evergreen.sq_num_cf_insts = 2; evergreen_gpu_init()
3262 rdev->config.evergreen.sc_prim_fifo_size = 0x100; evergreen_gpu_init()
3263 rdev->config.evergreen.sc_hiz_tile_fifo_size = 0x30; evergreen_gpu_init()
3264 rdev->config.evergreen.sc_earlyz_tile_fifo_size = 0x130; evergreen_gpu_init()
3268 rdev->config.evergreen.num_ses = 1; evergreen_gpu_init()
3269 rdev->config.evergreen.max_pipes = 4; evergreen_gpu_init()
3270 rdev->config.evergreen.max_tile_pipes = 4; evergreen_gpu_init()
3271 rdev->config.evergreen.max_simds = 10; evergreen_gpu_init()
3272 rdev->config.evergreen.max_backends = 4 * rdev->config.evergreen.num_ses; evergreen_gpu_init()
3273 rdev->config.evergreen.max_gprs = 256; evergreen_gpu_init()
3274 rdev->config.evergreen.max_threads = 248; evergreen_gpu_init()
3275 rdev->config.evergreen.max_gs_threads = 32; evergreen_gpu_init()
3276 rdev->config.evergreen.max_stack_entries = 512; evergreen_gpu_init()
3277 rdev->config.evergreen.sx_num_of_sets = 4; evergreen_gpu_init()
3278 rdev->config.evergreen.sx_max_export_size = 256; evergreen_gpu_init()
3279 rdev->config.evergreen.sx_max_export_pos_size = 64; evergreen_gpu_init()
3280 rdev->config.evergreen.sx_max_export_smx_size = 192; evergreen_gpu_init()
3281 rdev->config.evergreen.max_hw_contexts = 8; evergreen_gpu_init()
3282 rdev->config.evergreen.sq_num_cf_insts = 2; evergreen_gpu_init()
3284 rdev->config.evergreen.sc_prim_fifo_size = 0x100; evergreen_gpu_init()
3285 rdev->config.evergreen.sc_hiz_tile_fifo_size = 0x30; evergreen_gpu_init()
3286 rdev->config.evergreen.sc_earlyz_tile_fifo_size = 0x130; evergreen_gpu_init()
3290 rdev->config.evergreen.num_ses = 1; evergreen_gpu_init()
3291 rdev->config.evergreen.max_pipes = 4; evergreen_gpu_init()
3292 rdev->config.evergreen.max_tile_pipes = 4; evergreen_gpu_init()
3293 rdev->config.evergreen.max_simds = 5; evergreen_gpu_init()
3294 rdev->config.evergreen.max_backends = 2 * rdev->config.evergreen.num_ses; evergreen_gpu_init()
3295 rdev->config.evergreen.max_gprs = 256; evergreen_gpu_init()
3296 rdev->config.evergreen.max_threads = 248; evergreen_gpu_init()
3297 rdev->config.evergreen.max_gs_threads = 32; evergreen_gpu_init()
3298 rdev->config.evergreen.max_stack_entries = 256; evergreen_gpu_init()
3299 rdev->config.evergreen.sx_num_of_sets = 4; evergreen_gpu_init()
3300 rdev->config.evergreen.sx_max_export_size = 256; evergreen_gpu_init()
3301 rdev->config.evergreen.sx_max_export_pos_size = 64; evergreen_gpu_init()
3302 rdev->config.evergreen.sx_max_export_smx_size = 192; evergreen_gpu_init()
3303 rdev->config.evergreen.max_hw_contexts = 8; evergreen_gpu_init()
3304 rdev->config.evergreen.sq_num_cf_insts = 2; evergreen_gpu_init()
3306 rdev->config.evergreen.sc_prim_fifo_size = 0x100; evergreen_gpu_init()
3307 rdev->config.evergreen.sc_hiz_tile_fifo_size = 0x30; evergreen_gpu_init()
3308 rdev->config.evergreen.sc_earlyz_tile_fifo_size = 0x130; evergreen_gpu_init()
3313 rdev->config.evergreen.num_ses = 1; evergreen_gpu_init()
3314 rdev->config.evergreen.max_pipes = 2; evergreen_gpu_init()
3315 rdev->config.evergreen.max_tile_pipes = 2; evergreen_gpu_init()
3316 rdev->config.evergreen.max_simds = 2; evergreen_gpu_init()
3317 rdev->config.evergreen.max_backends = 1 * rdev->config.evergreen.num_ses; evergreen_gpu_init()
3318 rdev->config.evergreen.max_gprs = 256; evergreen_gpu_init()
3319 rdev->config.evergreen.max_threads = 192; evergreen_gpu_init()
3320 rdev->config.evergreen.max_gs_threads = 16; evergreen_gpu_init()
3321 rdev->config.evergreen.max_stack_entries = 256; evergreen_gpu_init()
3322 rdev->config.evergreen.sx_num_of_sets = 4; evergreen_gpu_init()
3323 rdev->config.evergreen.sx_max_export_size = 128; evergreen_gpu_init()
3324 rdev->config.evergreen.sx_max_export_pos_size = 32; evergreen_gpu_init()
3325 rdev->config.evergreen.sx_max_export_smx_size = 96; evergreen_gpu_init()
3326 rdev->config.evergreen.max_hw_contexts = 4; evergreen_gpu_init()
3327 rdev->config.evergreen.sq_num_cf_insts = 1; evergreen_gpu_init()
3329 rdev->config.evergreen.sc_prim_fifo_size = 0x40; evergreen_gpu_init()
3330 rdev->config.evergreen.sc_hiz_tile_fifo_size = 0x30; evergreen_gpu_init()
3331 rdev->config.evergreen.sc_earlyz_tile_fifo_size = 0x130; evergreen_gpu_init()
3335 rdev->config.evergreen.num_ses = 1; evergreen_gpu_init()
3336 rdev->config.evergreen.max_pipes = 2; evergreen_gpu_init()
3337 rdev->config.evergreen.max_tile_pipes = 2; evergreen_gpu_init()
3338 rdev->config.evergreen.max_simds = 2; evergreen_gpu_init()
3339 rdev->config.evergreen.max_backends = 1 * rdev->config.evergreen.num_ses; evergreen_gpu_init()
3340 rdev->config.evergreen.max_gprs = 256; evergreen_gpu_init()
3341 rdev->config.evergreen.max_threads = 192; evergreen_gpu_init()
3342 rdev->config.evergreen.max_gs_threads = 16; evergreen_gpu_init()
3343 rdev->config.evergreen.max_stack_entries = 256; evergreen_gpu_init()
3344 rdev->config.evergreen.sx_num_of_sets = 4; evergreen_gpu_init()
3345 rdev->config.evergreen.sx_max_export_size = 128; evergreen_gpu_init()
3346 rdev->config.evergreen.sx_max_export_pos_size = 32; evergreen_gpu_init()
3347 rdev->config.evergreen.sx_max_export_smx_size = 96; evergreen_gpu_init()
3348 rdev->config.evergreen.max_hw_contexts = 4; evergreen_gpu_init()
3349 rdev->config.evergreen.sq_num_cf_insts = 1; evergreen_gpu_init()
3351 rdev->config.evergreen.sc_prim_fifo_size = 0x40; evergreen_gpu_init()
3352 rdev->config.evergreen.sc_hiz_tile_fifo_size = 0x30; evergreen_gpu_init()
3353 rdev->config.evergreen.sc_earlyz_tile_fifo_size = 0x130; evergreen_gpu_init()
3357 rdev->config.evergreen.num_ses = 1; evergreen_gpu_init()
3358 rdev->config.evergreen.max_pipes = 4; evergreen_gpu_init()
3359 rdev->config.evergreen.max_tile_pipes = 4; evergreen_gpu_init()
3361 rdev->config.evergreen.max_simds = 3; evergreen_gpu_init()
3364 rdev->config.evergreen.max_simds = 4; evergreen_gpu_init()
3366 rdev->config.evergreen.max_simds = 5; evergreen_gpu_init()
3367 rdev->config.evergreen.max_backends = 2 * rdev->config.evergreen.num_ses; evergreen_gpu_init()
3368 rdev->config.evergreen.max_gprs = 256; evergreen_gpu_init()
3369 rdev->config.evergreen.max_threads = 248; evergreen_gpu_init()
3370 rdev->config.evergreen.max_gs_threads = 32; evergreen_gpu_init()
3371 rdev->config.evergreen.max_stack_entries = 256; evergreen_gpu_init()
3372 rdev->config.evergreen.sx_num_of_sets = 4; evergreen_gpu_init()
3373 rdev->config.evergreen.sx_max_export_size = 256; evergreen_gpu_init()
3374 rdev->config.evergreen.sx_max_export_pos_size = 64; evergreen_gpu_init()
3375 rdev->config.evergreen.sx_max_export_smx_size = 192; evergreen_gpu_init()
3376 rdev->config.evergreen.max_hw_contexts = 8; evergreen_gpu_init()
3377 rdev->config.evergreen.sq_num_cf_insts = 2; evergreen_gpu_init()
3379 rdev->config.evergreen.sc_prim_fifo_size = 0x40; evergreen_gpu_init()
3380 rdev->config.evergreen.sc_hiz_tile_fifo_size = 0x30; evergreen_gpu_init()
3381 rdev->config.evergreen.sc_earlyz_tile_fifo_size = 0x130; evergreen_gpu_init()
3385 rdev->config.evergreen.num_ses = 1; evergreen_gpu_init()
3386 rdev->config.evergreen.max_pipes = 4; evergreen_gpu_init()
3387 rdev->config.evergreen.max_tile_pipes = 4; evergreen_gpu_init()
3388 rdev->config.evergreen.max_simds = 2; evergreen_gpu_init()
3389 rdev->config.evergreen.max_backends = 1 * rdev->config.evergreen.num_ses; evergreen_gpu_init()
3390 rdev->config.evergreen.max_gprs = 256; evergreen_gpu_init()
3391 rdev->config.evergreen.max_threads = 248; evergreen_gpu_init()
3392 rdev->config.evergreen.max_gs_threads = 32; evergreen_gpu_init()
3393 rdev->config.evergreen.max_stack_entries = 512; evergreen_gpu_init()
3394 rdev->config.evergreen.sx_num_of_sets = 4; evergreen_gpu_init()
3395 rdev->config.evergreen.sx_max_export_size = 256; evergreen_gpu_init()
3396 rdev->config.evergreen.sx_max_export_pos_size = 64; evergreen_gpu_init()
3397 rdev->config.evergreen.sx_max_export_smx_size = 192; evergreen_gpu_init()
3398 rdev->config.evergreen.max_hw_contexts = 4; evergreen_gpu_init()
3399 rdev->config.evergreen.sq_num_cf_insts = 2; evergreen_gpu_init()
3401 rdev->config.evergreen.sc_prim_fifo_size = 0x40; evergreen_gpu_init()
3402 rdev->config.evergreen.sc_hiz_tile_fifo_size = 0x30; evergreen_gpu_init()
3403 rdev->config.evergreen.sc_earlyz_tile_fifo_size = 0x130; evergreen_gpu_init()
3407 rdev->config.evergreen.num_ses = 2; evergreen_gpu_init()
3408 rdev->config.evergreen.max_pipes = 4; evergreen_gpu_init()
3409 rdev->config.evergreen.max_tile_pipes = 8; evergreen_gpu_init()
3410 rdev->config.evergreen.max_simds = 7; evergreen_gpu_init()
3411 rdev->config.evergreen.max_backends = 4 * rdev->config.evergreen.num_ses; evergreen_gpu_init()
3412 rdev->config.evergreen.max_gprs = 256; evergreen_gpu_init()
3413 rdev->config.evergreen.max_threads = 248; evergreen_gpu_init()
3414 rdev->config.evergreen.max_gs_threads = 32; evergreen_gpu_init()
3415 rdev->config.evergreen.max_stack_entries = 512; evergreen_gpu_init()
3416 rdev->config.evergreen.sx_num_of_sets = 4; evergreen_gpu_init()
3417 rdev->config.evergreen.sx_max_export_size = 256; evergreen_gpu_init()
3418 rdev->config.evergreen.sx_max_export_pos_size = 64; evergreen_gpu_init()
3419 rdev->config.evergreen.sx_max_export_smx_size = 192; evergreen_gpu_init()
3420 rdev->config.evergreen.max_hw_contexts = 8; evergreen_gpu_init()
3421 rdev->config.evergreen.sq_num_cf_insts = 2; evergreen_gpu_init()
3423 rdev->config.evergreen.sc_prim_fifo_size = 0x100; evergreen_gpu_init()
3424 rdev->config.evergreen.sc_hiz_tile_fifo_size = 0x30; evergreen_gpu_init()
3425 rdev->config.evergreen.sc_earlyz_tile_fifo_size = 0x130; evergreen_gpu_init()
3429 rdev->config.evergreen.num_ses = 1; evergreen_gpu_init()
3430 rdev->config.evergreen.max_pipes = 4; evergreen_gpu_init()
3431 rdev->config.evergreen.max_tile_pipes = 4; evergreen_gpu_init()
3432 rdev->config.evergreen.max_simds = 6; evergreen_gpu_init()
3433 rdev->config.evergreen.max_backends = 2 * rdev->config.evergreen.num_ses; evergreen_gpu_init()
3434 rdev->config.evergreen.max_gprs = 256; evergreen_gpu_init()
3435 rdev->config.evergreen.max_threads = 248; evergreen_gpu_init()
3436 rdev->config.evergreen.max_gs_threads = 32; evergreen_gpu_init()
3437 rdev->config.evergreen.max_stack_entries = 256; evergreen_gpu_init()
3438 rdev->config.evergreen.sx_num_of_sets = 4; evergreen_gpu_init()
3439 rdev->config.evergreen.sx_max_export_size = 256; evergreen_gpu_init()
3440 rdev->config.evergreen.sx_max_export_pos_size = 64; evergreen_gpu_init()
3441 rdev->config.evergreen.sx_max_export_smx_size = 192; evergreen_gpu_init()
3442 rdev->config.evergreen.max_hw_contexts = 8; evergreen_gpu_init()
3443 rdev->config.evergreen.sq_num_cf_insts = 2; evergreen_gpu_init()
3445 rdev->config.evergreen.sc_prim_fifo_size = 0x100; evergreen_gpu_init()
3446 rdev->config.evergreen.sc_hiz_tile_fifo_size = 0x30; evergreen_gpu_init()
3447 rdev->config.evergreen.sc_earlyz_tile_fifo_size = 0x130; evergreen_gpu_init()
3451 rdev->config.evergreen.num_ses = 1; evergreen_gpu_init()
3452 rdev->config.evergreen.max_pipes = 2; evergreen_gpu_init()
3453 rdev->config.evergreen.max_tile_pipes = 2; evergreen_gpu_init()
3454 rdev->config.evergreen.max_simds = 2; evergreen_gpu_init()
3455 rdev->config.evergreen.max_backends = 1 * rdev->config.evergreen.num_ses; evergreen_gpu_init()
3456 rdev->config.evergreen.max_gprs = 256; evergreen_gpu_init()
3457 rdev->config.evergreen.max_threads = 192; evergreen_gpu_init()
3458 rdev->config.evergreen.max_gs_threads = 16; evergreen_gpu_init()
3459 rdev->config.evergreen.max_stack_entries = 256; evergreen_gpu_init()
3460 rdev->config.evergreen.sx_num_of_sets = 4; evergreen_gpu_init()
3461 rdev->config.evergreen.sx_max_export_size = 128; evergreen_gpu_init()
3462 rdev->config.evergreen.sx_max_export_pos_size = 32; evergreen_gpu_init()
3463 rdev->config.evergreen.sx_max_export_smx_size = 96; evergreen_gpu_init()
3464 rdev->config.evergreen.max_hw_contexts = 4; evergreen_gpu_init()
3465 rdev->config.evergreen.sq_num_cf_insts = 1; evergreen_gpu_init()
3467 rdev->config.evergreen.sc_prim_fifo_size = 0x40; evergreen_gpu_init()
3468 rdev->config.evergreen.sc_hiz_tile_fifo_size = 0x30; evergreen_gpu_init()
3469 rdev->config.evergreen.sc_earlyz_tile_fifo_size = 0x130; evergreen_gpu_init()
3504 rdev->config.evergreen.tile_config = 0; evergreen_gpu_init()
3505 switch (rdev->config.evergreen.max_tile_pipes) { evergreen_gpu_init()
3508 rdev->config.evergreen.tile_config |= (0 << 0); evergreen_gpu_init()
3511 rdev->config.evergreen.tile_config |= (1 << 0); evergreen_gpu_init()
3514 rdev->config.evergreen.tile_config |= (2 << 0); evergreen_gpu_init()
3517 rdev->config.evergreen.tile_config |= (3 << 0); evergreen_gpu_init()
3522 rdev->config.evergreen.tile_config |= 1 << 4; evergreen_gpu_init()
3526 rdev->config.evergreen.tile_config |= 0 << 4; evergreen_gpu_init()
3529 rdev->config.evergreen.tile_config |= 1 << 4; evergreen_gpu_init()
3533 rdev->config.evergreen.tile_config |= 2 << 4; evergreen_gpu_init()
3537 rdev->config.evergreen.tile_config |= 0 << 8; evergreen_gpu_init()
3538 rdev->config.evergreen.tile_config |= evergreen_gpu_init()
3551 for (i = (rdev->config.evergreen.num_ses - 1); i >= 0; i--) { evergreen_gpu_init()
3564 for (i = 0; i < rdev->config.evergreen.max_backends; i++) evergreen_gpu_init()
3568 for (i = 0; i < rdev->config.evergreen.max_backends; i++) evergreen_gpu_init()
3572 for (i = 0; i < rdev->config.evergreen.num_ses; i++) { evergreen_gpu_init()
3578 simd_disable_bitmap |= 0xffffffff << rdev->config.evergreen.max_simds; evergreen_gpu_init()
3582 rdev->config.evergreen.active_simds = hweight32(~tmp); evergreen_gpu_init()
3595 if ((rdev->config.evergreen.max_backends == 1) && evergreen_gpu_init()
3606 tmp = r6xx_remap_render_backend(rdev, tmp, rdev->config.evergreen.max_backends, evergreen_gpu_init()
3634 smx_dc_ctl0 |= NUMBER_OF_SETS(rdev->config.evergreen.sx_num_of_sets); evergreen_gpu_init()
3640 WREG32(SX_EXPORT_BUFFER_SIZES, (COLOR_BUFFER_SIZE((rdev->config.evergreen.sx_max_export_size / 4) - 1) | evergreen_gpu_init()
3641 POSITION_BUFFER_SIZE((rdev->config.evergreen.sx_max_export_pos_size / 4) - 1) | evergreen_gpu_init()
3642 SMX_BUFFER_SIZE((rdev->config.evergreen.sx_max_export_smx_size / 4) - 1))); evergreen_gpu_init()
3644 WREG32(PA_SC_FIFO_SIZE, (SC_PRIM_FIFO_SIZE(rdev->config.evergreen.sc_prim_fifo_size) | evergreen_gpu_init()
3645 SC_HIZ_TILE_FIFO_SIZE(rdev->config.evergreen.sc_hiz_tile_fifo_size) | evergreen_gpu_init()
3646 SC_EARLYZ_TILE_FIFO_SIZE(rdev->config.evergreen.sc_earlyz_tile_fifo_size))); evergreen_gpu_init()
3653 WREG32(SQ_MS_FIFO_SIZES, (CACHE_FIFO_SIZE(16 * rdev->config.evergreen.sq_num_cf_insts) | evergreen_gpu_init()
3685 sq_gpr_resource_mgmt_1 = NUM_PS_GPRS((rdev->config.evergreen.max_gprs - (4 * 2))* 12 / 32); evergreen_gpu_init()
3686 sq_gpr_resource_mgmt_1 |= NUM_VS_GPRS((rdev->config.evergreen.max_gprs - (4 * 2)) * 6 / 32); evergreen_gpu_init()
3688 sq_gpr_resource_mgmt_2 = NUM_GS_GPRS((rdev->config.evergreen.max_gprs - (4 * 2)) * 4 / 32); evergreen_gpu_init()
3689 sq_gpr_resource_mgmt_2 |= NUM_ES_GPRS((rdev->config.evergreen.max_gprs - (4 * 2)) * 4 / 32); evergreen_gpu_init()
3690 sq_gpr_resource_mgmt_3 = NUM_HS_GPRS((rdev->config.evergreen.max_gprs - (4 * 2)) * 3 / 32); evergreen_gpu_init()
3691 sq_gpr_resource_mgmt_3 |= NUM_LS_GPRS((rdev->config.evergreen.max_gprs - (4 * 2)) * 3 / 32); evergreen_gpu_init()
3706 sq_thread_resource_mgmt |= NUM_VS_THREADS((((rdev->config.evergreen.max_threads - ps_thread_count) / 6) / 8) * 8); evergreen_gpu_init()
3707 sq_thread_resource_mgmt |= NUM_GS_THREADS((((rdev->config.evergreen.max_threads - ps_thread_count) / 6) / 8) * 8); evergreen_gpu_init()
3708 sq_thread_resource_mgmt |= NUM_ES_THREADS((((rdev->config.evergreen.max_threads - ps_thread_count) / 6) / 8) * 8); evergreen_gpu_init()
3709 sq_thread_resource_mgmt_2 = NUM_HS_THREADS((((rdev->config.evergreen.max_threads - ps_thread_count) / 6) / 8) * 8); evergreen_gpu_init()
3710 sq_thread_resource_mgmt_2 |= NUM_LS_THREADS((((rdev->config.evergreen.max_threads - ps_thread_count) / 6) / 8) * 8); evergreen_gpu_init()
3712 sq_stack_resource_mgmt_1 = NUM_PS_STACK_ENTRIES((rdev->config.evergreen.max_stack_entries * 1) / 6); evergreen_gpu_init()
3713 sq_stack_resource_mgmt_1 |= NUM_VS_STACK_ENTRIES((rdev->config.evergreen.max_stack_entries * 1) / 6); evergreen_gpu_init()
3714 sq_stack_resource_mgmt_2 = NUM_GS_STACK_ENTRIES((rdev->config.evergreen.max_stack_entries * 1) / 6); evergreen_gpu_init()
3715 sq_stack_resource_mgmt_2 |= NUM_ES_STACK_ENTRIES((rdev->config.evergreen.max_stack_entries * 1) / 6); evergreen_gpu_init()
3716 sq_stack_resource_mgmt_3 = NUM_HS_STACK_ENTRIES((rdev->config.evergreen.max_stack_entries * 1) / 6); evergreen_gpu_init()
3717 sq_stack_resource_mgmt_3 |= NUM_LS_STACK_ENTRIES((rdev->config.evergreen.max_stack_entries * 1) / 6); evergreen_gpu_init()
4102 dev_info(rdev->dev, "GPU pci config reset\n"); evergreen_gpu_pci_config_reset()
4153 /* try pci config reset */ evergreen_asic_reset()
4479 3 | (3 << (16 * rdev->config.cayman.max_shader_engines)); evergreen_rlc_resume()
4482 tmp |= 0xffffffff << rdev->config.cayman.max_simds_per_se; evergreen_rlc_resume()
4484 if (tmp == rdev->config.cayman.max_simds_per_se) { evergreen_rlc_resume()
H A Dni.c911 rdev->config.cayman.max_shader_engines = 2; cayman_gpu_init()
912 rdev->config.cayman.max_pipes_per_simd = 4; cayman_gpu_init()
913 rdev->config.cayman.max_tile_pipes = 8; cayman_gpu_init()
914 rdev->config.cayman.max_simds_per_se = 12; cayman_gpu_init()
915 rdev->config.cayman.max_backends_per_se = 4; cayman_gpu_init()
916 rdev->config.cayman.max_texture_channel_caches = 8; cayman_gpu_init()
917 rdev->config.cayman.max_gprs = 256; cayman_gpu_init()
918 rdev->config.cayman.max_threads = 256; cayman_gpu_init()
919 rdev->config.cayman.max_gs_threads = 32; cayman_gpu_init()
920 rdev->config.cayman.max_stack_entries = 512; cayman_gpu_init()
921 rdev->config.cayman.sx_num_of_sets = 8; cayman_gpu_init()
922 rdev->config.cayman.sx_max_export_size = 256; cayman_gpu_init()
923 rdev->config.cayman.sx_max_export_pos_size = 64; cayman_gpu_init()
924 rdev->config.cayman.sx_max_export_smx_size = 192; cayman_gpu_init()
925 rdev->config.cayman.max_hw_contexts = 8; cayman_gpu_init()
926 rdev->config.cayman.sq_num_cf_insts = 2; cayman_gpu_init()
928 rdev->config.cayman.sc_prim_fifo_size = 0x100; cayman_gpu_init()
929 rdev->config.cayman.sc_hiz_tile_fifo_size = 0x30; cayman_gpu_init()
930 rdev->config.cayman.sc_earlyz_tile_fifo_size = 0x130; cayman_gpu_init()
935 rdev->config.cayman.max_shader_engines = 1; cayman_gpu_init()
936 rdev->config.cayman.max_pipes_per_simd = 4; cayman_gpu_init()
937 rdev->config.cayman.max_tile_pipes = 2; cayman_gpu_init()
952 rdev->config.cayman.max_simds_per_se = 6; cayman_gpu_init()
953 rdev->config.cayman.max_backends_per_se = 2; cayman_gpu_init()
954 rdev->config.cayman.max_hw_contexts = 8; cayman_gpu_init()
955 rdev->config.cayman.sx_max_export_size = 256; cayman_gpu_init()
956 rdev->config.cayman.sx_max_export_pos_size = 64; cayman_gpu_init()
957 rdev->config.cayman.sx_max_export_smx_size = 192; cayman_gpu_init()
966 rdev->config.cayman.max_simds_per_se = 4; cayman_gpu_init()
967 rdev->config.cayman.max_backends_per_se = 2; cayman_gpu_init()
968 rdev->config.cayman.max_hw_contexts = 8; cayman_gpu_init()
969 rdev->config.cayman.sx_max_export_size = 256; cayman_gpu_init()
970 rdev->config.cayman.sx_max_export_pos_size = 64; cayman_gpu_init()
971 rdev->config.cayman.sx_max_export_smx_size = 192; cayman_gpu_init()
980 rdev->config.cayman.max_simds_per_se = 3; cayman_gpu_init()
981 rdev->config.cayman.max_backends_per_se = 1; cayman_gpu_init()
982 rdev->config.cayman.max_hw_contexts = 4; cayman_gpu_init()
983 rdev->config.cayman.sx_max_export_size = 128; cayman_gpu_init()
984 rdev->config.cayman.sx_max_export_pos_size = 32; cayman_gpu_init()
985 rdev->config.cayman.sx_max_export_smx_size = 96; cayman_gpu_init()
987 rdev->config.cayman.max_simds_per_se = 2; cayman_gpu_init()
988 rdev->config.cayman.max_backends_per_se = 1; cayman_gpu_init()
989 rdev->config.cayman.max_hw_contexts = 4; cayman_gpu_init()
990 rdev->config.cayman.sx_max_export_size = 128; cayman_gpu_init()
991 rdev->config.cayman.sx_max_export_pos_size = 32; cayman_gpu_init()
992 rdev->config.cayman.sx_max_export_smx_size = 96; cayman_gpu_init()
994 rdev->config.cayman.max_texture_channel_caches = 2; cayman_gpu_init()
995 rdev->config.cayman.max_gprs = 256; cayman_gpu_init()
996 rdev->config.cayman.max_threads = 256; cayman_gpu_init()
997 rdev->config.cayman.max_gs_threads = 32; cayman_gpu_init()
998 rdev->config.cayman.max_stack_entries = 512; cayman_gpu_init()
999 rdev->config.cayman.sx_num_of_sets = 8; cayman_gpu_init()
1000 rdev->config.cayman.sq_num_cf_insts = 2; cayman_gpu_init()
1002 rdev->config.cayman.sc_prim_fifo_size = 0x40; cayman_gpu_init()
1003 rdev->config.cayman.sc_hiz_tile_fifo_size = 0x30; cayman_gpu_init()
1004 rdev->config.cayman.sc_earlyz_tile_fifo_size = 0x130; cayman_gpu_init()
1028 rdev->config.cayman.mem_row_size_in_kb = (4 * (1 << (8 + tmp))) / 1024; cayman_gpu_init()
1029 if (rdev->config.cayman.mem_row_size_in_kb > 4) cayman_gpu_init()
1030 rdev->config.cayman.mem_row_size_in_kb = 4; cayman_gpu_init()
1032 rdev->config.cayman.shader_engine_tile_size = 32; cayman_gpu_init()
1033 rdev->config.cayman.num_gpus = 1; cayman_gpu_init()
1034 rdev->config.cayman.multi_gpu_tile_size = 64; cayman_gpu_init()
1037 rdev->config.cayman.num_tile_pipes = (1 << tmp); cayman_gpu_init()
1039 rdev->config.cayman.mem_max_burst_length_bytes = (tmp + 1) * 256; cayman_gpu_init()
1041 rdev->config.cayman.num_shader_engines = tmp + 1; cayman_gpu_init()
1043 rdev->config.cayman.num_gpus = tmp + 1; cayman_gpu_init()
1045 rdev->config.cayman.multi_gpu_tile_size = 1 << tmp; cayman_gpu_init()
1047 rdev->config.cayman.mem_row_size_in_kb = 1 << tmp; cayman_gpu_init()
1057 rdev->config.cayman.tile_config = 0; cayman_gpu_init()
1058 switch (rdev->config.cayman.num_tile_pipes) { cayman_gpu_init()
1061 rdev->config.cayman.tile_config |= (0 << 0); cayman_gpu_init()
1064 rdev->config.cayman.tile_config |= (1 << 0); cayman_gpu_init()
1067 rdev->config.cayman.tile_config |= (2 << 0); cayman_gpu_init()
1070 rdev->config.cayman.tile_config |= (3 << 0); cayman_gpu_init()
1076 rdev->config.cayman.tile_config |= 1 << 4; cayman_gpu_init()
1080 rdev->config.cayman.tile_config |= 0 << 4; cayman_gpu_init()
1083 rdev->config.cayman.tile_config |= 1 << 4; cayman_gpu_init()
1087 rdev->config.cayman.tile_config |= 2 << 4; cayman_gpu_init()
1091 rdev->config.cayman.tile_config |= cayman_gpu_init()
1093 rdev->config.cayman.tile_config |= cayman_gpu_init()
1097 for (i = (rdev->config.cayman.max_shader_engines - 1); i >= 0; i--) { cayman_gpu_init()
1109 for (i = 0; i < (rdev->config.cayman.max_backends_per_se * rdev->config.cayman.max_shader_engines); i++) cayman_gpu_init()
1113 for (i = 0; i < (rdev->config.cayman.max_backends_per_se * rdev->config.cayman.max_shader_engines); i++) cayman_gpu_init()
1117 for (i = 0; i < rdev->config.cayman.max_shader_engines; i++) { cayman_gpu_init()
1123 simd_disable_bitmap |= 0xffffffff << rdev->config.cayman.max_simds_per_se; cayman_gpu_init()
1127 rdev->config.cayman.active_simds = hweight32(~tmp); cayman_gpu_init()
1143 if ((rdev->config.cayman.max_backends_per_se == 1) && cayman_gpu_init()
1155 rdev->config.cayman.max_backends_per_se * cayman_gpu_init()
1156 rdev->config.cayman.max_shader_engines, cayman_gpu_init()
1162 for (i = 0; i < rdev->config.cayman.max_texture_channel_caches; i++) cayman_gpu_init()
1184 smx_dc_ctl0 |= NUMBER_OF_SETS(rdev->config.cayman.sx_num_of_sets); cayman_gpu_init()
1200 WREG32(SX_EXPORT_BUFFER_SIZES, (COLOR_BUFFER_SIZE((rdev->config.cayman.sx_max_export_size / 4) - 1) | cayman_gpu_init()
1201 POSITION_BUFFER_SIZE((rdev->config.cayman.sx_max_export_pos_size / 4) - 1) | cayman_gpu_init()
1202 SMX_BUFFER_SIZE((rdev->config.cayman.sx_max_export_smx_size / 4) - 1))); cayman_gpu_init()
1204 WREG32(PA_SC_FIFO_SIZE, (SC_PRIM_FIFO_SIZE(rdev->config.cayman.sc_prim_fifo_size) | cayman_gpu_init()
1205 SC_HIZ_TILE_FIFO_SIZE(rdev->config.cayman.sc_hiz_tile_fifo_size) | cayman_gpu_init()
1206 SC_EARLYZ_TILE_FIFO_SIZE(rdev->config.cayman.sc_earlyz_tile_fifo_size))); cayman_gpu_init()
1213 WREG32(SQ_MS_FIFO_SIZES, (CACHE_FIFO_SIZE(16 * rdev->config.cayman.sq_num_cf_insts) | cayman_gpu_init()
1569 radeon_ring_write(ring, rdev->config.cayman.max_hw_contexts - 1); cayman_cp_start()
H A Dradeon_kms.c281 *value = rdev->config.cik.tile_config; radeon_info_ioctl()
283 *value = rdev->config.si.tile_config; radeon_info_ioctl()
285 *value = rdev->config.cayman.tile_config; radeon_info_ioctl()
287 *value = rdev->config.evergreen.tile_config; radeon_info_ioctl()
289 *value = rdev->config.rv770.tile_config; radeon_info_ioctl()
291 *value = rdev->config.r600.tile_config; radeon_info_ioctl()
293 DRM_DEBUG_KMS("tiling config is r6xx+ only!\n"); radeon_info_ioctl()
335 *value = rdev->config.cik.max_backends_per_se * radeon_info_ioctl()
336 rdev->config.cik.max_shader_engines; radeon_info_ioctl()
338 *value = rdev->config.si.max_backends_per_se * radeon_info_ioctl()
339 rdev->config.si.max_shader_engines; radeon_info_ioctl()
341 *value = rdev->config.cayman.max_backends_per_se * radeon_info_ioctl()
342 rdev->config.cayman.max_shader_engines; radeon_info_ioctl()
344 *value = rdev->config.evergreen.max_backends; radeon_info_ioctl()
346 *value = rdev->config.rv770.max_backends; radeon_info_ioctl()
348 *value = rdev->config.r600.max_backends; radeon_info_ioctl()
355 *value = rdev->config.cik.max_tile_pipes; radeon_info_ioctl()
357 *value = rdev->config.si.max_tile_pipes; radeon_info_ioctl()
359 *value = rdev->config.cayman.max_tile_pipes; radeon_info_ioctl()
361 *value = rdev->config.evergreen.max_tile_pipes; radeon_info_ioctl()
363 *value = rdev->config.rv770.max_tile_pipes; radeon_info_ioctl()
365 *value = rdev->config.r600.max_tile_pipes; radeon_info_ioctl()
375 *value = rdev->config.cik.backend_map; radeon_info_ioctl()
377 *value = rdev->config.si.backend_map; radeon_info_ioctl()
379 *value = rdev->config.cayman.backend_map; radeon_info_ioctl()
381 *value = rdev->config.evergreen.backend_map; radeon_info_ioctl()
383 *value = rdev->config.rv770.backend_map; radeon_info_ioctl()
385 *value = rdev->config.r600.backend_map; radeon_info_ioctl()
404 *value = rdev->config.cik.max_cu_per_sh; radeon_info_ioctl()
406 *value = rdev->config.si.max_cu_per_sh; radeon_info_ioctl()
408 *value = rdev->config.cayman.max_pipes_per_simd; radeon_info_ioctl()
410 *value = rdev->config.evergreen.max_pipes; radeon_info_ioctl()
412 *value = rdev->config.rv770.max_pipes; radeon_info_ioctl()
414 *value = rdev->config.r600.max_pipes; radeon_info_ioctl()
430 *value = rdev->config.cik.max_shader_engines; radeon_info_ioctl()
432 *value = rdev->config.si.max_shader_engines; radeon_info_ioctl()
434 *value = rdev->config.cayman.max_shader_engines; radeon_info_ioctl()
436 *value = rdev->config.evergreen.num_ses; radeon_info_ioctl()
442 *value = rdev->config.cik.max_sh_per_se; radeon_info_ioctl()
444 *value = rdev->config.si.max_sh_per_se; radeon_info_ioctl()
477 value = rdev->config.cik.tile_mode_array; radeon_info_ioctl()
480 value = rdev->config.si.tile_mode_array; radeon_info_ioctl()
489 value = rdev->config.cik.macrotile_mode_array; radeon_info_ioctl()
501 *value = rdev->config.cik.backend_enable_mask; radeon_info_ioctl()
503 *value = rdev->config.si.backend_enable_mask; radeon_info_ioctl()
538 *value = rdev->config.cik.active_cus; radeon_info_ioctl()
540 *value = rdev->config.si.active_cus; radeon_info_ioctl()
542 *value = rdev->config.cayman.active_simds; radeon_info_ioctl()
544 *value = rdev->config.evergreen.active_simds; radeon_info_ioctl()
546 *value = rdev->config.rv770.active_simds; radeon_info_ioctl()
548 *value = rdev->config.r600.active_simds; radeon_info_ioctl()
/linux-4.4.14/include/linux/pinctrl/
H A Dpinconf.h23 * struct pinconf_ops - pin config operations, to be implemented by
27 * @pin_config_get: get the config of a certain pin, if the requested config
47 unsigned long *config);
54 unsigned long *config);
61 unsigned long *config);
70 unsigned long config);
/linux-4.4.14/tools/testing/selftests/powerpc/pmu/
H A Devent.c23 void event_init_opts(struct event *e, u64 config, int type, char *name) event_init_opts() argument
30 e->attr.config = config; event_init_opts()
37 void event_init_named(struct event *e, u64 config, char *name) event_init_named() argument
39 event_init_opts(e, config, PERF_TYPE_RAW, name); event_init_named()
42 void event_init(struct event *e, u64 config) event_init() argument
44 event_init_opts(e, config, PERF_TYPE_RAW, "event"); event_init()
H A Devent.h27 void event_init(struct event *e, u64 config);
28 void event_init_named(struct event *e, u64 config, char *name);
29 void event_init_opts(struct event *e, u64 config, int type, char *name);
/linux-4.4.14/drivers/irqchip/
H A Dirq-st.c45 unsigned int config; member in struct:st_irq_syscfg
77 ddata->config |= ST_A9_IRQ_EN_EXT_0; st_irq_xlate()
80 ddata->config |= ST_A9_IRQ_EN_EXT_1; st_irq_xlate()
83 ddata->config |= ST_A9_IRQ_EN_EXT_2; st_irq_xlate()
86 ddata->config |= ST_A9_IRQ_EN_CTI_0; st_irq_xlate()
89 ddata->config |= ST_A9_IRQ_EN_CTI_1; st_irq_xlate()
92 ddata->config |= ST_A9_IRQ_EN_PMU_0; st_irq_xlate()
95 ddata->config |= ST_A9_IRQ_EN_PMU_1; st_irq_xlate()
98 ddata->config |= ST_A9_IRQ_EN_PL310_L2; st_irq_xlate()
108 ddata->config |= irq ? st_irq_xlate()
150 ddata->config |= ST_A9_EXTIRQ_INV_SEL(invert); st_irq_syscfg_enable()
153 ST_A9_IRQ_MASK, ddata->config); st_irq_syscfg_enable()
188 ST_A9_IRQ_MASK, ddata->config); st_irq_syscfg_resume()
/linux-4.4.14/drivers/nfc/nfcmrvl/
H A Duart.c57 const struct nfcmrvl_fw_uart_config *config = param; nfcmrvl_uart_nci_update_config() local
59 nci_uart_set_config(nu, le32_to_cpu(config->baudrate), nfcmrvl_uart_nci_update_config()
60 config->flow_control); nfcmrvl_uart_nci_update_config()
111 struct nfcmrvl_platform_data config; nfcmrvl_nci_uart_open() local
121 &config) == 0) nfcmrvl_nci_uart_open()
122 pdata = &config; nfcmrvl_nci_uart_open()
126 config.hci_muxed = hci_muxed; nfcmrvl_nci_uart_open()
127 config.reset_n_io = reset_n_io; nfcmrvl_nci_uart_open()
128 config.flow_control = flow_control; nfcmrvl_nci_uart_open()
129 config.break_control = break_control; nfcmrvl_nci_uart_open()
130 pdata = &config; nfcmrvl_nci_uart_open()
165 if (priv->config.break_control && nu->tty->ops->break_ctl) { nfcmrvl_nci_uart_tx_start()
183 if (priv->config.break_control && nu->tty->ops->break_ctl) { nfcmrvl_nci_uart_tx_done()
H A Dmain.c67 if (priv->config.hci_muxed) { nfcmrvl_nci_send()
124 memcpy(&priv->config, pdata, sizeof(*pdata)); nfcmrvl_nci_register_dev()
126 if (priv->config.reset_n_io) { nfcmrvl_nci_register_dev()
128 priv->config.reset_n_io, nfcmrvl_nci_register_dev()
141 if (priv->config.hci_muxed) nfcmrvl_nci_register_dev()
197 if (priv->config.reset_n_io) nfcmrvl_nci_unregister_dev()
198 devm_gpio_free(priv->dev, priv->config.reset_n_io); nfcmrvl_nci_unregister_dev()
208 if (priv->config.hci_muxed) { nfcmrvl_nci_recv_frame()
242 if (priv->config.reset_n_io) { nfcmrvl_chip_reset()
244 gpio_set_value(priv->config.reset_n_io, 0); nfcmrvl_chip_reset()
246 gpio_set_value(priv->config.reset_n_io, 1); nfcmrvl_chip_reset()
253 if (priv->config.reset_n_io) nfcmrvl_chip_halt()
254 gpio_set_value(priv->config.reset_n_io, 0); nfcmrvl_chip_halt()
264 pr_info("no reset-n-io config\n"); nfcmrvl_parse_dt()
/linux-4.4.14/drivers/staging/media/davinci_vpfe/
H A Ddm365_ipipeif.c170 return ipipeif->config.decimation; vpfe_ipipeif_decimation_enabled()
177 return ipipeif->config.rsz; vpfe_ipipeif_get_rsz()
191 struct ipipeif_params params = ipipeif->config; ipipeif_hw_setup()
378 ipipeif_set_config(struct v4l2_subdev *sd, struct ipipeif_params *config) ipipeif_set_config() argument
383 if (!config) { ipipeif_set_config()
388 ipipeif->config.clock_select = config->clock_select; ipipeif_set_config()
389 ipipeif->config.ppln = config->ppln; ipipeif_set_config()
390 ipipeif->config.lpfr = config->lpfr; ipipeif_set_config()
391 ipipeif->config.rsz = config->rsz; ipipeif_set_config()
392 ipipeif->config.decimation = config->decimation; ipipeif_set_config()
393 if (ipipeif->config.decimation && ipipeif_set_config()
394 (ipipeif->config.rsz < IPIPEIF_RSZ_MIN || ipipeif_set_config()
395 ipipeif->config.rsz > IPIPEIF_RSZ_MAX)) { ipipeif_set_config()
401 ipipeif->config.avg_filter = config->avg_filter; ipipeif_set_config()
403 ipipeif->config.if_5_1.df_gain_thr = config->if_5_1.df_gain_thr; ipipeif_set_config()
404 ipipeif->config.if_5_1.df_gain = config->if_5_1.df_gain; ipipeif_set_config()
405 ipipeif->config.if_5_1.df_gain_en = config->if_5_1.df_gain_en; ipipeif_set_config()
407 ipipeif->config.if_5_1.rsz_start = config->if_5_1.rsz_start; ipipeif_set_config()
408 ipipeif->config.if_5_1.align_sync = config->if_5_1.align_sync; ipipeif_set_config()
409 ipipeif->config.if_5_1.clip = config->if_5_1.clip; ipipeif_set_config()
411 ipipeif->config.if_5_1.dpc.en = config->if_5_1.dpc.en; ipipeif_set_config()
412 ipipeif->config.if_5_1.dpc.thr = config->if_5_1.dpc.thr; ipipeif_set_config()
414 ipipeif->config.if_5_1.clk_div.m = config->if_5_1.clk_div.m; ipipeif_set_config()
415 ipipeif->config.if_5_1.clk_div.n = config->if_5_1.clk_div.n; ipipeif_set_config()
424 struct ipipeif_params *config = arg; ipipeif_get_config() local
432 config->clock_select = ipipeif->config.clock_select; ipipeif_get_config()
433 config->ppln = ipipeif->config.ppln; ipipeif_get_config()
434 config->lpfr = ipipeif->config.lpfr; ipipeif_get_config()
435 config->rsz = ipipeif->config.rsz; ipipeif_get_config()
436 config->decimation = ipipeif->config.decimation; ipipeif_get_config()
437 config->avg_filter = ipipeif->config.avg_filter; ipipeif_get_config()
439 config->if_5_1.df_gain_thr = ipipeif->config.if_5_1.df_gain_thr; ipipeif_get_config()
440 config->if_5_1.df_gain = ipipeif->config.if_5_1.df_gain; ipipeif_get_config()
441 config->if_5_1.df_gain_en = ipipeif->config.if_5_1.df_gain_en; ipipeif_get_config()
443 config->if_5_1.rsz_start = ipipeif->config.if_5_1.rsz_start; ipipeif_get_config()
444 config->if_5_1.align_sync = ipipeif->config.if_5_1.align_sync; ipipeif_get_config()
445 config->if_5_1.clip = ipipeif->config.if_5_1.clip; ipipeif_get_config()
447 config->if_5_1.dpc.en = ipipeif->config.if_5_1.dpc.en; ipipeif_get_config()
448 config->if_5_1.dpc.thr = ipipeif->config.if_5_1.dpc.thr; ipipeif_get_config()
450 config->if_5_1.clk_div.m = ipipeif->config.if_5_1.clk_div.m; ipipeif_get_config()
451 config->if_5_1.clk_div.n = ipipeif->config.if_5_1.clk_div.n; ipipeif_get_config()
465 struct ipipeif_params *config = arg; ipipeif_ioctl() local
470 ret = ipipeif_set_config(sd, config); ipipeif_ioctl()
547 * @cfg: V4L2 subdev pad config
580 * @cfg: V4L2 subdev pad config
603 * @cfg: V4L2 subdev pad config
676 * @cfg: V4L2 subdev pad config
695 * @cfg: V4L2 subdev pad config
748 memcpy(&ipipeif->config, &ipipeif_defaults, ipipeif_set_default_config()
/linux-4.4.14/drivers/hwmon/
H A Dtmp102.c201 dev_err(dev, "error reading config register\n"); tmp102_probe()
208 dev_err(dev, "error writing config register\n"); tmp102_probe()
213 dev_err(dev, "error reading config register\n"); tmp102_probe()
218 dev_err(dev, "config settings did not stick\n"); tmp102_probe()
259 int config; tmp102_remove() local
261 config = i2c_smbus_read_word_swapped(client, TMP102_CONF_REG); tmp102_remove()
262 if (config >= 0) tmp102_remove()
264 config | TMP102_CONF_SD); tmp102_remove()
274 int config; tmp102_suspend() local
276 config = i2c_smbus_read_word_swapped(client, TMP102_CONF_REG); tmp102_suspend()
277 if (config < 0) tmp102_suspend()
278 return config; tmp102_suspend()
280 config |= TMP102_CONF_SD; tmp102_suspend()
281 return i2c_smbus_write_word_swapped(client, TMP102_CONF_REG, config); tmp102_suspend()
287 int config; tmp102_resume() local
289 config = i2c_smbus_read_word_swapped(client, TMP102_CONF_REG); tmp102_resume()
290 if (config < 0) tmp102_resume()
291 return config; tmp102_resume()
293 config &= ~TMP102_CONF_SD; tmp102_resume()
294 return i2c_smbus_write_word_swapped(client, TMP102_CONF_REG, config); tmp102_resume()
H A Djc42.c200 u16 config; /* current configuration */ member in struct:jc42_data
276 hyst = jc42_hysteresis[(data->config & JC42_CFG_HYST_MASK) show_temp_hyst()
334 data->config = (data->config & ~JC42_CFG_HYST_MASK) set_temp_crit_hyst()
337 data->config); set_temp_crit_hyst()
355 if (bit != JC42_ALARM_CRIT_BIT && (data->config & JC42_CFG_CRIT_ONLY)) show_alarm()
394 unsigned int config = data->config; jc42_attribute_mode() local
398 readonly = config & JC42_CFG_TCRIT_LOCK; jc42_attribute_mode()
401 readonly = config & JC42_CFG_EVENT_LOCK; jc42_attribute_mode()
403 readonly = config & (JC42_CFG_EVENT_LOCK | JC42_CFG_TCRIT_LOCK); jc42_attribute_mode()
420 int i, config, cap, manid, devid; jc42_detect() local
427 config = i2c_smbus_read_word_swapped(client, JC42_REG_CONFIG); jc42_detect()
431 if (cap < 0 || config < 0 || manid < 0 || devid < 0) jc42_detect()
434 if ((cap & 0xff00) || (config & 0xf800)) jc42_detect()
453 int config, cap; jc42_probe() local
469 config = i2c_smbus_read_word_swapped(client, JC42_REG_CONFIG); jc42_probe()
470 if (config < 0) jc42_probe()
471 return config; jc42_probe()
473 data->orig_config = config; jc42_probe()
474 if (config & JC42_CFG_SHUTDOWN) { jc42_probe()
475 config &= ~JC42_CFG_SHUTDOWN; jc42_probe()
476 i2c_smbus_write_word_swapped(client, JC42_REG_CONFIG, config); jc42_probe()
478 data->config = config; jc42_probe()
491 if ((data->config & ~JC42_CFG_HYST_MASK) != jc42_remove()
493 int config; jc42_remove() local
495 config = (data->orig_config & ~JC42_CFG_HYST_MASK) jc42_remove()
496 | (data->config & JC42_CFG_HYST_MASK); jc42_remove()
497 i2c_smbus_write_word_swapped(client, JC42_REG_CONFIG, config); jc42_remove()
508 data->config |= JC42_CFG_SHUTDOWN; jc42_suspend()
510 data->config); jc42_suspend()
518 data->config &= ~JC42_CFG_SHUTDOWN; jc42_resume()
520 data->config); jc42_resume()
H A Damc6821.c414 int config = kstrtol(buf, 10, &val); set_pwm1_enable() local
415 if (config) set_pwm1_enable()
416 return config; set_pwm1_enable()
419 config = i2c_smbus_read_byte_data(client, AMC6821_REG_CONF1); set_pwm1_enable()
420 if (config < 0) { set_pwm1_enable()
423 count = config; set_pwm1_enable()
429 config &= ~AMC6821_CONF1_FDRC0; set_pwm1_enable()
430 config &= ~AMC6821_CONF1_FDRC1; set_pwm1_enable()
433 config &= ~AMC6821_CONF1_FDRC0; set_pwm1_enable()
434 config |= AMC6821_CONF1_FDRC1; set_pwm1_enable()
437 config |= AMC6821_CONF1_FDRC0; set_pwm1_enable()
438 config |= AMC6821_CONF1_FDRC1; set_pwm1_enable()
444 if (i2c_smbus_write_byte_data(client, AMC6821_REG_CONF1, config)) { set_pwm1_enable()
702 int config = kstrtol(buf, 10, &val); set_fan1_div() local
703 if (config) set_fan1_div()
704 return config; set_fan1_div()
707 config = i2c_smbus_read_byte_data(client, AMC6821_REG_CONF4); set_fan1_div()
708 if (config < 0) { set_fan1_div()
711 count = config; set_fan1_div()
716 config &= ~AMC6821_CONF4_PSPR; set_fan1_div()
720 config |= AMC6821_CONF4_PSPR; set_fan1_div()
727 if (i2c_smbus_write_byte_data(client, AMC6821_REG_CONF4, config)) { set_fan1_div()
887 int config; amc6821_init_client() local
891 config = i2c_smbus_read_byte_data(client, AMC6821_REG_CONF4); amc6821_init_client()
893 if (config < 0) { amc6821_init_client()
899 config |= AMC6821_CONF4_MODE; amc6821_init_client()
902 config)) { amc6821_init_client()
908 config = i2c_smbus_read_byte_data(client, AMC6821_REG_CONF3); amc6821_init_client()
910 if (config < 0) { amc6821_init_client()
916 dev_info(&client->dev, "Revision %d\n", config & 0x0f); amc6821_init_client()
918 config &= ~AMC6821_CONF3_THERM_FAN_EN; amc6821_init_client()
921 config)) { amc6821_init_client()
927 config = i2c_smbus_read_byte_data(client, AMC6821_REG_CONF2); amc6821_init_client()
929 if (config < 0) { amc6821_init_client()
935 config &= ~AMC6821_CONF2_RTFIE; amc6821_init_client()
936 config &= ~AMC6821_CONF2_LTOIE; amc6821_init_client()
937 config &= ~AMC6821_CONF2_RTOIE; amc6821_init_client()
939 AMC6821_REG_CONF2, config)) { amc6821_init_client()
945 config = i2c_smbus_read_byte_data(client, AMC6821_REG_CONF1); amc6821_init_client()
947 if (config < 0) { amc6821_init_client()
953 config &= ~AMC6821_CONF1_THERMOVIE; amc6821_init_client()
954 config &= ~AMC6821_CONF1_FANIE; amc6821_init_client()
955 config |= AMC6821_CONF1_START; amc6821_init_client()
957 config |= AMC6821_CONF1_PWMINV; amc6821_init_client()
959 config &= ~AMC6821_CONF1_PWMINV; amc6821_init_client()
962 client, AMC6821_REG_CONF1, config)) { amc6821_init_client()
H A Dmax6650.c122 u8 config; member in struct:max6650_data
147 data->config = i2c_smbus_read_byte_data(client, max6650_update_device()
206 * 2) The prescaler (low three bits of the config register) has already
249 kscale = DIV_FROM_REG(data->config); get_target()
279 kscale = DIV_FROM_REG(data->config); set_target()
313 if (data->config & MAX6650_CFG_V12) get_pwm()
340 if (data->config & MAX6650_CFG_V12) set_pwm()
364 int mode = (data->config & MAX6650_CFG_MODE_MASK) >> 4; get_enable()
388 data->config = i2c_smbus_read_byte_data(client, MAX6650_REG_CONFIG); set_enable()
389 data->config = (data->config & ~MAX6650_CFG_MODE_MASK) set_enable()
392 i2c_smbus_write_byte_data(client, MAX6650_REG_CONFIG, data->config); set_enable()
567 int config; max6650_init_client() local
570 config = i2c_smbus_read_byte_data(client, MAX6650_REG_CONFIG); max6650_init_client()
572 if (config < 0) { max6650_init_client()
573 dev_err(dev, "Error reading config, aborting.\n"); max6650_init_client()
581 config &= ~MAX6650_CFG_V12; max6650_init_client()
584 config |= MAX6650_CFG_V12; max6650_init_client()
592 (config & MAX6650_CFG_V12) ? 12 : 5); max6650_init_client()
598 config &= ~MAX6650_CFG_PRESCALER_MASK; max6650_init_client()
601 config = (config & ~MAX6650_CFG_PRESCALER_MASK) max6650_init_client()
605 config = (config & ~MAX6650_CFG_PRESCALER_MASK) max6650_init_client()
609 config = (config & ~MAX6650_CFG_PRESCALER_MASK) max6650_init_client()
613 config = (config & ~MAX6650_CFG_PRESCALER_MASK) max6650_init_client()
621 1 << (config & MAX6650_CFG_PRESCALER_MASK)); max6650_init_client()
629 if ((config & MAX6650_CFG_MODE_MASK) == MAX6650_CFG_MODE_OFF) { max6650_init_client()
631 config = (config & ~MAX6650_CFG_MODE_MASK) max6650_init_client()
639 if (i2c_smbus_write_byte_data(client, MAX6650_REG_CONFIG, config)) { max6650_init_client()
644 data->config = config; max6650_init_client()
/linux-4.4.14/drivers/input/misc/
H A Dda9063_onkey.c50 const struct da906x_chip_config *config; member in struct:da9063_onkey
96 const struct da906x_chip_config *config = onkey->config; da9063_poll_on() local
104 config->onkey_status, da9063_poll_on()
112 if (!(val & config->onkey_nonkey_mask)) { da9063_poll_on()
114 config->onkey_pwr_signalling, da9063_poll_on()
115 config->onkey_nonkey_lock_mask, da9063_poll_on()
134 config->onkey_fault_log, da9063_poll_on()
139 } else if (fault_log & config->onkey_key_reset_mask) { da9063_poll_on()
141 config->onkey_fault_log, da9063_poll_on()
142 config->onkey_key_reset_mask); da9063_poll_on()
154 config->onkey_shutdown, da9063_poll_on()
155 config->onkey_shutdown_mask); da9063_poll_on()
171 const struct da906x_chip_config *config = onkey->config; da9063_onkey_irq_handler() local
176 config->onkey_status, da9063_onkey_irq_handler()
178 if (onkey->key_power && !error && (val & config->onkey_nonkey_mask)) { da9063_onkey_irq_handler()
222 onkey->config = match->data; da9063_onkey_probe()
244 onkey->input->name = onkey->config->name; da9063_onkey_probe()
246 onkey->config->name); da9063_onkey_probe()
H A Dpalmas-pwrbutton.c110 * @config: configuration params that this fills up
113 struct palmas_pwron_config *config) palmas_pwron_params_ofinit()
121 memset(config, 0, sizeof(*config)); palmas_pwron_params_ofinit()
123 /* Default config parameters */ palmas_pwron_params_ofinit()
124 config->long_press_time_val = ARRAY_SIZE(lpk_times) - 1; palmas_pwron_params_ofinit()
134 config->long_press_time_val = i; palmas_pwron_params_ofinit()
146 config->pwron_debounce_val = i; palmas_pwron_params_ofinit()
153 lpk_times[config->long_press_time_val]); palmas_pwron_params_ofinit()
168 struct palmas_pwron_config config; palmas_pwron_probe() local
172 palmas_pwron_params_ofinit(dev, &config); palmas_pwron_probe()
195 val = config.long_press_time_val << __ffs(PALMAS_LPK_TIME_MASK); palmas_pwron_probe()
196 val |= config.pwron_debounce_val << __ffs(PALMAS_PWRON_DEBOUNCE_MASK); palmas_pwron_probe()
112 palmas_pwron_params_ofinit(struct device *dev, struct palmas_pwron_config *config) palmas_pwron_params_ofinit() argument
/linux-4.4.14/drivers/pinctrl/
H A Dpinconf.c2 * Core driver for the pin config portions of the pin control subsystem
31 /* We have to be able to config the pins in SOME way */ pinconf_check_ops()
34 "pinconf has to be able to set a pins config\n"); pinconf_check_ops()
59 unsigned long *config) pin_config_get_for_pin()
69 return ops->pin_config_get(pctldev, pin, config); pin_config_get_for_pin()
73 unsigned long *config) pin_config_group_get()
91 "group, missing group config get function in " pin_config_group_get()
103 ret = ops->pin_config_group_get(pctldev, selector, config); pin_config_group_get()
121 dev_err(pctldev->dev, "could not map pin config for \"%s\"", pinconf_map_to_setting()
131 dev_err(pctldev->dev, "could not map group config for \"%s\"", pinconf_map_to_setting()
217 seq_puts(s, "config "); pinconf_show_config()
276 * FIXME: We should really get the pin controler to dump the config pinconf_show_setting()
288 /* no-op when not using generic pin config */ pinconf_dump_pin()
299 seq_puts(s, "Pin config settings per pin\n"); pinconf_pins_show()
333 /* no-op when not using generic pin config */ pinconf_dump_group()
346 seq_puts(s, "Pin config settings per pin group\n"); pinconf_groups_show()
397 * pinconf-config file after a write to check config is as expected
402 * pinconf_dbg_config_print() - display the pinctrl config from the pinctrl
403 * map, of the dev/pin/state that was last written to pinconf-config file.
404 * @s: string filled in with config description
435 seq_printf(s, "No config found for dev/state/pin, expected:\n");
445 seq_printf(s, "Dev %s has config of %s in state %s:\n",
457 * pinconf_dbg_config_write() - modify the pinctrl config in the pinctrl
458 * map, of a dev/pin/state entry based on user entries to pinconf-config
460 * modify <config> <devicename> <state> <name> <newvalue>
462 * <config> is the configuration to be changed. Supported configs are
466 * <newvalue> reflects the new config and is driver dependant
478 char config[MAX_NAME_LEN+1]; pinconf_dbg_config_write() local
541 /* get new_value of config' */ pinconf_dbg_config_write()
547 strncpy(config, token, MAX_NAME_LEN); pinconf_dbg_config_write()
560 /* we found the right pin / state, so overwrite config */ for_each_maps()
580 config,
612 debugfs_create_file("pinconf-config", (S_IRUGO | S_IWUSR | S_IWGRP), pinconf_init_device_debugfs()
58 pin_config_get_for_pin(struct pinctrl_dev *pctldev, unsigned pin, unsigned long *config) pin_config_get_for_pin() argument
72 pin_config_group_get(const char *dev_name, const char *pin_group, unsigned long *config) pin_config_group_get() argument
H A Dpinconf.h3 * pin config portions
28 unsigned long *config);
30 unsigned long *config);
90 * pin config.
100 struct seq_file *s, unsigned long config);
112 unsigned long config) pinconf_generic_dump_config()
110 pinconf_generic_dump_config(struct pinctrl_dev *pctldev, struct seq_file *s, unsigned long config) pinconf_generic_dump_config() argument
H A Dpinctrl-st.c255 unsigned long config; member in struct:st_pinconf
425 int pin, unsigned long config) st_pinconf_set_config()
436 if (config & ST_PINCONF_OE) st_pinconf_set_config()
444 if (config & ST_PINCONF_PU) st_pinconf_set_config()
452 if (config & ST_PINCONF_OD) st_pinconf_set_config()
490 const struct st_pctl_data *data, unsigned long config) st_pinconf_delay_to_bit()
496 if (ST_PINCONF_UNPACK_OE(config)) { st_pinconf_delay_to_bit()
558 struct st_pio_control *pc, unsigned long config, int pin) st_pinconf_set_retime_packed()
565 ST_PINCONF_UNPACK_RT_CLK(config), pin); st_pinconf_set_retime_packed()
568 ST_PINCONF_UNPACK_RT_CLKNOTDATA(config), pin); st_pinconf_set_retime_packed()
571 ST_PINCONF_UNPACK_RT_DOUBLE_EDGE(config), pin); st_pinconf_set_retime_packed()
574 ST_PINCONF_UNPACK_RT_INVERTCLK(config), pin); st_pinconf_set_retime_packed()
577 ST_PINCONF_UNPACK_RT(config), pin); st_pinconf_set_retime_packed()
579 delay = st_pinconf_delay_to_bit(ST_PINCONF_UNPACK_RT_DELAY(config), st_pinconf_set_retime_packed()
580 data, config); st_pinconf_set_retime_packed()
589 struct st_pio_control *pc, unsigned long config, int pin) st_pinconf_set_retime_dedicated()
591 int input = ST_PINCONF_UNPACK_OE(config) ? 0 : 1; st_pinconf_set_retime_dedicated()
592 int clk = ST_PINCONF_UNPACK_RT_CLK(config); st_pinconf_set_retime_dedicated()
593 int clknotdata = ST_PINCONF_UNPACK_RT_CLKNOTDATA(config); st_pinconf_set_retime_dedicated()
594 int double_edge = ST_PINCONF_UNPACK_RT_DOUBLE_EDGE(config); st_pinconf_set_retime_dedicated()
595 int invertclk = ST_PINCONF_UNPACK_RT_INVERTCLK(config); st_pinconf_set_retime_dedicated()
596 int retime = ST_PINCONF_UNPACK_RT(config); st_pinconf_set_retime_dedicated()
599 ST_PINCONF_UNPACK_RT_DELAY(config), st_pinconf_set_retime_dedicated()
600 info->data, config); st_pinconf_set_retime_dedicated()
616 int pin, unsigned long *config) st_pinconf_get_direction()
623 ST_PINCONF_PACK_OE(*config); st_pinconf_get_direction()
629 ST_PINCONF_PACK_PU(*config); st_pinconf_get_direction()
635 ST_PINCONF_PACK_OD(*config); st_pinconf_get_direction()
640 struct st_pio_control *pc, int pin, unsigned long *config) st_pinconf_get_retime_packed()
645 int output = ST_PINCONF_UNPACK_OE(*config); st_pinconf_get_retime_packed()
648 ST_PINCONF_PACK_RT(*config); st_pinconf_get_retime_packed()
651 ST_PINCONF_PACK_RT_CLK(*config, 1); st_pinconf_get_retime_packed()
654 ST_PINCONF_PACK_RT_CLKNOTDATA(*config); st_pinconf_get_retime_packed()
657 ST_PINCONF_PACK_RT_DOUBLE_EDGE(*config); st_pinconf_get_retime_packed()
660 ST_PINCONF_PACK_RT_INVERTCLK(*config); st_pinconf_get_retime_packed()
667 ST_PINCONF_PACK_RT_DELAY(*config, delay); st_pinconf_get_retime_packed()
673 struct st_pio_control *pc, int pin, unsigned long *config) st_pinconf_get_retime_dedicated()
677 int output = ST_PINCONF_UNPACK_OE(*config); st_pinconf_get_retime_dedicated()
683 ST_PINCONF_PACK_RT_CLK(*config, rt_clk); st_pinconf_get_retime_dedicated()
687 ST_PINCONF_PACK_RT_DELAY(*config, delay); st_pinconf_get_retime_dedicated()
690 ST_PINCONF_PACK_RT_CLKNOTDATA(*config); st_pinconf_get_retime_dedicated()
693 ST_PINCONF_PACK_RT_DOUBLE_EDGE(*config); st_pinconf_get_retime_dedicated()
696 ST_PINCONF_PACK_RT_INVERTCLK(*config); st_pinconf_get_retime_dedicated()
699 ST_PINCONF_PACK_RT(*config); st_pinconf_get_retime_dedicated()
780 unsigned long config; st_gpio_get_direction() local
789 st_pinconf_get_direction(&pc, offset, &config); st_gpio_get_direction()
790 return !ST_PINCONF_UNPACK_OE(config); st_gpio_get_direction()
898 /* create config map per pin */ st_pctl_dt_node_to_map()
904 new_map[i].data.configs.configs = &grp->pin_conf[i].config; st_pctl_dt_node_to_map()
995 struct st_pio_control *pc, int pin, unsigned long *config) st_pinconf_get_retime()
998 st_pinconf_get_retime_packed(info, pc, pin, config); st_pinconf_get_retime()
1002 pin, config); st_pinconf_get_retime()
1006 struct st_pio_control *pc, int pin, unsigned long config) st_pinconf_set_retime()
1009 st_pinconf_set_retime_packed(info, pc, config, pin); st_pinconf_set_retime()
1013 config, pin); st_pinconf_set_retime()
1027 } /* for each config */ st_pinconf_set()
1033 unsigned pin_id, unsigned long *config) st_pinconf_get()
1039 *config = 0; st_pinconf_get()
1040 st_pinconf_get_direction(pc, pin, config); st_pinconf_get()
1041 st_pinconf_get_retime(info, pc, pin, config); st_pinconf_get()
1050 unsigned long config; st_pinconf_dbg_show() local
1057 st_pinconf_get(pctldev, pin_id, &config); st_pinconf_dbg_show()
1070 ST_PINCONF_UNPACK_PU(config), st_pinconf_dbg_show()
1071 ST_PINCONF_UNPACK_OD(config), st_pinconf_dbg_show()
1073 ST_PINCONF_UNPACK_RT(config), st_pinconf_dbg_show()
1074 ST_PINCONF_UNPACK_RT_INVERTCLK(config), st_pinconf_dbg_show()
1075 ST_PINCONF_UNPACK_RT_CLKNOTDATA(config), st_pinconf_dbg_show()
1076 ST_PINCONF_UNPACK_RT_DOUBLE_EDGE(config), st_pinconf_dbg_show()
1077 ST_PINCONF_UNPACK_RT_CLK(config), st_pinconf_dbg_show()
1078 ST_PINCONF_UNPACK_RT_DELAY(config)); st_pinconf_dbg_show()
1270 conf->config = 0; for_each_property_of_node()
1272 conf->config |= be32_to_cpup(list++); for_each_property_of_node()
1276 conf->config |= be32_to_cpup(list++); for_each_property_of_node()
1278 conf->config |= be32_to_cpup(list++); for_each_property_of_node()
1281 conf->config |= be32_to_cpup(list++); for_each_property_of_node()
424 st_pinconf_set_config(struct st_pio_control *pc, int pin, unsigned long config) st_pinconf_set_config() argument
489 st_pinconf_delay_to_bit(unsigned int delay, const struct st_pctl_data *data, unsigned long config) st_pinconf_delay_to_bit() argument
557 st_pinconf_set_retime_packed(struct st_pinctrl *info, struct st_pio_control *pc, unsigned long config, int pin) st_pinconf_set_retime_packed() argument
588 st_pinconf_set_retime_dedicated(struct st_pinctrl *info, struct st_pio_control *pc, unsigned long config, int pin) st_pinconf_set_retime_dedicated() argument
615 st_pinconf_get_direction(struct st_pio_control *pc, int pin, unsigned long *config) st_pinconf_get_direction() argument
639 st_pinconf_get_retime_packed(struct st_pinctrl *info, struct st_pio_control *pc, int pin, unsigned long *config) st_pinconf_get_retime_packed() argument
672 st_pinconf_get_retime_dedicated(struct st_pinctrl *info, struct st_pio_control *pc, int pin, unsigned long *config) st_pinconf_get_retime_dedicated() argument
994 st_pinconf_get_retime(struct st_pinctrl *info, struct st_pio_control *pc, int pin, unsigned long *config) st_pinconf_get_retime() argument
1005 st_pinconf_set_retime(struct st_pinctrl *info, struct st_pio_control *pc, int pin, unsigned long config) st_pinconf_set_retime() argument
1032 st_pinconf_get(struct pinctrl_dev *pctldev, unsigned pin_id, unsigned long *config) st_pinconf_get() argument
/linux-4.4.14/tools/testing/ktest/
H A Dktest.pl213 # set when creating a new config
221 # in a .config file. The MIN_CONFIG and ADD_CONFIG configs.
224 # do not force reboots on config problems
533 my ($config) = @_;
536 return if (defined($opt{$config}));
538 if (defined($config_help{$config})) {
540 print $config_help{$config};
544 print "$config = ";
545 if (defined($default{$config}) && length($default{$config})) {
546 print "\[$default{$config}\] ";
551 if ($default{$config}) {
552 $ans = $default{$config};
558 $entered_configs{$config} = ${ans};
894 my ($config, $current_test_num) = @_;
897 open($in, $config) || die "can't read file $config";
899 my $name = $config;
1042 # check the path of the config file first
1043 if ($config =~ m,(.*)/,) {
1112 # process config variables.
1114 # config and can be defined anywhere. They also ignore
1123 die "$name: $.: Garbage found in config\n$_";
1142 print " Other tests are available but require editing the config file\n";
1149 my ($config) = @_;
1154 $test_case = __read_config $config, \$test_num;
1609 "config" => $output_config,
2126 open(IN, "$output_config") or dodie("Can't read config file");
2312 # Read the config file and remove anything that
2314 # then add the force config back.
2332 foreach my $config (keys %force_config) {
2333 print OUT "$force_config{$config}\n";
2356 dodie "failed make config oldconfig";
2361 # read a config file and use this to force new configs.
2363 my ($config) = @_;
2365 doprint "Loading force configs from $config\n";
2366 open(IN, $config) or
2367 dodie "failed to read $config";
2403 dodie "could not copy $1 to .config";
2408 # old config can ask questions
2417 dodie "moving .config";
2442 dodie "failed make config";
2444 # Run old config regardless, to enforce min configurations
2872 print "** BISECT_REPLAY is defined in config file **";
2873 print " Ignore config option and perform new git bisect log?\n";
2958 # a good config and we will ignore these configs for the rest
2959 # of a config bisect. These configs stay as they were.
2965 # config_off holds the set of configs that the bad config had disabled.
2966 # We need to record them and set them in the .config when running
2980 my ($hash, $config) = @_;
2982 doprint "Reading configs from $config\n";
2984 open (IN, $config)
2985 or dodie "Failed to read $config";
3000 my ($config) = @_;
3002 assign_configs \%config_ignore, $config;
3006 my ($config) = @_;
3008 my $arr = $dependency{$config};
3032 foreach my $config (keys %configs) {
3033 print OUT "$configs{$config}\n";
3041 doprint "Creating old config from $name configs\n";
3048 # compare two config hashes, and return configs with different vals.
3049 # It returns B's config values, but you can use A to see what A was.
3068 # compare two config hashes and return the configs in B but not A
3131 my ($config) = @_;
3134 doprint "Found bad config: $config\n";
3138 # used for config bisecting
3159 doprint "New config equals bad config, try next test\n";
3166 doprint "New config equals good config, try next test\n";
3203 # Is the problem with a missing config?
3204 # Is the problem with a config that breaks things?
3207 # or good config.
3209 # first set the good config to the bad values.
3213 # first lets enable things in bad config that are enabled in good config
3219 doprint "Set tmp config to be bad config with good config values\n";
3241 doprint "Set tmp config to be bad config with some good config values\n";
3300 doprint "No config specified, checking if defconfig works";
3303 fail "Have no good config to compare with, please set CONFIG_BISECT_GOOD";
3336 doprint "Testing bad config\n";
3340 fail "Bad config succeeded when expected to fail!";
3345 doprint "Testing good config\n";
3349 fail "Good config failed when expected to succeed!";
3466 # ?? no config to use?
3509 # $config depends on $dep
3510 my ($config, $dep) = @_;
3512 if (defined($depends{$config})) {
3513 $depends{$config} .= " " . $dep;
3515 $depends{$config} = $dep;
3531 my $config;
3567 if (/^\s*(menu)?config\s+(\S+)\s*$/) {
3569 $config = $2;
3572 add_dep $config, $ifdeps[$i];
3575 # collect the depends for the config
3578 add_dep $config, $1;
3580 # Get the configs that select this config
3583 # selected by depends on config
3584 add_dep $1, $config;
3631 doprint "Could not find arch from config file\n";
3667 foreach my $config (@configs) {
3668 print OUT "$config\n";
3674 my ($config) = @_;
3676 $config =~ s/CONFIG_//;
3678 return $config;
3719 my ($config) = @_;
3723 # if we already processed this config, skip it
3724 if (defined($processed_configs{$config})) {
3727 $processed_configs{$config} = 1;
3729 # if this config failed during this round, skip it
3730 if (defined($nochange_config{$config})) {
3734 my $kconfig = chomp_config $config;
3738 my @parents = get_depends $config;
3740 # if the parent is in the min config, check it first
3749 # Remove this config from the list of configs
3751 # .config to make sure it is missing the config that
3754 delete $configs{$config};
3760 if (!defined($configs{$config}) || $configs{$config} =~ /^#/) {
3761 return $config;
3764 doprint "disabling config $config did not change .config\n";
3766 $nochange_config{$config} = 1;
3840 foreach my $config (@config_keys) {
3841 my $kconfig = chomp_config $config;
3849 foreach my $config (@config_keys) {
3851 if (defined($keep_configs{$config})) {
3854 doprint "$config set by $file ... ignored\n";
3855 delete $min_configs{$config};
3858 # But make sure the settings are the same. If a min config
3862 if (defined($config_ignore{$config})) {
3863 if ($config_ignore{$config} ne $min_configs{$config}) {
3864 doprint "$config is in allnoconfig as '$config_ignore{$config}'";
3865 doprint " but it is '$min_configs{$config}' in minconfig .. keeping\n";
3866 $keep_configs{$config} = $min_configs{$config};
3868 doprint "$config set by allnoconfig ... ignored\n";
3870 delete $min_configs{$config};
3879 my $config;
3882 # Now disable each config one by one and do a make oldconfig
3883 # till we find a config that changes our list.
3891 # Put configs that did not modify the config at the end.
3898 # This config didn't change the .config last time.
3900 my $config = shift @test_configs;
3901 push @test_configs, $config;
3904 # if every test config has failed to modify the .config file
3912 foreach my $config (@test_configs) {
3914 $found = test_this_config $config;
3918 # oh well, try another config
3935 $config = $found;
3937 doprint "Test with $config disabled\n";
3957 doprint "$min_configs{$config} is needed to boot the box... keeping\n";
3958 # this config is needed, add it to the ignore list.
3959 $keep_configs{$config} = $min_configs{$config};
3960 $save_configs{$config} = $min_configs{$config};
3961 delete $min_configs{$config};
3967 foreach my $config (keys %save_configs) {
3968 print OUT "$save_configs{$config}\n";
3976 # We booted without this config, remove it from the minconfigs.
3977 doprint "$config is not needed, disabling\n";
3979 delete $min_configs{$config};
3981 # Also disable anything that is not enabled in this config
3985 foreach my $config (@config_keys) {
3986 if (!defined($configs{$config})) {
3987 doprint "$config is not set, disabling\n";
3988 delete $min_configs{$config};
3995 foreach my $config (keys %keep_configs) {
3996 print OUT "$keep_configs{$config}\n";
3998 foreach my $config (keys %min_configs) {
3999 print OUT "$min_configs{$config}\n";
4048 $#ARGV < 1 or die "ktest.pl version: $VERSION\n usage: ktest.pl [config-file]\n";
4072 # the config file. It is best to use this variable when assigning other
4079 # The config options below it will override the defaults
4094 # Append any configs entered in manually to the config file.
4099 foreach my $config (@new_configs) {
4100 print OUT "$config = $entered_configs{$config}\n";
4101 $opt{$config} = process_variables($entered_configs{$config});
4248 $output_config = "$outputdir/.config";
4275 # mistake in config file?
4306 dodie "Failed to create temp config";
/linux-4.4.14/drivers/gpu/drm/sti/
H A Dsti_vtac.c89 u32 config; sti_vtac_rx_set_config() local
97 config = VTAC_ENABLE; sti_vtac_rx_set_config()
98 config |= vtac->mode->vid_in_width << 4; sti_vtac_rx_set_config()
99 config |= vtac->mode->phyts_width << 16; sti_vtac_rx_set_config()
100 config |= vtac->mode->phyts_per_pixel << 23; sti_vtac_rx_set_config()
101 writel(config, vtac->regs + VTAC_CONFIG); sti_vtac_rx_set_config()
107 u32 config; sti_vtac_tx_set_config() local
132 config = VTAC_ENABLE; sti_vtac_tx_set_config()
133 config |= vtac->mode->vid_in_width << 4; sti_vtac_tx_set_config()
134 config |= vtac->mode->phyts_width << 16; sti_vtac_tx_set_config()
135 config |= vtac->mode->phyts_per_pixel << 23; sti_vtac_tx_set_config()
136 writel(config, vtac->regs + VTAC_CONFIG); sti_vtac_tx_set_config()
H A Dsti_hdmi_tx3g4c28phy.c147 val |= (hdmiphy_config[i].config[0] sti_hdmi_tx3g4c28phy_start()
151 val = hdmiphy_config[i].config[1]; sti_hdmi_tx3g4c28phy_start()
154 val = hdmiphy_config[i].config[2]; sti_hdmi_tx3g4c28phy_start()
158 hdmiphy_config[i].config[0], sti_hdmi_tx3g4c28phy_start()
159 hdmiphy_config[i].config[1], sti_hdmi_tx3g4c28phy_start()
160 hdmiphy_config[i].config[2]); sti_hdmi_tx3g4c28phy_start()
/linux-4.4.14/include/linux/platform_data/
H A Dlm3630a_bl.h52 /* led a config. */
56 /* led b config. */
60 /* pwm config. */
H A Dsi5351.h10 * @SI5351_PLL_SRC_DEFAULT: default, do not change eeprom config
22 * @SI5351_MULTISYNTH_SRC_DEFAULT: default, do not change eeprom config
34 * @SI5351_CLKOUT_SRC_DEFAULT: default, do not change eeprom config
51 * @SI5351_DRIVE_DEFAULT: default, do not change eeprom config
67 * @SI5351_DISABLE_DEFAULT: default, do not change eeprom config
/linux-4.4.14/arch/mips/include/asm/mach-bcm63xx/
H A Dboard_bcm963xx.h37 /* ethernet config */
42 /* USB config */
45 /* DSP config */
/linux-4.4.14/drivers/thunderbolt/
H A Dswitch.c157 port->config.nfc_credits, tb_port_add_nfc_credits()
158 port->config.nfc_credits + credits); tb_port_add_nfc_credits()
159 port->config.nfc_credits += credits; tb_port_add_nfc_credits()
160 return tb_port_write(port, &port->config.nfc_credits, tb_port_add_nfc_credits()
189 res = tb_port_read(port, &port->config, TB_CFG_PORT, 0, 8); tb_init_port()
194 if (port->config.type == TB_TYPE_PORT && port->port != 0) { tb_init_port()
203 tb_dump_port(port->sw->tb, &port->config); tb_init_port()
262 if (next_port > sw->config.max_port_number) get_switch_at_route()
284 sw->config.plug_events_delay = 0xff; tb_plug_events_active()
285 res = tb_sw_write(sw, ((u32 *) &sw->config) + 4, TB_CFG_SWITCH, 4, 1); tb_plug_events_active()
295 switch (sw->config.device_id) { tb_plug_events_active()
318 for (i = 1; i <= sw->config.max_port_number; i++) { tb_switch_free()
353 if (tb_cfg_read(tb->ctl, &sw->config, route, 0, 2, 0, 5)) tb_switch_alloc()
358 tb_info(tb, "old switch config:\n"); tb_switch_alloc()
359 tb_dump_switch(tb, &sw->config); tb_switch_alloc()
362 sw->config.upstream_port_number = upstream_port; tb_switch_alloc()
363 sw->config.depth = tb_route_length(route); tb_switch_alloc()
364 sw->config.route_lo = route; tb_switch_alloc()
365 sw->config.route_hi = route >> 32; tb_switch_alloc()
366 sw->config.enabled = 1; tb_switch_alloc()
369 if (sw->config.vendor_id != 0x8086) tb_switch_alloc()
371 sw->config.vendor_id); tb_switch_alloc()
373 if (sw->config.device_id != 0x1547 && sw->config.device_id != 0x1549) tb_switch_alloc()
375 sw->config.device_id); tb_switch_alloc()
378 if (tb_sw_write(sw, 1 + (u32 *) &sw->config, TB_CFG_SWITCH, 1, 3)) tb_switch_alloc()
382 sw->ports = kcalloc(sw->config.max_port_number + 1, sizeof(*sw->ports), tb_switch_alloc()
387 for (i = 0; i <= sw->config.max_port_number; i++) { tb_switch_alloc()
405 for (i = 0; i <= sw->config.max_port_number; i++) { tb_switch_alloc()
442 for (i = 0; i <= sw->config.max_port_number; i++) { tb_sw_set_unpplugged()
467 err = tb_sw_write(sw, 1 + (u32 *) &sw->config, TB_CFG_SWITCH, 1, 3); tb_switch_resume()
476 for (i = 1; i <= sw->config.max_port_number; i++) { tb_switch_resume()
499 for (i = 1; i <= sw->config.max_port_number; i++) { tb_switch_suspend()
/linux-4.4.14/drivers/cpufreq/
H A DKconfig.x865 config X86_INTEL_PSTATE label
18 config X86_PCC_CPUFREQ label
32 config X86_ACPI_CPUFREQ label
48 config X86_ACPI_CPUFREQ_CPB label
60 config X86_SFI_CPUFREQ label
70 config ELAN_CPUFREQ label
85 config SC520_CPUFREQ label
96 config X86_POWERNOW_K6 label
107 config X86_POWERNOW_K7 label
117 config X86_POWERNOW_K7_ACPI label
124 config X86_POWERNOW_K8 label
136 config X86_AMD_FREQ_SENSITIVITY label
153 config X86_GX_SUSPMOD label
164 config X86_SPEEDSTEP_CENTRINO label
183 config X86_SPEEDSTEP_CENTRINO_TABLE label
193 config X86_SPEEDSTEP_ICH label
206 config X86_SPEEDSTEP_SMI label
218 config X86_P4_CLOCKMOD label
237 config X86_CPUFREQ_NFORCE2 label
248 config X86_LONGRUN label
259 config X86_LONGHAUL label
271 config X86_E_POWERSAVER label
284 config X86_SPEEDSTEP_LIB label
288 config X86_SPEEDSTEP_RELAXED_CAP_CHECK label
/linux-4.4.14/kernel/
H A Dconfigs.c3 * Echo the kernel .config file used to build the kernel
34 /* the actual current config file */
76 /* create the current config file */ ikconfig_init()
77 entry = proc_create("config.gz", S_IFREG | S_IRUGO, NULL, ikconfig_init()
89 remove_proc_entry("config.gz", NULL); ikconfig_cleanup()
99 MODULE_DESCRIPTION("Echo the kernel .config file used to build the kernel");
/linux-4.4.14/include/linux/
H A Dvirtio_config.h22 * @generation: config generation counter
24 * Returns the config generation counter
34 * Device must not be reset from its vq/config callbacks, or in
159 int err = vdev->config->find_vqs(vdev, 1, &vq, callbacks, names); virtio_find_single_vq()
176 unsigned status = dev->config->get_status(dev); virtio_device_ready()
179 dev->config->set_status(dev, status | VIRTIO_CONFIG_S_DRIVER_OK); virtio_device_ready()
185 if (!vdev->config->bus_name) virtio_bus_name()
187 return vdev->config->bus_name(vdev); virtio_bus_name()
196 * due to config support, irq type and sharing.
203 if (vdev->config->set_vq_affinity) virtqueue_set_affinity()
204 return vdev->config->set_vq_affinity(vq, cpu); virtqueue_set_affinity()
312 u32 old, gen = vdev->config->generation ? __virtio_cread_many()
313 vdev->config->generation(vdev) : 0; __virtio_cread_many()
320 vdev->config->get(vdev, offset + bytes * i, __virtio_cread_many()
323 gen = vdev->config->generation ? __virtio_cread_many()
324 vdev->config->generation(vdev) : 0; __virtio_cread_many()
338 vdev->config->get(vdev, offset, &ret, sizeof(ret)); virtio_cread8()
345 vdev->config->set(vdev, offset, &val, sizeof(val)); virtio_cwrite8()
352 vdev->config->get(vdev, offset, &ret, sizeof(ret)); virtio_cread16()
360 vdev->config->set(vdev, offset, &val, sizeof(val)); virtio_cwrite16()
367 vdev->config->get(vdev, offset, &ret, sizeof(ret)); virtio_cread32()
375 vdev->config->set(vdev, offset, &val, sizeof(val)); virtio_cwrite32()
390 vdev->config->set(vdev, offset, &val, sizeof(val)); virtio_cwrite64()
393 /* Conditional config space accessors. */
H A Djz4740-adc.h10 * @mask: Mask for the config value to be set
14 * options in the shared config register.
H A Dsunxi-rsb.h87 const struct regmap_config *config,
95 * @config: Configuration for register map
101 #define devm_regmap_init_sunxi_rsb(rdev, config) \
102 __regmap_lockdep_wrapper(__devm_regmap_init_sunxi_rsb, #config, \
103 rdev, config)
H A Dregmap.h362 const struct regmap_config *config,
366 const struct regmap_config *config,
370 const struct regmap_config *config,
374 const struct regmap_config *config,
378 const struct regmap_config *config,
383 const struct regmap_config *config,
387 const struct regmap_config *config,
394 const struct regmap_config *config,
398 const struct regmap_config *config,
402 const struct regmap_config *config,
406 const struct regmap_config *config,
410 const struct regmap_config *config,
416 const struct regmap_config *config,
420 const struct regmap_config *config,
429 * @name: Config variable name (#config in the calling macro)
452 * @config: Configuration for register map
458 #define regmap_init(dev, bus, bus_context, config) \
459 __regmap_lockdep_wrapper(__regmap_init, #config, \
460 dev, bus, bus_context, config)
462 const struct regmap_config *config);
468 * @config: Configuration for register map
473 #define regmap_init_i2c(i2c, config) \
474 __regmap_lockdep_wrapper(__regmap_init_i2c, #config, \
475 i2c, config)
481 * @config: Configuration for register map
486 #define regmap_init_spi(dev, config) \
487 __regmap_lockdep_wrapper(__regmap_init_spi, #config, \
488 dev, config)
493 * @config: Configuration for register map
498 #define regmap_init_spmi_base(dev, config) \
499 __regmap_lockdep_wrapper(__regmap_init_spmi_base, #config, \
500 dev, config)
505 * @config: Configuration for register map
510 #define regmap_init_spmi_ext(dev, config) \
511 __regmap_lockdep_wrapper(__regmap_init_spmi_ext, #config, \
512 dev, config)
520 * @config: Configuration for register map
525 #define regmap_init_mmio_clk(dev, clk_id, regs, config) \
526 __regmap_lockdep_wrapper(__regmap_init_mmio_clk, #config, \
527 dev, clk_id, regs, config)
534 * @config: Configuration for register map
539 #define regmap_init_mmio(dev, regs, config) \
540 regmap_init_mmio_clk(dev, NULL, regs, config)
546 * @config: Configuration for register map
551 #define regmap_init_ac97(ac97, config) \
552 __regmap_lockdep_wrapper(__regmap_init_ac97, #config, \
553 ac97, config)
562 * @config: Configuration for register map
569 #define devm_regmap_init(dev, bus, bus_context, config) \
570 __regmap_lockdep_wrapper(__devm_regmap_init, #config, \
571 dev, bus, bus_context, config)
577 * @config: Configuration for register map
583 #define devm_regmap_init_i2c(i2c, config) \
584 __regmap_lockdep_wrapper(__devm_regmap_init_i2c, #config, \
585 i2c, config)
591 * @config: Configuration for register map
597 #define devm_regmap_init_spi(dev, config) \
598 __regmap_lockdep_wrapper(__devm_regmap_init_spi, #config, \
599 dev, config)
604 * @config: Configuration for register map
610 #define devm_regmap_init_spmi_base(dev, config) \
611 __regmap_lockdep_wrapper(__devm_regmap_init_spmi_base, #config, \
612 dev, config)
617 * @config: Configuration for register map
623 #define devm_regmap_init_spmi_ext(dev, config) \
624 __regmap_lockdep_wrapper(__devm_regmap_init_spmi_ext, #config, \
625 dev, config)
633 * @config: Configuration for register map
639 #define devm_regmap_init_mmio_clk(dev, clk_id, regs, config) \
640 __regmap_lockdep_wrapper(__devm_regmap_init_mmio_clk, #config, \
641 dev, clk_id, regs, config)
648 * @config: Configuration for register map
654 #define devm_regmap_init_mmio(dev, regs, config) \
655 devm_regmap_init_mmio_clk(dev, NULL, regs, config)
661 * @config: Configuration for register map
667 #define devm_regmap_init_ac97(ac97, config) \
668 __regmap_lockdep_wrapper(__devm_regmap_init_ac97, #config, \
669 ac97, config)
673 const struct regmap_config *config);
/linux-4.4.14/net/sched/
H A Dem_text.c27 struct ts_config *config; member in struct:text_match
44 return skb_find_text(skb, from, to, tm->config) != UINT_MAX; em_text_match()
94 tm->config = ts_conf; em_text_change()
104 if (EM_TEXT_PRIV(m) && EM_TEXT_PRIV(m)->config) em_text_destroy()
105 textsearch_destroy(EM_TEXT_PRIV(m)->config); em_text_destroy()
113 strncpy(conf.algo, tm->config->ops->name, sizeof(conf.algo) - 1); em_text_dump()
118 conf.pattern_len = textsearch_get_pattern_len(tm->config); em_text_dump()
124 textsearch_get_pattern(tm->config)) < 0) em_text_dump()
/linux-4.4.14/arch/blackfin/kernel/
H A Dperf_event.c207 /* The packed config is for event0, so shift it to event1 slots */ bfin_pfmon_enable()
208 val |= (hwc->config << (PFMON1_P - PFMON0_P)); bfin_pfmon_enable()
209 val |= (hwc->config & PFCNT0) << (PFCNT1_P - PFCNT0_P); bfin_pfmon_enable()
213 val |= hwc->config; bfin_pfmon_enable()
236 static int hw_perf_cache_event(int config, int *evp) hw_perf_cache_event() argument
241 /* unpack config */ hw_perf_cache_event()
242 type = config & 0xff; hw_perf_cache_event()
243 op = (config >> 8) & 0xff; hw_perf_cache_event()
244 result = (config >> 16) & 0xff; hw_perf_cache_event()
386 int config = -1; bfin_pmu_event_init() local
395 config = PFMON(0, attr->config & PFMON_MASK) | bfin_pmu_event_init()
396 PFCNT(0, !(attr->config & 0x100)); bfin_pmu_event_init()
399 ret = hw_perf_cache_event(attr->config, &config); bfin_pmu_event_init()
402 if (attr->config >= ARRAY_SIZE(event_map)) bfin_pmu_event_init()
405 config = event_map[attr->config]; bfin_pmu_event_init()
409 if (config == -1) bfin_pmu_event_init()
413 config |= PFCEN(0, PFCEN_ENABLE_SUPV); bfin_pmu_event_init()
415 config |= PFCEN(0, PFCEN_ENABLE_USER); bfin_pmu_event_init()
417 hwc->config |= config; bfin_pmu_event_init()
/linux-4.4.14/drivers/tty/serial/
H A Dkgdboc.c31 static char config[MAX_CONFIG_LEN]; variable
33 .string = config,
137 printk(KERN_ERR "kgdboc: config string too long\n"); kgdboc_option_setup()
140 strcpy(config, opt); kgdboc_option_setup()
161 char *cptr = config; configure_kgdboc()
164 err = kgdboc_option_setup(config); configure_kgdboc()
165 if (err || !strlen(config) || isspace(config[0])) configure_kgdboc()
216 config[0] = 0; configure_kgdboc()
253 printk(KERN_ERR "kgdboc: config string too long\n"); param_set_kgdboc_var()
259 strcpy(config, kmessage); param_set_kgdboc_var()
270 strcpy(config, kmessage); param_set_kgdboc_var()
272 if (config[len - 1] == '\n') param_set_kgdboc_var()
273 config[len - 1] = '\0'; param_set_kgdboc_var()
319 /* save the first character of the config string because the kgdboc_early_init()
325 save_ch = config[0]; kgdboc_early_init()
327 config[0] = save_ch; kgdboc_early_init()
/linux-4.4.14/drivers/video/fbdev/via/
H A Dvia_clock.c100 static void cle266_set_primary_pll(struct via_pll_config config) cle266_set_primary_pll() argument
102 cle266_set_primary_pll_encoded(cle266_encode_pll(config)); cle266_set_primary_pll()
105 static void k800_set_primary_pll(struct via_pll_config config) k800_set_primary_pll() argument
107 k800_set_primary_pll_encoded(k800_encode_pll(config)); k800_set_primary_pll()
110 static void vx855_set_primary_pll(struct via_pll_config config) vx855_set_primary_pll() argument
112 k800_set_primary_pll_encoded(vx855_encode_pll(config)); vx855_set_primary_pll()
115 static void cle266_set_secondary_pll(struct via_pll_config config) cle266_set_secondary_pll() argument
117 cle266_set_secondary_pll_encoded(cle266_encode_pll(config)); cle266_set_secondary_pll()
120 static void k800_set_secondary_pll(struct via_pll_config config) k800_set_secondary_pll() argument
122 k800_set_secondary_pll_encoded(k800_encode_pll(config)); k800_set_secondary_pll()
125 static void vx855_set_secondary_pll(struct via_pll_config config) vx855_set_secondary_pll() argument
127 k800_set_secondary_pll_encoded(vx855_encode_pll(config)); vx855_set_secondary_pll()
130 static void k800_set_engine_pll(struct via_pll_config config) k800_set_engine_pll() argument
132 set_engine_pll_encoded(k800_encode_pll(config)); k800_set_engine_pll()
135 static void vx855_set_engine_pll(struct via_pll_config config) vx855_set_engine_pll() argument
137 set_engine_pll_encoded(vx855_encode_pll(config)); vx855_set_engine_pll()
288 static void dummy_set_pll(struct via_pll_config config) dummy_set_pll() argument
/linux-4.4.14/drivers/video/fbdev/omap2/dss/
H A Dvenc.c335 static void venc_write_config(const struct venc_config *config) venc_write_config() argument
339 venc_write_reg(VENC_LLEN, config->llen); venc_write_config()
340 venc_write_reg(VENC_FLENS, config->flens); venc_write_config()
341 venc_write_reg(VENC_CC_CARR_WSS_CARR, config->cc_carr_wss_carr); venc_write_config()
342 venc_write_reg(VENC_C_PHASE, config->c_phase); venc_write_config()
343 venc_write_reg(VENC_GAIN_U, config->gain_u); venc_write_config()
344 venc_write_reg(VENC_GAIN_V, config->gain_v); venc_write_config()
345 venc_write_reg(VENC_GAIN_Y, config->gain_y); venc_write_config()
346 venc_write_reg(VENC_BLACK_LEVEL, config->black_level); venc_write_config()
347 venc_write_reg(VENC_BLANK_LEVEL, config->blank_level); venc_write_config()
348 venc_write_reg(VENC_M_CONTROL, config->m_control); venc_write_config()
349 venc_write_reg(VENC_BSTAMP_WSS_DATA, config->bstamp_wss_data | venc_write_config()
351 venc_write_reg(VENC_S_CARR, config->s_carr); venc_write_config()
352 venc_write_reg(VENC_L21__WC_CTL, config->l21__wc_ctl); venc_write_config()
353 venc_write_reg(VENC_SAVID__EAVID, config->savid__eavid); venc_write_config()
354 venc_write_reg(VENC_FLEN__FAL, config->flen__fal); venc_write_config()
355 venc_write_reg(VENC_LAL__PHASE_RESET, config->lal__phase_reset); venc_write_config()
356 venc_write_reg(VENC_HS_INT_START_STOP_X, config->hs_int_start_stop_x); venc_write_config()
357 venc_write_reg(VENC_HS_EXT_START_STOP_X, config->hs_ext_start_stop_x); venc_write_config()
358 venc_write_reg(VENC_VS_INT_START_X, config->vs_int_start_x); venc_write_config()
360 config->vs_int_stop_x__vs_int_start_y); venc_write_config()
362 config->vs_int_stop_y__vs_ext_start_x); venc_write_config()
364 config->vs_ext_stop_x__vs_ext_start_y); venc_write_config()
365 venc_write_reg(VENC_VS_EXT_STOP_Y, config->vs_ext_stop_y); venc_write_config()
366 venc_write_reg(VENC_AVID_START_STOP_X, config->avid_start_stop_x); venc_write_config()
367 venc_write_reg(VENC_AVID_START_STOP_Y, config->avid_start_stop_y); venc_write_config()
369 config->fid_int_start_x__fid_int_start_y); venc_write_config()
371 config->fid_int_offset_y__fid_ext_start_x); venc_write_config()
373 config->fid_ext_start_y__fid_ext_offset_y); venc_write_config()
376 venc_write_reg(VENC_VIDOUT_CTRL, config->vidout_ctrl); venc_write_config()
377 venc_write_reg(VENC_HFLTR_CTRL, config->hfltr_ctrl); venc_write_config()
378 venc_write_reg(VENC_X_COLOR, config->x_color); venc_write_config()
379 venc_write_reg(VENC_LINE21, config->line21); venc_write_config()
380 venc_write_reg(VENC_LN_SEL, config->ln_sel); venc_write_config()
381 venc_write_reg(VENC_HTRIGGER_VTRIGGER, config->htrigger_vtrigger); venc_write_config()
383 config->tvdetgp_int_start_stop_x); venc_write_config()
385 config->tvdetgp_int_start_stop_y); venc_write_config()
386 venc_write_reg(VENC_GEN_CTRL, config->gen_ctrl); venc_write_config()
387 venc_write_reg(VENC_F_CONTROL, config->f_control); venc_write_config()
388 venc_write_reg(VENC_SYNC_CTRL, config->sync_ctrl); venc_write_config()
599 const struct venc_config *config; venc_set_wss() local
606 config = venc_timings_to_config(&venc.timings); venc_set_wss()
615 venc_write_reg(VENC_BSTAMP_WSS_DATA, config->bstamp_wss_data | venc_set_wss()
/linux-4.4.14/drivers/pinctrl/freescale/
H A Dpinctrl-mxs.c75 unsigned long config = 0; mxs_dt_node_to_map() local
82 /* Check for pin config node which has no 'reg' property */ mxs_dt_node_to_map()
88 config = val | MA_PRESENT; mxs_dt_node_to_map()
91 config |= val << VOL_SHIFT | VOL_PRESENT; mxs_dt_node_to_map()
94 config |= val << PULL_SHIFT | PULL_PRESENT; mxs_dt_node_to_map()
96 /* Check for group node which has both mux and config settings */ mxs_dt_node_to_map()
97 if (!purecfg && config) mxs_dt_node_to_map()
119 if (config) { mxs_dt_node_to_map()
120 pconfig = kmemdup(&config, sizeof(config), GFP_KERNEL); mxs_dt_node_to_map()
230 unsigned pin, unsigned long *config) mxs_pinconf_get()
243 unsigned group, unsigned long *config) mxs_pinconf_group_get()
247 *config = d->soc->groups[group].config; mxs_pinconf_group_get()
263 unsigned long config; mxs_pinconf_group_set() local
266 config = configs[n]; mxs_pinconf_group_set()
268 ma = CONFIG_TO_MA(config); mxs_pinconf_group_set()
269 vol = CONFIG_TO_VOL(config); mxs_pinconf_group_set()
270 pull = CONFIG_TO_PULL(config); mxs_pinconf_group_set()
281 if (config & MA_PRESENT) { mxs_pinconf_group_set()
288 if (config & VOL_PRESENT) { mxs_pinconf_group_set()
297 if (config & PULL_PRESENT) { mxs_pinconf_group_set()
308 /* cache the config value for mxs_pinconf_group_get() */ mxs_pinconf_group_set()
309 g->config = config; mxs_pinconf_group_set()
311 } /* for each config */ mxs_pinconf_group_set()
325 unsigned long config; mxs_pinconf_group_dbg_show() local
327 if (!mxs_pinconf_group_get(pctldev, group, &config)) mxs_pinconf_group_dbg_show()
328 seq_printf(s, "0x%lx", config); mxs_pinconf_group_dbg_show()
229 mxs_pinconf_get(struct pinctrl_dev *pctldev, unsigned pin, unsigned long *config) mxs_pinconf_get() argument
242 mxs_pinconf_group_get(struct pinctrl_dev *pctldev, unsigned group, unsigned long *config) mxs_pinconf_group_get() argument
/linux-4.4.14/sound/isa/galaxy/
H A Dgalaxy.c198 u32 config; member in struct:snd_galaxy
204 static u32 config[SNDRV_CARDS]; variable
217 config[n] |= GALAXY_CONFIG_SBA_220; snd_galaxy_match()
220 config[n] |= GALAXY_CONFIG_SBA_240; snd_galaxy_match()
223 config[n] |= GALAXY_CONFIG_SBA_260; snd_galaxy_match()
226 config[n] |= GALAXY_CONFIG_SBA_280; snd_galaxy_match()
238 config[n] |= GALAXY_CONFIG_WSS_ENABLE | GALAXY_CONFIG_WSSA_530; snd_galaxy_match()
241 config[n] |= GALAXY_CONFIG_WSS_ENABLE | GALAXY_CONFIG_WSSA_604; snd_galaxy_match()
244 config[n] |= GALAXY_CONFIG_WSS_ENABLE | GALAXY_CONFIG_WSSA_E80; snd_galaxy_match()
247 config[n] |= GALAXY_CONFIG_WSS_ENABLE | GALAXY_CONFIG_WSSA_F40; snd_galaxy_match()
319 config[n] |= GALAXY_CONFIG_MPU_ENABLE | GALAXY_CONFIG_MPUA_300; snd_galaxy_match()
322 config[n] |= GALAXY_CONFIG_MPU_ENABLE | GALAXY_CONFIG_MPUA_330; snd_galaxy_match()
337 config[n] |= GALAXY_CONFIG_MPUIRQ_2; snd_galaxy_match()
341 config[n] |= GALAXY_CONFIG_MPUIRQ_3; snd_galaxy_match()
345 config[n] |= GALAXY_CONFIG_MPUIRQ_5; snd_galaxy_match()
348 config[n] |= GALAXY_CONFIG_MPUIRQ_7; snd_galaxy_match()
352 config[n] |= GALAXY_CONFIG_MPUIRQ_10; snd_galaxy_match()
378 config[n] |= GALAXY_CONFIG_GAME_ENABLE; snd_galaxy_match()
438 static void galaxy_set_config(struct snd_galaxy *galaxy, u32 config) galaxy_set_config() argument
445 iowrite8(config, galaxy->config_port + i); galaxy_set_config()
446 config >>= 8; galaxy_set_config()
452 static void galaxy_config(struct snd_galaxy *galaxy, u32 config) galaxy_config() argument
458 galaxy->config = (galaxy->config << 8) | tmp; galaxy_config()
460 config |= galaxy->config & GALAXY_CONFIG_MASK; galaxy_config()
461 galaxy_set_config(galaxy, config); galaxy_config()
491 galaxy_set_config(galaxy, galaxy->config); snd_galaxy_free()
544 galaxy_config(galaxy, config[n]); snd_galaxy_probe()
/linux-4.4.14/drivers/s390/virtio/
H A Dkvm_virtio.c54 * - config space
72 * The total size of the config page used by this device (incl. desc)
120 * Reading and writing elements in config space
177 struct kvm_vqconfig *config = vq->priv; kvm_notify() local
179 rc = kvm_hypercall1(KVM_S390_VIRTIO_NOTIFY, config->address); kvm_notify()
195 struct kvm_vqconfig *config; kvm_find_vq() local
205 config = kvm_vq_config(kdev->desc)+index; kvm_find_vq()
207 err = vmem_add_mapping(config->address, kvm_find_vq()
208 vring_size(config->num, kvm_find_vq()
213 vq = vring_new_virtqueue(index, config->num, KVM_S390_VIRTIO_RING_ALIGN, kvm_find_vq()
214 vdev, true, (void *) config->address, kvm_find_vq()
225 config->token = (u64) vq; kvm_find_vq()
227 vq->priv = config; kvm_find_vq()
230 vmem_remove_mapping(config->address, kvm_find_vq()
231 vring_size(config->num, kvm_find_vq()
239 struct kvm_vqconfig *config = vq->priv; kvm_del_vq() local
242 vmem_remove_mapping(config->address, kvm_del_vq()
243 vring_size(config->num, kvm_del_vq()
285 * The config ops structure as defined by virtio config
323 kdev->vdev.config = &kvm_vq_configspace_ops; add_kvm_device()
/linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp5/
H A Dmdp5_cfg.c19 struct mdp5_cfg config; member in struct:mdp5_cfg_handler
469 { .revision = 0, .config = { .hw = &msm8x74v1_config } },
470 { .revision = 2, .config = { .hw = &msm8x74v2_config } },
471 { .revision = 3, .config = { .hw = &apq8084_config } },
472 { .revision = 6, .config = { .hw = &msm8x16_config } },
473 { .revision = 9, .config = { .hw = &msm8x94_config } },
474 { .revision = 7, .config = { .hw = &msm8x96_config } },
481 return cfg_handler->config.hw; mdp5_cfg_get_hw_config()
486 return &cfg_handler->config; mdp5_cfg_get_config()
525 mdp5_cfg = cfg_handlers[i].config.hw; mdp5_cfg_init()
537 cfg_handler->config.hw = mdp5_cfg; mdp5_cfg_init()
540 memcpy(&cfg_handler->config.platform, pconfig, sizeof(*pconfig)); mdp5_cfg_init()
542 DBG("MDP5: %s hw config selected", mdp5_cfg->name); mdp5_cfg_init()
555 static struct mdp5_cfg_platform config = {}; mdp5_get_config() local
559 config.iommu = iommu_domain_alloc(&platform_bus_type); mdp5_get_config()
561 return &config; mdp5_get_config()
/linux-4.4.14/scripts/kconfig/lxdialog/
H A Dcheck-lxdialog.sh7 pkg-config --libs ncursesw 2>/dev/null && exit
8 pkg-config --libs ncurses 2>/dev/null && exit
24 if pkg-config --cflags ncursesw 2>/dev/null; then
26 elif pkg-config --cflags ncurses 2>/dev/null; then
/linux-4.4.14/include/uapi/linux/netfilter/
H A Dxt_string.h31 struct ts_config __attribute__((aligned(8))) *config; member in struct:xt_string_info
/linux-4.4.14/include/uapi/linux/netfilter_ipv4/
H A Dipt_CLUSTERIP.h34 struct clusterip_config *config; member in struct:ipt_clusterip_tgt_info
/linux-4.4.14/arch/powerpc/include/uapi/asm/
H A Dperf_event.h14 * We use bit 63 of perf_event_attr.config as a flag to request EBB.
/linux-4.4.14/arch/mips/include/asm/mach-malta/
H A Dmach-gt64120.h15 * GT64120 config space base address
/linux-4.4.14/arch/s390/include/uapi/asm/
H A Dkvm_virtio.h21 /* The number of virtqueues (first in config array) */
28 /* The number of bytes of the config array after virtqueues. */
32 __u8 config[0]; member in struct:kvm_device_desc
37 * to be laid out in config space.
/linux-4.4.14/arch/sh/kernel/
H A Dperf_event.c94 static int hw_perf_cache_event(int config, int *evp) hw_perf_cache_event() argument
102 /* unpack config */ hw_perf_cache_event()
103 type = config & 0xff; hw_perf_cache_event()
104 op = (config >> 8) & 0xff; hw_perf_cache_event()
105 result = (config >> 16) & 0xff; hw_perf_cache_event()
125 int config = -1; __hw_perf_event_init() local
156 config = attr->config & sh_pmu->raw_event_mask; __hw_perf_event_init()
159 err = hw_perf_cache_event(attr->config, &config); __hw_perf_event_init()
164 if (attr->config >= sh_pmu->max_events) __hw_perf_event_init()
167 config = sh_pmu->event_map(attr->config); __hw_perf_event_init()
171 if (config == -1) __hw_perf_event_init()
174 hwc->config |= config; __hw_perf_event_init()
/linux-4.4.14/arch/ia64/kernel/
H A Dnr-irqs.c4 * depending on config.
/linux-4.4.14/tools/power/acpi/tools/ec/
H A DMakefile11 include ../../Makefile.config
/linux-4.4.14/tools/thermal/tmon/
H A DMakefile21 TMON_LIBS += $(shell pkg-config --libs $(STATIC) panelw ncursesw 2> /dev/null || \
22 pkg-config --libs $(STATIC) panel ncurses 2> /dev/null || \
25 CFLAGS += $(shell pkg-config --cflags $(STATIC) panelw ncursesw 2> /dev/null || \
26 pkg-config --cflags $(STATIC) panel ncurses 2> /dev/null)
/linux-4.4.14/drivers/staging/vme/devices/
H A Dvme_pio2_gpio.c39 if ((card->bank[PIO2_CHANNEL_BANK[offset]].config == OUTPUT) | pio2_gpio_get()
40 (card->bank[PIO2_CHANNEL_BANK[offset]].config == NOFIT)) { pio2_gpio_get()
58 if (card->bank[PIO2_CHANNEL_BANK[offset]].config != BOTH) pio2_gpio_get()
64 if (card->bank[PIO2_CHANNEL_BANK[offset]].config != BOTH) pio2_gpio_get()
77 if ((card->bank[PIO2_CHANNEL_BANK[offset]].config == INPUT) | pio2_gpio_set()
78 (card->bank[PIO2_CHANNEL_BANK[offset]].config == NOFIT)) { pio2_gpio_set()
107 if ((card->bank[PIO2_CHANNEL_BANK[offset]].config == OUTPUT) | pio2_gpio_dir_in()
108 (card->bank[PIO2_CHANNEL_BANK[offset]].config == NOFIT)) { pio2_gpio_dir_in()
126 if ((card->bank[PIO2_CHANNEL_BANK[offset]].config == INPUT) | pio2_gpio_dir_out()
127 (card->bank[PIO2_CHANNEL_BANK[offset]].config == NOFIT)) { pio2_gpio_dir_out()
/linux-4.4.14/drivers/media/platform/davinci/
H A Dvpif.c275 * This function is used to set horizontal and vertical config parameters
279 static void vpif_set_mode_info(const struct vpif_channel_config_params *config, vpif_set_mode_info() argument
284 value = (config->eav2sav & vpifregs[config_channel_id].width_mask); vpif_set_mode_info()
286 value |= (config->sav2eav & vpifregs[config_channel_id].width_mask); vpif_set_mode_info()
289 value = (config->l1 & vpifregs[config_channel_id].len_mask); vpif_set_mode_info()
291 value |= (config->l3 & vpifregs[config_channel_id].len_mask); vpif_set_mode_info()
294 value = (config->l5 & vpifregs[config_channel_id].len_mask); vpif_set_mode_info()
296 value |= (config->l7 & vpifregs[config_channel_id].len_mask); vpif_set_mode_info()
299 value = (config->l9 & vpifregs[config_channel_id].len_mask); vpif_set_mode_info()
301 value |= (config->l11 & vpifregs[config_channel_id].len_mask); vpif_set_mode_info()
304 value = (config->vsize & vpifregs[config_channel_id].len_mask); vpif_set_mode_info()
316 const struct vpif_channel_config_params *config = &vpifparams->std_info; config_vpif_params() local
331 vpif_wr_bit(reg, ch_nip, config->frm_fmt); config_vpif_params()
332 vpif_wr_bit(reg, VPIF_CH_YC_MUX_BIT, config->ycmux_mode); config_vpif_params()
338 vpif_wr_bit(reg, VPIF_CH_DATA_MODE_BIT, config->capture_format); config_vpif_params()
342 else if (config->capture_format) { config_vpif_params()
371 const struct vpif_channel_config_params *config = &vpifparams->std_info; vpif_set_video_params() local
374 vpif_set_mode_info(config, channel_id, channel_id); vpif_set_video_params()
375 if (!config->ycmux_mode) { vpif_set_video_params()
377 vpif_set_mode_info(config, channel_id + 1, channel_id); vpif_set_video_params()
/linux-4.4.14/drivers/bluetooth/
H A Dbtqca.c111 static void rome_tlv_check_data(struct rome_config *config, rome_tlv_check_data() argument
130 switch (config->type) { rome_tlv_check_data()
174 tlv_nvm->data[2] = config->user_baud_rate; rome_tlv_check_data()
192 BT_ERR("Unknown TLV type %d", config->type); rome_tlv_check_data()
285 struct rome_config *config) rome_download_firmware()
290 BT_INFO("%s: ROME Downloading %s", hdev->name, config->fwname); rome_download_firmware()
292 ret = request_firmware(&fw, config->fwname, &hdev->dev); rome_download_firmware()
295 config->fwname, ret); rome_download_firmware()
299 rome_tlv_check_data(config, fw); rome_download_firmware()
304 config->fwname, ret); rome_download_firmware()
340 struct rome_config config; qca_uart_setup_rome() local
345 config.user_baud_rate = baudrate; qca_uart_setup_rome()
357 config.type = TLV_TYPE_PATCH; qca_uart_setup_rome()
358 snprintf(config.fwname, sizeof(config.fwname), "qca/rampatch_%08x.bin", qca_uart_setup_rome()
360 err = rome_download_firmware(hdev, &config); qca_uart_setup_rome()
367 config.type = TLV_TYPE_NVM; qca_uart_setup_rome()
368 snprintf(config.fwname, sizeof(config.fwname), "qca/nvm_%08x.bin", qca_uart_setup_rome()
370 err = rome_download_firmware(hdev, &config); qca_uart_setup_rome()
284 rome_download_firmware(struct hci_dev *hdev, struct rome_config *config) rome_download_firmware() argument
/linux-4.4.14/arch/ia64/pci/
H A Dfixup.c34 u16 config; pci_fixup_video() local
55 &config); pci_fixup_video()
56 if (!(config & PCI_BRIDGE_CTL_VGA)) pci_fixup_video()
62 pci_read_config_word(pdev, PCI_COMMAND, &config); pci_fixup_video()
63 if (config & (PCI_COMMAND_IO | PCI_COMMAND_MEMORY)) { pci_fixup_video()
/linux-4.4.14/drivers/net/wireless/rt2x00/
H A Drt2x00config.c115 struct antenna_setup config) rt2x00lib_config_antenna()
130 if (config.rx == ANTENNA_SW_DIVERSITY) { rt2x00lib_config_antenna()
134 config.rx = ANTENNA_B; rt2x00lib_config_antenna()
136 config.rx = def->rx; rt2x00lib_config_antenna()
138 } else if (config.rx == ANTENNA_SW_DIVERSITY) rt2x00lib_config_antenna()
139 config.rx = active->rx; rt2x00lib_config_antenna()
142 if (config.tx == ANTENNA_SW_DIVERSITY) { rt2x00lib_config_antenna()
146 config.tx = ANTENNA_B; rt2x00lib_config_antenna()
148 config.tx = def->tx; rt2x00lib_config_antenna()
150 } else if (config.tx == ANTENNA_SW_DIVERSITY) rt2x00lib_config_antenna()
151 config.tx = active->tx; rt2x00lib_config_antenna()
165 rt2x00dev->ops->lib->config_ant(rt2x00dev, &config); rt2x00lib_config_antenna()
169 memcpy(active, &config, sizeof(config)); rt2x00lib_config_antenna()
250 rt2x00dev->ops->lib->config(rt2x00dev, &libconf, ieee80211_flags); rt2x00lib_config()
114 rt2x00lib_config_antenna(struct rt2x00_dev *rt2x00dev, struct antenna_setup config) rt2x00lib_config_antenna() argument
/linux-4.4.14/drivers/base/regmap/
H A Dregmap-mmio.c221 const struct regmap_config *config) regmap_mmio_gen_context()
227 ret = regmap_mmio_regbits_check(config->reg_bits); regmap_mmio_gen_context()
231 if (config->pad_bits) regmap_mmio_gen_context()
234 switch (config->val_bits) { regmap_mmio_gen_context()
255 if (config->reg_stride < min_stride) regmap_mmio_gen_context()
258 switch (config->reg_format_endian) { regmap_mmio_gen_context()
271 ctx->val_bytes = config->val_bits / 8; regmap_mmio_gen_context()
272 ctx->reg_bytes = config->reg_bits / 8; regmap_mmio_gen_context()
273 ctx->pad_bytes = config->pad_bits / 8; regmap_mmio_gen_context()
301 const struct regmap_config *config, __regmap_init_mmio_clk()
307 ctx = regmap_mmio_gen_context(dev, clk_id, regs, config); __regmap_init_mmio_clk()
311 return __regmap_init(dev, &regmap_mmio, ctx, config, __regmap_init_mmio_clk()
319 const struct regmap_config *config, __devm_regmap_init_mmio_clk()
325 ctx = regmap_mmio_gen_context(dev, clk_id, regs, config); __devm_regmap_init_mmio_clk()
329 return __devm_regmap_init(dev, &regmap_mmio, ctx, config, __devm_regmap_init_mmio_clk()
218 regmap_mmio_gen_context(struct device *dev, const char *clk_id, void __iomem *regs, const struct regmap_config *config) regmap_mmio_gen_context() argument
299 __regmap_init_mmio_clk(struct device *dev, const char *clk_id, void __iomem *regs, const struct regmap_config *config, struct lock_class_key *lock_key, const char *lock_name) __regmap_init_mmio_clk() argument
316 __devm_regmap_init_mmio_clk(struct device *dev, const char *clk_id, void __iomem *regs, const struct regmap_config *config, struct lock_class_key *lock_key, const char *lock_name) __devm_regmap_init_mmio_clk() argument
H A Dregmap-i2c.c258 const struct regmap_config *config) regmap_get_i2c_bus()
262 else if (config->reg_bits == 8 && regmap_get_i2c_bus()
266 else if (config->val_bits == 16 && config->reg_bits == 8 && regmap_get_i2c_bus()
269 switch (regmap_get_val_endian(&i2c->dev, NULL, config)) { regmap_get_i2c_bus()
277 else if (config->val_bits == 8 && config->reg_bits == 8 && regmap_get_i2c_bus()
286 const struct regmap_config *config, __regmap_init_i2c()
290 const struct regmap_bus *bus = regmap_get_i2c_bus(i2c, config); __regmap_init_i2c()
295 return __regmap_init(&i2c->dev, bus, &i2c->dev, config, __regmap_init_i2c()
301 const struct regmap_config *config, __devm_regmap_init_i2c()
305 const struct regmap_bus *bus = regmap_get_i2c_bus(i2c, config); __devm_regmap_init_i2c()
310 return __devm_regmap_init(&i2c->dev, bus, &i2c->dev, config, __devm_regmap_init_i2c()
257 regmap_get_i2c_bus(struct i2c_client *i2c, const struct regmap_config *config) regmap_get_i2c_bus() argument
285 __regmap_init_i2c(struct i2c_client *i2c, const struct regmap_config *config, struct lock_class_key *lock_key, const char *lock_name) __regmap_init_i2c() argument
300 __devm_regmap_init_i2c(struct i2c_client *i2c, const struct regmap_config *config, struct lock_class_key *lock_key, const char *lock_name) __devm_regmap_init_i2c() argument
H A Dregmap-spmi.c95 const struct regmap_config *config, __regmap_init_spmi_base()
99 return __regmap_init(&sdev->dev, &regmap_spmi_base, sdev, config, __regmap_init_spmi_base()
105 const struct regmap_config *config, __devm_regmap_init_spmi_base()
109 return __devm_regmap_init(&sdev->dev, &regmap_spmi_base, sdev, config, __devm_regmap_init_spmi_base()
215 const struct regmap_config *config, __regmap_init_spmi_ext()
219 return __regmap_init(&sdev->dev, &regmap_spmi_ext, sdev, config, __regmap_init_spmi_ext()
225 const struct regmap_config *config, __devm_regmap_init_spmi_ext()
229 return __devm_regmap_init(&sdev->dev, &regmap_spmi_ext, sdev, config, __devm_regmap_init_spmi_ext()
94 __regmap_init_spmi_base(struct spmi_device *sdev, const struct regmap_config *config, struct lock_class_key *lock_key, const char *lock_name) __regmap_init_spmi_base() argument
104 __devm_regmap_init_spmi_base(struct spmi_device *sdev, const struct regmap_config *config, struct lock_class_key *lock_key, const char *lock_name) __devm_regmap_init_spmi_base() argument
214 __regmap_init_spmi_ext(struct spmi_device *sdev, const struct regmap_config *config, struct lock_class_key *lock_key, const char *lock_name) __regmap_init_spmi_ext() argument
224 __devm_regmap_init_spmi_ext(struct spmi_device *sdev, const struct regmap_config *config, struct lock_class_key *lock_key, const char *lock_name) __devm_regmap_init_spmi_ext() argument
/linux-4.4.14/drivers/usb/phy/
H A Dphy-tegra-usb.c261 struct tegra_utmip_config *config = phy->config; utmip_pad_power_on() local
276 val |= UTMIP_HSSQUELCH_LEVEL(config->hssquelch_level); utmip_pad_power_on()
277 val |= UTMIP_HSDISCON_LEVEL(config->hsdiscon_level); utmip_pad_power_on()
278 val |= UTMIP_HSDISCON_LEVEL_MSB(config->hsdiscon_level); utmip_pad_power_on()
376 struct tegra_utmip_config *config = phy->config; utmi_phy_power_on() local
394 val |= UTMIP_IDLE_WAIT(config->idle_wait_delay); utmi_phy_power_on()
395 val |= UTMIP_ELASTIC_LIMIT(config->elastic_limit); utmi_phy_power_on()
400 val |= UTMIP_HS_SYNC_START_DLY(config->hssync_start_delay); utmi_phy_power_on()
450 if (!config->xcvr_setup_use_fuses) { utmi_phy_power_on()
451 val |= UTMIP_XCVR_SETUP(config->xcvr_setup); utmi_phy_power_on()
452 val |= UTMIP_XCVR_SETUP_MSB(config->xcvr_setup); utmi_phy_power_on()
454 val |= UTMIP_XCVR_LSFSLEW(config->xcvr_lsfslew); utmi_phy_power_on()
455 val |= UTMIP_XCVR_LSRSLEW(config->xcvr_lsrslew); utmi_phy_power_on()
459 val |= UTMIP_XCVR_HSSLEW(config->xcvr_hsslew); utmi_phy_power_on()
460 val |= UTMIP_XCVR_HSSLEW_MSB(config->xcvr_hsslew); utmi_phy_power_on()
467 val |= UTMIP_XCVR_TERM_RANGE_ADJ(config->term_range_adj); utmi_phy_power_on()
476 if (config->xcvr_setup_use_fuses) utmi_phy_power_on()
864 struct tegra_utmip_config *config; utmi_phy_probe() local
881 tegra_phy->config = devm_kzalloc(&pdev->dev, sizeof(*config), utmi_phy_probe()
883 if (!tegra_phy->config) utmi_phy_probe()
886 config = tegra_phy->config; utmi_phy_probe()
889 &config->hssync_start_delay); utmi_phy_probe()
894 &config->elastic_limit); utmi_phy_probe()
899 &config->idle_wait_delay); utmi_phy_probe()
904 &config->term_range_adj); utmi_phy_probe()
909 &config->xcvr_lsfslew); utmi_phy_probe()
914 &config->xcvr_lsrslew); utmi_phy_probe()
920 &config->xcvr_hsslew); utmi_phy_probe()
925 &config->hssquelch_level); utmi_phy_probe()
930 &config->hsdiscon_level); utmi_phy_probe()
935 config->xcvr_setup_use_fuses = of_property_read_bool( utmi_phy_probe()
938 if (!config->xcvr_setup_use_fuses) { utmi_phy_probe()
940 &config->xcvr_setup); utmi_phy_probe()
1023 tegra_phy->config = NULL; tegra_usb_phy_probe()
/linux-4.4.14/drivers/spi/
H A Dspi-imx.c80 int (*config)(struct spi_imx_data *, struct spi_imx_config *); member in struct:spi_imx_devtype_data
312 struct spi_imx_config *config) mx51_ecspi_config()
316 u32 clk = config->speed_hz, delay; mx51_ecspi_config()
328 ctrl |= mx51_ecspi_clkdiv(spi_imx->spi_clk, config->speed_hz, &clk); mx51_ecspi_config()
331 ctrl |= MX51_ECSPI_CTRL_CS(config->cs); mx51_ecspi_config()
333 ctrl |= (config->bpw - 1) << MX51_ECSPI_CTRL_BL_OFFSET; mx51_ecspi_config()
335 cfg |= MX51_ECSPI_CONFIG_SBBCTRL(config->cs); mx51_ecspi_config()
337 if (config->mode & SPI_CPHA) mx51_ecspi_config()
338 cfg |= MX51_ECSPI_CONFIG_SCLKPHA(config->cs); mx51_ecspi_config()
340 cfg &= ~MX51_ECSPI_CONFIG_SCLKPHA(config->cs); mx51_ecspi_config()
342 if (config->mode & SPI_CPOL) { mx51_ecspi_config()
343 cfg |= MX51_ECSPI_CONFIG_SCLKPOL(config->cs); mx51_ecspi_config()
344 cfg |= MX51_ECSPI_CONFIG_SCLKCTL(config->cs); mx51_ecspi_config()
346 cfg &= ~MX51_ECSPI_CONFIG_SCLKPOL(config->cs); mx51_ecspi_config()
347 cfg &= ~MX51_ECSPI_CONFIG_SCLKCTL(config->cs); mx51_ecspi_config()
349 if (config->mode & SPI_CS_HIGH) mx51_ecspi_config()
350 cfg |= MX51_ECSPI_CONFIG_SSBPOL(config->cs); mx51_ecspi_config()
352 cfg &= ~MX51_ECSPI_CONFIG_SSBPOL(config->cs); mx51_ecspi_config()
456 struct spi_imx_config *config) mx31_config()
459 int cs = spi_imx->chipselect[config->cs]; mx31_config()
461 reg |= spi_imx_clkdiv_2(spi_imx->spi_clk, config->speed_hz) << mx31_config()
465 reg |= (config->bpw - 1) << MX35_CSPICTRL_BL_SHIFT; mx31_config()
468 reg |= (config->bpw - 1) << MX31_CSPICTRL_BC_SHIFT; mx31_config()
471 if (config->mode & SPI_CPHA) mx31_config()
473 if (config->mode & SPI_CPOL) mx31_config()
475 if (config->mode & SPI_CS_HIGH) mx31_config()
534 struct spi_imx_config *config) mx21_config()
537 int cs = spi_imx->chipselect[config->cs]; mx21_config()
540 reg |= spi_imx_clkdiv_1(spi_imx->spi_clk, config->speed_hz, max) << mx21_config()
542 reg |= config->bpw - 1; mx21_config()
544 if (config->mode & SPI_CPHA) mx21_config()
546 if (config->mode & SPI_CPOL) mx21_config()
548 if (config->mode & SPI_CS_HIGH) mx21_config()
601 struct spi_imx_config *config) mx1_config()
605 reg |= spi_imx_clkdiv_2(spi_imx->spi_clk, config->speed_hz) << mx1_config()
607 reg |= config->bpw - 1; mx1_config()
609 if (config->mode & SPI_CPHA) mx1_config()
611 if (config->mode & SPI_CPOL) mx1_config()
631 .config = mx1_config,
640 .config = mx21_config,
650 .config = mx21_config,
659 .config = mx31_config,
669 .config = mx31_config,
678 .config = mx51_ecspi_config,
778 struct spi_imx_config config; spi_imx_setupxfer() local
780 config.bpw = t ? t->bits_per_word : spi->bits_per_word; spi_imx_setupxfer()
781 config.speed_hz = t ? t->speed_hz : spi->max_speed_hz; spi_imx_setupxfer()
782 config.mode = spi->mode; spi_imx_setupxfer()
783 config.cs = spi->chip_select; spi_imx_setupxfer()
785 if (!config.speed_hz) spi_imx_setupxfer()
786 config.speed_hz = spi->max_speed_hz; spi_imx_setupxfer()
787 if (!config.bpw) spi_imx_setupxfer()
788 config.bpw = spi->bits_per_word; spi_imx_setupxfer()
791 if (config.bpw <= 8) { spi_imx_setupxfer()
794 } else if (config.bpw <= 16) { spi_imx_setupxfer()
802 spi_imx->devtype_data->config(spi_imx, &config); spi_imx_setupxfer()
311 mx51_ecspi_config(struct spi_imx_data *spi_imx, struct spi_imx_config *config) mx51_ecspi_config() argument
455 mx31_config(struct spi_imx_data *spi_imx, struct spi_imx_config *config) mx31_config() argument
533 mx21_config(struct spi_imx_data *spi_imx, struct spi_imx_config *config) mx21_config() argument
600 mx1_config(struct spi_imx_data *spi_imx, struct spi_imx_config *config) mx1_config() argument
/linux-4.4.14/drivers/usb/gadget/legacy/
H A Dmulti.c191 static struct usb_configuration config = { rndis_config_register() local
196 config.label = strings_dev[MULTI_STRING_RNDIS_CONFIG_IDX].s; rndis_config_register()
197 config.iConfiguration = strings_dev[MULTI_STRING_RNDIS_CONFIG_IDX].id; rndis_config_register()
199 return usb_add_config(cdev, &config, rndis_do_config); rndis_config_register()
274 static struct usb_configuration config = { cdc_config_register() local
279 config.label = strings_dev[MULTI_STRING_CDC_CONFIG_IDX].s; cdc_config_register()
280 config.iConfiguration = strings_dev[MULTI_STRING_CDC_CONFIG_IDX].id; cdc_config_register()
282 return usb_add_config(cdev, &config, cdc_do_config); cdc_config_register()
308 struct fsg_config config; multi_bind() local
376 fsg_config_from_params(&config, &fsg_mod_data, fsg_num_buffers); multi_bind()
384 status = fsg_common_set_cdev(fsg_opts->common, cdev, config.can_stall); multi_bind()
389 status = fsg_common_create_luns(fsg_opts->common, &config); multi_bind()
393 fsg_common_set_inquiry_string(fsg_opts->common, config.vendor_name, multi_bind()
394 config.product_name); multi_bind()
/linux-4.4.14/drivers/media/usb/cx231xx/
H A Dcx231xx-pcb-cfg.c2 cx231xx-pcb-config.c - driver for Conexant
27 MODULE_PARM_DESC(pcb_debug, "enable pcb config debug messages [video]");
49 0, /* config index */
74 /* full-speed config */
77 0, /* config index */
119 0, /* config index */
146 0, /* config index */
189 0, /* config index */
216 0, /* config index */
258 0, /* config index */
285 0, /* config index */
328 0, /* config index */
355 0, /* config index */
397 0, /* config index */
424 0, /* config index */
467 0, /* config index */
494 0, /* config index */
534 0, /* config index */
560 0, /* config index */
601 0, /* config index */
627 0, /* config index */
672 /* read board config register to find out which initialize_cx231xx()
673 pcb config it is related to */ initialize_cx231xx()
707 "bad config in buspower!!!!\nconfig_info=%x\n", initialize_cx231xx()
/linux-4.4.14/drivers/platform/x86/
H A Dsamsung-laptop.c332 const struct sabi_config *config; member in struct:samsung_laptop
402 const struct sabi_config *config = samsung->config; sabi_command() local
404 u16 port = readw(samsung->sabi + config->header_offsets.port); sabi_command()
419 outb(readb(samsung->sabi + config->header_offsets.en_mem), port); sabi_command()
422 writew(config->main_function, samsung->sabi_iface + SABI_IFACE_MAIN); sabi_command()
431 outb(readb(samsung->sabi + config->header_offsets.iface_func), port); sabi_command()
434 outb(readb(samsung->sabi + config->header_offsets.re_mem), port); sabi_command()
483 const struct sabi_config *config = samsung->config; read_brightness() local
484 const struct sabi_commands *commands = &samsung->config->commands; read_brightness()
495 if (user_brightness > config->min_brightness) read_brightness()
496 user_brightness -= config->min_brightness; read_brightness()
505 const struct sabi_config *config = samsung->config; set_brightness() local
506 const struct sabi_commands *commands = &samsung->config->commands; set_brightness()
507 u8 user_level = user_brightness + config->min_brightness; set_brightness()
567 const struct sabi_commands *commands = &samsung->config->commands; update_status()
588 const struct sabi_commands *commands = &samsung->config->commands; seclinux_rfkill_set()
601 const struct sabi_commands *commands = &samsung->config->commands; swsmi_wireless_status()
611 const struct sabi_commands *commands = &samsung->config->commands; swsmi_rfkill_set()
663 const struct sabi_config *config = samsung->config; get_performance_level() local
664 const struct sabi_commands *commands = &config->commands; get_performance_level()
676 for (i = 0; config->performance_levels[i].name; ++i) { get_performance_level()
677 if (sretval.data[0] == config->performance_levels[i].value) get_performance_level()
678 return sprintf(buf, "%s\n", config->performance_levels[i].name); get_performance_level()
688 const struct sabi_config *config = samsung->config; set_performance_level() local
689 const struct sabi_commands *commands = &config->commands; set_performance_level()
695 for (i = 0; config->performance_levels[i].name; ++i) { set_performance_level()
697 &config->performance_levels[i]; set_performance_level()
706 if (!config->performance_levels[i].name) set_performance_level()
717 const struct sabi_commands *commands = &samsung->config->commands; read_battery_life_extender()
741 const struct sabi_commands *commands = &samsung->config->commands; write_battery_life_extender()
786 const struct sabi_commands *commands = &samsung->config->commands; read_usb_charge()
810 const struct sabi_commands *commands = &samsung->config->commands; write_usb_charge()
855 const struct sabi_commands *commands = &samsung->config->commands; read_lid_handling()
875 const struct sabi_commands *commands = &samsung->config->commands; write_lid_handling()
1038 if (samsung->config->sabi_version == 2) samsung_rfkill_init()
1040 if (samsung->config->sabi_version == 3) samsung_rfkill_init()
1063 const struct sabi_commands *commands = &samsung->config->commands; kbd_backlight_enable()
1085 const struct sabi_commands *commands = &samsung->config->commands; kbd_backlight_read()
1102 const struct sabi_commands *commands = &samsung->config->commands; kbd_backlight_write()
1197 props.max_brightness = samsung->config->max_brightness - samsung_backlight_init()
1198 samsung->config->min_brightness; samsung_backlight_init()
1224 ok = !!samsung->config->performance_levels[0].name; samsung_sysfs_is_visible()
1373 const struct sabi_config *config = samsung->config; samsung_sabi_exit() local
1376 if (config && config->commands.set_linux != 0xff) samsung_sabi_exit()
1377 sabi_set_commandb(samsung, config->commands.set_linux, 0x80); samsung_sabi_exit()
1388 samsung->config = NULL; samsung_sabi_exit()
1394 const struct sabi_config *config = samsung->config; samsung_sabi_infos() local
1401 readw(samsung->sabi + config->header_offsets.port)); samsung_sabi_infos()
1403 readb(samsung->sabi + config->header_offsets.iface_func)); samsung_sabi_infos()
1405 readb(samsung->sabi + config->header_offsets.en_mem)); samsung_sabi_infos()
1407 readb(samsung->sabi + config->header_offsets.re_mem)); samsung_sabi_infos()
1409 readw(samsung->sabi + config->header_offsets.data_offset)); samsung_sabi_infos()
1411 readw(samsung->sabi + config->header_offsets.data_segment)); samsung_sabi_infos()
1446 const struct sabi_config *config = NULL; samsung_sabi_init() local
1465 samsung->config = &sabi_configs[i]; samsung_sabi_init()
1467 samsung->config->test_string); samsung_sabi_init()
1479 config = samsung->config; samsung_sabi_init()
1480 commands = &config->commands; samsung_sabi_init()
1487 ifaceP = (readw(samsung->sabi + config->header_offsets.data_segment) & 0x0ffff) << 4; samsung_sabi_init()
1488 ifaceP += readw(samsung->sabi + config->header_offsets.data_offset) & 0x0ffff; samsung_sabi_init()
1516 samsung->config->test_string); samsung_sabi_init()
/linux-4.4.14/drivers/thermal/
H A Dtegra_soctherm.c85 const struct tegra_tsensor_configuration *config; member in struct:tegra_tsensor
108 .config = &t124_tsensor_config,
115 .config = &t124_tsensor_config,
122 .config = &t124_tsensor_config,
129 .config = &t124_tsensor_config,
136 .config = &t124_tsensor_config,
143 .config = &t124_tsensor_config,
150 .config = &t124_tsensor_config,
157 .config = &t124_tsensor_config,
240 mult = sensor->config->pdiv * sensor->config->tsample_ate; calculate_tsensor_calibration()
241 div = sensor->config->tsample * sensor->config->pdiv_ate; calculate_tsensor_calibration()
274 val = sensor->config->tall << SENSOR_CONFIG0_TALL_SHIFT; enable_tsensor()
277 val = (sensor->config->tsample - 1) << SENSOR_CONFIG1_TSAMPLE_SHIFT; enable_tsensor()
278 val |= sensor->config->tiddq_en << SENSOR_CONFIG1_TIDDQ_EN_SHIFT; enable_tsensor()
279 val |= sensor->config->ten_count << SENSOR_CONFIG1_TEN_COUNT_SHIFT; enable_tsensor()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/
H A Dtypes.h133 #define CONF_HAS(config, val) ((config) & (1 << (val)))
134 #define CONF_MSK(config, mask) ((config) & (mask))
136 #define CONF_RANGE(config, low, hi) (CONF_MSK(config, MSK_RANGE(low, high)))
138 #define CONF_IS(config, val) ((config) == (1 << (val)))
139 #define CONF_GE(config, val) ((config) & (0-(1 << (val))))
140 #define CONF_GT(config, val) ((config) & (0-2*(1 << (val))))
141 #define CONF_LT(config, val) ((config) & ((1 << (val))-1))
142 #define CONF_LE(config, val) ((config) & (2*(1 << (val))-1))
144 /* Wrappers for some of the above, specific to config constants */
/linux-4.4.14/drivers/gpio/
H A Dgpio-max730x.c54 u8 *config; max7301_direction_input() local
62 config = &ts->port_config[offset >> 2]; max7301_direction_input()
71 *config = (*config & ~(PIN_CONFIG_MASK << offset_bits)) max7301_direction_input()
74 ret = ts->write(ts->dev, 0x08 + (offset >> 2), *config); max7301_direction_input()
96 u8 *config; max7301_direction_output() local
104 config = &ts->port_config[offset >> 2]; max7301_direction_output()
108 *config = (*config & ~(PIN_CONFIG_MASK << offset_bits)) max7301_direction_output()
114 ret = ts->write(ts->dev, 0x08 + (offset >> 2), *config); max7301_direction_output()
124 int config, level = -EINVAL; max7301_get() local
131 config = (ts->port_config[offset >> 2] >> ((offset & 3) << 1)) max7301_get()
134 switch (config) { max7301_get()
/linux-4.4.14/drivers/pinctrl/mvebu/
H A Dpinctrl-dove.c69 static int dove_mpp_ctrl_get(unsigned pid, unsigned long *config) dove_mpp_ctrl_get() argument
71 return default_mpp_ctrl_get(mpp_base, pid, config); dove_mpp_ctrl_get()
74 static int dove_mpp_ctrl_set(unsigned pid, unsigned long config) dove_mpp_ctrl_set() argument
76 return default_mpp_ctrl_set(mpp_base, pid, config); dove_mpp_ctrl_set()
79 static int dove_pmu_mpp_ctrl_get(unsigned pid, unsigned long *config) dove_pmu_mpp_ctrl_get() argument
87 return default_mpp_ctrl_get(mpp_base, pid, config); dove_pmu_mpp_ctrl_get()
90 *config = (func >> shift) & MVEBU_MPP_MASK; dove_pmu_mpp_ctrl_get()
91 *config |= CONFIG_PMU; dove_pmu_mpp_ctrl_get()
96 static int dove_pmu_mpp_ctrl_set(unsigned pid, unsigned long config) dove_pmu_mpp_ctrl_set() argument
103 if ((config & CONFIG_PMU) == 0) { dove_pmu_mpp_ctrl_set()
105 return default_mpp_ctrl_set(mpp_base, pid, config); dove_pmu_mpp_ctrl_set()
111 func |= (config & MVEBU_MPP_MASK) << shift; dove_pmu_mpp_ctrl_set()
117 static int dove_mpp4_ctrl_get(unsigned pid, unsigned long *config) dove_mpp4_ctrl_get() argument
142 *config = ((mpp4 & mask) != 0); dove_mpp4_ctrl_get()
147 static int dove_mpp4_ctrl_set(unsigned pid, unsigned long config) dove_mpp4_ctrl_set() argument
173 if (config) dove_mpp4_ctrl_set()
181 static int dove_nand_ctrl_get(unsigned pid, unsigned long *config) dove_nand_ctrl_get() argument
186 *config = ((gmpp & NAND_GPIO_EN) != 0); dove_nand_ctrl_get()
191 static int dove_nand_ctrl_set(unsigned pid, unsigned long config) dove_nand_ctrl_set() argument
195 (config) ? NAND_GPIO_EN : 0); dove_nand_ctrl_set()
199 static int dove_audio0_ctrl_get(unsigned pid, unsigned long *config) dove_audio0_ctrl_get() argument
203 *config = ((pmu & AU0_AC97_SEL) != 0); dove_audio0_ctrl_get()
208 static int dove_audio0_ctrl_set(unsigned pid, unsigned long config) dove_audio0_ctrl_set() argument
213 if (config) dove_audio0_ctrl_set()
220 static int dove_audio1_ctrl_get(unsigned pid, unsigned long *config) dove_audio1_ctrl_get() argument
231 *config = 0; dove_audio1_ctrl_get()
233 *config |= BIT(3); dove_audio1_ctrl_get()
235 *config |= BIT(2); dove_audio1_ctrl_get()
237 *config |= BIT(1); dove_audio1_ctrl_get()
239 *config |= BIT(0); dove_audio1_ctrl_get()
242 if ((*config & BIT(3)) == 0) dove_audio1_ctrl_get()
243 *config &= ~(BIT(2) | BIT(0)); dove_audio1_ctrl_get()
245 if ((*config & BIT(1)) == 0) dove_audio1_ctrl_get()
246 *config &= ~BIT(0); dove_audio1_ctrl_get()
250 static int dove_audio1_ctrl_set(unsigned pid, unsigned long config) dove_audio1_ctrl_set() argument
255 if (config & BIT(3)) dove_audio1_ctrl_set()
261 (config & BIT(2)) ? SSP_ON_AU1 : 0); dove_audio1_ctrl_set()
264 (config & BIT(1)) ? AU1_SPDIFO_GPIO_EN : 0); dove_audio1_ctrl_set()
267 (config & BIT(0)) ? TWSI_OPTION3_GPIO : 0); dove_audio1_ctrl_set()
272 /* mpp[52:57] gpio pins depend heavily on current config;
279 unsigned long config; dove_audio1_ctrl_gpio_req() local
281 dove_audio1_ctrl_get(pid, &config); dove_audio1_ctrl_gpio_req()
283 switch (config) { dove_audio1_ctrl_gpio_req()
311 static int dove_twsi_ctrl_get(unsigned pid, unsigned long *config) dove_twsi_ctrl_get() argument
319 *config = 0; dove_twsi_ctrl_get()
321 *config = 1; dove_twsi_ctrl_get()
323 *config = 2; dove_twsi_ctrl_get()
325 *config = 3; dove_twsi_ctrl_get()
330 static int dove_twsi_ctrl_set(unsigned pid, unsigned long config) dove_twsi_ctrl_set() argument
335 switch (config) { dove_twsi_ctrl_set()
818 gconfmap = syscon_regmap_lookup_by_compatible("marvell,dove-global-config"); dove_pinctrl_probe()
/linux-4.4.14/drivers/iio/temperature/
H A Dtmp006.c49 u16 config; member in struct:tmp006_data
114 cr = (data->config & TMP006_CONFIG_CR_MASK) tmp006_read_raw()
141 data->config &= ~TMP006_CONFIG_CR_MASK; tmp006_write_raw()
142 data->config |= i << TMP006_CONFIG_CR_SHIFT; tmp006_write_raw()
146 data->config); tmp006_write_raw()
234 data->config = ret; tmp006_probe()
242 data->config & ~TMP006_CONFIG_MOD_MASK); tmp006_powerdown()
267 data->config | TMP006_CONFIG_MOD_MASK); tmp006_resume()
/linux-4.4.14/drivers/media/usb/ttusb-dec/
H A Dttusbdecfe.h34 extern struct dvb_frontend* ttusbdecfe_dvbs_attach(const struct ttusbdecfe_config* config);
36 extern struct dvb_frontend* ttusbdecfe_dvbt_attach(const struct ttusbdecfe_config* config);
/linux-4.4.14/drivers/ata/
H A Dpata_via.c181 const struct via_isa_bridge *config = ap->host->private_data; via_cable_detect() local
188 if ((config->flags & VIA_SATA_PATA) && ap->port_no == 0) via_cable_detect()
192 if (config->udma_mask < ATA_UDMA4) via_cable_detect()
195 else if (config->udma_mask < ATA_UDMA5) via_cable_detect()
213 const struct via_isa_bridge *config = ap->host->private_data; via_pre_reset() local
215 if (!(config->flags & VIA_NO_ENABLES)) { via_pre_reset()
331 const struct via_isa_bridge *config = ap->host->private_data; via_set_piomode() local
332 int set_ast = (config->flags & VIA_BAD_AST) ? 0 : 1; via_set_piomode()
334 via_do_set_mode(ap, adev, adev->pio_mode, set_ast, config->udma_mask); via_set_piomode()
339 const struct via_isa_bridge *config = ap->host->private_data; via_set_dmamode() local
340 int set_ast = (config->flags & VIA_BAD_AST) ? 0 : 1; via_set_dmamode()
342 via_do_set_mode(ap, adev, adev->dma_mode, set_ast, config->udma_mask); via_set_dmamode()
357 const struct via_isa_bridge *config = host->private_data; via_mode_filter() local
360 if (config->id == PCI_DEVICE_ID_VIA_82C586_0) { via_mode_filter()
511 static void via_fixup(struct pci_dev *pdev, const struct via_isa_bridge *config) via_fixup() argument
516 via_config_fifo(pdev, config->flags); via_fixup()
518 if (config->udma_mask == ATA_UDMA4) { via_fixup()
524 if (config->flags & VIA_BAD_CLK66) { via_fixup()
591 const struct via_isa_bridge *config; via_init_one() local
607 for (config = via_isa_bridges; config->id != PCI_DEVICE_ID_VIA_ANON; via_init_one()
608 config++) via_init_one()
610 !!(config->flags & VIA_BAD_ID), via_init_one()
611 config->id, NULL))) { via_init_one()
616 (config->id != id->device)) via_init_one()
619 if (rev >= config->rev_min && rev <= config->rev_max) via_init_one()
623 if (!(config->flags & VIA_NO_ENABLES)) { via_init_one()
632 switch (config->udma_mask) { via_init_one()
634 if (config->flags & VIA_NO_UNMASK) via_init_one()
656 via_fixup(pdev, config); via_init_one()
659 return ata_pci_bmdma_init_one(pdev, ppi, &via_sht, (void *)config, 0); via_init_one()
/linux-4.4.14/arch/arc/include/asm/
H A Dlinkage.h16 /* annotation for data we want in DCCM - if enabled in .config */
26 /* annotation for data we want in DCCM - if enabled in .config */
/linux-4.4.14/samples/pktgen/
H A Dpktgen.conf-1-1-flows20 # thread config
30 # device config
H A Dpktgen.conf-1-1-ip620 # thread config
31 # device config
H A Dpktgen.conf-1-1-ip6-rdos20 # thread config
31 # device config
H A Dpktgen.conf-1-1-rdos20 # thread config
30 # device config

Completed in 9464 milliseconds

1234567891011>>