Lines Matching refs:command
149 struct u132_command command[COMMAND_SIZE]; member
371 struct u132_command *command = &ftdi->command[ in ftdi_elan_flush_targets() local
373 command->header = 0x80 | (ed_number << 5) | 0x4; in ftdi_elan_flush_targets()
374 command->length = 0x00; in ftdi_elan_flush_targets()
375 command->address = 0x00; in ftdi_elan_flush_targets()
376 command->width = 0x00; in ftdi_elan_flush_targets()
377 command->follows = 0; in ftdi_elan_flush_targets()
378 command->value = 0; in ftdi_elan_flush_targets()
379 command->buffer = &command->value; in ftdi_elan_flush_targets()
393 struct u132_command *command = &ftdi->command[ in ftdi_elan_flush_targets() local
395 command->header = 0x90 | (ed_number << 5); in ftdi_elan_flush_targets()
396 command->length = 0x00; in ftdi_elan_flush_targets()
397 command->address = 0x00; in ftdi_elan_flush_targets()
398 command->width = 0x00; in ftdi_elan_flush_targets()
399 command->follows = 0; in ftdi_elan_flush_targets()
400 command->value = 0; in ftdi_elan_flush_targets()
401 command->buffer = &command->value; in ftdi_elan_flush_targets()
429 struct u132_command *command = &ftdi->command[ in ftdi_elan_cancel_targets() local
431 command->header = 0x80 | (ed_number << 5) | 0x4; in ftdi_elan_cancel_targets()
432 command->length = 0x00; in ftdi_elan_cancel_targets()
433 command->address = 0x00; in ftdi_elan_cancel_targets()
434 command->width = 0x00; in ftdi_elan_cancel_targets()
435 command->follows = 0; in ftdi_elan_cancel_targets()
436 command->value = 0; in ftdi_elan_cancel_targets()
437 command->buffer = &command->value; in ftdi_elan_cancel_targets()
740 struct u132_command *command = &ftdi->command[COMMAND_MASK & in fill_buffer_with_all_queued_commands() local
742 int F = command->follows; in fill_buffer_with_all_queued_commands()
743 u8 *f = command->buffer; in fill_buffer_with_all_queued_commands()
744 if (command->header & 0x80) { in fill_buffer_with_all_queued_commands()
745 ed_commands |= 1 << (0x3 & (command->header >> 5)); in fill_buffer_with_all_queued_commands()
747 buf[b++] = command->header; in fill_buffer_with_all_queued_commands()
748 buf[b++] = (command->length >> 0) & 0x00FF; in fill_buffer_with_all_queued_commands()
749 buf[b++] = (command->length >> 8) & 0x00FF; in fill_buffer_with_all_queued_commands()
750 buf[b++] = command->address; in fill_buffer_with_all_queued_commands()
751 buf[b++] = command->width; in fill_buffer_with_all_queued_commands()
765 struct u132_command *command = &ftdi->command[COMMAND_MASK & in ftdi_elan_total_command_size() local
767 total_size += 5 + command->follows; in ftdi_elan_total_command_size()
1194 struct u132_command *command = &ftdi->command[ in ftdi_elan_write_reg() local
1196 command->header = 0x00 | cPCIu132wr; in ftdi_elan_write_reg()
1197 command->length = 0x04; in ftdi_elan_write_reg()
1198 command->address = 0x00; in ftdi_elan_write_reg()
1199 command->width = 0x00; in ftdi_elan_write_reg()
1200 command->follows = 4; in ftdi_elan_write_reg()
1201 command->value = data; in ftdi_elan_write_reg()
1202 command->buffer = &command->value; in ftdi_elan_write_reg()
1226 struct u132_command *command = &ftdi->command[ in ftdi_elan_write_config() local
1228 command->header = 0x00 | (cPCIcfgwr & 0x0F); in ftdi_elan_write_config()
1229 command->length = 0x04; in ftdi_elan_write_config()
1230 command->address = addressofs; in ftdi_elan_write_config()
1231 command->width = 0x00 | (width & 0x0F); in ftdi_elan_write_config()
1232 command->follows = 4; in ftdi_elan_write_config()
1233 command->value = data; in ftdi_elan_write_config()
1234 command->buffer = &command->value; in ftdi_elan_write_config()
1258 struct u132_command *command = &ftdi->command[ in ftdi_elan_write_pcimem() local
1260 command->header = 0x00 | (cPCImemwr & 0x0F); in ftdi_elan_write_pcimem()
1261 command->length = 0x04; in ftdi_elan_write_pcimem()
1262 command->address = addressofs; in ftdi_elan_write_pcimem()
1263 command->width = 0x00 | (width & 0x0F); in ftdi_elan_write_pcimem()
1264 command->follows = 4; in ftdi_elan_write_pcimem()
1265 command->value = data; in ftdi_elan_write_pcimem()
1266 command->buffer = &command->value; in ftdi_elan_write_pcimem()
1300 struct u132_command *command = &ftdi->command[ in ftdi_elan_read_reg() local
1306 respond->header = command->header = 0x00 | cPCIu132rd; in ftdi_elan_read_reg()
1307 command->length = 0x04; in ftdi_elan_read_reg()
1308 respond->address = command->address = cU132cmd_status; in ftdi_elan_read_reg()
1309 command->width = 0x00; in ftdi_elan_read_reg()
1310 command->follows = 0; in ftdi_elan_read_reg()
1311 command->value = 0; in ftdi_elan_read_reg()
1312 command->buffer = NULL; in ftdi_elan_read_reg()
1343 struct u132_command *command = &ftdi->command[ in ftdi_elan_read_config() local
1349 respond->header = command->header = 0x00 | (cPCIcfgrd & in ftdi_elan_read_config()
1351 command->length = 0x04; in ftdi_elan_read_config()
1352 respond->address = command->address = addressofs; in ftdi_elan_read_config()
1353 command->width = 0x00 | (width & 0x0F); in ftdi_elan_read_config()
1354 command->follows = 0; in ftdi_elan_read_config()
1355 command->value = 0; in ftdi_elan_read_config()
1356 command->buffer = NULL; in ftdi_elan_read_config()
1387 struct u132_command *command = &ftdi->command[ in ftdi_elan_read_pcimem() local
1393 respond->header = command->header = 0x00 | (cPCImemrd & in ftdi_elan_read_pcimem()
1395 command->length = 0x04; in ftdi_elan_read_pcimem()
1396 respond->address = command->address = addressofs; in ftdi_elan_read_pcimem()
1397 command->width = 0x00 | (width & 0x0F); in ftdi_elan_read_pcimem()
1398 command->follows = 0; in ftdi_elan_read_pcimem()
1399 command->value = 0; in ftdi_elan_read_pcimem()
1400 command->buffer = NULL; in ftdi_elan_read_pcimem()
1446 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_setup() local
1448 command->header = 0x80 | (ed << 5); in ftdi_elan_edset_setup()
1449 command->length = 0x8007; in ftdi_elan_edset_setup()
1450 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_setup()
1452 command->width = usb_maxpacket(urb->dev, urb->pipe); in ftdi_elan_edset_setup()
1453 command->follows = 8; in ftdi_elan_edset_setup()
1454 command->value = 0; in ftdi_elan_edset_setup()
1455 command->buffer = urb->setup_packet; in ftdi_elan_edset_setup()
1502 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_input() local
1506 command->header = 0x82 | (ed << 5); in ftdi_elan_edset_input()
1508 command->length = 0x0000; in ftdi_elan_edset_input()
1510 command->length = 0x8000 | 1023; in ftdi_elan_edset_input()
1512 command->length = 0x8000 | (remaining_length - in ftdi_elan_edset_input()
1514 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_input()
1516 command->width = usb_maxpacket(urb->dev, urb->pipe); in ftdi_elan_edset_input()
1517 command->follows = 0; in ftdi_elan_edset_input()
1518 command->value = 0; in ftdi_elan_edset_input()
1519 command->buffer = NULL; in ftdi_elan_edset_input()
1566 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_empty() local
1568 command->header = 0x81 | (ed << 5); in ftdi_elan_edset_empty()
1569 command->length = 0x0000; in ftdi_elan_edset_empty()
1570 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_empty()
1572 command->width = usb_maxpacket(urb->dev, urb->pipe); in ftdi_elan_edset_empty()
1573 command->follows = 0; in ftdi_elan_edset_empty()
1574 command->value = 0; in ftdi_elan_edset_empty()
1575 command->buffer = NULL; in ftdi_elan_edset_empty()
1629 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_output() local
1631 command->header = 0x81 | (ed << 5); in ftdi_elan_edset_output()
1632 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_output()
1634 command->width = usb_maxpacket(urb->dev, urb->pipe); in ftdi_elan_edset_output()
1635 command->follows = min_t(u32, 1024, in ftdi_elan_edset_output()
1638 command->value = 0; in ftdi_elan_edset_output()
1639 command->buffer = urb->transfer_buffer + in ftdi_elan_edset_output()
1641 command->length = 0x8000 | (command->follows - 1); in ftdi_elan_edset_output()
1642 b = command->buffer; in ftdi_elan_edset_output()
1643 urb_size = command->follows; in ftdi_elan_edset_output()
1702 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_single() local
1704 command->header = 0x83 | (ed << 5); in ftdi_elan_edset_single()
1706 command->length = 0x0000; in ftdi_elan_edset_single()
1708 command->length = 0x8000 | 1023; in ftdi_elan_edset_single()
1710 command->length = 0x8000 | (remaining_length - in ftdi_elan_edset_single()
1712 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_single()
1714 command->width = usb_maxpacket(urb->dev, urb->pipe); in ftdi_elan_edset_single()
1715 command->follows = 0; in ftdi_elan_edset_single()
1716 command->value = 0; in ftdi_elan_edset_single()
1717 command->buffer = NULL; in ftdi_elan_edset_single()
1767 struct u132_command *command = in ftdi_elan_edset_flush() local
1768 &ftdi->command[COMMAND_MASK & in ftdi_elan_edset_flush()
1770 command->header = 0x80 | (ed << 5) | in ftdi_elan_edset_flush()
1772 command->length = 0x00; in ftdi_elan_edset_flush()
1773 command->address = 0x00; in ftdi_elan_edset_flush()
1774 command->width = 0x00; in ftdi_elan_edset_flush()
1775 command->follows = 0; in ftdi_elan_edset_flush()
1776 command->value = 0; in ftdi_elan_edset_flush()
1777 command->buffer = &command->value; in ftdi_elan_edset_flush()