Searched refs:array_size (Results 1 – 10 of 10) sorted by relevance
/net/netfilter/ |
D | nf_conntrack_ftp.c | 123 int array_size, char sep, char term) in try_number() argument 127 memset(array, 0, sizeof(array[0])*array_size); in try_number() 130 for (i = 0, len = 0; len < dlen && i < array_size; len++, data++) { in try_number() 140 if ((*data == term || !term) && i == array_size - 1) in try_number() 149 array_size, sep); in try_number()
|
/net/bridge/netfilter/ |
D | ebtables.c | 884 vmalloc(array_size(nr_cpu_ids, in translate_table() 890 vmalloc(array_size(udc_cnt, sizeof(*(newinfo->chainstack[0])))); in translate_table() 900 cl_s = vmalloc(array_size(udc_cnt, sizeof(*cl_s))); in translate_table() 1274 tmp = vmalloc(array_size(num_counters, sizeof(*tmp))); in do_update_counters() 1411 counterstmp = vmalloc(array_size(nentries, sizeof(*counterstmp))); in copy_counters_to_user()
|
/net/ethtool/ |
D | ioctl.c | 1912 data = vzalloc(array_size(gstrings.len, ETH_GSTRING_LEN)); in ethtool_get_strings() 2013 data = vzalloc(array_size(n_stats, sizeof(u64))); in ethtool_get_stats() 2025 if (n_stats && copy_to_user(useraddr, data, array_size(n_stats, sizeof(u64)))) in ethtool_get_stats() 2064 data = vzalloc(array_size(n_stats, sizeof(u64))); in ethtool_get_phy_stats() 2084 if (n_stats && copy_to_user(useraddr, data, array_size(n_stats, sizeof(u64)))) in ethtool_get_phy_stats()
|
/net/ceph/ |
D | osdmap.c | 1193 state = ceph_kvmalloc(array_size(max, sizeof(*state)), GFP_NOFS); in osdmap_set_max_osd() 1194 weight = ceph_kvmalloc(array_size(max, sizeof(*weight)), GFP_NOFS); in osdmap_set_max_osd() 1195 addr = ceph_kvmalloc(array_size(max, sizeof(*addr)), GFP_NOFS); in osdmap_set_max_osd() 1225 affinity = ceph_kvmalloc(array_size(max, sizeof(*affinity)), in osdmap_set_max_osd() 1507 array_size(map->max_osd, sizeof(*map->osd_primary_affinity)), in set_primary_affinity()
|
/net/rds/ |
D | ib_cm.c | 666 ic->i_sends = vzalloc_node(array_size(sizeof(struct rds_ib_send_work), in rds_ib_setup_qp() 675 ic->i_recvs = vzalloc_node(array_size(sizeof(struct rds_ib_recv_work), in rds_ib_setup_qp()
|
/net/ipv4/ |
D | udp_tunnel_nic.c | 671 memset(utn->entries[i], 0, array_size(info->tables[i].n_entries, in udp_tunnel_nic_flush()
|
/net/openvswitch/ |
D | flow_table.c | 379 cache = __alloc_percpu(array_size(sizeof(struct mask_cache_entry), in tbl_mask_cache_alloc()
|
/net/netfilter/ipvs/ |
D | ip_vs_conn.c | 1497 ip_vs_conn_tab = vmalloc(array_size(ip_vs_conn_tab_size, in ip_vs_conn_init()
|
/net/core/ |
D | pktgen.c | 3608 pkt_dev->flows = vzalloc_node(array_size(MAX_CFLOWS, in pktgen_add_device()
|
/net/packet/ |
D | af_packet.c | 4298 buffer = vzalloc(array_size((1 << order), PAGE_SIZE)); in alloc_one_pg_vec_page()
|