tag | line | file | source code |
info | 64 | fs/minix/dir.c | struct minix_sb_info * info; |
info | 68 | fs/minix/dir.c | info = &inode->i_sb->u.minix_sb; |
info | 69 | fs/minix/dir.c | if (filp->f_pos & (info->s_dirsize - 1)) |
info | 80 | fs/minix/dir.c | offset += info->s_dirsize; |
info | 81 | fs/minix/dir.c | filp->f_pos += info->s_dirsize; |
info | 83 | fs/minix/dir.c | for (i = 0; i < info->s_namelen; i++) |
info | 46 | fs/minix/namei.c | struct minix_sb_info * info) |
info | 51 | fs/minix/namei.c | *offset += info->s_dirsize; |
info | 52 | fs/minix/namei.c | if (!de->inode || len > info->s_namelen) |
info | 57 | fs/minix/namei.c | return namecompare(len,info->s_namelen,name,de->name); |
info | 73 | fs/minix/namei.c | struct minix_sb_info * info; |
info | 78 | fs/minix/namei.c | info = &dir->i_sb->u.minix_sb; |
info | 79 | fs/minix/namei.c | if (namelen > info->s_namelen) { |
info | 83 | fs/minix/namei.c | namelen = info->s_namelen; |
info | 97 | fs/minix/namei.c | if (minix_match(namelen,name,bh,&offset,info)) |
info | 158 | fs/minix/namei.c | struct minix_sb_info * info; |
info | 164 | fs/minix/namei.c | info = &dir->i_sb->u.minix_sb; |
info | 165 | fs/minix/namei.c | if (namelen > info->s_namelen) { |
info | 169 | fs/minix/namei.c | namelen = info->s_namelen; |
info | 183 | fs/minix/namei.c | offset += info->s_dirsize; |
info | 191 | fs/minix/namei.c | if (namecompare(namelen, info->s_namelen, name, de->name)) { |
info | 197 | fs/minix/namei.c | for (i = 0; i < info->s_namelen ; i++) |
info | 313 | fs/minix/namei.c | struct minix_sb_info * info; |
info | 319 | fs/minix/namei.c | info = &dir->i_sb->u.minix_sb; |
info | 336 | fs/minix/namei.c | inode->i_size = 2 * info->s_dirsize; |
info | 349 | fs/minix/namei.c | de = (struct minix_dir_entry *) (dir_block->b_data + info->s_dirsize); |
info | 384 | fs/minix/namei.c | struct minix_sb_info * info; |
info | 388 | fs/minix/namei.c | info = &inode->i_sb->u.minix_sb; |
info | 391 | fs/minix/namei.c | offset = 2*info->s_dirsize; |
info | 392 | fs/minix/namei.c | if (inode->i_size & (info->s_dirsize-1)) |
info | 402 | fs/minix/namei.c | de = (struct minix_dir_entry *) (bh->b_data + info->s_dirsize); |
info | 414 | fs/minix/namei.c | offset += info->s_dirsize; |
info | 654 | fs/minix/namei.c | (((struct minix_dir_entry *) ((buffer)+info->s_dirsize))->inode) |
info | 672 | fs/minix/namei.c | struct minix_sb_info * info; |
info | 675 | fs/minix/namei.c | info = &old_dir->i_sb->u.minix_sb; |
info | 35 | include/linux/math_emu.h | #define EAX (info->___eax) |
info | 36 | include/linux/math_emu.h | #define EBX (info->___ebx) |
info | 37 | include/linux/math_emu.h | #define ECX (info->___ecx) |
info | 38 | include/linux/math_emu.h | #define EDX (info->___edx) |
info | 39 | include/linux/math_emu.h | #define ESI (info->___esi) |
info | 40 | include/linux/math_emu.h | #define EDI (info->___edi) |
info | 41 | include/linux/math_emu.h | #define EBP (info->___ebp) |
info | 42 | include/linux/math_emu.h | #define ESP (info->___esp) |
info | 43 | include/linux/math_emu.h | #define EIP (info->___eip) |
info | 44 | include/linux/math_emu.h | #define ORIG_EIP (info->___orig_eip) |
info | 45 | include/linux/math_emu.h | #define EFLAGS (info->___eflags) |
info | 46 | include/linux/math_emu.h | #define DS (*(unsigned short *) &(info->___ds)) |
info | 47 | include/linux/math_emu.h | #define ES (*(unsigned short *) &(info->___es)) |
info | 48 | include/linux/math_emu.h | #define FS (*(unsigned short *) &(info->___fs)) |
info | 49 | include/linux/math_emu.h | #define CS (*(unsigned short *) &(info->___cs)) |
info | 50 | include/linux/math_emu.h | #define SS (*(unsigned short *) &(info->___ss)) |
info | 53 | include/linux/math_emu.h | void __math_abort(struct info *, unsigned int); |
info | 56 | include/linux/math_emu.h | (((volatile void (*)(struct info *,unsigned int)) __math_abort)((x),(y))) |
info | 111 | include/linux/sched.h | struct info *info; |
info | 158 | kernel/FPU-emu/fpu_entry.c | FPU_info = (struct info *) &arg; |
info | 340 | kernel/FPU-emu/fpu_entry.c | void __math_abort(struct info * info, unsigned int signal) |
info | 345 | kernel/FPU-emu/fpu_entry.c | __asm__("movl %0,%%esp ; ret"::"g" (((long) info)-4)); |
info | 44 | kernel/FPU-emu/fpu_proto.h | extern void __math_abort(struct info *info, unsigned int signal); |
info | 18 | kernel/FPU-emu/fpu_system.h | #define FPU_info (I387.soft.info) |
info | 30 | kernel/FPU-emu/get_address.c | offsetof(struct info,___eax), |
info | 31 | kernel/FPU-emu/get_address.c | offsetof(struct info,___ecx), |
info | 32 | kernel/FPU-emu/get_address.c | offsetof(struct info,___edx), |
info | 33 | kernel/FPU-emu/get_address.c | offsetof(struct info,___ebx), |
info | 34 | kernel/FPU-emu/get_address.c | offsetof(struct info,___esp), |
info | 35 | kernel/FPU-emu/get_address.c | offsetof(struct info,___ebp), |
info | 36 | kernel/FPU-emu/get_address.c | offsetof(struct info,___esi), |
info | 37 | kernel/FPU-emu/get_address.c | offsetof(struct info,___edi) |
info | 775 | kernel/blk_drv/scsi/aha1542.c | int aha1542_biosparam(int size, int dev, int* info){ |
info | 776 | kernel/blk_drv/scsi/aha1542.c | info[0] = 64; |
info | 777 | kernel/blk_drv/scsi/aha1542.c | info[1] = 32; |
info | 778 | kernel/blk_drv/scsi/aha1542.c | info[2] = size >> 11; |
info | 481 | kernel/blk_drv/scsi/aha1740.c | int aha1740_biosparam(int size, int dev, int* info) |
info | 484 | kernel/blk_drv/scsi/aha1740.c | info[0] = 64; |
info | 485 | kernel/blk_drv/scsi/aha1740.c | info[1] = 32; |
info | 486 | kernel/blk_drv/scsi/aha1740.c | info[2] = size >> 11; |
info | 1289 | kernel/blk_drv/scsi/fdomain.c | int fdomain_16x0_biosparam( int size, int dev, int *info ) |
info | 1324 | kernel/blk_drv/scsi/fdomain.c | info[0] = i->heads; |
info | 1325 | kernel/blk_drv/scsi/fdomain.c | info[1] = i->sectors; |
info | 1326 | kernel/blk_drv/scsi/fdomain.c | info[2] = i->cylinders; |
info | 141 | kernel/blk_drv/scsi/hosts.c | printk ("%s", scsi_hosts[i].info()); |
info | 60 | kernel/blk_drv/scsi/hosts.h | const char *(* info)(void); |
info | 482 | kernel/blk_drv/scsi/scsi_debug.c | int scsi_debug_biosparam(int size, int* info){ |
info | 483 | kernel/blk_drv/scsi/scsi_debug.c | info[0] = 32; |
info | 484 | kernel/blk_drv/scsi/scsi_debug.c | info[1] = 64; |
info | 485 | kernel/blk_drv/scsi/scsi_debug.c | info[2] = (size + 2047) >> 11; |
info | 486 | kernel/blk_drv/scsi/scsi_debug.c | if (info[2] >= 1024) info[2] = 1024; |
info | 36 | kernel/blk_drv/scsi/scsi_ioctl.c | string = scsi_hosts[dev].info(); |
info | 1400 | kernel/blk_drv/scsi/seagate.c | int seagate_st0x_biosparam(int size, int dev, int* info) { |
info | 1496 | kernel/blk_drv/scsi/seagate.c | info[0] = heads; |
info | 1497 | kernel/blk_drv/scsi/seagate.c | info[1] = sectors; |
info | 1498 | kernel/blk_drv/scsi/seagate.c | info[2] = cylinders; |
info | 494 | kernel/blk_drv/scsi/ultrastor.c | int ultrastor_biosparam(int size, int dev, int *info) |
info | 498 | kernel/blk_drv/scsi/ultrastor.c | info[0] = config.heads; |
info | 499 | kernel/blk_drv/scsi/ultrastor.c | info[1] = config.sectors; |
info | 500 | kernel/blk_drv/scsi/ultrastor.c | info[2] = (size + (s - 1)) / s; |
info | 551 | kernel/blk_drv/scsi/wd7000.c | static void wd7000_append_info( char *info, const char *fmt, ... ) |
info | 560 | kernel/blk_drv/scsi/wd7000.c | vsprintf(info, fmt, args); |
info | 569 | kernel/blk_drv/scsi/wd7000.c | static char info[80] = "Western Digital WD-7000, Firmware Revision "; |
info | 572 | kernel/blk_drv/scsi/wd7000.c | wd7000_append_info( info+strlen(info), "%d.%d.\n", rev_1, rev_2 ); |
info | 574 | kernel/blk_drv/scsi/wd7000.c | return info; |
info | 600 | kernel/blk_drv/scsi/wd7000.c | int wd7000_biosparam(int size, int dev, int* info) |
info | 606 | kernel/blk_drv/scsi/wd7000.c | info[0] = 64; |
info | 607 | kernel/blk_drv/scsi/wd7000.c | info[1] = 32; |
info | 608 | kernel/blk_drv/scsi/wd7000.c | info[2] = (size + 2047) >> 11; |
info | 147 | kernel/chr_drv/serial.c | static inline unsigned int serial_in(struct async_struct *info, int offset) |
info | 149 | kernel/chr_drv/serial.c | return inb(info->port + offset); |
info | 152 | kernel/chr_drv/serial.c | static inline unsigned int serial_inp(struct async_struct *info, int offset) |
info | 154 | kernel/chr_drv/serial.c | return inb_p(info->port + offset); |
info | 157 | kernel/chr_drv/serial.c | static inline void serial_out(struct async_struct *info, int offset, int value) |
info | 159 | kernel/chr_drv/serial.c | outb(value, info->port+offset); |
info | 162 | kernel/chr_drv/serial.c | static inline void serial_outp(struct async_struct *info, int offset, |
info | 165 | kernel/chr_drv/serial.c | outb_p(value, info->port+offset); |
info | 193 | kernel/chr_drv/serial.c | static inline void rs_sched_event(struct async_struct *info, |
info | 196 | kernel/chr_drv/serial.c | info->event |= 1 << event; |
info | 197 | kernel/chr_drv/serial.c | set_bit(info->line, rs_event); |
info | 201 | kernel/chr_drv/serial.c | static inline void receive_chars(struct async_struct *info, |
info | 213 | kernel/chr_drv/serial.c | queue = &info->tty->read_q; |
info | 217 | kernel/chr_drv/serial.c | ch = serial_in(info, UART_RX); |
info | 224 | kernel/chr_drv/serial.c | if (*status & info->read_status_mask) { |
info | 225 | kernel/chr_drv/serial.c | set_bit(head, &info->tty->readq_flags); |
info | 228 | kernel/chr_drv/serial.c | rs_sched_event(info, RS_EVENT_BREAK); |
info | 237 | kernel/chr_drv/serial.c | } while ((*status = serial_inp(info, UART_LSR)) & UART_LSR_DR); |
info | 240 | kernel/chr_drv/serial.c | &info->tty->flags)) |
info | 241 | kernel/chr_drv/serial.c | rs_throttle(info->tty, TTY_THROTTLE_RQ_FULL); |
info | 242 | kernel/chr_drv/serial.c | rs_sched_event(info, RS_EVENT_READ_PROCESS); |
info | 245 | kernel/chr_drv/serial.c | static inline void transmit_chars(struct async_struct *info, int *done_work) |
info | 250 | kernel/chr_drv/serial.c | queue = &info->tty->write_q; |
info | 253 | kernel/chr_drv/serial.c | if (head==tail && !info->x_char) |
info | 255 | kernel/chr_drv/serial.c | count = info->xmit_fifo_size; |
info | 256 | kernel/chr_drv/serial.c | if (info->x_char) { |
info | 257 | kernel/chr_drv/serial.c | serial_outp(info, UART_TX, info->x_char); |
info | 258 | kernel/chr_drv/serial.c | info->x_char = 0; |
info | 262 | kernel/chr_drv/serial.c | serial_outp(info, UART_TX, queue->buf[tail++]); |
info | 267 | kernel/chr_drv/serial.c | rs_sched_event(info, RS_EVENT_WRITE_WAKEUP); |
info | 268 | kernel/chr_drv/serial.c | if (info->tty->write_data_cnt) { |
info | 269 | kernel/chr_drv/serial.c | set_bit(info->tty->line, &tty_check_write); |
info | 279 | kernel/chr_drv/serial.c | static inline int check_modem_status(struct async_struct *info) |
info | 283 | kernel/chr_drv/serial.c | status = serial_in(info, UART_MSR); |
info | 285 | kernel/chr_drv/serial.c | if ((status & UART_MSR_DDCD) && !C_LOCAL(info->tty)) { |
info | 287 | kernel/chr_drv/serial.c | rs_sched_event(info, RS_EVENT_OPEN_WAKEUP); |
info | 289 | kernel/chr_drv/serial.c | rs_sched_event(info, RS_EVENT_HANGUP); |
info | 291 | kernel/chr_drv/serial.c | if (C_RTSCTS(info->tty)) { |
info | 292 | kernel/chr_drv/serial.c | if (info->tty->stopped) { |
info | 294 | kernel/chr_drv/serial.c | info->tty->stopped = 0; |
info | 298 | kernel/chr_drv/serial.c | info->tty->stopped = !(status & UART_MSR_CTS); |
info | 327 | kernel/chr_drv/serial.c | struct async_struct * info; |
info | 330 | kernel/chr_drv/serial.c | info = IRQ_ports[irq]; |
info | 334 | kernel/chr_drv/serial.c | while (info) { |
info | 336 | kernel/chr_drv/serial.c | !(serial_inp(info, UART_IIR) & UART_IIR_NO_INT)) { |
info | 338 | kernel/chr_drv/serial.c | status = serial_inp(info, UART_LSR); |
info | 340 | kernel/chr_drv/serial.c | receive_chars(info, &status); |
info | 345 | kernel/chr_drv/serial.c | !info->tty->stopped) { |
info | 346 | kernel/chr_drv/serial.c | transmit_chars(info, &done_work); |
info | 348 | kernel/chr_drv/serial.c | if (check_modem_status(info)) |
info | 352 | kernel/chr_drv/serial.c | info = info->next_port; |
info | 353 | kernel/chr_drv/serial.c | if (!info && !done) { |
info | 354 | kernel/chr_drv/serial.c | info = IRQ_ports[irq]; |
info | 394 | kernel/chr_drv/serial.c | static inline void handle_rs_break(struct async_struct *info) |
info | 396 | kernel/chr_drv/serial.c | if (info->flags & ASYNC_SAK) |
info | 397 | kernel/chr_drv/serial.c | do_SAK(info->tty); |
info | 399 | kernel/chr_drv/serial.c | if (I_BRKINT(info->tty)) { |
info | 400 | kernel/chr_drv/serial.c | flush_input(info->tty); |
info | 401 | kernel/chr_drv/serial.c | flush_output(info->tty); |
info | 402 | kernel/chr_drv/serial.c | if (info->tty->pgrp > 0) |
info | 403 | kernel/chr_drv/serial.c | kill_pg(info->tty->pgrp, SIGINT,1); |
info | 419 | kernel/chr_drv/serial.c | struct async_struct *info; |
info | 421 | kernel/chr_drv/serial.c | for (i = 0, info = rs_table; i < NR_PORTS; i++,info++) { |
info | 423 | kernel/chr_drv/serial.c | if (!info->tty) |
info | 425 | kernel/chr_drv/serial.c | if (!clear_bit(RS_EVENT_READ_PROCESS, &info->event)) { |
info | 426 | kernel/chr_drv/serial.c | TTY_READ_FLUSH(info->tty); |
info | 428 | kernel/chr_drv/serial.c | if (!clear_bit(RS_EVENT_WRITE_WAKEUP, &info->event)) { |
info | 429 | kernel/chr_drv/serial.c | wake_up_interruptible(&info->tty->write_q.proc_list); |
info | 431 | kernel/chr_drv/serial.c | if (!clear_bit(RS_EVENT_HANGUP, &info->event)) { |
info | 432 | kernel/chr_drv/serial.c | tty_hangup(info->tty); |
info | 433 | kernel/chr_drv/serial.c | wake_up_interruptible(&info->open_wait); |
info | 434 | kernel/chr_drv/serial.c | info->flags &= ~(ASYNC_NORMAL_ACTIVE| |
info | 437 | kernel/chr_drv/serial.c | if (!clear_bit(RS_EVENT_BREAK, &info->event)) |
info | 438 | kernel/chr_drv/serial.c | handle_rs_break(info); |
info | 439 | kernel/chr_drv/serial.c | if (!clear_bit(RS_EVENT_OPEN_WAKEUP, &info->event)) { |
info | 440 | kernel/chr_drv/serial.c | wake_up_interruptible(&info->open_wait); |
info | 495 | kernel/chr_drv/serial.c | struct async_struct *info; |
info | 498 | kernel/chr_drv/serial.c | info = IRQ_ports[irq]; |
info | 499 | kernel/chr_drv/serial.c | if (!info) { |
info | 503 | kernel/chr_drv/serial.c | while (info) { |
info | 504 | kernel/chr_drv/serial.c | if (info->timeout < timeout) |
info | 505 | kernel/chr_drv/serial.c | timeout = info->timeout; |
info | 506 | kernel/chr_drv/serial.c | info = info->next_port; |
info | 513 | kernel/chr_drv/serial.c | static void startup(struct async_struct * info) |
info | 523 | kernel/chr_drv/serial.c | if (info->type == PORT_16550A) |
info | 524 | kernel/chr_drv/serial.c | serial_outp(info, UART_FCR, UART_FCR_CLEAR_CMD); |
info | 529 | kernel/chr_drv/serial.c | (void)serial_inp(info, UART_LSR); |
info | 530 | kernel/chr_drv/serial.c | (void)serial_inp(info, UART_RX); |
info | 531 | kernel/chr_drv/serial.c | (void)serial_inp(info, UART_IIR); |
info | 532 | kernel/chr_drv/serial.c | (void)serial_inp(info, UART_MSR); |
info | 537 | kernel/chr_drv/serial.c | serial_outp(info, UART_LCR, UART_LCR_WLEN8); /* reset DLAB */ |
info | 538 | kernel/chr_drv/serial.c | if (info->flags & ASYNC_FOURPORT) |
info | 539 | kernel/chr_drv/serial.c | serial_outp(info, UART_MCR, UART_MCR_DTR | UART_MCR_RTS); |
info | 541 | kernel/chr_drv/serial.c | serial_outp(info, UART_MCR, |
info | 547 | kernel/chr_drv/serial.c | if (info->type == PORT_16550A) { |
info | 548 | kernel/chr_drv/serial.c | serial_outp(info, UART_FCR, UART_FCR_SETUP_CMD); |
info | 549 | kernel/chr_drv/serial.c | info->xmit_fifo_size = 16; |
info | 551 | kernel/chr_drv/serial.c | info->xmit_fifo_size = 1; |
info | 557 | kernel/chr_drv/serial.c | serial_outp(info, UART_IER, 0x0f); /* enable all intrs */ |
info | 558 | kernel/chr_drv/serial.c | if (info->flags & ASYNC_FOURPORT) { |
info | 560 | kernel/chr_drv/serial.c | ICP = (info->port & 0xFE0) | 0x01F; |
info | 568 | kernel/chr_drv/serial.c | (void)serial_inp(info, UART_LSR); |
info | 569 | kernel/chr_drv/serial.c | (void)serial_inp(info, UART_RX); |
info | 570 | kernel/chr_drv/serial.c | (void)serial_inp(info, UART_IIR); |
info | 571 | kernel/chr_drv/serial.c | (void)serial_inp(info, UART_MSR); |
info | 573 | kernel/chr_drv/serial.c | info->flags |= ASYNC_INITIALIZED; |
info | 574 | kernel/chr_drv/serial.c | if (info->tty) |
info | 575 | kernel/chr_drv/serial.c | clear_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 579 | kernel/chr_drv/serial.c | if (info->tty && info->tty->termios && I_INPCK(info->tty)) |
info | 580 | kernel/chr_drv/serial.c | info->read_status_mask = UART_LSR_BI | UART_LSR_FE | |
info | 583 | kernel/chr_drv/serial.c | info->read_status_mask = UART_LSR_BI | UART_LSR_FE; |
info | 591 | kernel/chr_drv/serial.c | static void shutdown(struct async_struct * info) |
info | 596 | kernel/chr_drv/serial.c | serial_outp(info, UART_IER, 0x00); /* disable all intrs */ |
info | 597 | kernel/chr_drv/serial.c | if (info->tty && !(info->tty->termios->c_cflag & HUPCL)) |
info | 598 | kernel/chr_drv/serial.c | serial_outp(info, UART_MCR, UART_MCR_DTR); |
info | 601 | kernel/chr_drv/serial.c | serial_outp(info, UART_MCR, 0x00); |
info | 602 | kernel/chr_drv/serial.c | serial_outp(info, UART_FCR, UART_FCR_CLEAR_CMD); /* disable FIFO's */ |
info | 603 | kernel/chr_drv/serial.c | (void)serial_in(info, UART_RX); /* read data port to reset things */ |
info | 604 | kernel/chr_drv/serial.c | info->flags &= ~ASYNC_INITIALIZED; |
info | 605 | kernel/chr_drv/serial.c | if (info->tty) |
info | 606 | kernel/chr_drv/serial.c | set_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 616 | kernel/chr_drv/serial.c | struct async_struct * info; |
info | 624 | kernel/chr_drv/serial.c | info = rs_table + line; |
info | 625 | kernel/chr_drv/serial.c | if (!info->tty || !info->tty->termios) |
info | 627 | kernel/chr_drv/serial.c | cflag = info->tty->termios->c_cflag; |
info | 628 | kernel/chr_drv/serial.c | if (!(port = info->port)) |
info | 632 | kernel/chr_drv/serial.c | if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_HI) |
info | 634 | kernel/chr_drv/serial.c | if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_VHI) |
info | 636 | kernel/chr_drv/serial.c | if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_CUST) |
info | 637 | kernel/chr_drv/serial.c | quot = info->custom_divisor; |
info | 640 | kernel/chr_drv/serial.c | info->timeout = ((info->xmit_fifo_size*HZ*15*quot) / |
info | 641 | kernel/chr_drv/serial.c | info->baud_base) + 2; |
info | 643 | kernel/chr_drv/serial.c | quot = (2*info->baud_base / 269); |
info | 644 | kernel/chr_drv/serial.c | info->timeout = (info->xmit_fifo_size*HZ*30/269) + 2; |
info | 646 | kernel/chr_drv/serial.c | quot = info->baud_base / baud_table[i]; |
info | 647 | kernel/chr_drv/serial.c | info->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2; |
info | 650 | kernel/chr_drv/serial.c | info->timeout = 0; |
info | 652 | kernel/chr_drv/serial.c | mcr = serial_in(info, UART_MCR); |
info | 654 | kernel/chr_drv/serial.c | serial_out(info, UART_MCR, mcr | UART_MCR_DTR); |
info | 656 | kernel/chr_drv/serial.c | serial_out(info, UART_MCR, mcr & ~UART_MCR_DTR); |
info | 667 | kernel/chr_drv/serial.c | serial_outp(info, UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ |
info | 668 | kernel/chr_drv/serial.c | serial_outp(info, UART_DLL, quot & 0xff); /* LS of divisor */ |
info | 669 | kernel/chr_drv/serial.c | serial_outp(info, UART_DLM, quot >> 8); /* MS of divisor */ |
info | 670 | kernel/chr_drv/serial.c | serial_outp(info, UART_LCR, cval); /* reset DLAB */ |
info | 687 | kernel/chr_drv/serial.c | static void restart_port(struct async_struct *info) |
info | 692 | kernel/chr_drv/serial.c | if (serial_inp(info, UART_LSR) & UART_LSR_THRE) { |
info | 693 | kernel/chr_drv/serial.c | if (info->x_char) { |
info | 694 | kernel/chr_drv/serial.c | serial_outp(info, UART_TX, info->x_char); |
info | 695 | kernel/chr_drv/serial.c | info->x_char = 0; |
info | 697 | kernel/chr_drv/serial.c | queue = &info->tty->write_q; |
info | 700 | kernel/chr_drv/serial.c | count = info->xmit_fifo_size; |
info | 704 | kernel/chr_drv/serial.c | serial_outp(info, UART_TX, queue->buf[tail++]); |
info | 718 | kernel/chr_drv/serial.c | struct async_struct *info; |
info | 722 | kernel/chr_drv/serial.c | info = rs_table + DEV_TO_SL(tty->line); |
info | 724 | kernel/chr_drv/serial.c | restart_port(info); |
info | 739 | kernel/chr_drv/serial.c | struct async_struct *info; |
info | 748 | kernel/chr_drv/serial.c | info = rs_table + DEV_TO_SL(tty->line); |
info | 750 | kernel/chr_drv/serial.c | info->x_char = STOP_CHAR(tty); |
info | 752 | kernel/chr_drv/serial.c | mcr = serial_inp(info, UART_MCR); |
info | 754 | kernel/chr_drv/serial.c | serial_out(info, UART_MCR, mcr); |
info | 758 | kernel/chr_drv/serial.c | info = rs_table + DEV_TO_SL(tty->line); |
info | 761 | kernel/chr_drv/serial.c | if (info->x_char) |
info | 762 | kernel/chr_drv/serial.c | info->x_char = 0; |
info | 764 | kernel/chr_drv/serial.c | info->x_char = START_CHAR(tty); |
info | 767 | kernel/chr_drv/serial.c | mcr = serial_in(info, UART_MCR); |
info | 769 | kernel/chr_drv/serial.c | serial_out(info, UART_MCR, mcr); |
info | 781 | kernel/chr_drv/serial.c | static int get_serial_info(struct async_struct * info, |
info | 789 | kernel/chr_drv/serial.c | tmp.type = info->type; |
info | 790 | kernel/chr_drv/serial.c | tmp.line = info->line; |
info | 791 | kernel/chr_drv/serial.c | tmp.port = info->port; |
info | 792 | kernel/chr_drv/serial.c | tmp.irq = info->irq; |
info | 793 | kernel/chr_drv/serial.c | tmp.flags = info->flags; |
info | 794 | kernel/chr_drv/serial.c | tmp.baud_base = info->baud_base; |
info | 795 | kernel/chr_drv/serial.c | tmp.close_delay = info->close_delay; |
info | 800 | kernel/chr_drv/serial.c | static int set_serial_info(struct async_struct * info, |
info | 814 | kernel/chr_drv/serial.c | old_info = *info; |
info | 816 | kernel/chr_drv/serial.c | info->flags = ((info->flags & ~ASYNC_SPD_MASK) | |
info | 818 | kernel/chr_drv/serial.c | info->custom_divisor = new.custom_divisor; |
info | 828 | kernel/chr_drv/serial.c | info->baud_base = new.baud_base; |
info | 829 | kernel/chr_drv/serial.c | info->flags = ((info->flags & ~ASYNC_FLAGS) | |
info | 831 | kernel/chr_drv/serial.c | info->custom_divisor = new.custom_divisor; |
info | 832 | kernel/chr_drv/serial.c | info->type = new.type; |
info | 833 | kernel/chr_drv/serial.c | info->close_delay = new.close_delay; |
info | 837 | kernel/chr_drv/serial.c | irq = info->irq; |
info | 846 | kernel/chr_drv/serial.c | if (new.port && info->type && |
info | 847 | kernel/chr_drv/serial.c | ((irq != new.irq) || !(info->flags & ASYNC_INITIALIZED))) { |
info | 855 | kernel/chr_drv/serial.c | *info = old_info; |
info | 862 | kernel/chr_drv/serial.c | (new.port != info->port)) { |
info | 867 | kernel/chr_drv/serial.c | if (info->flags & ASYNC_INITIALIZED) { |
info | 868 | kernel/chr_drv/serial.c | shutdown(info); |
info | 869 | kernel/chr_drv/serial.c | if (info->next_port) |
info | 870 | kernel/chr_drv/serial.c | info->next_port->prev_port = info->prev_port; |
info | 871 | kernel/chr_drv/serial.c | if (info->prev_port) |
info | 872 | kernel/chr_drv/serial.c | info->prev_port->next_port = info->next_port; |
info | 874 | kernel/chr_drv/serial.c | IRQ_ports[irq] = info->next_port; |
info | 879 | kernel/chr_drv/serial.c | info->irq = new.irq; |
info | 880 | kernel/chr_drv/serial.c | info->port = new.port; |
info | 884 | kernel/chr_drv/serial.c | if (new.port && info->type && |
info | 885 | kernel/chr_drv/serial.c | !(info->flags & ASYNC_INITIALIZED)) { |
info | 889 | kernel/chr_drv/serial.c | info->prev_port = 0; |
info | 890 | kernel/chr_drv/serial.c | info->next_port = IRQ_ports[info->irq]; |
info | 891 | kernel/chr_drv/serial.c | if (info->next_port) |
info | 892 | kernel/chr_drv/serial.c | info->next_port->prev_port = info; |
info | 893 | kernel/chr_drv/serial.c | IRQ_ports[info->irq] = info; |
info | 894 | kernel/chr_drv/serial.c | figure_IRQ_timeout(info->irq); |
info | 895 | kernel/chr_drv/serial.c | startup(info); |
info | 896 | kernel/chr_drv/serial.c | change_speed(info->line); |
info | 898 | kernel/chr_drv/serial.c | (info->flags & ASYNC_SPD_MASK)) || |
info | 899 | kernel/chr_drv/serial.c | (old_info.custom_divisor != info->custom_divisor)) |
info | 900 | kernel/chr_drv/serial.c | change_speed(info->line); |
info | 908 | kernel/chr_drv/serial.c | static int get_modem_info(struct async_struct * info, unsigned int *value) |
info | 913 | kernel/chr_drv/serial.c | control = serial_in(info, UART_MCR); |
info | 914 | kernel/chr_drv/serial.c | status = serial_in(info, UART_MSR); |
info | 925 | kernel/chr_drv/serial.c | static int set_modem_info(struct async_struct * info, unsigned int cmd, |
info | 931 | kernel/chr_drv/serial.c | control = serial_in(info, UART_MCR); |
info | 954 | kernel/chr_drv/serial.c | serial_out(info, UART_MCR, control); |
info | 961 | kernel/chr_drv/serial.c | static void send_break( struct async_struct * info, int duration) |
info | 963 | kernel/chr_drv/serial.c | if (!info->port) |
info | 967 | kernel/chr_drv/serial.c | serial_out(info, UART_LCR, serial_inp(info, UART_LCR) | UART_LCR_SBC); |
info | 969 | kernel/chr_drv/serial.c | serial_out(info, UART_LCR, serial_inp(info, UART_LCR) & ~UART_LCR_SBC); |
info | 976 | kernel/chr_drv/serial.c | struct async_struct * info; |
info | 981 | kernel/chr_drv/serial.c | info = rs_table + line; |
info | 987 | kernel/chr_drv/serial.c | send_break(info, HZ/4); /* 1/4 second */ |
info | 991 | kernel/chr_drv/serial.c | send_break(info, arg ? arg*(HZ/10) : HZ/4); |
info | 1010 | kernel/chr_drv/serial.c | return get_modem_info(info, (unsigned int *) arg); |
info | 1014 | kernel/chr_drv/serial.c | return set_modem_info(info, cmd, (unsigned int *) arg); |
info | 1020 | kernel/chr_drv/serial.c | return get_serial_info(info, |
info | 1023 | kernel/chr_drv/serial.c | return set_serial_info(info, |
info | 1034 | kernel/chr_drv/serial.c | struct async_struct *info; |
info | 1039 | kernel/chr_drv/serial.c | info = &rs_table[DEV_TO_SL(tty->line)]; |
info | 1051 | kernel/chr_drv/serial.c | wake_up_interruptible(&info->open_wait); |
info | 1054 | kernel/chr_drv/serial.c | info->read_status_mask = UART_LSR_BI | UART_LSR_FE | |
info | 1057 | kernel/chr_drv/serial.c | info->read_status_mask = UART_LSR_BI | UART_LSR_FE; |
info | 1072 | kernel/chr_drv/serial.c | struct async_struct * info; |
info | 1078 | kernel/chr_drv/serial.c | info = rs_table + line; |
info | 1080 | kernel/chr_drv/serial.c | printk("rs_close ttys%d, count = %d\n", info->line, info->count); |
info | 1082 | kernel/chr_drv/serial.c | if (--info->count > 0) |
info | 1087 | kernel/chr_drv/serial.c | info->event = 0; |
info | 1088 | kernel/chr_drv/serial.c | info->count = 0; |
info | 1089 | kernel/chr_drv/serial.c | info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CALLOUT_ACTIVE); |
info | 1090 | kernel/chr_drv/serial.c | if (info->blocked_open) { |
info | 1091 | kernel/chr_drv/serial.c | shutdown(info); |
info | 1092 | kernel/chr_drv/serial.c | if (info->close_delay) { |
info | 1094 | kernel/chr_drv/serial.c | current->timeout = jiffies + info->close_delay; |
info | 1097 | kernel/chr_drv/serial.c | startup(info); |
info | 1100 | kernel/chr_drv/serial.c | if (info->flags & ASYNC_INITIALIZED) { |
info | 1101 | kernel/chr_drv/serial.c | shutdown(info); |
info | 1102 | kernel/chr_drv/serial.c | irq = info->irq; |
info | 1105 | kernel/chr_drv/serial.c | if (info->next_port) |
info | 1106 | kernel/chr_drv/serial.c | info->next_port->prev_port = info->prev_port; |
info | 1107 | kernel/chr_drv/serial.c | if (info->prev_port) |
info | 1108 | kernel/chr_drv/serial.c | info->prev_port->next_port = info->next_port; |
info | 1110 | kernel/chr_drv/serial.c | IRQ_ports[irq] = info->next_port; |
info | 1115 | kernel/chr_drv/serial.c | info->tty = 0; |
info | 1124 | kernel/chr_drv/serial.c | struct async_struct *info) |
info | 1134 | kernel/chr_drv/serial.c | if (info->flags & ASYNC_NORMAL_ACTIVE) |
info | 1136 | kernel/chr_drv/serial.c | info->flags |= ASYNC_CALLOUT_ACTIVE; |
info | 1145 | kernel/chr_drv/serial.c | if (info->flags & ASYNC_CALLOUT_ACTIVE) |
info | 1147 | kernel/chr_drv/serial.c | info->flags |= ASYNC_NORMAL_ACTIVE; |
info | 1159 | kernel/chr_drv/serial.c | add_wait_queue(&info->open_wait, &wait); |
info | 1162 | kernel/chr_drv/serial.c | info->line, info->count); |
info | 1164 | kernel/chr_drv/serial.c | info->count--; |
info | 1165 | kernel/chr_drv/serial.c | info->blocked_open++; |
info | 1167 | kernel/chr_drv/serial.c | serial_out(info, UART_MCR, |
info | 1168 | kernel/chr_drv/serial.c | serial_inp(info, UART_MCR) | UART_MCR_DTR); |
info | 1171 | kernel/chr_drv/serial.c | if (info->flags & ASYNC_HUP_NOTIFY) |
info | 1177 | kernel/chr_drv/serial.c | if (!(info->flags & ASYNC_CALLOUT_ACTIVE) && |
info | 1179 | kernel/chr_drv/serial.c | (serial_in(info, UART_MSR) & UART_MSR_DCD))) |
info | 1187 | kernel/chr_drv/serial.c | info->line, info->count); |
info | 1192 | kernel/chr_drv/serial.c | remove_wait_queue(&info->open_wait, &wait); |
info | 1193 | kernel/chr_drv/serial.c | info->count++; |
info | 1194 | kernel/chr_drv/serial.c | info->blocked_open--; |
info | 1197 | kernel/chr_drv/serial.c | info->line, info->count); |
info | 1201 | kernel/chr_drv/serial.c | info->flags |= ASYNC_NORMAL_ACTIVE; |
info | 1213 | kernel/chr_drv/serial.c | struct async_struct *info; |
info | 1220 | kernel/chr_drv/serial.c | info = rs_table + line; |
info | 1222 | kernel/chr_drv/serial.c | printk("rs_open ttys%d, count = %d\n", info->line, info->count); |
info | 1224 | kernel/chr_drv/serial.c | info->count++; |
info | 1225 | kernel/chr_drv/serial.c | info->tty = tty; |
info | 1233 | kernel/chr_drv/serial.c | if (!(info->flags & ASYNC_INITIALIZED)) { |
info | 1234 | kernel/chr_drv/serial.c | if (!info->port || !info->type) { |
info | 1238 | kernel/chr_drv/serial.c | irq = info->irq; |
info | 1253 | kernel/chr_drv/serial.c | info->prev_port = 0; |
info | 1254 | kernel/chr_drv/serial.c | info->next_port = IRQ_ports[irq]; |
info | 1255 | kernel/chr_drv/serial.c | if (info->next_port) |
info | 1256 | kernel/chr_drv/serial.c | info->next_port->prev_port = info; |
info | 1257 | kernel/chr_drv/serial.c | IRQ_ports[irq] = info; |
info | 1260 | kernel/chr_drv/serial.c | startup(info); |
info | 1261 | kernel/chr_drv/serial.c | change_speed(info->line); |
info | 1269 | kernel/chr_drv/serial.c | retval = block_til_ready(tty, filp, info); |
info | 1317 | kernel/chr_drv/serial.c | static int get_auto_irq(struct async_struct *info) |
info | 1320 | kernel/chr_drv/serial.c | unsigned short ICP=0, port = info->port; |
info | 1327 | kernel/chr_drv/serial.c | save_IER = serial_inp(info, UART_IER); |
info | 1328 | kernel/chr_drv/serial.c | save_MCR = serial_inp(info, UART_MCR); |
info | 1329 | kernel/chr_drv/serial.c | if (info->flags & ASYNC_FOURPORT) { |
info | 1330 | kernel/chr_drv/serial.c | serial_outp(info, UART_MCR, UART_MCR_DTR | UART_MCR_RTS); |
info | 1331 | kernel/chr_drv/serial.c | serial_outp(info, UART_IER, 0x0f); /* enable all intrs */ |
info | 1337 | kernel/chr_drv/serial.c | serial_outp(info, UART_MCR, |
info | 1339 | kernel/chr_drv/serial.c | serial_outp(info, UART_IER, 0x0f); /* enable all intrs */ |
info | 1344 | kernel/chr_drv/serial.c | (void)serial_inp(info, UART_LSR); |
info | 1345 | kernel/chr_drv/serial.c | (void)serial_inp(info, UART_RX); |
info | 1346 | kernel/chr_drv/serial.c | (void)serial_inp(info, UART_IIR); |
info | 1347 | kernel/chr_drv/serial.c | (void)serial_inp(info, UART_MSR); |
info | 1357 | kernel/chr_drv/serial.c | serial_outp(info, UART_IER, save_IER); |
info | 1358 | kernel/chr_drv/serial.c | serial_outp(info, UART_MCR, save_MCR); |
info | 1359 | kernel/chr_drv/serial.c | if (info->flags & ASYNC_FOURPORT) |
info | 1375 | kernel/chr_drv/serial.c | static void init(struct async_struct * info) |
info | 1378 | kernel/chr_drv/serial.c | unsigned port = info->port; |
info | 1388 | kernel/chr_drv/serial.c | scratch = serial_inp(info, UART_IER); |
info | 1389 | kernel/chr_drv/serial.c | serial_outp(info, UART_IER, 0); |
info | 1390 | kernel/chr_drv/serial.c | scratch2 = serial_inp(info, UART_IER); |
info | 1391 | kernel/chr_drv/serial.c | serial_outp(info, UART_IER, scratch); |
info | 1404 | kernel/chr_drv/serial.c | if (!(info->flags & ASYNC_SKIP_TEST)) { |
info | 1405 | kernel/chr_drv/serial.c | scratch = serial_inp(info, UART_MCR); |
info | 1406 | kernel/chr_drv/serial.c | serial_outp(info, UART_MCR, UART_MCR_LOOP | scratch); |
info | 1407 | kernel/chr_drv/serial.c | scratch2 = serial_inp(info, UART_MSR); |
info | 1408 | kernel/chr_drv/serial.c | serial_outp(info, UART_MCR, UART_MCR_LOOP | 0x0A); |
info | 1409 | kernel/chr_drv/serial.c | status1 = serial_inp(info, UART_MSR) & 0xF0; |
info | 1410 | kernel/chr_drv/serial.c | serial_outp(info, UART_MCR, scratch); |
info | 1411 | kernel/chr_drv/serial.c | serial_outp(info, UART_MSR, scratch2); |
info | 1413 | kernel/chr_drv/serial.c | info->type = PORT_UNKNOWN; |
info | 1429 | kernel/chr_drv/serial.c | scratch = get_auto_irq(info); |
info | 1431 | kernel/chr_drv/serial.c | scratch2 = get_auto_irq(info); |
info | 1440 | kernel/chr_drv/serial.c | info->irq = scratch; |
info | 1442 | kernel/chr_drv/serial.c | if (info->irq != scratch) |
info | 1444 | kernel/chr_drv/serial.c | info->line, scratch, info->irq); |
info | 1448 | kernel/chr_drv/serial.c | info->type = PORT_UNKNOWN; |
info | 1451 | kernel/chr_drv/serial.c | printk("Warning: auto IRQ detection for tty%d failed; using default IRQ.\n", info->line); |
info | 1457 | kernel/chr_drv/serial.c | info->xmit_fifo_size = 1; |
info | 1460 | kernel/chr_drv/serial.c | info->type = PORT_16450; |
info | 1463 | kernel/chr_drv/serial.c | info->type = PORT_UNKNOWN; |
info | 1466 | kernel/chr_drv/serial.c | info->type = PORT_16550; |
info | 1469 | kernel/chr_drv/serial.c | info->type = PORT_16550A; |
info | 1470 | kernel/chr_drv/serial.c | info->xmit_fifo_size = 16; |
info | 1473 | kernel/chr_drv/serial.c | if (info->type == PORT_16450) { |
info | 1481 | kernel/chr_drv/serial.c | info->type = PORT_8250; |
info | 1483 | kernel/chr_drv/serial.c | shutdown(info); |
info | 1492 | kernel/chr_drv/serial.c | struct async_struct * info; |
info | 1534 | kernel/chr_drv/serial.c | for (i = 0, info = rs_table; i < NR_PORTS; i++,info++) { |
info | 1535 | kernel/chr_drv/serial.c | info->line = i; |
info | 1536 | kernel/chr_drv/serial.c | info->tty = 0; |
info | 1537 | kernel/chr_drv/serial.c | info->type = PORT_UNKNOWN; |
info | 1538 | kernel/chr_drv/serial.c | info->custom_divisor = 0; |
info | 1539 | kernel/chr_drv/serial.c | info->close_delay = 50; |
info | 1540 | kernel/chr_drv/serial.c | info->x_char = 0; |
info | 1541 | kernel/chr_drv/serial.c | info->event = 0; |
info | 1542 | kernel/chr_drv/serial.c | info->count = 0; |
info | 1543 | kernel/chr_drv/serial.c | info->blocked_open = 0; |
info | 1544 | kernel/chr_drv/serial.c | info->open_wait = 0; |
info | 1545 | kernel/chr_drv/serial.c | info->next_port = 0; |
info | 1546 | kernel/chr_drv/serial.c | info->prev_port = 0; |
info | 1547 | kernel/chr_drv/serial.c | init(info); |
info | 1548 | kernel/chr_drv/serial.c | if (info->type == PORT_UNKNOWN) |
info | 1550 | kernel/chr_drv/serial.c | printk("tty%02d%s at 0x%04x (irq = %d)", info->line, |
info | 1551 | kernel/chr_drv/serial.c | (info->flags & ASYNC_FOURPORT) ? " FourPort" : "", |
info | 1552 | kernel/chr_drv/serial.c | info->port, info->irq); |
info | 1553 | kernel/chr_drv/serial.c | switch (info->type) { |
info | 17 | kernel/info.c | int sys_sysinfo(struct sysinfo *info) |
info | 23 | kernel/info.c | error = verify_area(VERIFY_WRITE, info, sizeof(struct sysinfo)); |
info | 40 | kernel/info.c | memcpy_tofs(info, &val, sizeof(struct sysinfo)); |
info | 177 | kernel/sys.c | struct vm86_struct info; |
info | 182 | kernel/sys.c | memcpy_fromfs(&info,v86,sizeof(info)); |
info | 186 | kernel/sys.c | info.regs.__null_ds = 0; |
info | 187 | kernel/sys.c | info.regs.__null_es = 0; |
info | 188 | kernel/sys.c | info.regs.__null_fs = 0; |
info | 189 | kernel/sys.c | info.regs.__null_gs = 0; |
info | 195 | kernel/sys.c | info.regs.eflags &= 0x00000dd5; |
info | 196 | kernel/sys.c | info.regs.eflags |= 0xfffff22a & pt_regs->eflags; |
info | 197 | kernel/sys.c | info.regs.eflags |= VM_MASK; |
info | 201 | kernel/sys.c | current->screen_bitmap = info.screen_bitmap; |
info | 202 | kernel/sys.c | if (info.flags & VM86_SCREEN_BITMAP) |
info | 206 | kernel/sys.c | "ret"::"g" ((long) &(info.regs)),"a" (info.regs.eax)); |