Home
last modified time | relevance | path

Searched refs:gb_len (Results 1 – 19 of 19) sorted by relevance

/Linux-v5.4/drivers/nfc/st21nfca/
Ddep.c145 size_t gb_len; in st21nfca_tm_send_atr_res() local
149 gb_len = atr_req->length - sizeof(struct st21nfca_atr_req); in st21nfca_tm_send_atr_res()
169 if (gb_len) { in st21nfca_tm_send_atr_res()
170 skb_put(skb, gb_len); in st21nfca_tm_send_atr_res()
173 memcpy(atr_res->gbi, atr_req->gbi, gb_len); in st21nfca_tm_send_atr_res()
175 gb_len); in st21nfca_tm_send_atr_res()
192 size_t gb_len; in st21nfca_tm_recv_atr_req() local
218 gb_len = skb->len - sizeof(struct st21nfca_atr_req); in st21nfca_tm_recv_atr_req()
221 NFC_COMM_PASSIVE, atr_req->gbi, gb_len); in st21nfca_tm_recv_atr_req()
512 int st21nfca_im_send_atr_req(struct nfc_hci_dev *hdev, u8 *gb, size_t gb_len) in st21nfca_im_send_atr_req() argument
[all …]
Dcore.c356 &hdev->gb_len); in st21nfca_hci_start_poll()
358 if (hdev->gb == NULL || hdev->gb_len == 0) { in st21nfca_hci_start_poll()
599 u8 *gb, size_t gb_len) in st21nfca_hci_dep_link_up() argument
604 return st21nfca_im_send_atr_req(hdev, gb, gb_len); in st21nfca_hci_dep_link_up()
Dst21nfca.h176 int st21nfca_im_send_atr_req(struct nfc_hci_dev *hdev, u8 *gb, size_t gb_len);
/Linux-v5.4/net/nfc/
Ddigital_dep.c407 u8 gb_len, payload_bits; in digital_in_recv_atr_res() local
434 gb_len = resp->len - sizeof(struct digital_atr_res); in digital_in_recv_atr_res()
451 rc = nfc_set_remote_general_bytes(ddev->nfc_dev, atr_res->gb, gb_len); in digital_in_recv_atr_res()
476 size_t gb_len) in digital_in_send_atr_req() argument
484 size = DIGITAL_ATR_REQ_MIN_SIZE + gb_len; in digital_in_send_atr_req()
515 if (gb_len) { in digital_in_send_atr_req()
517 skb_put_data(skb, gb, gb_len); in digital_in_send_atr_req()
1496 size_t gb_len; in digital_tg_send_atr_res() local
1499 gb = nfc_get_local_general_bytes(ddev->nfc_dev, &gb_len); in digital_tg_send_atr_res()
1501 gb_len = 0; in digital_tg_send_atr_res()
[all …]
Dllcp_core.c528 u8 gb_len = 0; in nfc_llcp_build_gb() local
538 gb_len += version_length; in nfc_llcp_build_gb()
545 gb_len += lto_length; in nfc_llcp_build_gb()
553 gb_len += wks_length; in nfc_llcp_build_gb()
561 gb_len += miux_length; in nfc_llcp_build_gb()
563 gb_len += ARRAY_SIZE(llcp_magic); in nfc_llcp_build_gb()
565 if (gb_len > NFC_MAX_GT_LEN) { in nfc_llcp_build_gb()
587 local->gb_len = gb_len; in nfc_llcp_build_gb()
610 *general_bytes_len = local->gb_len; in nfc_llcp_general_bytes()
615 int nfc_llcp_set_remote_gb(struct nfc_dev *dev, u8 *gb, u8 gb_len) in nfc_llcp_set_remote_gb() argument
[all …]
Dcore.c283 size_t gb_len; in nfc_dep_link_up() local
303 gb = nfc_llcp_general_bytes(dev, &gb_len); in nfc_dep_link_up()
304 if (gb_len > NFC_MAX_GT_LEN) { in nfc_dep_link_up()
315 rc = dev->ops->dep_link_up(dev, target, comm_mode, gb, gb_len); in nfc_dep_link_up()
637 int nfc_set_remote_general_bytes(struct nfc_dev *dev, u8 *gb, u8 gb_len) in nfc_set_remote_general_bytes() argument
639 pr_debug("dev_name=%s gb_len=%d\n", dev_name(&dev->dev), gb_len); in nfc_set_remote_general_bytes()
641 return nfc_llcp_set_remote_gb(dev, gb, gb_len); in nfc_set_remote_general_bytes()
645 u8 *nfc_get_local_general_bytes(struct nfc_dev *dev, size_t *gb_len) in nfc_get_local_general_bytes() argument
649 return nfc_llcp_general_bytes(dev, gb_len); in nfc_get_local_general_bytes()
666 u8 *gb, size_t gb_len) in nfc_tm_activated() argument
[all …]
Ddigital.h82 size_t gb_len);
Dnfc.h51 int nfc_llcp_set_remote_gb(struct nfc_dev *dev, u8 *gb, u8 gb_len);
Dllcp.h79 u8 gb_len; member
Ddigital_core.c589 __u8 comm_mode, __u8 *gb, size_t gb_len) in digital_dep_link_up() argument
594 rc = digital_in_send_atr_req(ddev, target, comm_mode, gb, gb_len); in digital_dep_link_up()
/Linux-v5.4/include/net/nfc/
Dnfc.h55 u8 comm_mode, u8 *gb, size_t gb_len);
270 u8 *nfc_get_local_general_bytes(struct nfc_dev *dev, size_t *gb_len);
283 u8 *gb, size_t gb_len);
Dhci.h30 u8 comm_mode, u8 *gb, size_t gb_len);
148 size_t gb_len; member
/Linux-v5.4/drivers/nfc/microread/
Dmicroread.c256 &hdev->gb_len); in microread_start_poll()
257 if (hdev->gb == NULL || hdev->gb_len == 0) { in microread_start_poll()
277 hdev->gb, hdev->gb_len); in microread_start_poll()
285 hdev->gb, hdev->gb_len); in microread_start_poll()
303 u8 *gb, size_t gb_len) in microread_dep_link_up() argument
/Linux-v5.4/drivers/nfc/pn544/
Dpn544.c382 &hdev->gb_len); in pn544_hci_start_poll()
384 if (hdev->gb == NULL || hdev->gb_len == 0) { in pn544_hci_start_poll()
405 PN544_DEP_ATR_REQ, hdev->gb, hdev->gb_len); in pn544_hci_start_poll()
425 PN544_DEP_ATR_RES, hdev->gb, hdev->gb_len); in pn544_hci_start_poll()
446 u8 *gb, size_t gb_len) in pn544_hci_dep_link_up() argument
/Linux-v5.4/drivers/nfc/pn533/
Dpn533.c1000 size_t gbytes_len = dev->gb_len; in pn533_alloc_poll_tg_frame()
1185 size_t gb_len; in pn533_init_target_complete() local
1207 gb_len = resp->len - (ATR_REQ_GB_OFFSET + 1); in pn533_init_target_complete()
1210 comm_mode, gb, gb_len); in pn533_init_target_complete()
1345 dev->gb = nfc_get_local_general_bytes(nfc_dev, &dev->gb_len); in pn533_poll_dep()
1347 if (!dev->gb || !dev->gb_len) { in pn533_poll_dep()
1353 skb_len = 3 + dev->gb_len; /* ActPass + BR + Next */ in pn533_poll_dep()
1380 skb_put_data(skb, dev->gb, dev->gb_len); in pn533_poll_dep()
1555 dev->gb = nfc_get_local_general_bytes(nfc_dev, &dev->gb_len); in pn533_start_poll()
1802 u8 comm_mode, u8 *gb, size_t gb_len) in pn533_dep_link_up() argument
[all …]
Dpn533.h160 size_t gb_len; member
/Linux-v5.4/net/nfc/hci/
Dcore.c651 __u8 comm_mode, __u8 *gb, size_t gb_len) in hci_dep_link_up() argument
659 gb, gb_len); in hci_dep_link_up()
/Linux-v5.4/Documentation/driver-api/nfc/
Dnfc-hci.rst74 u8 comm_mode, u8 *gb, size_t gb_len);
/Linux-v5.4/net/nfc/nci/
Dcore.c942 __u8 comm_mode, __u8 *gb, size_t gb_len) in nci_dep_link_up() argument