Lines Matching refs:command

149 	struct u132_command command[COMMAND_SIZE];  member
370 struct u132_command *command = &ftdi->command[ in ftdi_elan_flush_targets() local
372 command->header = 0x80 | (ed_number << 5) | 0x4; in ftdi_elan_flush_targets()
373 command->length = 0x00; in ftdi_elan_flush_targets()
374 command->address = 0x00; in ftdi_elan_flush_targets()
375 command->width = 0x00; in ftdi_elan_flush_targets()
376 command->follows = 0; in ftdi_elan_flush_targets()
377 command->value = 0; in ftdi_elan_flush_targets()
378 command->buffer = &command->value; in ftdi_elan_flush_targets()
392 struct u132_command *command = &ftdi->command[ in ftdi_elan_flush_targets() local
394 command->header = 0x90 | (ed_number << 5); in ftdi_elan_flush_targets()
395 command->length = 0x00; in ftdi_elan_flush_targets()
396 command->address = 0x00; in ftdi_elan_flush_targets()
397 command->width = 0x00; in ftdi_elan_flush_targets()
398 command->follows = 0; in ftdi_elan_flush_targets()
399 command->value = 0; in ftdi_elan_flush_targets()
400 command->buffer = &command->value; in ftdi_elan_flush_targets()
428 struct u132_command *command = &ftdi->command[ in ftdi_elan_cancel_targets() local
430 command->header = 0x80 | (ed_number << 5) | 0x4; in ftdi_elan_cancel_targets()
431 command->length = 0x00; in ftdi_elan_cancel_targets()
432 command->address = 0x00; in ftdi_elan_cancel_targets()
433 command->width = 0x00; in ftdi_elan_cancel_targets()
434 command->follows = 0; in ftdi_elan_cancel_targets()
435 command->value = 0; in ftdi_elan_cancel_targets()
436 command->buffer = &command->value; in ftdi_elan_cancel_targets()
739 struct u132_command *command = &ftdi->command[COMMAND_MASK & in fill_buffer_with_all_queued_commands() local
741 int F = command->follows; in fill_buffer_with_all_queued_commands()
742 u8 *f = command->buffer; in fill_buffer_with_all_queued_commands()
743 if (command->header & 0x80) { in fill_buffer_with_all_queued_commands()
744 ed_commands |= 1 << (0x3 & (command->header >> 5)); in fill_buffer_with_all_queued_commands()
746 buf[b++] = command->header; in fill_buffer_with_all_queued_commands()
747 buf[b++] = (command->length >> 0) & 0x00FF; in fill_buffer_with_all_queued_commands()
748 buf[b++] = (command->length >> 8) & 0x00FF; in fill_buffer_with_all_queued_commands()
749 buf[b++] = command->address; in fill_buffer_with_all_queued_commands()
750 buf[b++] = command->width; in fill_buffer_with_all_queued_commands()
764 struct u132_command *command = &ftdi->command[COMMAND_MASK & in ftdi_elan_total_command_size() local
766 total_size += 5 + command->follows; in ftdi_elan_total_command_size()
1193 struct u132_command *command = &ftdi->command[ in ftdi_elan_write_reg() local
1195 command->header = 0x00 | cPCIu132wr; in ftdi_elan_write_reg()
1196 command->length = 0x04; in ftdi_elan_write_reg()
1197 command->address = 0x00; in ftdi_elan_write_reg()
1198 command->width = 0x00; in ftdi_elan_write_reg()
1199 command->follows = 4; in ftdi_elan_write_reg()
1200 command->value = data; in ftdi_elan_write_reg()
1201 command->buffer = &command->value; in ftdi_elan_write_reg()
1225 struct u132_command *command = &ftdi->command[ in ftdi_elan_write_config() local
1227 command->header = 0x00 | (cPCIcfgwr & 0x0F); in ftdi_elan_write_config()
1228 command->length = 0x04; in ftdi_elan_write_config()
1229 command->address = addressofs; in ftdi_elan_write_config()
1230 command->width = 0x00 | (width & 0x0F); in ftdi_elan_write_config()
1231 command->follows = 4; in ftdi_elan_write_config()
1232 command->value = data; in ftdi_elan_write_config()
1233 command->buffer = &command->value; in ftdi_elan_write_config()
1257 struct u132_command *command = &ftdi->command[ in ftdi_elan_write_pcimem() local
1259 command->header = 0x00 | (cPCImemwr & 0x0F); in ftdi_elan_write_pcimem()
1260 command->length = 0x04; in ftdi_elan_write_pcimem()
1261 command->address = addressofs; in ftdi_elan_write_pcimem()
1262 command->width = 0x00 | (width & 0x0F); in ftdi_elan_write_pcimem()
1263 command->follows = 4; in ftdi_elan_write_pcimem()
1264 command->value = data; in ftdi_elan_write_pcimem()
1265 command->buffer = &command->value; in ftdi_elan_write_pcimem()
1299 struct u132_command *command = &ftdi->command[ in ftdi_elan_read_reg() local
1305 respond->header = command->header = 0x00 | cPCIu132rd; in ftdi_elan_read_reg()
1306 command->length = 0x04; in ftdi_elan_read_reg()
1307 respond->address = command->address = cU132cmd_status; in ftdi_elan_read_reg()
1308 command->width = 0x00; in ftdi_elan_read_reg()
1309 command->follows = 0; in ftdi_elan_read_reg()
1310 command->value = 0; in ftdi_elan_read_reg()
1311 command->buffer = NULL; in ftdi_elan_read_reg()
1342 struct u132_command *command = &ftdi->command[ in ftdi_elan_read_config() local
1348 respond->header = command->header = 0x00 | (cPCIcfgrd & in ftdi_elan_read_config()
1350 command->length = 0x04; in ftdi_elan_read_config()
1351 respond->address = command->address = addressofs; in ftdi_elan_read_config()
1352 command->width = 0x00 | (width & 0x0F); in ftdi_elan_read_config()
1353 command->follows = 0; in ftdi_elan_read_config()
1354 command->value = 0; in ftdi_elan_read_config()
1355 command->buffer = NULL; in ftdi_elan_read_config()
1386 struct u132_command *command = &ftdi->command[ in ftdi_elan_read_pcimem() local
1392 respond->header = command->header = 0x00 | (cPCImemrd & in ftdi_elan_read_pcimem()
1394 command->length = 0x04; in ftdi_elan_read_pcimem()
1395 respond->address = command->address = addressofs; in ftdi_elan_read_pcimem()
1396 command->width = 0x00 | (width & 0x0F); in ftdi_elan_read_pcimem()
1397 command->follows = 0; in ftdi_elan_read_pcimem()
1398 command->value = 0; in ftdi_elan_read_pcimem()
1399 command->buffer = NULL; in ftdi_elan_read_pcimem()
1445 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_setup() local
1447 command->header = 0x80 | (ed << 5); in ftdi_elan_edset_setup()
1448 command->length = 0x8007; in ftdi_elan_edset_setup()
1449 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_setup()
1451 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()
1518 command->follows = 0; in ftdi_elan_edset_input()
1519 command->value = 0; in ftdi_elan_edset_input()
1520 command->buffer = NULL; in ftdi_elan_edset_input()
1567 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_empty() local
1569 command->header = 0x81 | (ed << 5); in ftdi_elan_edset_empty()
1570 command->length = 0x0000; in ftdi_elan_edset_empty()
1571 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_empty()
1573 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_empty()
1575 command->follows = 0; in ftdi_elan_edset_empty()
1576 command->value = 0; in ftdi_elan_edset_empty()
1577 command->buffer = NULL; in ftdi_elan_edset_empty()
1631 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_output() local
1633 command->header = 0x81 | (ed << 5); in ftdi_elan_edset_output()
1634 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_output()
1636 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_output()
1638 command->follows = min_t(u32, 1024, in ftdi_elan_edset_output()
1641 command->value = 0; in ftdi_elan_edset_output()
1642 command->buffer = urb->transfer_buffer + in ftdi_elan_edset_output()
1644 command->length = 0x8000 | (command->follows - 1); in ftdi_elan_edset_output()
1645 b = command->buffer; in ftdi_elan_edset_output()
1646 urb_size = command->follows; in ftdi_elan_edset_output()
1705 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_single() local
1707 command->header = 0x83 | (ed << 5); in ftdi_elan_edset_single()
1709 command->length = 0x0000; in ftdi_elan_edset_single()
1711 command->length = 0x8000 | 1023; in ftdi_elan_edset_single()
1713 command->length = 0x8000 | (remaining_length - in ftdi_elan_edset_single()
1715 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_single()
1717 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_single()
1719 command->follows = 0; in ftdi_elan_edset_single()
1720 command->value = 0; in ftdi_elan_edset_single()
1721 command->buffer = NULL; in ftdi_elan_edset_single()
1771 struct u132_command *command = in ftdi_elan_edset_flush() local
1772 &ftdi->command[COMMAND_MASK & in ftdi_elan_edset_flush()
1774 command->header = 0x80 | (ed << 5) | in ftdi_elan_edset_flush()
1776 command->length = 0x00; in ftdi_elan_edset_flush()
1777 command->address = 0x00; in ftdi_elan_edset_flush()
1778 command->width = 0x00; in ftdi_elan_edset_flush()
1779 command->follows = 0; in ftdi_elan_edset_flush()
1780 command->value = 0; in ftdi_elan_edset_flush()
1781 command->buffer = &command->value; in ftdi_elan_edset_flush()