/net/netlabel/ |
D | netlabel_addrlist.c | 63 struct netlbl_af4list *iter; in netlbl_af4list_search() local 65 list_for_each_entry_rcu(iter, head, list) in netlbl_af4list_search() 66 if (iter->valid && (addr & iter->mask) == iter->addr) in netlbl_af4list_search() 67 return iter; in netlbl_af4list_search() 88 struct netlbl_af4list *iter; in netlbl_af4list_search_exact() local 90 list_for_each_entry_rcu(iter, head, list) in netlbl_af4list_search_exact() 91 if (iter->valid && iter->addr == addr && iter->mask == mask) in netlbl_af4list_search_exact() 92 return iter; in netlbl_af4list_search_exact() 113 struct netlbl_af6list *iter; in netlbl_af6list_search() local 115 list_for_each_entry_rcu(iter, head, list) in netlbl_af6list_search() [all …]
|
D | netlabel_addrlist.h | 96 #define netlbl_af4list_foreach(iter, head) \ argument 97 for (iter = __af4list_valid((head)->next, head); \ 98 &iter->list != (head); \ 99 iter = __af4list_valid(iter->list.next, head)) 101 #define netlbl_af4list_foreach_rcu(iter, head) \ argument 102 for (iter = __af4list_valid_rcu((head)->next, head); \ 103 &iter->list != (head); \ 104 iter = __af4list_valid_rcu(iter->list.next, head)) 106 #define netlbl_af4list_foreach_safe(iter, tmp, head) \ argument 107 for (iter = __af4list_valid((head)->next, head), \ [all …]
|
D | netlabel_kapi.c | 431 struct netlbl_lsm_catmap *iter = *catmap; in _netlbl_catmap_getnode() local 434 if (iter == NULL) in _netlbl_catmap_getnode() 436 if (offset < iter->startbit) in _netlbl_catmap_getnode() 438 while (iter && offset >= (iter->startbit + NETLBL_CATMAP_SIZE)) { in _netlbl_catmap_getnode() 439 prev = iter; in _netlbl_catmap_getnode() 440 iter = iter->next; in _netlbl_catmap_getnode() 442 if (iter == NULL || offset < iter->startbit) in _netlbl_catmap_getnode() 445 return iter; in _netlbl_catmap_getnode() 449 return iter; in _netlbl_catmap_getnode() 454 iter = netlbl_catmap_alloc(gfp_flags); in _netlbl_catmap_getnode() [all …]
|
D | netlabel_cipso_v4.c | 105 u32 iter = 0; in netlbl_cipsov4_add_common() local 116 if (iter >= CIPSO_V4_TAG_MAXCNT) in netlbl_cipsov4_add_common() 118 doi_def->tags[iter++] = nla_get_u8(nla); in netlbl_cipsov4_add_common() 120 while (iter < CIPSO_V4_TAG_MAXCNT) in netlbl_cipsov4_add_common() 121 doi_def->tags[iter++] = CIPSO_V4_TAG_INVALID; in netlbl_cipsov4_add_common() 150 u32 iter; in netlbl_cipsov4_add_std() local 220 for (iter = 0; iter < doi_def->map.std->lvl.local_size; iter++) in netlbl_cipsov4_add_std() 221 doi_def->map.std->lvl.local[iter] = CIPSO_V4_INV_LVL; in netlbl_cipsov4_add_std() 222 for (iter = 0; iter < doi_def->map.std->lvl.cipso_size; iter++) in netlbl_cipsov4_add_std() 223 doi_def->map.std->lvl.cipso[iter] = CIPSO_V4_INV_LVL; in netlbl_cipsov4_add_std() [all …]
|
D | netlabel_domainhash.c | 117 u32 iter; in netlbl_domhsh_hash() local 124 for (iter = 0, val = 0, len = strlen(key); iter < len; iter++) in netlbl_domhsh_hash() 125 val = (val << 4 | (val >> (8 * sizeof(u32) - 4))) ^ key[iter]; in netlbl_domhsh_hash() 144 struct netlbl_dom_map *iter; in netlbl_domhsh_search() local 149 list_for_each_entry_rcu(iter, bkt_list, list) in netlbl_domhsh_search() 150 if (iter->valid && strcmp(iter->domain, domain) == 0) in netlbl_domhsh_search() 151 return iter; in netlbl_domhsh_search() 327 u32 iter; in netlbl_domhsh_init() local 344 for (iter = 0; iter < hsh_tbl->size; iter++) in netlbl_domhsh_init() 345 INIT_LIST_HEAD(&hsh_tbl->tbl[iter]); in netlbl_domhsh_init()
|
D | netlabel_domainhash.h | 56 #define netlbl_domhsh_addr4_entry(iter) \ argument 57 container_of(iter, struct netlbl_domaddr4_map, list) 63 #define netlbl_domhsh_addr6_entry(iter) \ argument 64 container_of(iter, struct netlbl_domaddr6_map, list)
|
/net/rds/ |
D | info.c | 104 void rds_info_iter_unmap(struct rds_info_iterator *iter) in rds_info_iter_unmap() argument 106 if (iter->addr) { in rds_info_iter_unmap() 107 kunmap_atomic(iter->addr); in rds_info_iter_unmap() 108 iter->addr = NULL; in rds_info_iter_unmap() 115 void rds_info_copy(struct rds_info_iterator *iter, void *data, in rds_info_copy() argument 121 if (!iter->addr) in rds_info_copy() 122 iter->addr = kmap_atomic(*iter->pages); in rds_info_copy() 124 this = min(bytes, PAGE_SIZE - iter->offset); in rds_info_copy() 127 "bytes %lu\n", *iter->pages, iter->addr, in rds_info_copy() 128 iter->offset, this, data, bytes); in rds_info_copy() [all …]
|
D | stats.c | 81 void rds_stats_info_copy(struct rds_info_iterator *iter, in rds_stats_info_copy() argument 93 rds_info_copy(iter, &ctr, sizeof(ctr)); in rds_stats_info_copy() 109 struct rds_info_iterator *iter, in rds_stats_info() argument 133 rds_stats_info_copy(iter, (uint64_t *)&stats, rds_stat_names, in rds_stats_info() 139 lens->nr = rds_trans_stats_info_copy(iter, avail) + in rds_stats_info()
|
D | connection.c | 390 struct rds_info_iterator *iter, in rds_conn_message_info() argument 420 rds_inc_info_copy(&rm->m_inc, iter, in rds_conn_message_info() 435 struct rds_info_iterator *iter, in rds_conn_message_info_send() argument 438 rds_conn_message_info(sock, len, iter, lens, 1); in rds_conn_message_info_send() 443 struct rds_info_iterator *iter, in rds_conn_message_info_retrans() argument 446 rds_conn_message_info(sock, len, iter, lens, 0); in rds_conn_message_info_retrans() 450 struct rds_info_iterator *iter, in rds_for_each_conn_info() argument 477 rds_info_copy(iter, buffer, item_len); in rds_for_each_conn_info() 513 struct rds_info_iterator *iter, in rds_conn_info() argument 516 rds_for_each_conn_info(sock, len, iter, lens, in rds_conn_info()
|
D | info.h | 18 struct rds_info_iterator *iter, 25 void rds_info_copy(struct rds_info_iterator *iter, void *data, 27 void rds_info_iter_unmap(struct rds_info_iterator *iter);
|
/net/ipv6/ |
D | ip6_fib.c | 753 struct rt6_info *iter = NULL; in fib6_add_rt2node() local 766 for (iter = fn->leaf; iter; iter = iter->dst.rt6_next) { in fib6_add_rt2node() 771 if (iter->rt6i_metric == rt->rt6i_metric) { in fib6_add_rt2node() 779 if (rt_can_ecmp == rt6_qualify_for_ecmp(iter)) { in fib6_add_rt2node() 787 if (rt6_duplicate_nexthop(iter, rt)) { in fib6_add_rt2node() 790 if (!(iter->rt6i_flags & RTF_EXPIRES)) in fib6_add_rt2node() 793 rt6_clean_expires(iter); in fib6_add_rt2node() 795 rt6_set_expires(iter, rt->dst.expires); in fib6_add_rt2node() 796 iter->rt6i_pmtu = rt->rt6i_pmtu; in fib6_add_rt2node() 811 rt6_qualify_for_ecmp(iter)) in fib6_add_rt2node() [all …]
|
/net/ipv4/ |
D | cipso_ipv4.c | 254 u32 iter; in cipso_v4_cache_init() local 262 for (iter = 0; iter < CIPSO_V4_CACHE_BUCKETS; iter++) { in cipso_v4_cache_init() 263 spin_lock_init(&cipso_v4_cache[iter].lock); in cipso_v4_cache_init() 264 cipso_v4_cache[iter].size = 0; in cipso_v4_cache_init() 265 INIT_LIST_HEAD(&cipso_v4_cache[iter].list); in cipso_v4_cache_init() 282 u32 iter; in cipso_v4_cache_invalidate() local 284 for (iter = 0; iter < CIPSO_V4_CACHE_BUCKETS; iter++) { in cipso_v4_cache_invalidate() 285 spin_lock_bh(&cipso_v4_cache[iter].lock); in cipso_v4_cache_invalidate() 288 &cipso_v4_cache[iter].list, list) { in cipso_v4_cache_invalidate() 292 cipso_v4_cache[iter].size = 0; in cipso_v4_cache_invalidate() [all …]
|
D | fib_trie.c | 2043 static struct key_vector *fib_trie_get_next(struct fib_trie_iter *iter) in fib_trie_get_next() argument 2045 unsigned long cindex = iter->index; in fib_trie_get_next() 2046 struct key_vector *pn = iter->tnode; in fib_trie_get_next() 2050 iter->tnode, iter->index, iter->depth); in fib_trie_get_next() 2060 iter->tnode = pn; in fib_trie_get_next() 2061 iter->index = cindex; in fib_trie_get_next() 2064 iter->tnode = n; in fib_trie_get_next() 2065 iter->index = 0; in fib_trie_get_next() 2066 ++iter->depth; in fib_trie_get_next() 2076 --iter->depth; in fib_trie_get_next() [all …]
|
/net/sunrpc/ |
D | debugfs.c | 50 struct rpc_clnt_iter *iter = f->private; in tasks_start() local 52 struct rpc_clnt *clnt = iter->clnt; in tasks_start() 55 iter->pos = pos + 1; in tasks_start() 66 struct rpc_clnt_iter *iter = f->private; in tasks_next() local 67 struct rpc_clnt *clnt = iter->clnt; in tasks_next() 71 ++iter->pos; in tasks_next() 84 struct rpc_clnt_iter *iter = f->private; in tasks_stop() local 85 struct rpc_clnt *clnt = iter->clnt; in tasks_stop() 104 struct rpc_clnt_iter *iter = seq->private; in tasks_open() local 106 iter->clnt = inode->i_private; in tasks_open() [all …]
|
/net/netfilter/ |
D | nft_hash.c | 186 struct nft_set_iter *iter) in nft_hash_walk() argument 196 iter->err = err; in nft_hash_walk() 202 iter->err = err; in nft_hash_walk() 210 iter->err = err; in nft_hash_walk() 217 if (iter->count < iter->skip) in nft_hash_walk() 226 iter->err = iter->fn(ctx, set, iter, &elem); in nft_hash_walk() 227 if (iter->err < 0) in nft_hash_walk() 231 iter->count++; in nft_hash_walk()
|
D | nft_rbtree.c | 175 struct nft_set_iter *iter) in nft_rbtree_walk() argument 187 if (iter->count < iter->skip) in nft_rbtree_walk() 194 iter->err = iter->fn(ctx, set, iter, &elem); in nft_rbtree_walk() 195 if (iter->err < 0) { in nft_rbtree_walk() 200 iter->count++; in nft_rbtree_walk()
|
/net/sctp/ |
D | tsnmap.c | 158 struct sctp_tsnmap_iter *iter) in sctp_tsnmap_iter_init() argument 161 iter->start = map->cumulative_tsn_ack_point + 1; in sctp_tsnmap_iter_init() 168 struct sctp_tsnmap_iter *iter, in sctp_tsnmap_next_gap_ack() argument 175 if (TSN_lte(map->max_tsn_seen, iter->start)) in sctp_tsnmap_next_gap_ack() 178 offset = iter->start - map->base_tsn; in sctp_tsnmap_next_gap_ack() 197 iter->start = map->cumulative_tsn_ack_point + *end + 1; in sctp_tsnmap_next_gap_ack() 335 struct sctp_tsnmap_iter iter; in sctp_tsnmap_num_gabs() local 341 sctp_tsnmap_iter_init(map, &iter); in sctp_tsnmap_num_gabs() 342 while (sctp_tsnmap_next_gap_ack(map, &iter, in sctp_tsnmap_num_gabs()
|
/net/nfc/ |
D | nfc.h | 116 static inline void nfc_device_iter_init(struct class_dev_iter *iter) in nfc_device_iter_init() argument 118 class_dev_iter_init(iter, &nfc_class, NULL, NULL); in nfc_device_iter_init() 121 static inline struct nfc_dev *nfc_device_iter_next(struct class_dev_iter *iter) in nfc_device_iter_next() argument 123 struct device *d = class_dev_iter_next(iter); in nfc_device_iter_next() 130 static inline void nfc_device_iter_exit(struct class_dev_iter *iter) in nfc_device_iter_exit() argument 132 class_dev_iter_exit(iter); in nfc_device_iter_exit()
|
D | netlink.c | 592 struct class_dev_iter *iter = (struct class_dev_iter *) cb->args[0]; in nfc_genl_dump_devices() local 596 if (!iter) { in nfc_genl_dump_devices() 598 iter = kmalloc(sizeof(struct class_dev_iter), GFP_KERNEL); in nfc_genl_dump_devices() 599 if (!iter) in nfc_genl_dump_devices() 601 cb->args[0] = (long) iter; in nfc_genl_dump_devices() 609 nfc_device_iter_init(iter); in nfc_genl_dump_devices() 610 dev = nfc_device_iter_next(iter); in nfc_genl_dump_devices() 621 dev = nfc_device_iter_next(iter); in nfc_genl_dump_devices() 633 struct class_dev_iter *iter = (struct class_dev_iter *) cb->args[0]; in nfc_genl_dump_devices_done() local 635 if (iter) { in nfc_genl_dump_devices_done() [all …]
|
/net/ipv4/netfilter/ |
D | arp_tables.c | 643 struct arpt_entry *iter; in translate_table() local 664 xt_entry_foreach(iter, entry0, newinfo->size) { in translate_table() 665 ret = check_entry_size_and_hooks(iter, newinfo, entry0, in translate_table() 673 offsets[i] = (void *)iter - entry0; in translate_table() 675 if (strcmp(arpt_get_target(iter)->u.user.name, in translate_table() 715 xt_entry_foreach(iter, entry0, newinfo->size) { in translate_table() 716 ret = find_check_entry(iter, net, repl->name, repl->size, in translate_table() 724 xt_entry_foreach(iter, entry0, newinfo->size) { in translate_table() 727 cleanup_entry(iter); in translate_table() 741 struct arpt_entry *iter; in get_counters() local [all …]
|
D | ip_tables.c | 260 const struct ipt_entry *iter; in trace_packet() local 268 xt_entry_foreach(iter, root, private->size - private->hook_entry[hook]) in trace_packet() 269 if (get_chainname_rulenum(iter, e, hookname, in trace_packet() 809 struct ipt_entry *iter; in translate_table() local 829 xt_entry_foreach(iter, entry0, newinfo->size) { in translate_table() 830 ret = check_entry_size_and_hooks(iter, newinfo, entry0, in translate_table() 838 offsets[i] = (void *)iter - entry0; in translate_table() 840 if (strcmp(ipt_get_target(iter)->u.user.name, in translate_table() 877 xt_entry_foreach(iter, entry0, newinfo->size) { in translate_table() 878 ret = find_check_entry(iter, net, repl->name, repl->size, in translate_table() [all …]
|
/net/appletalk/ |
D | aarp.c | 930 static struct aarp_entry *iter_next(struct aarp_iter_state *iter, loff_t *pos) in iter_next() argument 932 int ct = iter->bucket; in iter_next() 933 struct aarp_entry **table = iter->table; in iter_next() 941 iter->table = table; in iter_next() 942 iter->bucket = ct; in iter_next() 965 struct aarp_iter_state *iter = seq->private; in aarp_seq_start() local 968 iter->table = resolved; in aarp_seq_start() 969 iter->bucket = 0; in aarp_seq_start() 971 return *pos ? iter_next(iter, pos) : SEQ_START_TOKEN; in aarp_seq_start() 977 struct aarp_iter_state *iter = seq->private; in aarp_seq_next() local [all …]
|
/net/irda/ |
D | irlmp.c | 1834 static void *irlmp_seq_hb_idx(struct irlmp_iter_state *iter, loff_t *off) in irlmp_seq_hb_idx() argument 1838 spin_lock_irq(&iter->hashbin->hb_spinlock); in irlmp_seq_hb_idx() 1839 for (element = hashbin_get_first(iter->hashbin); in irlmp_seq_hb_idx() 1841 element = hashbin_get_next(iter->hashbin)) { in irlmp_seq_hb_idx() 1847 spin_unlock_irq(&iter->hashbin->hb_spinlock); in irlmp_seq_hb_idx() 1848 iter->hashbin = NULL; in irlmp_seq_hb_idx() 1855 struct irlmp_iter_state *iter = seq->private; in irlmp_seq_start() local 1859 iter->hashbin = NULL; in irlmp_seq_start() 1863 iter->hashbin = irlmp->unconnected_lsaps; in irlmp_seq_start() 1864 v = irlmp_seq_hb_idx(iter, &off); in irlmp_seq_start() [all …]
|
/net/ipv6/netfilter/ |
D | ip6_tables.c | 289 const struct ip6t_entry *iter; in trace_packet() local 297 xt_entry_foreach(iter, root, private->size - private->hook_entry[hook]) in trace_packet() 298 if (get_chainname_rulenum(iter, e, hookname, in trace_packet() 821 struct ip6t_entry *iter; in translate_table() local 841 xt_entry_foreach(iter, entry0, newinfo->size) { in translate_table() 842 ret = check_entry_size_and_hooks(iter, newinfo, entry0, in translate_table() 850 offsets[i] = (void *)iter - entry0; in translate_table() 852 if (strcmp(ip6t_get_target(iter)->u.user.name, in translate_table() 889 xt_entry_foreach(iter, entry0, newinfo->size) { in translate_table() 890 ret = find_check_entry(iter, net, repl->name, repl->size, in translate_table() [all …]
|
/net/switchdev/ |
D | switchdev.c | 188 struct list_head *iter; in switchdev_port_attr_get() local 206 netdev_for_each_lower_dev(dev, lower_dev, iter) { in switchdev_port_attr_get() 226 struct list_head *iter; in __switchdev_port_attr_set() local 242 netdev_for_each_lower_dev(dev, lower_dev, iter) { in __switchdev_port_attr_set() 361 struct list_head *iter; in __switchdev_port_obj_add() local 372 netdev_for_each_lower_dev(dev, lower_dev, iter) { in __switchdev_port_obj_add() 473 struct list_head *iter; in switchdev_port_obj_del_now() local 484 netdev_for_each_lower_dev(dev, lower_dev, iter) { in switchdev_port_obj_del_now() 547 struct list_head *iter; in switchdev_port_obj_dump() local 560 netdev_for_each_lower_dev(dev, lower_dev, iter) { in switchdev_port_obj_dump() [all …]
|