Lines Matching defs:end
829 * @end: on return holds the offset of the first non-pad TLV after CALIPSO
835 * If a CALIPSO option exists set @start and @end to the
837 * CALIPSO option and the end of padding after the first CALIPSO
840 * In the absence of a CALIPSO option, @start and @end will be
841 * set to the start and end of any trailing padding in the header.
847 unsigned int *end)
886 *end = offset_e + calipso_tlv_len(hop, offset_e);
888 *end = opt_len;
912 unsigned int start, end, buf_len, pad, hop_len;
918 ret_val = calipso_opt_find(hop, &start, &end);
924 end = 0;
927 buf_len = hop_len + start - end + CALIPSO_OPT_LEN_MAX_WITH_PAD;
943 pad = ((buf_len & 4) + (end & 7)) & 7;
947 if (end != hop_len) {
948 memcpy((char *)new + buf_len, (char *)hop + end, hop_len - end);
949 buf_len += hop_len - end;
975 unsigned int start, end, delta, pad, hop_len;
977 ret_val = calipso_opt_find(hop, &start, &end);
982 if (start == sizeof(*hop) && end == hop_len) {
988 delta = (end - start) & ~7;
995 pad = (end - start) & 7;
997 if (end != hop_len)
998 memcpy((char *)*new + start + pad, (char *)hop + end,
999 hop_len - end);
1303 unsigned int start, end;
1308 ret_val = calipso_opt_find(hop, &start, &end);
1313 end = 0;
1323 pad = ((new_end & 4) + (end & 7)) & 7;
1324 len_delta = new_end - (int)end + pad;
1374 u32 old_hop_len, start = 0, end = 0, delta, size, pad;
1388 ret_val = calipso_opt_find(old_hop, &start, &end);
1392 if (start == sizeof(*old_hop) && end == old_hop_len) {
1399 delta = (end - start) & ~7;
1402 pad = (end - start) & 7;