Home
last modified time | relevance | path

Searched refs:cur_off (Results 1 – 6 of 6) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dtest_seg6_loop.c123 uint32_t srh_off, cur_off; in is_valid_tlv_boundary() local
129 cur_off = srh_off + sizeof(*srh) + in is_valid_tlv_boundary()
141 if (cur_off == *tlv_off) in is_valid_tlv_boundary()
144 if (cur_off >= srh_off + ((srh->hdrlen + 1) << 3)) in is_valid_tlv_boundary()
147 err = bpf_skb_load_bytes(skb, cur_off, &tlv, sizeof(tlv)); in is_valid_tlv_boundary()
153 *pad_off = cur_off; in is_valid_tlv_boundary()
156 *tlv_off = cur_off; in is_valid_tlv_boundary()
165 cur_off += sizeof(tlv) + tlv.len; in is_valid_tlv_boundary()
169 *pad_off = cur_off; in is_valid_tlv_boundary()
172 *tlv_off = cur_off; in is_valid_tlv_boundary()
Dtest_lwt_seg6local.c122 uint32_t srh_off, cur_off; in is_valid_tlv_boundary() local
128 cur_off = srh_off + sizeof(*srh) + in is_valid_tlv_boundary()
138 if (cur_off == *tlv_off) in is_valid_tlv_boundary()
141 if (cur_off >= srh_off + ((srh->hdrlen + 1) << 3)) in is_valid_tlv_boundary()
144 err = bpf_skb_load_bytes(skb, cur_off, &tlv, sizeof(tlv)); in is_valid_tlv_boundary()
150 *pad_off = cur_off; in is_valid_tlv_boundary()
153 *tlv_off = cur_off; in is_valid_tlv_boundary()
162 cur_off += sizeof(tlv) + tlv.len; in is_valid_tlv_boundary()
166 *pad_off = cur_off; in is_valid_tlv_boundary()
169 *tlv_off = cur_off; in is_valid_tlv_boundary()
/external/puffin/src/
Dfile_stream.cc38 auto cur_off = lseek(fd_, 0, SEEK_CUR); in GetSize() local
39 TEST_AND_RETURN_FALSE(cur_off >= 0); in GetSize()
42 cur_off = lseek(fd_, cur_off, SEEK_SET); in GetSize()
43 TEST_AND_RETURN_FALSE(cur_off >= 0); in GetSize()
/external/elfutils/src/
Dar.c464 off_t cur_off = SARMAG; in do_oper_extract() local
509 arlib_add_symbols (elf, arfname, arhdr->ar_name, cur_off); in do_oper_extract()
510 cur_off += (((arhdr->ar_size + 1) & ~((off_t) 1)) in do_oper_extract()
936 off_t cur_off = SARMAG; in do_oper_delete() local
968 newp->off = cur_off; in do_oper_delete()
970 cur_off += (((arhdr->ar_size + 1) & ~((off_t) 1)) in do_oper_delete()
1046 if (write_member (to_copy, &start, &len, elf, cur_off, newfd) != 0) in do_oper_delete()
1113 off_t cur_off = SARMAG; in do_oper_insert() local
1361 memp->off = cur_off; in do_oper_insert()
1375 arlib_add_symbols (subelf, arfname, arhdr->ar_name, cur_off); in do_oper_insert()
[all …]
Dranlib.c176 off_t cur_off = SARMAG; in handle_file() local
192 arlib_add_symbols (elf, fname, arhdr->ar_name, cur_off); in handle_file()
193 cur_off += (((arhdr->ar_size + 1) & ~((off_t) 1)) in handle_file()
/external/libbpf/src/
Dbtf_dump.c862 int cur_off, int m_off, int m_bit_sz, in btf_dump_emit_bit_padding() argument
865 int off_diff = m_off - cur_off; in btf_dump_emit_bit_padding()