Home
last modified time | relevance | path

Searched refs:cur_off (Results 1 - 19 of 19) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dtest_seg6_loop.c123 uint32_t srh_off, cur_off; in is_valid_tlv_boundary() local
128 // cur_off = end of segments, start of possible TLVs in is_valid_tlv_boundary()
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()
[all...]
H A Dtest_lwt_seg6local.c122 uint32_t srh_off, cur_off; in is_valid_tlv_boundary() local
127 // cur_off = end of segments, start of possible TLVs in is_valid_tlv_boundary()
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()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dtest_seg6_loop.c123 uint32_t srh_off, cur_off; in is_valid_tlv_boundary() local
128 // cur_off = end of segments, start of possible TLVs in is_valid_tlv_boundary()
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()
[all...]
H A Dtest_lwt_seg6local.c122 uint32_t srh_off, cur_off; in is_valid_tlv_boundary() local
127 // cur_off = end of segments, start of possible TLVs in is_valid_tlv_boundary()
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()
[all...]
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/
H A Dsunxi_nand.c798 int *cur_off, in sunxi_nfc_hw_ecc_read_chunk()
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()
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()
1040 if (data_off != *cur_off) in sunxi_nfc_hw_ecc_write_chunk()
795 sunxi_nfc_hw_ecc_read_chunk(struct nand_chip *nand, u8 *data, int data_off, u8 *oob, int oob_off, int *cur_off, unsigned int *max_bitflips, bool bbm, bool oob_required, int page) sunxi_nfc_hw_ecc_read_chunk() argument
876 sunxi_nfc_hw_ecc_read_extra_oob(struct nand_chip *nand, u8 *oob, int *cur_off, bool randomize, int page) sunxi_nfc_hw_ecc_read_extra_oob() argument
1030 sunxi_nfc_hw_ecc_write_chunk(struct nand_chip *nand, const u8 *data, int data_off, const u8 *oob, int oob_off, int *cur_off, bool bbm, int page) sunxi_nfc_hw_ecc_write_chunk() argument
1069 sunxi_nfc_hw_ecc_write_extra_oob(struct nand_chip *nand, u8 *oob, int *cur_off, int page) sunxi_nfc_hw_ecc_write_extra_oob() argument
1097 int ret, i, cur_off = 0; sunxi_nfc_hw_ecc_read_page() local
1155 int ret, i, cur_off = 0; sunxi_nfc_hw_ecc_read_subpage() local
1211 int ret, i, cur_off = 0; sunxi_nfc_hw_ecc_write_page() local
1248 int ret, i, cur_off = 0; sunxi_nfc_hw_ecc_write_subpage() local
[all...]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/
H A Dsunxi_nand.c799 int *cur_off, in sunxi_nfc_hw_ecc_read_chunk()
809 if (*cur_off != data_off) in sunxi_nfc_hw_ecc_read_chunk()
830 *cur_off = oob_off + ecc->bytes + 4; in sunxi_nfc_hw_ecc_read_chunk()
878 u8 *oob, int *cur_off, in sunxi_nfc_hw_ecc_read_extra_oob()
889 if (!cur_off || *cur_off != offset) in sunxi_nfc_hw_ecc_read_extra_oob()
899 if (cur_off) in sunxi_nfc_hw_ecc_read_extra_oob()
900 *cur_off = mtd->oobsize + mtd->writesize; in sunxi_nfc_hw_ecc_read_extra_oob()
1029 int *cur_off, bool bbm, in sunxi_nfc_hw_ecc_write_chunk()
1036 if (data_off != *cur_off) in sunxi_nfc_hw_ecc_write_chunk()
796 sunxi_nfc_hw_ecc_read_chunk(struct nand_chip *nand, u8 *data, int data_off, u8 *oob, int oob_off, int *cur_off, unsigned int *max_bitflips, bool bbm, bool oob_required, int page) sunxi_nfc_hw_ecc_read_chunk() argument
877 sunxi_nfc_hw_ecc_read_extra_oob(struct nand_chip *nand, u8 *oob, int *cur_off, bool randomize, int page) sunxi_nfc_hw_ecc_read_extra_oob() argument
1026 sunxi_nfc_hw_ecc_write_chunk(struct nand_chip *nand, const u8 *data, int data_off, const u8 *oob, int oob_off, int *cur_off, bool bbm, int page) sunxi_nfc_hw_ecc_write_chunk() argument
1065 sunxi_nfc_hw_ecc_write_extra_oob(struct nand_chip *nand, u8 *oob, int *cur_off, int page) sunxi_nfc_hw_ecc_write_extra_oob() argument
1093 int ret, i, cur_off = 0; sunxi_nfc_hw_ecc_read_page() local
1151 int ret, i, cur_off = 0; sunxi_nfc_hw_ecc_read_subpage() local
1207 int ret, i, cur_off = 0; sunxi_nfc_hw_ecc_write_page() local
1244 int ret, i, cur_off = 0; sunxi_nfc_hw_ecc_write_subpage() local
[all...]
/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dbtf_dump.c819 int cur_off, int next_off, int next_align, in btf_dump_emit_bit_padding()
831 if (cur_off >= next_off) in btf_dump_emit_bit_padding()
856 new_off = roundup(cur_off, pad_bits); in btf_dump_emit_bit_padding()
861 if (new_off > cur_off && new_off <= next_off) { in btf_dump_emit_bit_padding()
872 (new_off == next_off && roundup(cur_off, next_align * 8) != new_off) || in btf_dump_emit_bit_padding()
873 (new_off != next_off && next_off - new_off <= new_off - cur_off)) in btf_dump_emit_bit_padding()
876 in_bitfield ? new_off - cur_off : 0); in btf_dump_emit_bit_padding()
877 cur_off = new_off; in btf_dump_emit_bit_padding()
886 while (cur_off != next_off) { in btf_dump_emit_bit_padding()
887 bits = min(next_off - cur_off, pad_bit in btf_dump_emit_bit_padding()
818 btf_dump_emit_bit_padding(const struct btf_dump *d, int cur_off, int next_off, int next_align, bool in_bitfield, int lvl) btf_dump_emit_bit_padding() argument
[all...]
/kernel/linux/linux-5.10/fs/xfs/
H A Dxfs_dir2_readdir.c243 xfs_dir2_off_t *cur_off, in xfs_dir2_leaf_readbuf()
273 map_off = xfs_dir2_db_to_da(geo, xfs_dir2_byte_to_db(geo, *cur_off)); in xfs_dir2_leaf_readbuf()
282 if (new_off > *cur_off) in xfs_dir2_leaf_readbuf()
283 *cur_off = new_off; in xfs_dir2_leaf_readbuf()
240 xfs_dir2_leaf_readbuf( struct xfs_da_args *args, size_t bufsize, xfs_dir2_off_t *cur_off, xfs_dablk_t *ra_blk, struct xfs_buf **bpp) xfs_dir2_leaf_readbuf() argument
/kernel/linux/linux-6.6/fs/xfs/
H A Dxfs_dir2_readdir.c244 xfs_dir2_off_t *cur_off, in xfs_dir2_leaf_readbuf()
272 map_off = xfs_dir2_db_to_da(geo, xfs_dir2_byte_to_db(geo, *cur_off)); in xfs_dir2_leaf_readbuf()
281 if (new_off > *cur_off) in xfs_dir2_leaf_readbuf()
282 *cur_off = new_off; in xfs_dir2_leaf_readbuf()
241 xfs_dir2_leaf_readbuf( struct xfs_da_args *args, size_t bufsize, xfs_dir2_off_t *cur_off, xfs_dablk_t *ra_blk, struct xfs_buf **bpp) xfs_dir2_leaf_readbuf() argument
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dbtf_dump.c861 int cur_off, int next_off, int next_align, in btf_dump_emit_bit_padding()
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_bit in btf_dump_emit_bit_padding()
860 btf_dump_emit_bit_padding(const struct btf_dump *d, int cur_off, int next_off, int next_align, bool in_bitfield, int lvl) btf_dump_emit_bit_padding() argument
[all...]
/kernel/linux/linux-5.10/drivers/nvdimm/
H A Dbtt.c853 size_t cur_off = 0; in discover_arenas() local
868 arena->infooff = cur_off; in discover_arenas()
887 parse_arena_meta(arena, super, cur_off); in discover_arenas()
911 cur_off += arena->size; in discover_arenas()
936 size_t cur_off = 0; in create_arenas() local
946 arena = alloc_arena(btt, arena_size, btt->nlba, cur_off); in create_arenas()
956 cur_off += arena_size; in create_arenas()
/kernel/linux/linux-6.6/drivers/nvdimm/
H A Dbtt.c853 size_t cur_off = 0; in discover_arenas() local
868 arena->infooff = cur_off; in discover_arenas()
887 parse_arena_meta(arena, super, cur_off); in discover_arenas()
911 cur_off += arena->size; in discover_arenas()
936 size_t cur_off = 0; in create_arenas() local
946 arena = alloc_arena(btt, arena_size, btt->nlba, cur_off); in create_arenas()
956 cur_off += arena_size; in create_arenas()
/kernel/linux/linux-6.6/fs/btrfs/
H A Dextent_io.c4490 unsigned long cur_off = 0; in memcpy_extent_buffer() local
4496 while (cur_off < len) { in memcpy_extent_buffer()
4497 unsigned long cur_src = cur_off + src_offset; in memcpy_extent_buffer()
4503 const bool use_memmove = areas_overlap(src_offset + cur_off, in memcpy_extent_buffer()
4504 dst_offset + cur_off, cur_len); in memcpy_extent_buffer()
4506 __write_extent_buffer(dst, src_addr, dst_offset + cur_off, cur_len, in memcpy_extent_buffer()
4508 cur_off += cur_len; in memcpy_extent_buffer()
/kernel/linux/linux-5.10/fs/cifs/
H A Dsmb2ops.c4535 unsigned int cur_off, struct bio_vec **page_vec) in init_read_bvec()
4546 bvec[i].bv_offset = (i == 0) ? cur_off : 0; in init_read_bvec()
4569 unsigned int cur_off; in handle_read_data() local
4651 cur_off = pad_len % PAGE_SIZE; in handle_read_data()
4676 cur_off, &bvec); in handle_read_data()
4534 init_read_bvec(struct page **pages, unsigned int npages, unsigned int data_size, unsigned int cur_off, struct bio_vec **page_vec) init_read_bvec() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
H A Dcudbg_lib.c3391 u32 i, j, cur_off, tot_len; in cudbg_collect_qdesc() local
3554 cur_off = 0; in cudbg_collect_qdesc()
3565 memcpy(temp_buff.data, data + cur_off, chunk_size); in cudbg_collect_qdesc()
3567 cur_off += chunk_size; in cudbg_collect_qdesc()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/fs/smb/client/
H A Dsmb2ops.c4623 unsigned int cur_off; in handle_read_data() local
4702 cur_off = pad_len % PAGE_SIZE; in handle_read_data()
4728 cur_off, &rdata->iter); in handle_read_data()

Completed in 53 milliseconds