Home
last modified time | relevance | path

Searched full:k (Results 1 – 25 of 4235) sorted by relevance

12345678910>>...170

/linux-6.14.4/include/uapi/linux/
Dkeyboard.h45 #define K(t,v) (((t)<<8)|(v)) macro
49 #define K_F1 K(KT_FN,0)
50 #define K_F2 K(KT_FN,1)
51 #define K_F3 K(KT_FN,2)
52 #define K_F4 K(KT_FN,3)
53 #define K_F5 K(KT_FN,4)
54 #define K_F6 K(KT_FN,5)
55 #define K_F7 K(KT_FN,6)
56 #define K_F8 K(KT_FN,7)
57 #define K_F9 K(KT_FN,8)
[all …]
/linux-6.14.4/drivers/gpu/drm/amd/display/dc/dml/calcs/
Ddcn_calc_auto.c42 int k; in scaler_settings_calculation() local
43 for (k = 0; k <= v->number_of_active_planes - 1; k++) { in scaler_settings_calculation()
45 if (v->source_scan[k] == dcn_bw_hor) { in scaler_settings_calculation()
46 v->h_ratio[k] = v->viewport_width[k] / v->scaler_rec_out_width[k]; in scaler_settings_calculation()
47 v->v_ratio[k] = v->viewport_height[k] / v->scaler_recout_height[k]; in scaler_settings_calculation()
50 v->h_ratio[k] = v->viewport_height[k] / v->scaler_rec_out_width[k]; in scaler_settings_calculation()
51 v->v_ratio[k] = v->viewport_width[k] / v->scaler_recout_height[k]; in scaler_settings_calculation()
55 if (v->source_scan[k] == dcn_bw_hor) { in scaler_settings_calculation()
56 …v->h_ratio[k] =dcn_bw_max2(v->viewport_width[k] / v->scaler_rec_out_width[k], v->viewport_height[k in scaler_settings_calculation()
59 …v->h_ratio[k] =dcn_bw_max2(v->viewport_height[k] / v->scaler_rec_out_width[k], v->viewport_width[k in scaler_settings_calculation()
[all …]
/linux-6.14.4/drivers/gpu/drm/amd/display/dc/dml/dcn31/
Ddisplay_mode_vba_31.c255 unsigned int k,
1989 unsigned int j, k; local
2021 for (k = 0; k < v->NumberOfActivePlanes; ++k) {
2022 if (v->WritebackEnable[k]) {
2026 v->WritebackPixelFormat[k],
2027 v->PixelClock[k],
2028 v->WritebackHRatio[k],
2029 v->WritebackVRatio[k],
2030 v->WritebackHTaps[k],
2031 v->WritebackVTaps[k],
[all …]
/linux-6.14.4/drivers/gpu/drm/amd/display/dc/dml/dcn314/
Ddisplay_mode_vba_314.c264 unsigned int k,
2006 unsigned int j, k; local
2039 for (k = 0; k < v->NumberOfActivePlanes; ++k) {
2040 if (v->WritebackEnable[k]) {
2044 v->WritebackPixelFormat[k],
2045 v->PixelClock[k],
2046 v->WritebackHRatio[k],
2047 v->WritebackVRatio[k],
2048 v->WritebackHTaps[k],
2049 v->WritebackVTaps[k],
[all …]
/linux-6.14.4/drivers/gpu/drm/amd/display/dc/dml/dcn30/
Ddisplay_mode_vba_30.c1844 unsigned int j, k; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() local
1871 for (k = 0; k < v->NumberOfActivePlanes; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1872 if (v->WritebackEnable[k]) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1875 v->WritebackPixelFormat[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1876 v->PixelClock[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1877 v->WritebackHRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1878 v->WritebackVRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1879 v->WritebackHTaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1880 v->WritebackVTaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1881 v->WritebackSourceWidth[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
[all …]
/linux-6.14.4/drivers/gpu/drm/amd/display/dc/dml/dcn20/
Ddisplay_mode_vba_20v2.c1145 unsigned int j, k; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() local
1154 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1155 if (mode_lib->vba.WritebackEnable[k]) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1160 mode_lib->vba.WritebackPixelFormat[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1161 mode_lib->vba.PixelClock[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1162 mode_lib->vba.WritebackHRatio[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1163 mode_lib->vba.WritebackVRatio[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1164 mode_lib->vba.WritebackLumaHTaps[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1165 mode_lib->vba.WritebackLumaVTaps[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1166 mode_lib->vba.WritebackChromaHTaps[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
[all …]
Ddisplay_mode_vba_20.c1085 unsigned int j, k; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() local
1094 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1095 if (mode_lib->vba.WritebackEnable[k]) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1100 mode_lib->vba.WritebackPixelFormat[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1101 mode_lib->vba.PixelClock[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1102 mode_lib->vba.WritebackHRatio[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1103 mode_lib->vba.WritebackVRatio[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1104 mode_lib->vba.WritebackLumaHTaps[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1105 mode_lib->vba.WritebackLumaVTaps[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1106 mode_lib->vba.WritebackChromaHTaps[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
[all …]
/linux-6.14.4/drivers/gpu/drm/amd/display/dc/dml/dcn21/
Ddisplay_mode_vba_21.c1469 unsigned int j, k; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() local
1478 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1479 if (mode_lib->vba.WritebackEnable[k]) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1484 mode_lib->vba.WritebackPixelFormat[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1485 mode_lib->vba.PixelClock[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1486 mode_lib->vba.WritebackHRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1487 mode_lib->vba.WritebackVRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1488 mode_lib->vba.WritebackLumaHTaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1489 mode_lib->vba.WritebackLumaVTaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1490 mode_lib->vba.WritebackChromaHTaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
[all …]
/linux-6.14.4/fs/bcachefs/
Dbkey_types.h15 static inline struct bkey_i *bkey_next(struct bkey_i *k) in bkey_next() argument
17 return (struct bkey_i *) ((u64 *) k->_data + k->k.u64s); in bkey_next()
22 static inline size_t bkey_val_bytes(const struct bkey *k) in bkey_val_bytes() argument
24 return bkey_val_u64s(k) * sizeof(u64); in bkey_val_bytes()
27 static inline void set_bkey_val_u64s(struct bkey *k, unsigned val_u64s) in set_bkey_val_u64s() argument
32 k->u64s = u64s; in set_bkey_val_u64s()
35 static inline void set_bkey_val_bytes(struct bkey *k, unsigned bytes) in set_bkey_val_bytes() argument
37 set_bkey_val_u64s(k, DIV_ROUND_UP(bytes, sizeof(u64))); in set_bkey_val_bytes()
40 #define bkey_val_end(_k) ((void *) (((u64 *) (_k).v) + bkey_val_u64s((_k).k)))
49 const struct bkey *k; member
[all …]
Dbkey_methods.c30 static int deleted_key_validate(struct bch_fs *c, struct bkey_s_c k, in deleted_key_validate() argument
44 static int empty_val_key_validate(struct bch_fs *c, struct bkey_s_c k, in empty_val_key_validate() argument
49 bkey_fsck_err_on(bkey_val_bytes(k.k), in empty_val_key_validate()
52 bkey_val_bytes(k.k)); in empty_val_key_validate()
61 static int key_type_cookie_validate(struct bch_fs *c, struct bkey_s_c k, in key_type_cookie_validate() argument
68 struct bkey_s_c k) in key_type_cookie_to_text() argument
70 struct bkey_s_c_cookie ck = bkey_s_c_to_cookie(k); in key_type_cookie_to_text()
85 static int key_type_inline_data_validate(struct bch_fs *c, struct bkey_s_c k, in key_type_inline_data_validate() argument
92 struct bkey_s_c k) in key_type_inline_data_to_text() argument
94 struct bkey_s_c_inline_data d = bkey_s_c_to_inline_data(k); in key_type_inline_data_to_text()
[all …]
Dbtree_update.c23 bpos_cmp(l->k->k.p, r->k->k.p); in btree_insert_entry_cmp()
33 struct bkey_s_c k, in extent_front_merge() argument
44 update = bch2_bkey_make_mut_noupdate(trans, k); in extent_front_merge()
52 ret = bch2_key_has_snapshot_overwrites(trans, iter->btree_id, k.k->p) ?: in extent_front_merge()
53 bch2_key_has_snapshot_overwrites(trans, iter->btree_id, (*insert)->k.p); in extent_front_merge()
70 struct bkey_s_c k) in extent_back_merge() argument
78 ret = bch2_key_has_snapshot_overwrites(trans, iter->btree_id, insert->k.p) ?: in extent_back_merge()
79 bch2_key_has_snapshot_overwrites(trans, iter->btree_id, k.k->p); in extent_back_merge()
85 bch2_bkey_merge(c, bkey_i_to_s(insert), k); in extent_back_merge()
97 struct bkey_s_c k; in need_whiteout_for_snapshot() local
[all …]
Dextents.c116 int bch2_bkey_pick_read_device(struct bch_fs *c, struct bkey_s_c k, in bch2_bkey_pick_read_device() argument
120 struct bkey_ptrs_c ptrs = bch2_bkey_ptrs_c(k); in bch2_bkey_pick_read_device()
126 if (k.k->type == KEY_TYPE_error) in bch2_bkey_pick_read_device()
130 bkey_for_each_ptr_decode(k.k, ptrs, p, entry) { in bch2_bkey_pick_read_device()
180 int bch2_btree_ptr_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_btree_ptr_validate() argument
185 bkey_fsck_err_on(bkey_val_u64s(k.k) > BCH_REPLICAS_MAX, in bch2_btree_ptr_validate()
187 "value too big (%zu > %u)", bkey_val_u64s(k.k), BCH_REPLICAS_MAX); in bch2_btree_ptr_validate()
189 ret = bch2_bkey_ptrs_validate(c, k, from); in bch2_btree_ptr_validate()
195 struct bkey_s_c k) in bch2_btree_ptr_to_text() argument
197 bch2_bkey_ptrs_to_text(out, c, k); in bch2_btree_ptr_to_text()
[all …]
Dtests.c36 struct bkey_i_cookie k; in test_delete() local
39 bkey_cookie_init(&k.k_i); in test_delete()
40 k.k.p.snapshot = U32_MAX; in test_delete()
42 bch2_trans_iter_init(trans, &iter, BTREE_ID_xattrs, k.k.p, in test_delete()
47 bch2_trans_update(trans, &iter, &k.k_i, 0)); in test_delete()
77 struct bkey_i_cookie k; in test_delete_written() local
80 bkey_cookie_init(&k.k_i); in test_delete_written()
81 k.k.p.snapshot = U32_MAX; in test_delete_written()
83 bch2_trans_iter_init(trans, &iter, BTREE_ID_xattrs, k.k.p, in test_delete_written()
88 bch2_trans_update(trans, &iter, &k.k_i, 0)); in test_delete_written()
[all …]
Dreflink.c18 static inline bool bkey_extent_is_reflink_data(const struct bkey *k) in bkey_extent_is_reflink_data() argument
20 switch (k->type) { in bkey_extent_is_reflink_data()
29 static inline unsigned bkey_type_to_indirect(const struct bkey *k) in bkey_type_to_indirect() argument
31 switch (k->type) { in bkey_type_to_indirect()
43 int bch2_reflink_p_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_reflink_p_validate() argument
46 struct bkey_s_c_reflink_p p = bkey_s_c_to_reflink_p(k); in bch2_reflink_p_validate()
58 struct bkey_s_c k) in bch2_reflink_p_to_text() argument
60 struct bkey_s_c_reflink_p p = bkey_s_c_to_reflink_p(k); in bch2_reflink_p_to_text()
79 if (REFLINK_P_IDX(l.v) + l.k->size != REFLINK_P_IDX(r.v)) in bch2_reflink_p_merge()
85 bch2_key_resize(l.k, l.k->size + r.k->size); in bch2_reflink_p_merge()
[all …]
Dinode.c80 struct bkey_i_inode_v3 *k = &packed->inode; in bch2_inode_pack_inlined() local
81 u8 *out = k->v.fields; in bch2_inode_pack_inlined()
89 packed->inode.k.p.offset = inode->bi_inum; in bch2_inode_pack_inlined()
127 set_bkey_val_bytes(&packed->inode.k, bytes); in bch2_inode_pack_inlined()
130 SET_INODEv3_NR_FIELDS(&k->v, nr_fields); in bch2_inode_pack_inlined()
231 static int bch2_inode_unpack_v3(struct bkey_s_c k, in bch2_inode_unpack_v3() argument
234 struct bkey_s_c_inode_v3 inode = bkey_s_c_to_inode_v3(k); in bch2_inode_unpack_v3()
242 unpacked->bi_inum = inode.k->p.offset; in bch2_inode_unpack_v3()
282 static noinline int bch2_inode_unpack_slowpath(struct bkey_s_c k, in bch2_inode_unpack_slowpath() argument
287 unpacked->bi_snapshot = k.k->p.snapshot; in bch2_inode_unpack_slowpath()
[all …]
Ddisk_accounting.c71 static inline void accounting_key_init(struct bkey_i *k, struct disk_accounting_pos *pos, in accounting_key_init() argument
74 struct bkey_i_accounting *acc = bkey_accounting_init(k); in accounting_key_init()
76 acc->k.p = disk_accounting_pos_to_bpos(pos); in accounting_key_init()
77 set_bkey_val_u64s(&acc->k, sizeof(struct bch_accounting) / sizeof(u64) + nr); in accounting_key_init()
85 struct disk_accounting_pos *k, in bch2_disk_accounting_mod() argument
89 switch (k->type) { in bch2_disk_accounting_mod()
91 bubble_sort(k->replicas.devs, k->replicas.nr_devs, u8_cmp); in bch2_disk_accounting_mod()
97 struct { __BKEY_PADDED(k, BCH_ACCOUNTING_MAX_COUNTERS); } k_i; in bch2_disk_accounting_mod()
99 accounting_key_init(&k_i.k, k, d, nr); in bch2_disk_accounting_mod()
102 int ret = bch2_accounting_mem_add(trans, bkey_i_to_s_c_accounting(&k_i.k), true); in bch2_disk_accounting_mod()
[all …]
/linux-6.14.4/drivers/gpu/drm/amd/display/dc/dml/dcn32/
Ddisplay_mode_vba_32.c62 unsigned int j, k; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() local
85 for (k = 0; k < mode_lib->vba.NumberOfActiveSurfaces; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
86 if (mode_lib->vba.WritebackEnable[k]) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
89 mode_lib->vba.WritebackPixelFormat[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
90 mode_lib->vba.PixelClock[k], mode_lib->vba.WritebackHRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
91 mode_lib->vba.WritebackVRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
92 mode_lib->vba.WritebackHTaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
93 mode_lib->vba.WritebackVTaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
94 mode_lib->vba.WritebackSourceWidth[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
95 mode_lib->vba.WritebackDestinationWidth[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
[all …]
Ddisplay_mode_vba_util_32.c468 unsigned int k; in dml32_CalculateSwathAndDETConfiguration() local
515 for (k = 0; k < NumberOfActiveSurfaces; ++k) { in dml32_CalculateSwathAndDETConfiguration()
516 …RoundedUpMaxSwathSizeBytesY[k] = swath_width_luma_ub[k] * BytePerPixDETY[k] * MaximumSwathHeightY[ in dml32_CalculateSwathAndDETConfiguration()
517 …RoundedUpMaxSwathSizeBytesC[k] = swath_width_chroma_ub[k] * BytePerPixDETC[k] * MaximumSwathHeight… in dml32_CalculateSwathAndDETConfiguration()
519 dml_print("DML::%s: k=%0d DPPPerSurface = %d\n", __func__, k, DPPPerSurface[k]); in dml32_CalculateSwathAndDETConfiguration()
520 dml_print("DML::%s: k=%0d swath_width_luma_ub = %d\n", __func__, k, swath_width_luma_ub[k]); in dml32_CalculateSwathAndDETConfiguration()
521 dml_print("DML::%s: k=%0d BytePerPixDETY = %f\n", __func__, k, BytePerPixDETY[k]); in dml32_CalculateSwathAndDETConfiguration()
522 dml_print("DML::%s: k=%0d MaximumSwathHeightY = %d\n", __func__, k, MaximumSwathHeightY[k]); in dml32_CalculateSwathAndDETConfiguration()
523 dml_print("DML::%s: k=%0d RoundedUpMaxSwathSizeBytesY = %d\n", __func__, k, in dml32_CalculateSwathAndDETConfiguration()
524 RoundedUpMaxSwathSizeBytesY[k]); in dml32_CalculateSwathAndDETConfiguration()
[all …]
/linux-6.14.4/drivers/gpu/drm/amd/display/dc/dml2/
Ddisplay_mode_core.c2697 for (dml_uint_t k = 0; k < num_active_planes; ++k) { in PixelClockAdjustmentForProgressiveToInterlaceUnit() local
2698 display_cfg->output.PixelClockBackEnd[k] = display_cfg->timing.PixelClock[k]; in PixelClockAdjustmentForProgressiveToInterlaceUnit()
2699 if (display_cfg->timing.Interlace[k] == 1 && ptoi_supported == true) { in PixelClockAdjustmentForProgressiveToInterlaceUnit()
2700 display_cfg->timing.PixelClock[k] = 2 * display_cfg->timing.PixelClock[k]; in PixelClockAdjustmentForProgressiveToInterlaceUnit()
2852 for (dml_uint_t k = 0; k < p->NumberOfActiveSurfaces; ++k) { in CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport() local
2853 if (p->WritebackEnable[k] == true) { in CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport()
2889 for (dml_uint_t k = 0; k < p->NumberOfActiveSurfaces; ++k) { in CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport() local
2890 s->TotalPixelBW = s->TotalPixelBW + p->DPPPerSurface[k] in CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport()
2891 …dthY[k] * p->BytePerPixelDETY[k] * p->VRatio[k] + p->SwathWidthC[k] * p->BytePerPixelDETC[k] * p->… in CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport()
2894 for (dml_uint_t k = 0; k < p->NumberOfActiveSurfaces; ++k) { in CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport() local
[all …]
/linux-6.14.4/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/
Ddml2_core_shared.c764 unsigned int k, m, n; in dml2_core_shared_mode_support() local
804 for (k = 0; k < mode_lib->ms.num_active_planes; k++) in dml2_core_shared_mode_support()
805 …::%s: plane_%d: reserved_vblank_time_ns = %u\n", __func__, k, display_cfg->plane_descriptors[k].ov… in dml2_core_shared_mode_support()
835 for (k = 0; k <= mode_lib->ms.num_active_planes - 1; k++) { in dml2_core_shared_mode_support()
836 if (display_cfg->plane_descriptors[k].composition.scaler_info.enabled == false in dml2_core_shared_mode_support()
837 && (dml2_core_shared_is_420(display_cfg->plane_descriptors[k].pixel_format) in dml2_core_shared_mode_support()
838 || display_cfg->plane_descriptors[k].composition.scaler_info.plane0.h_ratio != 1.0 in dml2_core_shared_mode_support()
839 || display_cfg->plane_descriptors[k].composition.scaler_info.plane0.h_taps != 1.0 in dml2_core_shared_mode_support()
840 || display_cfg->plane_descriptors[k].composition.scaler_info.plane0.v_ratio != 1.0 in dml2_core_shared_mode_support()
841 || display_cfg->plane_descriptors[k].composition.scaler_info.plane0.v_taps != 1.0)) { in dml2_core_shared_mode_support()
[all …]
Ddml2_core_dcn4_calcs.c159 for (unsigned int k = 0; k < display_cfg->num_planes; k++) { in get_stream_output_bpp() local
160 …double bpc = (double)display_cfg->stream_descriptors[display_cfg->plane_descriptors[k].stream_inde… in get_stream_output_bpp()
161 …if (display_cfg->stream_descriptors[display_cfg->plane_descriptors[k].stream_index].timing.dsc.ena… in get_stream_output_bpp()
162 …switch (display_cfg->stream_descriptors[display_cfg->plane_descriptors[k].stream_index].output.out… in get_stream_output_bpp()
164 out_bpp[k] = bpc * 3; in get_stream_output_bpp()
167 out_bpp[k] = bpc * 2; in get_stream_output_bpp()
170 out_bpp[k] = bpc * 2; in get_stream_output_bpp()
174 out_bpp[k] = bpc * 1.5; in get_stream_output_bpp()
177 …} else if (display_cfg->stream_descriptors[display_cfg->plane_descriptors[k].stream_index].timing.… in get_stream_output_bpp()
178 …out_bpp[k] = (double)display_cfg->stream_descriptors[display_cfg->plane_descriptors[k].stream_inde… in get_stream_output_bpp()
[all …]
/linux-6.14.4/drivers/md/bcache/
Dextents.c33 i->k = bkey_next(i->k); in sort_key_next()
35 if (i->k == i->end) in sort_key_next()
43 int64_t c = bkey_cmp(_l->k, _r->k); in new_bch_key_sort_cmp()
45 return !(c ? c > 0 : _l->k < _r->k); in new_bch_key_sort_cmp()
48 static bool __ptr_invalid(struct cache_set *c, const struct bkey *k) in __ptr_invalid() argument
52 for (i = 0; i < KEY_PTRS(k); i++) in __ptr_invalid()
53 if (ptr_available(c, k, i)) { in __ptr_invalid()
55 size_t bucket = PTR_BUCKET_NR(c, k, i); in __ptr_invalid()
56 size_t r = bucket_remainder(c, PTR_OFFSET(k, i)); in __ptr_invalid()
58 if (KEY_SIZE(k) + r > c->cache->sb.bucket_size || in __ptr_invalid()
[all …]
/linux-6.14.4/arch/sparc/kernel/
Dtermios.c33 int user_termios_to_kernel_termios(struct ktermios *k, in user_termios_to_kernel_termios() argument
37 err = get_user(k->c_iflag, &u->c_iflag); in user_termios_to_kernel_termios()
38 err |= get_user(k->c_oflag, &u->c_oflag); in user_termios_to_kernel_termios()
39 err |= get_user(k->c_cflag, &u->c_cflag); in user_termios_to_kernel_termios()
40 err |= get_user(k->c_lflag, &u->c_lflag); in user_termios_to_kernel_termios()
41 err |= get_user(k->c_line, &u->c_line); in user_termios_to_kernel_termios()
42 err |= copy_from_user(k->c_cc, u->c_cc, NCCS); in user_termios_to_kernel_termios()
43 if (k->c_lflag & ICANON) { in user_termios_to_kernel_termios()
44 err |= get_user(k->c_cc[VEOF], &u->c_cc[VEOF]); in user_termios_to_kernel_termios()
45 err |= get_user(k->c_cc[VEOL], &u->c_cc[VEOL]); in user_termios_to_kernel_termios()
[all …]
/linux-6.14.4/tools/lib/
Dbitmap.c10 unsigned int k, w = 0, lim = bits/BITS_PER_LONG; in __bitmap_weight() local
12 for (k = 0; k < lim; k++) in __bitmap_weight()
13 w += hweight_long(bitmap[k]); in __bitmap_weight()
16 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()
24 int k; in __bitmap_or() local
27 for (k = 0; k < nr; k++) in __bitmap_or()
28 dst[k] = bitmap1[k] | bitmap2[k]; in __bitmap_or()
63 unsigned int k; in __bitmap_and() local
67 for (k = 0; k < lim; k++) in __bitmap_and()
68 result |= (dst[k] = bitmap1[k] & bitmap2[k]); in __bitmap_and()
[all …]
/linux-6.14.4/fs/btrfs/tests/
Dextent-map-tests.c50 * extent [0, 16K), followed by another file extent [16K, 20K), two dio reads
51 * are entering btrfs_get_extent() concurrently, t1 is reading [8K, 16K), t2 is
52 * reading [0, 8K)
57 * -> add_extent_mapping(0, 16K)
59 * ->add_extent_mapping(0, 16K)
77 /* Add [0, 16K) */ in test_case_1()
87 test_err("cannot add extent range [0, 16K)"); in test_case_1()
92 /* Add [16K, 20K) following [0, 16K) */ in test_case_1()
109 test_err("cannot add extent range [16K, 20K)"); in test_case_1()
121 /* Add [0, 8K), should return [0, 16K) instead. */ in test_case_1()
[all …]

12345678910>>...170