Home
last modified time | relevance | path

Searched refs:hmask (Results 1 – 19 of 19) sorted by relevance

/linux-4.1.27/net/xfrm/
Dxfrm_hash.h87 unsigned int hmask) in __xfrm_dst_hash() argument
98 return (h ^ (h >> 16)) & hmask; in __xfrm_dst_hash()
104 unsigned int hmask) in __xfrm_src_hash() argument
115 return (h ^ (h >> 16)) & hmask; in __xfrm_src_hash()
120 unsigned short family, unsigned int hmask) in __xfrm_spi_hash() argument
131 return (h ^ (h >> 10) ^ (h >> 20)) & hmask; in __xfrm_spi_hash()
134 static inline unsigned int __idx_hash(u32 index, unsigned int hmask) in __idx_hash() argument
136 return (index ^ (index >> 8)) & hmask; in __idx_hash()
140 unsigned short family, unsigned int hmask, in __sel_hash() argument
151 return hmask + 1; in __sel_hash()
[all …]
Dxfrm_policy.c379 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in policy_hash_bysel() local
385 hash = __sel_hash(sel, family, hmask, dbits, sbits); in policy_hash_bysel()
387 return (hash == hmask + 1 ? in policy_hash_bysel()
397 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in policy_hash_direct() local
403 hash = __addr_hash(daddr, saddr, family, hmask, dbits, sbits); in policy_hash_direct()
467 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in xfrm_bydst_resize() local
468 unsigned int nhashmask = xfrm_new_hash_mask(hmask); in xfrm_bydst_resize()
479 for (i = hmask; i >= 0; i--) in xfrm_bydst_resize()
483 net->xfrm.policy_bydst[dir].hmask = nhashmask; in xfrm_bydst_resize()
487 xfrm_hash_free(odst, (hmask + 1) * sizeof(struct hlist_head)); in xfrm_bydst_resize()
[all …]
/linux-4.1.27/arch/x86/include/asm/
Dxsave.h77 u32 hmask = mask >> 32; in xsave_state_booting() local
86 : "D" (fx), "m" (*fx), "a" (lmask), "d" (hmask) in xsave_state_booting()
92 : "D" (fx), "m" (*fx), "a" (lmask), "d" (hmask) in xsave_state_booting()
104 u32 hmask = mask >> 32; in xrstor_state_booting() local
113 : "D" (fx), "m" (*fx), "a" (lmask), "d" (hmask) in xrstor_state_booting()
119 : "D" (fx), "m" (*fx), "a" (lmask), "d" (hmask) in xrstor_state_booting()
130 u32 hmask = mask >> 32; in xsave_state() local
150 [fx] "D" (fx), "a" (lmask), "d" (hmask) : in xsave_state()
167 u32 hmask = mask >> 32; in xrstor_state() local
177 "D" (fx), "m" (*fx), "a" (lmask), "d" (hmask) in xrstor_state()
[all …]
/linux-4.1.27/arch/ia64/lib/
Ddo_csum.S94 #define hmask r16 macro
140 mov hmask=-1 // initialize head mask
168 shl hmask=hmask,tmp2 // build head mask, mask off [0,first1off[
174 (p8) and hmask=hmask,tmask // apply tail mask to head mask if 1 word only
180 and word1[0]=firstval,hmask // and mask it as appropriate
/linux-4.1.27/include/linux/
Dinetdevice.h182 __u32 hmask; in bad_mask() local
185 hmask = ntohl(mask); in bad_mask()
186 if (hmask & (hmask+1)) in bad_mask()
251 __u32 hmask = ntohl(mask); in inet_mask_len() local
252 if (!hmask) in inet_mask_len()
254 return 32 - ffz(~hmask); in inet_mask_len()
Dmm.h1139 int (*hugetlb_entry)(pte_t *pte, unsigned long hmask,
/linux-4.1.27/arch/powerpc/mm/
Dppc_mmu_32.c182 unsigned int hmask, mb, mb2; in MMU_init_hw() local
242 hmask = Hash_mask >> (16 - LG_HPTEG_SIZE); in MMU_init_hw()
251 hash_page_patch_B[0] = (hash_page_patch_B[0] & ~0xffff) | hmask; in MMU_init_hw()
252 hash_page_patch_C[0] = (hash_page_patch_C[0] & ~0xffff) | hmask; in MMU_init_hw()
269 flush_hash_patch_B[0] = (flush_hash_patch_B[0] & ~0xffff) | hmask; in MMU_init_hw()
/linux-4.1.27/include/net/
Dact_api.h40 unsigned int hmask; member
45 static inline unsigned int tcf_hash(u32 index, unsigned int hmask) in tcf_hash() argument
47 return index & hmask; in tcf_hash()
56 hf->hmask = mask; in tcf_hashinfo_init()
/linux-4.1.27/mm/
Dpagewalk.c138 unsigned long hmask = huge_page_mask(h); in walk_hugetlb_range() local
144 pte = huge_pte_offset(walk->mm, addr & hmask); in walk_hugetlb_range()
146 err = walk->hugetlb_entry(pte, hmask, addr, next, walk); in walk_hugetlb_range()
Dmincore.c22 static int mincore_hugetlb(pte_t *pte, unsigned long hmask, unsigned long addr, in mincore_hugetlb() argument
Dmempolicy.c525 static int queue_pages_hugetlb(pte_t *pte, unsigned long hmask, in queue_pages_hugetlb() argument
/linux-4.1.27/include/net/netns/
Dxfrm.h15 unsigned int hmask; member
/linux-4.1.27/net/sched/
Dact_api.c85 for (i = 0; i < (hinfo->hmask + 1); i++) { in tcf_dump_walker()
86 head = &hinfo->htab[tcf_hash(i, hinfo->hmask)]; in tcf_dump_walker()
136 for (i = 0; i < (hinfo->hmask + 1); i++) { in tcf_del_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()
274 unsigned int h = tcf_hash(p->tcfc_index, hinfo->hmask); in tcf_hash_insert()
Dcls_u32.c100 unsigned int h = ntohl(key & sel->hmask) >> fshift; in u32_hash_fold()
847 n->fshift = s->hmask ? ffs(ntohl(s->hmask)) - 1 : 0; in u32_change()
/linux-4.1.27/drivers/media/platform/vivid/
Dvivid-tpg.h150 unsigned hmask[TPG_MAX_PLANES]; member
367 return ((x / tpg->hdownsampling[plane]) & tpg->hmask[plane]) * in tpg_hdiv()
Dvivid-tpg.c187 tpg->hmask[0] = ~0; in tpg_s_fourcc()
188 tpg->hmask[1] = ~0; in tpg_s_fourcc()
189 tpg->hmask[2] = ~0; in tpg_s_fourcc()
260 tpg->hmask[1] = ~1; in tpg_s_fourcc()
272 tpg->hmask[1] = ~1; in tpg_s_fourcc()
287 tpg->hmask[0] = ~1; in tpg_s_fourcc()
/linux-4.1.27/arch/m68k/include/asm/
Dm68360_pram.h116 unsigned short hmask; /* user defined frm addr mask */ member
/linux-4.1.27/include/uapi/linux/
Dpkt_cls.h213 __be32 hmask; member
/linux-4.1.27/fs/proc/
Dtask_mmu.c1174 static int pagemap_hugetlb_range(pte_t *pte, unsigned long hmask, in pagemap_hugetlb_range() argument
1190 int offset = (addr & ~hmask) >> PAGE_SHIFT; in pagemap_hugetlb_range()
1447 static int gather_hugetlb_stats(pte_t *pte, unsigned long hmask, in gather_hugetlb_stats() argument
1466 static int gather_hugetlb_stats(pte_t *pte, unsigned long hmask, in gather_hugetlb_stats() argument