/net/sctp/ |
D | tsnmap.c | 44 static void sctp_tsnmap_update(struct sctp_tsnmap *map); 45 static void sctp_tsnmap_find_gap_ack(unsigned long *map, __u16 off, 47 static int sctp_tsnmap_grow(struct sctp_tsnmap *map, u16 size); 50 struct sctp_tsnmap *sctp_tsnmap_init(struct sctp_tsnmap *map, __u16 len, in sctp_tsnmap_init() argument 53 if (!map->tsn_map) { in sctp_tsnmap_init() 54 map->tsn_map = kzalloc(len>>3, gfp); in sctp_tsnmap_init() 55 if (map->tsn_map == NULL) in sctp_tsnmap_init() 58 map->len = len; in sctp_tsnmap_init() 60 bitmap_zero(map->tsn_map, map->len); in sctp_tsnmap_init() 64 map->base_tsn = initial_tsn; in sctp_tsnmap_init() [all …]
|
D | ssnmap.c | 37 static struct sctp_ssnmap *sctp_ssnmap_init(struct sctp_ssnmap *map, __u16 in, 85 static struct sctp_ssnmap *sctp_ssnmap_init(struct sctp_ssnmap *map, __u16 in, in sctp_ssnmap_init() argument 88 memset(map, 0x00, sctp_ssnmap_size(in, out)); in sctp_ssnmap_init() 91 map->in.ssn = (__u16 *)&map[1]; in sctp_ssnmap_init() 92 map->in.len = in; in sctp_ssnmap_init() 95 map->out.ssn = &map->in.ssn[in]; in sctp_ssnmap_init() 96 map->out.len = out; in sctp_ssnmap_init() 98 return map; in sctp_ssnmap_init() 102 void sctp_ssnmap_clear(struct sctp_ssnmap *map) in sctp_ssnmap_clear() argument 106 size = (map->in.len + map->out.len) * sizeof(__u16); in sctp_ssnmap_clear() [all …]
|
/net/rds/ |
D | cong.c | 109 struct rds_cong_map *map; in rds_cong_tree_walk() local 113 map = rb_entry(parent, struct rds_cong_map, m_rb_node); in rds_cong_tree_walk() 115 if (addr < map->m_addr) in rds_cong_tree_walk() 117 else if (addr > map->m_addr) in rds_cong_tree_walk() 120 return map; in rds_cong_tree_walk() 137 struct rds_cong_map *map; in rds_cong_from_addr() local 143 map = kzalloc(sizeof(struct rds_cong_map), GFP_KERNEL); in rds_cong_from_addr() 144 if (!map) in rds_cong_from_addr() 147 map->m_addr = addr; in rds_cong_from_addr() 148 init_waitqueue_head(&map->m_waitq); in rds_cong_from_addr() [all …]
|
D | tcp_recv.c | 112 struct rds_cong_map *map; in rds_tcp_cong_recv() local 121 map = conn->c_fcong; in rds_tcp_cong_recv() 133 (void *)map->m_page_addrs[map_page] + map_off, in rds_tcp_cong_recv() 146 rds_cong_map_updated(map, ~(u64) 0); in rds_tcp_cong_recv()
|
D | recv.c | 70 struct rds_cong_map *map, in rds_recv_rcvbuf_delta() argument 95 rds_cong_set_bit(map, port); in rds_recv_rcvbuf_delta() 96 rds_cong_queue_updates(map); in rds_recv_rcvbuf_delta() 103 rds_cong_clear_bit(map, port); in rds_recv_rcvbuf_delta() 104 rds_cong_queue_updates(map); in rds_recv_rcvbuf_delta()
|
D | rds.h | 623 void rds_cong_set_bit(struct rds_cong_map *map, __be16 port); 624 void rds_cong_clear_bit(struct rds_cong_map *map, __be16 port); 625 int rds_cong_wait(struct rds_cong_map *map, __be16 port, int nonblock, struct rds_sock *rs); 626 void rds_cong_queue_updates(struct rds_cong_map *map); 627 void rds_cong_map_updated(struct rds_cong_map *map, uint64_t);
|
/net/ceph/ |
D | osdmap.c | 498 struct ceph_pg_pool_info *ceph_pg_pool_by_id(struct ceph_osdmap *map, u64 id) in ceph_pg_pool_by_id() argument 500 return __lookup_pg_pool(&map->pg_pools, id); in ceph_pg_pool_by_id() 503 const char *ceph_pg_pool_name_by_id(struct ceph_osdmap *map, u64 id) in ceph_pg_pool_name_by_id() argument 513 pi = __lookup_pg_pool(&map->pg_pools, (int) id); in ceph_pg_pool_name_by_id() 519 int ceph_pg_poolid_by_name(struct ceph_osdmap *map, const char *name) in ceph_pg_poolid_by_name() argument 523 for (rbp = rb_first(&map->pg_pools); rbp; rbp = rb_next(rbp)) { in ceph_pg_poolid_by_name() 621 static int decode_pool_names(void **p, void *end, struct ceph_osdmap *map) in decode_pool_names() argument 634 pi = __lookup_pg_pool(&map->pg_pools, pool); in decode_pool_names() 655 void ceph_osdmap_destroy(struct ceph_osdmap *map) in ceph_osdmap_destroy() argument 657 dout("osdmap_destroy %p\n", map); in ceph_osdmap_destroy() [all …]
|
D | debugfs.c | 57 struct ceph_osdmap *map = client->osdc.osdmap; in osdmap_show() local 60 if (map == NULL) in osdmap_show() 63 seq_printf(s, "epoch %d\n", map->epoch); in osdmap_show() 65 (map->flags & CEPH_OSDMAP_NEARFULL) ? " NEARFULL" : "", in osdmap_show() 66 (map->flags & CEPH_OSDMAP_FULL) ? " FULL" : ""); in osdmap_show() 68 for (n = rb_first(&map->pg_pools); n; n = rb_next(n)) { in osdmap_show() 76 for (i = 0; i < map->max_osd; i++) { in osdmap_show() 77 struct ceph_entity_addr *addr = &map->osd_addr[i]; in osdmap_show() 78 int state = map->osd_state[i]; in osdmap_show() 83 ((map->osd_weight[i]*100) >> 16), in osdmap_show() [all …]
|
/net/netfilter/ipset/ |
D | ip_set_bitmap_gen.h | 36 #define get_ext(set, map, id) ((map)->extensions + ((set)->dsize * (id))) argument 41 struct mtype *map = set->data; in mtype_gc_init() local 43 init_timer(&map->gc); in mtype_gc_init() 44 map->gc.data = (unsigned long)set; in mtype_gc_init() 45 map->gc.function = gc; in mtype_gc_init() 46 map->gc.expires = jiffies + IPSET_GC_PERIOD(set->timeout) * HZ; in mtype_gc_init() 47 add_timer(&map->gc); in mtype_gc_init() 53 struct mtype *map = set->data; in mtype_ext_cleanup() local 56 for (id = 0; id < map->elements; id++) in mtype_ext_cleanup() 57 if (test_bit(id, map->members)) in mtype_ext_cleanup() [all …]
|
D | ip_set_bitmap_port.c | 62 const struct bitmap_port *map, size_t dsize) in bitmap_port_do_test() argument 64 return !!test_bit(e->id, map->members); in bitmap_port_do_test() 68 bitmap_port_gc_test(u16 id, const struct bitmap_port *map, size_t dsize) in bitmap_port_gc_test() argument 70 return !!test_bit(id, map->members); in bitmap_port_gc_test() 75 struct bitmap_port *map, u32 flags, size_t dsize) in bitmap_port_do_add() argument 77 return !!test_bit(e->id, map->members); in bitmap_port_do_add() 82 struct bitmap_port *map) in bitmap_port_do_del() argument 84 return !test_and_clear_bit(e->id, map->members); in bitmap_port_do_del() 88 bitmap_port_do_list(struct sk_buff *skb, const struct bitmap_port *map, u32 id, in bitmap_port_do_list() argument 92 htons(map->first_port + id)); in bitmap_port_do_list() [all …]
|
D | ip_set_bitmap_ip.c | 70 struct bitmap_ip *map, size_t dsize) in bitmap_ip_do_test() argument 72 return !!test_bit(e->id, map->members); in bitmap_ip_do_test() 76 bitmap_ip_gc_test(u16 id, const struct bitmap_ip *map, size_t dsize) in bitmap_ip_gc_test() argument 78 return !!test_bit(id, map->members); in bitmap_ip_gc_test() 82 bitmap_ip_do_add(const struct bitmap_ip_adt_elem *e, struct bitmap_ip *map, in bitmap_ip_do_add() argument 85 return !!test_bit(e->id, map->members); in bitmap_ip_do_add() 89 bitmap_ip_do_del(const struct bitmap_ip_adt_elem *e, struct bitmap_ip *map) in bitmap_ip_do_del() argument 91 return !test_and_clear_bit(e->id, map->members); in bitmap_ip_do_del() 95 bitmap_ip_do_list(struct sk_buff *skb, const struct bitmap_ip *map, u32 id, in bitmap_ip_do_list() argument 99 htonl(map->first_ip + id * map->hosts)); in bitmap_ip_do_list() [all …]
|
D | ip_set_list_set.c | 55 struct list_set *map = set->data; in list_set_ktest() local 64 list_for_each_entry_rcu(e, &map->members, list) { in list_set_ktest() 89 struct list_set *map = set->data; in list_set_kadd() local 93 list_for_each_entry(e, &map->members, list) { in list_set_kadd() 109 struct list_set *map = set->data; in list_set_kdel() local 113 list_for_each_entry(e, &map->members, list) { in list_set_kdel() 156 struct list_set *map = set->data; in __list_set_del() local 158 ip_set_put_byindex(map->net, e->id); in __list_set_del() 183 struct list_set *map = set->data; in set_cleanup_entries() local 186 list_for_each_entry_safe(e, n, &map->members, list) in set_cleanup_entries() [all …]
|
D | ip_set_bitmap_ipmac.c | 87 const struct bitmap_ipmac *map, size_t dsize) in bitmap_ipmac_do_test() argument 91 if (!test_bit(e->id, map->members)) in bitmap_ipmac_do_test() 93 elem = get_const_elem(map->extensions, e->id, dsize); in bitmap_ipmac_do_test() 101 bitmap_ipmac_gc_test(u16 id, const struct bitmap_ipmac *map, size_t dsize) in bitmap_ipmac_gc_test() argument 105 if (!test_bit(id, map->members)) in bitmap_ipmac_gc_test() 107 elem = get_const_elem(map->extensions, id, dsize); in bitmap_ipmac_gc_test() 122 struct bitmap_ipmac *map, int mode) in bitmap_ipmac_add_timeout() argument 147 struct bitmap_ipmac *map, u32 flags, size_t dsize) in bitmap_ipmac_do_add() argument 151 elem = get_elem(map->extensions, e->id, dsize); in bitmap_ipmac_do_add() 152 if (test_bit(e->id, map->members)) { in bitmap_ipmac_do_add() [all …]
|
/net/ceph/crush/ |
D | mapper.c | 40 int crush_find_rule(const struct crush_map *map, int ruleset, int type, int size) in crush_find_rule() argument 44 for (i = 0; i < map->max_rules; i++) { in crush_find_rule() 45 if (map->rules[i] && in crush_find_rule() 46 map->rules[i]->mask.ruleset == ruleset && in crush_find_rule() 47 map->rules[i]->mask.type == type && in crush_find_rule() 48 map->rules[i]->mask.min_size <= size && in crush_find_rule() 49 map->rules[i]->mask.max_size >= size) in crush_find_rule() 375 static int is_out(const struct crush_map *map, in is_out() argument 410 static int crush_choose_firstn(const struct crush_map *map, in crush_choose_firstn() argument 470 if (item >= map->max_devices) { in crush_choose_firstn() [all …]
|
D | crush.c | 112 void crush_destroy(struct crush_map *map) in crush_destroy() argument 115 if (map->buckets) { in crush_destroy() 117 for (b = 0; b < map->max_buckets; b++) { in crush_destroy() 118 if (map->buckets[b] == NULL) in crush_destroy() 120 crush_destroy_bucket(map->buckets[b]); in crush_destroy() 122 kfree(map->buckets); in crush_destroy() 126 if (map->rules) { in crush_destroy() 128 for (b = 0; b < map->max_rules; b++) in crush_destroy() 129 crush_destroy_rule(map->rules[b]); in crush_destroy() 130 kfree(map->rules); in crush_destroy() [all …]
|
/net/netlabel/ |
D | netlabel_cipso_v4.c | 164 doi_def->map.std = kzalloc(sizeof(*doi_def->map.std), GFP_KERNEL); in netlbl_cipsov4_add_std() 165 if (doi_def->map.std == NULL) { in netlbl_cipsov4_add_std() 191 doi_def->map.std->lvl.local_size) in netlbl_cipsov4_add_std() 192 doi_def->map.std->lvl.local_size = in netlbl_cipsov4_add_std() 200 doi_def->map.std->lvl.cipso_size) in netlbl_cipsov4_add_std() 201 doi_def->map.std->lvl.cipso_size = in netlbl_cipsov4_add_std() 206 doi_def->map.std->lvl.local = kcalloc(doi_def->map.std->lvl.local_size, in netlbl_cipsov4_add_std() 209 if (doi_def->map.std->lvl.local == NULL) { in netlbl_cipsov4_add_std() 213 doi_def->map.std->lvl.cipso = kcalloc(doi_def->map.std->lvl.cipso_size, in netlbl_cipsov4_add_std() 216 if (doi_def->map.std->lvl.cipso == NULL) { in netlbl_cipsov4_add_std() [all …]
|
D | netlabel_mgmt.c | 141 struct netlbl_domaddr4_map *map; in netlbl_mgmt_add_common() local 164 map = kzalloc(sizeof(*map), GFP_KERNEL); in netlbl_mgmt_add_common() 165 if (map == NULL) { in netlbl_mgmt_add_common() 169 pmap = map; in netlbl_mgmt_add_common() 170 map->list.addr = addr->s_addr & mask->s_addr; in netlbl_mgmt_add_common() 171 map->list.mask = mask->s_addr; in netlbl_mgmt_add_common() 172 map->list.valid = 1; in netlbl_mgmt_add_common() 173 map->def.type = entry->def.type; in netlbl_mgmt_add_common() 175 map->def.cipso = cipsov4; in netlbl_mgmt_add_common() 177 ret_val = netlbl_af4list_add(&map->list, &addrmap->list4); in netlbl_mgmt_add_common() [all …]
|
/net/sunrpc/ |
D | rpcb_clnt.c | 156 struct rpcbind_args *map = data; in rpcb_map_release() local 158 rpcb_wake_rpcbind_waiters(map->r_xprt, map->r_status); in rpcb_map_release() 159 xprt_put(map->r_xprt); in rpcb_map_release() 160 kfree(map->r_addr); in rpcb_map_release() 161 kfree(map); in rpcb_map_release() 447 struct rpcbind_args map = { in rpcb_register() local 454 .rpc_argp = &map, in rpcb_register() 480 struct rpcbind_args *map = msg->rpc_argp; in rpcb_register_inet4() local 485 map->r_addr = rpc_sockaddr2uaddr(sap, GFP_KERNEL); in rpcb_register_inet4() 489 map->r_prog, map->r_vers, in rpcb_register_inet4() [all …]
|
/net/core/ |
D | netprio_cgroup.c | 91 struct netprio_map *map = rcu_dereference_rtnl(dev->priomap); in netprio_prio() local 94 if (map && id < map->priomap_len) in netprio_prio() 95 return map->priomap[id]; in netprio_prio() 111 struct netprio_map *map; in netprio_set_prio() local 116 map = rtnl_dereference(dev->priomap); in netprio_set_prio() 117 if (!prio && (!map || map->priomap_len <= id)) in netprio_set_prio() 124 map = rtnl_dereference(dev->priomap); in netprio_set_prio() 125 map->priomap[id] = prio; in netprio_set_prio()
|
D | net-sysfs.c | 664 struct rps_map *map; in show_rps_map() local 672 map = rcu_dereference(queue->rps_map); in show_rps_map() 673 if (map) in show_rps_map() 674 for (i = 0; i < map->len; i++) in show_rps_map() 675 cpumask_set_cpu(map->cpus[i], mask); in show_rps_map() 688 struct rps_map *old_map, *map; in store_rps_map() local 705 map = kzalloc(max_t(unsigned int, in store_rps_map() 708 if (!map) { in store_rps_map() 715 map->cpus[i++] = cpu; in store_rps_map() 718 map->len = i; in store_rps_map() [all …]
|
D | dev.c | 556 static int netdev_boot_setup_add(char *name, struct ifmap *map) in netdev_boot_setup_add() argument 566 memcpy(&s[i].map, map, sizeof(s[i].map)); in netdev_boot_setup_add() 591 dev->irq = s[i].map.irq; in netdev_boot_setup_check() 592 dev->base_addr = s[i].map.base_addr; in netdev_boot_setup_check() 593 dev->mem_start = s[i].map.mem_start; in netdev_boot_setup_check() 594 dev->mem_end = s[i].map.mem_end; in netdev_boot_setup_check() 630 return s[i].map.base_addr; in netdev_boot_base() 640 struct ifmap map; in netdev_boot_setup() local 647 memset(&map, 0, sizeof(map)); in netdev_boot_setup() 649 map.irq = ints[1]; in netdev_boot_setup() [all …]
|
/net/ipv4/netfilter/ |
D | nf_nat_snmp_basic.c | 623 const struct oct1_map *map, 899 const struct oct1_map *map, in mangle_address() argument 902 if (map->from == NOCT1(addr)) { in mangle_address() 908 *addr = map->to; in mangle_address() 913 &map->from, &map->to, addr - begin); in mangle_address() 925 const struct oct1_map *map, in snmp_trap_decode() argument 954 mangle_address(ctx->begin, ctx->pointer - 4, map, check); in snmp_trap_decode() 1019 const struct oct1_map *map, in snmp_parse_mangle() argument 1107 unsigned char ret = snmp_trap_decode(&ctx, &trap, map, check); in snmp_parse_mangle() 1159 mangle_address(ctx.begin, ctx.pointer - 4, map, check); in snmp_parse_mangle() [all …]
|
/net/netfilter/ |
D | nf_conntrack_proto_sctp.c | 213 unsigned long *map) in do_basic_checks() argument 242 if (map) in do_basic_checks() 243 set_bit(sch->type, map); in do_basic_checks() 338 unsigned long map[256 / sizeof(unsigned long)] = { 0 }; in sctp_packet() local 344 if (do_basic_checks(ct, skb, dataoff, map) != 0) in sctp_packet() 348 if (!test_bit(SCTP_CID_INIT, map) && in sctp_packet() 349 !test_bit(SCTP_CID_SHUTDOWN_COMPLETE, map) && in sctp_packet() 350 !test_bit(SCTP_CID_COOKIE_ECHO, map) && in sctp_packet() 351 !test_bit(SCTP_CID_ABORT, map) && in sctp_packet() 352 !test_bit(SCTP_CID_SHUTDOWN_ACK, map) && in sctp_packet() [all …]
|
/net/ipv4/ |
D | cipso_ipv4.c | 556 kfree(doi_def->map.std->lvl.cipso); in cipso_v4_doi_free() 557 kfree(doi_def->map.std->lvl.local); in cipso_v4_doi_free() 558 kfree(doi_def->map.std->cat.cipso); in cipso_v4_doi_free() 559 kfree(doi_def->map.std->cat.local); in cipso_v4_doi_free() 560 kfree(doi_def->map.std); in cipso_v4_doi_free() 742 if ((level < doi_def->map.std->lvl.cipso_size) && in cipso_v4_map_lvl_valid() 743 (doi_def->map.std->lvl.cipso[level] < CIPSO_V4_INV_LVL)) in cipso_v4_map_lvl_valid() 772 if (host_lvl < doi_def->map.std->lvl.local_size && in cipso_v4_map_lvl_hton() 773 doi_def->map.std->lvl.local[host_lvl] < CIPSO_V4_INV_LVL) { in cipso_v4_map_lvl_hton() 774 *net_lvl = doi_def->map.std->lvl.local[host_lvl]; in cipso_v4_map_lvl_hton() [all …]
|
/net/tipc/ |
D | bcast.c | 346 struct nla_map map[] = { in __tipc_nl_add_bc_link_stat() local 373 for (i = 0; i < ARRAY_SIZE(map); i++) in __tipc_nl_add_bc_link_stat() 374 if (nla_put_u32(skb, map[i].key, map[i].val)) in __tipc_nl_add_bc_link_stat()
|