Lines Matching refs:cmd
582 struct ath10k_usb_ctrl_diag_cmd_read *cmd; in ath10k_usb_hif_diag_read() local
589 cmd = (struct ath10k_usb_ctrl_diag_cmd_read *)ar_usb->diag_cmd_buffer; in ath10k_usb_hif_diag_read()
590 memset(cmd, 0, sizeof(*cmd)); in ath10k_usb_hif_diag_read()
591 cmd->cmd = ATH10K_USB_CTRL_DIAG_CC_READ; in ath10k_usb_hif_diag_read()
592 cmd->address = cpu_to_le32(address); in ath10k_usb_hif_diag_read()
597 (u8 *)cmd, in ath10k_usb_hif_diag_read()
598 sizeof(*cmd), in ath10k_usb_hif_diag_read()
617 struct ath10k_usb_ctrl_diag_cmd_write *cmd; in ath10k_usb_hif_diag_write() local
620 if (nbytes != sizeof(cmd->value)) in ath10k_usb_hif_diag_write()
623 cmd = (struct ath10k_usb_ctrl_diag_cmd_write *)ar_usb->diag_cmd_buffer; in ath10k_usb_hif_diag_write()
624 memset(cmd, 0, sizeof(*cmd)); in ath10k_usb_hif_diag_write()
625 cmd->cmd = cpu_to_le32(ATH10K_USB_CTRL_DIAG_CC_WRITE); in ath10k_usb_hif_diag_write()
626 cmd->address = cpu_to_le32(address); in ath10k_usb_hif_diag_write()
627 memcpy(&cmd->value, data, nbytes); in ath10k_usb_hif_diag_write()
631 (u8 *)cmd, in ath10k_usb_hif_diag_write()
632 sizeof(*cmd), in ath10k_usb_hif_diag_write()