Lines Matching refs:con_flag
85 static bool con_flag_valid(unsigned long con_flag) in con_flag_valid() argument
87 switch (con_flag) { in con_flag_valid()
99 void ceph_con_flag_clear(struct ceph_connection *con, unsigned long con_flag) in ceph_con_flag_clear() argument
101 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_clear()
103 clear_bit(con_flag, &con->flags); in ceph_con_flag_clear()
106 void ceph_con_flag_set(struct ceph_connection *con, unsigned long con_flag) in ceph_con_flag_set() argument
108 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_set()
110 set_bit(con_flag, &con->flags); in ceph_con_flag_set()
113 bool ceph_con_flag_test(struct ceph_connection *con, unsigned long con_flag) in ceph_con_flag_test() argument
115 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_test()
117 return test_bit(con_flag, &con->flags); in ceph_con_flag_test()
121 unsigned long con_flag) in ceph_con_flag_test_and_clear() argument
123 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_test_and_clear()
125 return test_and_clear_bit(con_flag, &con->flags); in ceph_con_flag_test_and_clear()
129 unsigned long con_flag) in ceph_con_flag_test_and_set() argument
131 BUG_ON(!con_flag_valid(con_flag)); in ceph_con_flag_test_and_set()
133 return test_and_set_bit(con_flag, &con->flags); in ceph_con_flag_test_and_set()