Lines Matching refs:cmd
16 u8 cmd; member
88 (_hdr)->cmd, (_hdr)->status, (_hdr)->req_id, \
95 struct mei_nfc_cmd cmd; in mei_nfc_if_version() local
101 memset(&cmd, 0, sizeof(struct mei_nfc_cmd)); in mei_nfc_if_version()
102 cmd.hdr.cmd = MEI_NFC_CMD_MAINTENANCE; in mei_nfc_if_version()
103 cmd.hdr.data_size = 1; in mei_nfc_if_version()
104 cmd.sub_command = MEI_NFC_SUBCMD_IF_VERSION; in mei_nfc_if_version()
106 MEI_DUMP_NFC_HDR("version", &cmd.hdr); in mei_nfc_if_version()
107 r = mei_cldev_send(phy->cldev, (u8 *)&cmd, sizeof(struct mei_nfc_cmd)); in mei_nfc_if_version()
141 struct mei_nfc_cmd *cmd, *reply; in mei_nfc_connect() local
153 cmd = kzalloc(connect_length, GFP_KERNEL); in mei_nfc_connect()
154 if (!cmd) in mei_nfc_connect()
156 connect = (struct mei_nfc_connect *)cmd->data; in mei_nfc_connect()
160 kfree(cmd); in mei_nfc_connect()
166 cmd->hdr.cmd = MEI_NFC_CMD_MAINTENANCE; in mei_nfc_connect()
167 cmd->hdr.data_size = 3; in mei_nfc_connect()
168 cmd->sub_command = MEI_NFC_SUBCMD_CONNECT; in mei_nfc_connect()
172 MEI_DUMP_NFC_HDR("connect request", &cmd->hdr); in mei_nfc_connect()
173 r = mei_cldev_send(phy->cldev, (u8 *)cmd, connect_length); in mei_nfc_connect()
200 kfree(cmd); in mei_nfc_connect()
217 hdr->cmd = MEI_NFC_CMD_HCI_SEND; in mei_nfc_send()
273 if (hdr->cmd == MEI_NFC_CMD_HCI_SEND) { in mei_nfc_recv()