/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
H A D | dcn_calc_auto.c | 32 * This file is gcc-parseable HW gospel, coming straight from HW engineers. 36 * remain as-is as it provides us with a guarantee from HW that it is correct. 42 int k; in scaler_settings_calculation() local 43 for (k = 0; k <= v->number_of_active_planes - 1; k++) { in scaler_settings_calculation() 44 if (v->allow_different_hratio_vratio == dcn_bw_yes) { 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() [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | keyboard.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 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) [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn30/ |
H A D | display_mode_vba_30.c | 34 * This file is gcc-parsable HW gospel, coming straight from HW engineers. 38 * remain as-is as it provides us with a guarantee from HW that it is correct. 723 P = 3 * wx - w; in dscceComputeDelay() 727 L = (ax + wx - 1) / wx; in dscceComputeDelay() 732 Delay = L * wx * (numSlices - 1) + ax + s + lstall + 22; in dscceComputeDelay() 748 // dscc - input deserializer in dscComputeDelay() 752 // dscc - input cdc fifo in dscComputeDelay() 756 // dscc - cdc uncertainty in dscComputeDelay() 758 // dscc - output cdc fifo in dscComputeDelay() 762 // dscc - cdc uncertainty in dscComputeDelay() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn31/ |
H A D | display_mode_vba_31.c | 34 * This file is gcc-parsable HW gospel, coming straight from HW engineers. 38 * remain as-is as it provides us with a guarantee from HW that it is correct. 48 // For DML-C changes that hasn't been propagated to VBA yet 255 unsigned int k, 725 P = 3 * wx - w; in dscceComputeDelay() 729 L = (ax + wx - 1) / wx; in dscceComputeDelay() 734 Delay = L * wx * (numSlices - 1) + ax + s + lstall + 22; in dscceComputeDelay() 750 // dscc - input deserializer in dscComputeDelay() 754 // dscc - input cdc fifo in dscComputeDelay() 758 // dscc - cdc uncertainty in dscComputeDelay() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn314/ |
H A D | display_mode_vba_314.c | 1 // SPDX-License-Identifier: MIT 37 * This file is gcc-parsable HW gospel, coming straight from HW engineers. 41 * remain as-is as it provides us with a guarantee from HW that it is correct. 49 // For DML-C changes that hasn't been propagated to VBA yet 267 unsigned int k, 746 P = 3 * wx - w; in dscceComputeDelay() 750 L = (ax + wx - 1) / wx; in dscceComputeDelay() 755 Delay = L * wx * (numSlices - 1) + ax + s + lstall + 22; in dscceComputeDelay() 771 // dscc - input deserializer in dscComputeDelay() 775 // dscc - input cdc fifo in dscComputeDelay() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
H A D | display_mode_vba_20v2.c | 32 * This file is gcc-parseable HW gospel, coming straight from HW engineers. 36 * remain as-is as it provides us with a guarantee from HW that it is correct. 261 mode_lib->vba.FabricAndDRAMBandwidth = dml_min( in dml20v2_recalculate() 262 mode_lib->vba.DRAMSpeed * mode_lib->vba.NumberOfChannels * mode_lib->vba.DRAMChannelWidth, in dml20v2_recalculate() 263 mode_lib->vba.FabricClock * mode_lib->vba.FabricDatapathToDCNDataReturn) / 1000.0; in dml20v2_recalculate() 279 > mode_lib->vba.DCFCLK * mode_lib->vba.ReturnBusWidth / 4.0) in adjust_ReturnBW() 285 - mode_lib->vba.UrgentLatencyPixelDataOnly in adjust_ReturnBW() 286 / ((mode_lib->vba.ROBBufferSizeInKByte in adjust_ReturnBW() 287 - mode_lib->vba.PixelChunkSizeInKByte) in adjust_ReturnBW() 290 - mode_lib->vba.DCFCLK in adjust_ReturnBW() [all …]
|
H A D | display_mode_vba_20.c | 32 * This file is gcc-parseable HW gospel, coming straight from HW engineers. 36 * remain as-is as it provides us with a guarantee from HW that it is correct. 237 mode_lib->vba.FabricAndDRAMBandwidth = dml_min( in dml20_recalculate() 238 mode_lib->vba.DRAMSpeed * mode_lib->vba.NumberOfChannels * mode_lib->vba.DRAMChannelWidth, in dml20_recalculate() 239 mode_lib->vba.FabricClock * mode_lib->vba.FabricDatapathToDCNDataReturn) / 1000.0; in dml20_recalculate() 255 > mode_lib->vba.DCFCLK * mode_lib->vba.ReturnBusWidth / 4.0) in adjust_ReturnBW() 261 - mode_lib->vba.UrgentLatencyPixelDataOnly in adjust_ReturnBW() 262 / ((mode_lib->vba.ROBBufferSizeInKByte in adjust_ReturnBW() 263 - mode_lib->vba.PixelChunkSizeInKByte) in adjust_ReturnBW() 266 - mode_lib->vba.DCFCLK in adjust_ReturnBW() [all …]
|
/openbmc/qemu/tests/qemu-iotests/tests/ |
H A D | image-fleecing.out | 3 --- Setting up images --- 7 --- Launching VM --- 11 --- Setting up Fleecing Graph --- 16 --- Setting up NBD Export --- 21 --- Sanity Check --- 23 read -P0x5d 0 64k 24 read -P0xd5 1M 64k 25 read -P0xdc 32M 64k 26 read -P0xcd 0x3ff0000 64k 27 read -P0 0x00f8000 32k [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn21/ |
H A D | display_mode_vba_21.c | 35 * This file is gcc-parsable HW gospel, coming straight from HW engineers. 39 * remain as-is as it provides us with a guarantee from HW that it is correct. 546 p = 3 * wx - w; in dscceComputeDelay() 550 l = (ax + wx - 1) / wx; in dscceComputeDelay() 555 Delay = l * wx * (numSlices - 1) + ax + S + lstall + 22; in dscceComputeDelay() 571 // dscc - input deserializer in dscComputeDelay() 575 // dscc - input cdc fifo in dscComputeDelay() 579 // dscc - cdc uncertainty in dscComputeDelay() 581 // dscc - output cdc fifo in dscComputeDelay() 585 // dscc - cdc uncertainty in dscComputeDelay() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
H A D | display_mode_vba_32.c | 41 dml32_CalculateMaxDETAndMinCompressedBufferSize(mode_lib->vba.ConfigReturnBufferSizeInKByte, in dml32_recalculate() 42 mode_lib->vba.ROBBufferSizeInKByte, in dml32_recalculate() 44 false, //mode_lib->vba.override_setting.nomDETInKByteOverrideEnable, in dml32_recalculate() 45 0, //mode_lib->vba.override_setting.nomDETInKByteOverrideValue, in dml32_recalculate() 48 &mode_lib->vba.MaxTotalDETInKByte, &mode_lib->vba.nomDETInKByte, in dml32_recalculate() 49 &mode_lib->vba.MinCompressedBufferSizeInKByte); in dml32_recalculate() 61 struct vba_vars_st *v = &mode_lib->vba; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 62 unsigned int j, k; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() local 75 dml_print("DML::%s: --- START ---\n", __func__); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() 76 dml_print("DML::%s: mode_lib->vba.PrefetchMode = %d\n", __func__, mode_lib->vba.PrefetchMode); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() [all …]
|
H A D | display_mode_vba_util_32.c | 87 p = 3 * wx - w; in dml32_dscceComputeDelay() 91 L = (ax + wx - 1) / wx; in dml32_dscceComputeDelay() 96 Delay = L * wx * (numSlices - 1) + ax + s + lstall + 22; in dml32_dscceComputeDelay() 123 // dscc - input deserializer in dml32_dscComputeDelay() 127 // dscc - input cdc fifo in dml32_dscComputeDelay() 131 // dscc - cdc uncertainty in dml32_dscComputeDelay() 133 // dscc - output cdc fifo in dml32_dscComputeDelay() 137 // dscc - cdc uncertainty in dml32_dscComputeDelay() 139 // dscc - output serializer in dml32_dscComputeDelay() 148 // dscc - input deserializer in dml32_dscComputeDelay() [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 154 | 6 # Copyright (C) 2016-2017 Red Hat, Inc. 44 CLUSTER_SIZE=4k 54 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT 59 # X = non-zero data sector in backing file 60 # - = sector unallocated in whole backing chain 63 # 1. Tail unaligned: 00 00 -- -- 64 # 2. Head unaligned: -- -- 00 00 65 # 3. Both unaligned: -- 00 00 -- 66 # 4. Both, 2 clusters: -- -- -- 00 | 00 -- -- -- 68 $QEMU_IO -c "write -z 0 2k" "$TEST_IMG" | _filter_qemu_io [all …]
|
H A D | 034 | 48 CLUSTER_SIZE=4k 58 $QEMU_IO -c "write -P 0x55 0 1M" "$TEST_IMG" | _filter_qemu_io 62 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT 6G 66 $QEMU_IO -c "write -z 64k 192k" "$TEST_IMG" | _filter_qemu_io 67 $QEMU_IO -c "write -z 513k 13k" "$TEST_IMG" | _filter_qemu_io 73 $QEMU_IO -c "read -P 0x55 0 64k" "$TEST_IMG" | _filter_qemu_io 74 $QEMU_IO -c "read -P 0x0 64k 192k" "$TEST_IMG" | _filter_qemu_io 75 $QEMU_IO -c "read -P 0x55 256k 257k" "$TEST_IMG" | _filter_qemu_io 76 $QEMU_IO -c "read -P 0x0 513k 13k" "$TEST_IMG" | _filter_qemu_io 77 $QEMU_IO -c "read -P 0x55 526k 498k" "$TEST_IMG" | _filter_qemu_io [all …]
|
H A D | 271.out | 8 write -q -P PATTERN 0 1k 10 write -q -P PATTERN 3k 512 12 write -q -P PATTERN 5k 1k 14 write -q -P PATTERN 6k 2k 16 write -q -P PATTERN 8k 6k 18 write -q -P PATTERN 15k 4k 20 write -q -P PATTERN 32k 1k 22 write -q -P PATTERN 63k 4k 25 write -q -z 2k 2k 27 write -q -z 0 64k [all …]
|
H A D | 271 | 6 # Copyright (C) 2019-2020 Igalia, S.L. 35 rm -f "$TEST_IMG.raw" 46 _unsupported_imgopts extended_l2 compat=0.10 cluster_size data_file refcount_bits=1[^0-9] 52 $QEMU_IMG compare "$TEST_IMG" "$TEST_IMG.raw" | grep -v 'Images are identical' 54 grep -v 'No errors were found on the image' 61 expected_alloc="$alloc" # Space-separated list of allocated subcluster indexes 62 expected_zero="$zero" # Space-separated list of zero subcluster indexes 76 printf -v expected_bitmap "%u" $expected_bitmap # Convert to unsigned 88 # len: request length, passed directly to qemu-io (e.g: 256, 4k, 1M, ...) 89 # cmd: the command to pass to qemu-io, must be one of [all …]
|
H A D | 037 | 47 CLUSTER_SIZE=4k 66 for ((i=0;i<=$((sectors - 1));i++)); do 70 echo "$op -P $pattern $((cur_sec * 512)) 512" 78 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT 6G 82 $QEMU_IO -c "write -P 0x77 0 2k" "$TEST_IMG" | _filter_qemu_io 83 $QEMU_IO -c "write -P 0x88 6k 2k" "$TEST_IMG" | _filter_qemu_io 84 $QEMU_IO -c "write -P 0x99 9k 2k" "$TEST_IMG" | _filter_qemu_io 86 $QEMU_IO -c "read -P 0x77 0 2k" "$TEST_IMG" | _filter_qemu_io 88 $QEMU_IO -c "read -P 0x88 6k 2k" "$TEST_IMG" | _filter_qemu_io 90 $QEMU_IO -c "read -P 0x99 9k 2k" "$TEST_IMG" | _filter_qemu_io [all …]
|
/openbmc/linux/drivers/md/bcache/ |
H A D | extents.c | 1 // SPDX-License-Identifier: GPL-2.0 21 * All configuration is done via sysfs; see Documentation/admin-guide/bcache.rst. 33 i->k = bkey_next(i->k); in sort_key_next() 35 if (i->k == i->end) in sort_key_next() 36 *i = iter->data[--iter->used]; in sort_key_next() 42 int64_t c = bkey_cmp(l.k, r.k); in bch_key_sort_cmp() 44 return c ? c > 0 : l.k < r.k; in bch_key_sort_cmp() 47 static bool __ptr_invalid(struct cache_set *c, const struct bkey *k) in __ptr_invalid() argument 51 for (i = 0; i < KEY_PTRS(k); i++) in __ptr_invalid() 52 if (ptr_available(c, k, i)) { in __ptr_invalid() [all …]
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | termios.c | 1 // SPDX-License-Identifier: GPL-2.0 20 v.c_iflag = termios->c_iflag; in kernel_termios_to_user_termio() 21 v.c_oflag = termios->c_oflag; in kernel_termios_to_user_termio() 22 v.c_cflag = termios->c_cflag; in kernel_termios_to_user_termio() 23 v.c_lflag = termios->c_lflag; in kernel_termios_to_user_termio() 24 v.c_line = termios->c_line; in kernel_termios_to_user_termio() 25 memcpy(v.c_cc, termios->c_cc, NCC); in kernel_termios_to_user_termio() 27 v.c_cc[_VMIN] = termios->c_cc[VMIN]; in kernel_termios_to_user_termio() 28 v.c_cc[_VTIME] = termios->c_cc[VTIME]; in kernel_termios_to_user_termio() 33 int user_termios_to_kernel_termios(struct ktermios *k, in user_termios_to_kernel_termios() argument [all …]
|
/openbmc/linux/tools/lib/ |
H A D | bitmap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 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() 47 ret += scnprintf(buf + ret, size - ret, ","); in bitmap_scnprintf() 51 ret += scnprintf(buf + ret, size - ret, "%d", rbot); in bitmap_scnprintf() [all …]
|
/openbmc/linux/fs/btrfs/tests/ |
H A D | extent-map-tests.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include "btrfs-tests.h" 11 #include "../disk-io.h" 12 #include "../block-group.h" 19 write_lock(&em_tree->lock); in free_extent_map_tree() 20 while (!RB_EMPTY_ROOT(&em_tree->map.rb_root)) { in free_extent_map_tree() 21 node = rb_first_cached(&em_tree->map); in free_extent_map_tree() 26 if (refcount_read(&em->refs) != 1) { in free_extent_map_tree() 29 em->start, em->len, em->block_start, in free_extent_map_tree() 30 em->block_len, refcount_read(&em->refs)); in free_extent_map_tree() [all …]
|
/openbmc/qemu/hw/isa/ |
H A D | isa-superio.c | 4 * Copyright (c) 2010-2012 Herve Poussineau 5 * Copyright (c) 2011-2012 Andreas Färber 6 * Copyright (c) 2018 Philippe Mathieu-Daudé 9 * See the COPYING file in the top-level directory. 10 * SPDX-License-Identifier: GPL-2.0-or-later 14 #include "qemu/error-report.h" 22 #include "hw/qdev-properties.h" 24 #include "hw/char/parallel-isa.h" 25 #include "hw/char/serial-isa.h" 31 ISASuperIOClass *k = ISA_SUPERIO_GET_CLASS(sio); in isa_superio_realize() local [all …]
|
/openbmc/linux/crypto/ |
H A D | serpent_generic.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 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]; \ 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 …]
|
/openbmc/linux/drivers/ata/pata_parport/ |
H A D | friq.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * friq.c is a low-level protocol driver for the Freecom "IQ" 10 * CD-ROM drive. It is also used in LS-120 drives by 41 * cont = 0 - access the IDE register file 42 * cont = 1 - access the IDE command set 71 int h, l, k, ph; in friq_read_block_int() local 73 switch (pi->mode) { in friq_read_block_int() 76 for (k = 0; k < count; k++) { in friq_read_block_int() 79 buf[k] = j44(l, h); in friq_read_block_int() 87 for (k = 0; k < count; k++) { in friq_read_block_int() [all …]
|
H A D | frpw.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * (c) 1996-1998 Grant R. Guenther <grant@torque.net> 5 * frpw.c is a low-level protocol driver for the Freecom "Power" parallel port 27 * cont = 0 - access the IDE register file 28 * cont = 1 - access the IDE command set 59 int h, l, k, ph; in frpw_read_block_int() local 61 switch (pi->mode) { in frpw_read_block_int() 64 for (k = 0; k < count; k++) { in frpw_read_block_int() 67 buf[k] = j44(l, h); in frpw_read_block_int() 76 for (k = 0; k < count; k++) { in frpw_read_block_int() [all …]
|
/openbmc/qemu/util/ |
H A D | bitmap.c | 43 long k, lim = bits/BITS_PER_LONG; in slow_bitmap_empty() local 45 for (k = 0; k < lim; ++k) { in slow_bitmap_empty() 46 if (bitmap[k]) { in slow_bitmap_empty() 51 if (bitmap[k] & BITMAP_LAST_WORD_MASK(bits)) { in slow_bitmap_empty() 61 long k, lim = bits/BITS_PER_LONG; in slow_bitmap_full() local 63 for (k = 0; k < lim; ++k) { in slow_bitmap_full() 64 if (~bitmap[k]) { in slow_bitmap_full() 70 if (~bitmap[k] & BITMAP_LAST_WORD_MASK(bits)) { in slow_bitmap_full() 81 long k, lim = bits/BITS_PER_LONG; in slow_bitmap_equal() local 83 for (k = 0; k < lim; ++k) { in slow_bitmap_equal() [all …]
|