Home
last modified time | relevance | path

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

/linux-6.12.1/fs/ocfs2/
Docfs2.h844 unsigned int cbits = OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_page_index_to_clusters() local
846 if (unlikely(PAGE_SHIFT > cbits)) in ocfs2_page_index_to_clusters()
847 clusters = pg_index << (PAGE_SHIFT - cbits); in ocfs2_page_index_to_clusters()
848 else if (PAGE_SHIFT < cbits) in ocfs2_page_index_to_clusters()
849 clusters = pg_index >> (cbits - PAGE_SHIFT); in ocfs2_page_index_to_clusters()
860 unsigned int cbits = OCFS2_SB(sb)->s_clustersize_bits; in ocfs2_align_clusters_to_page_index() local
863 if (PAGE_SHIFT > cbits) { in ocfs2_align_clusters_to_page_index()
864 index = (pgoff_t)clusters >> (PAGE_SHIFT - cbits); in ocfs2_align_clusters_to_page_index()
865 } else if (PAGE_SHIFT < cbits) { in ocfs2_align_clusters_to_page_index()
866 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.12.1/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.12.1/drivers/gpu/drm/tidss/
Dtidss_dispc.c2489 u64 cbits = (u64)coef; in dispc_S31_32_to_s2_8() local
2492 if (cbits & sign_bit) in dispc_S31_32_to_s2_8()
2493 ret = -clamp_val(((cbits & ~sign_bit) >> 24), 0, 0x200); in dispc_S31_32_to_s2_8()
2495 ret = clamp_val(((cbits & ~sign_bit) >> 24), 0, 0x1FF); in dispc_S31_32_to_s2_8()
2567 u64 cbits = (u64)coef; in dispc_S31_32_to_s3_8() local
2570 if (cbits & sign_bit) in dispc_S31_32_to_s3_8()
2571 ret = -clamp_val(((cbits & ~sign_bit) >> 24), 0, 0x400); in dispc_S31_32_to_s3_8()
2573 ret = clamp_val(((cbits & ~sign_bit) >> 24), 0, 0x3FF); in dispc_S31_32_to_s3_8()