| /linux-6.15/tools/perf/scripts/python/ |
| H A D | parallel-perf.py | 459 new_pos = 0 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] 479 new_time_ranges[new_pos][0] = time_ranges[pos][0] 483 new_time_ranges[new_pos][1] = time_ranges[pos][1] 484 new_pos += 1 485 new_time_ranges.insert(new_pos, r) [all …]
|
| /linux-6.15/tools/testing/selftests/net/tcp_ao/lib/ |
| H A D | proc.c | 96 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.15/sound/core/ |
| H A D | pcm_dmaengine.c | 136 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.15/fs/xfs/scrub/ |
| H A D | xfarray.c | 293 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.15/fs/bcachefs/ |
| H A D | btree_iter.h | 226 btree_path_idx_t path, struct bpos new_pos, in bch2_btree_path_set_pos() argument 229 return !bpos_eq(new_pos, trans->paths[path].pos) in bch2_btree_path_set_pos() 230 ? __bch2_btree_path_set_pos(trans, path, new_pos, intent, ip) in bch2_btree_path_set_pos() 428 static inline void __bch2_btree_iter_set_pos(struct btree_iter *iter, struct bpos new_pos) in __bch2_btree_iter_set_pos() argument 431 iter->k.p.inode = iter->pos.inode = new_pos.inode; in __bch2_btree_iter_set_pos() 432 iter->k.p.offset = iter->pos.offset = new_pos.offset; in __bch2_btree_iter_set_pos() 433 iter->k.p.snapshot = iter->pos.snapshot = new_pos.snapshot; in __bch2_btree_iter_set_pos() 438 struct btree_iter *iter, struct bpos new_pos) in bch2_btree_iter_set_pos() argument 446 new_pos.snapshot = iter->snapshot; in bch2_btree_iter_set_pos() 448 __bch2_btree_iter_set_pos(iter, new_pos); in bch2_btree_iter_set_pos()
|
| H A D | btree_update.h | 89 struct bpos new_pos) in bch2_insert_snapshot_whiteouts() argument 92 bkey_eq(old_pos, new_pos)) in bch2_insert_snapshot_whiteouts() 95 return __bch2_insert_snapshot_whiteouts(trans, btree, old_pos, new_pos); in bch2_insert_snapshot_whiteouts()
|
| H A D | trace.h | 1632 TP_PROTO(struct btree_trans *trans, struct btree_path *path, struct bpos *new_pos), 1633 TP_ARGS(trans, path, new_pos), 1642 TRACE_BPOS_entries(new_pos) 1652 TRACE_BPOS_assign(new_pos, *new_pos); 1804 struct bpos *new_pos), 1805 TP_ARGS(trans, path, new_pos), 1813 TRACE_BPOS_entries(new_pos) 1828 TRACE_BPOS_assign(new_pos, *new_pos); 1927 …d trace_btree_path_get(struct btree_trans *trans, struct btree_path *path, struct bpos *new_pos) {} in trace_btree_path_get() argument 1932 …ace_btree_path_set_pos(struct btree_trans *trans, struct btree_path *path, struct bpos *new_pos) {} in trace_btree_path_set_pos() argument
|
| H A D | btree_gc.c | 95 static inline void __gc_pos_set(struct bch_fs *c, struct gc_pos new_pos) in __gc_pos_set() argument 99 c->gc_pos = new_pos; in __gc_pos_set() 104 static inline void gc_pos_set(struct bch_fs *c, struct gc_pos new_pos) in gc_pos_set() argument 106 BUG_ON(gc_pos_cmp(new_pos, c->gc_pos) < 0); in gc_pos_set() 107 __gc_pos_set(c, new_pos); in gc_pos_set()
|
| H A D | btree_update.c | 126 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()
|
| H A D | btree_iter.c | 1271 btree_path_idx_t path_idx, struct bpos new_pos, in __bch2_btree_path_set_pos() argument 1274 int cmp = bpos_cmp(new_pos, trans->paths[path_idx].pos); in __bch2_btree_path_set_pos() 1279 trace_btree_path_set_pos(trans, trans->paths + path_idx, &new_pos); in __bch2_btree_path_set_pos() 1284 path->pos = new_pos; in __bch2_btree_path_set_pos()
|
| /linux-6.15/kernel/ |
| H A D | kallsyms.c | 647 static void reset_iter(struct kallsym_iter *iter, loff_t new_pos) in reset_iter() argument 650 iter->nameoff = get_symbol_offset(new_pos); in reset_iter() 651 iter->pos = new_pos; in reset_iter() 652 if (new_pos == 0) { in reset_iter()
|
| /linux-6.15/kernel/bpf/ |
| H A D | log.c | 149 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.15/fs/overlayfs/ |
| H A D | copy_up.c | 267 loff_t new_pos = 0; in ovl_copy_up_file() local 291 error = rw_verify_area(WRITE, new_file, &new_pos, len); in ovl_copy_up_file() 336 old_pos = new_pos = data_pos; in ovl_copy_up_file() 345 error = ovl_verify_area(old_pos, new_pos, this_len, len); in ovl_copy_up_file() 350 new_file, &new_pos, in ovl_copy_up_file() 356 WARN_ON(old_pos != new_pos); in ovl_copy_up_file()
|
| /linux-6.15/fs/ceph/ |
| H A D | dir.c | 590 loff_t new_pos = ceph_make_fpos(ceph_frag_value(frag), in ceph_readdir() local 592 if (new_pos > ctx->pos) in ceph_readdir() 593 ctx->pos = new_pos; in ceph_readdir() 655 static bool need_reset_readdir(struct ceph_dir_file_info *dfi, loff_t new_pos) in need_reset_readdir() argument 659 if (new_pos == 0) in need_reset_readdir() 661 if (is_hash_order(new_pos)) { in need_reset_readdir() 664 } else if (dfi->frag != fpos_frag(new_pos)) { in need_reset_readdir() 671 return new_pos < chunk_offset || in need_reset_readdir() 672 is_hash_order(new_pos) != is_hash_order(chunk_offset); in need_reset_readdir()
|
| /linux-6.15/include/linux/ |
| H A D | bpf_verifier.h | 834 void bpf_vlog_reset(struct bpf_verifier_log *log, u64 new_pos);
|
| /linux-6.15/drivers/md/ |
| H A D | dm-integrity.c | 2300 unsigned int new_pos; in dm_integrity_map_continue() local 2302 new_pos = find_journal_node(ic, dio->range.logical_sector, &next_sector); in dm_integrity_map_continue() 2303 if (unlikely(new_pos != journal_read_pos)) { in dm_integrity_map_continue() 2311 unsigned int new_pos; in dm_integrity_map_continue() local 2313 new_pos = find_journal_node(ic, dio->range.logical_sector, &next_sector); in dm_integrity_map_continue() 2314 if (unlikely(new_pos != NOT_FOUND) || in dm_integrity_map_continue()
|