• Home
  • Raw
  • Download

Lines Matching refs:command

149 	struct u132_command command[COMMAND_SIZE];  member
369 struct u132_command *command = &ftdi->command[ in ftdi_elan_flush_targets() local
371 command->header = 0x80 | (ed_number << 5) | 0x4; in ftdi_elan_flush_targets()
372 command->length = 0x00; in ftdi_elan_flush_targets()
373 command->address = 0x00; in ftdi_elan_flush_targets()
374 command->width = 0x00; in ftdi_elan_flush_targets()
375 command->follows = 0; in ftdi_elan_flush_targets()
376 command->value = 0; in ftdi_elan_flush_targets()
377 command->buffer = &command->value; in ftdi_elan_flush_targets()
391 struct u132_command *command = &ftdi->command[ in ftdi_elan_flush_targets() local
393 command->header = 0x90 | (ed_number << 5); in ftdi_elan_flush_targets()
394 command->length = 0x00; in ftdi_elan_flush_targets()
395 command->address = 0x00; in ftdi_elan_flush_targets()
396 command->width = 0x00; in ftdi_elan_flush_targets()
397 command->follows = 0; in ftdi_elan_flush_targets()
398 command->value = 0; in ftdi_elan_flush_targets()
399 command->buffer = &command->value; in ftdi_elan_flush_targets()
427 struct u132_command *command = &ftdi->command[ in ftdi_elan_cancel_targets() local
429 command->header = 0x80 | (ed_number << 5) | 0x4; in ftdi_elan_cancel_targets()
430 command->length = 0x00; in ftdi_elan_cancel_targets()
431 command->address = 0x00; in ftdi_elan_cancel_targets()
432 command->width = 0x00; in ftdi_elan_cancel_targets()
433 command->follows = 0; in ftdi_elan_cancel_targets()
434 command->value = 0; in ftdi_elan_cancel_targets()
435 command->buffer = &command->value; in ftdi_elan_cancel_targets()
738 struct u132_command *command = &ftdi->command[COMMAND_MASK & in fill_buffer_with_all_queued_commands() local
740 int F = command->follows; in fill_buffer_with_all_queued_commands()
741 u8 *f = command->buffer; in fill_buffer_with_all_queued_commands()
742 if (command->header & 0x80) { in fill_buffer_with_all_queued_commands()
743 ed_commands |= 1 << (0x3 & (command->header >> 5)); in fill_buffer_with_all_queued_commands()
745 buf[b++] = command->header; in fill_buffer_with_all_queued_commands()
746 buf[b++] = (command->length >> 0) & 0x00FF; in fill_buffer_with_all_queued_commands()
747 buf[b++] = (command->length >> 8) & 0x00FF; in fill_buffer_with_all_queued_commands()
748 buf[b++] = command->address; in fill_buffer_with_all_queued_commands()
749 buf[b++] = command->width; in fill_buffer_with_all_queued_commands()
763 struct u132_command *command = &ftdi->command[COMMAND_MASK & in ftdi_elan_total_command_size() local
765 total_size += 5 + command->follows; in ftdi_elan_total_command_size()
1191 struct u132_command *command = &ftdi->command[ in ftdi_elan_write_reg() local
1193 command->header = 0x00 | cPCIu132wr; in ftdi_elan_write_reg()
1194 command->length = 0x04; in ftdi_elan_write_reg()
1195 command->address = 0x00; in ftdi_elan_write_reg()
1196 command->width = 0x00; in ftdi_elan_write_reg()
1197 command->follows = 4; in ftdi_elan_write_reg()
1198 command->value = data; in ftdi_elan_write_reg()
1199 command->buffer = &command->value; in ftdi_elan_write_reg()
1223 struct u132_command *command = &ftdi->command[ in ftdi_elan_write_config() local
1225 command->header = 0x00 | (cPCIcfgwr & 0x0F); in ftdi_elan_write_config()
1226 command->length = 0x04; in ftdi_elan_write_config()
1227 command->address = addressofs; in ftdi_elan_write_config()
1228 command->width = 0x00 | (width & 0x0F); in ftdi_elan_write_config()
1229 command->follows = 4; in ftdi_elan_write_config()
1230 command->value = data; in ftdi_elan_write_config()
1231 command->buffer = &command->value; in ftdi_elan_write_config()
1255 struct u132_command *command = &ftdi->command[ in ftdi_elan_write_pcimem() local
1257 command->header = 0x00 | (cPCImemwr & 0x0F); in ftdi_elan_write_pcimem()
1258 command->length = 0x04; in ftdi_elan_write_pcimem()
1259 command->address = addressofs; in ftdi_elan_write_pcimem()
1260 command->width = 0x00 | (width & 0x0F); in ftdi_elan_write_pcimem()
1261 command->follows = 4; in ftdi_elan_write_pcimem()
1262 command->value = data; in ftdi_elan_write_pcimem()
1263 command->buffer = &command->value; in ftdi_elan_write_pcimem()
1297 struct u132_command *command = &ftdi->command[ in ftdi_elan_read_reg() local
1303 respond->header = command->header = 0x00 | cPCIu132rd; in ftdi_elan_read_reg()
1304 command->length = 0x04; in ftdi_elan_read_reg()
1305 respond->address = command->address = cU132cmd_status; in ftdi_elan_read_reg()
1306 command->width = 0x00; in ftdi_elan_read_reg()
1307 command->follows = 0; in ftdi_elan_read_reg()
1308 command->value = 0; in ftdi_elan_read_reg()
1309 command->buffer = NULL; in ftdi_elan_read_reg()
1340 struct u132_command *command = &ftdi->command[ in ftdi_elan_read_config() local
1346 respond->header = command->header = 0x00 | (cPCIcfgrd & in ftdi_elan_read_config()
1348 command->length = 0x04; in ftdi_elan_read_config()
1349 respond->address = command->address = addressofs; in ftdi_elan_read_config()
1350 command->width = 0x00 | (width & 0x0F); in ftdi_elan_read_config()
1351 command->follows = 0; in ftdi_elan_read_config()
1352 command->value = 0; in ftdi_elan_read_config()
1353 command->buffer = NULL; in ftdi_elan_read_config()
1384 struct u132_command *command = &ftdi->command[ in ftdi_elan_read_pcimem() local
1390 respond->header = command->header = 0x00 | (cPCImemrd & in ftdi_elan_read_pcimem()
1392 command->length = 0x04; in ftdi_elan_read_pcimem()
1393 respond->address = command->address = addressofs; in ftdi_elan_read_pcimem()
1394 command->width = 0x00 | (width & 0x0F); in ftdi_elan_read_pcimem()
1395 command->follows = 0; in ftdi_elan_read_pcimem()
1396 command->value = 0; in ftdi_elan_read_pcimem()
1397 command->buffer = NULL; in ftdi_elan_read_pcimem()
1443 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_setup() local
1445 command->header = 0x80 | (ed << 5); in ftdi_elan_edset_setup()
1446 command->length = 0x8007; in ftdi_elan_edset_setup()
1447 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_setup()
1449 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_setup()
1451 command->follows = 8; in ftdi_elan_edset_setup()
1452 command->value = 0; in ftdi_elan_edset_setup()
1453 command->buffer = urb->setup_packet; in ftdi_elan_edset_setup()
1500 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_input() local
1504 command->header = 0x82 | (ed << 5); in ftdi_elan_edset_input()
1506 command->length = 0x0000; in ftdi_elan_edset_input()
1508 command->length = 0x8000 | 1023; in ftdi_elan_edset_input()
1510 command->length = 0x8000 | (remaining_length - in ftdi_elan_edset_input()
1512 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_input()
1514 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_input()
1516 command->follows = 0; in ftdi_elan_edset_input()
1517 command->value = 0; in ftdi_elan_edset_input()
1518 command->buffer = NULL; in ftdi_elan_edset_input()
1565 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_empty() local
1567 command->header = 0x81 | (ed << 5); in ftdi_elan_edset_empty()
1568 command->length = 0x0000; in ftdi_elan_edset_empty()
1569 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_empty()
1571 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()
1636 command->follows = min_t(u32, 1024, in ftdi_elan_edset_output()
1639 command->value = 0; in ftdi_elan_edset_output()
1640 command->buffer = urb->transfer_buffer + in ftdi_elan_edset_output()
1642 command->length = 0x8000 | (command->follows - 1); in ftdi_elan_edset_output()
1643 b = command->buffer; in ftdi_elan_edset_output()
1644 urb_size = command->follows; in ftdi_elan_edset_output()
1703 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_single() local
1705 command->header = 0x83 | (ed << 5); in ftdi_elan_edset_single()
1707 command->length = 0x0000; in ftdi_elan_edset_single()
1709 command->length = 0x8000 | 1023; in ftdi_elan_edset_single()
1711 command->length = 0x8000 | (remaining_length - in ftdi_elan_edset_single()
1713 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_single()
1715 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_single()
1717 command->follows = 0; in ftdi_elan_edset_single()
1718 command->value = 0; in ftdi_elan_edset_single()
1719 command->buffer = NULL; in ftdi_elan_edset_single()
1769 struct u132_command *command = in ftdi_elan_edset_flush() local
1770 &ftdi->command[COMMAND_MASK & in ftdi_elan_edset_flush()
1772 command->header = 0x80 | (ed << 5) | in ftdi_elan_edset_flush()
1774 command->length = 0x00; in ftdi_elan_edset_flush()
1775 command->address = 0x00; in ftdi_elan_edset_flush()
1776 command->width = 0x00; in ftdi_elan_edset_flush()
1777 command->follows = 0; in ftdi_elan_edset_flush()
1778 command->value = 0; in ftdi_elan_edset_flush()
1779 command->buffer = &command->value; in ftdi_elan_edset_flush()