Lines Matching refs:block

418 #define ubh_isblockclear(ubh,begin,block) (!_ubh_isblockset_(uspi,ubh,begin,block))  argument
420 #define ubh_isblockset(ubh,begin,block) _ubh_isblockset_(uspi,ubh,begin,block) argument
422 struct ufs_buffer_head * ubh, unsigned begin, unsigned block) in _ubh_isblockset_() argument
426 return (*ubh_get_addr (ubh, begin + block) == 0xff); in _ubh_isblockset_()
428 return (*ubh_get_addr (ubh, begin + (block >> 1)) == (0x0f << ((block & 0x01) << 2))); in _ubh_isblockset_()
430 return (*ubh_get_addr (ubh, begin + (block >> 2)) == (0x03 << ((block & 0x03) << 1))); in _ubh_isblockset_()
432 return (*ubh_get_addr (ubh, begin + (block >> 3)) == (0x01 << (block & 0x07))); in _ubh_isblockset_()
437 #define ubh_clrblock(ubh,begin,block) _ubh_clrblock_(uspi,ubh,begin,block) argument
439 struct ufs_buffer_head * ubh, unsigned begin, unsigned block) in _ubh_clrblock_() argument
443 *ubh_get_addr (ubh, begin + block) = 0x00; in _ubh_clrblock_()
446 *ubh_get_addr (ubh, begin + (block >> 1)) &= ~(0x0f << ((block & 0x01) << 2)); in _ubh_clrblock_()
449 *ubh_get_addr (ubh, begin + (block >> 2)) &= ~(0x03 << ((block & 0x03) << 1)); in _ubh_clrblock_()
452 *ubh_get_addr (ubh, begin + (block >> 3)) &= ~(0x01 << ((block & 0x07))); in _ubh_clrblock_()
457 #define ubh_setblock(ubh,begin,block) _ubh_setblock_(uspi,ubh,begin,block) argument
459 struct ufs_buffer_head * ubh, unsigned begin, unsigned block) in _ubh_setblock_() argument
463 *ubh_get_addr(ubh, begin + block) = 0xff; in _ubh_setblock_()
466 *ubh_get_addr(ubh, begin + (block >> 1)) |= (0x0f << ((block & 0x01) << 2)); in _ubh_setblock_()
469 *ubh_get_addr(ubh, begin + (block >> 2)) |= (0x03 << ((block & 0x03) << 1)); in _ubh_setblock_()
472 *ubh_get_addr(ubh, begin + (block >> 3)) |= (0x01 << ((block & 0x07))); in _ubh_setblock_()