Lines Matching refs:plat
128 if (plat == NULL) { in mraa_uart_init()
138 if (plat->adv_func->uart_init_pre != NULL) { in mraa_uart_init()
139 if (plat->adv_func->uart_init_pre(index) != MRAA_SUCCESS) { in mraa_uart_init()
145 if (plat->uart_dev_count == 0) { in mraa_uart_init()
150 if (plat->uart_dev_count <= index) { in mraa_uart_init()
151 syslog(LOG_ERR, "uart: platform has only %i", plat->uart_dev_count); in mraa_uart_init()
155 if (!plat->no_bus_mux) { in mraa_uart_init()
156 int pos = plat->uart_dev[index].rx; in mraa_uart_init()
158 if (plat->pins[pos].uart.mux_total > 0) { in mraa_uart_init()
159 if (mraa_setup_mux_mapped(plat->pins[pos].uart) != MRAA_SUCCESS) { in mraa_uart_init()
166 pos = plat->uart_dev[index].tx; in mraa_uart_init()
168 if (plat->pins[pos].uart.mux_total > 0) { in mraa_uart_init()
169 if (mraa_setup_mux_mapped(plat->pins[pos].uart) != MRAA_SUCCESS) { in mraa_uart_init()
177 mraa_uart_context dev = mraa_uart_init_raw((char*)plat->uart_dev[index].device_path); in mraa_uart_init()
197 mraa_uart_context dev = mraa_uart_init_internal(plat == NULL ? NULL : plat->adv_func); in mraa_uart_init_raw()