Home
last modified time | relevance | path

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

/linux-5.19.10/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()
2001 int i, cbits, bbits; in ocfs2_initialize_super() local
2025 cbits = le32_to_cpu(di->id2.i_super.s_clustersize_bits); in ocfs2_initialize_super()
2027 sb->s_maxbytes = ocfs2_max_file_offset(bbits, cbits); in ocfs2_initialize_super()
2031 osb->osb_dx_mask = (1 << (cbits - bbits)) - 1; in ocfs2_initialize_super()
/linux-5.19.10/drivers/gpu/drm/omapdrm/
Domap_crtc.c372 u64 cbits = (u64)coef; in omap_crtc_s31_32_to_s2_8() local
374 s16 ret = clamp_val(((cbits & ~sign_bit) >> 24), 0, 0x1ff); in omap_crtc_s31_32_to_s2_8()
376 if (cbits & sign_bit) in omap_crtc_s31_32_to_s2_8()
/linux-5.19.10/drivers/gpu/drm/tidss/
Dtidss_dispc.c2379 u64 cbits = (u64)coef; in dispc_S31_32_to_s2_8() local
2382 if (cbits & sign_bit) in dispc_S31_32_to_s2_8()
2383 ret = -clamp_val(((cbits & ~sign_bit) >> 24), 0, 0x200); in dispc_S31_32_to_s2_8()
2385 ret = clamp_val(((cbits & ~sign_bit) >> 24), 0, 0x1FF); in dispc_S31_32_to_s2_8()
2457 u64 cbits = (u64)coef; in dispc_S31_32_to_s3_8() local
2460 if (cbits & sign_bit) in dispc_S31_32_to_s3_8()
2461 ret = -clamp_val(((cbits & ~sign_bit) >> 24), 0, 0x400); in dispc_S31_32_to_s3_8()
2463 ret = clamp_val(((cbits & ~sign_bit) >> 24), 0, 0x3FF); in dispc_S31_32_to_s3_8()