Lines Matching refs:status

216 	int status;  in ti_vread_sync()  local
218 status = usb_control_msg(dev, usb_rcvctrlpipe(dev, 0), request, in ti_vread_sync()
221 if (status < 0) in ti_vread_sync()
222 return status; in ti_vread_sync()
223 if (status != size) { in ti_vread_sync()
225 __func__, size, status); in ti_vread_sync()
234 int status; in ti_vsend_sync() local
236 status = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), request, in ti_vsend_sync()
239 if (status < 0) in ti_vsend_sync()
240 return status; in ti_vsend_sync()
241 if (status != size) { in ti_vsend_sync()
243 __func__, size, status); in ti_vsend_sync()
282 int status = 0; in read_download_mem() local
305 status = ti_vread_sync(dev, UMPC_MEMORY_READ, in read_download_mem()
310 if (status) { in read_download_mem()
311 dev_dbg(&dev->dev, "%s - ERROR %x\n", __func__, status); in read_download_mem()
312 return status; in read_download_mem()
324 return status; in read_download_mem()
338 int status = 0; in read_boot_mem() local
342 status = ti_vread_sync(serial->serial->dev, in read_boot_mem()
345 if (status) { in read_boot_mem()
346 dev_dbg(&serial->serial->dev->dev, "%s - ERROR %x\n", __func__, status); in read_boot_mem()
347 return status; in read_boot_mem()
357 return status; in read_boot_mem()
364 int status = 0; in write_boot_mem() local
374 status = read_boot_mem(serial, 0, 1, temp); in write_boot_mem()
376 if (status) in write_boot_mem()
377 return status; in write_boot_mem()
381 status = ti_vsend_sync(serial->serial->dev, in write_boot_mem()
384 if (status) in write_boot_mem()
385 return status; in write_boot_mem()
391 return status; in write_boot_mem()
400 int status = 0; in write_i2c_mem() local
424 status = ti_vsend_sync(serial->serial->dev, in write_i2c_mem()
428 if (status) { in write_i2c_mem()
429 dev_dbg(dev, "%s - ERROR %d\n", __func__, status); in write_i2c_mem()
430 return status; in write_i2c_mem()
456 status = ti_vsend_sync(serial->serial->dev, UMPC_MEMORY_WRITE, in write_i2c_mem()
460 if (status) { in write_i2c_mem()
461 dev_err(dev, "%s - ERROR %d\n", __func__, status); in write_i2c_mem()
462 return status; in write_i2c_mem()
469 return status; in write_i2c_mem()
480 int status; in tx_active() local
497 status = read_ram(port->port->serial->dev, port->dma_address, in tx_active()
499 if (status) in tx_active()
505 status = read_ram(port->port->serial->dev, in tx_active()
508 if (status) in tx_active()
553 int status; in read_rom() local
556 status = read_download_mem(serial->serial->dev, in read_rom()
562 status = read_boot_mem(serial, start_address, length, in read_rom()
565 return status; in read_rom()
588 int status; in get_descriptor_addr() local
593 status = read_rom(serial, in get_descriptor_addr()
597 if (status) in get_descriptor_addr()
631 int status = 0; in check_i2c_image() local
648 status = read_rom(serial, 0, 1, buffer); in check_i2c_image()
649 if (status) in check_i2c_image()
654 status = -ENODEV; in check_i2c_image()
660 status = read_rom(serial, in check_i2c_image()
664 if (status) in check_i2c_image()
669 status = -ENODEV; in check_i2c_image()
681 status = read_rom(serial, start_address + in check_i2c_image()
685 if (status) in check_i2c_image()
688 status = valid_csum(rom_desc, buffer); in check_i2c_image()
689 if (status) in check_i2c_image()
700 status = -ENODEV; in check_i2c_image()
705 return status; in check_i2c_image()
710 int status; in get_manuf_info() local
725 status = -ENODEV; in get_manuf_info()
730 status = read_rom(serial, start_address+sizeof(struct ti_i2c_desc), in get_manuf_info()
732 if (status) in get_manuf_info()
735 status = valid_csum(rom_desc, buffer); in get_manuf_info()
747 return status; in get_manuf_info()
836 int status; in i2c_type_bootmode() local
844 status = ti_vread_sync(serial->serial->dev, UMPC_MEMORY_READ, in i2c_type_bootmode()
846 if (status) in i2c_type_bootmode()
847 dev_dbg(dev, "%s - read 2 status error = %d\n", __func__, status); in i2c_type_bootmode()
850 if ((!status) && (*data == UMP5152 || *data == UMP3410)) { in i2c_type_bootmode()
857 status = ti_vread_sync(serial->serial->dev, UMPC_MEMORY_READ, in i2c_type_bootmode()
859 if (status) in i2c_type_bootmode()
860 dev_dbg(dev, "%s - read 3 status error = %d\n", __func__, status); in i2c_type_bootmode()
863 if ((!status) && (*data == UMP5152 || *data == UMP3410)) { in i2c_type_bootmode()
871 status = -ENODEV; in i2c_type_bootmode()
874 return status; in i2c_type_bootmode()
880 int status; in bulk_xfer() local
882 status = usb_bulk_msg(serial->dev, in bulk_xfer()
886 return status; in bulk_xfer()
893 int status = 0; in download_code() local
906 status = bulk_xfer(serial->serial, &image[pos], in download_code()
908 if (status) in download_code()
914 return status; in download_code()
937 int status = 0; in download_fw() local
953 status = choose_config(serial->serial->dev); in download_fw()
954 if (status) in download_fw()
955 return status; in download_fw()
982 status = check_i2c_image(serial); in download_fw()
983 if (status) { in download_fw()
985 return status; in download_fw()
995 status = get_manuf_info(serial, (__u8 *)ti_manuf_desc); in download_fw()
996 if (status) { in download_fw()
998 return status; in download_fw()
1035 status = read_rom(serial, start_address + in download_fw()
1039 if (status) { in download_fw()
1043 return status; in download_fw()
1092 status = write_rom(serial, start_address, in download_fw()
1094 if (status) { in download_fw()
1099 return status; in download_fw()
1106 status = read_rom(serial, in download_fw()
1110 if (status) { in download_fw()
1115 return status; in download_fw()
1130 status = ti_vsend_sync(serial->serial->dev, in download_fw()
1134 dev_dbg(dev, "%s - HARDWARE RESET return %d\n", __func__, status); in download_fw()
1180 status = build_i2c_fw_hdr(header, dev); in download_fw()
1181 if (status) { in download_fw()
1191 status = write_rom(serial, in download_fw()
1195 if (status) { in download_fw()
1205 status = read_rom(serial, start_address, in download_fw()
1208 if (status) { in download_fw()
1214 return status; in download_fw()
1231 status = ti_vsend_sync(serial->serial->dev, in download_fw()
1234 dev_dbg(dev, "%s - Update complete 0x%x\n", __func__, status); in download_fw()
1235 if (status) { in download_fw()
1241 return status; in download_fw()
1257 status = config_boot_dev(serial->serial->dev); in download_fw()
1258 if (status) in download_fw()
1259 return status; in download_fw()
1292 status = get_manuf_info(serial, (__u8 *)ti_manuf_desc); in download_fw()
1293 if (status) { in download_fw()
1356 status = download_code(serial, buffer, buffer_size); in download_fw()
1360 if (status) { in download_fw()
1362 return status; in download_fw()
1396 int status = 0; in restore_mcr() local
1400 status = ti_do_config(port, UMPC_SET_CLR_DTR, mcr & MCR_DTR); in restore_mcr()
1401 if (status) in restore_mcr()
1402 return status; in restore_mcr()
1403 status = ti_do_config(port, UMPC_SET_CLR_RTS, mcr & MCR_RTS); in restore_mcr()
1404 if (status) in restore_mcr()
1405 return status; in restore_mcr()
1513 int status = urb->status; in edge_interrupt_callback() local
1515 switch (status) { in edge_interrupt_callback()
1524 __func__, status); in edge_interrupt_callback()
1528 "%d\n", __func__, status); in edge_interrupt_callback()
1603 int status = urb->status; in edge_bulk_in_callback() local
1605 switch (status) { in edge_bulk_in_callback()
1613 dev_dbg(&urb->dev->dev, "%s - urb shutting down with status: %d\n", __func__, status); in edge_bulk_in_callback()
1616 dev_err(&urb->dev->dev, "%s - nonzero read bulk status received: %d\n", __func__, status); in edge_bulk_in_callback()
1619 if (status == -EPIPE) in edge_bulk_in_callback()
1622 if (status) { in edge_bulk_in_callback()
1679 int status = urb->status; in edge_bulk_out_callback() local
1684 switch (status) { in edge_bulk_out_callback()
1693 __func__, status); in edge_bulk_out_callback()
1697 "received: %d\n", __func__, status); in edge_bulk_out_callback()
1713 int status; in edge_open() local
1725 status = ti_do_config(edge_port, UMPC_SET_CLR_LOOPBACK, 0); in edge_open()
1726 if (status) { in edge_open()
1729 __func__, status); in edge_open()
1730 return status; in edge_open()
1753 status = send_cmd(dev, UMPC_OPEN_PORT, in edge_open()
1755 if (status) { in edge_open()
1757 __func__, status); in edge_open()
1758 return status; in edge_open()
1762 status = send_cmd(dev, UMPC_START_PORT, in edge_open()
1764 if (status) { in edge_open()
1766 __func__, status); in edge_open()
1767 return status; in edge_open()
1771 status = purge_port(port, UMP_PORT_DIR_OUT | UMP_PORT_DIR_IN); in edge_open()
1772 if (status) { in edge_open()
1775 __func__, status); in edge_open()
1776 return status; in edge_open()
1780 status = ti_vread_sync(dev, UMPC_READ_MSR, 0, in edge_open()
1783 if (status) { in edge_open()
1785 __func__, status); in edge_open()
1786 return status; in edge_open()
1805 status = -EINVAL; in edge_open()
1809 status = usb_submit_urb(urb, GFP_KERNEL); in edge_open()
1810 if (status) { in edge_open()
1813 __func__, status); in edge_open()
1830 status = -EINVAL; in edge_open()
1835 status = usb_submit_urb(urb, GFP_KERNEL); in edge_open()
1836 if (status) { in edge_open()
1839 __func__, status); in edge_open()
1852 return status; in edge_open()
2018 int status; in edge_throttle() local
2026 status = edge_write(tty, port, &stop_char, 1); in edge_throttle()
2027 if (status <= 0) { in edge_throttle()
2028 dev_err(&port->dev, "%s - failed to write stop character, %d\n", __func__, status); in edge_throttle()
2043 int status; in edge_unthrottle() local
2051 status = edge_write(tty, port, &start_char, 1); in edge_unthrottle()
2052 if (status <= 0) { in edge_unthrottle()
2053 dev_err(&port->dev, "%s - failed to write start character, %d\n", __func__, status); in edge_unthrottle()
2059 status = restart_read(edge_port); in edge_unthrottle()
2060 if (status) in edge_unthrottle()
2063 __func__, status); in edge_unthrottle()
2084 int status = 0; in restart_read() local
2091 status = usb_submit_urb(urb, GFP_ATOMIC); in restart_read()
2098 return status; in restart_read()
2108 int status; in change_port_settings() local
2230 status = send_cmd(edge_port->port->serial->dev, UMPC_SET_CONFIG, in change_port_settings()
2233 if (status) in change_port_settings()
2235 __func__, status); in change_port_settings()
2365 int status; in edge_break() local
2370 status = ti_do_config(edge_port, UMPC_SET_CLR_BREAK, bv); in edge_break()
2371 if (status) in edge_break()
2373 __func__, status); in edge_break()
2379 int status; in edge_startup() local
2390 status = download_fw(edge_serial); in edge_startup()
2391 if (status) { in edge_startup()
2393 return status; in edge_startup()