Home
last modified time | relevance | path

Searched refs:BITMASK (Results 1 – 9 of 9) sorted by relevance

/linux-6.12.1/drivers/md/bcache/
Dbcache_ondisk.h11 #define BITMASK(name, type, field, offset, size) \ macro
30 BITMASK(name, struct bkey, field, offset, size)
285 BITMASK(CACHE_SYNC, struct cache_sb, flags, 0, 1);
286 BITMASK(CACHE_DISCARD, struct cache_sb, flags, 1, 1);
287 BITMASK(CACHE_REPLACEMENT, struct cache_sb, flags, 2, 3);
292 BITMASK(BDEV_CACHE_MODE, struct cache_sb, flags, 0, 4);
297 BITMASK(BDEV_STATE, struct cache_sb, flags, 61, 2);
405 BITMASK(UUID_FLASH_ONLY, struct uuid_entry, flags, 0, 1);
Dbcache.h211 BITMASK(GC_MARK, struct bucket, gc_mark, 0, 2);
217 BITMASK(GC_SECTORS_USED, struct bucket, gc_mark, 2, GC_SECTORS_USED_SIZE);
218 BITMASK(GC_MOVE, struct bucket, gc_mark, 15, 1);
/linux-6.12.1/fs/bcachefs/
Dalloc_background_format.h81 BITMASK(BCH_ALLOC_V4_NEED_DISCARD, struct bch_alloc_v4, flags, 0, 1)
82 BITMASK(BCH_ALLOC_V4_NEED_INC_GEN, struct bch_alloc_v4, flags, 1, 2)
83 BITMASK(BCH_ALLOC_V4_BACKPOINTERS_START,struct bch_alloc_v4, flags, 2, 8)
84 BITMASK(BCH_ALLOC_V4_NR_BACKPOINTERS, struct bch_alloc_v4, flags, 8, 14)
Dinode.h95 BITMASK(INODE_STR_HASH, struct bch_inode_unpacked, bi_flags, 20, 24);
Dbcachefs_format.h86 #define BITMASK(name, type, field, offset, end) \ macro
/linux-6.12.1/drivers/video/fbdev/nvidia/
Dnv_type.h17 #define BITMASK(t,b) (((unsigned)(1U << (((t)-(b)+1)))-1) << (b)) macro
18 #define MASKEXPAND(mask) BITMASK(1?mask,0?mask)
/linux-6.12.1/drivers/net/ethernet/ti/
Dcpsw_ale.c24 #define BITMASK(bits) (BIT(bits) - 1) macro
142 return (hi_val + (ale_entry[idx] >> start)) & BITMASK(bits); in cpsw_ale_get_field()
150 value &= BITMASK(bits); in cpsw_ale_set_field()
156 ale_entry[idx2] &= ~(BITMASK(bits + start - (idx2 * 32))); in cpsw_ale_set_field()
161 ale_entry[idx] &= ~(BITMASK(bits) << start); in cpsw_ale_set_field()
1139 mask = BITMASK(info->bits); in cpsw_ale_control_set()
1173 return tmp & BITMASK(info->bits); in cpsw_ale_control_get()
/linux-6.12.1/drivers/usb/cdns3/
Dcdnsp-gadget.h488 #define RTL_REV_CAP_RX_BUFF_CMD_SIZE BITMASK(31, 24)
489 #define RTL_REV_CAP_RX_BUFF_SIZE BITMASK(15, 0)
490 #define RTL_REV_CAP_TX_BUFF_CMD_SIZE BITMASK(31, 24)
491 #define RTL_REV_CAP_TX_BUFF_SIZE BITMASK(15, 0)
/linux-6.12.1/drivers/video/fbdev/riva/
Dnvreg.h30 #define BITMASK(t,b) (((unsigned)(1U << (((t)-(b)+1)))-1) << (b)) macro
31 #define MASKEXPAND(mask) BITMASK(1?mask,0?mask)