Lines Matching refs:proto
24 static int init_protocol(struct ceph_auth_client *ac, int proto) in init_protocol() argument
26 dout("%s proto %d\n", __func__, proto); in init_protocol()
28 switch (proto) { in init_protocol()
34 pr_err("bad auth protocol %d\n", proto); in init_protocol()
311 int *proto, int *pref_mode, int *fallb_mode) in __ceph_auth_get_authorizer() argument
329 *proto = ac->protocol; in __ceph_auth_get_authorizer()
429 int proto = ac->key ? CEPH_AUTH_CEPHX : CEPH_AUTH_NONE; in ceph_auth_get_request() local
437 ret = init_protocol(ac, proto); in ceph_auth_get_request()
440 ceph_auth_proto_name(proto), ret); in ceph_auth_get_request()
444 WARN_ON(ac->protocol != proto); in ceph_auth_get_request()
553 int proto; in ceph_auth_get_authorizer() local
557 ret = __ceph_auth_get_authorizer(ac, auth, peer_type, true, &proto, in ceph_auth_get_authorizer()
563 ceph_encode_32_safe(&p, end, proto, e_range); in ceph_auth_get_authorizer()