Lines Matching refs:fd_seg_cnt
472 desc->fd_seg_cnt = calc_segment_count(lens, len_cnt); in init_frame_desc()
473 BUG_ON(desc->fd_seg_cnt > CEPH_FRAME_MAX_SEGMENT_COUNT); in init_frame_desc()
474 for (i = 0; i < desc->fd_seg_cnt; i++) { in init_frame_desc()
494 ceph_encode_8(&p, desc->fd_seg_cnt); in encode_preamble()
495 for (i = 0; i < desc->fd_seg_cnt; i++) { in encode_preamble()
520 desc->fd_seg_cnt = ceph_decode_8(&p); in decode_preamble()
521 if (desc->fd_seg_cnt < 1 || in decode_preamble()
522 desc->fd_seg_cnt > CEPH_FRAME_MAX_SEGMENT_COUNT) { in decode_preamble()
523 pr_err("bad segment count %d\n", desc->fd_seg_cnt); in decode_preamble()
526 for (i = 0; i < desc->fd_seg_cnt; i++) { in decode_preamble()
556 if (!desc->fd_lens[desc->fd_seg_cnt - 1]) { in decode_preamble()
558 desc->fd_seg_cnt); in decode_preamble()
2984 con, desc->fd_tag, desc->fd_seg_cnt, desc->fd_lens[0], in handle_preamble()