Lines Matching defs:cmd
59 struct iwmbt_hci_cmd *cmd = (struct iwmbt_hci_cmd *) buf;
62 cmd->opcode = htole16(0xfc09),
63 cmd->length = len + 1,
64 cmd->data[0] = fragment_type;
65 memcpy(cmd->data + 1, data, len);
69 (uint8_t *)cmd,
70 IWMBT_HCI_CMD_SIZE(cmd),
74 if (ret < 0 || transferred != (int)IWMBT_HCI_CMD_SIZE(cmd)) {
77 IWMBT_HCI_CMD_SIZE(cmd));
98 iwmbt_hci_command(struct libusb_device_handle *hdl, struct iwmbt_hci_cmd *cmd,
109 (uint8_t *)cmd,
110 IWMBT_HCI_CMD_SIZE(cmd),
143 if (cmd->opcode !=
359 struct iwmbt_hci_cmd *cmd;
368 cmd = (struct iwmbt_hci_cmd *)(fw->buf + sent + ready);
370 if (cmd->opcode == htole16(0xfc0e)) {
371 *boot_param = le32dec(cmd->data);
374 ready += IWMBT_HCI_CMD_SIZE(cmd);
415 static struct iwmbt_hci_cmd cmd = {
423 &cmd,
444 static struct iwmbt_hci_cmd cmd = {
451 cmd.data[1] = (uint8_t)mode;
454 &cmd,
476 struct iwmbt_hci_cmd cmd = {
485 &cmd,
510 static struct iwmbt_hci_cmd cmd = {
522 &cmd,
644 struct iwmbt_hci_cmd cmd = {
653 &cmd,
677 static struct iwmbt_hci_cmd cmd = {
684 le32enc(cmd.data + 4, boot_param);
688 &cmd,
719 struct iwmbt_hci_cmd *cmd = (struct iwmbt_hci_cmd *)buf;
728 cmd->opcode = htole16(0xfc8b);
729 cmd->length = ddc->buf[sent] + 1;
730 memcpy(cmd->data, ddc->buf + sent, XMIN(ddc->buf[sent], size));
733 cmd->length,
736 size -= cmd->length;
737 sent += cmd->length;
740 cmd,
759 static struct iwmbt_hci_cmd cmd = {
767 &cmd,