Lines Matching defs:buf_len
880 static int calc_sg_cnt(void *buf, int buf_len)
884 if (!buf_len)
887 sg_cnt = need_padding(buf_len) ? 1 : 0;
890 sg_cnt += PAGE_ALIGN(buf_len) >> PAGE_SHIFT;
918 static void init_sgs(struct scatterlist **sg, void *buf, int buf_len, u8 *pad)
920 void *end = buf + buf_len;
925 if (!buf_len)
939 sg_set_buf(*sg, buf, buf_len);
943 if (need_padding(buf_len)) {
944 sg_set_buf(*sg, pad, padding_len(buf_len));
1184 int buf_len = CEPH_BANNER_V2_LEN + 2 + 8 + 8;
1187 buf = alloc_conn_buf(con, buf_len);
1196 WARN_ON(p != buf + buf_len);
1198 add_out_kvec(con, buf, buf_len);
1199 add_out_sign_kvec(con, buf, buf_len);