Home
last modified time | relevance | path

Searched refs:bb (Results 1 – 5 of 5) sorted by relevance

/fs/sysfs/
Dbin.c72 struct bin_buffer *bb = file->private_data; in read() local
92 mutex_lock(&bb->mutex); in read()
94 count = fill_read(file, bb->buffer, offs, count); in read()
96 mutex_unlock(&bb->mutex); in read()
100 memcpy(temp, bb->buffer, count); in read()
102 mutex_unlock(&bb->mutex); in read()
142 struct bin_buffer *bb = file->private_data; in write() local
162 mutex_lock(&bb->mutex); in write()
164 memcpy(bb->buffer, temp, count); in write()
166 count = flush_write(file, bb->buffer, offs, count); in write()
[all …]
/fs/xfs/
Dxfs_rtalloc.h46 #define XFS_SUMOFFS(mp,ls,bb) ((int)((ls) * (mp)->m_sb.sb_rbmblocks + (bb))) argument
54 #define XFS_BLOCKTOBIT(mp,bb) ((bb) << (mp)->m_blkbit_log) argument
Dxfs_bmap_btree.h186 #define XFS_BMAP_BROOT_PTR_ADDR(mp, bb, i, sz) \ argument
187 XFS_BMBT_PTR_ADDR(mp, bb, i, xfs_bmbt_maxrecs(mp, sz, 0))
193 #define XFS_BMAP_BROOT_SPACE(bb) \ argument
194 (XFS_BMAP_BROOT_SPACE_CALC(be16_to_cpu((bb)->bb_numrecs)))
Dxfs_sb.h529 #define XFS_BB_TO_FSB(mp,bb) \ argument
530 (((bb) + (XFS_FSB_TO_BB(mp,1) - 1)) >> (mp)->m_blkbb_log)
531 #define XFS_BB_TO_FSBT(mp,bb) ((bb) >> (mp)->m_blkbb_log) argument
/fs/ext4/
Dmballoc.c428 char *bb; in mb_find_buddy() local
444 bb = e4b->bd_buddy + EXT4_SB(e4b->bd_sb)->s_mb_offsets[order]; in mb_find_buddy()
447 return bb; in mb_find_buddy()
1204 void *bb; in mb_find_order_for_block() local
1209 bb = e4b->bd_buddy; in mb_find_order_for_block()
1212 if (!mb_test_bit(block, bb)) { in mb_find_order_for_block()
1216 bb += 1 << (e4b->bd_blkbits - order); in mb_find_order_for_block()