Searched refs:new_pos (Results 1 - 14 of 14) sorted by relevance

/linux-master/tools/testing/selftests/net/tcp_ao/lib/
H A Dproc.c96 const char *new_pos = strchr(pos, ' '); local
99 if (new_pos == NULL)
100 new_pos = strchr(pos, '\n');
102 nc->name = strndup(pos, new_pos - pos);
110 pos = new_pos + 1;
/linux-master/sound/core/
H A Dpcm_dmaengine.c136 unsigned int new_pos; local
140 new_pos = prtd->pos + snd_pcm_lib_period_bytes(substream);
141 if (new_pos >= snd_pcm_lib_buffer_bytes(substream))
142 new_pos = 0;
143 prtd->pos = new_pos;
/linux-master/fs/bcachefs/
H A Dbtree_iter.h207 btree_path_idx_t path, struct bpos new_pos,
210 return !bpos_eq(new_pos, trans->paths[path].pos)
211 ? __bch2_btree_path_set_pos(trans, path, new_pos, intent, ip)
374 static inline void __bch2_btree_iter_set_pos(struct btree_iter *iter, struct bpos new_pos) argument
377 iter->k.p.inode = iter->pos.inode = new_pos.inode;
378 iter->k.p.offset = iter->pos.offset = new_pos.offset;
379 iter->k.p.snapshot = iter->pos.snapshot = new_pos.snapshot;
383 static inline void bch2_btree_iter_set_pos(struct btree_iter *iter, struct bpos new_pos) argument
393 new_pos.snapshot = iter->snapshot;
395 __bch2_btree_iter_set_pos(iter, new_pos);
206 bch2_btree_path_set_pos(struct btree_trans *trans, btree_path_idx_t path, struct bpos new_pos, bool intent, unsigned long ip) argument
[all...]
H A Dbtree_update.h82 * not visible, emit a whiteout at @new_pos.
87 struct bpos new_pos)
90 bkey_eq(old_pos, new_pos))
93 return __bch2_insert_snapshot_whiteouts(trans, btree, old_pos, new_pos);
84 bch2_insert_snapshot_whiteouts(struct btree_trans *trans, enum btree_id btree, struct bpos old_pos, struct bpos new_pos) argument
H A Dbtree_update.c126 struct bpos new_pos)
147 SPOS(new_pos.inode, new_pos.offset, old_k.k->p.snapshot);;
123 __bch2_insert_snapshot_whiteouts(struct btree_trans *trans, enum btree_id id, struct bpos old_pos, struct bpos new_pos) argument
H A Dbtree_gc.c61 static inline void __gc_pos_set(struct bch_fs *c, struct gc_pos new_pos) argument
65 c->gc_pos = new_pos;
70 static inline void gc_pos_set(struct bch_fs *c, struct gc_pos new_pos) argument
72 BUG_ON(gc_pos_cmp(new_pos, c->gc_pos) <= 0);
73 __gc_pos_set(c, new_pos);
H A Dbtree_iter.c1244 btree_path_idx_t path_idx, struct bpos new_pos,
1247 int cmp = bpos_cmp(new_pos, trans->paths[path_idx].pos);
1255 path->pos = new_pos;
1243 __bch2_btree_path_set_pos(struct btree_trans *trans, btree_path_idx_t path_idx, struct bpos new_pos, bool intent, unsigned long ip) argument
/linux-master/fs/xfs/scrub/
H A Dxfarray.c293 loff_t new_pos; local
313 new_pos = xfile_seek_data(array->xfile, end_pos);
314 if (new_pos == -ENXIO)
316 if (new_pos < 0)
317 return new_pos;
318 if (new_pos == end_pos)
326 new_pos = roundup_64(new_pos, array->obj_size);
327 *cur = xfarray_idx(array, new_pos);
/linux-master/kernel/
H A Dkallsyms.c706 static void reset_iter(struct kallsym_iter *iter, loff_t new_pos) argument
709 iter->nameoff = get_symbol_offset(new_pos);
710 iter->pos = new_pos;
711 if (new_pos == 0) {
/linux-master/fs/overlayfs/
H A Dcopy_up.c252 loff_t new_pos = 0; local
276 error = rw_verify_area(WRITE, new_file, &new_pos, len);
321 old_pos = new_pos = data_pos;
330 error = ovl_verify_area(old_pos, new_pos, this_len, len);
335 new_file, &new_pos,
341 WARN_ON(old_pos != new_pos);
/linux-master/kernel/bpf/
H A Dlog.c149 void bpf_vlog_reset(struct bpf_verifier_log *log, u64 new_pos) argument
154 if (WARN_ON_ONCE(new_pos > log->end_pos))
164 log->end_pos = new_pos;
174 div_u64_rem(new_pos, log->len_total, &pos);
/linux-master/fs/ceph/
H A Ddir.c589 loff_t new_pos = ceph_make_fpos(ceph_frag_value(frag), local
591 if (new_pos > ctx->pos)
592 ctx->pos = new_pos;
654 static bool need_reset_readdir(struct ceph_dir_file_info *dfi, loff_t new_pos) argument
658 if (new_pos == 0)
660 if (is_hash_order(new_pos)) {
663 } else if (dfi->frag != fpos_frag(new_pos)) {
670 return new_pos < chunk_offset ||
671 is_hash_order(new_pos) != is_hash_order(chunk_offset);
/linux-master/include/linux/
H A Dbpf_verifier.h764 void bpf_vlog_reset(struct bpf_verifier_log *log, u64 new_pos);
/linux-master/drivers/md/
H A Ddm-integrity.c2290 unsigned int new_pos; local
2292 new_pos = find_journal_node(ic, dio->range.logical_sector, &next_sector);
2293 if (unlikely(new_pos != journal_read_pos)) {
2301 unsigned int new_pos; local
2303 new_pos = find_journal_node(ic, dio->range.logical_sector, &next_sector);
2304 if (unlikely(new_pos != NOT_FOUND) ||

Completed in 432 milliseconds