Lines Matching refs:data
33 struct nci_core_conn_credit_ntf *ntf = (void *) skb->data; in nci_core_conn_credits_ntf_packet()
68 __u8 status = skb->data[0]; in nci_core_generic_error_ntf_packet()
82 struct nci_core_intf_error_ntf *ntf = (void *) skb->data; in nci_core_conn_intf_error_ntf_packet()
95 __u8 *data) in nci_extract_rf_params_nfca_passive_poll() argument
97 nfca_poll->sens_res = __le16_to_cpu(*((__le16 *)data)); in nci_extract_rf_params_nfca_passive_poll()
98 data += 2; in nci_extract_rf_params_nfca_passive_poll()
100 nfca_poll->nfcid1_len = min_t(__u8, *data++, NFC_NFCID1_MAXSIZE); in nci_extract_rf_params_nfca_passive_poll()
105 memcpy(nfca_poll->nfcid1, data, nfca_poll->nfcid1_len); in nci_extract_rf_params_nfca_passive_poll()
106 data += nfca_poll->nfcid1_len; in nci_extract_rf_params_nfca_passive_poll()
108 nfca_poll->sel_res_len = *data++; in nci_extract_rf_params_nfca_passive_poll()
111 nfca_poll->sel_res = *data++; in nci_extract_rf_params_nfca_passive_poll()
117 return data; in nci_extract_rf_params_nfca_passive_poll()
122 __u8 *data) in nci_extract_rf_params_nfcb_passive_poll() argument
124 nfcb_poll->sensb_res_len = min_t(__u8, *data++, NFC_SENSB_RES_MAXSIZE); in nci_extract_rf_params_nfcb_passive_poll()
128 memcpy(nfcb_poll->sensb_res, data, nfcb_poll->sensb_res_len); in nci_extract_rf_params_nfcb_passive_poll()
129 data += nfcb_poll->sensb_res_len; in nci_extract_rf_params_nfcb_passive_poll()
131 return data; in nci_extract_rf_params_nfcb_passive_poll()
136 __u8 *data) in nci_extract_rf_params_nfcf_passive_poll() argument
138 nfcf_poll->bit_rate = *data++; in nci_extract_rf_params_nfcf_passive_poll()
139 nfcf_poll->sensf_res_len = min_t(__u8, *data++, NFC_SENSF_RES_MAXSIZE); in nci_extract_rf_params_nfcf_passive_poll()
144 memcpy(nfcf_poll->sensf_res, data, nfcf_poll->sensf_res_len); in nci_extract_rf_params_nfcf_passive_poll()
145 data += nfcf_poll->sensf_res_len; in nci_extract_rf_params_nfcf_passive_poll()
147 return data; in nci_extract_rf_params_nfcf_passive_poll()
152 __u8 *data) in nci_extract_rf_params_nfcv_passive_poll() argument
154 ++data; in nci_extract_rf_params_nfcv_passive_poll()
155 nfcv_poll->dsfid = *data++; in nci_extract_rf_params_nfcv_passive_poll()
156 memcpy(nfcv_poll->uid, data, NFC_ISO15693_UID_MAXSIZE); in nci_extract_rf_params_nfcv_passive_poll()
157 data += NFC_ISO15693_UID_MAXSIZE; in nci_extract_rf_params_nfcv_passive_poll()
158 return data; in nci_extract_rf_params_nfcv_passive_poll()
163 __u8 *data) in nci_extract_rf_params_nfcf_passive_listen() argument
165 nfcf_listen->local_nfcid2_len = min_t(__u8, *data++, in nci_extract_rf_params_nfcf_passive_listen()
167 memcpy(nfcf_listen->local_nfcid2, data, nfcf_listen->local_nfcid2_len); in nci_extract_rf_params_nfcf_passive_listen()
168 data += nfcf_listen->local_nfcid2_len; in nci_extract_rf_params_nfcf_passive_listen()
170 return data; in nci_extract_rf_params_nfcf_passive_listen()
308 __u8 *data = skb->data; in nci_rf_discover_ntf_packet() local
311 ntf.rf_discovery_id = *data++; in nci_rf_discover_ntf_packet()
312 ntf.rf_protocol = *data++; in nci_rf_discover_ntf_packet()
313 ntf.rf_tech_and_mode = *data++; in nci_rf_discover_ntf_packet()
314 ntf.rf_tech_specific_params_len = *data++; in nci_rf_discover_ntf_packet()
325 data = nci_extract_rf_params_nfca_passive_poll(ndev, in nci_rf_discover_ntf_packet()
326 &(ntf.rf_tech_specific_params.nfca_poll), data); in nci_rf_discover_ntf_packet()
330 data = nci_extract_rf_params_nfcb_passive_poll(ndev, in nci_rf_discover_ntf_packet()
331 &(ntf.rf_tech_specific_params.nfcb_poll), data); in nci_rf_discover_ntf_packet()
335 data = nci_extract_rf_params_nfcf_passive_poll(ndev, in nci_rf_discover_ntf_packet()
336 &(ntf.rf_tech_specific_params.nfcf_poll), data); in nci_rf_discover_ntf_packet()
340 data = nci_extract_rf_params_nfcv_passive_poll(ndev, in nci_rf_discover_ntf_packet()
341 &(ntf.rf_tech_specific_params.nfcv_poll), data); in nci_rf_discover_ntf_packet()
347 data += ntf.rf_tech_specific_params_len; in nci_rf_discover_ntf_packet()
352 ntf.ntf_type = *data++; in nci_rf_discover_ntf_packet()
368 struct nci_rf_intf_activated_ntf *ntf, __u8 *data) in nci_extract_activation_params_iso_dep() argument
376 nfca_poll->rats_res_len = min_t(__u8, *data++, 20); in nci_extract_activation_params_iso_dep()
380 data, nfca_poll->rats_res_len); in nci_extract_activation_params_iso_dep()
386 nfcb_poll->attrib_res_len = min_t(__u8, *data++, 50); in nci_extract_activation_params_iso_dep()
390 data, nfcb_poll->attrib_res_len); in nci_extract_activation_params_iso_dep()
404 struct nci_rf_intf_activated_ntf *ntf, __u8 *data) in nci_extract_activation_params_nfc_dep() argument
413 poll->atr_res_len = min_t(__u8, *data++, in nci_extract_activation_params_nfc_dep()
417 memcpy(poll->atr_res, data, poll->atr_res_len); in nci_extract_activation_params_nfc_dep()
423 listen->atr_req_len = min_t(__u8, *data++, in nci_extract_activation_params_nfc_dep()
427 memcpy(listen->atr_req, data, listen->atr_req_len); in nci_extract_activation_params_nfc_dep()
509 __u8 *data = skb->data; in nci_rf_intf_activated_ntf_packet() local
512 ntf.rf_discovery_id = *data++; in nci_rf_intf_activated_ntf_packet()
513 ntf.rf_interface = *data++; in nci_rf_intf_activated_ntf_packet()
514 ntf.rf_protocol = *data++; in nci_rf_intf_activated_ntf_packet()
515 ntf.activation_rf_tech_and_mode = *data++; in nci_rf_intf_activated_ntf_packet()
516 ntf.max_data_pkt_payload_size = *data++; in nci_rf_intf_activated_ntf_packet()
517 ntf.initial_num_credits = *data++; in nci_rf_intf_activated_ntf_packet()
518 ntf.rf_tech_specific_params_len = *data++; in nci_rf_intf_activated_ntf_packet()
542 data = nci_extract_rf_params_nfca_passive_poll(ndev, in nci_rf_intf_activated_ntf_packet()
543 &(ntf.rf_tech_specific_params.nfca_poll), data); in nci_rf_intf_activated_ntf_packet()
547 data = nci_extract_rf_params_nfcb_passive_poll(ndev, in nci_rf_intf_activated_ntf_packet()
548 &(ntf.rf_tech_specific_params.nfcb_poll), data); in nci_rf_intf_activated_ntf_packet()
552 data = nci_extract_rf_params_nfcf_passive_poll(ndev, in nci_rf_intf_activated_ntf_packet()
553 &(ntf.rf_tech_specific_params.nfcf_poll), data); in nci_rf_intf_activated_ntf_packet()
557 data = nci_extract_rf_params_nfcv_passive_poll(ndev, in nci_rf_intf_activated_ntf_packet()
558 &(ntf.rf_tech_specific_params.nfcv_poll), data); in nci_rf_intf_activated_ntf_packet()
566 data = nci_extract_rf_params_nfcf_passive_listen(ndev, in nci_rf_intf_activated_ntf_packet()
568 data); in nci_rf_intf_activated_ntf_packet()
579 ntf.data_exch_rf_tech_and_mode = *data++; in nci_rf_intf_activated_ntf_packet()
580 ntf.data_exch_tx_bit_rate = *data++; in nci_rf_intf_activated_ntf_packet()
581 ntf.data_exch_rx_bit_rate = *data++; in nci_rf_intf_activated_ntf_packet()
582 ntf.activation_params_len = *data++; in nci_rf_intf_activated_ntf_packet()
594 &ntf, data); in nci_rf_intf_activated_ntf_packet()
599 &ntf, data); in nci_rf_intf_activated_ntf_packet()
670 struct nci_rf_deactivate_ntf *ntf = (void *) skb->data; in nci_rf_deactivate_ntf_packet()
715 (struct nci_nfcee_discover_ntf *)skb->data; in nci_nfcee_discover_ntf_packet()
738 __u16 ntf_opcode = nci_opcode(skb->data); in nci_ntf_packet()
741 nci_pbf(skb->data), in nci_ntf_packet()
744 nci_plen(skb->data)); in nci_ntf_packet()