Lines Matching refs:config
31 const struct tda665x_config *config; member
39 const struct tda665x_config *config = state->config; in tda665x_read() local
41 struct i2c_msg msg = { .addr = config->addr, .flags = I2C_M_RD, .buf = buf, .len = 2 }; in tda665x_read()
55 const struct tda665x_config *config = state->config; in tda665x_write() local
57 struct i2c_msg msg = { .addr = config->addr, .flags = 0, .buf = buf, .len = length }; in tda665x_write()
119 const struct tda665x_config *config = state->config; in tda665x_set_state() local
127 if ((frequency < config->frequency_max) || (frequency > config->frequency_min)) { in tda665x_set_state()
132 frequency += config->frequency_offst; in tda665x_set_state()
133 frequency *= config->ref_multiplier; in tda665x_set_state()
134 frequency += config->ref_divider >> 1; in tda665x_set_state()
135 frequency /= config->ref_divider; in tda665x_set_state()
224 const struct tda665x_config *config, in tda665x_attach() argument
234 state->config = config; in tda665x_attach()
241 memcpy(info->name, config->name, sizeof(config->name)); in tda665x_attach()
242 info->frequency_min = config->frequency_min; in tda665x_attach()
243 info->frequency_max = config->frequency_max; in tda665x_attach()
244 info->frequency_step = config->frequency_offst; in tda665x_attach()