Home
last modified time | relevance | path

Searched refs:new_pos (Results 1 – 16 of 16) sorted by relevance

/linux-6.12.1/tools/perf/scripts/python/
Dparallel-perf.py459 new_pos = 0
462 while pos < len(time_ranges) and new_pos < len(new_time_ranges):
464 if new_time_ranges[new_pos][1] < time_ranges[pos][0]:
465 del new_time_ranges[new_pos]
468 if new_time_ranges[new_pos][0] > time_ranges[pos][1]:
473 while new_pos < len(new_time_ranges):
474 del new_time_ranges[new_pos]
478 if new_time_ranges[new_pos][0] < time_ranges[pos][0]:
479 new_time_ranges[new_pos][0] = time_ranges[pos][0]
481 if new_time_ranges[new_pos][1] > time_ranges[pos][1]:
[all …]
/linux-6.12.1/tools/testing/selftests/net/tcp_ao/lib/
Dproc.c96 const char *new_pos = strchr(pos, ' '); in netstat_read_type() local
99 if (new_pos == NULL) in netstat_read_type()
100 new_pos = strchr(pos, '\n'); in netstat_read_type()
102 nc->name = strndup(pos, new_pos - pos); in netstat_read_type()
110 pos = new_pos + 1; in netstat_read_type()
/linux-6.12.1/sound/core/
Dpcm_dmaengine.c136 unsigned int new_pos; in dmaengine_pcm_dma_complete() local
140 new_pos = prtd->pos + snd_pcm_lib_period_bytes(substream); in dmaengine_pcm_dma_complete()
141 if (new_pos >= snd_pcm_lib_buffer_bytes(substream)) in dmaengine_pcm_dma_complete()
142 new_pos = 0; in dmaengine_pcm_dma_complete()
143 prtd->pos = new_pos; in dmaengine_pcm_dma_complete()
/linux-6.12.1/fs/xfs/scrub/
Dxfarray.c293 loff_t new_pos; in xfarray_find_data() local
313 new_pos = xfile_seek_data(array->xfile, end_pos); in xfarray_find_data()
314 if (new_pos == -ENXIO) in xfarray_find_data()
316 if (new_pos < 0) in xfarray_find_data()
317 return new_pos; in xfarray_find_data()
318 if (new_pos == end_pos) in xfarray_find_data()
326 new_pos = roundup_64(new_pos, array->obj_size); in xfarray_find_data()
327 *cur = xfarray_idx(array, new_pos); in xfarray_find_data()
/linux-6.12.1/fs/bcachefs/
Dbtree_iter.h225 btree_path_idx_t path, struct bpos new_pos, in bch2_btree_path_set_pos() argument
228 return !bpos_eq(new_pos, trans->paths[path].pos) in bch2_btree_path_set_pos()
229 ? __bch2_btree_path_set_pos(trans, path, new_pos, intent, ip) in bch2_btree_path_set_pos()
405 static inline void __bch2_btree_iter_set_pos(struct btree_iter *iter, struct bpos new_pos) in __bch2_btree_iter_set_pos() argument
408 iter->k.p.inode = iter->pos.inode = new_pos.inode; in __bch2_btree_iter_set_pos()
409 iter->k.p.offset = iter->pos.offset = new_pos.offset; in __bch2_btree_iter_set_pos()
410 iter->k.p.snapshot = iter->pos.snapshot = new_pos.snapshot; in __bch2_btree_iter_set_pos()
414 static inline void bch2_btree_iter_set_pos(struct btree_iter *iter, struct bpos new_pos) in bch2_btree_iter_set_pos() argument
424 new_pos.snapshot = iter->snapshot; in bch2_btree_iter_set_pos()
426 __bch2_btree_iter_set_pos(iter, new_pos); in bch2_btree_iter_set_pos()
Dbtree_update.h91 struct bpos new_pos) in bch2_insert_snapshot_whiteouts() argument
94 bkey_eq(old_pos, new_pos)) in bch2_insert_snapshot_whiteouts()
97 return __bch2_insert_snapshot_whiteouts(trans, btree, old_pos, new_pos); in bch2_insert_snapshot_whiteouts()
Dtrace.h1588 TP_PROTO(struct btree_trans *trans, struct btree_path *path, struct bpos *new_pos),
1589 TP_ARGS(trans, path, new_pos),
1598 TRACE_BPOS_entries(new_pos)
1608 TRACE_BPOS_assign(new_pos, *new_pos);
1760 struct bpos *new_pos),
1761 TP_ARGS(trans, path, new_pos),
1769 TRACE_BPOS_entries(new_pos)
1784 TRACE_BPOS_assign(new_pos, *new_pos);
1883 …d trace_btree_path_get(struct btree_trans *trans, struct btree_path *path, struct bpos *new_pos) {} in trace_btree_path_get() argument
1888 …ace_btree_path_set_pos(struct btree_trans *trans, struct btree_path *path, struct bpos *new_pos) {} in trace_btree_path_set_pos() argument
Dbtree_gc.c72 static inline void __gc_pos_set(struct bch_fs *c, struct gc_pos new_pos) in __gc_pos_set() argument
76 c->gc_pos = new_pos; in __gc_pos_set()
81 static inline void gc_pos_set(struct bch_fs *c, struct gc_pos new_pos) in gc_pos_set() argument
83 BUG_ON(gc_pos_cmp(new_pos, c->gc_pos) < 0); in gc_pos_set()
84 __gc_pos_set(c, new_pos); in gc_pos_set()
Dbtree_update.c126 struct bpos new_pos) in __bch2_insert_snapshot_whiteouts() argument
147 SPOS(new_pos.inode, new_pos.offset, old_k.k->p.snapshot);; in __bch2_insert_snapshot_whiteouts()
Dbtree_iter.c1265 btree_path_idx_t path_idx, struct bpos new_pos, in __bch2_btree_path_set_pos() argument
1268 int cmp = bpos_cmp(new_pos, trans->paths[path_idx].pos); in __bch2_btree_path_set_pos()
1273 trace_btree_path_set_pos(trans, trans->paths + path_idx, &new_pos); in __bch2_btree_path_set_pos()
1278 path->pos = new_pos; in __bch2_btree_path_set_pos()
/linux-6.12.1/kernel/
Dkallsyms.c655 static void reset_iter(struct kallsym_iter *iter, loff_t new_pos) in reset_iter() argument
658 iter->nameoff = get_symbol_offset(new_pos); in reset_iter()
659 iter->pos = new_pos; in reset_iter()
660 if (new_pos == 0) { in reset_iter()
/linux-6.12.1/fs/overlayfs/
Dcopy_up.c268 loff_t new_pos = 0; in ovl_copy_up_file() local
292 error = rw_verify_area(WRITE, new_file, &new_pos, len); in ovl_copy_up_file()
337 old_pos = new_pos = data_pos; in ovl_copy_up_file()
346 error = ovl_verify_area(old_pos, new_pos, this_len, len); in ovl_copy_up_file()
351 new_file, &new_pos, in ovl_copy_up_file()
357 WARN_ON(old_pos != new_pos); in ovl_copy_up_file()
/linux-6.12.1/kernel/bpf/
Dlog.c149 void bpf_vlog_reset(struct bpf_verifier_log *log, u64 new_pos) in bpf_vlog_reset() argument
154 if (WARN_ON_ONCE(new_pos > log->end_pos)) in bpf_vlog_reset()
164 log->end_pos = new_pos; in bpf_vlog_reset()
174 div_u64_rem(new_pos, log->len_total, &pos); in bpf_vlog_reset()
/linux-6.12.1/fs/ceph/
Ddir.c589 loff_t new_pos = ceph_make_fpos(ceph_frag_value(frag), in ceph_readdir() local
591 if (new_pos > ctx->pos) in ceph_readdir()
592 ctx->pos = new_pos; in ceph_readdir()
654 static bool need_reset_readdir(struct ceph_dir_file_info *dfi, loff_t new_pos) in need_reset_readdir() argument
658 if (new_pos == 0) in need_reset_readdir()
660 if (is_hash_order(new_pos)) { in need_reset_readdir()
663 } else if (dfi->frag != fpos_frag(new_pos)) { in need_reset_readdir()
670 return new_pos < chunk_offset || in need_reset_readdir()
671 is_hash_order(new_pos) != is_hash_order(chunk_offset); in need_reset_readdir()
/linux-6.12.1/include/linux/
Dbpf_verifier.h807 void bpf_vlog_reset(struct bpf_verifier_log *log, u64 new_pos);
/linux-6.12.1/drivers/md/
Ddm-integrity.c2301 unsigned int new_pos; in dm_integrity_map_continue() local
2303 new_pos = find_journal_node(ic, dio->range.logical_sector, &next_sector); in dm_integrity_map_continue()
2304 if (unlikely(new_pos != journal_read_pos)) { in dm_integrity_map_continue()
2312 unsigned int new_pos; in dm_integrity_map_continue() local
2314 new_pos = find_journal_node(ic, dio->range.logical_sector, &next_sector); in dm_integrity_map_continue()
2315 if (unlikely(new_pos != NOT_FOUND) || in dm_integrity_map_continue()