Lines Matching defs:au
274 struct ceph_x_authorizer *au)
285 ceph_entity_type_name(th->service), au);
290 if (au->buf && au->buf->alloc_len < maxlen) {
291 ceph_buffer_put(au->buf);
292 au->buf = NULL;
294 if (!au->buf) {
295 au->buf = ceph_buffer_new(maxlen, GFP_NOFS);
296 if (!au->buf)
299 au->service = th->service;
301 msg_a = au->buf->vec.iov_base;
317 end = au->buf->vec.iov_base + au->buf->vec.iov_len;
319 get_random_bytes(&au->nonce, sizeof(au->nonce));
321 msg_b.nonce = cpu_to_le64(au->nonce);
327 au->buf->vec.iov_len = p - au->buf->vec.iov_base;
328 dout(" built authorizer nonce %llx len %d\n", au->nonce,
329 (int)au->buf->vec.iov_len);
330 BUG_ON(au->buf->vec.iov_len > maxlen);
334 ceph_buffer_put(au->buf);
335 au->buf = NULL;
532 struct ceph_x_authorizer *au;
540 au = kzalloc(sizeof(*au), GFP_NOFS);
541 if (!au)
544 ret = ceph_x_build_authorizer(ac, th, au);
546 kfree(au);
550 *a = (struct ceph_authorizer *)au;
551 *buf = au->buf->vec.iov_base;
552 *len = au->buf->vec.iov_len;
553 *reply_buf = au->reply_buf;
554 *reply_len = sizeof(au->reply_buf);
561 struct ceph_x_authorizer *au = (void *)a;
565 void *p = au->reply_buf;
566 void *end = p + sizeof(au->reply_buf);
568 th = get_ticket_handler(ac, au->service);
577 if (au->nonce + 1 != le64_to_cpu(reply.nonce_plus_one))
582 au->nonce, le64_to_cpu(reply.nonce_plus_one), ret);
589 struct ceph_x_authorizer *au = (void *)a;
591 ceph_buffer_put(au->buf);
592 kfree(au);