Home
last modified time | relevance | path

Searched refs:code (Results 1 – 25 of 734) sorted by relevance

12345678910>>...30

/linux-2.4.37.9/drivers/usb/
Dhid-input.c110 if (!(usage->code = hid_keyboard[usage->hid & HID_USAGE])) in hidinput_configure_usage()
112 clear_bit(usage->code, bit); in hidinput_configure_usage()
114 usage->code = KEY_UNKNOWN; in hidinput_configure_usage()
120 usage->code = ((usage->hid - 1) & 0xf) + 0x100; in hidinput_configure_usage()
124 case HID_GD_GAMEPAD: usage->code += 0x10; in hidinput_configure_usage()
125 case HID_GD_JOYSTICK: usage->code += 0x10; in hidinput_configure_usage()
126 case HID_GD_MOUSE: usage->code += 0x10; break; in hidinput_configure_usage()
129 usage->code += 0x10; in hidinput_configure_usage()
138 case 0x1: usage->code = KEY_POWER; break; in hidinput_configure_usage()
139 case 0x2: usage->code = KEY_SLEEP; break; in hidinput_configure_usage()
[all …]
/linux-2.4.37.9/drivers/input/
Dinput.c63 void input_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) in input_event() argument
78 if (code > KEY_MAX || !test_bit(code, dev->keybit) || !!test_bit(code, dev->key) == value) in input_event()
83 change_bit(code, dev->key); in input_event()
88 dev->repeat_key = code; in input_event()
91 if (dev->repeat_key == code) in input_event()
99 if (code > ABS_MAX || !test_bit(code, dev->absbit)) in input_event()
102 if (dev->absfuzz[code]) { in input_event()
103 if ((value > dev->abs[code] - (dev->absfuzz[code] >> 1)) && in input_event()
104 (value < dev->abs[code] + (dev->absfuzz[code] >> 1))) in input_event()
107 if ((value > dev->abs[code] - dev->absfuzz[code]) && in input_event()
[all …]
/linux-2.4.37.9/drivers/scsi/
Dscript_asm.pl209 @code = (); # Array of 32 bit words for SIOP
239 printf STDERR "Old code : %08x\n", $code[$address];
244 $code[$address] = ($code[$address] & ~$mask) |
245 (($code[$address] & $mask) + ($value << ($offset * 8)) &
248 printf STDERR "New code : %08x\n", $code[$address] if ($debug);
307 $code[$address] |= 0x00_01_00_00;
326 $code[$address] |= 0x00_08_00_00;
336 $code[$address] |= 0x00_02_00_00;
342 $code[$address] |= $p | 0x00_02_00_00;
371 $code[$address] |= 0x00_04_00_00;
[all …]
Deata_dma_proc.h36 __u16 code; /* 0x01 */ member
51 __u16 code; /* 0x03 */ member
67 __u16 code; /* 0x02, 0x04 */ member
74 __u16 code; /* 0x06, 0x07 */ member
81 __u16 code; /* 0x05 */ member
93 __u16 code; /* 0x01 */ member
107 __u16 code; /* 0x02 */ member
116 __u16 code; /* 0x03, 0x04 */ member
123 __u16 code; /* 0x05 */ member
132 __u16 code; /* 0x06 */ member
[all …]
/linux-2.4.37.9/arch/ia64/kernel/
Dunwind_decoder.c85 unw_decode_x1 (unsigned char *dp, unsigned char code, void *arg) in unw_decode_x1() argument
102 unw_decode_x2 (unsigned char *dp, unsigned char code, void *arg) in unw_decode_x2() argument
120 unw_decode_x3 (unsigned char *dp, unsigned char code, void *arg) in unw_decode_x3() argument
140 unw_decode_x4 (unsigned char *dp, unsigned char code, void *arg) in unw_decode_x4() argument
161 unw_decode_r1 (unsigned char *dp, unsigned char code, void *arg) in unw_decode_r1() argument
163 int body = (code & 0x20) != 0; in unw_decode_r1()
166 rlen = (code & 0x1f); in unw_decode_r1()
172 unw_decode_r2 (unsigned char *dp, unsigned char code, void *arg) in unw_decode_r2() argument
179 mask = ((code & 0x7) << 1) | ((byte1 >> 7) & 1); in unw_decode_r2()
187 unw_decode_r3 (unsigned char *dp, unsigned char code, void *arg) in unw_decode_r3() argument
[all …]
Dtraps.c136 int sig, code; in ia64_bad_break() local
147 sig = SIGILL; code = ILL_ILLOPC; in ia64_bad_break()
151 sig = SIGFPE; code = FPE_INTDIV; in ia64_bad_break()
155 sig = SIGFPE; code = FPE_INTOVF; in ia64_bad_break()
159 sig = SIGFPE; code = FPE_FLTSUB; in ia64_bad_break()
163 sig = SIGSEGV; code = SEGV_MAPERR; in ia64_bad_break()
167 sig = SIGSEGV; code = BUS_ADRALN; in ia64_bad_break()
171 sig = SIGFPE; code = __FPE_DECOVF; in ia64_bad_break()
175 sig = SIGFPE; code = __FPE_DECDIV; in ia64_bad_break()
179 sig = SIGFPE; code = __FPE_DECERR; in ia64_bad_break()
[all …]
/linux-2.4.37.9/include/linux/
Dfilter.h21 __u16 code; /* Actual filter code */ member
51 #define BPF_CLASS(code) ((code) & 0x07) argument
62 #define BPF_SIZE(code) ((code) & 0x18) argument
66 #define BPF_MODE(code) ((code) & 0xe0) argument
75 #define BPF_OP(code) ((code) & 0xf0) argument
90 #define BPF_SRC(code) ((code) & 0x08) argument
95 #define BPF_RVAL(code) ((code) & 0x18) argument
99 #define BPF_MISCOP(code) ((code) & 0xf8) argument
111 #define BPF_STMT(code, k) { (unsigned short)(code), 0, 0, k } argument
114 #define BPF_JUMP(code, k, jt, jf) { (unsigned short)(code), jt, jf, k } argument
/linux-2.4.37.9/arch/s390/kernel/
Ds390_ext.c25 int register_external_interrupt(__u16 code, ext_int_handler_t handler) { in register_external_interrupt() argument
32 p->code = code; in register_external_interrupt()
34 index = code & 0xff; in register_external_interrupt()
40 int register_early_external_interrupt(__u16 code, ext_int_handler_t handler, in register_early_external_interrupt() argument
46 p->code = code; in register_early_external_interrupt()
48 index = code & 0xff; in register_early_external_interrupt()
54 int unregister_external_interrupt(__u16 code, ext_int_handler_t handler) { in unregister_external_interrupt() argument
58 index = code & 0xff; in unregister_external_interrupt()
62 if (p->code == code && p->handler == handler) in unregister_external_interrupt()
77 int unregister_early_external_interrupt(__u16 code, ext_int_handler_t handler, in unregister_early_external_interrupt() argument
[all …]
/linux-2.4.37.9/arch/s390x/kernel/
Ds390_ext.c25 int register_external_interrupt(__u16 code, ext_int_handler_t handler) { in register_external_interrupt() argument
32 p->code = code; in register_external_interrupt()
34 index = code & 0xff; in register_external_interrupt()
40 int register_early_external_interrupt(__u16 code, ext_int_handler_t handler, in register_early_external_interrupt() argument
46 p->code = code; in register_early_external_interrupt()
48 index = code & 0xff; in register_early_external_interrupt()
54 int unregister_external_interrupt(__u16 code, ext_int_handler_t handler) { in unregister_external_interrupt() argument
58 index = code & 0xff; in unregister_external_interrupt()
62 if (p->code == code && p->handler == handler) in unregister_external_interrupt()
77 int unregister_early_external_interrupt(__u16 code, ext_int_handler_t handler, in unregister_early_external_interrupt() argument
[all …]
/linux-2.4.37.9/drivers/usb/serial/
Dio_ionsp.h449 #define IOSP_GET_STATUS_LEN(code) ( (code) < 8 ? 2 : ((code) < 0x0A ? 3 : 4) ) argument
451 #define IOSP_STATUS_IS_2BYTE(code) ( (code) < 0x08 ) argument
452 #define IOSP_STATUS_IS_3BYTE(code) ( ((code) >= 0x08) && ((code) <= 0x0B) ) argument
453 #define IOSP_STATUS_IS_4BYTE(code) ( ((code) >= 0x0C) && ((code) <= 0x0D) ) argument
/linux-2.4.37.9/include/asm-m68k/
Dswim_iop.h122 __u8 code; /* CMD_INIT */ member
129 __u8 code; /* CMD_START_POLL */ member
135 __u8 code; /* CMD_SETHFSTAG */ member
142 __u8 code; /* CMD_STATUS */ member
149 __u8 code; /* CMD_EJECT */ member
156 __u8 code; /* CMD_FORMAT */ member
172 __u8 code; /* CMD_FORMAT_VERIFY */ member
178 __u8 code; /* CMD_READ, CMD_WRITE or CMD_READ_VERIFY */ member
188 __u8 code; /* CMD_CACHE_CTRL */ member
196 __u8 code; /* CMD_TAGBUFF_CTRL */ member
[all …]
/linux-2.4.37.9/drivers/isdn/eicon/
Deicon_isa.c128 unsigned char *code; in eicon_isa_bootload() local
140 if (!(code = kmalloc(cbuf.bootstrap_len, GFP_KERNEL))) { in eicon_isa_bootload()
144 if (copy_from_user(code, &cb->code, cbuf.bootstrap_len)) { in eicon_isa_bootload()
145 kfree(code); in eicon_isa_bootload()
157 kfree(code); in eicon_isa_bootload()
186 kfree(code); in eicon_isa_bootload()
217 memcpy_toio(&card->shmem->c, code, cbuf.bootstrap_len); in eicon_isa_bootload()
220 if (!check_signature((unsigned long)&card->shmem->c, code, 1020)) { in eicon_isa_bootload()
223 kfree(code); in eicon_isa_bootload()
228 memcpy_toio((__u8 *)card->shmem + 0x3ff0, &code[0x3f0], 12); in eicon_isa_bootload()
[all …]
Dxlog.c33 word code; in xlog_to_klog() member
54 if (x->code == 1) in xlog_to_klog()
57 klog.code = 0; in xlog_to_klog()
60 else if (x->code == 2) in xlog_to_klog()
63 klog.code = x->xcode; in xlog_to_klog()
70 klog.code = 0; in xlog_to_klog()
/linux-2.4.37.9/include/asm-s390/
Ds390_ext.h13 typedef void (*ext_int_handler_t)(struct pt_regs *regs, __u16 code);
22 __u16 code; member
27 int register_external_interrupt(__u16 code, ext_int_handler_t handler);
28 int register_early_external_interrupt(__u16 code, ext_int_handler_t handler,
30 int unregister_external_interrupt(__u16 code, ext_int_handler_t handler);
31 int unregister_early_external_interrupt(__u16 code, ext_int_handler_t handler,
/linux-2.4.37.9/include/asm-s390x/
Ds390_ext.h13 typedef void (*ext_int_handler_t)(struct pt_regs *regs, __u16 code);
22 __u16 code; member
27 int register_external_interrupt(__u16 code, ext_int_handler_t handler);
28 int register_early_external_interrupt(__u16 code, ext_int_handler_t handler,
30 int unregister_external_interrupt(__u16 code, ext_int_handler_t handler);
31 int unregister_early_external_interrupt(__u16 code, ext_int_handler_t handler,
/linux-2.4.37.9/lib/zlib_inflate/
Dinfcodes.c74 c->sub.code.need = c->lbits;
75 c->sub.code.tree = c->ltree;
78 j = c->sub.code.need;
80 t = c->sub.code.tree + ((uInt)b & zlib_inflate_mask[j]);
98 c->sub.code.need = e;
99 c->sub.code.tree = t + t->base;
116 c->sub.code.need = c->dbits;
117 c->sub.code.tree = c->dtree;
120 j = c->sub.code.need;
122 t = c->sub.code.tree + ((uInt)b & zlib_inflate_mask[j]);
[all …]
/linux-2.4.37.9/fs/hfs/
Dtrans.c401 unsigned char code, c, *count; in hfs_colon2mac() local
414 !(code = (hi << 4) | lo) || in hfs_colon2mac()
415 (code == ':')) { in hfs_colon2mac()
418 *p++ = code; in hfs_colon2mac()
442 unsigned char code, c, *count; in hfs_prcnt2mac() local
457 !(code = (hi << 4) | lo) || in hfs_prcnt2mac()
458 (code == ':')) { in hfs_prcnt2mac()
461 *p++ = code; in hfs_prcnt2mac()
516 unsigned char code, c, *count; in hfs_latin2mac() local
548 !(code = (hi << 4) | lo) || in hfs_latin2mac()
[all …]
/linux-2.4.37.9/fs/xfs/
Dxfs_utils.c165 int code; in xfs_dir_ialloc() local
189 code = xfs_ialloc(tp, dp, mode, nlink, rdev, credp, prid, okalloc, in xfs_dir_ialloc()
197 if (code) { in xfs_dir_ialloc()
199 return code; in xfs_dir_ialloc()
244 code = xfs_trans_commit(tp, 0, NULL); in xfs_dir_ialloc()
254 if (code) { in xfs_dir_ialloc()
262 return code; in xfs_dir_ialloc()
264 code = xfs_trans_reserve(tp, 0, log_res, 0, in xfs_dir_ialloc()
274 if (code) { in xfs_dir_ialloc()
278 return code; in xfs_dir_ialloc()
[all …]
/linux-2.4.37.9/Documentation/mips/pci/
Dpci.README6 code in arch/mips/kernel. The code was ported from PowerPC and
12 bridges some modifications have to be made. The code will
15 mess. This generic pci code is meant to clean up the mips
18 arch/mips/kernel/pci_auto.c has the pci bus enumeration code.
19 This code scans the pci bus(es) and assigns all of the resources.
20 Thus, you don't need the boot code to that, and many boot codes
21 don't do it correctly anyway. To enable the pci_auto code, add
37 Next, if you want to use the arch/mips/kernel/pci code, which has the
45 Note that you can enable CONFIG_NEW_PCI code without enabling
48 CONFIG_NEW_PCI code.
[all …]
/linux-2.4.37.9/drivers/isdn/sc/
Dmessage.c84 rspmsg->code, in receivemessage()
100 unsigned int code, in sendmessage() argument
134 sndmsg.code = code; in sendmessage()
176 sndmsg.code, in sendmessage()
186 unsigned char code, in send_and_receive() argument
202 retval = sendmessage(card, procid, type, class, code, link, in send_and_receive()
225 (adapter[card]->async_msg.code == code) && in send_and_receive()
/linux-2.4.37.9/lib/zlib_deflate/
Ddeftree.c234 int code; /* code value */ in tr_static_init() local
243 for (code = 0; code < LENGTH_CODES-1; code++) { in tr_static_init()
244 base_length[code] = length; in tr_static_init()
245 for (n = 0; n < (1<<extra_lbits[code]); n++) { in tr_static_init()
246 length_code[length++] = (uch)code; in tr_static_init()
254 length_code[length-1] = (uch)code; in tr_static_init()
258 for (code = 0 ; code < 16; code++) { in tr_static_init()
259 base_dist[code] = dist; in tr_static_init()
260 for (n = 0; n < (1<<extra_dbits[code]); n++) { in tr_static_init()
261 dist_code[dist++] = (uch)code; in tr_static_init()
[all …]
/linux-2.4.37.9/arch/parisc/mm/
Dfault.c54 parisc_acctyp(unsigned long code, unsigned int inst) in parisc_acctyp() argument
56 if (code == 6 || code == 16) in parisc_acctyp()
142 void do_page_fault(struct pt_regs *regs, unsigned long code, in do_page_fault() argument
165 acc_type = parisc_acctyp(code,regs->iir); in do_page_fault()
213 tsk->pid, tsk->comm, code, address); in do_page_fault()
259 parisc_terminate("Bad Address (null pointer deref?)", regs, code, address); in do_page_fault()
/linux-2.4.37.9/arch/alpha/kernel/
Dcore_lca.c132 unsigned long flags, code, stat0; in conf_read() local
148 code = ((stat0 >> LCA_IOC_STAT0_CODE_SHIFT) in conf_read()
150 if (code != 1) { in conf_read()
170 unsigned long flags, code, stat0; in conf_write() local
185 code = ((stat0 >> LCA_IOC_STAT0_CODE_SHIFT) in conf_write()
187 if (code != 1) { in conf_write()
414 unsigned code = (stat0 & IOC_CODE) >> IOC_CODE_SHIFT; in ioc_error() local
419 code > 3 ? "PCI" : "CPU", pci_cmd[cmd], stat1, err_name[code]); in ioc_error()
421 if (code == 5 || code == 6) { in ioc_error()
442 vector, regs->pc, (unsigned int) el.c->code); in lca_machine_check()
[all …]
/linux-2.4.37.9/arch/parisc/kernel/
Dtraps.c315 static void default_trap(int code, struct pt_regs *regs) in default_trap() argument
317 printk(KERN_ERR "Trap %d on CPU %d\n", code, smp_processor_id()); in default_trap()
321 void (*cpu_lpmc) (int code, struct pt_regs *regs) = default_trap;
404 void parisc_terminate(char *msg, struct pt_regs *regs, int code, unsigned long offset) in parisc_terminate() argument
421 switch(code){ in parisc_terminate()
436 msg, code, regs, offset); in parisc_terminate()
452 void handle_interruption(int code, struct pt_regs *regs) in handle_interruption() argument
458 switch(code) { in handle_interruption()
468 regs, code, 0); in handle_interruption()
501 die_if_kernel("Illegal instruction", regs, code); in handle_interruption()
[all …]
/linux-2.4.37.9/drivers/net/skfp/
Dsrf.c49 u_char code ; member
90 evc->evc_code = init->code ;
162 static struct s_srf_evc *smt_get_evc(smc,code,index) in smt_get_evc() argument
164 int code ;
171 if (evc->evc_code == code && evc->evc_index == index)
191 void smt_srf_event(smc,code,index,cond) in smt_srf_event() argument
193 int code ;
204 if (code == SMT_COND_MAC_DUP_ADDR && cond) {
208 if (code) {
209 DB_SMT("SRF: %s index %d\n",srf_names[code],index) ;
[all …]

12345678910>>...30