Home
last modified time | relevance | path

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

/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
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()
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()
/linux-6.3-rc2/drivers/mtd/nand/raw/
A Dsunxi_nand.c799 int *cur_off, in sunxi_nfc_hw_ecc_read_chunk() argument
809 if (*cur_off != data_off) in sunxi_nfc_hw_ecc_read_chunk()
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()
1082 if (!cur_off || *cur_off != offset) in sunxi_nfc_hw_ecc_write_extra_oob()
1088 if (cur_off) in sunxi_nfc_hw_ecc_write_extra_oob()
1098 int ret, i, cur_off = 0; in sunxi_nfc_hw_ecc_read_page() local
1156 int ret, i, cur_off = 0; in sunxi_nfc_hw_ecc_read_subpage() local
1212 int ret, i, cur_off = 0; in sunxi_nfc_hw_ecc_write_page() local
1235 &cur_off, page); in sunxi_nfc_hw_ecc_write_page()
[all …]
/linux-6.3-rc2/arch/mips/sibyte/common/
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-6.3-rc2/fs/xfs/
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()
/linux-6.3-rc2/tools/lib/bpf/
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()
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()
932 cur_off += bits; in btf_dump_emit_bit_padding()
[all …]
/linux-6.3-rc2/drivers/nvdimm/
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()
/linux-6.3-rc2/drivers/net/ethernet/chelsio/cxgb4/
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-6.3-rc2/fs/cifs/
A Dsmb2ops.c4628 unsigned int cur_off; in handle_read_data() local
4707 cur_off = pad_len % PAGE_SIZE; in handle_read_data()
4733 cur_off, &rdata->iter); in handle_read_data()

Completed in 35 milliseconds