Lines Matching defs:command

149 	struct u132_command command[COMMAND_SIZE];
371 struct u132_command *command = &ftdi->command[
373 command->header = 0x80 | (ed_number << 5) | 0x4;
374 command->length = 0x00;
375 command->address = 0x00;
376 command->width = 0x00;
377 command->follows = 0;
378 command->value = 0;
379 command->buffer = &command->value;
393 struct u132_command *command = &ftdi->command[
395 command->header = 0x90 | (ed_number << 5);
396 command->length = 0x00;
397 command->address = 0x00;
398 command->width = 0x00;
399 command->follows = 0;
400 command->value = 0;
401 command->buffer = &command->value;
429 struct u132_command *command = &ftdi->command[
431 command->header = 0x80 | (ed_number << 5) | 0x4;
432 command->length = 0x00;
433 command->address = 0x00;
434 command->width = 0x00;
435 command->follows = 0;
436 command->value = 0;
437 command->buffer = &command->value;
474 dev_err(&ftdi->udev->dev, "command error %d\n", retval);
740 struct u132_command *command = &ftdi->command[COMMAND_MASK &
742 int F = command->follows;
743 u8 *f = command->buffer;
744 if (command->header & 0x80) {
745 ed_commands |= 1 << (0x3 & (command->header >> 5));
747 buf[b++] = command->header;
748 buf[b++] = (command->length >> 0) & 0x00FF;
749 buf[b++] = (command->length >> 8) & 0x00FF;
750 buf[b++] = command->address;
751 buf[b++] = command->width;
765 struct u132_command *command = &ftdi->command[COMMAND_MASK &
767 total_size += 5 + command->follows;
1194 struct u132_command *command = &ftdi->command[
1196 command->header = 0x00 | cPCIu132wr;
1197 command->length = 0x04;
1198 command->address = 0x00;
1199 command->width = 0x00;
1200 command->follows = 4;
1201 command->value = data;
1202 command->buffer = &command->value;
1226 struct u132_command *command = &ftdi->command[
1228 command->header = 0x00 | (cPCIcfgwr & 0x0F);
1229 command->length = 0x04;
1230 command->address = addressofs;
1231 command->width = 0x00 | (width & 0x0F);
1232 command->follows = 4;
1233 command->value = data;
1234 command->buffer = &command->value;
1258 struct u132_command *command = &ftdi->command[
1260 command->header = 0x00 | (cPCImemwr & 0x0F);
1261 command->length = 0x04;
1262 command->address = addressofs;
1263 command->width = 0x00 | (width & 0x0F);
1264 command->follows = 4;
1265 command->value = data;
1266 command->buffer = &command->value;
1300 struct u132_command *command = &ftdi->command[
1306 respond->header = command->header = 0x00 | cPCIu132rd;
1307 command->length = 0x04;
1308 respond->address = command->address = cU132cmd_status;
1309 command->width = 0x00;
1310 command->follows = 0;
1311 command->value = 0;
1312 command->buffer = NULL;
1343 struct u132_command *command = &ftdi->command[
1349 respond->header = command->header = 0x00 | (cPCIcfgrd &
1351 command->length = 0x04;
1352 respond->address = command->address = addressofs;
1353 command->width = 0x00 | (width & 0x0F);
1354 command->follows = 0;
1355 command->value = 0;
1356 command->buffer = NULL;
1387 struct u132_command *command = &ftdi->command[
1393 respond->header = command->header = 0x00 | (cPCImemrd &
1395 command->length = 0x04;
1396 respond->address = command->address = addressofs;
1397 command->width = 0x00 | (width & 0x0F);
1398 command->follows = 0;
1399 command->value = 0;
1400 command->buffer = NULL;
1446 struct u132_command *command = &ftdi->command[
1448 command->header = 0x80 | (ed << 5);
1449 command->length = 0x8007;
1450 command->address = (toggle_bits << 6) | (ep_number << 2)
1452 command->width = usb_maxpacket(urb->dev, urb->pipe,
1454 command->follows = 8;
1455 command->value = 0;
1456 command->buffer = urb->setup_packet;
1503 struct u132_command *command = &ftdi->command[
1507 command->header = 0x82 | (ed << 5);
1509 command->length = 0x0000;
1511 command->length = 0x8000 | 1023;
1513 command->length = 0x8000 | (remaining_length -
1515 command->address = (toggle_bits << 6) | (ep_number << 2)
1517 command->width = usb_maxpacket(urb->dev, urb->pipe,
1519 command->follows = 0;
1520 command->value = 0;
1521 command->buffer = NULL;
1568 struct u132_command *command = &ftdi->command[
1570 command->header = 0x81 | (ed << 5);
1571 command->length = 0x0000;
1572 command->address = (toggle_bits << 6) | (ep_number << 2)
1574 command->width = usb_maxpacket(urb->dev, urb->pipe,
1576 command->follows = 0;
1577 command->value = 0;
1578 command->buffer = NULL;
1632 struct u132_command *command = &ftdi->command[
1634 command->header = 0x81 | (ed << 5);
1635 command->address = (toggle_bits << 6) | (ep_number << 2)
1637 command->width = usb_maxpacket(urb->dev, urb->pipe,
1639 command->follows = min_t(u32, 1024,
1642 command->value = 0;
1643 command->buffer = urb->transfer_buffer +
1645 command->length = 0x8000 | (command->follows - 1);
1646 b = command->buffer;
1647 urb_size = command->follows;
1706 struct u132_command *command = &ftdi->command[
1708 command->header = 0x83 | (ed << 5);
1710 command->length = 0x0000;
1712 command->length = 0x8000 | 1023;
1714 command->length = 0x8000 | (remaining_length -
1716 command->address = (toggle_bits << 6) | (ep_number << 2)
1718 command->width = usb_maxpacket(urb->dev, urb->pipe,
1720 command->follows = 0;
1721 command->value = 0;
1722 command->buffer = NULL;
1772 struct u132_command *command =
1773 &ftdi->command[COMMAND_MASK &
1775 command->header = 0x80 | (ed << 5) |
1777 command->length = 0x00;
1778 command->address = 0x00;
1779 command->width = 0x00;
1780 command->follows = 0;
1781 command->value = 0;
1782 command->buffer = &command->value;