Lines Matching refs:protocol
23 static int ceph_auth_init_protocol(struct ceph_auth_client *ac, int protocol) in ceph_auth_init_protocol() argument
25 switch (protocol) { in ceph_auth_init_protocol()
156 ceph_encode_32(&p, ac->protocol); in ceph_build_auth_request()
180 int protocol; in ceph_handle_auth_reply() local
192 protocol = ceph_decode_32(&p); in ceph_handle_auth_reply()
217 if (!protocol && result < 0) { in ceph_handle_auth_reply()
222 if (ac->protocol && ac->protocol != protocol) { in ceph_handle_auth_reply()
224 ac->protocol = 0; in ceph_handle_auth_reply()
227 if (ac->protocol != protocol) { in ceph_handle_auth_reply()
228 ret = ceph_auth_init_protocol(ac, protocol); in ceph_handle_auth_reply()
231 ret, protocol); in ceph_handle_auth_reply()
262 if (!ac->protocol) in ceph_build_auth()