Lines Matching refs:status

265 	int status;  in ti_vread_sync()  local
267 status = usb_control_msg(dev, usb_rcvctrlpipe(dev, 0), request, in ti_vread_sync()
270 if (status < 0) in ti_vread_sync()
271 return status; in ti_vread_sync()
272 if (status != size) { in ti_vread_sync()
274 __func__, size, status); in ti_vread_sync()
283 int status; in ti_vsend_sync() local
285 status = usb_control_msg(dev, usb_sndctrlpipe(dev, 0), request, in ti_vsend_sync()
288 if (status < 0) in ti_vsend_sync()
289 return status; in ti_vsend_sync()
290 if (status != size) { in ti_vsend_sync()
292 __func__, size, status); in ti_vsend_sync()
332 int status = 0; in read_download_mem() local
356 status = ti_vread_sync(dev, UMPC_MEMORY_READ, in read_download_mem()
361 if (status) { in read_download_mem()
362 dev_dbg(&dev->dev, "%s - ERROR %x\n", __func__, status); in read_download_mem()
363 return status; in read_download_mem()
375 return status; in read_download_mem()
389 int status = 0; in read_boot_mem() local
393 status = ti_vread_sync(serial->serial->dev, in read_boot_mem()
396 if (status) { in read_boot_mem()
397 dev_dbg(&serial->serial->dev->dev, "%s - ERROR %x\n", __func__, status); in read_boot_mem()
398 return status; in read_boot_mem()
408 return status; in read_boot_mem()
415 int status = 0; in write_boot_mem() local
425 status = read_boot_mem(serial, 0, 1, temp); in write_boot_mem()
427 if (status) in write_boot_mem()
428 return status; in write_boot_mem()
432 status = ti_vsend_sync(serial->serial->dev, UMPC_MEMORY_WRITE, in write_boot_mem()
435 if (status) in write_boot_mem()
436 return status; in write_boot_mem()
442 return status; in write_boot_mem()
450 int status = 0; in write_i2c_mem() local
474 status = ti_vsend_sync(serial->serial->dev, UMPC_MEMORY_WRITE, in write_i2c_mem()
477 if (status) { in write_i2c_mem()
478 dev_dbg(dev, "%s - ERROR %d\n", __func__, status); in write_i2c_mem()
479 return status; in write_i2c_mem()
507 status = ti_vsend_sync(serial->serial->dev, UMPC_MEMORY_WRITE, in write_i2c_mem()
510 if (status) { in write_i2c_mem()
511 dev_err(dev, "%s - ERROR %d\n", __func__, status); in write_i2c_mem()
512 return status; in write_i2c_mem()
519 return status; in write_i2c_mem()
531 int status; in tx_active() local
550 status = read_ram(port->port->serial->dev, port->dma_address, in tx_active()
552 if (status) in tx_active()
558 status = read_ram(port->port->serial->dev, in tx_active()
561 if (status) in tx_active()
606 int status; in read_rom() local
609 status = read_download_mem(serial->serial->dev, in read_rom()
615 status = read_boot_mem(serial, start_address, length, in read_rom()
618 return status; in read_rom()
639 int status; in get_descriptor_addr() local
644 status = read_rom(serial, in get_descriptor_addr()
648 if (status) in get_descriptor_addr()
682 int status = 0; in check_i2c_image() local
699 status = read_rom(serial, 0, 1, buffer); in check_i2c_image()
700 if (status) in check_i2c_image()
705 status = -ENODEV; in check_i2c_image()
711 status = read_rom(serial, in check_i2c_image()
715 if (status) in check_i2c_image()
720 status = -ENODEV; in check_i2c_image()
732 status = read_rom(serial, start_address + in check_i2c_image()
736 if (status) in check_i2c_image()
739 status = valid_csum(rom_desc, buffer); in check_i2c_image()
740 if (status) in check_i2c_image()
751 status = -ENODEV; in check_i2c_image()
756 return status; in check_i2c_image()
761 int status; in get_manuf_info() local
776 status = -ENODEV; in get_manuf_info()
781 status = read_rom(serial, start_address+sizeof(struct ti_i2c_desc), in get_manuf_info()
783 if (status) in get_manuf_info()
786 status = valid_csum(rom_desc, buffer); in get_manuf_info()
798 return status; in get_manuf_info()
873 int status; in i2c_type_bootmode() local
881 status = ti_vread_sync(serial->serial->dev, UMPC_MEMORY_READ, in i2c_type_bootmode()
883 if (status) in i2c_type_bootmode()
884 dev_dbg(dev, "%s - read 2 status error = %d\n", __func__, status); in i2c_type_bootmode()
887 if ((!status) && (*data == UMP5152 || *data == UMP3410)) { in i2c_type_bootmode()
894 status = ti_vread_sync(serial->serial->dev, UMPC_MEMORY_READ, in i2c_type_bootmode()
896 if (status) in i2c_type_bootmode()
897 dev_dbg(dev, "%s - read 3 status error = %d\n", __func__, status); in i2c_type_bootmode()
900 if ((!status) && (*data == UMP5152 || *data == UMP3410)) { in i2c_type_bootmode()
908 status = -ENODEV; in i2c_type_bootmode()
911 return status; in i2c_type_bootmode()
917 int status; in bulk_xfer() local
919 status = usb_bulk_msg(serial->dev, in bulk_xfer()
923 return status; in bulk_xfer()
930 int status = 0; in download_code() local
943 status = bulk_xfer(serial->serial, &image[pos], in download_code()
945 if (status) in download_code()
951 return status; in download_code()
1009 int status = 0; in download_fw() local
1015 status = request_firmware(&fw, fw_name, dev); in download_fw()
1016 if (status) { in download_fw()
1018 fw_name, status); in download_fw()
1019 return status; in download_fw()
1023 status = -EINVAL; in download_fw()
1043 status = choose_config(serial->serial->dev); in download_fw()
1044 if (status) in download_fw()
1050 status = -ENODEV; in download_fw()
1061 status = do_download_mode(serial, fw); in download_fw()
1065 status = do_boot_mode(serial, fw); in download_fw()
1070 return status; in download_fw()
1077 int status = 0; in do_download_mode() local
1087 status = check_i2c_image(serial); in do_download_mode()
1088 if (status) { in do_download_mode()
1090 return status; in do_download_mode()
1101 status = get_manuf_info(serial, (__u8 *)ti_manuf_desc); in do_download_mode()
1102 if (status) { in do_download_mode()
1104 return status; in do_download_mode()
1143 status = read_rom(serial, start_address + in do_download_mode()
1147 if (status) { in do_download_mode()
1151 return status; in do_download_mode()
1206 status = write_rom(serial, start_address, in do_download_mode()
1208 if (status) { in do_download_mode()
1213 return status; in do_download_mode()
1221 status = read_rom(serial, in do_download_mode()
1225 if (status) { in do_download_mode()
1230 return status; in do_download_mode()
1246 status = ti_vsend_sync(serial->serial->dev, in do_download_mode()
1252 __func__, status); in do_download_mode()
1304 status = build_i2c_fw_hdr(header, fw); in do_download_mode()
1305 if (status) { in do_download_mode()
1317 status = write_rom(serial, in do_download_mode()
1321 if (status) { in do_download_mode()
1333 status = read_rom(serial, start_address, in do_download_mode()
1336 if (status) { in do_download_mode()
1343 return status; in do_download_mode()
1361 status = ti_vsend_sync(serial->serial->dev, in do_download_mode()
1367 status); in do_download_mode()
1368 if (status) { in do_download_mode()
1374 return status; in do_download_mode()
1389 int status = 0; in do_boot_mode() local
1396 status = config_boot_dev(serial->serial->dev); in do_boot_mode()
1397 if (status) in do_boot_mode()
1398 return status; in do_boot_mode()
1431 status = get_manuf_info(serial, (__u8 *)ti_manuf_desc); in do_boot_mode()
1432 if (status) { in do_boot_mode()
1488 status = download_code(serial, buffer, buffer_size); in do_boot_mode()
1492 if (status) { in do_boot_mode()
1494 return status; in do_boot_mode()
1526 int status = 0; in restore_mcr() local
1530 status = ti_do_config(port, UMPC_SET_CLR_DTR, mcr & MCR_DTR); in restore_mcr()
1531 if (status) in restore_mcr()
1532 return status; in restore_mcr()
1533 status = ti_do_config(port, UMPC_SET_CLR_RTS, mcr & MCR_RTS); in restore_mcr()
1534 if (status) in restore_mcr()
1535 return status; in restore_mcr()
1642 int status = urb->status; in edge_interrupt_callback() local
1644 switch (status) { in edge_interrupt_callback()
1653 __func__, status); in edge_interrupt_callback()
1657 "%d\n", __func__, status); in edge_interrupt_callback()
1733 int status = urb->status; in edge_bulk_in_callback() local
1735 switch (status) { in edge_bulk_in_callback()
1743 dev_dbg(&urb->dev->dev, "%s - urb shutting down with status: %d\n", __func__, status); in edge_bulk_in_callback()
1746 dev_err(&urb->dev->dev, "%s - nonzero read bulk status received: %d\n", __func__, status); in edge_bulk_in_callback()
1749 if (status == -EPIPE) in edge_bulk_in_callback()
1752 if (status) { in edge_bulk_in_callback()
1809 int status = urb->status; in edge_bulk_out_callback() local
1814 switch (status) { in edge_bulk_out_callback()
1823 __func__, status); in edge_bulk_out_callback()
1827 "received: %d\n", __func__, status); in edge_bulk_out_callback()
1843 int status; in edge_open() local
1855 status = ti_do_config(edge_port, UMPC_SET_CLR_LOOPBACK, 0); in edge_open()
1856 if (status) { in edge_open()
1859 __func__, status); in edge_open()
1860 return status; in edge_open()
1883 status = send_cmd(dev, UMPC_OPEN_PORT, in edge_open()
1885 if (status) { in edge_open()
1887 __func__, status); in edge_open()
1888 return status; in edge_open()
1892 status = send_cmd(dev, UMPC_START_PORT, in edge_open()
1894 if (status) { in edge_open()
1896 __func__, status); in edge_open()
1897 return status; in edge_open()
1901 status = purge_port(port, UMP_PORT_DIR_OUT | UMP_PORT_DIR_IN); in edge_open()
1902 if (status) { in edge_open()
1905 __func__, status); in edge_open()
1906 return status; in edge_open()
1910 status = ti_vread_sync(dev, UMPC_READ_MSR, 0, in edge_open()
1913 if (status) { in edge_open()
1915 __func__, status); in edge_open()
1916 return status; in edge_open()
1935 status = -EINVAL; in edge_open()
1939 status = usb_submit_urb(urb, GFP_KERNEL); in edge_open()
1940 if (status) { in edge_open()
1943 __func__, status); in edge_open()
1960 status = -EINVAL; in edge_open()
1965 status = usb_submit_urb(urb, GFP_KERNEL); in edge_open()
1966 if (status) { in edge_open()
1969 __func__, status); in edge_open()
1982 return status; in edge_open()
2152 int status; in edge_throttle() local
2160 status = edge_write(tty, port, &stop_char, 1); in edge_throttle()
2161 if (status <= 0) { in edge_throttle()
2162 dev_err(&port->dev, "%s - failed to write stop character, %d\n", __func__, status); in edge_throttle()
2179 int status; in edge_unthrottle() local
2187 status = edge_write(tty, port, &start_char, 1); in edge_unthrottle()
2188 if (status <= 0) { in edge_unthrottle()
2189 dev_err(&port->dev, "%s - failed to write start character, %d\n", __func__, status); in edge_unthrottle()
2197 status = restart_read(edge_port); in edge_unthrottle()
2198 if (status) in edge_unthrottle()
2201 __func__, status); in edge_unthrottle()
2222 int status = 0; in restart_read() local
2229 status = usb_submit_urb(urb, GFP_ATOMIC); in restart_read()
2236 return status; in restart_read()
2246 int status; in change_port_settings() local
2370 status = send_cmd(edge_port->port->serial->dev, UMPC_SET_CONFIG, in change_port_settings()
2373 if (status) in change_port_settings()
2375 __func__, status); in change_port_settings()
2505 int status; in edge_break() local
2510 status = ti_do_config(edge_port, UMPC_SET_CLR_BREAK, bv); in edge_break()
2511 if (status) in edge_break()
2513 __func__, status); in edge_break()
2549 int status; in edge_startup() local
2561 status = download_fw(edge_serial); in edge_startup()
2562 if (status) { in edge_startup()
2564 return status; in edge_startup()