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()
1217 struct u132_command *command = &ftdi->command[ in ftdi_elan_write_reg() local
1219 command->header = 0x00 | cPCIu132wr; in ftdi_elan_write_reg()
1220 command->length = 0x04; in ftdi_elan_write_reg()
1221 command->address = 0x00; in ftdi_elan_write_reg()
1222 command->width = 0x00; in ftdi_elan_write_reg()
1223 command->follows = 4; in ftdi_elan_write_reg()
1224 command->value = data; in ftdi_elan_write_reg()
1225 command->buffer = &command->value; in ftdi_elan_write_reg()
1249 struct u132_command *command = &ftdi->command[ in ftdi_elan_write_config() local
1251 command->header = 0x00 | (cPCIcfgwr & 0x0F); in ftdi_elan_write_config()
1252 command->length = 0x04; in ftdi_elan_write_config()
1253 command->address = addressofs; in ftdi_elan_write_config()
1254 command->width = 0x00 | (width & 0x0F); in ftdi_elan_write_config()
1255 command->follows = 4; in ftdi_elan_write_config()
1256 command->value = data; in ftdi_elan_write_config()
1257 command->buffer = &command->value; in ftdi_elan_write_config()
1281 struct u132_command *command = &ftdi->command[ in ftdi_elan_write_pcimem() local
1283 command->header = 0x00 | (cPCImemwr & 0x0F); in ftdi_elan_write_pcimem()
1284 command->length = 0x04; in ftdi_elan_write_pcimem()
1285 command->address = addressofs; in ftdi_elan_write_pcimem()
1286 command->width = 0x00 | (width & 0x0F); in ftdi_elan_write_pcimem()
1287 command->follows = 4; in ftdi_elan_write_pcimem()
1288 command->value = data; in ftdi_elan_write_pcimem()
1289 command->buffer = &command->value; in ftdi_elan_write_pcimem()
1323 struct u132_command *command = &ftdi->command[ in ftdi_elan_read_reg() local
1329 respond->header = command->header = 0x00 | cPCIu132rd; in ftdi_elan_read_reg()
1330 command->length = 0x04; in ftdi_elan_read_reg()
1331 respond->address = command->address = cU132cmd_status; in ftdi_elan_read_reg()
1332 command->width = 0x00; in ftdi_elan_read_reg()
1333 command->follows = 0; in ftdi_elan_read_reg()
1334 command->value = 0; in ftdi_elan_read_reg()
1335 command->buffer = NULL; in ftdi_elan_read_reg()
1366 struct u132_command *command = &ftdi->command[ in ftdi_elan_read_config() local
1372 respond->header = command->header = 0x00 | (cPCIcfgrd & in ftdi_elan_read_config()
1374 command->length = 0x04; in ftdi_elan_read_config()
1375 respond->address = command->address = addressofs; in ftdi_elan_read_config()
1376 command->width = 0x00 | (width & 0x0F); in ftdi_elan_read_config()
1377 command->follows = 0; in ftdi_elan_read_config()
1378 command->value = 0; in ftdi_elan_read_config()
1379 command->buffer = NULL; in ftdi_elan_read_config()
1410 struct u132_command *command = &ftdi->command[ in ftdi_elan_read_pcimem() local
1416 respond->header = command->header = 0x00 | (cPCImemrd & in ftdi_elan_read_pcimem()
1418 command->length = 0x04; in ftdi_elan_read_pcimem()
1419 respond->address = command->address = addressofs; in ftdi_elan_read_pcimem()
1420 command->width = 0x00 | (width & 0x0F); in ftdi_elan_read_pcimem()
1421 command->follows = 0; in ftdi_elan_read_pcimem()
1422 command->value = 0; in ftdi_elan_read_pcimem()
1423 command->buffer = NULL; in ftdi_elan_read_pcimem()
1469 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_setup() local
1471 command->header = 0x80 | (ed << 5); in ftdi_elan_edset_setup()
1472 command->length = 0x8007; in ftdi_elan_edset_setup()
1473 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_setup()
1475 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_setup()
1477 command->follows = 8; in ftdi_elan_edset_setup()
1478 command->value = 0; in ftdi_elan_edset_setup()
1479 command->buffer = urb->setup_packet; in ftdi_elan_edset_setup()
1526 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_input() local
1530 command->header = 0x82 | (ed << 5); in ftdi_elan_edset_input()
1532 command->length = 0x0000; in ftdi_elan_edset_input()
1534 command->length = 0x8000 | 1023; in ftdi_elan_edset_input()
1536 command->length = 0x8000 | (remaining_length - in ftdi_elan_edset_input()
1538 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_input()
1540 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_input()
1542 command->follows = 0; in ftdi_elan_edset_input()
1543 command->value = 0; in ftdi_elan_edset_input()
1544 command->buffer = NULL; in ftdi_elan_edset_input()
1591 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_empty() local
1593 command->header = 0x81 | (ed << 5); in ftdi_elan_edset_empty()
1594 command->length = 0x0000; in ftdi_elan_edset_empty()
1595 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_empty()
1597 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_empty()
1599 command->follows = 0; in ftdi_elan_edset_empty()
1600 command->value = 0; in ftdi_elan_edset_empty()
1601 command->buffer = NULL; in ftdi_elan_edset_empty()
1655 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_output() local
1657 command->header = 0x81 | (ed << 5); in ftdi_elan_edset_output()
1658 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_output()
1660 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_output()
1662 command->follows = min_t(u32, 1024, in ftdi_elan_edset_output()
1665 command->value = 0; in ftdi_elan_edset_output()
1666 command->buffer = urb->transfer_buffer + in ftdi_elan_edset_output()
1668 command->length = 0x8000 | (command->follows - 1); in ftdi_elan_edset_output()
1669 b = command->buffer; in ftdi_elan_edset_output()
1670 urb_size = command->follows; in ftdi_elan_edset_output()
1729 struct u132_command *command = &ftdi->command[ in ftdi_elan_edset_single() local
1731 command->header = 0x83 | (ed << 5); in ftdi_elan_edset_single()
1733 command->length = 0x0000; in ftdi_elan_edset_single()
1735 command->length = 0x8000 | 1023; in ftdi_elan_edset_single()
1737 command->length = 0x8000 | (remaining_length - in ftdi_elan_edset_single()
1739 command->address = (toggle_bits << 6) | (ep_number << 2) in ftdi_elan_edset_single()
1741 command->width = usb_maxpacket(urb->dev, urb->pipe, in ftdi_elan_edset_single()
1743 command->follows = 0; in ftdi_elan_edset_single()
1744 command->value = 0; in ftdi_elan_edset_single()
1745 command->buffer = NULL; in ftdi_elan_edset_single()
1795 struct u132_command *command = in ftdi_elan_edset_flush() local
1796 &ftdi->command[COMMAND_MASK & in ftdi_elan_edset_flush()
1798 command->header = 0x80 | (ed << 5) | in ftdi_elan_edset_flush()
1800 command->length = 0x00; in ftdi_elan_edset_flush()
1801 command->address = 0x00; in ftdi_elan_edset_flush()
1802 command->width = 0x00; in ftdi_elan_edset_flush()
1803 command->follows = 0; in ftdi_elan_edset_flush()
1804 command->value = 0; in ftdi_elan_edset_flush()
1805 command->buffer = &command->value; in ftdi_elan_edset_flush()