/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dml/dcn30/ |
D | display_mode_vba_30.c | 676 // valid bpp = increments of 1/16 of a bit in dscceComputeDelay() 678 // max = such that compression is 1:1 in dscceComputeDelay() 680 …mSlices = number of slices in the horiziontal direction per DSC engine in the set of {1, 2, 3, 4} in dscceComputeDelay() 692 // #all other modes operate at 1 pixel per clock in dscceComputeDelay() 694 pixelsPerClock = 1; in dscceComputeDelay() 698 pixelsPerClock = 1; in dscceComputeDelay() 718 s = 1; in dscceComputeDelay() 726 ax = (a + 2) / 3 + D + 6 + 1; in dscceComputeDelay() 727 L = (ax + wx - 1) / wx; in dscceComputeDelay() 729 lstall = 1; in dscceComputeDelay() [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dml/dcn21/ |
D | display_mode_vba_21.c | 503 // valid bpp = increments of 1/16 of a bit in dscceComputeDelay() 505 // max = such that compression is 1:1 in dscceComputeDelay() 507 …mSlices = number of slices in the horiziontal direction per DSC engine in the set of {1, 2, 3, 4} in dscceComputeDelay() 519 // #all other modes operate at 1 pixel per clock in dscceComputeDelay() 521 pixelsPerClock = 1; in dscceComputeDelay() 539 S = 1; in dscceComputeDelay() 549 ax = (a + 2) / 3 + D + 6 + 1; in dscceComputeDelay() 550 l = (ax + wx - 1) / wx; in dscceComputeDelay() 552 lstall = 1; in dscceComputeDelay() 555 Delay = l * wx * (numSlices - 1) + ax + S + lstall + 22; in dscceComputeDelay() [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
D | display_mode_vba_util_32.c | 41 // valid bpp = increments of 1/16 of a bit in dml32_dscceComputeDelay() 43 // max = such that compression is 1:1 in dml32_dscceComputeDelay() 46 …mSlices = number of slices in the horiziontal direction per DSC engine in the set of {1, 2, 3, 4} in dml32_dscceComputeDelay() 60 // #all other modes operate at 1 pixel per clock in dml32_dscceComputeDelay() 62 pixelsPerClock = 1; in dml32_dscceComputeDelay() 82 s = 1; in dml32_dscceComputeDelay() 90 ax = (a + 2) / 3 + D + 6 + 1; in dml32_dscceComputeDelay() 91 L = (ax + wx - 1) / wx; in dml32_dscceComputeDelay() 93 lstall = 1; in dml32_dscceComputeDelay() 96 Delay = L * wx * (numSlices - 1) + ax + s + lstall + 22; in dml32_dscceComputeDelay() [all …]
|
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 …]
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
D | display_mode_vba_20v2.c | 332 // valid bpp = increments of 1/16 of a bit in dscceComputeDelay() 334 // max = such that compression is 1:1 in dscceComputeDelay() 336 …mSlices = number of slices in the horiziontal direction per DSC engine in the set of {1, 2, 3, 4} in dscceComputeDelay() 348 // #all other modes operate at 1 pixel per clock in dscceComputeDelay() 350 pixelsPerClock = 1; in dscceComputeDelay() 368 s = 1; in dscceComputeDelay() 378 ax = (a + 2) / 3 + D + 6 + 1; in dscceComputeDelay() 379 l = (ax + wx - 1) / wx; in dscceComputeDelay() 381 lstall = 1; in dscceComputeDelay() 384 Delay = l * wx * (numSlices - 1) + ax + s + lstall + 22; in dscceComputeDelay() [all …]
|
D | display_mode_vba_20.c | 308 // valid bpp = increments of 1/16 of a bit in dscceComputeDelay() 310 // max = such that compression is 1:1 in dscceComputeDelay() 312 …mSlices = number of slices in the horiziontal direction per DSC engine in the set of {1, 2, 3, 4} in dscceComputeDelay() 324 // #all other modes operate at 1 pixel per clock in dscceComputeDelay() 326 pixelsPerClock = 1; in dscceComputeDelay() 344 s = 1; in dscceComputeDelay() 354 ax = (a + 2) / 3 + D + 6 + 1; in dscceComputeDelay() 355 l = (ax + wx - 1) / wx; in dscceComputeDelay() 357 lstall = 1; in dscceComputeDelay() 360 Delay = l * wx * (numSlices - 1) + ax + s + lstall + 22; in dscceComputeDelay() [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dml/dcn314/ |
D | display_mode_vba_314.c | 57 // Delay in DCFCLK from ARB to DET (1st num is ARB to SDPIF, 2nd number is SDPIF to DET) 267 unsigned int k, 700 // valid bpp = increments of 1/16 of a bit in dscceComputeDelay() 702 // max = such that compression is 1:1 in dscceComputeDelay() 704 …mSlices = number of slices in the horiziontal direction per DSC engine in the set of {1, 2, 3, 4} in dscceComputeDelay() 716 pixelsPerClock = 1; in dscceComputeDelay() 719 // #all other modes operate at 1 pixel per clock in dscceComputeDelay() 721 pixelsPerClock = 1; in dscceComputeDelay() 741 s = 1; in dscceComputeDelay() 749 ax = (a + 2) / 3 + D + 6 + 1; in dscceComputeDelay() [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dml/dcn31/ |
D | display_mode_vba_31.c | 56 // Delay in DCFCLK from ARB to DET (1st num is ARB to SDPIF, 2nd number is SDPIF to DET) 255 unsigned int k, 679 // valid bpp = increments of 1/16 of a bit in dscceComputeDelay() 681 // max = such that compression is 1:1 in dscceComputeDelay() 683 …mSlices = number of slices in the horiziontal direction per DSC engine in the set of {1, 2, 3, 4} in dscceComputeDelay() 695 pixelsPerClock = 1; in dscceComputeDelay() 698 // #all other modes operate at 1 pixel per clock in dscceComputeDelay() 700 pixelsPerClock = 1; in dscceComputeDelay() 720 s = 1; in dscceComputeDelay() 728 ax = (a + 2) / 3 + D + 6 + 1; in dscceComputeDelay() [all …]
|
/Linux-v6.6/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-v6.6/drivers/ata/pata_parport/ |
D | epat.c | 32 * cont = 1 IDE control registers 43 case 1: in epat_write_regr() 45 w0(0x60+r); w2(1); w0(val); w2(4); in epat_write_regr() 64 w0(r); w2(1); w2(3); in epat_read_regr() 67 case 1: in epat_read_regr() 68 w0(0x40+r); w2(1); w2(4); in epat_read_regr() 72 w0(0x20+r); w2(1); w2(0x25); in epat_read_regr() 82 return -1; /* never gets here */ in epat_read_regr() 87 int k, ph, a, b; in epat_read_block() local 92 w0(7); w2(1); w2(3); w0(0xff); in epat_read_block() [all …]
|
D | epia.c | 22 * mode codes: 0 nybble reads on port 1, 8-bit writes 23 * 1 5/3 reads on ports 1 & 2, 8-bit writes 35 * cont = 1 IDE control registers 48 w0(r); w2(1); w2(3); w0(r); in epia_read_regr() 49 a = r1(); w2(1); b = r1(); w2(4); in epia_read_regr() 51 case 1: in epia_read_regr() 53 w0(r); w2(1); w0(r & 0x37); in epia_read_regr() 59 w0(r); w2(1); w2(0X21); w2(0x23); in epia_read_regr() 69 return -1; in epia_read_regr() 80 case 1: in epia_write_regr() [all …]
|
D | frpw.c | 28 * cont = 1 - access the IDE command set 59 int h, l, k, ph; in frpw_read_block_int() local 64 for (k = 0; k < count; k++) { in frpw_read_block_int() 67 buf[k] = j44(l, h); in frpw_read_block_int() 72 case 1: in frpw_read_block_int() 76 for (k = 0; k < count; k++) { in frpw_read_block_int() 78 buf[k] = r0(); in frpw_read_block_int() 86 for (k = 0; k < count; k++) in frpw_read_block_int() 87 buf[k] = r4(); in frpw_read_block_int() 94 for (k = 0; k < count - 2; k++) in frpw_read_block_int() [all …]
|
D | friq.c | 42 * cont = 1 - access the IDE command set 71 int h, l, k, ph; in friq_read_block_int() local 76 for (k = 0; k < count; k++) { in friq_read_block_int() 79 buf[k] = j44(l, h); in friq_read_block_int() 83 case 1: in friq_read_block_int() 87 for (k = 0; k < count; k++) { in friq_read_block_int() 89 buf[k] = r0(); in friq_read_block_int() 96 for (k = 0; k < count - 2; k++) in friq_read_block_int() 97 buf[k] = r4(); in friq_read_block_int() 100 buf[count - 1] = r4(); in friq_read_block_int() [all …]
|
D | kbic.c | 23 #define r12w() (delay_p, inw(pi->port + 1) & 0xffff) 31 * cont = 1 - access the IDE command set 43 w0(regr | 0x18 | s); w2(4); w2(6); w2(4); w2(1); w0(8); in kbic_read_regr() 46 case 1: in kbic_read_regr() 62 return -1; in kbic_read_regr() 71 case 1: in kbic_write_regr() 128 int k, a, b; in kbic_read_block() local 133 for (k = 0; k < count / 2; k++) { in kbic_read_block() 134 w2(1); w0(8); in kbic_read_block() 138 buf[2 * k] = j44(a, b); in kbic_read_block() [all …]
|
D | dstr.c | 20 * 1 8-bit reads and writes 27 ((b << 1) & 0x70) | ((~b) & 0x80)) 35 * cont = 1 - access the IDE command set 49 w0(1); in dstr_read_regr() 56 case 1: in dstr_read_regr() 66 return -1; in dstr_read_regr() 77 w0(1); in dstr_write_regr() 82 case 1: in dstr_write_regr() 117 int k, a, b; in dstr_read_block() local 128 for (k = 0; k < count; k++) { in dstr_read_block() [all …]
|
D | on26.c | 20 * 1 8-bit reads and writes 40 * cont = 1 - access the IDE command set 47 r = (regr << 2) + 1 + cont; in on26_read_regr() 51 w0(1); P1; w0(r); P2; w0(0); P1; in on26_read_regr() 56 case 1: in on26_read_regr() 57 w0(1); P1; w0(r); P2; w0(0); P1; in on26_read_regr() 63 w3(1); w3(1); w2(5); w4(r); w2(4); in on26_read_regr() 69 return -1; in on26_read_regr() 74 int r = (regr << 2) + 1 + cont; in on26_write_regr() 78 case 1: in on26_write_regr() [all …]
|
/Linux-v6.6/include/uapi/linux/ |
D | keyboard.h | 10 #define KG_ALTGR 1 30 #define KT_FN 1 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) [all …]
|
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/ |
D | hashmap.c | 14 static size_t hash_fn(long k, void *ctx) in hash_fn() argument 16 return k; in hash_fn() 26 size_t r = 1; in next_pow_2() 29 r <<= 1; in next_pow_2() 38 r <<= 1; in exp_cap() 56 long oldk, k = i; in test_hashmap_generic() local 59 err = hashmap__update(map, k, v, &oldk, &oldv); in test_hashmap_generic() 65 err = hashmap__add(map, k, v); in test_hashmap_generic() 67 err = hashmap__set(map, k, v, &oldk, &oldv); in test_hashmap_generic() 69 "unexpected k/v: %ld=%ld\n", oldk, oldv)) in test_hashmap_generic() [all …]
|
/Linux-v6.6/drivers/md/bcache/ |
D | bset.c | 23 struct bkey *k, *next; in bch_dump_bset() local 25 for (k = i->start; k < bset_bkey_last(i); k = next) { in bch_dump_bset() 26 next = bkey_next(k); in bch_dump_bset() 29 (unsigned int) ((u64 *) k - i->d), i->keys); in bch_dump_bset() 32 b->ops->key_dump(b, k); in bch_dump_bset() 34 pr_cont("%llu:%llu\n", KEY_INODE(k), KEY_OFFSET(k)); in bch_dump_bset() 37 bkey_cmp(k, b->ops->is_extents ? in bch_dump_bset() 58 struct bkey *k; in __bch_count_data() local 61 for_each_key(b, k, &iter) in __bch_count_data() 62 ret += KEY_SIZE(k); in __bch_count_data() [all …]
|
/Linux-v6.6/tools/lib/ |
D | list_sort.c | 115 * - Returning a boolean 0/1. 129 * 2:1 balanced merges. Given two pending sublists of size 2^k, they are 130 * merged to a size-2^(k+1) list as soon as we have 2^k following elements. 132 * Thus, it will avoid cache thrashing as long as 3*2^k elements can 141 * Each time we increment "count", we set one bit (bit k) and clear 142 * bits k-1 .. 0. Each time this happens (except the very first time 143 * for each bit, when count increments to 2^k), we merge two lists of 144 * size 2^k into one list of size 2^(k+1). 147 * 2^k, which is when we have 2^k elements pending in smaller lists, 148 * so it's safe to merge away two lists of size 2^k. [all …]
|
/Linux-v6.6/lib/ |
D | list_sort.c | 116 * - Returning a boolean 0/1. 130 * 2:1 balanced merges. Given two pending sublists of size 2^k, they are 131 * merged to a size-2^(k+1) list as soon as we have 2^k following elements. 133 * Thus, it will avoid cache thrashing as long as 3*2^k elements can 142 * Each time we increment "count", we set one bit (bit k) and clear 143 * bits k-1 .. 0. Each time this happens (except the very first time 144 * for each bit, when count increments to 2^k), we merge two lists of 145 * size 2^k into one list of size 2^(k+1). 148 * 2^k, which is when we have 2^k elements pending in smaller lists, 149 * so it's safe to merge away two lists of size 2^k. [all …]
|
/Linux-v6.6/fs/btrfs/tests/ |
D | extent-map-tests.c | 26 if (refcount_read(&em->refs) != 1) { in free_extent_map_tree() 32 refcount_set(&em->refs, 1); in free_extent_map_tree() 44 * extent [0, 16K), followed by another file extent [16K, 20K), two dio reads 45 * are entering btrfs_get_extent() concurrently, t1 is reading [8K, 16K), t2 is 46 * reading [0, 8K) 51 * -> add_extent_mapping(0, 16K) 53 * ->add_extent_mapping(0, 16K) 70 /* Add [0, 16K) */ in test_case_1() 79 test_err("cannot add extent range [0, 16K)"); in test_case_1() 84 /* Add [16K, 20K) following [0, 16K) */ in test_case_1() [all …]
|
/Linux-v6.6/lib/crypto/mpi/ |
D | mpi-mod.c | 16 int k; member 42 ctx = kcalloc(1, sizeof(*ctx), GFP_KERNEL); in mpi_barrett_init() 48 ctx->m_copied = 1; in mpi_barrett_init() 52 ctx->k = mpi_get_nlimbs(m); in mpi_barrett_init() 53 tmp = mpi_alloc(ctx->k + 1); in mpi_barrett_init() 55 /* Barrett precalculation: y = floor(b^(2k) / m). */ in mpi_barrett_init() 56 mpi_set_ui(tmp, 1); in mpi_barrett_init() 57 mpi_lshift_limbs(tmp, 2 * ctx->k); in mpi_barrett_init() 61 ctx->r1 = mpi_alloc(2 * ctx->k + 1); in mpi_barrett_init() 62 ctx->r2 = mpi_alloc(2 * ctx->k + 1); in mpi_barrett_init() [all …]
|
/Linux-v6.6/crypto/ |
D | serpent_generic.c | 25 ({ b ^= d; b ^= c; b ^= a; b ^= PHI ^ i; b = rol32(b, 11); k[j] = b; }) 28 ({ x0 = k[i]; x1 = k[i+1]; x2 = k[i+2]; x3 = k[i+3]; }) 31 ({ k[i] = x0; k[i+1] = x1; k[i+2] = x2; k[i+3] = x3; }) 36 #define K(x0, x1, x2, x3, i) ({ \ macro 37 x3 ^= k[4*(i)+3]; x2 ^= k[4*(i)+2]; \ 38 x1 ^= k[4*(i)+1]; x0 ^= k[4*(i)+0]; \ 45 x1 = rol32(x1, 1); x3 ^= x4; \ 48 x0 ^= x3; x2 ^= x4; x3 ^= k[4*i+3]; \ 49 x1 ^= k[4*i+1]; x0 = rol32(x0, 5); x2 = rol32(x2, 22);\ 50 x0 ^= k[4*i+0]; x2 ^= k[4*i+2]; \ [all …]
|
/Linux-v6.6/drivers/clk/sunxi-ng/ |
D | ccu_nk.c | 15 unsigned long k, min_k, max_k; member 40 nk->k = best_k; in ccu_nk_find_best() 71 unsigned long rate, n, k; in ccu_nk_recalc_rate() local 77 n &= (1 << nk->n.width) - 1; in ccu_nk_recalc_rate() 82 k = reg >> nk->k.shift; in ccu_nk_recalc_rate() 83 k &= (1 << nk->k.width) - 1; in ccu_nk_recalc_rate() 84 k += nk->k.offset; in ccu_nk_recalc_rate() 85 if (!k) in ccu_nk_recalc_rate() 86 k++; in ccu_nk_recalc_rate() 88 rate = parent_rate * n * k; in ccu_nk_recalc_rate() [all …]
|