Home
last modified time | relevance | path

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

/linux-4.4.14/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.c380 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in policy_hash_bysel() local
386 hash = __sel_hash(sel, family, hmask, dbits, sbits); in policy_hash_bysel()
388 return (hash == hmask + 1 ? in policy_hash_bysel()
398 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in policy_hash_direct() local
404 hash = __addr_hash(daddr, saddr, family, hmask, dbits, sbits); in policy_hash_direct()
468 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in xfrm_bydst_resize() local
469 unsigned int nhashmask = xfrm_new_hash_mask(hmask); in xfrm_bydst_resize()
480 for (i = hmask; i >= 0; i--) in xfrm_bydst_resize()
484 net->xfrm.policy_bydst[dir].hmask = nhashmask; in xfrm_bydst_resize()
488 xfrm_hash_free(odst, (hmask + 1) * sizeof(struct hlist_head)); in xfrm_bydst_resize()
[all …]
/linux-4.4.14/arch/x86/include/asm/fpu/
Dinternal.h248 u32 hmask = mask >> 32; in copy_xregs_to_kernel_booting() local
257 : "D" (xstate), "m" (*xstate), "a" (lmask), "d" (hmask), "0" (err) in copy_xregs_to_kernel_booting()
263 : "D" (xstate), "m" (*xstate), "a" (lmask), "d" (hmask), "0" (err) in copy_xregs_to_kernel_booting()
278 u32 hmask = mask >> 32; in copy_kernel_to_xregs_booting() local
287 : "D" (xstate), "m" (*xstate), "a" (lmask), "d" (hmask), "0" (err) in copy_kernel_to_xregs_booting()
293 : "D" (xstate), "m" (*xstate), "a" (lmask), "d" (hmask), "0" (err) in copy_kernel_to_xregs_booting()
307 u32 hmask = mask >> 32; in copy_xregs_to_kernel() local
329 [xstate] "D" (xstate), "a" (lmask), "d" (hmask) : in copy_xregs_to_kernel()
346 u32 hmask = mask >> 32; in copy_kernel_to_xregs() local
357 "D" (xstate), "m" (*xstate), "a" (lmask), "d" (hmask) in copy_kernel_to_xregs()
[all …]
/linux-4.4.14/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.4.14/include/linux/
Dinetdevice.h185 __u32 hmask; in bad_mask() local
188 hmask = ntohl(mask); in bad_mask()
189 if (hmask & (hmask+1)) in bad_mask()
254 __u32 hmask = ntohl(mask); in inet_mask_len() local
255 if (!hmask) in inet_mask_len()
257 return 32 - ffz(~hmask); in inet_mask_len()
Dmm.h1124 int (*hugetlb_entry)(pte_t *pte, unsigned long hmask,
/linux-4.4.14/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.4.14/include/net/
Dact_api.h42 unsigned int hmask; member
47 static inline unsigned int tcf_hash(u32 index, unsigned int hmask) in tcf_hash() argument
49 return index & hmask; in tcf_hash()
58 hf->hmask = mask; in tcf_hashinfo_init()
/linux-4.4.14/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.4.14/include/net/netns/
Dxfrm.h15 unsigned int hmask; member
/linux-4.4.14/net/sched/
Dact_api.c93 for (i = 0; i < (hinfo->hmask + 1); i++) { in tcf_dump_walker()
94 head = &hinfo->htab[tcf_hash(i, hinfo->hmask)]; in tcf_dump_walker()
144 for (i = 0; i < (hinfo->hmask + 1); i++) { in tcf_del_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()
297 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.4.14/arch/m68k/include/asm/
Dm68360_pram.h116 unsigned short hmask; /* user defined frm addr mask */ member
/linux-4.4.14/drivers/media/platform/vivid/
Dvivid-tpg.h156 unsigned hmask[TPG_MAX_PLANES]; member
387 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()
270 tpg->hmask[1] = ~1; in tpg_s_fourcc()
282 tpg->hmask[1] = ~1; in tpg_s_fourcc()
297 tpg->hmask[0] = ~1; in tpg_s_fourcc()
/linux-4.4.14/fs/proc/
Dtask_mmu.c632 static int smaps_hugetlb_range(pte_t *pte, unsigned long hmask, in smaps_hugetlb_range() argument
1179 static int pagemap_hugetlb_range(pte_t *ptep, unsigned long hmask, in pagemap_hugetlb_range() argument
1205 ((addr & ~hmask) >> PAGE_SHIFT); in pagemap_hugetlb_range()
1500 static int gather_hugetlb_stats(pte_t *pte, unsigned long hmask, in gather_hugetlb_stats() argument
1520 static int gather_hugetlb_stats(pte_t *pte, unsigned long hmask, in gather_hugetlb_stats() argument
/linux-4.4.14/include/uapi/linux/
Dpkt_cls.h197 __be32 hmask; member