/net/sctp/ |
H A 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, argument 53 if (!map->tsn_map) { 54 map->tsn_map = kzalloc(len>>3, gfp); 55 if (map->tsn_map == NULL) 58 map->len = len; 60 bitmap_zero(map->tsn_map, map 72 sctp_tsnmap_free(struct sctp_tsnmap *map) argument 84 sctp_tsnmap_check(const struct sctp_tsnmap *map, __u32 tsn) argument 110 sctp_tsnmap_mark(struct sctp_tsnmap *map, __u32 tsn, struct sctp_transport *trans) argument 157 sctp_tsnmap_iter_init(const struct sctp_tsnmap *map, struct sctp_tsnmap_iter *iter) argument 167 sctp_tsnmap_next_gap_ack(const struct sctp_tsnmap *map, struct sctp_tsnmap_iter *iter, __u16 *start, __u16 *end) argument 205 sctp_tsnmap_skip(struct sctp_tsnmap *map, __u32 tsn) argument 243 sctp_tsnmap_update(struct sctp_tsnmap *map) argument 262 sctp_tsnmap_pending(struct sctp_tsnmap *map) argument 287 sctp_tsnmap_find_gap_ack(unsigned long *map, __u16 off, __u16 len, __u16 *start, __u16 *end) argument 315 sctp_tsnmap_renege(struct sctp_tsnmap *map, __u32 tsn) argument 332 sctp_tsnmap_num_gabs(struct sctp_tsnmap *map, struct sctp_gap_ack_block *gabs) argument 356 sctp_tsnmap_grow(struct sctp_tsnmap *map, u16 size) argument [all...] |
H A D | ssnmap.c | 37 static struct sctp_ssnmap *sctp_ssnmap_init(struct sctp_ssnmap *map, __u16 in, 40 /* Storage size needed for map includes 2 headers and then the 85 static struct sctp_ssnmap *sctp_ssnmap_init(struct sctp_ssnmap *map, __u16 in, argument 88 memset(map, 0x00, sctp_ssnmap_size(in, out)); 90 /* Start 'in' stream just after the map header. */ 91 map->in.ssn = (__u16 *)&map[1]; 92 map->in.len = in; 95 map->out.ssn = &map 102 sctp_ssnmap_clear(struct sctp_ssnmap *map) argument 111 sctp_ssnmap_free(struct sctp_ssnmap *map) argument [all...] |
/net/rds/ |
H A D | cong.c | 76 * We maintain a global counter that is incremented each time a congestion map 95 * - on map changes to inform conns of a new map to send 109 struct rds_cong_map *map; local 113 map = rb_entry(parent, struct rds_cong_map, m_rb_node); 115 if (addr < map->m_addr) 117 else if (addr > map->m_addr) 120 return map; 137 struct rds_cong_map *map; local 143 map 214 rds_cong_queue_updates(struct rds_cong_map *map) argument 231 rds_cong_map_updated(struct rds_cong_map *map, uint64_t portmask) argument 277 rds_cong_set_bit(struct rds_cong_map *map, __be16 port) argument 291 rds_cong_clear_bit(struct rds_cong_map *map, __be16 port) argument 305 rds_cong_test_bit(struct rds_cong_map *map, __be16 port) argument 329 struct rds_cong_map *map; local 346 rds_cong_wait(struct rds_cong_map *map, __be16 port, int nonblock, struct rds_sock *rs) argument 380 struct rds_cong_map *map; local 398 struct rds_cong_map *map = conn->c_lcong; local [all...] |
H A D | tcp_recv.c | 132 struct rds_cong_map *map; local 141 map = conn->c_fcong; 153 (void *)map->m_page_addrs[map_page] + map_off, 166 rds_cong_map_updated(map, ~(u64) 0);
|
/net/netfilter/ipset/ |
H A D | ip_set_bitmap_gen.h | 36 #define get_ext(set, map, id) ((map)->extensions + (set)->dsize * (id)) 41 struct mtype *map = set->data; local 43 init_timer(&map->gc); 44 map->gc.data = (unsigned long) set; 45 map->gc.function = gc; 46 map->gc.expires = jiffies + IPSET_GC_PERIOD(set->timeout) * HZ; 47 add_timer(&map->gc); 53 struct mtype *map = set->data; local 56 for (id = 0; id < map 64 struct mtype *map = set->data; local 83 struct mtype *map = set->data; local 93 const struct mtype *map = set->data; local 119 struct mtype *map = set->data; local 140 struct mtype *map = set->data; local 157 mtype_add_timeout(ext_timeout(x, set), e, ext, set, map, ret); local 175 struct mtype *map = set->data; local 202 struct mtype *map = set->data; local 257 struct mtype *map = set->data; local [all...] |
H A D | ip_set_bitmap_port.c | 61 const struct bitmap_port *map, size_t dsize) 63 return !!test_bit(e->id, map->members); 67 bitmap_port_gc_test(u16 id, const struct bitmap_port *map, size_t dsize) argument 69 return !!test_bit(id, map->members); 74 struct bitmap_port *map, u32 flags, size_t dsize) 76 return !!test_and_set_bit(e->id, map->members); 81 struct bitmap_port *map) 83 return !test_and_clear_bit(e->id, map->members); 87 bitmap_port_do_list(struct sk_buff *skb, const struct bitmap_port *map, u32 id, argument 91 htons(map 60 bitmap_port_do_test(const struct bitmap_port_adt_elem *e, const struct bitmap_port *map, size_t dsize) argument 73 bitmap_port_do_add(const struct bitmap_port_adt_elem *e, struct bitmap_port *map, u32 flags, size_t dsize) argument 80 bitmap_port_do_del(const struct bitmap_port_adt_elem *e, struct bitmap_port *map) argument 95 bitmap_port_do_head(struct sk_buff *skb, const struct bitmap_port *map) argument 106 struct bitmap_port *map = set->data; local 131 struct bitmap_port *map = set->data; local 211 init_map_port(struct ip_set *set, struct bitmap_port *map, u16 first_port, u16 last_port) argument 238 struct bitmap_port *map; local [all...] |
H A D | ip_set_bitmap_ip.c | 68 struct bitmap_ip *map, size_t dsize) 70 return !!test_bit(e->id, map->members); 74 bitmap_ip_gc_test(u16 id, const struct bitmap_ip *map, size_t dsize) argument 76 return !!test_bit(id, map->members); 80 bitmap_ip_do_add(const struct bitmap_ip_adt_elem *e, struct bitmap_ip *map, argument 83 return !!test_and_set_bit(e->id, map->members); 87 bitmap_ip_do_del(const struct bitmap_ip_adt_elem *e, struct bitmap_ip *map) argument 89 return !test_and_clear_bit(e->id, map->members); 93 bitmap_ip_do_list(struct sk_buff *skb, const struct bitmap_ip *map, u32 id, argument 97 htonl(map 67 bitmap_ip_do_test(const struct bitmap_ip_adt_elem *e, struct bitmap_ip *map, size_t dsize) argument 101 bitmap_ip_do_head(struct sk_buff *skb, const struct bitmap_ip *map) argument 114 struct bitmap_ip *map = set->data; local 133 struct bitmap_ip *map = set->data; local 221 init_map_ip(struct ip_set *set, struct bitmap_ip *map, u32 first_ip, u32 last_ip, u32 elements, u32 hosts, u8 netmask) argument 252 struct bitmap_ip *map; local [all...] |
H A D | ip_set_bitmap_ipmac.c | 84 const struct bitmap_ipmac *map, size_t dsize) 88 if (!test_bit(e->id, map->members)) 90 elem = get_elem(map->extensions, e->id, dsize); 99 bitmap_ipmac_gc_test(u16 id, const struct bitmap_ipmac *map, size_t dsize) argument 103 if (!test_bit(id, map->members)) 105 elem = get_elem(map->extensions, id, dsize); 120 struct bitmap_ipmac *map, int mode) 144 struct bitmap_ipmac *map, u32 flags, size_t dsize) 148 elem = get_elem(map->extensions, e->id, dsize); 149 if (test_and_set_bit(e->id, map 83 bitmap_ipmac_do_test(const struct bitmap_ipmac_adt_elem *e, const struct bitmap_ipmac *map, size_t dsize) argument 117 bitmap_ipmac_add_timeout(unsigned long *timeout, const struct bitmap_ipmac_adt_elem *e, const struct ip_set_ext *ext, struct ip_set *set, struct bitmap_ipmac *map, int mode) argument 143 bitmap_ipmac_do_add(const struct bitmap_ipmac_adt_elem *e, struct bitmap_ipmac *map, u32 flags, size_t dsize) argument 174 bitmap_ipmac_do_del(const struct bitmap_ipmac_adt_elem *e, struct bitmap_ipmac *map) argument 181 bitmap_ipmac_do_list(struct sk_buff *skb, const struct bitmap_ipmac *map, u32 id, size_t dsize) argument 194 bitmap_ipmac_do_head(struct sk_buff *skb, const struct bitmap_ipmac *map) argument 205 struct bitmap_ipmac *map = set->data; local 234 const struct bitmap_ipmac *map = set->data; local 291 init_map_ipmac(struct ip_set *set, struct bitmap_ipmac *map, u32 first_ip, u32 last_ip, u32 elements) argument 321 struct bitmap_ipmac *map; local [all...] |
H A D | ip_set_list_set.c | 47 #define list_set_elem(set, map, id) \ 48 (struct set_elem *)((void *)(map)->members + (id) * (set)->dsize) 55 struct list_set *map = set->data; local 64 for (i = 0; i < map->size; i++) { 65 e = list_set_elem(set, map, i); 92 struct list_set *map = set->data; local 97 for (i = 0; i < map->size; i++) { 98 e = list_set_elem(set, map, i); 116 struct list_set *map = set->data; local 121 for (i = 0; i < map 158 const struct list_set *map = set->data; local 174 struct list_set *map = set->data; local 213 struct list_set *map = set->data; local 232 struct list_set *map = set->data; local 251 struct list_set *map = set->data; local 283 struct list_set *map = set->data; local 345 struct list_set *map = set->data; local 379 struct list_set *map = set->data; local 449 struct list_set *map = set->data; local 466 struct list_set *map = set->data; local 479 const struct list_set *map = set->data; local 503 const struct list_set *map = set->data; local 581 struct list_set *map = set->data; local 594 struct list_set *map = set->data; local 608 struct list_set *map; local [all...] |
/net/ceph/crush/ |
H A D | crush.c | 100 * @map: crush_map pointer 102 void crush_destroy(struct crush_map *map) argument 105 if (map->buckets) { 107 for (b = 0; b < map->max_buckets; b++) { 108 if (map->buckets[b] == NULL) 110 crush_destroy_bucket(map->buckets[b]); 112 kfree(map->buckets); 116 if (map->rules) { 118 for (b = 0; b < map->max_rules; b++) 119 crush_destroy_rule(map [all...] |
H A D | mapper.c | 31 * @map: the crush_map 36 int crush_find_rule(const struct crush_map *map, int ruleset, int type, int size) argument 40 for (i = 0; i < map->max_rules; i++) { 41 if (map->rules[i] && 42 map->rules[i]->mask.ruleset == ruleset && 43 map->rules[i]->mask.type == type && 44 map->rules[i]->mask.min_size <= size && 45 map->rules[i]->mask.max_size >= size) 268 static int is_out(const struct crush_map *map, argument 286 * @map 302 crush_choose_firstn(const struct crush_map *map, struct crush_bucket *bucket, const __u32 *weight, int weight_max, int x, int numrep, int type, int *out, int outpos, unsigned int tries, unsigned int recurse_tries, unsigned int local_retries, unsigned int local_fallback_retries, int recurse_to_leaf, unsigned int vary_r, int *out2, int parent_r) argument 477 crush_choose_indep(const struct crush_map *map, struct crush_bucket *bucket, const __u32 *weight, int weight_max, int x, int left, int numrep, int type, int *out, int outpos, unsigned int tries, unsigned int recurse_tries, int recurse_to_leaf, int *out2, int parent_r) argument 638 crush_do_rule(const struct crush_map *map, int ruleno, int x, int *result, int result_max, const __u32 *weight, int weight_max, int *scratch) argument [all...] |
/net/ceph/ |
H A D | osdmap.c | 53 * decode crush map 472 struct ceph_pg_pool_info *ceph_pg_pool_by_id(struct ceph_osdmap *map, u64 id) argument 474 return __lookup_pg_pool(&map->pg_pools, id); 477 const char *ceph_pg_pool_name_by_id(struct ceph_osdmap *map, u64 id) argument 487 pi = __lookup_pg_pool(&map->pg_pools, (int) id); 493 int ceph_pg_poolid_by_name(struct ceph_osdmap *map, const char *name) argument 497 for (rbp = rb_first(&map->pg_pools); rbp; rbp = rb_next(rbp)) { 595 static int decode_pool_names(void **p, void *end, struct ceph_osdmap *map) argument 608 pi = __lookup_pg_pool(&map->pg_pools, pool); 627 * osd map 629 ceph_osdmap_destroy(struct ceph_osdmap *map) argument 666 osdmap_set_max_osd(struct ceph_osdmap *map, int max) argument 770 __decode_pools(void **p, void *end, struct ceph_osdmap *map, bool incremental) argument 809 decode_pools(void **p, void *end, struct ceph_osdmap *map) argument 814 decode_new_pools(void **p, void *end, struct ceph_osdmap *map) argument 819 __decode_pg_temp(void **p, void *end, struct ceph_osdmap *map, bool incremental) argument 870 decode_pg_temp(void **p, void *end, struct ceph_osdmap *map) argument 875 decode_new_pg_temp(void **p, void *end, struct ceph_osdmap *map) argument 880 __decode_primary_temp(void **p, void *end, struct ceph_osdmap *map, bool incremental) argument 924 decode_primary_temp(void **p, void *end, struct ceph_osdmap *map) argument 929 decode_new_primary_temp(void **p, void *end, struct ceph_osdmap *map) argument 935 ceph_get_primary_affinity(struct ceph_osdmap *map, int osd) argument 945 set_primary_affinity(struct ceph_osdmap *map, int osd, u32 aff) argument 967 decode_primary_affinity(void **p, void *end, struct ceph_osdmap *map) argument 997 decode_new_primary_affinity(void **p, void *end, struct ceph_osdmap *map) argument 1026 osdmap_decode(void **p, void *end, struct ceph_osdmap *map) argument 1149 struct ceph_osdmap *map; local 1172 osdmap_apply_incremental(void **p, void *end, struct ceph_osdmap *map, struct ceph_messenger *msgr) argument 1449 do_crush(struct ceph_osdmap *map, int ruleno, int x, int *result, int result_max, const __u32 *weight, int weight_max) argument [all...] |
H A D | debugfs.c | 56 struct ceph_osdmap *map = client->osdc.osdmap; local 59 if (map == NULL) 62 seq_printf(s, "epoch %d\n", map->epoch); 64 (map->flags & CEPH_OSDMAP_NEARFULL) ? " NEARFULL" : "", 65 (map->flags & CEPH_OSDMAP_FULL) ? " FULL" : ""); 67 for (n = rb_first(&map->pg_pools); n; n = rb_next(n)) { 75 for (i = 0; i < map->max_osd; i++) { 76 struct ceph_entity_addr *addr = &map->osd_addr[i]; 77 int state = map->osd_state[i]; 82 ((map [all...] |
/net/netlabel/ |
H A D | netlabel_cipso_v4.c | 164 doi_def->map.std = kzalloc(sizeof(*doi_def->map.std), GFP_KERNEL); 165 if (doi_def->map.std == NULL) { 191 doi_def->map.std->lvl.local_size) 192 doi_def->map.std->lvl.local_size = 200 doi_def->map.std->lvl.cipso_size) 201 doi_def->map.std->lvl.cipso_size = 206 doi_def->map.std->lvl.local = kcalloc(doi_def->map.std->lvl.local_size, 209 if (doi_def->map [all...] |
H A D | netlabel_mgmt.c | 143 struct netlbl_domaddr4_map *map; local 166 map = kzalloc(sizeof(*map), GFP_KERNEL); 167 if (map == NULL) { 171 map->list.addr = addr->s_addr & mask->s_addr; 172 map->list.mask = mask->s_addr; 173 map->list.valid = 1; 174 map->def.type = entry->def.type; 176 map->def.cipso = cipsov4; 178 ret_val = netlbl_af4list_add(&map 190 struct netlbl_domaddr6_map *map; local [all...] |
/net/sunrpc/ |
H A D | rpcb_clnt.c | 156 struct rpcbind_args *map = data; local 158 rpcb_wake_rpcbind_waiters(map->r_xprt, map->r_status); 159 xprt_put(map->r_xprt); 160 kfree(map->r_addr); 161 kfree(map); 445 struct rpcbind_args map = { local 452 .rpc_argp = &map, 478 struct rpcbind_args *map = msg->rpc_argp; local 483 map 509 struct rpcbind_args *map = msg->rpc_argp; local 535 struct rpcbind_args *map = msg->rpc_argp; local 594 struct rpcbind_args map = { local 621 rpcb_call_async(struct rpc_clnt *rpcb_clnt, struct rpcbind_args *map, struct rpc_procinfo *proc) argument 676 struct rpcbind_args *map; local 807 struct rpcbind_args *map = data; local [all...] |
/net/core/ |
H A D | netprio_cgroup.c | 91 struct netprio_map *map = rcu_dereference_rtnl(dev->priomap); local 94 if (map && id < map->priomap_len) 95 return map->priomap[id]; 111 struct netprio_map *map; local 116 map = rtnl_dereference(dev->priomap); 117 if (!prio && (!map || map->priomap_len <= id)) 124 map = rtnl_dereference(dev->priomap); 125 map [all...] |
H A D | net-sysfs.c | 573 struct rps_map *map; local 582 map = rcu_dereference(queue->rps_map); 583 if (map) 584 for (i = 0; i < map->len; i++) 585 cpumask_set_cpu(map->cpus[i], mask); 604 struct rps_map *old_map, *map; local 621 map = kzalloc(max_t(unsigned int, 624 if (!map) { 631 map->cpus[i++] = cpu; 634 map 759 struct rps_map *map; local 1063 struct xps_map *map = local [all...] |
H A D | flow_dissector.c | 404 struct xps_map *map; local 410 map = rcu_dereference( 412 if (map) { 413 if (map->len == 1) 414 queue_index = map->queues[0]; 416 queue_index = map->queues[reciprocal_scale(skb_get_hash(skb), 417 map->len)];
|
H A D | dev.c | 540 * @map: configured settings for the device 546 static int netdev_boot_setup_add(char *name, struct ifmap *map) argument 556 memcpy(&s[i].map, map, sizeof(s[i].map)); 581 dev->irq = s[i].map.irq; 582 dev->base_addr = s[i].map.base_addr; 583 dev->mem_start = s[i].map.mem_start; 584 dev->mem_end = s[i].map.mem_end; 620 return s[i].map 630 struct ifmap map; local 1852 struct xps_map *map = NULL; local 1908 expand_xps_map(struct xps_map *map, int cpu, u16 index) argument 1947 struct xps_map *map, *new_map; local 2838 struct netprio_map *map = rcu_dereference_bh(skb->dev->priomap); local 3090 struct rps_map *map; local [all...] |
/net/ipv4/netfilter/ |
H A D | nf_nat_snmp_basic.c | 623 const struct oct1_map *map, 899 const struct oct1_map *map, 902 if (map->from == NOCT1(addr)) { 908 *addr = map->to; 913 &map->from, &map->to, addr - begin); 925 const struct oct1_map *map, 954 mangle_address(ctx->begin, ctx->pointer - 4, map, check); 1019 const struct oct1_map *map, 1107 unsigned char ret = snmp_trap_decode(&ctx, &trap, map, chec 897 mangle_address(unsigned char *begin, unsigned char *addr, const struct oct1_map *map, __sum16 *check) argument 923 snmp_trap_decode(struct asn1_ctx *ctx, struct snmp_v1_trap *trap, const struct oct1_map *map, __sum16 *check) argument 1017 snmp_parse_mangle(unsigned char *msg, u_int16_t len, const struct oct1_map *map, __sum16 *check) argument 1189 struct oct1_map map; local [all...] |
/net/tipc/ |
H A D | bcast.h | 47 * @map: bitmap of node identifiers that are in the set 51 u32 map[MAX_NODES / WSIZE]; member in struct:tipc_node_map
|
H A D | bcast.c | 69 * @remains: temporary node map used by tipc_bcbearer_send() 70 * @remains_new: temporary node map used tipc_bcbearer_send() 92 * @bcast_nodes: map of broadcast-capable nodes 881 * tipc_nmap_add - add a node to a node map 889 if ((nm_ptr->map[w] & mask) == 0) { 891 nm_ptr->map[w] |= mask; 896 * tipc_nmap_remove - remove a node from a node map 904 if ((nm_ptr->map[w] & mask) != 0) { 905 nm_ptr->map[w] &= ~mask; 912 * @nm_a: input node map 923 u32 map; local [all...] |
/net/netfilter/ |
H A D | nf_conntrack_proto_sctp.c | 199 unsigned long *map) 228 if (map) 229 set_bit(sch->type, map); 317 unsigned long map[256 / sizeof(unsigned long)] = { 0 }; local 323 if (do_basic_checks(ct, skb, dataoff, map) != 0) 327 if (!test_bit(SCTP_CID_INIT, map) && 328 !test_bit(SCTP_CID_SHUTDOWN_COMPLETE, map) && 329 !test_bit(SCTP_CID_COOKIE_ECHO, map) && 330 !test_bit(SCTP_CID_ABORT, map) && 331 !test_bit(SCTP_CID_SHUTDOWN_ACK, map) 196 do_basic_checks(struct nf_conn *ct, const struct sk_buff *skb, unsigned int dataoff, unsigned long *map) argument 421 unsigned long map[256 / sizeof(unsigned long)] = { 0 }; local [all...] |
/net/ipv4/ |
H A D | cipso_ipv4.c | 461 * ensure that the mapping table specified in @doi_def->map meets all of the 555 kfree(doi_def->map.std->lvl.cipso); 556 kfree(doi_def->map.std->lvl.local); 557 kfree(doi_def->map.std->cat.cipso); 558 kfree(doi_def->map.std->cat.local); 740 if (doi_def->map.std->lvl.cipso[level] < CIPSO_V4_INV_LVL) 769 if (host_lvl < doi_def->map.std->lvl.local_size && 770 doi_def->map.std->lvl.local[host_lvl] < CIPSO_V4_INV_LVL) { 771 *net_lvl = doi_def->map.std->lvl.local[host_lvl]; 803 map_tbl = doi_def->map [all...] |