Home
last modified time | relevance | path

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

12345678910>>...125

/Linux-v5.10/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-v5.10/drivers/gpu/drm/amd/display/dc/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-v5.10/drivers/gpu/drm/amd/display/dc/dml/dcn30/
Ddisplay_mode_vba_30.c1921 unsigned int j, k; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() local
1948 for (k = 0; k < v->NumberOfActivePlanes; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1949 if (v->WritebackEnable[k]) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1952 v->WritebackPixelFormat[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1953 v->PixelClock[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1954 v->WritebackHRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1955 v->WritebackVRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1956 v->WritebackHTaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1957 v->WritebackVTaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1958 v->WritebackSourceWidth[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dml/dcn20/
Ddisplay_mode_vba_20v2.c1148 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 …]
Ddisplay_mode_vba_20.c1088 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-v5.10/drivers/gpu/drm/amd/display/dc/dml/dcn21/
Ddisplay_mode_vba_21.c1467 unsigned int j, k; in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation() local
1476 for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1477 if (mode_lib->vba.WritebackEnable[k]) { in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1482 mode_lib->vba.WritebackPixelFormat[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1483 mode_lib->vba.PixelClock[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1484 mode_lib->vba.WritebackHRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1485 mode_lib->vba.WritebackVRatio[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1486 mode_lib->vba.WritebackLumaHTaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1487 mode_lib->vba.WritebackLumaVTaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1488 mode_lib->vba.WritebackChromaHTaps[k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
[all …]
/Linux-v5.10/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()
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()
53 struct cache *ca = PTR_CACHE(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()
[all …]
Dbset.c23 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-v5.10/tools/lib/
Dbitmap.c10 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-v5.10/Documentation/devicetree/bindings/
Dtrivial-devices.yaml151 # Microchip 7-bit Single I2C Digital POT (5k)
153 # Microchip 7-bit Single I2C Digital POT (10k)
155 # Microchip 7-bit Single I2C Digital POT (50k)
157 # Microchip 7-bit Single I2C Digital POT (100k)
159 # Microchip 7-bit Single I2C Digital POT (5k)
161 # Microchip 7-bit Single I2C Digital POT (10k)
163 # Microchip 7-bit Single I2C Digital POT (50k)
165 # Microchip 7-bit Single I2C Digital POT (100k)
167 # Microchip 7-bit Single I2C Digital POT (5k)
169 # Microchip 7-bit Single I2C Digital POT (10k)
[all …]
/Linux-v5.10/arch/sparc/include/asm/
Dtermios.h67 #define user_termios_to_kernel_termios(k, u) \ argument
70 err = get_user((k)->c_iflag, &(u)->c_iflag); \
71 err |= get_user((k)->c_oflag, &(u)->c_oflag); \
72 err |= get_user((k)->c_cflag, &(u)->c_cflag); \
73 err |= get_user((k)->c_lflag, &(u)->c_lflag); \
74 err |= get_user((k)->c_line, &(u)->c_line); \
75 err |= copy_from_user((k)->c_cc, (u)->c_cc, NCCS); \
76 if ((k)->c_lflag & ICANON) { \
77 err |= get_user((k)->c_cc[VEOF], &(u)->c_cc[VEOF]); \
78 err |= get_user((k)->c_cc[VEOL], &(u)->c_cc[VEOL]); \
[all …]
/Linux-v5.10/crypto/
Dserpent_generic.c30 ({ b ^= d; b ^= c; b ^= a; b ^= PHI ^ i; b = rol32(b, 11); k[j] = b; })
33 ({ x0 = k[i]; x1 = k[i+1]; x2 = k[i+2]; x3 = k[i+3]; })
36 ({ k[i] = x0; k[i+1] = x1; k[i+2] = x2; k[i+3] = x3; })
41 #define K(x0, x1, x2, x3, i) ({ \ macro
42 x3 ^= k[4*(i)+3]; x2 ^= k[4*(i)+2]; \
43 x1 ^= k[4*(i)+1]; x0 ^= k[4*(i)+0]; \
53 x0 ^= x3; x2 ^= x4; x3 ^= k[4*i+3]; \
54 x1 ^= k[4*i+1]; x0 = rol32(x0, 5); x2 = rol32(x2, 22);\
55 x0 ^= k[4*i+0]; x2 ^= k[4*i+2]; \
59 x0 ^= k[4*i+0]; x1 ^= k[4*i+1]; x2 ^= k[4*i+2]; \
[all …]
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/
Dhashmap.c13 static size_t hash_fn(const void *k, void *ctx) in hash_fn() argument
15 return (long)k; in hash_fn()
56 const void *oldk, *k = (const void *)(long)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: %p=%p\n", oldk, oldv)) in test_hashmap_generic()
73 if (CHECK(err, "elem_add", "failed to add k/v %ld = %ld: %d\n", in test_hashmap_generic()
74 (long)k, (long)v, err)) in test_hashmap_generic()
77 if (CHECK(!hashmap__find(map, k, &oldv), "elem_find", in test_hashmap_generic()
[all …]
/Linux-v5.10/drivers/block/paride/
Depat.c99 { int k, ph, a, b; in epat_read_block() local
105 for(k=0;k<count;k++) { in epat_read_block()
106 if (k == count-1) w0(0xfd); in epat_read_block()
110 buf[k] = j44(a,b); in epat_read_block()
118 for(k=0;k<count;k++) { in epat_read_block()
119 if (k == count-1) w0(0xfd); in epat_read_block()
122 buf[k] = j53(a,b); in epat_read_block()
130 for(k=0;k<count-1;k++) { in epat_read_block()
132 buf[k] = r0(); in epat_read_block()
140 for(k=0;k<count-1;k++) buf[k] = r4(); in epat_read_block()
[all …]
Dfriq.c79 { int h, l, k, ph; in friq_read_block_int() local
84 for (k=0;k<count;k++) { in friq_read_block_int()
87 buf[k] = j44(l,h); in friq_read_block_int()
95 for (k=0;k<count;k++) { in friq_read_block_int()
97 buf[k] = r0(); in friq_read_block_int()
104 for (k=0;k<count-2;k++) buf[k] = r4(); in friq_read_block_int()
112 for (k=0;k<(count/2)-1;k++) ((u16 *)buf)[k] = r4w(); in friq_read_block_int()
120 for (k=0;k<(count/4)-1;k++) ((u32 *)buf)[k] = r4l(); in friq_read_block_int()
139 { int k; in friq_write_block() local
145 for (k=0;k<count;k++) { in friq_write_block()
[all …]
Depia.c138 { int k, ph, a, b; in epia_read_block() local
144 for (k=0;k<count;k++) { in epia_read_block()
147 buf[k] = j44(a,b); in epia_read_block()
156 for (k=0;k<count;k++) { in epia_read_block()
159 buf[k] = j53(a,b); in epia_read_block()
167 for (k=0;k<count;k++) { in epia_read_block()
169 buf[k] = r0(); in epia_read_block()
177 for (k=0;k<count;k++) buf[k] = r4(); in epia_read_block()
183 for (k=0;k<count/2;k++) ((u16 *)buf)[k] = r4w(); in epia_read_block()
189 for (k=0;k<count/4;k++) ((u32 *)buf)[k] = r4l(); in epia_read_block()
[all …]
Dfrpw.c76 { int h, l, k, ph; in frpw_read_block_int() local
81 for (k=0;k<count;k++) { in frpw_read_block_int()
84 buf[k] = j44(l,h); in frpw_read_block_int()
92 for (k=0;k<count;k++) { in frpw_read_block_int()
94 buf[k] = r0(); in frpw_read_block_int()
101 for (k=0;k<count;k++) buf[k] = r4(); in frpw_read_block_int()
107 for (k=0;k<count-2;k++) buf[k] = r4(); in frpw_read_block_int()
115 for (k=0;k<(count/2)-1;k++) ((u16 *)buf)[k] = r4w(); in frpw_read_block_int()
123 for (k=0;k<(count/4)-1;k++) ((u32 *)buf)[k] = r4l(); in frpw_read_block_int()
142 { int k; in frpw_write_block() local
[all …]
Ddstr.c117 { int k, a, b; in dstr_read_block() local
125 case 0: for (k=0;k<count;k++) { in dstr_read_block()
128 buf[k] = j44(a,b); in dstr_read_block()
133 for (k=0;k<count;k++) { in dstr_read_block()
134 w2(0x26); buf[k] = r0(); w2(0x24); in dstr_read_block()
140 for (k=0;k<count;k++) buf[k] = r4(); in dstr_read_block()
145 for (k=0;k<count/2;k++) ((u16 *)buf)[k] = r4w(); in dstr_read_block()
150 for (k=0;k<count/4;k++) ((u32 *)buf)[k] = r4l(); in dstr_read_block()
159 { int k; in dstr_write_block() local
168 case 1: for (k=0;k<count;k++) { in dstr_write_block()
[all …]
Dkbic.c136 { int k, a, b; in kbic_read_block() local
141 for (k=0;k<count/2;k++) { in kbic_read_block()
144 buf[2*k] = j44(a,b); in kbic_read_block()
147 buf[2*k+1] = j44(a,b); in kbic_read_block()
153 for (k=0;k<count/4;k++) { in kbic_read_block()
156 w0(8); buf[4*k] = j53(r12w()); in kbic_read_block()
157 w0(0xb8); buf[4*k+1] = j53(r12w()); in kbic_read_block()
159 buf[4*k+3] = j53(r12w()); in kbic_read_block()
160 w0(8); buf[4*k+2] = j53(r12w()); in kbic_read_block()
166 for (k=0;k<count/2;k++) { in kbic_read_block()
[all …]
/Linux-v5.10/fs/btrfs/tests/
Dextent-map-tests.c41 * extent [0, 16K), followed by another file extent [16K, 20K), two dio reads
42 * are entering btrfs_get_extent() concurrently, t1 is reading [8K, 16K), t2 is
43 * reading [0, 8K)
48 * -> add_extent_mapping(0, 16K)
50 * ->add_extent_mapping(0, 16K)
67 /* Add [0, 16K) */ in test_case_1()
76 test_err("cannot add extent range [0, 16K)"); in test_case_1()
81 /* Add [16K, 20K) following [0, 16K) */ in test_case_1()
97 test_err("cannot add extent range [16K, 20K)"); in test_case_1()
109 /* Add [0, 8K), should return [0, 16K) instead. */ in test_case_1()
[all …]
/Linux-v5.10/drivers/net/ethernet/neterion/vxge/
Dvxge-ethtool.c232 int j, k; in vxge_get_ethtool_stats() local
298 for (k = 0; k < vdev->no_of_vpath; k++) { in vxge_get_ethtool_stats()
301 vpath = &vdev->vpaths[k]; in vxge_get_ethtool_stats()
375 for (k = 0; k < vdev->max_config_port; k++) { in vxge_get_ethtool_stats()
376 *ptr++ = xmac_stats->aggr_stats[k].tx_frms; in vxge_get_ethtool_stats()
377 *ptr++ = xmac_stats->aggr_stats[k].tx_data_octets; in vxge_get_ethtool_stats()
378 *ptr++ = xmac_stats->aggr_stats[k].tx_mcast_frms; in vxge_get_ethtool_stats()
379 *ptr++ = xmac_stats->aggr_stats[k].tx_bcast_frms; in vxge_get_ethtool_stats()
380 *ptr++ = xmac_stats->aggr_stats[k].tx_discarded_frms; in vxge_get_ethtool_stats()
381 *ptr++ = xmac_stats->aggr_stats[k].tx_errored_frms; in vxge_get_ethtool_stats()
[all …]
/Linux-v5.10/net/ceph/
Dceph_hash.c25 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-v5.10/drivers/net/dsa/sja1105/
Dsja1105_ethtool.c425 int rc, i, k = 0; in sja1105_get_ethtool_stats() local
438 data[k++] = status->mac.n_runt; in sja1105_get_ethtool_stats()
439 data[k++] = status->mac.n_soferr; in sja1105_get_ethtool_stats()
440 data[k++] = status->mac.n_alignerr; in sja1105_get_ethtool_stats()
441 data[k++] = status->mac.n_miierr; in sja1105_get_ethtool_stats()
442 data[k++] = status->mac.typeerr; in sja1105_get_ethtool_stats()
443 data[k++] = status->mac.sizeerr; in sja1105_get_ethtool_stats()
444 data[k++] = status->mac.tctimeout; in sja1105_get_ethtool_stats()
445 data[k++] = status->mac.priorerr; in sja1105_get_ethtool_stats()
446 data[k++] = status->mac.nomaster; in sja1105_get_ethtool_stats()
[all …]
/Linux-v5.10/lib/
Dlist_sort.c133 * 2:1 balanced merges. Given two pending sublists of size 2^k, they are
134 * merged to a size-2^(k+1) list as soon as we have 2^k following elements.
136 * Thus, it will avoid cache thrashing as long as 3*2^k elements can
145 * Each time we increment "count", we set one bit (bit k) and clear
146 * bits k-1 .. 0. Each time this happens (except the very first time
147 * for each bit, when count increments to 2^k), we merge two lists of
148 * size 2^k into one list of size 2^(k+1).
151 * 2^k, which is when we have 2^k elements pending in smaller lists,
152 * so it's safe to merge away two lists of size 2^k.
154 * After this happens twice, we have created two lists of size 2^(k+1),
[all …]
/Linux-v5.10/arch/powerpc/net/
Dbpf_jit_comp.c106 #define CHOOSE_LOAD_FUNC(K, func) \ argument
107 ((int)K < 0 ? ((int)K >= SKF_LL_OFF ? func##_negative_offset : func) : func##_positive_offset)
124 unsigned int K = filter[i].k; in bpf_jit_build_body() local
139 case BPF_ALU | BPF_ADD | BPF_K: /* A += K; */ in bpf_jit_build_body()
140 if (!K) in bpf_jit_build_body()
142 EMIT(PPC_RAW_ADDI(r_A, r_A, IMM_L(K))); in bpf_jit_build_body()
143 if (K >= 32768) in bpf_jit_build_body()
144 EMIT(PPC_RAW_ADDIS(r_A, r_A, IMM_HA(K))); in bpf_jit_build_body()
150 case BPF_ALU | BPF_SUB | BPF_K: /* A -= K */ in bpf_jit_build_body()
151 if (!K) in bpf_jit_build_body()
[all …]

12345678910>>...125