/linux/drivers/ata/pata_parport/ |
H A D | epia.c | 23 * 1 5/3 reads on ports 1 & 2, 8-bit writes 25 * 3 8-bit EPP mode 31 #define j53(a, b) (((a >> 3) & 0x1f) + ((b << 4) & 0xe0)) 48 w0(r); w2(1); w2(3); w0(r); in epia_read_regr() 54 w2(3); w2(5); w0(r | 0xf0); in epia_read_regr() 62 case 3: in epia_read_regr() 83 w0(r); w2(1); w0(val); w2(3); w2(4); in epia_write_regr() 85 case 3: in epia_write_regr() 99 * some EPP counters ... currently we know about 3 different block 110 if (pi->mode >= 3) { in epia_connect() [all …]
|
H A D | epat.c | 21 #define j53(a, b) (((a >> 3) & 0x1f) + ((b << 4) & 0xe0)) 35 static int cont_map[3] = { 0x18, 0x10, 0 }; 47 case 3: in epat_write_regr() 64 w0(r); w2(1); w2(3); in epat_read_regr() 75 case 3: in epat_read_regr() 87 int k, ph, a, b; in epat_read_block() local 92 w0(7); w2(1); w2(3); w0(0xff); in epat_read_block() 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() [all …]
|
H A D | kbic.c | 26 #define j53(w) (((w >> 3) & 0x1f) | ((w >> 4) & 0xe0)) 54 case 3: in kbic_read_regr() 76 case 3: 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() 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() [all …]
|
H A D | dstr.c | 22 * 3 EPP-16 26 #define j44(a, b) (((a >> 3) & 0x07) | ((~a >> 4) & 0x08) | \ 60 case 3: in dstr_read_regr() 86 case 3: in dstr_write_regr() 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 | fit3.c | 23 #define j44(a, b) (((a >> 3) & 0x0f) | ((b << 1) & 0xf0)) 35 regr += cont << 3; in fit3_write_regr() 56 regr += cont << 3; in fit3_read_regr() 83 int k, a, b, c, d; in fit3_read_block() local 88 for (k = 0; k < count / 2; k++) { in fit3_read_block() 93 buf[2 * k] = j44(a, b); in fit3_read_block() 94 buf[2 * k + 1] = j44(c, d); in fit3_read_block() 101 for (k = 0; k < count / 2; k++) { in fit3_read_block() 104 buf[2 * k] = a; in fit3_read_block() 105 buf[2 * k + 1] = b; in fit3_read_block() [all …]
|
H A 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() 103 case 3: 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 | ktti.c | 32 w0(r); w2(0xb); w2(0xa); w2(3); w2(6); in ktti_write_regr() 33 w0(val); w2(3); w0(0); w2(6); w2(0xb); in ktti_write_regr() 49 int k, a, b; in ktti_read_block() local 51 for (k = 0; k < count / 2; k++) { in ktti_read_block() 54 buf[2*k] = j44(a, b); in ktti_read_block() 56 buf[2*k+1] = j44(a, b); in ktti_read_block() 62 int k; in ktti_write_block() local 64 for (k = 0; k < count / 2; k++) { in ktti_write_block() 65 w0(0x10); w2(0xb); w2(0xa); w2(3); w2(6); in ktti_write_block() 66 w0(buf[2 * k]); w2(3); in ktti_write_block() [all …]
|
H A D | on26.c | 22 * 3 EPP-16 61 case 3: in on26_read_regr() 83 case 3: in on26_write_regr() 157 w0(3); P1; w0(0); P2; in on26_test_port() 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() [all …]
|
H A 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() 92 case 3: 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 …]
|
/linux/Documentation/admin-guide/media/ |
H A D | dvb_intro.rst | 133 T 177500000 7MHz AUTO AUTO QAM64 8k 1/16 NONE 134 T 184500000 7MHz AUTO AUTO QAM64 8k 1/8 NONE 135 T 191625000 7MHz AUTO AUTO QAM64 8k 1/16 NONE 136 T 219500000 7MHz AUTO AUTO QAM64 8k 1/16 NONE 137 T 226500000 7MHz AUTO AUTO QAM64 8k 1/16 NONE 138 T 557625000 7MHz AUTO AUTO QPSK 8k 1/16 NONE 151 TRANSMISSION_MODE = 8K 176 CODE_RATE_HP = 3/4 177 CODE_RATE_LP = 3/4 179 TRANSMISSION_MODE = 8K [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/include/linux/ |
H A D | jhash.h | 34 /* __jhash_mix -- mix 3 32-bit values reversibly. */ 45 /* __jhash_final - final mixing of 3 32-bit values (a,b,c) into c */ 61 * @k: sequence of bytes as key 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() [all …]
|
/linux/include/linux/ |
H A D | jhash.h | 34 /* __jhash_mix - mix 3 32-bit values reversibly. */ 45 /* __jhash_final - final mixing of 3 32-bit values (a,b,c) into c */ 61 * @k: sequence of bytes as key 73 const u8 *k = key; in jhash() local 80 a += get_unaligned((u32 *)k); in jhash() 81 b += get_unaligned((u32 *)(k + 4)); in jhash() 82 c += get_unaligned((u32 *)(k + 8)); in jhash() 85 k += 12; in jhash() 89 case 12: c += (u32)k[11]<<24; fallthrough; in jhash() 90 case 11: c += (u32)k[10]<<16; fallthrough; in jhash() [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", 30 "id": "3abe", 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", 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 17 255 global() number 44 255 global() number 72 255 global() number 84 { global() object 99 255 global() number 126 255 global() number 153 255 global() number 180 255 global() number 207 255 global() number 234 255 global() number 261 255 global() number 288 255 global() number 315 255 global() number 342 255 global() number 369 255 global() number 396 255 global() number 423 255 global() number 450 255 global() number 477 255 global() number 504 255 global() number 531 255 global() number 559 255 global() number 563 "$TC actions add action police rate 3mbit burst 300k index 3", global() string 594 255 global() number 622 255 global() number 626 "$TC actions add action police rate 3mbit burst 300k index 3", global() string 656 "$TC actions add action police rate 4mbit burst 400k index 4", global() string 686 255 global() number 713 255 global() number 740 255 global() number 767 255 global() number 794 255 global() number 821 255 global() number 848 255 global() number 876 255 global() number 903 255 global() number 930 255 global() number [all...] |
/linux/include/uapi/linux/ |
H A D | keyboard.h | 9 #define KG_ALT 3 32 #define KT_PAD 3 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) [all …]
|
/linux/tools/lib/ |
H A D | list_sort.c | 12 __attribute__((nonnull(2,3,4))) 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, [all …]
|
/linux/drivers/media/platform/verisilicon/ |
H A D | hantro_vp8.c | 18 u8 prob_segment[3]; 22 u8 prob_chroma_pred_mode[3]; 30 u8 prob_coeffs[4][8][3][V4L2_VP8_COEFF_PROB_CNT]; 43 { 3, -16, 77, 77, -16, 3 }, 53 u32 i, j, k; in hantro_vp8_prob_update() local 62 dst[3] = hdr->prob_gf; in hantro_vp8_prob_update() 72 dst[3] = entropy->y_mode_probs[3]; in hantro_vp8_prob_update() 83 dst[3] = entropy->mv_probs[1][1]; in hantro_vp8_prob_update() 94 dst[3] = entropy->mv_probs[i][j + 9 + 3]; in hantro_vp8_prob_update() 102 dst[3] = entropy->mv_probs[i][3 + 2]; in hantro_vp8_prob_update() [all …]
|
H A D | hantro_vp9.c | 71 static void *get_coeffs_arr(struct symbol_counts *cnts, int i, int j, int k, int l, int m) in get_coeffs_arr() argument 74 return &cnts->count_coeffs[j][k][l][m]; in get_coeffs_arr() 77 return &cnts->count_coeffs8x8[j][k][l][m]; in get_coeffs_arr() 80 return &cnts->count_coeffs16x16[j][k][l][m]; in get_coeffs_arr() 82 if (i == 3) in get_coeffs_arr() 83 return &cnts->count_coeffs32x32[j][k][l][m]; in get_coeffs_arr() 88 static void *get_eobs1(struct symbol_counts *cnts, int i, int j, int k, int l, int m) in get_eobs1() argument 91 return &cnts->count_coeffs[j][k][l][m][3]; in get_eobs1() 94 return &cnts->count_coeffs8x8[j][k][l][m][3]; in get_eobs1() 97 return &cnts->count_coeffs16x16[j][k][l][m][3]; in get_eobs1() [all …]
|
/linux/net/ceph/ |
H A D | ceph_hash.c | 18 a = a - b; a = a - c; a = a ^ (c >> 3); \ 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/md/bcache/ |
H A D | bcache_ondisk.h | 12 static inline __u64 name(const type *k) \ 13 { return (k->field >> offset) & ~(~0ULL << size); } \ 15 static inline void SET_##name(type *k, __u64 v) \ 17 k->field &= ~(~(~0ULL << size) << offset); \ 18 k->field |= (v & ~(~0ULL << size)) << offset; \ 33 static inline __u64 name(const struct bkey *k, unsigned int i) \ 34 { return (k->ptr[i] >> offset) & ~(~0ULL << size); } \ 36 static inline void SET_##name(struct bkey *k, unsigned int i, __u64 v) \ 38 k->ptr[i] &= ~(~(~0ULL << size) << offset); \ 39 k->ptr[i] |= (v & ~(~0ULL << size)) << offset; \ [all …]
|
/linux/drivers/isdn/mISDN/ |
H A D | dsp_dtmf.c | 20 * 2 * cos(2 * PI * k / N) precalculated for all k 24 /* k << 15 (source: hfc-4s/8s documentation (www.colognechip.de)) */ 31 {'1', '2', '3', 'A'}, 124 int k, n, i; in dsp_dtmf_goertzel_decode() local 158 for (k = 0; k < NCOEFF; k++) { in dsp_dtmf_goertzel_decode() 165 /* compute |X(k)|**2 */ in dsp_dtmf_goertzel_decode() 166 result[k] = in dsp_dtmf_goertzel_decode() 168 (((cos2pik[k] * sk) >> 15) * sk2) + in dsp_dtmf_goertzel_decode() 184 for (k = 0; k < NCOEFF; k++) { in dsp_dtmf_goertzel_decode() 189 cos2pik_ = cos2pik[k]; in dsp_dtmf_goertzel_decode() [all …]
|
/linux/fs/btrfs/tests/ |
H A D | extent-map-tests.c | 50 * extent [0, 16K), followed by another file extent [16K, 20K), two dio reads 51 * are entering btrfs_get_extent() concurrently, t1 is reading [8K, 16K), t2 is 52 * reading [0, 8K) 57 * -> add_extent_mapping(0, 16K) 59 * ->add_extent_mapping(0, 16K) 77 /* Add [0, 16K) */ in test_case_1() 87 test_err("cannot add extent range [0, 16K)"); in test_case_1() 92 /* Add [16K, 20K) following [0, 16K) */ in test_case_1() 109 test_err("cannot add extent range [16K, 20K)"); in test_case_1() 121 /* Add [0, 8K), should return [0, 16K) instead. */ in test_case_1() [all …]
|
/linux/drivers/input/joystick/ |
H A D | tmdc.c | 32 #define TMDC_MODE_3DRP 3 45 static const unsigned char tmdc_byte_a[16] = { 0, 1, 3, 4, 6, 7 }; 83 { 1, "ThrustMaster Millennium 3D Inceptor", 6, 2, { 4, 2 }, { 4, 6 }, tmdc_abs, tmdc_btn_joy }, 84 { 3, "ThrustMaster Rage 3D Gamepad", 2, 0, { 8, 2 }, { 0, 0 }, tmdc_abs, tmdc_btn_pad }, 131 int i[2], j[2], t[2], p, k; in tmdc_read_packet() local 135 for (k = 0; k < 2; k++) { in tmdc_read_packet() 136 t[k] = gameport_time(gameport, TMDC_MAX_START); in tmdc_read_packet() 137 i[k] = j[k] = 0; in tmdc_read_packet() 149 for (k = 0, v = w, u = x; k < 2; k++, v >>= 2, u >>= 2) { in tmdc_read_packet() 151 if (t[k] <= 0 || i[k] >= TMDC_MAX_LENGTH) continue; in tmdc_read_packet() [all …]
|
/linux/sound/soc/codecs/ |
H A D | rl6231.c | 38 case 3: in rl6231_get_pre_div() 68 * 1MHz - 3MHz range. 72 static const int div[] = {2, 3, 4, 6, 8, 12}; in rl6231_calc_dmic_clk() 81 if ((div[i] % 3) == 0) in rl6231_calc_dmic_clk() 96 int k; member 105 {19200000, 24576000, 3, 30, 3, false, false}, 107 {3840000, 24576000, 3, 30, 0, true, false}, 108 {3840000, 22579200, 3, 5, 0, true, false}, 131 * rl6231_pll_calc - Calcualte PLL M/N/K code. 134 * @pll_code: Pointer to structure with M, N, K, m_bypass and k_bypass flag. [all …]
|