Lines Matching refs:field_len
49 guint field_len; in cam_calc_length_field_size() local
52 field_len = 1; in cam_calc_length_field_size()
54 field_len = 3; in cam_calc_length_field_size()
56 field_len = 4; in cam_calc_length_field_size()
58 field_len = 5; in cam_calc_length_field_size()
60 return field_len; in cam_calc_length_field_size()
67 guint8 field_len = cam_calc_length_field_size (length); in cam_write_length_field() local
70 switch (field_len) { in cam_write_length_field()
78 buff[0] = TPDU_HEADER_SIZE_INDICATOR | (field_len - 1); in cam_write_length_field()
83 buff[0] = TPDU_HEADER_SIZE_INDICATOR | (field_len - 1); in cam_write_length_field()
89 buff[0] = TPDU_HEADER_SIZE_INDICATOR | (field_len - 1); in cam_write_length_field()
100 return field_len; in cam_write_length_field()
108 guint field_len; in cam_read_length_field() local
112 field_len = 1; in cam_read_length_field()
115 field_len = buff[0] & ~TPDU_HEADER_SIZE_INDICATOR; in cam_read_length_field()
116 if (field_len > 4) { in cam_read_length_field()
117 GST_ERROR ("length_field length exceeds 4 bytes: %d", field_len); in cam_read_length_field()
118 field_len = 0; in cam_read_length_field()
122 for (i = 0; i < field_len; ++i) in cam_read_length_field()
126 field_len += 1; in cam_read_length_field()
133 return field_len; in cam_read_length_field()