Lines Matching refs:cmd
36 struct nci_core_conn_create_cmd *cmd; member
164 struct nci_core_reset_cmd cmd; in nci_reset_req() local
166 cmd.reset_type = NCI_RESET_TYPE_RESET_CONFIG; in nci_reset_req()
167 nci_send_cmd(ndev, NCI_OP_CORE_RESET_CMD, 1, &cmd); in nci_reset_req()
182 struct nci_rf_disc_map_cmd cmd; in nci_init_complete_req() local
183 struct disc_map_config *cfg = cmd.mapping_configs; in nci_init_complete_req()
184 __u8 *num = &cmd.num_mapping_configs; in nci_init_complete_req()
213 (1 + ((*num) * sizeof(struct disc_map_config))), &cmd); in nci_init_complete_req()
225 struct nci_core_set_config_cmd cmd; in nci_set_config_req() local
229 cmd.num_params = 1; in nci_set_config_req()
230 cmd.param.id = param->id; in nci_set_config_req()
231 cmd.param.len = param->len; in nci_set_config_req()
232 memcpy(cmd.param.val, param->val, param->len); in nci_set_config_req()
234 nci_send_cmd(ndev, NCI_OP_CORE_SET_CONFIG_CMD, (3 + param->len), &cmd); in nci_set_config_req()
245 struct nci_rf_disc_cmd cmd; in nci_rf_discover_req() local
247 cmd.num_disc_configs = 0; in nci_rf_discover_req()
249 if ((cmd.num_disc_configs < NCI_MAX_NUM_RF_CONFIGS) && in nci_rf_discover_req()
254 cmd.disc_configs[cmd.num_disc_configs].rf_tech_and_mode = in nci_rf_discover_req()
256 cmd.disc_configs[cmd.num_disc_configs].frequency = 1; in nci_rf_discover_req()
257 cmd.num_disc_configs++; in nci_rf_discover_req()
260 if ((cmd.num_disc_configs < NCI_MAX_NUM_RF_CONFIGS) && in nci_rf_discover_req()
262 cmd.disc_configs[cmd.num_disc_configs].rf_tech_and_mode = in nci_rf_discover_req()
264 cmd.disc_configs[cmd.num_disc_configs].frequency = 1; in nci_rf_discover_req()
265 cmd.num_disc_configs++; in nci_rf_discover_req()
268 if ((cmd.num_disc_configs < NCI_MAX_NUM_RF_CONFIGS) && in nci_rf_discover_req()
271 cmd.disc_configs[cmd.num_disc_configs].rf_tech_and_mode = in nci_rf_discover_req()
273 cmd.disc_configs[cmd.num_disc_configs].frequency = 1; in nci_rf_discover_req()
274 cmd.num_disc_configs++; in nci_rf_discover_req()
277 if ((cmd.num_disc_configs < NCI_MAX_NUM_RF_CONFIGS) && in nci_rf_discover_req()
279 cmd.disc_configs[cmd.num_disc_configs].rf_tech_and_mode = in nci_rf_discover_req()
281 cmd.disc_configs[cmd.num_disc_configs].frequency = 1; in nci_rf_discover_req()
282 cmd.num_disc_configs++; in nci_rf_discover_req()
285 if ((cmd.num_disc_configs < NCI_MAX_NUM_RF_CONFIGS - 1) && in nci_rf_discover_req()
287 cmd.disc_configs[cmd.num_disc_configs].rf_tech_and_mode = in nci_rf_discover_req()
289 cmd.disc_configs[cmd.num_disc_configs].frequency = 1; in nci_rf_discover_req()
290 cmd.num_disc_configs++; in nci_rf_discover_req()
291 cmd.disc_configs[cmd.num_disc_configs].rf_tech_and_mode = in nci_rf_discover_req()
293 cmd.disc_configs[cmd.num_disc_configs].frequency = 1; in nci_rf_discover_req()
294 cmd.num_disc_configs++; in nci_rf_discover_req()
298 (1 + (cmd.num_disc_configs * sizeof(struct disc_config))), in nci_rf_discover_req()
299 &cmd); in nci_rf_discover_req()
310 struct nci_rf_discover_select_cmd cmd; in nci_rf_discover_select_req() local
312 cmd.rf_discovery_id = param->rf_discovery_id; in nci_rf_discover_select_req()
313 cmd.rf_protocol = param->rf_protocol; in nci_rf_discover_select_req()
315 switch (cmd.rf_protocol) { in nci_rf_discover_select_req()
317 cmd.rf_interface = NCI_RF_INTERFACE_ISO_DEP; in nci_rf_discover_select_req()
321 cmd.rf_interface = NCI_RF_INTERFACE_NFC_DEP; in nci_rf_discover_select_req()
325 cmd.rf_interface = NCI_RF_INTERFACE_FRAME; in nci_rf_discover_select_req()
330 sizeof(struct nci_rf_discover_select_cmd), &cmd); in nci_rf_discover_select_req()
335 struct nci_rf_deactivate_cmd cmd; in nci_rf_deactivate_req() local
337 cmd.type = (unsigned long)opt; in nci_rf_deactivate_req()
340 sizeof(struct nci_rf_deactivate_cmd), &cmd); in nci_rf_deactivate_req()
660 struct nci_nfcee_discover_cmd cmd; in nci_nfcee_discover_req() local
663 cmd.discovery_action = action; in nci_nfcee_discover_req()
665 nci_send_cmd(ndev, NCI_OP_NFCEE_DISCOVER_CMD, 1, &cmd); in nci_nfcee_discover_req()
679 const struct nci_nfcee_mode_set_cmd *cmd = opt; in nci_nfcee_mode_set_req() local
682 sizeof(struct nci_nfcee_mode_set_cmd), cmd); in nci_nfcee_mode_set_req()
687 struct nci_nfcee_mode_set_cmd cmd; in nci_nfcee_mode_set() local
689 cmd.nfcee_id = nfcee_id; in nci_nfcee_mode_set()
690 cmd.nfcee_mode = nfcee_mode; in nci_nfcee_mode_set()
692 return __nci_request(ndev, nci_nfcee_mode_set_req, &cmd, in nci_nfcee_mode_set()
701 nci_send_cmd(ndev, NCI_OP_CORE_CONN_CREATE_CMD, data->length, data->cmd); in nci_core_conn_create_req()
710 struct nci_core_conn_create_cmd *cmd; in nci_core_conn_create() local
714 cmd = kzalloc(data.length, GFP_KERNEL); in nci_core_conn_create()
715 if (!cmd) in nci_core_conn_create()
718 cmd->destination_type = destination_type; in nci_core_conn_create()
719 cmd->number_destination_params = number_destination_params; in nci_core_conn_create()
721 data.cmd = cmd; in nci_core_conn_create()
724 memcpy(cmd->params, params, params_len); in nci_core_conn_create()
738 kfree(cmd); in nci_core_conn_create()