Lines Matching refs:status

295 	int status;  in ti_startup()  local
320 status = ti_download_firmware(tdev); in ti_startup()
322 if (status != 0) in ti_startup()
331 status = -ENODEV; in ti_startup()
337 status = usb_driver_set_configuration(dev, TI_ACTIVE_CONFIG); in ti_startup()
338 status = status ? status : -ENODEV; in ti_startup()
347 return status; in ti_startup()
400 int status; in ti_open() local
426 status = -EINVAL; in ti_open()
430 status = usb_submit_urb(urb, GFP_KERNEL); in ti_open()
431 if (status) { in ti_open()
432 dev_err(&port->dev, "%s - submit interrupt urb failed, %d\n", __func__, status); in ti_open()
441 status = ti_command_out_sync(tdev, TI_OPEN_PORT, in ti_open()
443 if (status) { in ti_open()
445 __func__, status); in ti_open()
450 status = ti_command_out_sync(tdev, TI_START_PORT, in ti_open()
452 if (status) { in ti_open()
454 __func__, status); in ti_open()
459 status = ti_command_out_sync(tdev, TI_PURGE_PORT, in ti_open()
461 if (status) { in ti_open()
463 __func__, status); in ti_open()
466 status = ti_command_out_sync(tdev, TI_PURGE_PORT, in ti_open()
468 if (status) { in ti_open()
470 __func__, status); in ti_open()
483 status = ti_command_out_sync(tdev, TI_OPEN_PORT, in ti_open()
485 if (status) { in ti_open()
487 __func__, status); in ti_open()
492 status = ti_command_out_sync(tdev, TI_START_PORT, in ti_open()
494 if (status) { in ti_open()
496 __func__, status); in ti_open()
505 status = -EINVAL; in ti_open()
510 status = usb_submit_urb(urb, GFP_KERNEL); in ti_open()
511 if (status) { in ti_open()
513 __func__, status); in ti_open()
527 dev_dbg(&port->dev, "%s - exit %d\n", __func__, status); in ti_open()
528 return status; in ti_open()
537 int status; in ti_close() local
558 status = ti_command_out_sync(tdev, TI_CLOSE_PORT, in ti_close()
560 if (status) in ti_close()
563 , __func__, status); in ti_close()
667 int status; in ti_unthrottle() local
673 status = ti_restart_read(tport, tty); in ti_unthrottle()
674 if (status) in ti_unthrottle()
676 __func__, status); in ti_unthrottle()
710 int status; in ti_set_termios() local
815 status = ti_command_out_sync(tport->tp_tdev, TI_SET_CONFIG, in ti_set_termios()
818 if (status) in ti_set_termios()
820 __func__, port_number, status); in ti_set_termios()
827 status = ti_set_mcr(tport, mcr); in ti_set_termios()
828 if (status) in ti_set_termios()
831 __func__, port_number, status); in ti_set_termios()
905 int status; in ti_break() local
912 status = ti_write_byte(port, tport->tp_tdev, in ti_break()
916 if (status) in ti_break()
917 dev_dbg(&port->dev, "%s - error setting break, %d\n", __func__, status); in ti_break()
932 int status = urb->status; in ti_interrupt_callback() local
936 switch (status) { in ti_interrupt_callback()
942 dev_dbg(dev, "%s - urb shutting down, %d\n", __func__, status); in ti_interrupt_callback()
946 dev_err(dev, "%s - nonzero urb status, %d\n", __func__, status); in ti_interrupt_callback()
1010 int status = urb->status; in ti_bulk_in_callback() local
1013 switch (status) { in ti_bulk_in_callback()
1019 dev_dbg(dev, "%s - urb shutting down, %d\n", __func__, status); in ti_bulk_in_callback()
1024 __func__, status); in ti_bulk_in_callback()
1028 if (status == -EPIPE) in ti_bulk_in_callback()
1031 if (status) { in ti_bulk_in_callback()
1069 int status = urb->status; in ti_bulk_out_callback() local
1073 switch (status) { in ti_bulk_out_callback()
1079 dev_dbg(&port->dev, "%s - urb shutting down, %d\n", __func__, status); in ti_bulk_out_callback()
1084 __func__, status); in ti_bulk_out_callback()
1169 int status; in ti_set_mcr() local
1171 status = ti_write_byte(tport->tp_port, tport->tp_tdev, in ti_set_mcr()
1176 if (!status) in ti_set_mcr()
1180 return status; in ti_set_mcr()
1186 int size, status; in ti_get_lsr() local
1197 status = ti_command_in_sync(tdev, TI_GET_PORT_STATUS, in ti_get_lsr()
1199 if (status) { in ti_get_lsr()
1202 __func__, status); in ti_get_lsr()
1212 return status; in ti_get_lsr()
1318 int status = 0; in ti_restart_read() local
1328 status = usb_submit_urb(urb, GFP_KERNEL); in ti_restart_read()
1334 return status; in ti_restart_read()
1341 int status; in ti_command_out_sync() local
1343 status = usb_control_msg(tdev->td_serial->dev, in ti_command_out_sync()
1348 if (status == size) in ti_command_out_sync()
1349 status = 0; in ti_command_out_sync()
1351 if (status > 0) in ti_command_out_sync()
1352 status = -ECOMM; in ti_command_out_sync()
1354 return status; in ti_command_out_sync()
1361 int status; in ti_command_in_sync() local
1363 status = usb_control_msg(tdev->td_serial->dev, in ti_command_in_sync()
1368 if (status == size) in ti_command_in_sync()
1369 status = 0; in ti_command_in_sync()
1371 if (status > 0) in ti_command_in_sync()
1372 status = -ECOMM; in ti_command_in_sync()
1374 return status; in ti_command_in_sync()
1382 int status; in ti_write_byte() local
1402 status = ti_command_out_sync(tdev, TI_WRITE_DATA, TI_RAM_PORT, 0, in ti_write_byte()
1405 if (status < 0) in ti_write_byte()
1406 dev_err(&port->dev, "%s - failed, %d\n", __func__, status); in ti_write_byte()
1410 return status; in ti_write_byte()
1420 int status = 0; in ti_do_download() local
1434 status = usb_bulk_msg(dev, pipe, buffer + pos, len, in ti_do_download()
1436 if (status) in ti_do_download()
1439 return status; in ti_do_download()
1444 int status; in ti_download_firmware() local
1457 status = request_firmware(&fw_p, buf, &dev->dev); in ti_download_firmware()
1459 if (status != 0) { in ti_download_firmware()
1488 status = request_firmware(&fw_p, buf, &dev->dev); in ti_download_firmware()
1490 if (status) { in ti_download_firmware()
1505 status = ti_do_download(dev, pipe, buffer, fw_p->size); in ti_download_firmware()
1508 status = -ENOMEM; in ti_download_firmware()
1511 if (status) { in ti_download_firmware()
1513 __func__, status); in ti_download_firmware()
1514 return status; in ti_download_firmware()