Lines Matching refs:PORT_PIN
32 #define PORT_PIN(x) (x % PINS) macro
1352 !gpio_getbit(info->membase[0], reg, PORT_PIN(pin))); in xway_pinconf_get()
1360 if (!gpio_getbit(info->membase[0], reg, PORT_PIN(pin))) { in xway_pinconf_get()
1369 if (!gpio_getbit(info->membase[0], reg, PORT_PIN(pin))) in xway_pinconf_get()
1378 gpio_getbit(info->membase[0], reg, PORT_PIN(pin))); in xway_pinconf_get()
1412 PORT_PIN(pin)); in xway_pinconf_set()
1416 PORT_PIN(pin)); in xway_pinconf_set()
1427 PORT_PIN(pin)); in xway_pinconf_set()
1430 gpio_setbit(info->membase[0], reg, PORT_PIN(pin)); in xway_pinconf_set()
1439 PORT_PIN(pin)); in xway_pinconf_set()
1443 PORT_PIN(pin)); in xway_pinconf_set()
1454 PORT_PIN(pin)); in xway_pinconf_set()
1458 PORT_PIN(pin)); in xway_pinconf_set()
1510 gpio_setbit(info->membase[0], GPIO_ALT0(pin), PORT_PIN(pin)); in xway_mux_apply()
1512 gpio_clearbit(info->membase[0], GPIO_ALT0(pin), PORT_PIN(pin)); in xway_mux_apply()
1515 gpio_setbit(info->membase[0], alt1_reg, PORT_PIN(pin)); in xway_mux_apply()
1517 gpio_clearbit(info->membase[0], alt1_reg, PORT_PIN(pin)); in xway_mux_apply()
1541 gpio_setbit(info->membase[0], GPIO_OUT(pin), PORT_PIN(pin)); in xway_gpio_set()
1543 gpio_clearbit(info->membase[0], GPIO_OUT(pin), PORT_PIN(pin)); in xway_gpio_set()
1550 return !!gpio_getbit(info->membase[0], GPIO_IN(pin), PORT_PIN(pin)); in xway_gpio_get()
1557 gpio_clearbit(info->membase[0], GPIO_DIR(pin), PORT_PIN(pin)); in xway_gpio_dir_in()
1567 gpio_setbit(info->membase[0], GPIO3_OD, PORT_PIN(pin)); in xway_gpio_dir_out()
1569 gpio_setbit(info->membase[0], GPIO_OD(pin), PORT_PIN(pin)); in xway_gpio_dir_out()
1570 gpio_setbit(info->membase[0], GPIO_DIR(pin), PORT_PIN(pin)); in xway_gpio_dir_out()