Lines Matching refs:cmd
35 struct nci_core_conn_create_cmd *cmd; member
160 struct nci_core_reset_cmd cmd; in nci_reset_req() local
162 cmd.reset_type = NCI_RESET_TYPE_RESET_CONFIG; in nci_reset_req()
163 nci_send_cmd(ndev, NCI_OP_CORE_RESET_CMD, 1, &cmd); in nci_reset_req()
173 struct nci_rf_disc_map_cmd cmd; in nci_init_complete_req() local
174 struct disc_map_config *cfg = cmd.mapping_configs; in nci_init_complete_req()
175 __u8 *num = &cmd.num_mapping_configs; in nci_init_complete_req()
204 (1 + ((*num) * sizeof(struct disc_map_config))), &cmd); in nci_init_complete_req()
216 struct nci_core_set_config_cmd cmd; in nci_set_config_req() local
220 cmd.num_params = 1; in nci_set_config_req()
221 cmd.param.id = param->id; in nci_set_config_req()
222 cmd.param.len = param->len; in nci_set_config_req()
223 memcpy(cmd.param.val, param->val, param->len); in nci_set_config_req()
225 nci_send_cmd(ndev, NCI_OP_CORE_SET_CONFIG_CMD, (3 + param->len), &cmd); in nci_set_config_req()
237 struct nci_rf_disc_cmd cmd; in nci_rf_discover_req() local
239 cmd.num_disc_configs = 0; in nci_rf_discover_req()
241 if ((cmd.num_disc_configs < NCI_MAX_NUM_RF_CONFIGS) && in nci_rf_discover_req()
246 cmd.disc_configs[cmd.num_disc_configs].rf_tech_and_mode = in nci_rf_discover_req()
248 cmd.disc_configs[cmd.num_disc_configs].frequency = 1; in nci_rf_discover_req()
249 cmd.num_disc_configs++; in nci_rf_discover_req()
252 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()
263 cmd.disc_configs[cmd.num_disc_configs].rf_tech_and_mode = in nci_rf_discover_req()
265 cmd.disc_configs[cmd.num_disc_configs].frequency = 1; in nci_rf_discover_req()
266 cmd.num_disc_configs++; in nci_rf_discover_req()
269 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 - 1) && 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()
283 cmd.disc_configs[cmd.num_disc_configs].rf_tech_and_mode = in nci_rf_discover_req()
285 cmd.disc_configs[cmd.num_disc_configs].frequency = 1; in nci_rf_discover_req()
286 cmd.num_disc_configs++; in nci_rf_discover_req()
290 (1 + (cmd.num_disc_configs * sizeof(struct disc_config))), in nci_rf_discover_req()
291 &cmd); in nci_rf_discover_req()
303 struct nci_rf_discover_select_cmd cmd; in nci_rf_discover_select_req() local
305 cmd.rf_discovery_id = param->rf_discovery_id; in nci_rf_discover_select_req()
306 cmd.rf_protocol = param->rf_protocol; in nci_rf_discover_select_req()
308 switch (cmd.rf_protocol) { in nci_rf_discover_select_req()
310 cmd.rf_interface = NCI_RF_INTERFACE_ISO_DEP; in nci_rf_discover_select_req()
314 cmd.rf_interface = NCI_RF_INTERFACE_NFC_DEP; in nci_rf_discover_select_req()
318 cmd.rf_interface = NCI_RF_INTERFACE_FRAME; in nci_rf_discover_select_req()
323 sizeof(struct nci_rf_discover_select_cmd), &cmd); in nci_rf_discover_select_req()
328 struct nci_rf_deactivate_cmd cmd; in nci_rf_deactivate_req() local
330 cmd.type = opt; in nci_rf_deactivate_req()
333 sizeof(struct nci_rf_deactivate_cmd), &cmd); in nci_rf_deactivate_req()
631 struct nci_nfcee_discover_cmd cmd; in nci_nfcee_discover_req() local
634 cmd.discovery_action = action; in nci_nfcee_discover_req()
636 nci_send_cmd(ndev, NCI_OP_NFCEE_DISCOVER_CMD, 1, &cmd); in nci_nfcee_discover_req()
648 struct nci_nfcee_mode_set_cmd *cmd = in nci_nfcee_mode_set_req() local
652 sizeof(struct nci_nfcee_mode_set_cmd), cmd); in nci_nfcee_mode_set_req()
657 struct nci_nfcee_mode_set_cmd cmd; in nci_nfcee_mode_set() local
659 cmd.nfcee_id = nfcee_id; in nci_nfcee_mode_set()
660 cmd.nfcee_mode = nfcee_mode; in nci_nfcee_mode_set()
663 (unsigned long)&cmd, in nci_nfcee_mode_set()
673 nci_send_cmd(ndev, NCI_OP_CORE_CONN_CREATE_CMD, data->length, data->cmd); in nci_core_conn_create_req()
682 struct nci_core_conn_create_cmd *cmd; in nci_core_conn_create() local
686 cmd = kzalloc(data.length, GFP_KERNEL); in nci_core_conn_create()
687 if (!cmd) in nci_core_conn_create()
690 cmd->destination_type = destination_type; in nci_core_conn_create()
691 cmd->number_destination_params = number_destination_params; in nci_core_conn_create()
693 data.cmd = cmd; in nci_core_conn_create()
696 memcpy(cmd->params, params, params_len); in nci_core_conn_create()
710 kfree(cmd); in nci_core_conn_create()