Home
last modified time | relevance | path

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

/Linux-v4.19/net/nfc/
Dnfc.h42 u32 target_idx; member
59 void nfc_llcp_mac_is_up(struct nfc_dev *dev, u32 target_idx,
90 int nfc_genl_target_lost(struct nfc_dev *dev, u32 target_idx);
95 int nfc_genl_dep_link_up_event(struct nfc_dev *dev, u32 target_idx,
148 int nfc_dep_link_up(struct nfc_dev *dev, int target_idx, u8 comm_mode);
152 int nfc_activate_target(struct nfc_dev *dev, u32 target_idx, u32 protocol);
154 int nfc_deactivate_target(struct nfc_dev *dev, u32 target_idx, u8 mode);
156 int nfc_data_exchange(struct nfc_dev *dev, u32 target_idx, struct sk_buff *skb,
Drawsock.c102 addr->dev_idx, addr->target_idx, addr->nfc_protocol); in rawsock_connect()
117 if (addr->target_idx > dev->target_next_idx - 1 || in rawsock_connect()
118 addr->target_idx < dev->target_next_idx - dev->n_targets) { in rawsock_connect()
123 rc = nfc_activate_target(dev, addr->target_idx, addr->nfc_protocol); in rawsock_connect()
128 nfc_rawsock(sk)->target_idx = addr->target_idx; in rawsock_connect()
192 u32 target_idx = nfc_rawsock(sk)->target_idx; in rawsock_tx_work() local
196 pr_debug("sk=%p target_idx=%u\n", sk, target_idx); in rawsock_tx_work()
206 rc = nfc_data_exchange(dev, target_idx, skb, in rawsock_tx_work()
324 nfc_rawsock(sk)->target_idx, in rawsock_destruct()
Dcore.c279 static struct nfc_target *nfc_find_target(struct nfc_dev *dev, u32 target_idx) in nfc_find_target() argument
284 if (dev->targets[i].idx == target_idx) in nfc_find_target()
374 int nfc_dep_link_is_up(struct nfc_dev *dev, u32 target_idx, in nfc_dep_link_is_up() argument
382 target = nfc_find_target(dev, target_idx); in nfc_dep_link_is_up()
392 nfc_llcp_mac_is_up(dev, target_idx, comm_mode, rf_mode); in nfc_dep_link_is_up()
394 return nfc_genl_dep_link_up_event(dev, target_idx, comm_mode, rf_mode); in nfc_dep_link_is_up()
405 int nfc_activate_target(struct nfc_dev *dev, u32 target_idx, u32 protocol) in nfc_activate_target() argument
411 dev_name(&dev->dev), target_idx, protocol); in nfc_activate_target()
425 target = nfc_find_target(dev, target_idx); in nfc_activate_target()
452 int nfc_deactivate_target(struct nfc_dev *dev, u32 target_idx, u8 mode) in nfc_deactivate_target() argument
[all …]
Dnetlink.c214 int nfc_genl_target_lost(struct nfc_dev *dev, u32 target_idx) in nfc_genl_target_lost() argument
229 nla_put_u32(msg, NFC_ATTR_TARGET_INDEX, target_idx)) in nfc_genl_target_lost()
660 int nfc_genl_dep_link_up_event(struct nfc_dev *dev, u32 target_idx, in nfc_genl_dep_link_up_event() argument
679 nla_put_u32(msg, NFC_ATTR_TARGET_INDEX, target_idx)) in nfc_genl_dep_link_up_event()
894 u32 device_idx, target_idx, protocol; in nfc_genl_activate_target() local
908 target_idx = nla_get_u32(info->attrs[NFC_ATTR_TARGET_INDEX]); in nfc_genl_activate_target()
911 nfc_deactivate_target(dev, target_idx, NFC_TARGET_MODE_SLEEP); in nfc_genl_activate_target()
912 rc = nfc_activate_target(dev, target_idx, protocol); in nfc_genl_activate_target()
922 u32 device_idx, target_idx; in nfc_genl_deactivate_target() local
934 target_idx = nla_get_u32(info->attrs[NFC_ATTR_TARGET_INDEX]); in nfc_genl_deactivate_target()
[all …]
Dllcp_sock.c509 pr_debug("%p %d %d %d\n", sk, llcp_sock->target_idx, in llcp_sock_getname()
521 llcp_addr->target_idx = llcp_sock->target_idx; in llcp_sock_getname()
673 addr->target_idx, addr->nfc_protocol); in llcp_sock_connect()
703 addr->target_idx != local->target_idx) { in llcp_sock_connect()
Dllcp.h78 u32 target_idx; member
119 u32 target_idx; member
Dllcp_core.c753 ret = nfc_data_exchange(local->dev, local->target_idx, in nfc_llcp_tx_work()
951 new_sock->target_idx = local->target_idx; in nfc_llcp_recv_connect()
1539 void nfc_llcp_mac_is_up(struct nfc_dev *dev, u32 target_idx, in nfc_llcp_mac_is_up() argument
1550 local->target_idx = target_idx; in nfc_llcp_mac_is_up()
Dllcp_commands.c396 return nfc_data_exchange(dev, local->target_idx, skb, in nfc_llcp_send_symm()
/Linux-v4.19/arch/nds32/mm/
Dalignment.c199 unsigned long unaligned_addr, target_val, source_idx, target_idx, in do_16() local
281 target_idx = RT3(inst); in do_16()
283 target_idx = RT4(inst); in do_16()
296 *idx_to_addr(regs, target_idx) = target_val; in do_16()
300 target_val = *idx_to_addr(regs, target_idx); in do_16()
/Linux-v4.19/net/core/
Dnetprio_cgroup.c45 static int extend_netdev_table(struct net_device *dev, u32 target_idx) in extend_netdev_table() argument
52 if (old && old->priomap_len > target_idx) in extend_netdev_table()
64 if (new_len > target_idx) in extend_netdev_table()
/Linux-v4.19/include/uapi/linux/
Dnfc.h268 __u32 target_idx; member
276 __u32 target_idx; member
/Linux-v4.19/include/net/nfc/
Dnfc.h289 int nfc_target_lost(struct nfc_dev *dev, u32 target_idx);
291 int nfc_dep_link_is_up(struct nfc_dev *dev, u32 target_idx,
/Linux-v4.19/Documentation/networking/
Dnfc.txt109 __u32 target_idx;
/Linux-v4.19/arch/mips/net/
Debpf_jit.c139 static unsigned int j_target(struct jit_ctx *ctx, int target_idx) in j_target() argument
148 target_va = base_va + (ctx->offsets[target_idx] & ~OFFSETS_B_CONV); in j_target()