Home
last modified time | relevance | path

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

12

/kernel/linux/linux-5.10/net/nfc/
H A Dnfc.h30 u32 target_idx; member
47 void nfc_llcp_mac_is_up(struct nfc_dev *dev, u32 target_idx,
79 int nfc_genl_target_lost(struct nfc_dev *dev, u32 target_idx);
84 int nfc_genl_dep_link_up_event(struct nfc_dev *dev, u32 target_idx,
137 int nfc_dep_link_up(struct nfc_dev *dev, int target_idx, u8 comm_mode);
141 int nfc_activate_target(struct nfc_dev *dev, u32 target_idx, u32 protocol);
143 int nfc_deactivate_target(struct nfc_dev *dev, u32 target_idx, u8 mode);
145 int nfc_data_exchange(struct nfc_dev *dev, u32 target_idx, struct sk_buff *skb,
H A Dcore.c267 static struct nfc_target *nfc_find_target(struct nfc_dev *dev, u32 target_idx) in nfc_find_target() argument
272 if (dev->targets[i].idx == target_idx) in nfc_find_target()
362 int nfc_dep_link_is_up(struct nfc_dev *dev, u32 target_idx, in nfc_dep_link_is_up() argument
370 target = nfc_find_target(dev, target_idx); in nfc_dep_link_is_up()
380 nfc_llcp_mac_is_up(dev, target_idx, comm_mode, rf_mode); in nfc_dep_link_is_up()
382 return nfc_genl_dep_link_up_event(dev, target_idx, comm_mode, rf_mode); in nfc_dep_link_is_up()
390 * @target_idx: index of the target that must be activated
393 int nfc_activate_target(struct nfc_dev *dev, u32 target_idx, u32 protocol) in nfc_activate_target() argument
398 pr_debug("dev_name=%s target_idx=%u protocol=%u\n", in nfc_activate_target()
399 dev_name(&dev->dev), target_idx, protoco in nfc_activate_target()
440 nfc_deactivate_target(struct nfc_dev *dev, u32 target_idx, u8 mode) nfc_deactivate_target() argument
486 nfc_data_exchange(struct nfc_dev *dev, u32 target_idx, struct sk_buff *skb, data_exchange_cb_t cb, void *cb_context) nfc_data_exchange() argument
819 nfc_target_lost(struct nfc_dev *dev, u32 target_idx) nfc_target_lost() argument
[all...]
H A Drawsock.c89 pr_debug("addr dev_idx=%u target_idx=%u protocol=%u\n", in rawsock_connect()
90 addr->dev_idx, addr->target_idx, addr->nfc_protocol); in rawsock_connect()
105 if (addr->target_idx > dev->target_next_idx - 1 || in rawsock_connect()
106 addr->target_idx < dev->target_next_idx - dev->n_targets) { in rawsock_connect()
111 rc = nfc_activate_target(dev, addr->target_idx, addr->nfc_protocol); in rawsock_connect()
116 nfc_rawsock(sk)->target_idx = addr->target_idx; in rawsock_connect()
180 u32 target_idx = nfc_rawsock(sk)->target_idx; in rawsock_tx_work() local
184 pr_debug("sk=%p target_idx in rawsock_tx_work()
[all...]
H A Dllcp_sock.c508 pr_debug("%p %d %d %d\n", sk, llcp_sock->target_idx, in llcp_sock_getname()
520 llcp_addr->target_idx = llcp_sock->target_idx; in llcp_sock_getname()
671 pr_debug("addr dev_idx=%u target_idx=%u protocol=%u\n", addr->dev_idx, in llcp_sock_connect()
672 addr->target_idx, addr->nfc_protocol); in llcp_sock_connect()
706 addr->target_idx != local->target_idx) { in llcp_sock_connect()
H A Dllcp.h66 u32 target_idx; member
107 u32 target_idx; member
H A Dnetlink.c199 int nfc_genl_target_lost(struct nfc_dev *dev, u32 target_idx) in nfc_genl_target_lost() argument
214 nla_put_u32(msg, NFC_ATTR_TARGET_INDEX, target_idx)) in nfc_genl_target_lost()
647 int nfc_genl_dep_link_up_event(struct nfc_dev *dev, u32 target_idx, in nfc_genl_dep_link_up_event() argument
666 nla_put_u32(msg, NFC_ATTR_TARGET_INDEX, target_idx)) in nfc_genl_dep_link_up_event()
882 u32 device_idx, target_idx, protocol; in nfc_genl_activate_target() local
896 target_idx = nla_get_u32(info->attrs[NFC_ATTR_TARGET_INDEX]); in nfc_genl_activate_target()
899 nfc_deactivate_target(dev, target_idx, NFC_TARGET_MODE_SLEEP); in nfc_genl_activate_target()
900 rc = nfc_activate_target(dev, target_idx, protocol); in nfc_genl_activate_target()
910 u32 device_idx, target_idx; in nfc_genl_deactivate_target() local
923 target_idx in nfc_genl_deactivate_target()
[all...]
/kernel/linux/linux-6.6/net/nfc/
H A Dnfc.h30 u32 target_idx; member
47 void nfc_llcp_mac_is_up(struct nfc_dev *dev, u32 target_idx,
79 int nfc_genl_target_lost(struct nfc_dev *dev, u32 target_idx);
84 int nfc_genl_dep_link_up_event(struct nfc_dev *dev, u32 target_idx,
137 int nfc_dep_link_up(struct nfc_dev *dev, int target_idx, u8 comm_mode);
141 int nfc_activate_target(struct nfc_dev *dev, u32 target_idx, u32 protocol);
143 int nfc_deactivate_target(struct nfc_dev *dev, u32 target_idx, u8 mode);
145 int nfc_data_exchange(struct nfc_dev *dev, u32 target_idx, struct sk_buff *skb,
H A Dcore.c268 static struct nfc_target *nfc_find_target(struct nfc_dev *dev, u32 target_idx) in nfc_find_target() argument
273 if (dev->targets[i].idx == target_idx) in nfc_find_target()
363 int nfc_dep_link_is_up(struct nfc_dev *dev, u32 target_idx, in nfc_dep_link_is_up() argument
371 target = nfc_find_target(dev, target_idx); in nfc_dep_link_is_up()
381 nfc_llcp_mac_is_up(dev, target_idx, comm_mode, rf_mode); in nfc_dep_link_is_up()
383 return nfc_genl_dep_link_up_event(dev, target_idx, comm_mode, rf_mode); in nfc_dep_link_is_up()
391 * @target_idx: index of the target that must be activated
394 int nfc_activate_target(struct nfc_dev *dev, u32 target_idx, u32 protocol) in nfc_activate_target() argument
399 pr_debug("dev_name=%s target_idx=%u protocol=%u\n", in nfc_activate_target()
400 dev_name(&dev->dev), target_idx, protoco in nfc_activate_target()
442 nfc_deactivate_target(struct nfc_dev *dev, u32 target_idx, u8 mode) nfc_deactivate_target() argument
488 nfc_data_exchange(struct nfc_dev *dev, u32 target_idx, struct sk_buff *skb, data_exchange_cb_t cb, void *cb_context) nfc_data_exchange() argument
825 nfc_target_lost(struct nfc_dev *dev, u32 target_idx) nfc_target_lost() argument
[all...]
H A Drawsock.c90 pr_debug("addr dev_idx=%u target_idx=%u protocol=%u\n", in rawsock_connect()
91 addr->dev_idx, addr->target_idx, addr->nfc_protocol); in rawsock_connect()
106 if (addr->target_idx > dev->target_next_idx - 1 || in rawsock_connect()
107 addr->target_idx < dev->target_next_idx - dev->n_targets) { in rawsock_connect()
112 rc = nfc_activate_target(dev, addr->target_idx, addr->nfc_protocol); in rawsock_connect()
117 nfc_rawsock(sk)->target_idx = addr->target_idx; in rawsock_connect()
181 u32 target_idx = nfc_rawsock(sk)->target_idx; in rawsock_tx_work() local
185 pr_debug("sk=%p target_idx in rawsock_tx_work()
[all...]
H A Dllcp_sock.c513 pr_debug("%p %d %d %d\n", sk, llcp_sock->target_idx, in llcp_sock_getname()
525 llcp_addr->target_idx = llcp_sock->target_idx; in llcp_sock_getname()
669 pr_debug("addr dev_idx=%u target_idx=%u protocol=%u\n", addr->dev_idx, in llcp_sock_connect()
670 addr->target_idx, addr->nfc_protocol); in llcp_sock_connect()
704 addr->target_idx != local->target_idx) { in llcp_sock_connect()
H A Dllcp.h65 u32 target_idx; member
106 u32 target_idx; member
H A Dnetlink.c199 int nfc_genl_target_lost(struct nfc_dev *dev, u32 target_idx) in nfc_genl_target_lost() argument
214 nla_put_u32(msg, NFC_ATTR_TARGET_INDEX, target_idx)) in nfc_genl_target_lost()
647 int nfc_genl_dep_link_up_event(struct nfc_dev *dev, u32 target_idx, in nfc_genl_dep_link_up_event() argument
666 nla_put_u32(msg, NFC_ATTR_TARGET_INDEX, target_idx)) in nfc_genl_dep_link_up_event()
882 u32 device_idx, target_idx, protocol; in nfc_genl_activate_target() local
896 target_idx = nla_get_u32(info->attrs[NFC_ATTR_TARGET_INDEX]); in nfc_genl_activate_target()
899 nfc_deactivate_target(dev, target_idx, NFC_TARGET_MODE_SLEEP); in nfc_genl_activate_target()
900 rc = nfc_activate_target(dev, target_idx, protocol); in nfc_genl_activate_target()
910 u32 device_idx, target_idx; in nfc_genl_deactivate_target() local
923 target_idx in nfc_genl_deactivate_target()
[all...]
/kernel/linux/linux-5.10/net/core/
H A Dnetprio_cgroup.c38 * @target_idx. @dev->priomap.priomap_len > @target_idx after successful
41 static int extend_netdev_table(struct net_device *dev, u32 target_idx) in extend_netdev_table() argument
48 if (old && old->priomap_len > target_idx) in extend_netdev_table()
54 * accommodate @target_idx. in extend_netdev_table()
60 if (new_len > target_idx) in extend_netdev_table()
/kernel/linux/linux-6.6/net/core/
H A Dnetprio_cgroup.c38 * @target_idx. @dev->priomap.priomap_len > @target_idx after successful
41 static int extend_netdev_table(struct net_device *dev, u32 target_idx) in extend_netdev_table() argument
48 if (old && old->priomap_len > target_idx) in extend_netdev_table()
54 * accommodate @target_idx. in extend_netdev_table()
60 if (new_len > target_idx) in extend_netdev_table()
/kernel/linux/linux-5.10/arch/nds32/mm/
H A 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()
/kernel/linux/linux-5.10/include/uapi/linux/
H A Dnfc.h268 __u32 target_idx; member
276 __u32 target_idx; member
/kernel/linux/linux-6.6/include/uapi/linux/
H A Dnfc.h268 __u32 target_idx; member
276 __u32 target_idx; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
H A Dnfc.h131 __u32 target_idx; member
138 __u32 target_idx; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
H A Dnfc.h144 __u32 target_idx; member
151 __u32 target_idx; member
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/linux/
H A Dnfc.h144 __u32 target_idx; member
151 __u32 target_idx; member
/kernel/linux/linux-6.6/mm/damon/
H A Ddbgfs.c553 int target_idx = 0; in sprint_init_regions() local
561 target_idx, r->ar.start, r->ar.end); in sprint_init_regions()
566 target_idx++; in sprint_init_regions()
600 static int add_init_region(struct damon_ctx *c, int target_idx, in add_init_region() argument
612 if (idx++ == target_idx) { in add_init_region()
635 int target_idx; in set_init_regions() local
646 &target_idx, &ar.start, &ar.end, &parsed); in set_init_regions()
649 err = add_init_region(c, target_idx, &ar); in set_init_regions()
H A Dcore.c863 int target_idx = 0; in __damos_filter_out() local
871 target_idx++; in __damos_filter_out()
873 matched = target_idx == filter->target_idx; in __damos_filter_out()
/kernel/linux/linux-6.6/tools/testing/selftests/nci/
H A Dnci_dev.c695 int connect_socket(int dev_idx, int target_idx) in connect_socket() argument
707 addr.target_idx = target_idx; in connect_socket()
724 int target_idx; in connect_tag() local
739 target_idx = get_taginfo(dev_idx, sd, fid, pid); in connect_tag()
740 if (target_idx == -1) in connect_tag()
742 return connect_socket(dev_idx, target_idx); in connect_tag()
/kernel/linux/linux-5.10/include/net/nfc/
H A Dnfc.h277 int nfc_target_lost(struct nfc_dev *dev, u32 target_idx);
279 int nfc_dep_link_is_up(struct nfc_dev *dev, u32 target_idx,
/kernel/linux/linux-6.6/include/net/nfc/
H A Dnfc.h277 int nfc_target_lost(struct nfc_dev *dev, u32 target_idx);
279 int nfc_dep_link_is_up(struct nfc_dev *dev, u32 target_idx,

Completed in 26 milliseconds

12