Lines Matching refs:setup
64 struct regmap_field *setup; member
119 int *setup, int *pulse, int *cycle, int *cs_pulse) in calc_smc_vals() argument
138 ret_val = adjust_smc_value(setup, range_setup, ARRAY_SIZE(range_setup)); in calc_smc_vals()
180 static void to_smc_format(int *setup, int *pulse, int *cycle, int *cs_pulse) in to_smc_format() argument
182 *setup = (*setup & 0x1f) | ((*setup & 0x80) >> 2); in to_smc_format()
221 unsigned int setup; /* SMC Setup width in MCK ticks */ in set_smc_timing() local
230 setup = calc_mck_cycles(ata->setup, mck_hz); in set_smc_timing()
235 ret = calc_smc_vals(dev, &setup, &pulse, &cycle, &cs_pulse); in set_smc_timing()
242 setup, pulse, cycle, cs_pulse); in set_smc_timing()
243 to_smc_format(&setup, &pulse, &cycle, &cs_pulse); in set_smc_timing()
256 regmap_fields_write(fields.setup, info->cs, in set_smc_timing()
257 AT91SAM9_SMC_NRDSETUP(setup) | in set_smc_timing()
258 AT91SAM9_SMC_NWESETUP(setup) | in set_smc_timing()
334 fields.setup = devm_regmap_field_alloc(dev, smc, field); in at91sam9_smc_fields_init()
335 if (IS_ERR(fields.setup)) in at91sam9_smc_fields_init()
336 return PTR_ERR(fields.setup); in at91sam9_smc_fields_init()