Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A 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()
H A 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()
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dsunxi_nand.c808 int *cur_off, in sunxi_nfc_hw_ecc_read_chunk() argument
819 if (*cur_off != data_off) in sunxi_nfc_hw_ecc_read_chunk()
840 *cur_off = oob_off + ecc->bytes + 4; in sunxi_nfc_hw_ecc_read_chunk()
904 u8 *oob, int *cur_off, in sunxi_nfc_hw_ecc_read_extra_oob() argument
915 if (*cur_off != offset) in sunxi_nfc_hw_ecc_read_extra_oob()
925 *cur_off = mtd->oobsize + mtd->writesize; in sunxi_nfc_hw_ecc_read_extra_oob()
936 int *cur_off, bool bbm, in sunxi_nfc_hw_ecc_write_chunk() argument
944 if (data_off != *cur_off) in sunxi_nfc_hw_ecc_write_chunk()
979 *cur_off = oob_off + ecc->bytes + 4; in sunxi_nfc_hw_ecc_write_chunk()
985 u8 *oob, int *cur_off, in sunxi_nfc_hw_ecc_write_extra_oob() argument
[all …]
/openbmc/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 …]
/openbmc/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()
/openbmc/linux/fs/xfs/
H A Dxfs_dir2_readdir.c244 xfs_dir2_off_t *cur_off, in xfs_dir2_leaf_readbuf() argument
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()
/openbmc/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 …]
/openbmc/linux/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()
/openbmc/u-boot/drivers/mtd/
H A Dmtdpart.c207 int cur_off = 0, cur_sz = 0; in mtd_parse_partitions() local
247 parts[idx].offset = cur_off; in mtd_parse_partitions()
248 cur_off += parts[idx].size; in mtd_parse_partitions()
/openbmc/linux/fs/btrfs/
H A Dextent_io.c4613 unsigned long cur_off = 0; in memcpy_extent_buffer() local
4619 while (cur_off < len) { in memcpy_extent_buffer()
4620 unsigned long cur_src = cur_off + src_offset; in memcpy_extent_buffer()
4626 const bool use_memmove = areas_overlap(src_offset + cur_off, in memcpy_extent_buffer()
4627 dst_offset + cur_off, cur_len); in memcpy_extent_buffer()
4629 __write_extent_buffer(dst, src_addr, dst_offset + cur_off, cur_len, in memcpy_extent_buffer()
4631 cur_off += cur_len; in memcpy_extent_buffer()
/openbmc/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()
/openbmc/linux/fs/smb/client/
H A Dsmb2ops.c4532 unsigned int cur_off; in handle_read_data() local
4611 cur_off = pad_len % PAGE_SIZE; in handle_read_data()
4637 cur_off, &rdata->iter); in handle_read_data()