Lines Matching full:af
250 struct alternate_functions af = pct->soc->alternate_functions[gpio]; in abx500_set_mode() local
263 if (((alt_setting == ABX500_ALT_A) && (af.gpiosel_bit == UNUSED)) || in abx500_set_mode()
264 ((alt_setting == ABX500_ALT_B) && (af.alt_bit1 == UNUSED)) || in abx500_set_mode()
265 ((alt_setting == ABX500_ALT_C) && (af.alt_bit2 == UNUSED))) { in abx500_set_mode()
283 if (af.alt_bit1 != UNUSED) in abx500_set_mode()
298 if (af.alt_bit1 != UNUSED) { in abx500_set_mode()
306 af.alt_bit1, in abx500_set_mode()
307 !!(af.alta_val & BIT(0))); in abx500_set_mode()
311 if (af.alt_bit2 != UNUSED) in abx500_set_mode()
314 af.alt_bit2, in abx500_set_mode()
315 !!(af.alta_val & BIT(1))); in abx500_set_mode()
328 af.alt_bit1, !!(af.altb_val & BIT(0))); in abx500_set_mode()
332 if (af.alt_bit2 != UNUSED) in abx500_set_mode()
335 af.alt_bit2, in abx500_set_mode()
336 !!(af.altb_val & BIT(1))); in abx500_set_mode()
346 af.alt_bit2, !!(af.altc_val & BIT(0))); in abx500_set_mode()
351 af.alt_bit2, !!(af.altc_val & BIT(1))); in abx500_set_mode()
375 struct alternate_functions af = pct->soc->alternate_functions[gpio]; in abx500_get_mode() local
384 if (af.gpiosel_bit == UNUSED) in abx500_get_mode()
389 af.gpiosel_bit, &bit_mode); in abx500_get_mode()
396 if ((af.alt_bit1 < UNUSED) || (af.alt_bit1 > 7) || in abx500_get_mode()
397 (af.alt_bit2 < UNUSED) || (af.alt_bit2 > 7)) { in abx500_get_mode()
404 if ((af.alt_bit2 != UNUSED) && (af.alt_bit1 == UNUSED)) { in abx500_get_mode()
411 if ((af.alt_bit1 == UNUSED) && (af.alt_bit2 == UNUSED)) in abx500_get_mode()
425 af.alt_bit1, &alt_bit1); in abx500_get_mode()
429 if (af.alt_bit2 != UNUSED) { in abx500_get_mode()
432 af.alt_bit2, in abx500_get_mode()
440 if (mode == af.alta_val) in abx500_get_mode()
442 else if (mode == af.altb_val) in abx500_get_mode()