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