Lines Matching refs:uspi

19 struct ufs_buffer_head * _ubh_bread_ (struct ufs_sb_private_info * uspi,  in _ubh_bread_()  argument
25 if (size & ~uspi->s_fmask) in _ubh_bread_()
27 count = size >> uspi->s_fshift; in _ubh_bread_()
48 struct ufs_buffer_head * ubh_bread_uspi (struct ufs_sb_private_info * uspi, in ubh_bread_uspi() argument
53 if (size & ~uspi->s_fmask) in ubh_bread_uspi()
55 count = size >> uspi->s_fshift; in ubh_bread_uspi()
58 USPI_UBH(uspi)->fragment = fragment; in ubh_bread_uspi()
59 USPI_UBH(uspi)->count = count; in ubh_bread_uspi()
61 if (!(USPI_UBH(uspi)->bh[i] = sb_bread(sb, fragment + i))) in ubh_bread_uspi()
64 USPI_UBH(uspi)->bh[i] = NULL; in ubh_bread_uspi()
65 return USPI_UBH(uspi); in ubh_bread_uspi()
68 brelse (USPI_UBH(uspi)->bh[j]); in ubh_bread_uspi()
82 void ubh_brelse_uspi (struct ufs_sb_private_info * uspi) in ubh_brelse_uspi() argument
85 if (!USPI_UBH(uspi)) in ubh_brelse_uspi()
87 for ( i = 0; i < USPI_UBH(uspi)->count; i++ ) { in ubh_brelse_uspi()
88 brelse (USPI_UBH(uspi)->bh[i]); in ubh_brelse_uspi()
89 USPI_UBH(uspi)->bh[i] = NULL; in ubh_brelse_uspi()
149 void _ubh_ubhcpymem_(struct ufs_sb_private_info * uspi, in _ubh_ubhcpymem_() argument
153 if (size > (ubh->count << uspi->s_fshift)) in _ubh_ubhcpymem_()
154 size = ubh->count << uspi->s_fshift; in _ubh_ubhcpymem_()
157 len = min_t(unsigned int, size, uspi->s_fsize); in _ubh_ubhcpymem_()
159 mem += uspi->s_fsize; in _ubh_ubhcpymem_()
165 void _ubh_memcpyubh_(struct ufs_sb_private_info * uspi, in _ubh_memcpyubh_() argument
169 if (size > (ubh->count << uspi->s_fshift)) in _ubh_memcpyubh_()
170 size = ubh->count << uspi->s_fshift; in _ubh_memcpyubh_()
173 len = min_t(unsigned int, size, uspi->s_fsize); in _ubh_memcpyubh_()
175 mem += uspi->s_fsize; in _ubh_memcpyubh_()