Home
last modified time | relevance | path

Searched refs:flag (Results 1 – 3 of 3) sorted by relevance

/block/
Dblk-core.c79 void blk_queue_flag_set(unsigned int flag, struct request_queue *q) in blk_queue_flag_set() argument
81 set_bit(flag, &q->queue_flags); in blk_queue_flag_set()
90 void blk_queue_flag_clear(unsigned int flag, struct request_queue *q) in blk_queue_flag_clear() argument
92 clear_bit(flag, &q->queue_flags); in blk_queue_flag_clear()
104 bool blk_queue_flag_test_and_set(unsigned int flag, struct request_queue *q) in blk_queue_flag_test_and_set() argument
106 return test_and_set_bit(flag, &q->queue_flags); in blk_queue_flag_test_and_set()
Dgenhd.c1570 void set_device_ro(struct block_device *bdev, int flag) in set_device_ro() argument
1572 bdev->bd_part->policy = flag; in set_device_ro()
1577 void set_disk_ro(struct gendisk *disk, int flag) in set_disk_ro() argument
1582 if (disk->part0.policy != flag) { in set_disk_ro()
1583 set_disk_ro_uevent(disk, flag); in set_disk_ro()
1584 disk->part0.policy = flag; in set_disk_ro()
1589 part->policy = flag; in set_disk_ro()
Dblk-sysfs.c253 #define QUEUE_SYSFS_BIT_FNS(name, flag, neg) \ argument
258 bit = test_bit(QUEUE_FLAG_##flag, &q->queue_flags); \
273 blk_queue_flag_set(QUEUE_FLAG_##flag, q); \
275 blk_queue_flag_clear(QUEUE_FLAG_##flag, q); \