/Linux-v6.6/drivers/nfc/st21nfca/ |
D | dep.c | 145 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() 194 size_t gb_len; in st21nfca_tm_recv_atr_req() local 214 gb_len = skb->len - sizeof(struct st21nfca_atr_req); in st21nfca_tm_recv_atr_req() 217 NFC_COMM_PASSIVE, atr_req->gbi, gb_len); in st21nfca_tm_recv_atr_req() 491 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 …]
|
D | core.c | 355 &hdev->gb_len); in st21nfca_hci_start_poll() 357 if (hdev->gb == NULL || hdev->gb_len == 0) { in st21nfca_hci_start_poll() 598 u8 *gb, size_t gb_len) in st21nfca_hci_dep_link_up() argument 603 return st21nfca_im_send_atr_req(hdev, gb, gb_len); in st21nfca_hci_dep_link_up()
|
D | st21nfca.h | 177 int st21nfca_im_send_atr_req(struct nfc_hci_dev *hdev, u8 *gb, size_t gb_len);
|
/Linux-v6.6/net/nfc/ |
D | digital_dep.c | 404 u8 gb_len, payload_bits; in digital_in_recv_atr_res() local 431 gb_len = resp->len - sizeof(struct digital_atr_res); in digital_in_recv_atr_res() 448 rc = nfc_set_remote_general_bytes(ddev->nfc_dev, atr_res->gb, gb_len); in digital_in_recv_atr_res() 473 size_t gb_len) in digital_in_send_atr_req() argument 481 size = DIGITAL_ATR_REQ_MIN_SIZE + gb_len; in digital_in_send_atr_req() 512 if (gb_len) { in digital_in_send_atr_req() 514 skb_put_data(skb, gb, gb_len); in digital_in_send_atr_req() 1495 size_t gb_len; in digital_tg_send_atr_res() local 1498 gb = nfc_get_local_general_bytes(ddev->nfc_dev, &gb_len); in digital_tg_send_atr_res() 1500 gb_len = 0; in digital_tg_send_atr_res() [all …]
|
D | llcp_core.c | 549 u8 gb_len = 0; in nfc_llcp_build_gb() local 559 gb_len += version_length; in nfc_llcp_build_gb() 566 gb_len += lto_length; in nfc_llcp_build_gb() 574 gb_len += wks_length; in nfc_llcp_build_gb() 582 gb_len += miux_length; in nfc_llcp_build_gb() 584 gb_len += ARRAY_SIZE(llcp_magic); in nfc_llcp_build_gb() 586 if (gb_len > NFC_MAX_GT_LEN) { in nfc_llcp_build_gb() 608 local->gb_len = gb_len; in nfc_llcp_build_gb() 631 *general_bytes_len = local->gb_len; in nfc_llcp_general_bytes() 638 int nfc_llcp_set_remote_gb(struct nfc_dev *dev, const u8 *gb, u8 gb_len) in nfc_llcp_set_remote_gb() argument [all …]
|
D | core.c | 284 size_t gb_len; in nfc_dep_link_up() local 304 gb = nfc_llcp_general_bytes(dev, &gb_len); in nfc_dep_link_up() 305 if (gb_len > NFC_MAX_GT_LEN) { in nfc_dep_link_up() 316 rc = dev->ops->dep_link_up(dev, target, comm_mode, gb, gb_len); in nfc_dep_link_up() 639 int nfc_set_remote_general_bytes(struct nfc_dev *dev, const u8 *gb, u8 gb_len) in nfc_set_remote_general_bytes() argument 641 pr_debug("dev_name=%s gb_len=%d\n", dev_name(&dev->dev), gb_len); in nfc_set_remote_general_bytes() 643 return nfc_llcp_set_remote_gb(dev, gb, gb_len); in nfc_set_remote_general_bytes() 647 u8 *nfc_get_local_general_bytes(struct nfc_dev *dev, size_t *gb_len) in nfc_get_local_general_bytes() argument 651 return nfc_llcp_general_bytes(dev, gb_len); in nfc_get_local_general_bytes() 668 const u8 *gb, size_t gb_len) in nfc_tm_activated() argument [all …]
|
D | digital.h | 82 size_t gb_len);
|
D | nfc.h | 51 int nfc_llcp_set_remote_gb(struct nfc_dev *dev, const u8 *gb, u8 gb_len);
|
D | llcp.h | 78 u8 gb_len; member
|
D | digital_core.c | 597 __u8 comm_mode, __u8 *gb, size_t gb_len) in digital_dep_link_up() argument 602 rc = digital_in_send_atr_req(ddev, target, comm_mode, gb, gb_len); in digital_dep_link_up()
|
/Linux-v6.6/include/net/nfc/ |
D | nfc.h | 55 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 const u8 *gb, size_t gb_len);
|
D | hci.h | 30 u8 comm_mode, u8 *gb, size_t gb_len); 148 size_t gb_len; member
|
/Linux-v6.6/drivers/nfc/microread/ |
D | microread.c | 255 &hdev->gb_len); in microread_start_poll() 256 if (hdev->gb == NULL || hdev->gb_len == 0) { in microread_start_poll() 276 hdev->gb, hdev->gb_len); in microread_start_poll() 284 hdev->gb, hdev->gb_len); in microread_start_poll() 302 u8 *gb, size_t gb_len) in microread_dep_link_up() argument
|
/Linux-v6.6/drivers/nfc/pn544/ |
D | pn544.c | 381 &hdev->gb_len); in pn544_hci_start_poll() 383 if (hdev->gb == NULL || hdev->gb_len == 0) { in pn544_hci_start_poll() 404 PN544_DEP_ATR_REQ, hdev->gb, hdev->gb_len); in pn544_hci_start_poll() 424 PN544_DEP_ATR_RES, hdev->gb, hdev->gb_len); in pn544_hci_start_poll() 445 u8 *gb, size_t gb_len) in pn544_hci_dep_link_up() argument
|
/Linux-v6.6/drivers/nfc/pn533/ |
D | pn533.c | 1021 size_t gbytes_len = dev->gb_len; in pn533_alloc_poll_tg_frame() 1198 size_t gb_len; in pn533_init_target_complete() local 1218 gb_len = resp->len - (ATR_REQ_GB_OFFSET + 1); in pn533_init_target_complete() 1221 comm_mode, gb, gb_len); in pn533_init_target_complete() 1350 dev->gb = nfc_get_local_general_bytes(nfc_dev, &dev->gb_len); in pn533_poll_dep() 1352 if (!dev->gb || !dev->gb_len) { in pn533_poll_dep() 1358 skb_len = 3 + dev->gb_len; /* ActPass + BR + Next */ in pn533_poll_dep() 1385 skb_put_data(skb, dev->gb, dev->gb_len); in pn533_poll_dep() 1654 dev->gb = nfc_get_local_general_bytes(nfc_dev, &dev->gb_len); in pn533_start_poll() 1961 u8 comm_mode, u8 *gb, size_t gb_len) in pn533_dep_link_up() argument [all …]
|
D | pn533.h | 170 size_t gb_len; member
|
/Linux-v6.6/net/nfc/hci/ |
D | core.c | 664 __u8 comm_mode, __u8 *gb, size_t gb_len) in hci_dep_link_up() argument 672 gb, gb_len); in hci_dep_link_up()
|
/Linux-v6.6/Documentation/driver-api/nfc/ |
D | nfc-hci.rst | 74 u8 comm_mode, u8 *gb, size_t gb_len);
|
/Linux-v6.6/net/nfc/nci/ |
D | core.c | 975 __u8 comm_mode, __u8 *gb, size_t gb_len) in nci_dep_link_up() argument
|