Searched refs:PORT_PIN (Results 1 – 3 of 3) sorted by relevance
/linux-4.4.14/drivers/pinctrl/ |
D | pinctrl-xway.c | 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() [all …]
|
D | pinctrl-falcon.c | 52 #define PORT_PIN(x) (x % PINS) macro 258 !!pad_getbit(mem, LTQ_PADC_DCC, PORT_PIN(pin))); in falcon_pinconf_get() 263 !!pad_getbit(mem, LTQ_PADC_SRC, PORT_PIN(pin))); in falcon_pinconf_get() 267 if (pad_getbit(mem, LTQ_PADC_PDEN, PORT_PIN(pin))) in falcon_pinconf_get() 269 else if (pad_getbit(mem, LTQ_PADC_PUEN, PORT_PIN(pin))) in falcon_pinconf_get() 320 pad_w32(mem, BIT(PORT_PIN(pin)), reg); in falcon_pinconf_set() 321 if (!(pad_r32(mem, reg) & BIT(PORT_PIN(pin)))) in falcon_pinconf_set() 338 pad_r32(info->membase[port], LTQ_PADC_MUX(PORT_PIN(offset)))); in falcon_pinconf_dbg_show() 394 LTQ_PADC_MUX(PORT_PIN(info->mfp[mfp].pin))); in falcon_mux_apply()
|
/linux-4.4.14/Documentation/devicetree/bindings/pinctrl/ |
D | fsl,imx27-pinctrl.txt | 13 configurable pins each. PIN is PORT * 32 + PORT_PIN, PORT_PIN is the pin
|