/linux-4.1.27/net/nfc/ |
H A D | rawsock.c | 101 pr_debug("addr dev_idx=%u target_idx=%u protocol=%u\n", rawsock_connect() 102 addr->dev_idx, addr->target_idx, addr->nfc_protocol); rawsock_connect() 117 if (addr->target_idx > dev->target_next_idx - 1 || rawsock_connect() 118 addr->target_idx < dev->target_next_idx - dev->n_targets) { rawsock_connect() 123 rc = nfc_activate_target(dev, addr->target_idx, addr->nfc_protocol); rawsock_connect() 128 nfc_rawsock(sk)->target_idx = addr->target_idx; rawsock_connect() 192 u32 target_idx = nfc_rawsock(sk)->target_idx; rawsock_tx_work() local 196 pr_debug("sk=%p target_idx=%u\n", sk, target_idx); rawsock_tx_work() 206 rc = nfc_data_exchange(dev, target_idx, skb, rawsock_tx_work() 324 nfc_rawsock(sk)->target_idx); rawsock_destruct()
|
H A D | nfc.h | 39 u32 target_idx; member in struct:nfc_rawsock 56 void nfc_llcp_mac_is_up(struct nfc_dev *dev, u32 target_idx, 87 int nfc_genl_target_lost(struct nfc_dev *dev, u32 target_idx); 92 int nfc_genl_dep_link_up_event(struct nfc_dev *dev, u32 target_idx, 144 int nfc_dep_link_up(struct nfc_dev *dev, int target_idx, u8 comm_mode); 148 int nfc_activate_target(struct nfc_dev *dev, u32 target_idx, u32 protocol); 150 int nfc_deactivate_target(struct nfc_dev *dev, u32 target_idx); 152 int nfc_data_exchange(struct nfc_dev *dev, u32 target_idx, struct sk_buff *skb,
|
H A D | core.c | 279 static struct nfc_target *nfc_find_target(struct nfc_dev *dev, u32 target_idx) nfc_find_target() argument 284 if (dev->targets[i].idx == target_idx) nfc_find_target() 374 int nfc_dep_link_is_up(struct nfc_dev *dev, u32 target_idx, nfc_dep_link_is_up() argument 382 target = nfc_find_target(dev, target_idx); nfc_dep_link_is_up() 392 nfc_llcp_mac_is_up(dev, target_idx, comm_mode, rf_mode); nfc_dep_link_is_up() 394 return nfc_genl_dep_link_up_event(dev, target_idx, comm_mode, rf_mode); nfc_dep_link_is_up() 402 * @target_idx: index of the target that must be activated 405 int nfc_activate_target(struct nfc_dev *dev, u32 target_idx, u32 protocol) nfc_activate_target() argument 410 pr_debug("dev_name=%s target_idx=%u protocol=%u\n", nfc_activate_target() 411 dev_name(&dev->dev), target_idx, protocol); nfc_activate_target() 425 target = nfc_find_target(dev, target_idx); nfc_activate_target() 450 * @target_idx: index of the target that must be deactivated 452 int nfc_deactivate_target(struct nfc_dev *dev, u32 target_idx) nfc_deactivate_target() argument 456 pr_debug("dev_name=%s target_idx=%u\n", nfc_deactivate_target() 457 dev_name(&dev->dev), target_idx); nfc_deactivate_target() 471 if (dev->active_target->idx != target_idx) { nfc_deactivate_target() 491 * @target_idx: index of the target 498 int nfc_data_exchange(struct nfc_dev *dev, u32 target_idx, struct sk_buff *skb, nfc_data_exchange() argument 503 pr_debug("dev_name=%s target_idx=%u skb->len=%u\n", nfc_data_exchange() 504 dev_name(&dev->dev), target_idx, skb->len); nfc_data_exchange() 515 if (dev->active_target->idx != target_idx) { nfc_data_exchange() 824 * @target_idx: the nfc index of the target 832 int nfc_target_lost(struct nfc_dev *dev, u32 target_idx) nfc_target_lost() argument 837 pr_debug("dev_name %s n_target %d\n", dev_name(&dev->dev), target_idx); nfc_target_lost() 843 if (tg->idx == target_idx) nfc_target_lost() 866 nfc_genl_target_lost(dev, target_idx); nfc_target_lost()
|
H A D | llcp_sock.c | 506 pr_debug("%p %d %d %d\n", sk, llcp_sock->target_idx, llcp_sock_getname() 514 llcp_addr->target_idx = llcp_sock->target_idx; llcp_sock_getname() 665 pr_debug("addr dev_idx=%u target_idx=%u protocol=%u\n", addr->dev_idx, llcp_sock_connect() 666 addr->target_idx, addr->nfc_protocol); llcp_sock_connect() 696 addr->target_idx != local->target_idx) { llcp_sock_connect()
|
H A D | llcp.h | 78 u32 target_idx; member in struct:nfc_llcp_local 119 u32 target_idx; member in struct:nfc_llcp_sock
|
H A D | netlink.c | 213 int nfc_genl_target_lost(struct nfc_dev *dev, u32 target_idx) nfc_genl_target_lost() argument 228 nla_put_u32(msg, NFC_ATTR_TARGET_INDEX, target_idx)) nfc_genl_target_lost() 629 int nfc_genl_dep_link_up_event(struct nfc_dev *dev, u32 target_idx, nfc_genl_dep_link_up_event() argument 648 nla_put_u32(msg, NFC_ATTR_TARGET_INDEX, target_idx)) nfc_genl_dep_link_up_event() 865 u32 device_idx, target_idx, protocol; nfc_genl_activate_target() local 877 target_idx = nla_get_u32(info->attrs[NFC_ATTR_TARGET_INDEX]); nfc_genl_activate_target() 880 nfc_deactivate_target(dev, target_idx); nfc_genl_activate_target() 881 rc = nfc_activate_target(dev, target_idx, protocol); nfc_genl_activate_target()
|
H A D | llcp_core.c | 754 ret = nfc_data_exchange(local->dev, local->target_idx, nfc_llcp_tx_work() 952 new_sock->target_idx = local->target_idx; nfc_llcp_recv_connect() 1540 void nfc_llcp_mac_is_up(struct nfc_dev *dev, u32 target_idx, nfc_llcp_mac_is_up() argument 1551 local->target_idx = target_idx; nfc_llcp_mac_is_up()
|
H A D | llcp_commands.c | 392 return nfc_data_exchange(dev, local->target_idx, skb, nfc_llcp_send_symm()
|
/linux-4.1.27/net/core/ |
H A D | netprio_cgroup.c | 34 * @target_idx. @dev->priomap.priomap_len > @target_idx after successful 37 static int extend_netdev_table(struct net_device *dev, u32 target_idx) extend_netdev_table() argument 44 if (old && old->priomap_len > target_idx) extend_netdev_table() 50 * accommodate @target_idx. extend_netdev_table() 56 if (new_len > target_idx) extend_netdev_table()
|
/linux-4.1.27/include/net/nfc/ |
H A D | nfc.h | 278 int nfc_target_lost(struct nfc_dev *dev, u32 target_idx); 280 int nfc_dep_link_is_up(struct nfc_dev *dev, u32 target_idx,
|
/linux-4.1.27/include/uapi/linux/ |
H A D | nfc.h | 254 __u32 target_idx; member in struct:sockaddr_nfc 262 __u32 target_idx; member in struct:sockaddr_nfc_llcp
|
/linux-4.1.27/drivers/nfc/ |
H A D | nfcsim.c | 137 DEV_DBG(dev, "target_idx: %d, comm_mode: %d\n", target->idx, comm_mode); nfcsim_dep_link_up()
|
/linux-4.1.27/net/nfc/nci/ |
H A D | core.c | 692 pr_debug("target_idx %d, protocol 0x%x\n", target->idx, protocol); nci_activate_target() 776 pr_debug("target_idx %d, comm_mode %d\n", target->idx, comm_mode); nci_dep_link_up() 828 pr_debug("target_idx %d, len %d\n", target->idx, skb->len); nci_transceive()
|
/linux-4.1.27/net/nfc/hci/ |
H A D | core.c | 717 pr_debug("target_idx=%d\n", target->idx); hci_transceive()
|