Home
last modified time | relevance | path

Searched refs:bpos (Results 1 – 25 of 90) sorted by relevance

1234

/linux-6.15/fs/bcachefs/
H A Dbkey.h97 static __always_inline bool bpos_eq(struct bpos l, struct bpos r) in bpos_eq()
104 static __always_inline bool bpos_lt(struct bpos l, struct bpos r) in bpos_lt()
111 static __always_inline bool bpos_le(struct bpos l, struct bpos r) in bpos_le()
118 static __always_inline bool bpos_gt(struct bpos l, struct bpos r) in bpos_gt()
135 static inline struct bpos bpos_min(struct bpos l, struct bpos r) in bpos_min()
140 static inline struct bpos bpos_max(struct bpos l, struct bpos r) in bpos_max()
181 static inline struct bpos bkey_min(struct bpos l, struct bpos r) in bkey_min()
186 static inline struct bpos bkey_max(struct bpos l, struct bpos r) in bkey_max()
254 static inline struct bpos bpos_successor(struct bpos p) in bpos_successor()
264 static inline struct bpos bpos_predecessor(struct bpos p) in bpos_predecessor()
[all …]
H A Dbtree_journal_iter.h26 struct bpos pos;
42 struct bpos l_pos, in __journal_key_cmp()
55 unsigned, struct bpos, struct bpos, size_t *);
57 unsigned, struct bpos, struct bpos, size_t *);
59 unsigned, struct bpos);
69 unsigned, struct bpos);
70 bool bch2_key_deleted_in_journal(struct btree_trans *, enum btree_id, unsigned, struct bpos);
71 void bch2_journal_key_overwritten(struct bch_fs *, enum btree_id, unsigned, struct bpos);
79 struct btree_node_iter, struct bpos);
96 struct bpos, struct bpos);
H A Dbackpointers.h39 static inline struct bpos bp_pos_to_bucket(const struct bch_dev *ca, struct bpos bp_pos) in bp_pos_to_bucket()
46 static inline struct bpos bp_pos_to_bucket_and_offset(const struct bch_dev *ca, struct bpos bp_pos, in bp_pos_to_bucket_and_offset()
54 static inline bool bp_pos_to_bucket_nodev_noerror(struct bch_fs *c, struct bpos bp_pos, struct bpos in bp_pos_to_bucket_nodev_noerror()
64 static inline struct bpos bucket_pos_to_bp_noerror(const struct bch_dev *ca, in bucket_pos_to_bp_noerror()
65 struct bpos bucket, in bucket_pos_to_bp_noerror()
76 static inline struct bpos bucket_pos_to_bp(const struct bch_dev *ca, in bucket_pos_to_bp()
77 struct bpos bucket, in bucket_pos_to_bp()
80 struct bpos ret = bucket_pos_to_bp_noerror(ca, bucket, bucket_offset); in bucket_pos_to_bp()
85 static inline struct bpos bucket_pos_to_bp_start(const struct bch_dev *ca, struct bpos bucket) in bucket_pos_to_bp_start()
90 static inline struct bpos bucket_pos_to_bp_end(const struct bch_dev *ca, struct bpos bucket) in bucket_pos_to_bp_end()
H A Dbtree_update.h62 struct bpos, struct bpos, unsigned, u64 *);
64 struct bpos, struct bpos, unsigned, u64 *);
71 enum btree_id btree, struct bpos pos) in bch2_btree_delete_at_buffered()
77 struct bpos, struct bpos);
88 struct bpos old_pos, in bch2_insert_snapshot_whiteouts()
89 struct bpos new_pos) in bch2_insert_snapshot_whiteouts()
103 enum btree_id, struct bpos);
289 unsigned btree_id, struct bpos pos, in __bch2_bkey_get_mut_noupdate()
305 unsigned btree_id, struct bpos pos, in bch2_bkey_get_mut_noupdate()
313 unsigned btree_id, struct bpos pos, in __bch2_bkey_get_mut()
[all …]
H A Dlru.h5 static inline u64 lru_pos_id(struct bpos pos) in lru_pos_id()
10 static inline u64 lru_pos_time(struct bpos pos) in lru_pos_time()
15 static inline struct bpos lru_pos(u16 lru_id, u64 dev_bucket, u64 time) in lru_pos()
17 struct bpos pos = POS(((u64) lru_id << LRU_TIME_BITS)|time, dev_bucket); in lru_pos()
44 void bch2_lru_pos_to_text(struct printbuf *, struct bpos);
H A Dnocow_locking.h21 bool bch2_bucket_nocow_is_locked(struct bucket_nocow_lock_table *, struct bpos);
22 void bch2_bucket_nocow_unlock(struct bucket_nocow_lock_table *, struct bpos, int);
28 struct bpos bucket, int flags) in bch2_bucket_nocow_lock()
37 struct bpos bucket, int flags) in bch2_bucket_nocow_trylock()
H A Dbtree_iter.h222 struct bpos, bool, unsigned long);
254 unsigned, struct bpos);
275 struct btree_iter *, struct bpos);
294 struct bpos pos) {} in bch2_assert_pos_locked()
460 struct bpos pos = iter->pos; in bch2_btree_iter_set_snapshot()
527 unsigned btree_id, struct bpos pos, in bch2_trans_iter_init()
540 enum btree_id, struct bpos,
585 unsigned btree_id, struct bpos pos, in __bch2_bkey_get_iter()
602 unsigned btree_id, struct bpos pos, in bch2_bkey_get_iter()
627 unsigned btree_id, struct bpos pos, in __bch2_bkey_get_val_typed()
[all …]
H A Dalloc_background.h14 static inline bool bch2_dev_bucket_exists(struct bch_fs *c, struct bpos pos) in bch2_dev_bucket_exists()
23 static inline u64 bucket_to_u64(struct bpos bucket) in bucket_to_u64()
28 static inline struct bpos u64_to_bucket(u64 bucket) in u64_to_bucket()
191 static inline struct bpos alloc_freespace_pos(struct bpos pos, struct bch_alloc_v4 a) in alloc_freespace_pos()
218 bch2_trans_start_alloc_update_noupdate(struct btree_trans *, struct btree_iter *, struct bpos);
220 bch2_trans_start_alloc_update(struct btree_trans *, struct bpos,
H A Dextent_update.c43 struct bpos *end, in count_iters_for_insert()
85 struct bpos pos = bkey_start_pos(k.k); in count_iters_for_insert()
108 struct bpos *end) in bch2_extent_atomic_end()
164 struct bpos end; in bch2_extent_trim_atomic()
H A Dbtree_node_scan.h8 int bch2_get_scanned_nodes(struct bch_fs *, enum btree_id, unsigned, struct bpos, struct bpos);
H A Dio_read.h58 struct bpos read_pos;
65 struct bpos data_pos;
131 struct bvec_iter, struct bpos, enum btree_id,
136 struct bch_read_bio *rbio, struct bpos read_pos, in bch2_read_extent()
H A Dbbpos_types.h7 struct bpos pos;
10 static inline struct bbpos BBPOS(enum btree_id btree, struct bpos pos) in BBPOS()
H A Dbtree_journal_iter.c46 struct bpos pos) in __bch2_journal_key_search()
69 struct bpos pos) in bch2_journal_key_search()
76 unsigned level, struct bpos pos, in bch2_journal_keys_peek_max()
77 struct bpos end_pos, size_t *idx) in bch2_journal_keys_peek_max()
132 unsigned level, struct bpos pos, in bch2_journal_keys_peek_prev_min()
187 unsigned level, struct bpos pos) in bch2_journal_keys_peek_slot()
355 unsigned level, struct bpos pos) in bch2_key_deleted_in_journal()
433 unsigned level, struct bpos pos) in bch2_journal_key_overwritten()
496 struct bpos pos) in bch2_journal_iter_init()
608 struct bpos pos) in __bch2_btree_and_journal_iter_init_node_iter()
[all …]
H A Dbtree_node_scan_types.h16 struct bpos min_key;
17 struct bpos max_key;
H A Dbtree_write_buffer_types.h16 u8 pos[sizeof(struct bpos)];
20 u8 pos[sizeof(struct bpos)];
H A Dalloc_background.c456 struct bpos pos) in bch2_trans_start_alloc_update_noupdate()
491 static struct bpos alloc_gens_pos(struct bpos pos, unsigned *offset) in alloc_gens_pos()
499 static struct bpos bucket_gens_pos_to_alloc(struct bpos pos, unsigned offset) in bucket_gens_pos_to_alloc()
704 struct bpos pos; in bch2_bucket_do_index()
1054 struct bpos next; in bch2_get_key_or_hole()
1243 struct bpos start, in bch2_check_alloc_hole_freespace()
1244 struct bpos *end, in bch2_check_alloc_hole_freespace()
1296 struct bpos start, in bch2_check_alloc_hole_bucket_gens()
1297 struct bpos *end, in bch2_check_alloc_hole_bucket_gens()
1573 struct bpos next; in bch2_check_alloc_info()
[all …]
H A Ddisk_accounting.h66 static inline void bpos_to_disk_accounting_pos(struct disk_accounting_pos *acc, struct bpos p) in bpos_to_disk_accounting_pos()
77 static inline struct bpos disk_accounting_pos_to_bpos(struct disk_accounting_pos *acc) in disk_accounting_pos_to_bpos()
79 struct bpos p; in disk_accounting_pos_to_bpos()
127 const struct bpos *l = _l, *r = _r; in accounting_pos_cmp()
236 static inline void bch2_accounting_mem_read(struct bch_fs *c, struct bpos p, in bch2_accounting_mem_read()
H A Dbtree_update.c94 enum btree_id btree_id, struct bpos pos) in need_whiteout_for_snapshot()
125 struct bpos old_pos, in __bch2_insert_snapshot_whiteouts()
126 struct bpos new_pos) in __bch2_insert_snapshot_whiteouts()
146 struct bpos whiteout_pos = in __bch2_insert_snapshot_whiteouts()
194 struct bpos new_start = bkey_start_pos(new.k); in bch2_trans_update_extent_overwrite()
592 enum btree_id btree, struct bpos end) in bch2_bkey_get_empty_slot()
689 enum btree_id btree, struct bpos pos, in bch2_btree_delete()
706 struct bpos start, struct bpos end, in bch2_btree_delete_range_trans()
777 struct bpos start, struct bpos end, in bch2_btree_delete_range()
806 struct bpos pos, bool set) in bch2_btree_bit_mod()
[all …]
H A Dbcachefs_ioctl.h213 struct bpos start_pos;
214 struct bpos end_pos;
246 struct bpos pos;
H A Dbset.h283 const struct bpos *r) in bkey_cmp_p_or_unp()
333 struct bpos *);
389 const struct bpos *r) in bkey_iter_pos_cmp()
398 const struct bpos *r) in bkey_iter_cmp_p_or_unp()
H A Dbtree_iter.c43 struct bpos r_pos, in __btree_path_cmp()
61 static inline struct bpos bkey_successor(struct btree_iter *iter, struct bpos p) in bkey_successor()
74 static inline struct bpos bkey_predecessor(struct btree_iter *iter, struct bpos p) in bkey_predecessor()
89 struct bpos pos = iter->pos; in btree_iter_search_key()
328 struct bpos pos) in bch2_assert_pos_locked()
1805 struct bpos pos) in bch2_path_get_unlocked_mut()
2188 struct bpos pos) in btree_trans_peek_key_cache()
2329 struct bpos end) in bch2_btree_iter_peek_max()
2740 struct bpos search_key; in bch2_btree_iter_peek_slot()
2813 struct bpos next; in bch2_btree_iter_peek_slot()
[all …]
H A Dbackpointers.c44 struct bpos bucket = bp_pos_to_bucket_and_offset(ca, bp.k->p, &bucket_offset); in bch2_backpointer_to_text()
175 static int bch2_backpointer_del(struct btree_trans *trans, struct bpos pos) in bch2_backpointer_del()
382 struct bpos bucket; in bch2_check_backpointer_has_valid_bucket()
437 struct bpos bp_start;
438 struct bpos bp_end;
854 static int check_bucket_backpointers_to_extents(struct btree_trans *, struct bch_dev *, struct bpos
953 struct bpos pos = bkey_s_c_to_btree_ptr_v2(k).v->min_key; in backpointer_node_has_missing()
962 struct bpos bucket = bp_pos_to_bucket(ca, pos); in backpointer_node_has_missing()
1003 struct bpos start, struct bpos *end) in bch2_pin_backpointer_nodes_with_missing()
1037 struct bpos pinned = SPOS_MAX; in bch2_pin_backpointer_nodes_with_missing()
[all …]
H A Dextent_update.h8 struct bkey_i *, struct bpos *);
/linux-6.15/sound/isa/gus/
H A Dgus_pcm.c40 unsigned int bpos; member
198 pcmp->bpos++; in snd_gf1_pcm_interrupt_wave()
199 pcmp->bpos %= pcmp->blocks; in snd_gf1_pcm_interrupt_wave()
335 return bpos; in get_bpos()
363 int bpos; in snd_gf1_pcm_playback_copy() local
366 if (bpos < 0) in snd_gf1_pcm_playback_copy()
367 return bpos; in snd_gf1_pcm_playback_copy()
380 int bpos; in snd_gf1_pcm_playback_silence() local
383 if (bpos < 0) in snd_gf1_pcm_playback_silence()
384 return bpos; in snd_gf1_pcm_playback_silence()
[all …]
/linux-6.15/arch/powerpc/crypto/
H A Daes-spe-core.S16 #define EAD(in, bpos) \ argument
17 rlwimi rT0,in,28-((bpos+3)%4)*8,20,27;
19 #define DAD(in, bpos) \ argument
20 rlwimi rT1,in,24-((bpos+3)%4)*8,24,31;
31 #define LAH(out, in, bpos, off) \ argument
35 #define LAL(out, in, bpos, off) \ argument
36 EAD(in, bpos) /* calc addr + load word low */ \
39 #define LAE(out, in, bpos) \ argument
40 EAD(in, bpos) /* calc addr + load enc byte */ \
46 #define LAD(out, in, bpos) \ argument
[all …]

1234