/linux-2.4.37.9/drivers/char/ |
D | ec3104_keyb.c | 244 static void e5_wait_for_cts(struct e5_struct *k) in e5_wait_for_cts() argument 254 static void e5_send_byte(u8 byte, struct e5_struct *k) in e5_send_byte() argument 272 static int e5_send_packet(u8 *packet, int count, struct e5_struct *k) in e5_send_packet() argument 278 if (k->cached_mcr & MCR_RTS) { in e5_send_packet() 284 k->cached_mcr |= MCR_RTS; in e5_send_packet() 285 ctrl_outb(k->cached_mcr, EC3104_SER4_MCR); in e5_send_packet() 287 e5_wait_for_cts(k); in e5_send_packet() 292 e5_send_byte(packet[i], k); in e5_send_packet() 294 e5_send_byte(e5_checksum(packet, count), k); in e5_send_packet() 300 k->cached_mcr &= ~MCR_RTS; in e5_send_packet() [all …]
|
/linux-2.4.37.9/drivers/block/paride/ |
D | friq.c | 78 { int h, l, k, ph; in friq_read_block_int() local 83 for (k=0;k<count;k++) { in friq_read_block_int() 86 buf[k] = j44(l,h); in friq_read_block_int() 94 for (k=0;k<count;k++) { in friq_read_block_int() 96 buf[k] = r0(); in friq_read_block_int() 103 for (k=0;k<count-2;k++) buf[k] = r4(); in friq_read_block_int() 111 for (k=0;k<(count/2)-1;k++) ((u16 *)buf)[k] = r4w(); in friq_read_block_int() 119 for (k=0;k<(count/4)-1;k++) ((u32 *)buf)[k] = r4l(); in friq_read_block_int() 138 { int k; in friq_write_block() local 144 for (k=0;k<count;k++) { in friq_write_block() [all …]
|
D | epat.c | 92 { int k, ph, a, b; in epat_read_block() local 98 for(k=0;k<count;k++) { in epat_read_block() 99 if (k == count-1) w0(0xfd); in epat_read_block() 103 buf[k] = j44(a,b); in epat_read_block() 111 for(k=0;k<count;k++) { in epat_read_block() 112 if (k == count-1) w0(0xfd); in epat_read_block() 115 buf[k] = j53(a,b); in epat_read_block() 123 for(k=0;k<count-1;k++) { in epat_read_block() 125 buf[k] = r0(); in epat_read_block() 133 for(k=0;k<count-1;k++) buf[k] = r4(); in epat_read_block() [all …]
|
D | epia.c | 137 { int k, ph, a, b; in epia_read_block() local 143 for (k=0;k<count;k++) { in epia_read_block() 146 buf[k] = j44(a,b); in epia_read_block() 155 for (k=0;k<count;k++) { in epia_read_block() 158 buf[k] = j53(a,b); in epia_read_block() 166 for (k=0;k<count;k++) { in epia_read_block() 168 buf[k] = r0(); in epia_read_block() 176 for (k=0;k<count;k++) buf[k] = r4(); in epia_read_block() 182 for (k=0;k<count/2;k++) ((u16 *)buf)[k] = r4w(); in epia_read_block() 188 for (k=0;k<count/4;k++) ((u32 *)buf)[k] = r4l(); in epia_read_block() [all …]
|
D | frpw.c | 75 { int h, l, k, ph; in frpw_read_block_int() local 80 for (k=0;k<count;k++) { in frpw_read_block_int() 83 buf[k] = j44(l,h); in frpw_read_block_int() 91 for (k=0;k<count;k++) { in frpw_read_block_int() 93 buf[k] = r0(); in frpw_read_block_int() 100 for (k=0;k<count;k++) buf[k] = r4(); in frpw_read_block_int() 106 for (k=0;k<count-2;k++) buf[k] = r4(); in frpw_read_block_int() 114 for (k=0;k<(count/2)-1;k++) ((u16 *)buf)[k] = r4w(); in frpw_read_block_int() 122 for (k=0;k<(count/4)-1;k++) ((u32 *)buf)[k] = r4l(); in frpw_read_block_int() 141 { int k; in frpw_write_block() local [all …]
|
D | dstr.c | 116 { int k, a, b; in dstr_read_block() local 124 case 0: for (k=0;k<count;k++) { in dstr_read_block() 127 buf[k] = j44(a,b); in dstr_read_block() 132 for (k=0;k<count;k++) { in dstr_read_block() 133 w2(0x26); buf[k] = r0(); w2(0x24); in dstr_read_block() 139 for (k=0;k<count;k++) buf[k] = r4(); in dstr_read_block() 144 for (k=0;k<count/2;k++) ((u16 *)buf)[k] = r4w(); in dstr_read_block() 149 for (k=0;k<count/4;k++) ((u32 *)buf)[k] = r4l(); in dstr_read_block() 158 { int k; in dstr_write_block() local 167 case 1: for (k=0;k<count;k++) { in dstr_write_block() [all …]
|
D | kbic.c | 135 { int k, a, b; in kbic_read_block() local 140 for (k=0;k<count/2;k++) { in kbic_read_block() 143 buf[2*k] = j44(a,b); in kbic_read_block() 146 buf[2*k+1] = j44(a,b); in kbic_read_block() 152 for (k=0;k<count/4;k++) { in kbic_read_block() 155 w0(8); buf[4*k] = j53(r12w()); in kbic_read_block() 156 w0(0xb8); buf[4*k+1] = j53(r12w()); in kbic_read_block() 158 buf[4*k+3] = j53(r12w()); in kbic_read_block() 159 w0(8); buf[4*k+2] = j53(r12w()); in kbic_read_block() 165 for (k=0;k<count/2;k++) { in kbic_read_block() [all …]
|
D | on26.c | 187 { int k, a, b; in on26_read_block() local 193 for (k=0;k<count;k++) { in on26_read_block() 196 buf[k] = j44(a,b); in on26_read_block() 203 for (k=0;k<count/2;k++) { in on26_read_block() 204 w2(0x26); buf[2*k] = r0(); in on26_read_block() 205 w2(0x24); buf[2*k+1] = r0(); in on26_read_block() 213 for (k=0;k<count;k++) buf[k] = r4(); in on26_read_block() 220 for (k=0;k<count/2;k++) ((u16 *)buf)[k] = r4w(); in on26_read_block() 227 for (k=0;k<count/4;k++) ((u32 *)buf)[k] = r4l(); in on26_read_block() 236 { int k; in on26_write_block() local [all …]
|
D | fit3.c | 96 { int k, a, b, c, d; in fit3_read_block() local 101 for (k=0;k<count/2;k++) { in fit3_read_block() 106 buf[2*k ] = j44(a,b); in fit3_read_block() 107 buf[2*k+1] = j44(c,d); in fit3_read_block() 114 for (k=0;k<count/2;k++) { in fit3_read_block() 117 buf[2*k ] = a; in fit3_read_block() 118 buf[2*k+1] = b; in fit3_read_block() 126 for (k=0;k<count;k++) buf[k] = r4(); in fit3_read_block() 135 { int k; in fit3_write_block() local 141 for (k=0;k<count/2;k++) { in fit3_write_block() [all …]
|
D | aten.c | 71 { int k, a, b, c, d; in aten_read_block() local 76 for (k=0;k<count/2;k++) { in aten_read_block() 80 buf[2*k] = j44(c,d); in aten_read_block() 81 buf[2*k+1] = j44(a,b); in aten_read_block() 87 for (k=0;k<count/2;k++) { in aten_read_block() 90 buf[2*k] = b; buf[2*k+1] = a; in aten_read_block() 99 { int k; in aten_write_block() local 102 for (k=0;k<count/2;k++) { in aten_write_block() 103 w0(buf[2*k+1]); w2(0xe); w2(6); in aten_write_block() 104 w0(buf[2*k]); w2(7); w2(6); in aten_write_block()
|
D | setup.h | 38 { int j,k, sgn; in generic_setup() local 40 k = 0; in generic_setup() 42 k = strlen(t[j].tag); in generic_setup() 43 if (strncmp(ss,t[j].tag,k) == 0) break; in generic_setup() 47 if (ss[k] == 0) { in generic_setup() 52 if (ss[k] != '=') return; in generic_setup() 53 ss += (k+1); in generic_setup() 55 k = 0; in generic_setup() 56 while (ss && (k < t[j].size)) { in generic_setup() 62 t[j].iv[k] = sgn * simple_strtoul(ss,NULL,0); in generic_setup() [all …]
|
D | fit2.c | 65 { int k, a, b, c, d; in fit2_read_block() local 69 for (k=0;k<count/4;k++) { in fit2_read_block() 74 buf[4*k+0] = j44(a,b); in fit2_read_block() 75 buf[4*k+1] = j44(d,c); in fit2_read_block() 80 buf[4*k+2] = j44(d,c); in fit2_read_block() 81 buf[4*k+3] = j44(a,b); in fit2_read_block() 91 { int k; in fit2_write_block() local 95 for (k=0;k<count/2;k++) { in fit2_write_block() 96 w2(4); w0(buf[2*k]); in fit2_write_block() 97 w2(5); w0(buf[2*k+1]); in fit2_write_block()
|
D | comm.c | 150 { int k; in comm_write_block() local 156 for (k=0;k<count;k++) { in comm_write_block() 157 w2(5); w0(buf[k^1]); w2(7); in comm_write_block() 163 for (k=0;k<count;k++) w4(buf[k^1]); in comm_write_block() 167 for (k=0;k<count/2;k++) w4w(pi_swab16(buf,k)); in comm_write_block() 171 for (k=0;k<count/4;k++) w4l(pi_swab32(buf,k)); in comm_write_block()
|
D | paride.c | 176 { int j, k; in pi_test_proto() local 190 for (k=0;k<256;k++) { in pi_test_proto() 191 WR(2,k^0xaa); in pi_test_proto() 192 WR(3,k^0x55); in pi_test_proto() 193 if (RR(2) != (k^0xaa)) e[j]++; in pi_test_proto() 209 { int k; in pi_register() local 211 for (k=0;k<MAX_PROTOS;k++) in pi_register() 212 if (protocols[k] && !strcmp(pr->name,protocols[k]->name)) { in pi_register() 216 k = 0; in pi_register() 217 while((k<MAX_PROTOS) && (protocols[k])) k++; in pi_register() [all …]
|
D | ktti.c | 55 { int k, a, b; in ktti_read_block() local 57 for (k=0;k<count/2;k++) { in ktti_read_block() 60 buf[2*k] = j44(a,b); in ktti_read_block() 62 buf[2*k+1] = j44(a,b); in ktti_read_block() 68 { int k; in ktti_write_block() local 70 for (k=0;k<count/2;k++) { in ktti_write_block() 72 w0(buf[2*k]); w2(3); in ktti_write_block() 73 w0(buf[2*k+1]); w2(6); in ktti_write_block()
|
/linux-2.4.37.9/net/core/ |
D | filter.c | 43 static u8 *load_pointer(struct sk_buff *skb, int k) in load_pointer() argument 47 if (k>=SKF_NET_OFF) in load_pointer() 48 ptr = skb->nh.raw + k - SKF_NET_OFF; in load_pointer() 49 else if (k>=SKF_LL_OFF) in load_pointer() 50 ptr = skb->mac.raw + k - SKF_LL_OFF; in load_pointer() 80 int k; in sk_run_filter() local 98 A += fentry->k; in sk_run_filter() 106 A -= fentry->k; in sk_run_filter() 114 A *= fentry->k; in sk_run_filter() 124 if(fentry->k == 0) in sk_run_filter() [all …]
|
/linux-2.4.37.9/include/linux/ |
D | jhash.h | 47 const u8 *k = key; in jhash() local 54 a += (k[0] +((u32)k[1]<<8) +((u32)k[2]<<16) +((u32)k[3]<<24)); in jhash() 55 b += (k[4] +((u32)k[5]<<8) +((u32)k[6]<<16) +((u32)k[7]<<24)); in jhash() 56 c += (k[8] +((u32)k[9]<<8) +((u32)k[10]<<16)+((u32)k[11]<<24)); in jhash() 60 k += 12; in jhash() 66 case 11: c += ((u32)k[10]<<24); in jhash() 67 case 10: c += ((u32)k[9]<<16); in jhash() 68 case 9 : c += ((u32)k[8]<<8); in jhash() 69 case 8 : b += ((u32)k[7]<<24); in jhash() 70 case 7 : b += ((u32)k[6]<<16); in jhash() [all …]
|
/linux-2.4.37.9/crypto/ |
D | twofish.c | 540 #define CALC_K(a, j, k, l, m, n) \ argument 541 x = CALC_K_2 (k, l, k, l, 0); \ 553 #define CALC_K192(a, j, k, l, m, n) \ argument 554 x = CALC_K192_2 (l, l, k, k, 0); \ 566 #define CALC_K256(a, j, k, l, m, n) \ argument 567 x = CALC_K256_2 (k, l, 0); \ 593 x += y; y += x + ctx->k[2 * (n) + 1]; \ 594 (c) ^= x + ctx->k[2 * (n)]; \ 601 (d) ^= y + ctx->k[2 * (n) + 1]; \ 604 (c) ^= (x + ctx->k[2 * (n)]) [all …]
|
D | serpent.c | 38 b ^= d; b ^= c; b ^= a; b ^= PHI ^ i; ROL(b,11); k[j] = b; 41 x0=k[i]; x1=k[i+1]; x2=k[i+2]; x3=k[i+3]; 44 k[i]=x0; k[i+1]=x1; k[i+2]=x2; k[i+3]=x3; 47 x3 ^= k[4*(i)+3]; x2 ^= k[4*(i)+2]; \ 48 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]; ROL(x0,5); ROL(x2,22); \ 59 x0 ^= k[4*i+0]; x2 ^= k[4*i+2]; 62 x0 ^= k[4*i+0]; x1 ^= k[4*i+1]; x2 ^= k[4*i+2]; \ 63 x3 ^= k[4*i+3]; ROR(x0,5); ROR(x2,22); \ [all …]
|
/linux-2.4.37.9/drivers/char/joystick/ |
D | tmdc.c | 117 int i[2], j[2], t[2], p, k; in tmdc_read_packet() local 121 for (k = 0; k < 2; k++) { in tmdc_read_packet() 122 t[k] = gameport_time(gameport, TMDC_MAX_START); in tmdc_read_packet() 123 i[k] = j[k] = 0; in tmdc_read_packet() 136 for (k = 0, v = w, u = x; k < 2; k++, v >>= 2, u >>= 2) { in tmdc_read_packet() 138 if (t[k] <= 0 || i[k] >= TMDC_MAX_LENGTH) continue; in tmdc_read_packet() 139 t[k] = p; in tmdc_read_packet() 140 if (j[k] == 0) { /* Start bit */ in tmdc_read_packet() 141 if (~v & 1) t[k] = 0; in tmdc_read_packet() 142 data[k][i[k]] = 0; j[k]++; continue; in tmdc_read_packet() [all …]
|
/linux-2.4.37.9/include/asm-sparc/ |
D | termios.h | 135 #define user_termios_to_kernel_termios(k, u) \ argument 137 get_user((k)->c_iflag, &(u)->c_iflag); \ 138 get_user((k)->c_oflag, &(u)->c_oflag); \ 139 get_user((k)->c_cflag, &(u)->c_cflag); \ 140 get_user((k)->c_lflag, &(u)->c_lflag); \ 141 get_user((k)->c_line, &(u)->c_line); \ 142 copy_from_user((k)->c_cc, (u)->c_cc, NCCS); \ 143 if((k)->c_lflag & ICANON) { \ 144 get_user((k)->c_cc[VEOF], &(u)->c_cc[VEOF]); \ 145 get_user((k)->c_cc[VEOL], &(u)->c_cc[VEOL]); \ [all …]
|
/linux-2.4.37.9/include/asm-sparc64/ |
D | termios.h | 134 #define user_termios_to_kernel_termios(k, u) \ argument 136 get_user((k)->c_iflag, &(u)->c_iflag); \ 137 get_user((k)->c_oflag, &(u)->c_oflag); \ 138 get_user((k)->c_cflag, &(u)->c_cflag); \ 139 get_user((k)->c_lflag, &(u)->c_lflag); \ 140 get_user((k)->c_line, &(u)->c_line); \ 141 copy_from_user((k)->c_cc, (u)->c_cc, NCCS); \ 142 if((k)->c_lflag & ICANON) { \ 143 get_user((k)->c_cc[VEOF], &(u)->c_cc[VEOF]); \ 144 get_user((k)->c_cc[VEOL], &(u)->c_cc[VEOL]); \ [all …]
|
/linux-2.4.37.9/drivers/net/hamradio/soundmodem/ |
D | gentbl.c | 167 int i, j, k, l, m; in gentbl_fsk9600() local 184 for (k = 1, s = 0, l = i; k < 256; k <<= 1) { in gentbl_fsk9600() 185 if (j & k) { in gentbl_fsk9600() 219 for (k = 1, s = 0, l = i; k < 256; k <<= 1) { in gentbl_fsk9600() 220 if (j & k) { in gentbl_fsk9600() 265 int i, j, k, l, o, v, sumi, sumq; in gentbl_afsk2666() local 294 for (l = AFSK26_DEMCORRLEN-1, k = (j * o)/AFSK26_RXOVER, sumi = 0; l >= 0; in gentbl_afsk2666() 295 l--, k = (k+j)&0xffffu) { in gentbl_afsk2666() 297 cos(M_PI*k/32768.0)); in gentbl_afsk2666() 300 for (l = AFSK26_DEMCORRLEN-1, k = (j * o)/AFSK26_RXOVER, sumq = 0; l >= 0; in gentbl_afsk2666() [all …]
|
/linux-2.4.37.9/drivers/scsi/aic7xxx/ |
D | aic7xxx_93cx6.c | 154 u_int k = 0; in ahc_read_seeprom() local 162 for (k = start_addr; k < count + start_addr; k++) { in ahc_read_seeprom() 172 if ((k & (1 << i)) != 0) in ahc_read_seeprom() 178 if ((k & (1 << i)) != 0) in ahc_read_seeprom() 199 buf[k - start_addr] = v; in ahc_read_seeprom() 206 for (k = 0; k < count; k = k + 1) { in ahc_read_seeprom() 207 if (((k % 8) == 0) && (k != 0)) { in ahc_read_seeprom() 210 printf (" 0x%x", buf[k]); in ahc_read_seeprom() 227 int i, k; in ahc_write_seeprom() local 235 for (k = start_addr; k < count + start_addr; k++) { in ahc_write_seeprom() [all …]
|
/linux-2.4.37.9/drivers/scsi/ |
D | sg.c | 367 int k, res; in sg_read() local 382 if ((k = verify_area(VERIFY_WRITE, buf, count))) in sg_read() 383 return k; in sg_read() 511 int mxsize, cmd_size, k; in sg_write() local 533 if ((k = verify_area(VERIFY_READ, buf, count))) in sg_write() 534 return k; /* protects following copy_from_user()s + get_user()s */ in sg_write() 596 k = sg_common_write(sfp, srp, cmnd, sfp->timeout, blocking); in sg_write() 597 return (k < 0) ? k : count; in sg_write() 603 int k; in sg_new_write() local 611 if ((k = verify_area(VERIFY_READ, buf, count))) in sg_new_write() [all …]
|