• 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()
742 struct u132_command *command = &ftdi->command[COMMAND_MASK & in fill_buffer_with_all_queued_commands() local
744 int F = command->follows; in fill_buffer_with_all_queued_commands()
745 u8 *f = command->buffer; in fill_buffer_with_all_queued_commands()
746 if (command->header & 0x80) { in fill_buffer_with_all_queued_commands()
747 ed_commands |= 1 << (0x3 & (command->header >> 5)); in fill_buffer_with_all_queued_commands()
749 buf[b++] = command->header; in fill_buffer_with_all_queued_commands()
750 buf[b++] = (command->length >> 0) & 0x00FF; in fill_buffer_with_all_queued_commands()
751 buf[b++] = (command->length >> 8) & 0x00FF; in fill_buffer_with_all_queued_commands()
752 buf[b++] = command->address; in fill_buffer_with_all_queued_commands()
753 buf[b++] = command->width; in fill_buffer_with_all_queued_commands()
767 struct u132_command *command = &ftdi->command[COMMAND_MASK & in ftdi_elan_total_command_size() local
769 total_size += 5 + command->follows; in ftdi_elan_total_command_size()
1221 struct u132_command *command = &ftdi->command[ in ftdi_elan_write_reg() local
1223 command->header = 0x00 | cPCIu132wr; in ftdi_elan_write_reg()
1224 command->length = 0x04; in ftdi_elan_write_reg()
1225 command->address = 0x00; in ftdi_elan_write_reg()
1226 command->width = 0x00; in ftdi_elan_write_reg()
1227 command->follows = 4; in ftdi_elan_write_reg()
1228 command->value = data; in ftdi_elan_write_reg()
1229 command->buffer = &command->value; in ftdi_elan_write_reg()
1253 struct u132_command *command = &ftdi->command[ in ftdi_elan_write_config() local
1255 command->header = 0x00 | (cPCIcfgwr & 0x0F); in ftdi_elan_write_config()
1256 command->length = 0x04; in ftdi_elan_write_config()
1257 command->address = addressofs; in ftdi_elan_write_config()
1258 command->width = 0x00 | (width & 0x0F); in ftdi_elan_write_config()
1259 command->follows = 4; in ftdi_elan_write_config()
1260 command->value = data; in ftdi_elan_write_config()
1261 command->buffer = &command->value; in ftdi_elan_write_config()
1285 struct u132_command *command = &ftdi->command[ in ftdi_elan_write_pcimem() local
1287 command->header = 0x00 | (cPCImemwr & 0x0F); in ftdi_elan_write_pcimem()
1288 command->length = 0x04; in ftdi_elan_write_pcimem()
1289 command->address = addressofs; in ftdi_elan_write_pcimem()
1290 command->width = 0x00 | (width & 0x0F); in ftdi_elan_write_pcimem()
1291 command->follows = 4; in ftdi_elan_write_pcimem()
1292 command->value = data; in ftdi_elan_write_pcimem()
1293 command->buffer = &command->value; in ftdi_elan_write_pcimem()
1327 struct u132_command *command = &ftdi->command[ in ftdi_elan_read_reg() local
1333 respond->header = command->header = 0x00 | cPCIu132rd; in ftdi_elan_read_reg()
1334 command->length = 0x04; in ftdi_elan_read_reg()
1335 respond->address = command->address = cU132cmd_status; in ftdi_elan_read_reg()
1336 command->width = 0x00; in ftdi_elan_read_reg()
1337 command->follows = 0; in ftdi_elan_read_reg()
1338 command->value = 0; in ftdi_elan_read_reg()
1339 command->buffer = NULL; in ftdi_elan_read_reg()
1370 struct u132_command *command = &ftdi->command[ in ftdi_elan_read_config() local
1376 respond->header = command->header = 0x00 | (cPCIcfgrd & in ftdi_elan_read_config()
1378 command->length = 0x04; in ftdi_elan_read_config()
1379 respond->address = command->address = addressofs; in ftdi_elan_read_config()
1380 command->width = 0x00 | (width & 0x0F); in ftdi_elan_read_config()
1381 command->follows = 0; in ftdi_elan_read_config()
1382 command->value = 0; in ftdi_elan_read_config()
1383 command->buffer = NULL; in ftdi_elan_read_config()
1414 struct u132_command *command = &ftdi->command[ in ftdi_elan_read_pcimem() local
1420 respond->header = command->header = 0x00 | (cPCImemrd & in ftdi_elan_read_pcimem()
1422 command->length = 0x04; in ftdi_elan_read_pcimem()
1423 respond->address = command->address = addressofs; in ftdi_elan_read_pcimem()
1424 command->width = 0x00 | (width & 0x0F); in ftdi_elan_read_pcimem()
1425 command->follows = 0; in ftdi_elan_read_pcimem()
1426 command->value = 0; in ftdi_elan_read_pcimem()
1427 command->buffer = NULL; in ftdi_elan_read_pcimem()
1473 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_setup() local
1475 command->header = 0x80 | (ed << 5); in ftdi_elan_edset_setup()
1476 command->length = 0x8007; in ftdi_elan_edset_setup()
1477 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_setup()
1479 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_setup()
1481 command->follows = 8; in ftdi_elan_edset_setup()
1482 command->value = 0; in ftdi_elan_edset_setup()
1483 command->buffer = urb->setup_packet; in ftdi_elan_edset_setup()
1530 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_input() local
1534 command->header = 0x82 | (ed << 5); in ftdi_elan_edset_input()
1536 command->length = 0x0000; in ftdi_elan_edset_input()
1538 command->length = 0x8000 | 1023; in ftdi_elan_edset_input()
1540 command->length = 0x8000 | (remaining_length - in ftdi_elan_edset_input()
1542 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_input()
1544 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_input()
1546 command->follows = 0; in ftdi_elan_edset_input()
1547 command->value = 0; in ftdi_elan_edset_input()
1548 command->buffer = NULL; in ftdi_elan_edset_input()
1595 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_empty() local
1597 command->header = 0x81 | (ed << 5); in ftdi_elan_edset_empty()
1598 command->length = 0x0000; in ftdi_elan_edset_empty()
1599 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_empty()
1601 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_empty()
1603 command->follows = 0; in ftdi_elan_edset_empty()
1604 command->value = 0; in ftdi_elan_edset_empty()
1605 command->buffer = NULL; in ftdi_elan_edset_empty()
1659 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_output() local
1661 command->header = 0x81 | (ed << 5); in ftdi_elan_edset_output()
1662 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_output()
1664 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_output()
1666 command->follows = min_t(u32, 1024, in ftdi_elan_edset_output()
1669 command->value = 0; in ftdi_elan_edset_output()
1670 command->buffer = urb->transfer_buffer + in ftdi_elan_edset_output()
1672 command->length = 0x8000 | (command->follows - 1); in ftdi_elan_edset_output()
1673 b = command->buffer; in ftdi_elan_edset_output()
1674 urb_size = command->follows; in ftdi_elan_edset_output()
1733 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_single() local
1735 command->header = 0x83 | (ed << 5); in ftdi_elan_edset_single()
1737 command->length = 0x0000; in ftdi_elan_edset_single()
1739 command->length = 0x8000 | 1023; in ftdi_elan_edset_single()
1741 command->length = 0x8000 | (remaining_length - in ftdi_elan_edset_single()
1743 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_single()
1745 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_single()
1747 command->follows = 0; in ftdi_elan_edset_single()
1748 command->value = 0; in ftdi_elan_edset_single()
1749 command->buffer = NULL; in ftdi_elan_edset_single()
1799 struct u132_command *command = in ftdi_elan_edset_flush() local
1800 &ftdi->command[COMMAND_MASK & in ftdi_elan_edset_flush()
1802 command->header = 0x80 | (ed << 5) | in ftdi_elan_edset_flush()
1804 command->length = 0x00; in ftdi_elan_edset_flush()
1805 command->address = 0x00; in ftdi_elan_edset_flush()
1806 command->width = 0x00; in ftdi_elan_edset_flush()
1807 command->follows = 0; in ftdi_elan_edset_flush()
1808 command->value = 0; in ftdi_elan_edset_flush()
1809 command->buffer = &command->value; in ftdi_elan_edset_flush()