Home
last modified time | relevance | path

Searched refs:k (Results 1 – 25 of 1220) sorted by relevance

12345678910>>...49

/Linux-v4.19/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-v4.19/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_err("%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-v4.19/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 …]
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 …]
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 …]
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 …]
Don26.c188 { int k, a, b; in on26_read_block() local
194 for (k=0;k<count;k++) { in on26_read_block()
197 buf[k] = j44(a,b); in on26_read_block()
204 for (k=0;k<count/2;k++) { in on26_read_block()
205 w2(0x26); buf[2*k] = r0(); in on26_read_block()
206 w2(0x24); buf[2*k+1] = r0(); in on26_read_block()
214 for (k=0;k<count;k++) buf[k] = r4(); in on26_read_block()
221 for (k=0;k<count/2;k++) ((u16 *)buf)[k] = r4w(); in on26_read_block()
228 for (k=0;k<count/4;k++) ((u32 *)buf)[k] = r4l(); in on26_read_block()
237 { int k; in on26_write_block() local
[all …]
Dfit3.c97 { int k, a, b, c, d; in fit3_read_block() local
102 for (k=0;k<count/2;k++) { in fit3_read_block()
107 buf[2*k ] = j44(a,b); in fit3_read_block()
108 buf[2*k+1] = j44(c,d); in fit3_read_block()
115 for (k=0;k<count/2;k++) { in fit3_read_block()
118 buf[2*k ] = a; in fit3_read_block()
119 buf[2*k+1] = b; in fit3_read_block()
127 for (k=0;k<count;k++) buf[k] = r4(); in fit3_read_block()
136 { int k; in fit3_write_block() local
142 for (k=0;k<count/2;k++) { in fit3_write_block()
[all …]
/Linux-v4.19/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-v4.19/lib/
Dbitmap.c53 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_equal() local
54 for (k = 0; k < lim; ++k) in __bitmap_equal()
55 if (bitmap1[k] != bitmap2[k]) in __bitmap_equal()
59 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_equal()
68 unsigned int k, lim = BITS_TO_LONGS(bits); in __bitmap_complement() local
69 for (k = 0; k < lim; ++k) in __bitmap_complement()
70 dst[k] = ~src[k]; in __bitmap_complement()
88 unsigned k, lim = BITS_TO_LONGS(nbits); in __bitmap_shift_right() local
91 for (k = 0; off + k < lim; ++k) { in __bitmap_shift_right()
98 if (!rem || off + k + 1 >= lim) in __bitmap_shift_right()
[all …]
Dtest_string.c8 unsigned i, j, k; in memset16_selftest() local
19 for (k = 0; k < 512; k++) { in memset16_selftest()
20 v = p[k]; in memset16_selftest()
21 if (k < i) { in memset16_selftest()
24 } else if (k < i + j) { in memset16_selftest()
38 return (i << 24) | (j << 16) | k; in memset16_selftest()
44 unsigned i, j, k; in memset32_selftest() local
55 for (k = 0; k < 512; k++) { in memset32_selftest()
56 v = p[k]; in memset32_selftest()
57 if (k < i) { in memset32_selftest()
[all …]
Dklist.c85 void klist_init(struct klist *k, void (*get)(struct klist_node *), in klist_init() argument
88 INIT_LIST_HEAD(&k->k_list); in klist_init()
89 spin_lock_init(&k->k_lock); in klist_init()
90 k->get = get; in klist_init()
91 k->put = put; in klist_init()
95 static void add_head(struct klist *k, struct klist_node *n) in add_head() argument
97 spin_lock(&k->k_lock); in add_head()
98 list_add(&n->n_node, &k->k_list); in add_head()
99 spin_unlock(&k->k_lock); in add_head()
102 static void add_tail(struct klist *k, struct klist_node *n) in add_tail() argument
[all …]
/Linux-v4.19/tools/lib/
Dbitmap.c12 int k, w = 0, lim = bits/BITS_PER_LONG; in __bitmap_weight() local
14 for (k = 0; k < lim; k++) in __bitmap_weight()
15 w += hweight_long(bitmap[k]); in __bitmap_weight()
18 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()
26 int k; in __bitmap_or() local
29 for (k = 0; k < nr; k++) in __bitmap_or()
30 dst[k] = bitmap1[k] | bitmap2[k]; in __bitmap_or()
65 unsigned int k; in __bitmap_and() local
69 for (k = 0; k < lim; k++) in __bitmap_and()
70 result |= (dst[k] = bitmap1[k] & bitmap2[k]); in __bitmap_and()
[all …]
/Linux-v4.19/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-v4.19/tools/include/linux/
Djhash.h73 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 …]
/Linux-v4.19/include/linux/
Djhash.h73 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()
89 case 12: c += (u32)k[11]<<24; /* fall through */ in jhash()
90 case 11: c += (u32)k[10]<<16; /* fall through */ in jhash()
91 case 10: c += (u32)k[9]<<8; /* fall through */ in jhash()
92 case 9: c += k[8]; /* fall through */ in jhash()
93 case 8: b += (u32)k[7]<<24; /* fall through */ in jhash()
[all …]
/Linux-v4.19/lib/raid6/
Dmktables.c58 int i, j, k; in main() local
73 for (k = 0; k < 8; k++) in main()
74 printf("0x%02x,%c", gfmul(i, j + k), in main()
75 (k == 7) ? '\n' : ' '); in main()
92 for (k = 0; k < 8; k++) in main()
93 printf("0x%02x,%c", gfmul(i, j + k), in main()
94 (k == 7) ? '\n' : ' '); in main()
98 for (k = 0; k < 8; k++) in main()
99 printf("0x%02x,%c", gfmul(i, (j + k) << 4), in main()
100 (k == 7) ? '\n' : ' '); in main()
[all …]
/Linux-v4.19/crypto/
Dserpent_generic.c34 ({ b ^= d; b ^= c; b ^= a; b ^= PHI ^ i; b = rol32(b, 11); k[j] = b; })
37 ({ x0 = k[i]; x1 = k[i+1]; x2 = k[i+2]; x3 = k[i+3]; })
40 ({ k[i] = x0; k[i+1] = x1; k[i+2] = x2; k[i+3] = x3; })
46 x3 ^= k[4*(i)+3]; x2 ^= k[4*(i)+2]; \
47 x1 ^= k[4*(i)+1]; x0 ^= k[4*(i)+0]; \
57 x0 ^= x3; x2 ^= x4; x3 ^= k[4*i+3]; \
58 x1 ^= k[4*i+1]; x0 = rol32(x0, 5); x2 = rol32(x2, 22);\
59 x0 ^= k[4*i+0]; x2 ^= k[4*i+2]; \
63 x0 ^= k[4*i+0]; x1 ^= k[4*i+1]; x2 ^= k[4*i+2]; \
64 x3 ^= k[4*i+3]; x0 = ror32(x0, 5); x2 = ror32(x2, 22);\
[all …]
/Linux-v4.19/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-v4.19/arch/sparc/crypto/
Dcamellia_asm.S36 ld [%o0 + 0x00], %f0 ! i0, k[0]
37 ld [%o0 + 0x04], %f1 ! i1, k[1]
38 ld [%o0 + 0x08], %f2 ! i2, k[2]
39 ld [%o0 + 0x0c], %f3 ! i3, k[3]
40 std %f0, [%o1 + 0x00] ! k[0, 1]
42 std %f2, [%o1 + 0x08] ! k[2, 3]
49 std %f0, [%o1 + 0x20] ! k[8, 9]
57 std %f2, [%o1 + 0x28] ! k[10, 11]
89 std %f0, [%o1 + 0x10] ! k[ 4, 5]
90 std %f2, [%o1 + 0x18] ! k[ 6, 7]
[all …]
/Linux-v4.19/drivers/staging/wlan-ng/
Dp80211wep.c147 u32 i, j, k, crc, keylen; in wep_decrypt() local
190 for (k = 0; k < len; k++) { in wep_decrypt()
194 buf[k] ^= s[(s[i] + s[j]) & 0xff]; in wep_decrypt()
195 crc = wep_crc32_table[(crc ^ buf[k]) & 0xff] ^ (crc >> 8); in wep_decrypt()
205 for (k = 0; k < 4; k++) { in wep_decrypt()
209 if ((c_crc[k] ^ s[(s[i] + s[j]) & 0xff]) != icv[k]) in wep_decrypt()
210 return -(4 | (k << 4)); /* ICV mismatch */ in wep_decrypt()
220 u32 i, j, k, crc, keylen; in wep_encrypt() local
263 for (k = 0; k < len; k++) { in wep_encrypt()
264 crc = wep_crc32_table[(crc ^ buf[k]) & 0xff] ^ (crc >> 8); in wep_encrypt()
[all …]
/Linux-v4.19/drivers/clk/sunxi-ng/
Dccu_nk.c18 unsigned long k, min_k, max_k; member
43 nk->k = best_k; in ccu_nk_find_best()
72 unsigned long rate, n, k; in ccu_nk_recalc_rate() local
83 k = reg >> nk->k.shift; in ccu_nk_recalc_rate()
84 k &= (1 << nk->k.width) - 1; in ccu_nk_recalc_rate()
85 k += nk->k.offset; in ccu_nk_recalc_rate()
86 if (!k) in ccu_nk_recalc_rate()
87 k++; in ccu_nk_recalc_rate()
89 rate = parent_rate * n * k; in ccu_nk_recalc_rate()
107 _nk.min_k = nk->k.min ?: 1; in ccu_nk_round_rate()
[all …]

12345678910>>...49