Lines Matching refs:fd_seg_cnt
466 desc->fd_seg_cnt = calc_segment_count(lens, len_cnt); in init_frame_desc()
467 BUG_ON(desc->fd_seg_cnt > CEPH_FRAME_MAX_SEGMENT_COUNT); in init_frame_desc()
468 for (i = 0; i < desc->fd_seg_cnt; i++) { in init_frame_desc()
488 ceph_encode_8(&p, desc->fd_seg_cnt); in encode_preamble()
489 for (i = 0; i < desc->fd_seg_cnt; i++) { in encode_preamble()
514 desc->fd_seg_cnt = ceph_decode_8(&p); in decode_preamble()
515 if (desc->fd_seg_cnt < 1 || in decode_preamble()
516 desc->fd_seg_cnt > CEPH_FRAME_MAX_SEGMENT_COUNT) { in decode_preamble()
517 pr_err("bad segment count %d\n", desc->fd_seg_cnt); in decode_preamble()
520 for (i = 0; i < desc->fd_seg_cnt; i++) { in decode_preamble()
529 if (!desc->fd_lens[desc->fd_seg_cnt - 1]) { in decode_preamble()
2757 con, desc->fd_tag, desc->fd_seg_cnt, desc->fd_lens[0], in handle_preamble()