/linux-6.12.1/include/uapi/linux/ |
D | keyboard.h | 45 #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.12.1/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
D | dcn_calc_auto.c | 42 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.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn31/ |
D | display_mode_vba_31.c | 255 unsigned int k, 1992 unsigned int j, k; local 2024 for (k = 0; k < v->NumberOfActivePlanes; ++k) { 2025 if (v->WritebackEnable[k]) { 2029 v->WritebackPixelFormat[k], 2030 v->PixelClock[k], 2031 v->WritebackHRatio[k], 2032 v->WritebackVRatio[k], 2033 v->WritebackHTaps[k], 2034 v->WritebackVTaps[k], [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn314/ |
D | display_mode_vba_314.c | 264 unsigned int k, 2009 unsigned int j, k; local 2042 for (k = 0; k < v->NumberOfActivePlanes; ++k) { 2043 if (v->WritebackEnable[k]) { 2047 v->WritebackPixelFormat[k], 2048 v->PixelClock[k], 2049 v->WritebackHRatio[k], 2050 v->WritebackVRatio[k], 2051 v->WritebackHTaps[k], 2052 v->WritebackVTaps[k], [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn30/ |
D | display_mode_vba_30.c | 1856 unsigned int j, k; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() local 1883 for (k = 0; k < v->NumberOfActivePlanes; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1884 if (v->WritebackEnable[k]) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1887 v->WritebackPixelFormat[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1888 v->PixelClock[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1889 v->WritebackHRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1890 v->WritebackVRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1891 v->WritebackHTaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1892 v->WritebackVTaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1893 v->WritebackSourceWidth[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
D | display_mode_vba_20v2.c | 1148 unsigned int j, k; in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() local 1157 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1158 if (mode_lib->vba.WritebackEnable[k]) { in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1163 mode_lib->vba.WritebackPixelFormat[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1164 mode_lib->vba.PixelClock[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1165 mode_lib->vba.WritebackHRatio[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1166 mode_lib->vba.WritebackVRatio[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1167 mode_lib->vba.WritebackLumaHTaps[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1168 mode_lib->vba.WritebackLumaVTaps[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1169 mode_lib->vba.WritebackChromaHTaps[k], in dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() [all …]
|
D | display_mode_vba_20.c | 1088 unsigned int j, k; in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() local 1097 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1098 if (mode_lib->vba.WritebackEnable[k]) { in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1103 mode_lib->vba.WritebackPixelFormat[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1104 mode_lib->vba.PixelClock[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1105 mode_lib->vba.WritebackHRatio[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1106 mode_lib->vba.WritebackVRatio[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1107 mode_lib->vba.WritebackLumaHTaps[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1108 mode_lib->vba.WritebackLumaVTaps[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1109 mode_lib->vba.WritebackChromaHTaps[k], in dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn21/ |
D | display_mode_vba_21.c | 1472 unsigned int j, k; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() local 1481 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1482 if (mode_lib->vba.WritebackEnable[k]) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1487 mode_lib->vba.WritebackPixelFormat[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1488 mode_lib->vba.PixelClock[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1489 mode_lib->vba.WritebackHRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1490 mode_lib->vba.WritebackVRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1491 mode_lib->vba.WritebackLumaHTaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1492 mode_lib->vba.WritebackLumaVTaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 1493 mode_lib->vba.WritebackChromaHTaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() [all …]
|
/linux-6.12.1/fs/bcachefs/ |
D | bkey_types.h | 15 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 …]
|
D | bkey_methods.c | 30 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 …]
|
D | btree_update.c | 23 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 …]
|
D | extents.c | 107 int bch2_bkey_pick_read_device(struct bch_fs *c, struct bkey_s_c k, in bch2_bkey_pick_read_device() argument 111 struct bkey_ptrs_c ptrs = bch2_bkey_ptrs_c(k); in bch2_bkey_pick_read_device() 117 if (k.k->type == KEY_TYPE_error) in bch2_bkey_pick_read_device() 121 bkey_for_each_ptr_decode(k.k, ptrs, p, entry) { in bch2_bkey_pick_read_device() 171 int bch2_btree_ptr_validate(struct bch_fs *c, struct bkey_s_c k, in bch2_btree_ptr_validate() argument 176 bkey_fsck_err_on(bkey_val_u64s(k.k) > BCH_REPLICAS_MAX, in bch2_btree_ptr_validate() 178 "value too big (%zu > %u)", bkey_val_u64s(k.k), BCH_REPLICAS_MAX); in bch2_btree_ptr_validate() 180 ret = bch2_bkey_ptrs_validate(c, k, flags); in bch2_btree_ptr_validate() 186 struct bkey_s_c k) in bch2_btree_ptr_to_text() argument 188 bch2_bkey_ptrs_to_text(out, c, k); in bch2_btree_ptr_to_text() [all …]
|
D | tests.c | 36 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 …]
|
D | disk_accounting.c | 71 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() 83 struct disk_accounting_pos *k, in bch2_disk_accounting_mod() argument 87 switch (k->type) { in bch2_disk_accounting_mod() 89 bubble_sort(k->replicas.devs, k->replicas.nr_devs, u8_cmp); in bch2_disk_accounting_mod() 95 struct { __BKEY_PADDED(k, BCH_ACCOUNTING_MAX_COUNTERS); } k_i; in bch2_disk_accounting_mod() 97 accounting_key_init(&k_i.k, k, d, nr); in bch2_disk_accounting_mod() 100 ? bch2_trans_update_buffered(trans, BTREE_ID_accounting, &k_i.k) in bch2_disk_accounting_mod() [all …]
|
D | alloc_background.c | 88 struct bkey_s_c k) in bch2_alloc_unpack_v1() argument 90 const struct bch_alloc *in = bkey_s_c_to_alloc(k).v; in bch2_alloc_unpack_v1() 102 struct bkey_s_c k) in bch2_alloc_unpack_v2() argument 104 struct bkey_s_c_alloc_v2 a = bkey_s_c_to_alloc_v2(k); in bch2_alloc_unpack_v2() 135 struct bkey_s_c k) in bch2_alloc_unpack_v3() argument 137 struct bkey_s_c_alloc_v3 a = bkey_s_c_to_alloc_v3(k); in bch2_alloc_unpack_v3() 170 static struct bkey_alloc_unpacked bch2_alloc_unpack(struct bkey_s_c k) in bch2_alloc_unpack() argument 174 switch (k.k->type) { in bch2_alloc_unpack() 176 bch2_alloc_unpack_v1(&ret, k); in bch2_alloc_unpack() 179 bch2_alloc_unpack_v2(&ret, k); in bch2_alloc_unpack() [all …]
|
D | fsck.c | 27 return inode->bi_dir == d.k->p.inode && in inode_points_to_dirent() 28 inode->bi_dir_offset == d.k->p.offset; in inode_points_to_dirent() 79 0, k, ({ in bch2_count_inode_sectors() 80 if (bkey_extent_is_allocation(k.k)) in bch2_count_inode_sectors() 81 sectors += k.k->size; in bch2_count_inode_sectors() 96 0, k, ({ in bch2_count_subdirs() 97 if (k.k->type == KEY_TYPE_dirent && in bch2_count_subdirs() 98 bkey_s_c_to_dirent(k).v->d_type == DT_DIR) in bch2_count_subdirs() 121 struct bkey_s_c k; in lookup_first_inode() local 125 BTREE_ITER_all_snapshots, k, ret) { in lookup_first_inode() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
D | display_mode_vba_32.c | 62 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 …]
|
D | display_mode_vba_util_32.c | 468 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.12.1/drivers/gpu/drm/amd/display/dc/dml2/ |
D | display_mode_core.c | 2696 for (dml_uint_t k = 0; k < num_active_planes; ++k) { in PixelClockAdjustmentForProgressiveToInterlaceUnit() local 2697 display_cfg->output.PixelClockBackEnd[k] = display_cfg->timing.PixelClock[k]; in PixelClockAdjustmentForProgressiveToInterlaceUnit() 2698 if (display_cfg->timing.Interlace[k] == 1 && ptoi_supported == true) { in PixelClockAdjustmentForProgressiveToInterlaceUnit() 2699 display_cfg->timing.PixelClock[k] = 2 * display_cfg->timing.PixelClock[k]; in PixelClockAdjustmentForProgressiveToInterlaceUnit() 2851 for (dml_uint_t k = 0; k < p->NumberOfActiveSurfaces; ++k) { in CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport() local 2852 if (p->WritebackEnable[k] == true) { in CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport() 2888 for (dml_uint_t k = 0; k < p->NumberOfActiveSurfaces; ++k) { in CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport() local 2889 s->TotalPixelBW = s->TotalPixelBW + p->DPPPerSurface[k] in CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport() 2890 …dthY[k] * p->BytePerPixelDETY[k] * p->VRatio[k] + p->SwathWidthC[k] * p->BytePerPixelDETC[k] * p->… in CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport() 2893 for (dml_uint_t k = 0; k < p->NumberOfActiveSurfaces; ++k) { in CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport() local [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/ |
D | dml2_core_shared.c | 764 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 …]
|
D | dml2_core_dcn4_calcs.c | 154 for (unsigned int k = 0; k < display_cfg->num_planes; k++) { in get_stream_output_bpp() local 155 …double bpc = (double)display_cfg->stream_descriptors[display_cfg->plane_descriptors[k].stream_inde… in get_stream_output_bpp() 156 …if (display_cfg->stream_descriptors[display_cfg->plane_descriptors[k].stream_index].timing.dsc.ena… in get_stream_output_bpp() 157 …switch (display_cfg->stream_descriptors[display_cfg->plane_descriptors[k].stream_index].output.out… in get_stream_output_bpp() 159 out_bpp[k] = bpc * 3; in get_stream_output_bpp() 162 out_bpp[k] = bpc * 2; in get_stream_output_bpp() 165 out_bpp[k] = bpc * 2; in get_stream_output_bpp() 169 out_bpp[k] = bpc * 1.5; in get_stream_output_bpp() 172 …} else if (display_cfg->stream_descriptors[display_cfg->plane_descriptors[k].stream_index].timing.… in get_stream_output_bpp() 173 …out_bpp[k] = (double)display_cfg->stream_descriptors[display_cfg->plane_descriptors[k].stream_inde… in get_stream_output_bpp() [all …]
|
/linux-6.12.1/drivers/md/bcache/ |
D | extents.c | 33 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.12.1/arch/sparc/kernel/ |
D | termios.c | 33 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.12.1/tools/lib/ |
D | bitmap.c | 10 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.12.1/fs/btrfs/tests/ |
D | extent-map-tests.c | 50 * 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 …]
|