• Home
  • Raw
  • Download

Lines Matching refs:command

153         struct u132_command command[COMMAND_SIZE];  member
373 struct u132_command *command = &ftdi->command[ in ftdi_elan_flush_targets() local
375 command->header = 0x80 | (ed_number << 5) | 0x4; in ftdi_elan_flush_targets()
376 command->length = 0x00; in ftdi_elan_flush_targets()
377 command->address = 0x00; in ftdi_elan_flush_targets()
378 command->width = 0x00; in ftdi_elan_flush_targets()
379 command->follows = 0; in ftdi_elan_flush_targets()
380 command->value = 0; in ftdi_elan_flush_targets()
381 command->buffer = &command->value; in ftdi_elan_flush_targets()
395 struct u132_command *command = &ftdi->command[ in ftdi_elan_flush_targets() local
397 command->header = 0x90 | (ed_number << 5); in ftdi_elan_flush_targets()
398 command->length = 0x00; in ftdi_elan_flush_targets()
399 command->address = 0x00; in ftdi_elan_flush_targets()
400 command->width = 0x00; in ftdi_elan_flush_targets()
401 command->follows = 0; in ftdi_elan_flush_targets()
402 command->value = 0; in ftdi_elan_flush_targets()
403 command->buffer = &command->value; in ftdi_elan_flush_targets()
431 struct u132_command *command = &ftdi->command[ in ftdi_elan_cancel_targets() local
433 command->header = 0x80 | (ed_number << 5) | 0x4; in ftdi_elan_cancel_targets()
434 command->length = 0x00; in ftdi_elan_cancel_targets()
435 command->address = 0x00; in ftdi_elan_cancel_targets()
436 command->width = 0x00; in ftdi_elan_cancel_targets()
437 command->follows = 0; in ftdi_elan_cancel_targets()
438 command->value = 0; in ftdi_elan_cancel_targets()
439 command->buffer = &command->value; in ftdi_elan_cancel_targets()
746 struct u132_command *command = &ftdi->command[COMMAND_MASK & in fill_buffer_with_all_queued_commands() local
748 int F = command->follows; in fill_buffer_with_all_queued_commands()
749 u8 *f = command->buffer; in fill_buffer_with_all_queued_commands()
750 if (command->header & 0x80) { in fill_buffer_with_all_queued_commands()
751 ed_commands |= 1 << (0x3 & (command->header >> 5)); in fill_buffer_with_all_queued_commands()
753 buf[b++] = command->header; in fill_buffer_with_all_queued_commands()
754 buf[b++] = (command->length >> 0) & 0x00FF; in fill_buffer_with_all_queued_commands()
755 buf[b++] = (command->length >> 8) & 0x00FF; in fill_buffer_with_all_queued_commands()
756 buf[b++] = command->address; in fill_buffer_with_all_queued_commands()
757 buf[b++] = command->width; in fill_buffer_with_all_queued_commands()
771 struct u132_command *command = &ftdi->command[COMMAND_MASK & in ftdi_elan_total_command_size() local
773 total_size += 5 + command->follows; in ftdi_elan_total_command_size()
1260 struct u132_command *command = &ftdi->command[ in ftdi_elan_write_reg() local
1262 command->header = 0x00 | cPCIu132wr; in ftdi_elan_write_reg()
1263 command->length = 0x04; in ftdi_elan_write_reg()
1264 command->address = 0x00; in ftdi_elan_write_reg()
1265 command->width = 0x00; in ftdi_elan_write_reg()
1266 command->follows = 4; in ftdi_elan_write_reg()
1267 command->value = data; in ftdi_elan_write_reg()
1268 command->buffer = &command->value; in ftdi_elan_write_reg()
1292 struct u132_command *command = &ftdi->command[ in ftdi_elan_write_config() local
1294 command->header = 0x00 | (cPCIcfgwr & 0x0F); in ftdi_elan_write_config()
1295 command->length = 0x04; in ftdi_elan_write_config()
1296 command->address = addressofs; in ftdi_elan_write_config()
1297 command->width = 0x00 | (width & 0x0F); in ftdi_elan_write_config()
1298 command->follows = 4; in ftdi_elan_write_config()
1299 command->value = data; in ftdi_elan_write_config()
1300 command->buffer = &command->value; in ftdi_elan_write_config()
1324 struct u132_command *command = &ftdi->command[ in ftdi_elan_write_pcimem() local
1326 command->header = 0x00 | (cPCImemwr & 0x0F); in ftdi_elan_write_pcimem()
1327 command->length = 0x04; in ftdi_elan_write_pcimem()
1328 command->address = addressofs; in ftdi_elan_write_pcimem()
1329 command->width = 0x00 | (width & 0x0F); in ftdi_elan_write_pcimem()
1330 command->follows = 4; in ftdi_elan_write_pcimem()
1331 command->value = data; in ftdi_elan_write_pcimem()
1332 command->buffer = &command->value; in ftdi_elan_write_pcimem()
1366 struct u132_command *command = &ftdi->command[ in ftdi_elan_read_reg() local
1372 respond->header = command->header = 0x00 | cPCIu132rd; in ftdi_elan_read_reg()
1373 command->length = 0x04; in ftdi_elan_read_reg()
1374 respond->address = command->address = cU132cmd_status; in ftdi_elan_read_reg()
1375 command->width = 0x00; in ftdi_elan_read_reg()
1376 command->follows = 0; in ftdi_elan_read_reg()
1377 command->value = 0; in ftdi_elan_read_reg()
1378 command->buffer = NULL; in ftdi_elan_read_reg()
1409 struct u132_command *command = &ftdi->command[ in ftdi_elan_read_config() local
1415 respond->header = command->header = 0x00 | (cPCIcfgrd & in ftdi_elan_read_config()
1417 command->length = 0x04; in ftdi_elan_read_config()
1418 respond->address = command->address = addressofs; in ftdi_elan_read_config()
1419 command->width = 0x00 | (width & 0x0F); in ftdi_elan_read_config()
1420 command->follows = 0; in ftdi_elan_read_config()
1421 command->value = 0; in ftdi_elan_read_config()
1422 command->buffer = NULL; in ftdi_elan_read_config()
1453 struct u132_command *command = &ftdi->command[ in ftdi_elan_read_pcimem() local
1459 respond->header = command->header = 0x00 | (cPCImemrd & in ftdi_elan_read_pcimem()
1461 command->length = 0x04; in ftdi_elan_read_pcimem()
1462 respond->address = command->address = addressofs; in ftdi_elan_read_pcimem()
1463 command->width = 0x00 | (width & 0x0F); in ftdi_elan_read_pcimem()
1464 command->follows = 0; in ftdi_elan_read_pcimem()
1465 command->value = 0; in ftdi_elan_read_pcimem()
1466 command->buffer = NULL; in ftdi_elan_read_pcimem()
1512 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_setup() local
1514 command->header = 0x80 | (ed << 5); in ftdi_elan_edset_setup()
1515 command->length = 0x8007; in ftdi_elan_edset_setup()
1516 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_setup()
1518 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_setup()
1520 command->follows = 8; in ftdi_elan_edset_setup()
1521 command->value = 0; in ftdi_elan_edset_setup()
1522 command->buffer = urb->setup_packet; in ftdi_elan_edset_setup()
1569 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_input() local
1573 command->header = 0x82 | (ed << 5); in ftdi_elan_edset_input()
1575 command->length = 0x0000; in ftdi_elan_edset_input()
1577 command->length = 0x8000 | 1023; in ftdi_elan_edset_input()
1579 command->length = 0x8000 | (remaining_length - in ftdi_elan_edset_input()
1581 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_input()
1583 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_input()
1585 command->follows = 0; in ftdi_elan_edset_input()
1586 command->value = 0; in ftdi_elan_edset_input()
1587 command->buffer = NULL; in ftdi_elan_edset_input()
1634 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_empty() local
1636 command->header = 0x81 | (ed << 5); in ftdi_elan_edset_empty()
1637 command->length = 0x0000; in ftdi_elan_edset_empty()
1638 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_empty()
1640 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_empty()
1642 command->follows = 0; in ftdi_elan_edset_empty()
1643 command->value = 0; in ftdi_elan_edset_empty()
1644 command->buffer = NULL; in ftdi_elan_edset_empty()
1698 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_output() local
1700 command->header = 0x81 | (ed << 5); in ftdi_elan_edset_output()
1701 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_output()
1703 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_output()
1705 command->follows = min(1024, in ftdi_elan_edset_output()
1708 command->value = 0; in ftdi_elan_edset_output()
1709 command->buffer = urb->transfer_buffer + in ftdi_elan_edset_output()
1711 command->length = 0x8000 | (command->follows - 1); in ftdi_elan_edset_output()
1712 b = command->buffer; in ftdi_elan_edset_output()
1713 urb_size = command->follows; in ftdi_elan_edset_output()
1772 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_single() local
1774 command->header = 0x83 | (ed << 5); in ftdi_elan_edset_single()
1776 command->length = 0x0000; in ftdi_elan_edset_single()
1778 command->length = 0x8000 | 1023; in ftdi_elan_edset_single()
1780 command->length = 0x8000 | (remaining_length - in ftdi_elan_edset_single()
1782 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_single()
1784 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_single()
1786 command->follows = 0; in ftdi_elan_edset_single()
1787 command->value = 0; in ftdi_elan_edset_single()
1788 command->buffer = NULL; in ftdi_elan_edset_single()
1838 struct u132_command *command = in ftdi_elan_edset_flush() local
1839 &ftdi->command[COMMAND_MASK & in ftdi_elan_edset_flush()
1841 command->header = 0x80 | (ed << 5) | in ftdi_elan_edset_flush()
1843 command->length = 0x00; in ftdi_elan_edset_flush()
1844 command->address = 0x00; in ftdi_elan_edset_flush()
1845 command->width = 0x00; in ftdi_elan_edset_flush()
1846 command->follows = 0; in ftdi_elan_edset_flush()
1847 command->value = 0; in ftdi_elan_edset_flush()
1848 command->buffer = &command->value; in ftdi_elan_edset_flush()