Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_seg6_loop.c125 uint32_t srh_off, cur_off; in is_valid_tlv_boundary() local
131 cur_off = srh_off + sizeof(*srh) + in is_valid_tlv_boundary()
143 if (cur_off == *tlv_off) in is_valid_tlv_boundary()
146 if (cur_off >= srh_off + ((srh->hdrlen + 1) << 3)) in is_valid_tlv_boundary()
149 err = bpf_skb_load_bytes(skb, cur_off, &tlv, sizeof(tlv)); in is_valid_tlv_boundary()
155 *pad_off = cur_off; in is_valid_tlv_boundary()
158 *tlv_off = cur_off; in is_valid_tlv_boundary()
167 cur_off += sizeof(tlv) + tlv.len; in is_valid_tlv_boundary()
171 *pad_off = cur_off; in is_valid_tlv_boundary()
174 *tlv_off = cur_off; in is_valid_tlv_boundary()
H A Dtest_lwt_seg6local.c124 uint32_t srh_off, cur_off; in is_valid_tlv_boundary() local
130 cur_off = srh_off + sizeof(*srh) + in is_valid_tlv_boundary()
140 if (cur_off == *tlv_off) in is_valid_tlv_boundary()
143 if (cur_off >= srh_off + ((srh->hdrlen + 1) << 3)) in is_valid_tlv_boundary()
146 err = bpf_skb_load_bytes(skb, cur_off, &tlv, sizeof(tlv)); in is_valid_tlv_boundary()
152 *pad_off = cur_off; in is_valid_tlv_boundary()
155 *tlv_off = cur_off; in is_valid_tlv_boundary()
164 cur_off += sizeof(tlv) + tlv.len; in is_valid_tlv_boundary()
168 *pad_off = cur_off; in is_valid_tlv_boundary()
171 *tlv_off = cur_off; in is_valid_tlv_boundary()
/linux/drivers/mtd/nand/raw/
H A Dsunxi_nand.c798 int *cur_off, in sunxi_nfc_hw_ecc_read_chunk() argument
808 if (*cur_off != data_off) in sunxi_nfc_hw_ecc_read_chunk()
829 *cur_off = oob_off + ecc->bytes + 4; in sunxi_nfc_hw_ecc_read_chunk()
877 u8 *oob, int *cur_off, in sunxi_nfc_hw_ecc_read_extra_oob() argument
888 if (!cur_off || *cur_off != offset) in sunxi_nfc_hw_ecc_read_extra_oob()
898 if (cur_off) in sunxi_nfc_hw_ecc_read_extra_oob()
899 *cur_off = mtd->oobsize + mtd->writesize; in sunxi_nfc_hw_ecc_read_extra_oob()
1033 int *cur_off, bool bbm, in sunxi_nfc_hw_ecc_write_chunk() argument
1040 if (data_off != *cur_off) in sunxi_nfc_hw_ecc_write_chunk()
1064 *cur_off = oob_off + ecc->bytes + 4; in sunxi_nfc_hw_ecc_write_chunk()
[all …]
/linux/arch/mips/sibyte/common/
H A Dsb_tbprof.c447 long cur_off = *offp; in sbprof_tb_read() local
455 cur_sample = cur_off / TB_SAMPLE_SIZE; in sbprof_tb_read()
456 sample_off = cur_off % TB_SAMPLE_SIZE; in sbprof_tb_read()
466 *offp = cur_off + cur_count - err; in sbprof_tb_read()
481 cur_off += cur_count; in sbprof_tb_read()
485 *offp = cur_off; in sbprof_tb_read()
/linux/tools/lib/bpf/
H A Dbtf_dump.c861 int cur_off, int next_off, int next_align, in btf_dump_emit_bit_padding() argument
873 if (cur_off >= next_off) in btf_dump_emit_bit_padding()
898 new_off = roundup(cur_off, pad_bits); in btf_dump_emit_bit_padding()
903 if (new_off > cur_off && new_off <= next_off) { in btf_dump_emit_bit_padding()
914 (new_off == next_off && roundup(cur_off, next_align * 8) != new_off) || in btf_dump_emit_bit_padding()
915 (new_off != next_off && next_off - new_off <= new_off - cur_off)) in btf_dump_emit_bit_padding()
918 in_bitfield ? new_off - cur_off : 0); in btf_dump_emit_bit_padding()
919 cur_off = new_off; in btf_dump_emit_bit_padding()
928 while (cur_off != next_off) { in btf_dump_emit_bit_padding()
929 bits = min(next_off - cur_off, pad_bits); in btf_dump_emit_bit_padding()
[all …]
/linux/drivers/nvdimm/
H A Dbtt.c854 size_t cur_off = 0; in discover_arenas() local
867 arena->infooff = cur_off; in discover_arenas()
886 parse_arena_meta(arena, super, cur_off); in discover_arenas()
910 cur_off += arena->size; in discover_arenas()
932 size_t cur_off = 0; in create_arenas() local
942 arena = alloc_arena(btt, arena_size, btt->nlba, cur_off); in create_arenas()
952 cur_off += arena_size; in create_arenas()
/linux/fs/btrfs/
H A Dextent_io.c3972 unsigned long cur_off = 0; in memcpy_extent_buffer() local
3988 while (cur_off < len) { in memcpy_extent_buffer()
3989 unsigned long cur_src = cur_off + src_offset; in memcpy_extent_buffer()
3995 const bool use_memmove = areas_overlap(src_offset + cur_off, in memcpy_extent_buffer()
3996 dst_offset + cur_off, cur_len); in memcpy_extent_buffer()
3998 __write_extent_buffer(dst, src_addr, dst_offset + cur_off, cur_len, in memcpy_extent_buffer()
4000 cur_off += cur_len; in memcpy_extent_buffer()
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcudbg_lib.c3373 u32 i, j, cur_off, tot_len; in cudbg_collect_qdesc() local
3536 cur_off = 0; in cudbg_collect_qdesc()
3547 memcpy(temp_buff.data, data + cur_off, chunk_size); in cudbg_collect_qdesc()
3549 cur_off += chunk_size; in cudbg_collect_qdesc()
/linux/fs/smb/client/
H A Dsmb2ops.c4630 unsigned int cur_off; in handle_read_data() local
4709 cur_off = pad_len % PAGE_SIZE; in handle_read_data()
4735 cur_off, &rdata->subreq.io_iter); in handle_read_data()