Lines Matching refs:status
263 int status; in ti_vread_sync() local
265 status = usb_control_msg(dev, usb_rcvctrlpipe(dev, 0), request, in ti_vread_sync()
268 if (status < 0) in ti_vread_sync()
269 return status; in ti_vread_sync()
270 if (status != size) { in ti_vread_sync()
272 __func__, size, status); in ti_vread_sync()
281 int status; in ti_vsend_sync() local
283 status = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), request, in ti_vsend_sync()
286 if (status < 0) in ti_vsend_sync()
287 return status; in ti_vsend_sync()
288 if (status != size) { in ti_vsend_sync()
290 __func__, size, status); in ti_vsend_sync()
330 int status = 0; in read_download_mem() local
354 status = ti_vread_sync(dev, UMPC_MEMORY_READ, in read_download_mem()
359 if (status) { in read_download_mem()
360 dev_dbg(&dev->dev, "%s - ERROR %x\n", __func__, status); in read_download_mem()
361 return status; in read_download_mem()
373 return status; in read_download_mem()
387 int status = 0; in read_boot_mem() local
391 status = ti_vread_sync(serial->serial->dev, in read_boot_mem()
394 if (status) { in read_boot_mem()
395 dev_dbg(&serial->serial->dev->dev, "%s - ERROR %x\n", __func__, status); in read_boot_mem()
396 return status; in read_boot_mem()
406 return status; in read_boot_mem()
413 int status = 0; in write_boot_mem() local
423 status = read_boot_mem(serial, 0, 1, temp); in write_boot_mem()
425 if (status) in write_boot_mem()
426 return status; in write_boot_mem()
430 status = ti_vsend_sync(serial->serial->dev, UMPC_MEMORY_WRITE, in write_boot_mem()
433 if (status) in write_boot_mem()
434 return status; in write_boot_mem()
440 return status; in write_boot_mem()
448 int status = 0; in write_i2c_mem() local
472 status = ti_vsend_sync(serial->serial->dev, UMPC_MEMORY_WRITE, in write_i2c_mem()
475 if (status) { in write_i2c_mem()
476 dev_dbg(dev, "%s - ERROR %d\n", __func__, status); in write_i2c_mem()
477 return status; in write_i2c_mem()
505 status = ti_vsend_sync(serial->serial->dev, UMPC_MEMORY_WRITE, in write_i2c_mem()
508 if (status) { in write_i2c_mem()
509 dev_err(dev, "%s - ERROR %d\n", __func__, status); in write_i2c_mem()
510 return status; in write_i2c_mem()
517 return status; in write_i2c_mem()
529 int status; in tx_active() local
548 status = read_ram(port->port->serial->dev, port->dma_address, in tx_active()
550 if (status) in tx_active()
556 status = read_ram(port->port->serial->dev, in tx_active()
559 if (status) in tx_active()
604 int status; in read_rom() local
607 status = read_download_mem(serial->serial->dev, in read_rom()
613 status = read_boot_mem(serial, start_address, length, in read_rom()
616 return status; in read_rom()
637 int status; in get_descriptor_addr() local
642 status = read_rom(serial, in get_descriptor_addr()
646 if (status) in get_descriptor_addr()
680 int status = 0; in check_i2c_image() local
697 status = read_rom(serial, 0, 1, buffer); in check_i2c_image()
698 if (status) in check_i2c_image()
703 status = -ENODEV; in check_i2c_image()
709 status = read_rom(serial, in check_i2c_image()
713 if (status) in check_i2c_image()
718 status = -ENODEV; in check_i2c_image()
730 status = read_rom(serial, start_address + in check_i2c_image()
734 if (status) in check_i2c_image()
737 status = valid_csum(rom_desc, buffer); in check_i2c_image()
738 if (status) in check_i2c_image()
749 status = -ENODEV; in check_i2c_image()
754 return status; in check_i2c_image()
759 int status; in get_manuf_info() local
774 status = -ENODEV; in get_manuf_info()
779 status = read_rom(serial, start_address+sizeof(struct ti_i2c_desc), in get_manuf_info()
781 if (status) in get_manuf_info()
784 status = valid_csum(rom_desc, buffer); in get_manuf_info()
796 return status; in get_manuf_info()
871 int status; in i2c_type_bootmode() local
879 status = ti_vread_sync(serial->serial->dev, UMPC_MEMORY_READ, in i2c_type_bootmode()
881 if (status) in i2c_type_bootmode()
882 dev_dbg(dev, "%s - read 2 status error = %d\n", __func__, status); in i2c_type_bootmode()
885 if ((!status) && (*data == UMP5152 || *data == UMP3410)) { in i2c_type_bootmode()
892 status = ti_vread_sync(serial->serial->dev, UMPC_MEMORY_READ, in i2c_type_bootmode()
894 if (status) in i2c_type_bootmode()
895 dev_dbg(dev, "%s - read 3 status error = %d\n", __func__, status); in i2c_type_bootmode()
898 if ((!status) && (*data == UMP5152 || *data == UMP3410)) { in i2c_type_bootmode()
906 status = -ENODEV; in i2c_type_bootmode()
909 return status; in i2c_type_bootmode()
915 int status; in bulk_xfer() local
917 status = usb_bulk_msg(serial->dev, in bulk_xfer()
921 return status; in bulk_xfer()
928 int status = 0; in download_code() local
941 status = bulk_xfer(serial->serial, &image[pos], in download_code()
943 if (status) in download_code()
949 return status; in download_code()
1007 int status = 0; in download_fw() local
1013 status = request_firmware(&fw, fw_name, dev); in download_fw()
1014 if (status) { in download_fw()
1016 fw_name, status); in download_fw()
1017 return status; in download_fw()
1021 status = -EINVAL; in download_fw()
1041 status = choose_config(serial->serial->dev); in download_fw()
1042 if (status) in download_fw()
1048 status = -ENODEV; in download_fw()
1059 status = do_download_mode(serial, fw); in download_fw()
1063 status = do_boot_mode(serial, fw); in download_fw()
1068 return status; in download_fw()
1075 int status = 0; in do_download_mode() local
1085 status = check_i2c_image(serial); in do_download_mode()
1086 if (status) { in do_download_mode()
1088 return status; in do_download_mode()
1099 status = get_manuf_info(serial, (__u8 *)ti_manuf_desc); in do_download_mode()
1100 if (status) { in do_download_mode()
1102 return status; in do_download_mode()
1141 status = read_rom(serial, start_address + in do_download_mode()
1145 if (status) { in do_download_mode()
1149 return status; in do_download_mode()
1204 status = write_rom(serial, start_address, in do_download_mode()
1206 if (status) { in do_download_mode()
1211 return status; in do_download_mode()
1219 status = read_rom(serial, in do_download_mode()
1223 if (status) { in do_download_mode()
1228 return status; in do_download_mode()
1244 status = ti_vsend_sync(serial->serial->dev, in do_download_mode()
1250 __func__, status); in do_download_mode()
1302 status = build_i2c_fw_hdr(header, fw); in do_download_mode()
1303 if (status) { in do_download_mode()
1315 status = write_rom(serial, in do_download_mode()
1319 if (status) { in do_download_mode()
1331 status = read_rom(serial, start_address, in do_download_mode()
1334 if (status) { in do_download_mode()
1341 return status; in do_download_mode()
1359 status = ti_vsend_sync(serial->serial->dev, in do_download_mode()
1365 status); in do_download_mode()
1366 if (status) { in do_download_mode()
1372 return status; in do_download_mode()
1387 int status = 0; in do_boot_mode() local
1394 status = config_boot_dev(serial->serial->dev); in do_boot_mode()
1395 if (status) in do_boot_mode()
1396 return status; in do_boot_mode()
1429 status = get_manuf_info(serial, (__u8 *)ti_manuf_desc); in do_boot_mode()
1430 if (status) { in do_boot_mode()
1486 status = download_code(serial, buffer, buffer_size); in do_boot_mode()
1490 if (status) { in do_boot_mode()
1492 return status; in do_boot_mode()
1523 int status = 0; in restore_mcr() local
1527 status = ti_do_config(port, UMPC_SET_CLR_DTR, mcr & MCR_DTR); in restore_mcr()
1528 if (status) in restore_mcr()
1529 return status; in restore_mcr()
1530 status = ti_do_config(port, UMPC_SET_CLR_RTS, mcr & MCR_RTS); in restore_mcr()
1531 if (status) in restore_mcr()
1532 return status; in restore_mcr()
1639 int status = urb->status; in edge_interrupt_callback() local
1641 switch (status) { in edge_interrupt_callback()
1650 __func__, status); in edge_interrupt_callback()
1654 "%d\n", __func__, status); in edge_interrupt_callback()
1737 int status = urb->status; in edge_bulk_in_callback() local
1739 switch (status) { in edge_bulk_in_callback()
1747 dev_dbg(&urb->dev->dev, "%s - urb shutting down with status: %d\n", __func__, status); in edge_bulk_in_callback()
1750 dev_err(&urb->dev->dev, "%s - nonzero read bulk status received: %d\n", __func__, status); in edge_bulk_in_callback()
1753 if (status == -EPIPE) in edge_bulk_in_callback()
1756 if (status) { in edge_bulk_in_callback()
1813 int status = urb->status; in edge_bulk_out_callback() local
1818 switch (status) { in edge_bulk_out_callback()
1827 __func__, status); in edge_bulk_out_callback()
1831 "received: %d\n", __func__, status); in edge_bulk_out_callback()
1847 int status; in edge_open() local
1859 status = ti_do_config(edge_port, UMPC_SET_CLR_LOOPBACK, 0); in edge_open()
1860 if (status) { in edge_open()
1863 __func__, status); in edge_open()
1864 return status; in edge_open()
1887 status = send_cmd(dev, UMPC_OPEN_PORT, in edge_open()
1889 if (status) { in edge_open()
1891 __func__, status); in edge_open()
1892 return status; in edge_open()
1896 status = send_cmd(dev, UMPC_START_PORT, in edge_open()
1898 if (status) { in edge_open()
1900 __func__, status); in edge_open()
1901 return status; in edge_open()
1905 status = purge_port(port, UMP_PORT_DIR_OUT | UMP_PORT_DIR_IN); in edge_open()
1906 if (status) { in edge_open()
1909 __func__, status); in edge_open()
1910 return status; in edge_open()
1914 status = ti_vread_sync(dev, UMPC_READ_MSR, 0, in edge_open()
1917 if (status) { in edge_open()
1919 __func__, status); in edge_open()
1920 return status; in edge_open()
1936 status = usb_submit_urb(urb, GFP_KERNEL); in edge_open()
1937 if (status) { in edge_open()
1940 __func__, status); in edge_open()
1956 status = usb_submit_urb(urb, GFP_KERNEL); in edge_open()
1957 if (status) { in edge_open()
1960 __func__, status); in edge_open()
1973 return status; in edge_open()
2143 int status; in edge_throttle() local
2151 status = edge_write(tty, port, &stop_char, 1); in edge_throttle()
2152 if (status <= 0) { in edge_throttle()
2153 dev_err(&port->dev, "%s - failed to write stop character, %d\n", __func__, status); in edge_throttle()
2170 int status; in edge_unthrottle() local
2178 status = edge_write(tty, port, &start_char, 1); in edge_unthrottle()
2179 if (status <= 0) { in edge_unthrottle()
2180 dev_err(&port->dev, "%s - failed to write start character, %d\n", __func__, status); in edge_unthrottle()
2188 status = restart_read(edge_port); in edge_unthrottle()
2189 if (status) in edge_unthrottle()
2192 __func__, status); in edge_unthrottle()
2213 int status = 0; in restart_read() local
2220 status = usb_submit_urb(urb, GFP_ATOMIC); in restart_read()
2227 return status; in restart_read()
2237 int status; in change_port_settings() local
2364 status = send_cmd(edge_port->port->serial->dev, UMPC_SET_CONFIG, in change_port_settings()
2367 if (status) in change_port_settings()
2369 __func__, status); in change_port_settings()
2468 int status; in edge_break() local
2473 status = ti_do_config(edge_port, UMPC_SET_CLR_BREAK, bv); in edge_break()
2474 if (status) in edge_break()
2476 __func__, status); in edge_break()
2531 int status; in edge_startup() local
2544 status = download_fw(edge_serial); in edge_startup()
2545 if (status < 0) { in edge_startup()
2547 return status; in edge_startup()
2550 if (status > 0) in edge_startup()