Lines Matching refs:pctrl
1245 static int sw_uart_select_gpio_state(struct pinctrl *pctrl, char *name, u32 no) in sw_uart_select_gpio_state() argument
1250 pctrl_state = pinctrl_lookup_state(pctrl, name); in sw_uart_select_gpio_state()
1256 ret = pinctrl_select_state(pctrl, pctrl_state); in sw_uart_select_gpio_state()
1268 sw_uport->pctrl = devm_pinctrl_get(sw_uport->port.dev); in sw_uart_request_gpio()
1270 if (IS_ERR_OR_NULL(sw_uport->pctrl)) { in sw_uart_request_gpio()
1271 …RIAL_MSG("UART%d devm_pinctrl_get() failed! return %ld\n", sw_uport->id, PTR_ERR(sw_uport->pctrl)); in sw_uart_request_gpio()
1275 return sw_uart_select_gpio_state(sw_uport->pctrl, PINCTRL_STATE_DEFAULT, sw_uport->id); in sw_uart_request_gpio()
1283 devm_pinctrl_put(sw_uport->pctrl); in sw_uart_release_gpio()
1284 sw_uport->pctrl = NULL; in sw_uart_release_gpio()
2176 sw_uart_select_gpio_state(sw_uport->pctrl, in sw_uart_suspend()
2194 sw_uart_select_gpio_state(sw_uport->pctrl, in sw_uart_resume()