| /linux/drivers/ata/pata_parport/ |
| H A D | on26.c | 30 w2(5); w2(0xd); w2(5); w2(0xd); w2(5); w2(4); \ 35 w2(5); w2(7); w2(5); w2(4); \ 63 w3(1); w3(1); w2(5); w4(r); w2(4); in on26_read_regr() 85 w3(1); w3(1); w2(5); w4(r); w2(4); in on26_write_regr() 87 w2(5); w4(val); w2(4); in on26_write_regr() 88 w2(5); w4(val); w2(4); in on26_write_regr() 97 w2(4); w2(5); w2(4); w0(0xff); \ 141 pi->delay = 5; in on26_test_port() 151 w0(0x20); w2(4); w2(5); in on26_test_port() 188 return 5; in on26_test_port() [all …]
|
| H A D | dstr.c | 29 #define P1 w2(5);w2(0xd);w2(5);w2(4); 30 #define P2 w2(5);w2(7);w2(5);w2(4); 83 w0(val); w2(5); w2(7); w2(5); w2(4); in dstr_write_regr() 98 w0(x); w2(5); w2(4); \ 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() [all …]
|
| H A D | kbic.c | 47 w0(regr|0x38 | s); w2(4); w2(6); w2(4); w2(5); w0(8); in kbic_read_regr() 56 case 5: in kbic_read_regr() 74 w0(val); w2(5); w2(4); in kbic_write_regr() 78 case 5: 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() 138 buf[2 * k] = j44(a, b); in kbic_read_block() 139 w2(5); 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() [all …]
|
| H A D | epia.c | 23 * 1 5/3 reads on ports 1 & 2, 8-bit writes 27 * 5 32-bit EPP 54 w2(3); w2(5); w0(r | 0xf0); in epia_read_regr() 64 case 5: in epia_read_regr() 87 case 5: in epia_write_regr() 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() 145 w0(0x51); w2(5); w0(0xd1); in epia_read_block() 147 for (k = 0; k < count; k++) { in epia_read_block() [all …]
|
| H A D | frpw.c | 53 w2(5); w2(7); w2(5); w2(4); in frpw_write_regr() 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() [all …]
|
| H A D | friq.c | 66 w2(5); w2(7); w2(5); w2(4); in friq_write_regr() 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() [all …]
|
| H A D | epat.c | 49 case 5: in epat_write_regr() 77 case 5: in epat_read_regr() 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() 110 w0(0x47); w2(1); w2(5); w0(0xff); 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() [all …]
|
| H A D | comm.c | 27 #define P1 w2(5);w2(0xd);w2(0xd);w2(5);w2(4); 28 #define P2 w2(5);w2(7);w2(7);w2(5);w2(4); 145 int k; in comm_write_block() local 151 for (k = 0; k < count; k++) { in comm_write_block() 152 w2(5); in comm_write_block() 153 w0(buf[k ^ 1]); in comm_write_block() 156 w2(5); w2(4); in comm_write_block() 160 for (k = 0; k < count; k++) in comm_write_block() 161 w4(buf[k ^ 1]); in comm_write_block() 165 for (k = 0; k < count / 2; k++) in comm_write_block() [all …]
|
| H A D | fit2.c | 40 w2(0xc); w0(regr); w2(4); w0(val); w2(5); w0(0); w2(4); in fit2_write_regr() 55 w2(0xc); w0(r); w2(4); w2(5); in fit2_read_regr() 65 int k, a, b, c, d; in fit2_read_block() local 69 for (k = 0; k < count / 4; k++) { in fit2_read_block() 70 w2(4); w2(5); in fit2_read_block() 73 buf[4 * k + 0] = j44(a, b); in fit2_read_block() 74 buf[4 * k + 1] = j44(d, c); in fit2_read_block() 76 w2(4); w2(5); in fit2_read_block() 79 buf[4 * k + 2] = j44(d, c); in fit2_read_block() 80 buf[4 * k + 3] = j44(a, b); in fit2_read_block() [all …]
|
| H A D | on20.c | 20 w2(4); w0(f); w2(5); w2(0xd); \ 21 w2(5); w2(0xd); w2(5); w2(4); \ 26 w2(4); w0(v); w2(5); \ 27 w2(7); w2(5); w2(4); \ 91 int k, l, h; in on20_read_block() local 95 for (k = 0; k < count; k++) { in on20_read_block() 97 w2(4); w2(0x26); buf[k] = r0(); in on20_read_block() 101 buf[k] = j44(l, h); in on20_read_block() 109 int k; in on20_write_block() local 113 for (k = 0; k < count; k++) { in on20_write_block() [all …]
|
| /linux/tools/lib/ |
| H A D | list_sort.c | 48 __attribute__((nonnull(2,3,4,5))) 117 * 2:1 balanced merges. Given two pending sublists of size 2^k, they are 118 * merged to a size-2^(k+1) list as soon as we have 2^k following elements. 120 * Thus, it will avoid cache thrashing as long as 3*2^k elements can 129 * Each time we increment "count", we set one bit (bit k) and clear 130 * bits k-1 .. 0. Each time this happens (except the very first time 131 * for each bit, when count increments to 2^k), we merge two lists of 132 * size 2^k into one list of size 2^(k+1). 135 * 2^k, which is when we have 2^k elements pending in smaller lists, 136 * so it's safe to merge away two lists of size 2^k. [all …]
|
| /linux/tools/testing/selftests/tc-testing/tc-tests/actions/ |
| H A D | police.json | 20 "cmdUnderTest": "$TC actions add action police rate 1kbit burst 10k index 1", 46 "$TC actions add action police rate 4Mbit burst 120k index 9" 48 "cmdUnderTest": "$TC actions add action police rate 8kbit burst 24k index 9", 75 "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 1k index 98", 102 "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 2kb peakrate 100kbit index 3", 129 "cmdUnderTest": "$TC actions add action police rate 5kbit burst 6kb peakrate 10kbit index 9", 132 "matchPattern": "action order [0-9]*: police 0x9 rate 5Kb burst 10Kb", 156 "cmdUnderTest": "$TC actions add action police rate 1mbit burst 100k overhead 64 index 64", 183 "cmdUnderTest": "$TC actions add action police rate 2mbit burst 200k linklaye 138 { global() object 565 "$TC actions add action police rate 5mbit burst 500k index 5", global() string 628 "$TC actions add action police rate 5mbit burst 500k index 5", global() string 658 "$TC actions add action police rate 6mbit burst 600k index 6", global() string [all...] |
| /linux/net/ceph/ |
| H A D | ceph_hash.c | 17 c = c - a; c = c - b; c = c ^ (b >> 5); \ 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() [all …]
|
| /linux/crypto/ |
| H A D | wp512.c | 782 u64 K[8]; /* the round key */ in wp512_process_buffer() local 790 state[0] = block[0] ^ (K[0] = wctx->hash[0]); in wp512_process_buffer() 791 state[1] = block[1] ^ (K[1] = wctx->hash[1]); in wp512_process_buffer() 792 state[2] = block[2] ^ (K[2] = wctx->hash[2]); in wp512_process_buffer() 793 state[3] = block[3] ^ (K[3] = wctx->hash[3]); in wp512_process_buffer() 794 state[4] = block[4] ^ (K[4] = wctx->hash[4]); in wp512_process_buffer() 795 state[5] = block[5] ^ (K[5] = wctx->hash[5]); in wp512_process_buffer() 796 state[6] = block[6] ^ (K[6] = wctx->hash[6]); in wp512_process_buffer() 797 state[7] = block[7] ^ (K[7] = wctx->hash[7]); in wp512_process_buffer() 801 L[0] = C0[(int)(K[0] >> 56) ] ^ in wp512_process_buffer() [all …]
|
| /linux/drivers/media/platform/verisilicon/ |
| H A D | hantro_vp8.c | 53 u32 i, j, k; in hantro_vp8_prob_update() local 64 dst[5] = hdr->segment.segment_probs[1]; in hantro_vp8_prob_update() 74 dst[5] = entropy->uv_mode_probs[1]; in hantro_vp8_prob_update() 85 dst[5] = entropy->mv_probs[0][9 + 9]; in hantro_vp8_prob_update() 104 dst[5] = entropy->mv_probs[i][5 + 2]; in hantro_vp8_prob_update() 115 for (k = 0; k < 3; ++k) { in hantro_vp8_prob_update() 116 dst[0] = entropy->coeff_probs[i][j][k][0]; in hantro_vp8_prob_update() 117 dst[1] = entropy->coeff_probs[i][j][k][1]; in hantro_vp8_prob_update() 118 dst[2] = entropy->coeff_probs[i][j][k][2]; in hantro_vp8_prob_update() 119 dst[3] = entropy->coeff_probs[i][j][k][3]; in hantro_vp8_prob_update() [all …]
|
| /linux/drivers/media/usb/pwc/ |
| H A D | pwc-dec23.c | 92 int compression_mode, j, k, bit, pw; in build_table_color() local 104 for (k = 0; k < 16; k++) { in build_table_color() 105 if (k == 0) in build_table_color() 107 else if (k >= 1 && k < 3) in build_table_color() 109 else if (k >= 3 && k < 6) in build_table_color() 111 else if (k >= 6 && k < 10) in build_table_color() 113 else if (k >= 10 && k < 13) in build_table_color() 115 else if (k >= 13 && k < 15) in build_table_color() 119 if (k == 0) in build_table_color() 126 p0[k + 0x00] = (1 * pw) + 0x80; in build_table_color() [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_jhash.h | 39 const unsigned char *k = key; in jhash() local 44 a += *(volatile u32 *)(k); in jhash() 45 b += *(volatile u32 *)(k + 4); in jhash() 46 c += *(volatile u32 *)(k + 8); in jhash() 49 k += 12; in jhash() 52 case 12: c += (u32)k[11]<<24; in jhash() 53 case 11: c += (u32)k[10]<<16; in jhash() 54 case 10: c += (u32)k[9]<<8; in jhash() 55 case 9: c += k[8]; in jhash() 56 case 8: b += (u32)k[7]<<24; in jhash() [all …]
|
| /linux/tools/perf/pmu-events/arch/x86/arrowlake/ |
| H A D | virtual-memory.json | 4 "Counter": "0,1,2,3,4,5,6,7", 13 "Counter": "0,1,2,3,4,5,6,7", 22 "Counter": "0,1,2,3,4,5,6,7", 31 "Counter": "0,1,2,3,4,5,6,7,8,9", 41 "Counter": "0,1,2,3,4,5,6,7", 50 "Counter": "0,1,2,3,4,5,6,7,8,9", 61 "Counter": "0,1,2,3,4,5,6,7", 71 "Counter": "0,1,2,3,4,5,6,7,8,9", 81 "Counter": "0,1,2,3,4,5,6,7", 90 "Counter": "0,1,2,3,4,5,6,7,8,9", [all …]
|
| /linux/arch/sparc/kernel/ |
| H A D | termios.c | 6 * backwardly compatible. Notice that character 4 and 5 are 13 #define _VTIME 5 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() [all …]
|
| /linux/lib/ |
| H A D | bitmap.c | 40 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_equal() local 41 for (k = 0; k < lim; ++k) in __bitmap_equal() 42 if (bitmap1[k] != bitmap2[k]) in __bitmap_equal() 46 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_equal() 58 unsigned int k, lim = bits / BITS_PER_LONG; in __bitmap_or_equal() local 61 for (k = 0; k < lim; ++k) { in __bitmap_or_equal() 62 if ((bitmap1[k] | bitmap2[k]) != bitmap3[k]) in __bitmap_or_equal() 69 tmp = (bitmap1[k] | bitmap2[k]) ^ bitmap3[k]; in __bitmap_or_equal() 76 unsigned int k, lim = BITS_TO_LONGS(bits); in __bitmap_complement() local 77 for (k = 0; k < lim; ++k) in __bitmap_complement() [all …]
|
| /linux/include/crypto/internal/ |
| H A D | des.h | 59 u32 K[6]; in des3_ede_verify_key() local 61 memcpy(K, key, DES3_EDE_KEY_SIZE); in des3_ede_verify_key() 63 if ((!((K[0] ^ K[2]) | (K[1] ^ K[3])) || in des3_ede_verify_key() 64 !((K[2] ^ K[4]) | (K[3] ^ K[5]))) && in des3_ede_verify_key() 68 if ((!((K[0] ^ K[4]) | (K[1] ^ K[5]))) && fips_enabled) in des3_ede_verify_key() 73 memzero_explicit(K, DES3_EDE_KEY_SIZE); in des3_ede_verify_key()
|
| /linux/tools/perf/pmu-events/arch/x86/meteorlake/ |
| H A D | virtual-memory.json | 4 "Counter": "0,1,2,3,4,5,6,7", 34 "Counter": "0,1,2,3,4,5,6,7", 63 "Counter": "0,1,2,3,4,5,6,7", 82 "BriefDescription": "Counts the number of page walks completed due to load DTLB misses to a 4K page.", 83 "Counter": "0,1,2,3,4,5,6,7", 86 "PublicDescription": "Counts the number of page walks completed due to loads (including SW prefetches) whose address translations missed in all Translation Lookaside Buffer (TLB) levels and were mapped to 4K pages. Includes page walks that page fault.", 92 "BriefDescription": "Page walks completed due to a demand data load to a 4K page.", 96 "PublicDescription": "Counts completed page walks (4K sizes) caused by demand data loads. This implies address translations missed in the DTLB and further levels of TLB. The page walk can end with or without a fault.", 103 "Counter": "0,1,2,3,4,5,6,7", 123 "Counter": "0,1,2,3,4,5, 51 { global() object [all...] |
| /linux/tools/perf/pmu-events/arch/x86/grandridge/ |
| H A D | virtual-memory.json | 4 "Counter": "0,1,2,3,4,5,6,7", 12 "Counter": "0,1,2,3,4,5,6,7", 20 "Counter": "0,1,2,3,4,5,6,7", 28 "BriefDescription": "Counts the number of page walks completed due to load DTLB misses to a 4K page.", 29 "Counter": "0,1,2,3,4,5,6,7", 32 "PublicDescription": "Counts the number of page walks completed due to loads (including SW prefetches) whose address translations missed in all Translation Lookaside Buffer (TLB) levels and were mapped to 4K pages. Includes page walks that page fault.", 38 "Counter": "0,1,2,3,4,5,6,7", 47 "Counter": "0,1,2,3,4,5,6,7", 55 "Counter": "0,1,2,3,4,5,6,7", 63 "Counter": "0,1,2,3,4,5, 45 { global() object [all...] |
| /linux/tools/perf/pmu-events/arch/x86/sierraforest/ |
| H A D | virtual-memory.json | 4 "Counter": "0,1,2,3,4,5,6,7", 12 "Counter": "0,1,2,3,4,5,6,7", 20 "Counter": "0,1,2,3,4,5,6,7", 28 "BriefDescription": "Counts the number of page walks completed due to load DTLB misses to a 4K page.", 29 "Counter": "0,1,2,3,4,5,6,7", 32 "PublicDescription": "Counts the number of page walks completed due to loads (including SW prefetches) whose address translations missed in all Translation Lookaside Buffer (TLB) levels and were mapped to 4K pages. Includes page walks that page fault.", 38 "Counter": "0,1,2,3,4,5,6,7", 47 "Counter": "0,1,2,3,4,5,6,7", 55 "Counter": "0,1,2,3,4,5,6,7", 63 "Counter": "0,1,2,3,4,5, 45 { global() object [all...] |
| /linux/tools/perf/pmu-events/arch/x86/lunarlake/ |
| H A D | virtual-memory.json | 4 "Counter": "0,1,2,3,4,5,6,7", 13 "Counter": "0,1,2,3,4,5,6,7", 22 "Counter": "0,1,2,3,4,5,6,7", 31 "Counter": "0,1,2,3,4,5,6,7,8,9", 41 "Counter": "0,1,2,3,4,5,6,7,8,9", 52 "Counter": "0,1,2,3,4,5,6,7", 62 "Counter": "0,1,2,3,4,5,6,7,8,9", 72 "Counter": "0,1,2,3,4,5,6,7,8,9", 82 "Counter": "0,1,2,3,4,5,6,7", 92 "Counter": "0,1,2,3,4,5,6,7,8,9", [all …]
|