/linux-6.6.21/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.6.21/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.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn31/ |
D | display_mode_vba_31.c | 255 unsigned int k, 2001 unsigned int j, k; local 2033 for (k = 0; k < v->NumberOfActivePlanes; ++k) { 2034 if (v->WritebackEnable[k]) { 2038 v->WritebackPixelFormat[k], 2039 v->PixelClock[k], 2040 v->WritebackHRatio[k], 2041 v->WritebackVRatio[k], 2042 v->WritebackHTaps[k], 2043 v->WritebackVTaps[k], [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn314/ |
D | display_mode_vba_314.c | 267 unsigned int k, 2021 unsigned int j, k; local 2054 for (k = 0; k < v->NumberOfActivePlanes; ++k) { 2055 if (v->WritebackEnable[k]) { 2059 v->WritebackPixelFormat[k], 2060 v->PixelClock[k], 2061 v->WritebackHRatio[k], 2062 v->WritebackVRatio[k], 2063 v->WritebackHTaps[k], 2064 v->WritebackVTaps[k], [all …]
|
/linux-6.6.21/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.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
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 …]
|
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-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
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 …]
|
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 …]
|
/linux-6.6.21/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() 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() 54 size_t bucket = PTR_BUCKET_NR(c, k, i); in __ptr_invalid() 55 size_t r = bucket_remainder(c, PTR_OFFSET(k, i)); in __ptr_invalid() 57 if (KEY_SIZE(k) + r > c->cache->sb.bucket_size || in __ptr_invalid() [all …]
|
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-6.6.21/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.6.21/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.6.21/drivers/ata/pata_parport/ |
D | epat.c | 87 int k, ph, a, b; in epat_read_block() local 94 for (k = 0; k < count; k++) { in epat_read_block() 95 if (k == count-1) in epat_read_block() 103 buf[k] = j44(a, b); in epat_read_block() 112 for (k = 0; k < count; k++) { in epat_read_block() 113 if (k == count - 1) in epat_read_block() 117 buf[k] = j53(a, b); in epat_read_block() 126 for (k = 0; k < count - 1; k++) { in epat_read_block() 128 buf[k] = r0(); in epat_read_block() 138 for (k = 0; k < count - 1; k++) in epat_read_block() [all …]
|
D | epia.c | 129 int k, ph, a, b; in epia_read_block() local 135 for (k = 0; k < count; k++) { in epia_read_block() 138 buf[k] = j44(a, b); in epia_read_block() 147 for (k = 0; k < count; k++) { in epia_read_block() 150 buf[k] = j53(a, b); in epia_read_block() 158 for (k = 0; k < count; k++) { in epia_read_block() 160 buf[k] = r0(); in epia_read_block() 169 for (k = 0; k < count; k++) in epia_read_block() 170 buf[k] = r4(); in epia_read_block() 177 for (k = 0; k < count / 2; k++) in epia_read_block() [all …]
|
D | friq.c | 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() 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() 105 for (k = 0; k < count / 2 - 1; k++) in friq_read_block_int() 106 ((u16 *)buf)[k] = r4w(); in friq_read_block_int() 114 for (k = 0; k < count / 4 - 1; k++) in friq_read_block_int() [all …]
|
D | frpw.c | 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() 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() 95 buf[k] = r4(); in frpw_read_block_int() 104 for (k = 0; k < count / 2 - 1; k++) in frpw_read_block_int() [all …]
|
D | kbic.c | 128 int k, a, b; in kbic_read_block() local 133 for (k = 0; k < count / 2; k++) { in kbic_read_block() 138 buf[2 * k] = j44(a, b); in kbic_read_block() 143 buf[2 * k + 1] = j44(a, b); in kbic_read_block() 149 for (k = 0; k < count / 4; k++) { in kbic_read_block() 153 buf[4 * k] = j53(r12w()); in kbic_read_block() 155 buf[4 * k + 1] = j53(r12w()); in kbic_read_block() 157 buf[4 * k + 3] = j53(r12w()); in kbic_read_block() 159 buf[4 * k + 2] = j53(r12w()); in kbic_read_block() 165 for (k = 0; k < count / 2; k++) { in kbic_read_block() [all …]
|
D | dstr.c | 117 int k, a, b; in dstr_read_block() local 128 for (k = 0; k < count; k++) { in dstr_read_block() 131 buf[k] = j44(a, b); in dstr_read_block() 136 for (k = 0; k < count; k++) { in dstr_read_block() 138 buf[k] = r0(); in dstr_read_block() 145 for (k = 0; k < count; k++) in dstr_read_block() 146 buf[k] = r4(); in dstr_read_block() 151 for (k = 0; k < count / 2; k++) in dstr_read_block() 152 ((u16 *)buf)[k] = r4w(); in dstr_read_block() 157 for (k = 0; k < count / 4; k++) in dstr_read_block() [all …]
|
D | on26.c | 193 int k, a, b; in on26_read_block() local 199 for (k = 0; k < count; k++) { in on26_read_block() 202 buf[k] = j44(a, b); in on26_read_block() 209 for (k = 0; k < count / 2; k++) { in on26_read_block() 210 w2(0x26); buf[2 * k] = r0(); in on26_read_block() 211 w2(0x24); buf[2 * k + 1] = r0(); in on26_read_block() 219 for (k = 0; k < count; k++) in on26_read_block() 220 buf[k] = r4(); in on26_read_block() 227 for (k = 0; k < count / 2; k++) in on26_read_block() 228 ((u16 *)buf)[k] = r4w(); in on26_read_block() [all …]
|
/linux-6.6.21/lib/ |
D | bitmap.c | 51 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_equal() local 52 for (k = 0; k < lim; ++k) in __bitmap_equal() 53 if (bitmap1[k] != bitmap2[k]) in __bitmap_equal() 57 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_equal() 69 unsigned int k, lim = bits / BITS_PER_LONG; in __bitmap_or_equal() local 72 for (k = 0; k < lim; ++k) { in __bitmap_or_equal() 73 if ((bitmap1[k] | bitmap2[k]) != bitmap3[k]) in __bitmap_or_equal() 80 tmp = (bitmap1[k] | bitmap2[k]) ^ bitmap3[k]; in __bitmap_or_equal() 86 unsigned int k, lim = BITS_TO_LONGS(bits); in __bitmap_complement() local 87 for (k = 0; k < lim; ++k) in __bitmap_complement() [all …]
|
D | klist.c | 84 void klist_init(struct klist *k, void (*get)(struct klist_node *), in klist_init() argument 87 INIT_LIST_HEAD(&k->k_list); in klist_init() 88 spin_lock_init(&k->k_lock); in klist_init() 89 k->get = get; in klist_init() 90 k->put = put; in klist_init() 94 static void add_head(struct klist *k, struct klist_node *n) in add_head() argument 96 spin_lock(&k->k_lock); in add_head() 97 list_add(&n->n_node, &k->k_list); in add_head() 98 spin_unlock(&k->k_lock); in add_head() 101 static void add_tail(struct klist *k, struct klist_node *n) in add_tail() argument [all …]
|
/linux-6.6.21/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; }) 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]; \ 54 x0 ^= k[4*i+0]; x1 ^= k[4*i+1]; x2 ^= k[4*i+2]; \ 55 x3 ^= k[4*i+3]; x0 = ror32(x0, 5); x2 = ror32(x2, 22);\ [all …]
|
/linux-6.6.21/net/ceph/ |
D | ceph_hash.c | 25 const unsigned char *k = (const unsigned char *)str; in ceph_str_hash_rjenkins() local 37 a = a + (k[0] + ((__u32)k[1] << 8) + ((__u32)k[2] << 16) + in ceph_str_hash_rjenkins() 38 ((__u32)k[3] << 24)); in ceph_str_hash_rjenkins() 39 b = b + (k[4] + ((__u32)k[5] << 8) + ((__u32)k[6] << 16) + in ceph_str_hash_rjenkins() 40 ((__u32)k[7] << 24)); in ceph_str_hash_rjenkins() 41 c = c + (k[8] + ((__u32)k[9] << 8) + ((__u32)k[10] << 16) + in ceph_str_hash_rjenkins() 42 ((__u32)k[11] << 24)); in ceph_str_hash_rjenkins() 44 k = k + 12; in ceph_str_hash_rjenkins() 52 c = c + ((__u32)k[10] << 24); in ceph_str_hash_rjenkins() 55 c = c + ((__u32)k[9] << 16); in ceph_str_hash_rjenkins() [all …]
|
/linux-6.6.21/tools/include/linux/ |
D | jhash.h | 73 const u8 *k = key; in jhash() local 80 a += __get_unaligned_cpu32(k); in jhash() 81 b += __get_unaligned_cpu32(k + 4); in jhash() 82 c += __get_unaligned_cpu32(k + 8); in jhash() 85 k += 12; in jhash() 90 case 12: c += (u32)k[11]<<24; in jhash() 91 case 11: c += (u32)k[10]<<16; in jhash() 92 case 10: c += (u32)k[9]<<8; in jhash() 93 case 9: c += k[8]; in jhash() 94 case 8: b += (u32)k[7]<<24; in jhash() [all …]
|