Lines Matching refs:PORT_PIN
31 #define PORT_PIN(x) (x % PINS) macro
465 !gpio_getbit(info->membase[0], reg, PORT_PIN(pin))); in xway_pinconf_get()
473 if (!gpio_getbit(info->membase[0], reg, PORT_PIN(pin))) { in xway_pinconf_get()
482 if (!gpio_getbit(info->membase[0], reg, PORT_PIN(pin))) in xway_pinconf_get()
491 gpio_getbit(info->membase[0], reg, PORT_PIN(pin))); in xway_pinconf_get()
525 PORT_PIN(pin)); in xway_pinconf_set()
529 PORT_PIN(pin)); in xway_pinconf_set()
540 PORT_PIN(pin)); in xway_pinconf_set()
543 gpio_setbit(info->membase[0], reg, PORT_PIN(pin)); in xway_pinconf_set()
552 PORT_PIN(pin)); in xway_pinconf_set()
556 PORT_PIN(pin)); in xway_pinconf_set()
567 PORT_PIN(pin)); in xway_pinconf_set()
571 PORT_PIN(pin)); in xway_pinconf_set()
623 gpio_setbit(info->membase[0], GPIO_ALT0(pin), PORT_PIN(pin)); in xway_mux_apply()
625 gpio_clearbit(info->membase[0], GPIO_ALT0(pin), PORT_PIN(pin)); in xway_mux_apply()
628 gpio_setbit(info->membase[0], alt1_reg, PORT_PIN(pin)); in xway_mux_apply()
630 gpio_clearbit(info->membase[0], alt1_reg, PORT_PIN(pin)); in xway_mux_apply()
654 gpio_setbit(info->membase[0], GPIO_OUT(pin), PORT_PIN(pin)); in xway_gpio_set()
656 gpio_clearbit(info->membase[0], GPIO_OUT(pin), PORT_PIN(pin)); in xway_gpio_set()
663 return gpio_getbit(info->membase[0], GPIO_IN(pin), PORT_PIN(pin)); in xway_gpio_get()
670 gpio_clearbit(info->membase[0], GPIO_DIR(pin), PORT_PIN(pin)); in xway_gpio_dir_in()
679 gpio_setbit(info->membase[0], GPIO_DIR(pin), PORT_PIN(pin)); in xway_gpio_dir_out()