Home
last modified time | relevance | path

Searched refs:cbits (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/fs/ocfs2/
Docfs2.h818 unsigned int cbits = OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_page_index_to_clusters() local
820 if (unlikely(PAGE_SHIFT > cbits)) in ocfs2_page_index_to_clusters()
821 clusters = pg_index << (PAGE_SHIFT - cbits); in ocfs2_page_index_to_clusters()
822 else if (PAGE_SHIFT < cbits) in ocfs2_page_index_to_clusters()
823 clusters = pg_index >> (cbits - PAGE_SHIFT); in ocfs2_page_index_to_clusters()
834 unsigned int cbits = OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_align_clusters_to_page_index() local
837 if (PAGE_SHIFT > cbits) { in ocfs2_align_clusters_to_page_index()
838 index = (pgoff_t)clusters >> (PAGE_SHIFT - cbits); in ocfs2_align_clusters_to_page_index()
839 } else if (PAGE_SHIFT < cbits) { in ocfs2_align_clusters_to_page_index()
840 index = (pgoff_t)clusters << (cbits - PAGE_SHIFT); in ocfs2_align_clusters_to_page_index()
[all …]
Dsuper.c567 unsigned int cbits) in ocfs2_max_file_offset() argument
569 unsigned int bytes = 1 << cbits; in ocfs2_max_file_offset()
2002 int i, cbits, bbits; in ocfs2_initialize_super() local
2026 cbits = le32_to_cpu(di->id2.i_super.s_clustersize_bits); in ocfs2_initialize_super()
2028 sb->s_maxbytes = ocfs2_max_file_offset(bbits, cbits); in ocfs2_initialize_super()
2032 osb->osb_dx_mask = (1 << (cbits - bbits)) - 1; in ocfs2_initialize_super()
/linux-6.1.9/drivers/gpu/drm/omapdrm/
Domap_crtc.c371 u64 cbits = (u64)coef; in omap_crtc_s31_32_to_s2_8() local
373 s16 ret = clamp_val(((cbits & ~sign_bit) >> 24), 0, 0x1ff); in omap_crtc_s31_32_to_s2_8()
375 if (cbits & sign_bit) in omap_crtc_s31_32_to_s2_8()
/linux-6.1.9/drivers/gpu/drm/tidss/
Dtidss_dispc.c2382 u64 cbits = (u64)coef; in dispc_S31_32_to_s2_8() local
2385 if (cbits & sign_bit) in dispc_S31_32_to_s2_8()
2386 ret = -clamp_val(((cbits & ~sign_bit) >> 24), 0, 0x200); in dispc_S31_32_to_s2_8()
2388 ret = clamp_val(((cbits & ~sign_bit) >> 24), 0, 0x1FF); in dispc_S31_32_to_s2_8()
2460 u64 cbits = (u64)coef; in dispc_S31_32_to_s3_8() local
2463 if (cbits & sign_bit) in dispc_S31_32_to_s3_8()
2464 ret = -clamp_val(((cbits & ~sign_bit) >> 24), 0, 0x400); in dispc_S31_32_to_s3_8()
2466 ret = clamp_val(((cbits & ~sign_bit) >> 24), 0, 0x3FF); in dispc_S31_32_to_s3_8()