Lines Matching refs:ntf

34 	const struct nci_core_reset_ntf *ntf = (void *)skb->data;
36 ndev->nci_ver = ntf->nci_ver;
38 ntf->nci_ver, ntf->config_status);
40 ndev->manufact_id = ntf->manufact_id;
42 __le32_to_cpu(ntf->manufact_specific_info);
50 struct nci_core_conn_credit_ntf *ntf = (void *) skb->data;
54 pr_debug("num_entries %d\n", ntf->num_entries);
56 if (ntf->num_entries > NCI_MAX_NUM_CONN)
57 ntf->num_entries = NCI_MAX_NUM_CONN;
60 for (i = 0; i < ntf->num_entries; i++) {
61 ntf->conn_entries[i].conn_id =
62 nci_conn_id(&ntf->conn_entries[i].conn_id);
65 i, ntf->conn_entries[i].conn_id,
66 ntf->conn_entries[i].credits);
69 ntf->conn_entries[i].conn_id);
73 atomic_add(ntf->conn_entries[i].credits,
99 struct nci_core_intf_error_ntf *ntf = (void *) skb->data;
101 ntf->conn_id = nci_conn_id(&ntf->conn_id);
103 pr_debug("status 0x%x, conn_id %d\n", ntf->status, ntf->conn_id);
107 nci_data_exchange_complete(ndev, NULL, ntf->conn_id, -EIO);
288 const struct nci_rf_discover_ntf *ntf)
295 if (target->logical_idx == ntf->rf_discovery_id) {
297 nci_add_new_protocol(ndev, target, ntf->rf_protocol,
298 ntf->rf_tech_and_mode,
299 &ntf->rf_tech_specific_params);
312 rc = nci_add_new_protocol(ndev, target, ntf->rf_protocol,
313 ntf->rf_tech_and_mode,
314 &ntf->rf_tech_specific_params);
316 target->logical_idx = ntf->rf_discovery_id;
335 struct nci_rf_discover_ntf ntf;
339 ntf.rf_discovery_id = *data++;
340 ntf.rf_protocol = *data++;
341 ntf.rf_tech_and_mode = *data++;
342 ntf.rf_tech_specific_params_len = *data++;
344 pr_debug("rf_discovery_id %d\n", ntf.rf_discovery_id);
345 pr_debug("rf_protocol 0x%x\n", ntf.rf_protocol);
346 pr_debug("rf_tech_and_mode 0x%x\n", ntf.rf_tech_and_mode);
348 ntf.rf_tech_specific_params_len);
350 if (ntf.rf_tech_specific_params_len > 0) {
351 switch (ntf.rf_tech_and_mode) {
354 &(ntf.rf_tech_specific_params.nfca_poll), data);
359 &(ntf.rf_tech_specific_params.nfcb_poll), data);
364 &(ntf.rf_tech_specific_params.nfcf_poll), data);
369 &(ntf.rf_tech_specific_params.nfcv_poll), data);
374 ntf.rf_tech_and_mode);
375 data += ntf.rf_tech_specific_params_len;
380 ntf.ntf_type = *data++;
381 pr_debug("ntf_type %d\n", ntf.ntf_type);
384 nci_add_new_target(ndev, &ntf);
386 if (ntf.ntf_type == NCI_DISCOVER_NTF_TYPE_MORE) {
396 struct nci_rf_intf_activated_ntf *ntf,
402 switch (ntf->activation_rf_tech_and_mode) {
404 nfca_poll = &ntf->activation_params.nfca_poll_iso_dep;
414 nfcb_poll = &ntf->activation_params.nfcb_poll_iso_dep;
425 ntf->activation_rf_tech_and_mode);
433 struct nci_rf_intf_activated_ntf *ntf,
439 switch (ntf->activation_rf_tech_and_mode) {
442 poll = &ntf->activation_params.poll_nfc_dep;
452 listen = &ntf->activation_params.listen_nfc_dep;
462 ntf->activation_rf_tech_and_mode);
470 const struct nci_rf_intf_activated_ntf *ntf)
477 rc = nci_add_new_protocol(ndev, target, ntf->rf_protocol,
478 ntf->activation_rf_tech_and_mode,
479 &ntf->rf_tech_specific_params);
483 target->logical_idx = ntf->rf_discovery_id;
493 const struct nci_rf_intf_activated_ntf *ntf)
497 if (ntf->activation_params_len <= 0)
500 switch (ntf->activation_rf_tech_and_mode) {
504 (ntf->activation_params.poll_nfc_dep.atr_res_len
508 (ntf->activation_params.poll_nfc_dep.atr_res
516 (ntf->activation_params.listen_nfc_dep.atr_req_len
520 (ntf->activation_params.listen_nfc_dep.atr_req
527 ntf->activation_rf_tech_and_mode);
538 struct nci_rf_intf_activated_ntf ntf;
542 ntf.rf_discovery_id = *data++;
543 ntf.rf_interface = *data++;
544 ntf.rf_protocol = *data++;
545 ntf.activation_rf_tech_and_mode = *data++;
546 ntf.max_data_pkt_payload_size = *data++;
547 ntf.initial_num_credits = *data++;
548 ntf.rf_tech_specific_params_len = *data++;
550 pr_debug("rf_discovery_id %d\n", ntf.rf_discovery_id);
551 pr_debug("rf_interface 0x%x\n", ntf.rf_interface);
552 pr_debug("rf_protocol 0x%x\n", ntf.rf_protocol);
554 ntf.activation_rf_tech_and_mode);
556 ntf.max_data_pkt_payload_size);
558 ntf.initial_num_credits);
560 ntf.rf_tech_specific_params_len);
566 if (ntf.rf_interface == NCI_RF_INTERFACE_NFCEE_DIRECT)
569 if (ntf.rf_tech_specific_params_len > 0) {
570 switch (ntf.activation_rf_tech_and_mode) {
573 &(ntf.rf_tech_specific_params.nfca_poll), data);
578 &(ntf.rf_tech_specific_params.nfcb_poll), data);
583 &(ntf.rf_tech_specific_params.nfcf_poll), data);
588 &(ntf.rf_tech_specific_params.nfcv_poll), data);
597 &(ntf.rf_tech_specific_params.nfcf_listen),
603 ntf.activation_rf_tech_and_mode);
609 ntf.data_exch_rf_tech_and_mode = *data++;
610 ntf.data_exch_tx_bit_rate = *data++;
611 ntf.data_exch_rx_bit_rate = *data++;
612 ntf.activation_params_len = *data++;
615 ntf.data_exch_rf_tech_and_mode);
616 pr_debug("data_exch_tx_bit_rate 0x%x\n", ntf.data_exch_tx_bit_rate);
617 pr_debug("data_exch_rx_bit_rate 0x%x\n", ntf.data_exch_rx_bit_rate);
618 pr_debug("activation_params_len %d\n", ntf.activation_params_len);
620 if (ntf.activation_params_len > 0) {
621 switch (ntf.rf_interface) {
624 &ntf, data);
629 &ntf, data);
638 ntf.rf_interface);
650 conn_info->max_pkt_payload_len = ntf.max_data_pkt_payload_size;
651 conn_info->initial_num_credits = ntf.initial_num_credits;
658 if (ntf.rf_interface == NCI_RF_INTERFACE_NFC_DEP) {
659 err = nci_store_general_bytes_nfc_dep(ndev, &ntf);
665 if (!(ntf.activation_rf_tech_and_mode & NCI_RF_TECH_MODE_LISTEN_MASK)) {
672 nci_target_auto_activated(ndev, &ntf);
684 ntf.rf_protocol == NCI_RF_PROTOCOL_NFC_DEP) {
700 const struct nci_rf_deactivate_ntf *ntf = (void *)skb->data;
702 pr_debug("entry, type 0x%x, reason 0x%x\n", ntf->type, ntf->reason);
722 switch (ntf->type) {
762 pr_debug("NCI RX: MT=ntf, PBF=%d, GID=0x%x, OID=0x%x, plen=%d\n",
773 pr_err("unsupported ntf opcode 0x%x\n",
817 pr_err("unknown ntf opcode 0x%x\n", ntf_opcode);