Home
last modified time | relevance | path

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

/linux-6.15/drivers/clk/samsung/
H A Dclk-pll.h54 #define PLL_RATE(_fin, _m, _p, _s, _k, _ks) \ argument
55 ((u64)(_fin) * (BIT(_ks) * (_m) + (_k)) / BIT(_ks) / ((_p) << (_s)))
57 BUILD_BUG_ON_ZERO(PLL_RATE(_fin, _m, _p, _s, _k, _ks) != (_fout)))
68 #define PLL_36XX_RATE(_fin, _rate, _m, _p, _s, _k) \ argument
71 _m, _p, _s, _k, 16), \
75 .kdiv = (_k), \
88 #define PLL_4600_RATE(_fin, _rate, _m, _p, _s, _k, _vsel) \ argument
91 _m, _p, _s, _k, 16), \
95 .kdiv = (_k), \
102 _m, _p, _s, _k, 10), \
[all …]
/linux-6.15/fs/bcachefs/
H A Dsiphash.h75 #define SipHash24_Init(_c, _k) SipHash_Init((_c), (_k)) argument
79 #define SipHash24(_k, _p, _l) SipHash((_k), 2, 4, (_p), (_l)) argument
81 #define SipHash48_Init(_c, _k) SipHash_Init((_c), (_k)) argument
85 #define SipHash48(_k, _p, _l) SipHash((_k), 4, 8, (_p), (_l)) argument
H A Dbkey_types.h13 #define bkey_p_next(_k) vstruct_next(_k) argument
20 #define bkey_val_u64s(_k) ((_k)->u64s - BKEY_U64s) argument
40 #define bkey_val_end(_k) ((void *) (((u64 *) (_k).v) + bkey_val_u64s((_k).k))) argument
42 #define bkey_deleted(_k) ((_k)->type == KEY_TYPE_deleted) argument
44 #define bkey_whiteout(_k) \ argument
45 ((_k)->type == KEY_TYPE_deleted || (_k)->type == KEY_TYPE_whiteout)
197 static inline struct bkey_i_##name *bkey_##name##_init(struct bkey_i *_k)\
200 container_of(&_k->k, struct bkey_i_##name, k); \
H A Dbtree_iter.h19 #define bkey_err(_k) __bkey_err((_k).k) argument
767 _end, _flags, _k, _do) \
769 struct bkey_s_c _k; \
776 if (!(_k).k) \
779 bkey_err(_k) ?: (_do); \
811 struct bkey_s_c _k; \
821 if (!(_k).k) \
824 bkey_err(_k) ?: (_do); \
864 !((_ret) = bkey_err(_k)) && (_k).k; \
870 !((_ret) = bkey_err(_k)) && (_k).k; \
[all …]
H A Dsubvolume.h49 _end, _subvolid, _flags, _k, _do) \
51 struct bkey_s_c _k; \
56 (_k) = bch2_btree_iter_peek_in_subvolume_max_type(trans, &(_iter),\
58 if (!(_k).k) \
61 bkey_err(_k) ?: (_do); \
70 _start, _end, _subvolid, _flags, _k, _do) \
77 _end, _subvolid, _flags, _k, _do); \
H A Dbset.h214 #define bset_tree_for_each_key(_b, _t, _k) \ argument
215 for (_k = btree_bkey_first(_b, _t); \
216 _k != btree_bkey_last(_b, _t); \
217 _k = bkey_p_next(_k))
489 #define btree_keys_account_key_add(_nr, _bset_idx, _k) \ argument
490 btree_keys_account_key(_nr, _bset_idx, _k, 1)
492 btree_keys_account_key(_nr, _bset_idx, _k, -1)
494 #define btree_account_key_add(_b, _k) \ argument
496 bch2_bkey_to_bset(_b, _k) - (_b)->set, _k, 1)
497 #define btree_account_key_drop(_b, _k) \ argument
[all …]
H A Dextents.h335 (_ptr).crc = bch2_extent_crc_unpack(_k, \
360 #define bkey_crc_next(_k, _end, _crc, _iter) \ argument
364 (_crc) = bch2_extent_crc_unpack(_k, \
375 bkey_crc_next(_k, _end, _crc, _iter); \
378 #define bkey_for_each_crc(_k, _p, _crc, _iter) \ argument
517 #define bkey_inline_data_p(_k) (((void *) (_k).v) + bkey_inline_data_offset((_k).k)) argument
653 _ptrs = bch2_bkey_ptrs(_k); \
657 bch2_bkey_drop_ptr_noerror(_k, _ptr); \
662 #define bch2_bkey_drop_ptrs(_k, _ptr, _cond) \ argument
667 _ptrs = bch2_bkey_ptrs(_k); \
[all …]
H A Dkeylist.h52 #define for_each_keylist_key(_keylist, _k) \ argument
53 for (struct bkey_i *_k = (_keylist)->keys; \
54 _k != (_keylist)->top; \
55 _k = bkey_next(_k))
H A Djournal_io.h55 #define jset_entry_for_each_key(_e, _k) \ argument
56 for (struct bkey_i *_k = (_e)->start; \
57 _k < vstruct_last(_e); \
58 _k = bkey_next(_k))
H A Dbkey.h217 #define bkey_packed(_k) \ argument
218 ({ EBUG_ON((_k)->format > KEY_FORMAT_CURRENT); \
219 (_k)->format != KEY_FORMAT_CURRENT; })
221 #define bkey_packed(_k) ((_k)->format != KEY_FORMAT_CURRENT) argument
348 #define bkeyp_val(_format, _k) \ argument
349 ((struct bch_val *) ((u64 *) (_k)->_data + bkeyp_key_u64s(_format, _k)))
H A Ddisk_accounting.h91 #define disk_accounting_key_init(_k, _type, ...) \ argument
93 memset(&(_k), 0, sizeof(_k)); \
94 (_k).type = BCH_DISK_ACCOUNTING_##_type; \
95 (_k)._type = (struct bch_acct_##_type) { __VA_ARGS__ }; \
H A Dbtree_update.h253 #define bch2_bkey_make_mut_noupdate_typed(_trans, _k, _type) \ argument
254 bkey_i_to_##_type(__bch2_bkey_make_mut_noupdate(_trans, _k, \
283 #define bch2_bkey_make_mut_typed(_trans, _iter, _k, _flags, _type) \ argument
284 bkey_i_to_##_type(__bch2_bkey_make_mut(_trans, _iter, _k, _flags,\
H A Dbset.c58 struct bkey_packed *_k, *_n; in bch2_dump_bset() local
66 for (_k = i->start; in bch2_dump_bset()
67 _k < vstruct_last(i); in bch2_dump_bset()
68 _k = _n) { in bch2_dump_bset()
69 _n = bkey_p_next(_k); in bch2_dump_bset()
71 if (!_k->u64s) { in bch2_dump_bset()
73 _k->_data - i->_data); in bch2_dump_bset()
77 k = bkey_disassemble(b, _k, &uk); in bch2_dump_bset()
85 _k->_data - i->_data, buf.buf); in bch2_dump_bset()
H A Drebalance.c154 struct bkey_i *_k) in bch2_bkey_set_needs_rebalance() argument
156 if (!bkey_extent_is_direct_data(&_k->k)) in bch2_bkey_set_needs_rebalance()
159 struct bkey_s k = bkey_i_to_s(_k); in bch2_bkey_set_needs_rebalance()
H A Ddebug.c448 struct bkey_packed *_k = in bch2_read_bfloat_failed()
456 bch2_bfloat_to_text(&i->buf, l->b, _k); in bch2_read_bfloat_failed()
H A Dbcachefs_format.h364 #define bkey_bytes(_k) ((_k)->u64s * sizeof(__u64)) argument
H A Dbtree_iter.c1822 struct bkey_packed *_k; in bch2_btree_path_peek_slot() local
1832 _k = bch2_btree_node_iter_peek_all(&l->iter, l->b); in bch2_btree_path_peek_slot()
1833 k = _k ? bkey_disassemble(l->b, _k, u) : bkey_s_c_null; in bch2_btree_path_peek_slot()
/linux-6.15/drivers/clk/sunxi-ng/
H A Dccu_nkm.c40 unsigned long _n, _k, _m; in ccu_nkm_find_best_with_parent_adj() local
42 for (_k = nkm->min_k; _k <= nkm->max_k; _k++) { in ccu_nkm_find_best_with_parent_adj()
47 tmp_parent = clk_hw_round_rate(parent_hw, rate * _m / (_n * _k)); in ccu_nkm_find_best_with_parent_adj()
52 tmp_rate = tmp_parent * _n * _k / _m; in ccu_nkm_find_best_with_parent_adj()
59 best_k = _k; in ccu_nkm_find_best_with_parent_adj()
80 unsigned long _n, _k, _m; in ccu_nkm_find_best() local
82 for (_k = nkm->min_k; _k <= nkm->max_k; _k++) { in ccu_nkm_find_best()
90 tmp_rate = parent * _n * _k / _m; in ccu_nkm_find_best()
95 best_k = _k; in ccu_nkm_find_best()
H A Dccu_nk.c23 unsigned int _k, _n; in ccu_nk_find_best() local
25 for (_k = nk->min_k; _k <= nk->max_k; _k++) { in ccu_nk_find_best()
27 unsigned long tmp_rate = parent * _n * _k; in ccu_nk_find_best()
34 best_k = _k; in ccu_nk_find_best()
H A Dccu_nkmp.c37 unsigned long _n, _k, _m, _p; in ccu_nkmp_find_best() local
39 for (_k = nkmp->min_k; _k <= nkmp->max_k; _k++) { in ccu_nkmp_find_best()
46 _n, _k, in ccu_nkmp_find_best()
55 best_k = _k; in ccu_nkmp_find_best()
/linux-6.15/arch/mips/include/asm/sn/
H A Dklconfig.h180 #define PTR_CH_MALLOC_HDR(_k) ((klc_malloc_hdr_t *)\ argument
181 ((unsigned long)_k + (_k->ch_malloc_hdr_off)))
185 #define PTR_CH_CONS_INFO(_k) ((console_t *)\ argument
186 ((unsigned long)_k + (_k->ch_cons_off)))
/linux-6.15/include/linux/
H A Dslab.h1030 #define kmem_cache_zalloc(_k, _flags) kmem_cache_alloc(_k, (_flags)|__GFP_ZERO) argument
/linux-6.15/drivers/clk/imx/
H A Dclk.h271 #define PLL_1443X_RATE(_rate, _m, _p, _s, _k) \ argument
277 .kdiv = (_k), \
/linux-6.15/drivers/clk/rockchip/
H A Dclk.h434 #define RK3588_PLL_RATE(_rate, _p, _m, _s, _k) \ argument
440 .k = _k, \
/linux-6.15/lib/
H A Dbch.c964 #define find_poly_roots(_p, _k, _elp, _loc) chien_search(_p, len, _elp, _loc) argument