Lines Matching refs:result
124 int result; in _dump_port_params() local
129 result = lv1_get_virtual_uart_param(port_number, i, &value); in _dump_port_params()
131 if (result) { in _dump_port_params()
133 port_number, strings[i], ps3_result(result)); in _dump_port_params()
145 int result; in ps3_vuart_get_triggers() local
150 result = lv1_get_virtual_uart_param(dev->port_number, in ps3_vuart_get_triggers()
154 if (result) { in ps3_vuart_get_triggers()
156 __func__, __LINE__, ps3_result(result)); in ps3_vuart_get_triggers()
157 return result; in ps3_vuart_get_triggers()
160 result = lv1_get_virtual_uart_param(dev->port_number, in ps3_vuart_get_triggers()
163 if (result) { in ps3_vuart_get_triggers()
165 __func__, __LINE__, ps3_result(result)); in ps3_vuart_get_triggers()
166 return result; in ps3_vuart_get_triggers()
169 result = lv1_get_virtual_uart_param(dev->port_number, in ps3_vuart_get_triggers()
172 if (result) { in ps3_vuart_get_triggers()
174 __func__, __LINE__, ps3_result(result)); in ps3_vuart_get_triggers()
175 return result; in ps3_vuart_get_triggers()
183 return result; in ps3_vuart_get_triggers()
189 int result; in ps3_vuart_set_triggers() local
192 result = lv1_set_virtual_uart_param(dev->port_number, in ps3_vuart_set_triggers()
195 if (result) { in ps3_vuart_set_triggers()
197 __func__, __LINE__, ps3_result(result)); in ps3_vuart_set_triggers()
198 return result; in ps3_vuart_set_triggers()
201 result = lv1_get_virtual_uart_param(dev->port_number, in ps3_vuart_set_triggers()
204 if (result) { in ps3_vuart_set_triggers()
206 __func__, __LINE__, ps3_result(result)); in ps3_vuart_set_triggers()
207 return result; in ps3_vuart_set_triggers()
210 result = lv1_set_virtual_uart_param(dev->port_number, in ps3_vuart_set_triggers()
213 if (result) { in ps3_vuart_set_triggers()
215 __func__, __LINE__, ps3_result(result)); in ps3_vuart_set_triggers()
216 return result; in ps3_vuart_set_triggers()
222 return result; in ps3_vuart_set_triggers()
228 int result; in ps3_vuart_get_rx_bytes_waiting() local
230 result = lv1_get_virtual_uart_param(dev->port_number, in ps3_vuart_get_rx_bytes_waiting()
233 if (result) in ps3_vuart_get_rx_bytes_waiting()
235 __func__, __LINE__, ps3_result(result)); in ps3_vuart_get_rx_bytes_waiting()
239 return result; in ps3_vuart_get_rx_bytes_waiting()
251 int result; in ps3_vuart_set_interrupt_mask() local
258 result = lv1_set_virtual_uart_param(dev->port_number, in ps3_vuart_set_interrupt_mask()
261 if (result) in ps3_vuart_set_interrupt_mask()
263 __func__, __LINE__, ps3_result(result)); in ps3_vuart_set_interrupt_mask()
265 return result; in ps3_vuart_set_interrupt_mask()
271 int result; in ps3_vuart_get_interrupt_status() local
275 result = lv1_get_virtual_uart_param(dev->port_number, in ps3_vuart_get_interrupt_status()
278 if (result) in ps3_vuart_get_interrupt_status()
280 __func__, __LINE__, ps3_result(result)); in ps3_vuart_get_interrupt_status()
287 return result; in ps3_vuart_get_interrupt_status()
354 int result; in ps3_vuart_raw_write() local
357 result = lv1_write_virtual_uart(dev->port_number, in ps3_vuart_raw_write()
360 if (result) { in ps3_vuart_raw_write()
362 "%s\n", __func__, __LINE__, ps3_result(result)); in ps3_vuart_raw_write()
363 return result; in ps3_vuart_raw_write()
371 return result; in ps3_vuart_raw_write()
384 int result; in ps3_vuart_raw_read() local
389 result = lv1_read_virtual_uart(dev->port_number, in ps3_vuart_raw_read()
392 if (result) { in ps3_vuart_raw_read()
394 __func__, __LINE__, ps3_result(result)); in ps3_vuart_raw_read()
395 return result; in ps3_vuart_raw_read()
403 return result; in ps3_vuart_raw_read()
417 int result; in ps3_vuart_clear_rx_bytes() local
422 result = ps3_vuart_get_rx_bytes_waiting(dev, &bytes_waiting); in ps3_vuart_clear_rx_bytes()
424 BUG_ON(result); in ps3_vuart_clear_rx_bytes()
478 int result; in ps3_vuart_write() local
491 result = ps3_vuart_raw_write(dev, buf, bytes, &bytes_written); in ps3_vuart_write()
495 if (result) { in ps3_vuart_write()
499 return result; in ps3_vuart_write()
547 int result; in ps3_vuart_queue_rx_bytes() local
554 result = ps3_vuart_get_rx_bytes_waiting(dev, &bytes); in ps3_vuart_queue_rx_bytes()
555 BUG_ON(result); in ps3_vuart_queue_rx_bytes()
557 if (result) in ps3_vuart_queue_rx_bytes()
601 int result; in ps3_vuart_read() local
617 result = ps3_vuart_queue_rx_bytes(dev, &tmp); in ps3_vuart_read()
618 if (result || !tmp) { in ps3_vuart_read()
720 int result = 0; in ps3_vuart_handle_interrupt_tx() local
734 result = ps3_vuart_raw_write(dev, lb->head, lb->tail - lb->head, in ps3_vuart_handle_interrupt_tx()
737 if (result) { in ps3_vuart_handle_interrupt_tx()
767 return result; in ps3_vuart_handle_interrupt_tx()
780 int result; in ps3_vuart_handle_interrupt_rx() local
788 result = ps3_vuart_queue_rx_bytes(dev, &bytes); in ps3_vuart_handle_interrupt_rx()
790 if (result) { in ps3_vuart_handle_interrupt_rx()
792 return result; in ps3_vuart_handle_interrupt_rx()
804 return result; in ps3_vuart_handle_interrupt_rx()
825 int result; in ps3_vuart_handle_port_interrupt() local
829 result = ps3_vuart_get_interrupt_status(dev, &status); in ps3_vuart_handle_port_interrupt()
831 if (result) in ps3_vuart_handle_port_interrupt()
832 return result; in ps3_vuart_handle_port_interrupt()
839 result = ps3_vuart_handle_interrupt_disconnect(dev); in ps3_vuart_handle_port_interrupt()
840 if (result) in ps3_vuart_handle_port_interrupt()
846 result = ps3_vuart_handle_interrupt_tx(dev); in ps3_vuart_handle_port_interrupt()
847 if (result) in ps3_vuart_handle_port_interrupt()
853 result = ps3_vuart_handle_interrupt_rx(dev); in ps3_vuart_handle_port_interrupt()
854 if (result) in ps3_vuart_handle_port_interrupt()
904 int result; in ps3_vuart_bus_interrupt_get() local
920 result = -ENOMEM; in ps3_vuart_bus_interrupt_get()
924 result = ps3_vuart_irq_setup(PS3_BINDING_CPU_ANY, vuart_bus_priv.bmp, in ps3_vuart_bus_interrupt_get()
927 if (result) { in ps3_vuart_bus_interrupt_get()
929 __func__, __LINE__, result); in ps3_vuart_bus_interrupt_get()
930 result = -EPERM; in ps3_vuart_bus_interrupt_get()
934 result = request_irq(vuart_bus_priv.virq, ps3_vuart_irq_handler, in ps3_vuart_bus_interrupt_get()
937 if (result) { in ps3_vuart_bus_interrupt_get()
939 __func__, __LINE__, result); in ps3_vuart_bus_interrupt_get()
944 return result; in ps3_vuart_bus_interrupt_get()
955 return result; in ps3_vuart_bus_interrupt_get()
983 int result; in ps3_vuart_probe() local
1002 result = ps3_vuart_bus_interrupt_get(); in ps3_vuart_probe()
1004 if (result) in ps3_vuart_probe()
1010 result = -EBUSY; in ps3_vuart_probe()
1022 result = -ENOMEM; in ps3_vuart_probe()
1047 result = drv->probe(dev); in ps3_vuart_probe()
1049 result = 0; in ps3_vuart_probe()
1054 if (result) { in ps3_vuart_probe()
1062 return result; in ps3_vuart_probe()
1075 return result; in ps3_vuart_probe()
1223 int result; in ps3_vuart_port_driver_register() local
1234 result = ps3_system_bus_driver_register(&drv->core); in ps3_vuart_port_driver_register()
1235 return result; in ps3_vuart_port_driver_register()