Searched refs:htab (Results 1 – 10 of 10) sorted by relevance
/linux-4.4.14/kernel/bpf/ |
D | hashtab.c | 37 struct bpf_htab *htab; in htab_map_alloc() local 40 htab = kzalloc(sizeof(*htab), GFP_USER); in htab_map_alloc() 41 if (!htab) in htab_map_alloc() 45 htab->map.key_size = attr->key_size; in htab_map_alloc() 46 htab->map.value_size = attr->value_size; in htab_map_alloc() 47 htab->map.max_entries = attr->max_entries; in htab_map_alloc() 53 if (htab->map.max_entries == 0 || htab->map.key_size == 0 || in htab_map_alloc() 54 htab->map.value_size == 0) in htab_map_alloc() 58 htab->n_buckets = roundup_pow_of_two(htab->map.max_entries); in htab_map_alloc() 61 if (htab->map.key_size > MAX_BPF_STACK) in htab_map_alloc() [all …]
|
/linux-4.4.14/include/net/ |
D | act_api.h | 41 struct hlist_head *htab; member 59 hf->htab = kzalloc((mask + 1) * sizeof(struct hlist_head), in tcf_hashinfo_init() 61 if (!hf->htab) in tcf_hashinfo_init() 64 INIT_HLIST_HEAD(&hf->htab[i]); in tcf_hashinfo_init() 70 kfree(hf->htab); in tcf_hashinfo_destroy()
|
/linux-4.4.14/drivers/s390/char/ |
D | sclp_rw.c | 47 sclp_make_buffer(void *page, unsigned short columns, unsigned short htab) in sclp_make_buffer() argument 65 buffer->htab = htab; in sclp_make_buffer() 241 } while (buffer->current_length % buffer->htab); in sclp_write() 351 sclp_set_htab(struct sclp_buffer *buffer, unsigned short htab) in sclp_set_htab() argument 353 buffer->htab = htab; in sclp_set_htab()
|
D | sclp_rw.h | 74 unsigned short htab; member
|
/linux-4.4.14/arch/powerpc/kvm/ |
D | book3s_32_mmu_host.c | 58 static ulong htab; variable 122 ulong pteg = htab; in kvmppc_mmu_get_pteg() 135 htab, hash, htabmask, pteg); in kvmppc_mmu_get_pteg() 395 htab = (ulong)__va(sdr1 & 0xffff0000); in kvmppc_mmu_init()
|
/linux-4.4.14/arch/powerpc/platforms/ps3/ |
D | Makefile | 1 obj-y += setup.o mm.o time.o hvcall.o htab.o repository.o
|
/linux-4.4.14/net/xfrm/ |
D | xfrm_policy.c | 2958 struct xfrm_policy_hash *htab; in xfrm_policy_init() local 2964 htab = &net->xfrm.policy_bydst[dir]; in xfrm_policy_init() 2965 htab->table = xfrm_hash_alloc(sz); in xfrm_policy_init() 2966 if (!htab->table) in xfrm_policy_init() 2968 htab->hmask = hmask; in xfrm_policy_init() 2969 htab->dbits4 = 32; in xfrm_policy_init() 2970 htab->sbits4 = 32; in xfrm_policy_init() 2971 htab->dbits6 = 128; in xfrm_policy_init() 2972 htab->sbits6 = 128; in xfrm_policy_init() 2990 struct xfrm_policy_hash *htab; in xfrm_policy_init() local [all …]
|
/linux-4.4.14/drivers/isdn/i4l/ |
D | isdn_bsdcomp.c | 311 static unsigned int htab[][2] = { in bsd_alloc() local 325 hsize = htab[bits - 9][0]; in bsd_alloc() 326 hshift = htab[bits - 9][1]; in bsd_alloc()
|
/linux-4.4.14/net/sched/ |
D | act_police.c | 72 head = &hinfo->htab[tcf_hash(i, POL_TAB_MASK)]; in tcf_act_police_walker() 239 hlist_add_head(&police->tcf_head, &hinfo->htab[h]); in tcf_act_police_locate()
|
D | act_api.c | 94 head = &hinfo->htab[tcf_hash(i, hinfo->hmask)]; in tcf_dump_walker() 145 head = &hinfo->htab[tcf_hash(i, hinfo->hmask)]; in tcf_del_walker() 185 head = &hinfo->htab[tcf_hash(index, hinfo->hmask)]; in tcf_hash_lookup() 300 hlist_add_head(&p->tcfc_head, &hinfo->htab[h]); in tcf_hash_insert()
|