Searched refs:BITMASK (Results 1 – 5 of 5) sorted by relevance
/Linux-v4.19/include/uapi/linux/ |
D | bcache.h | 11 #define BITMASK(name, type, field, offset, size) \ macro 30 BITMASK(name, struct bkey, field, offset, size) 216 BITMASK(CACHE_SYNC, struct cache_sb, flags, 0, 1); 217 BITMASK(CACHE_DISCARD, struct cache_sb, flags, 1, 1); 218 BITMASK(CACHE_REPLACEMENT, struct cache_sb, flags, 2, 3); 223 BITMASK(BDEV_CACHE_MODE, struct cache_sb, flags, 0, 4); 228 BITMASK(BDEV_STATE, struct cache_sb, flags, 61, 2); 336 BITMASK(UUID_FLASH_ONLY, struct uuid_entry, flags, 0, 1);
|
/Linux-v4.19/drivers/video/fbdev/nvidia/ |
D | nv_type.h | 17 #define BITMASK(t,b) (((unsigned)(1U << (((t)-(b)+1)))-1) << (b)) macro 18 #define MASKEXPAND(mask) BITMASK(1?mask,0?mask)
|
/Linux-v4.19/drivers/net/ethernet/ti/ |
D | cpsw_ale.c | 28 #define BITMASK(bits) (BIT(bits) - 1) macro 75 return (ale_entry[idx] >> start) & BITMASK(bits); in cpsw_ale_get_field() 83 value &= BITMASK(bits); in cpsw_ale_set_field() 87 ale_entry[idx] &= ~(BITMASK(bits) << start); in cpsw_ale_set_field() 729 mask = BITMASK(info->bits); in cpsw_ale_control_set() 764 return tmp & BITMASK(info->bits); in cpsw_ale_control_get()
|
/Linux-v4.19/drivers/md/bcache/ |
D | bcache.h | 210 BITMASK(GC_MARK, struct bucket, gc_mark, 0, 2); 216 BITMASK(GC_SECTORS_USED, struct bucket, gc_mark, 2, GC_SECTORS_USED_SIZE); 217 BITMASK(GC_MOVE, struct bucket, gc_mark, 15, 1);
|
/Linux-v4.19/drivers/video/fbdev/riva/ |
D | nvreg.h | 30 #define BITMASK(t,b) (((unsigned)(1U << (((t)-(b)+1)))-1) << (b)) macro 31 #define MASKEXPAND(mask) BITMASK(1?mask,0?mask)
|