Lines Matching refs:command
156 struct u132_command command[COMMAND_SIZE]; member
376 struct u132_command *command = &ftdi->command[ in ftdi_elan_flush_targets() local
378 command->header = 0x80 | (ed_number << 5) | 0x4; in ftdi_elan_flush_targets()
379 command->length = 0x00; in ftdi_elan_flush_targets()
380 command->address = 0x00; in ftdi_elan_flush_targets()
381 command->width = 0x00; in ftdi_elan_flush_targets()
382 command->follows = 0; in ftdi_elan_flush_targets()
383 command->value = 0; in ftdi_elan_flush_targets()
384 command->buffer = &command->value; in ftdi_elan_flush_targets()
398 struct u132_command *command = &ftdi->command[ in ftdi_elan_flush_targets() local
400 command->header = 0x90 | (ed_number << 5); in ftdi_elan_flush_targets()
401 command->length = 0x00; in ftdi_elan_flush_targets()
402 command->address = 0x00; in ftdi_elan_flush_targets()
403 command->width = 0x00; in ftdi_elan_flush_targets()
404 command->follows = 0; in ftdi_elan_flush_targets()
405 command->value = 0; in ftdi_elan_flush_targets()
406 command->buffer = &command->value; in ftdi_elan_flush_targets()
434 struct u132_command *command = &ftdi->command[ in ftdi_elan_cancel_targets() local
436 command->header = 0x80 | (ed_number << 5) | 0x4; in ftdi_elan_cancel_targets()
437 command->length = 0x00; in ftdi_elan_cancel_targets()
438 command->address = 0x00; in ftdi_elan_cancel_targets()
439 command->width = 0x00; in ftdi_elan_cancel_targets()
440 command->follows = 0; in ftdi_elan_cancel_targets()
441 command->value = 0; in ftdi_elan_cancel_targets()
442 command->buffer = &command->value; in ftdi_elan_cancel_targets()
745 struct u132_command *command = &ftdi->command[COMMAND_MASK & in fill_buffer_with_all_queued_commands() local
747 int F = command->follows; in fill_buffer_with_all_queued_commands()
748 u8 *f = command->buffer; in fill_buffer_with_all_queued_commands()
749 if (command->header & 0x80) { in fill_buffer_with_all_queued_commands()
750 ed_commands |= 1 << (0x3 & (command->header >> 5)); in fill_buffer_with_all_queued_commands()
752 buf[b++] = command->header; in fill_buffer_with_all_queued_commands()
753 buf[b++] = (command->length >> 0) & 0x00FF; in fill_buffer_with_all_queued_commands()
754 buf[b++] = (command->length >> 8) & 0x00FF; in fill_buffer_with_all_queued_commands()
755 buf[b++] = command->address; in fill_buffer_with_all_queued_commands()
756 buf[b++] = command->width; in fill_buffer_with_all_queued_commands()
770 struct u132_command *command = &ftdi->command[COMMAND_MASK & in ftdi_elan_total_command_size() local
772 total_size += 5 + command->follows; in ftdi_elan_total_command_size()
1252 struct u132_command *command = &ftdi->command[ in ftdi_elan_write_reg() local
1254 command->header = 0x00 | cPCIu132wr; in ftdi_elan_write_reg()
1255 command->length = 0x04; in ftdi_elan_write_reg()
1256 command->address = 0x00; in ftdi_elan_write_reg()
1257 command->width = 0x00; in ftdi_elan_write_reg()
1258 command->follows = 4; in ftdi_elan_write_reg()
1259 command->value = data; in ftdi_elan_write_reg()
1260 command->buffer = &command->value; in ftdi_elan_write_reg()
1284 struct u132_command *command = &ftdi->command[ in ftdi_elan_write_config() local
1286 command->header = 0x00 | (cPCIcfgwr & 0x0F); in ftdi_elan_write_config()
1287 command->length = 0x04; in ftdi_elan_write_config()
1288 command->address = addressofs; in ftdi_elan_write_config()
1289 command->width = 0x00 | (width & 0x0F); in ftdi_elan_write_config()
1290 command->follows = 4; in ftdi_elan_write_config()
1291 command->value = data; in ftdi_elan_write_config()
1292 command->buffer = &command->value; in ftdi_elan_write_config()
1316 struct u132_command *command = &ftdi->command[ in ftdi_elan_write_pcimem() local
1318 command->header = 0x00 | (cPCImemwr & 0x0F); in ftdi_elan_write_pcimem()
1319 command->length = 0x04; in ftdi_elan_write_pcimem()
1320 command->address = addressofs; in ftdi_elan_write_pcimem()
1321 command->width = 0x00 | (width & 0x0F); in ftdi_elan_write_pcimem()
1322 command->follows = 4; in ftdi_elan_write_pcimem()
1323 command->value = data; in ftdi_elan_write_pcimem()
1324 command->buffer = &command->value; in ftdi_elan_write_pcimem()
1358 struct u132_command *command = &ftdi->command[ in ftdi_elan_read_reg() local
1364 respond->header = command->header = 0x00 | cPCIu132rd; in ftdi_elan_read_reg()
1365 command->length = 0x04; in ftdi_elan_read_reg()
1366 respond->address = command->address = cU132cmd_status; in ftdi_elan_read_reg()
1367 command->width = 0x00; in ftdi_elan_read_reg()
1368 command->follows = 0; in ftdi_elan_read_reg()
1369 command->value = 0; in ftdi_elan_read_reg()
1370 command->buffer = NULL; in ftdi_elan_read_reg()
1401 struct u132_command *command = &ftdi->command[ in ftdi_elan_read_config() local
1407 respond->header = command->header = 0x00 | (cPCIcfgrd & in ftdi_elan_read_config()
1409 command->length = 0x04; in ftdi_elan_read_config()
1410 respond->address = command->address = addressofs; in ftdi_elan_read_config()
1411 command->width = 0x00 | (width & 0x0F); in ftdi_elan_read_config()
1412 command->follows = 0; in ftdi_elan_read_config()
1413 command->value = 0; in ftdi_elan_read_config()
1414 command->buffer = NULL; in ftdi_elan_read_config()
1445 struct u132_command *command = &ftdi->command[ in ftdi_elan_read_pcimem() local
1451 respond->header = command->header = 0x00 | (cPCImemrd & in ftdi_elan_read_pcimem()
1453 command->length = 0x04; in ftdi_elan_read_pcimem()
1454 respond->address = command->address = addressofs; in ftdi_elan_read_pcimem()
1455 command->width = 0x00 | (width & 0x0F); in ftdi_elan_read_pcimem()
1456 command->follows = 0; in ftdi_elan_read_pcimem()
1457 command->value = 0; in ftdi_elan_read_pcimem()
1458 command->buffer = NULL; in ftdi_elan_read_pcimem()
1504 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_setup() local
1506 command->header = 0x80 | (ed << 5); in ftdi_elan_edset_setup()
1507 command->length = 0x8007; in ftdi_elan_edset_setup()
1508 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_setup()
1510 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_setup()
1512 command->follows = 8; in ftdi_elan_edset_setup()
1513 command->value = 0; in ftdi_elan_edset_setup()
1514 command->buffer = urb->setup_packet; in ftdi_elan_edset_setup()
1561 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_input() local
1565 command->header = 0x82 | (ed << 5); in ftdi_elan_edset_input()
1567 command->length = 0x0000; in ftdi_elan_edset_input()
1569 command->length = 0x8000 | 1023; in ftdi_elan_edset_input()
1571 command->length = 0x8000 | (remaining_length - in ftdi_elan_edset_input()
1573 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_input()
1575 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_input()
1577 command->follows = 0; in ftdi_elan_edset_input()
1578 command->value = 0; in ftdi_elan_edset_input()
1579 command->buffer = NULL; in ftdi_elan_edset_input()
1626 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_empty() local
1628 command->header = 0x81 | (ed << 5); in ftdi_elan_edset_empty()
1629 command->length = 0x0000; in ftdi_elan_edset_empty()
1630 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_empty()
1632 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_empty()
1634 command->follows = 0; in ftdi_elan_edset_empty()
1635 command->value = 0; in ftdi_elan_edset_empty()
1636 command->buffer = NULL; in ftdi_elan_edset_empty()
1690 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_output() local
1692 command->header = 0x81 | (ed << 5); in ftdi_elan_edset_output()
1693 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_output()
1695 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_output()
1697 command->follows = min_t(u32, 1024, in ftdi_elan_edset_output()
1700 command->value = 0; in ftdi_elan_edset_output()
1701 command->buffer = urb->transfer_buffer + in ftdi_elan_edset_output()
1703 command->length = 0x8000 | (command->follows - 1); in ftdi_elan_edset_output()
1704 b = command->buffer; in ftdi_elan_edset_output()
1705 urb_size = command->follows; in ftdi_elan_edset_output()
1764 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_single() local
1766 command->header = 0x83 | (ed << 5); in ftdi_elan_edset_single()
1768 command->length = 0x0000; in ftdi_elan_edset_single()
1770 command->length = 0x8000 | 1023; in ftdi_elan_edset_single()
1772 command->length = 0x8000 | (remaining_length - in ftdi_elan_edset_single()
1774 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_single()
1776 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_single()
1778 command->follows = 0; in ftdi_elan_edset_single()
1779 command->value = 0; in ftdi_elan_edset_single()
1780 command->buffer = NULL; in ftdi_elan_edset_single()
1830 struct u132_command *command = in ftdi_elan_edset_flush() local
1831 &ftdi->command[COMMAND_MASK & in ftdi_elan_edset_flush()
1833 command->header = 0x80 | (ed << 5) | in ftdi_elan_edset_flush()
1835 command->length = 0x00; in ftdi_elan_edset_flush()
1836 command->address = 0x00; in ftdi_elan_edset_flush()
1837 command->width = 0x00; in ftdi_elan_edset_flush()
1838 command->follows = 0; in ftdi_elan_edset_flush()
1839 command->value = 0; in ftdi_elan_edset_flush()
1840 command->buffer = &command->value; in ftdi_elan_edset_flush()