Searched refs:target_idx (Results 1 - 14 of 14) sorted by relevance

/linux-4.1.27/net/nfc/
H A Drawsock.c101 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 Dnfc.h39 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 Dcore.c279 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 Dllcp_sock.c506 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 Dllcp.h78 u32 target_idx; member in struct:nfc_llcp_local
119 u32 target_idx; member in struct:nfc_llcp_sock
H A Dnetlink.c213 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 Dllcp_core.c754 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 Dllcp_commands.c392 return nfc_data_exchange(dev, local->target_idx, skb, nfc_llcp_send_symm()
/linux-4.1.27/net/core/
H A Dnetprio_cgroup.c34 * @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 Dnfc.h278 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 Dnfc.h254 __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 Dnfcsim.c137 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 Dcore.c692 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 Dcore.c717 pr_debug("target_idx=%d\n", target->idx); hci_transceive()

Completed in 295 milliseconds