Lines Matching refs:fields
95 struct at91sam9_smc_generic_fields *fields = &ebid->ebi->sam9; in at91sam9_ebi_get_config() local
101 regmap_fields_read(fields->mode, conf->cs, &val); in at91sam9_ebi_get_config()
107 regmap_fields_read(fields->setup, conf->cs, &val); in at91sam9_ebi_get_config()
121 regmap_fields_read(fields->pulse, conf->cs, &val); in at91sam9_ebi_get_config()
135 regmap_fields_read(fields->cycle, conf->cs, &val); in at91sam9_ebi_get_config()
340 struct at91sam9_smc_generic_fields *fields = &ebid->ebi->sam9; in at91sam9_ebi_apply_config() local
356 regmap_fields_write(fields->setup, conf->cs, val); in at91sam9_ebi_apply_config()
370 regmap_fields_write(fields->pulse, conf->cs, val); in at91sam9_ebi_apply_config()
378 regmap_fields_write(fields->cycle, conf->cs, val); in at91sam9_ebi_apply_config()
383 regmap_fields_write(fields->mode, conf->cs, in at91sam9_ebi_apply_config()
391 struct at91sam9_smc_generic_fields *fields = &ebi->sam9; in at91sam9_ebi_init() local
398 fields->setup = devm_regmap_field_alloc(ebi->dev, ebi->smc, field); in at91sam9_ebi_init()
399 if (IS_ERR(fields->setup)) in at91sam9_ebi_init()
400 return PTR_ERR(fields->setup); in at91sam9_ebi_init()
403 fields->pulse = devm_regmap_field_alloc(ebi->dev, ebi->smc, field); in at91sam9_ebi_init()
404 if (IS_ERR(fields->pulse)) in at91sam9_ebi_init()
405 return PTR_ERR(fields->pulse); in at91sam9_ebi_init()
408 fields->cycle = devm_regmap_field_alloc(ebi->dev, ebi->smc, field); in at91sam9_ebi_init()
409 if (IS_ERR(fields->cycle)) in at91sam9_ebi_init()
410 return PTR_ERR(fields->cycle); in at91sam9_ebi_init()
413 fields->mode = devm_regmap_field_alloc(ebi->dev, ebi->smc, field); in at91sam9_ebi_init()
414 return PTR_ERR_OR_ZERO(fields->mode); in at91sam9_ebi_init()
419 struct at91sam9_smc_generic_fields *fields = &ebi->sam9; in sama5d3_ebi_init() local
426 fields->setup = devm_regmap_field_alloc(ebi->dev, ebi->smc, field); in sama5d3_ebi_init()
427 if (IS_ERR(fields->setup)) in sama5d3_ebi_init()
428 return PTR_ERR(fields->setup); in sama5d3_ebi_init()
431 fields->pulse = devm_regmap_field_alloc(ebi->dev, ebi->smc, field); in sama5d3_ebi_init()
432 if (IS_ERR(fields->pulse)) in sama5d3_ebi_init()
433 return PTR_ERR(fields->pulse); in sama5d3_ebi_init()
436 fields->cycle = devm_regmap_field_alloc(ebi->dev, ebi->smc, field); in sama5d3_ebi_init()
437 if (IS_ERR(fields->cycle)) in sama5d3_ebi_init()
438 return PTR_ERR(fields->cycle); in sama5d3_ebi_init()
441 fields->mode = devm_regmap_field_alloc(ebi->dev, ebi->smc, field); in sama5d3_ebi_init()
442 return PTR_ERR_OR_ZERO(fields->mode); in sama5d3_ebi_init()