Searched refs:htab (Results 1 – 10 of 10) sorted by relevance
/linux-4.1.27/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.1.27/include/net/ |
D | act_api.h | 39 struct hlist_head *htab; member 57 hf->htab = kzalloc((mask + 1) * sizeof(struct hlist_head), in tcf_hashinfo_init() 59 if (!hf->htab) in tcf_hashinfo_init() 62 INIT_HLIST_HEAD(&hf->htab[i]); in tcf_hashinfo_init() 68 kfree(hf->htab); in tcf_hashinfo_destroy()
|
/linux-4.1.27/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() 239 } while (buffer->current_length % buffer->htab); in sclp_write() 347 sclp_set_htab(struct sclp_buffer *buffer, unsigned short htab) in sclp_set_htab() argument 349 buffer->htab = htab; in sclp_set_htab()
|
D | sclp_rw.h | 77 unsigned short htab; member
|
/linux-4.1.27/arch/powerpc/kvm/ |
D | book3s_32_mmu_host.c | 57 static ulong htab; variable 121 ulong pteg = htab; in kvmppc_mmu_get_pteg() 134 htab, hash, htabmask, pteg); in kvmppc_mmu_get_pteg() 394 htab = (ulong)__va(sdr1 & 0xffff0000); in kvmppc_mmu_init()
|
/linux-4.1.27/arch/powerpc/platforms/ps3/ |
D | Makefile | 1 obj-y += setup.o mm.o time.o hvcall.o htab.o repository.o
|
/linux-4.1.27/net/xfrm/ |
D | xfrm_policy.c | 2938 struct xfrm_policy_hash *htab; in xfrm_policy_init() local 2944 htab = &net->xfrm.policy_bydst[dir]; in xfrm_policy_init() 2945 htab->table = xfrm_hash_alloc(sz); in xfrm_policy_init() 2946 if (!htab->table) in xfrm_policy_init() 2948 htab->hmask = hmask; in xfrm_policy_init() 2949 htab->dbits4 = 32; in xfrm_policy_init() 2950 htab->sbits4 = 32; in xfrm_policy_init() 2951 htab->dbits6 = 128; in xfrm_policy_init() 2952 htab->sbits6 = 128; in xfrm_policy_init() 2970 struct xfrm_policy_hash *htab; in xfrm_policy_init() local [all …]
|
/linux-4.1.27/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.1.27/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 | 86 head = &hinfo->htab[tcf_hash(i, hinfo->hmask)]; in tcf_dump_walker() 137 head = &hinfo->htab[tcf_hash(i, hinfo->hmask)]; in tcf_del_walker() 177 head = &hinfo->htab[tcf_hash(index, hinfo->hmask)]; in tcf_hash_lookup() 277 hlist_add_head(&p->tcfc_head, &hinfo->htab[h]); in tcf_hash_insert()
|