Lines Matching refs:input
58 phandle_t input;
62 input = OF_finddevice(buf);
63 if (input == -1)
69 if (OF_finddevice(buf) != input)
73 *result = input;
114 phandle_t input, opts, chosen;
123 error = ofw_get_uart_console(chosen, &input,
126 error = ofw_get_uart_console(chosen, &input,
129 error = ofw_get_console_phandle_path(chosen, &input,
132 error = ofw_get_uart_console(chosen, &input,
135 error = ofw_get_console_phandle_path(chosen, &input,
138 error = ofw_get_uart_console(opts, &input,
139 "input-device", "output-device");
141 error = ofw_get_uart_console(opts, &input,
142 "input-device-1", "output-device-1");
144 input = OF_finddevice("serial0"); /* Last ditch */
145 if (input == -1)
155 input = OF_finddevice(buf);
156 if (input == -1)
163 if (OF_getprop(input, "device_type", buf, sizeof(buf)) == -1)
168 if (ofw_bus_node_is_compatible(input, "chrp,es")) {
172 } else if (ofw_bus_node_is_compatible(input,"ns16550") ||
173 ofw_bus_node_is_compatible(input,"ns8250")) {
183 error = OF_decode_addr(input, 0, &di->bas.bst, &di->bas.bsh, NULL);
189 if (OF_getprop(input, "clock-frequency", &di->bas.rclk,
192 if (OF_getprop(input, "current-speed", &di->baudrate,
195 OF_getprop(input, "reg-shift", &di->bas.regshft,