Lines Matching refs:tail_len
1133 int tail_len; in decrypt_tail() local
1136 tail_len = tail_onwire_len(con->in_msg, true); in decrypt_tail()
1138 con->v2.in_enc_page_cnt, 0, tail_len, in decrypt_tail()
1156 ret = gcm_crypt(con, false, enc_sgt.sgl, sgt.sgl, tail_len); in decrypt_tail()
1669 int tail_len; in prepare_message_secure() local
1677 tail_len = tail_onwire_len(con->out_msg, true); in prepare_message_secure()
1678 if (!tail_len) { in prepare_message_secure()
1693 enc_page_cnt = calc_pages_for(0, tail_len); in prepare_message_secure()
1703 con->v2.out_enc_resid = tail_len; in prepare_message_secure()
1707 0, tail_len, GFP_NOIO); in prepare_message_secure()
1712 tail_len - CEPH_GCM_TAG_LEN); in prepare_message_secure()
2109 int tail_len; in prepare_read_tail_secure() local
2111 tail_len = tail_onwire_len(con->in_msg, true); in prepare_read_tail_secure()
2112 WARN_ON(!tail_len); in prepare_read_tail_secure()
2114 enc_page_cnt = calc_pages_for(0, tail_len); in prepare_read_tail_secure()
2122 con->v2.in_enc_resid = tail_len; in prepare_read_tail_secure()
2138 int tail_len; in prepare_skip_message() local
2143 tail_len = __tail_onwire_len(desc->fd_lens[1], desc->fd_lens[2], in prepare_skip_message()
2145 if (!tail_len) { in prepare_skip_message()
2148 set_in_skip(con, tail_len); in prepare_skip_message()