tag | line | file | source code |
info | 104 | arch/i386/kernel/vm86.c | struct vm86_struct info; |
info | 114 | arch/i386/kernel/vm86.c | memcpy_fromfs(&info,v86,sizeof(info)); |
info | 118 | arch/i386/kernel/vm86.c | info.regs.__null_ds = 0; |
info | 119 | arch/i386/kernel/vm86.c | info.regs.__null_es = 0; |
info | 120 | arch/i386/kernel/vm86.c | info.regs.__null_fs = 0; |
info | 121 | arch/i386/kernel/vm86.c | info.regs.__null_gs = 0; |
info | 127 | arch/i386/kernel/vm86.c | VEFLAGS = info.regs.eflags; |
info | 128 | arch/i386/kernel/vm86.c | info.regs.eflags &= SAFE_MASK; |
info | 129 | arch/i386/kernel/vm86.c | info.regs.eflags |= pt_regs->eflags & ~SAFE_MASK; |
info | 130 | arch/i386/kernel/vm86.c | info.regs.eflags |= VM_MASK; |
info | 132 | arch/i386/kernel/vm86.c | switch (info.cpu_type) { |
info | 155 | arch/i386/kernel/vm86.c | current->tss.screen_bitmap = info.screen_bitmap; |
info | 156 | arch/i386/kernel/vm86.c | if (info.flags & VM86_SCREEN_BITMAP) |
info | 161 | arch/i386/kernel/vm86.c | :"r" (&info.regs)); |
info | 679 | arch/i386/math-emu/fpu_entry.c | void math_abort(struct info * info, unsigned int signal) |
info | 686 | arch/i386/math-emu/fpu_entry.c | __asm__("movl %0,%%esp ; ret": :"g" (((long) info)-4)); |
info | 55 | arch/i386/math-emu/fpu_proto.h | extern void math_abort(struct info *info, unsigned int signal); |
info | 21 | arch/i386/math-emu/fpu_system.h | #define SETUP_DATA_AREA(arg) FPU_info = (struct info *) &arg |
info | 37 | arch/i386/math-emu/fpu_system.h | #define FPU_info (I387.soft.info) |
info | 34 | arch/i386/math-emu/get_address.c | offsetof(struct info,___eax), |
info | 35 | arch/i386/math-emu/get_address.c | offsetof(struct info,___ecx), |
info | 36 | arch/i386/math-emu/get_address.c | offsetof(struct info,___edx), |
info | 37 | arch/i386/math-emu/get_address.c | offsetof(struct info,___ebx), |
info | 38 | arch/i386/math-emu/get_address.c | offsetof(struct info,___esp), |
info | 39 | arch/i386/math-emu/get_address.c | offsetof(struct info,___ebp), |
info | 40 | arch/i386/math-emu/get_address.c | offsetof(struct info,___esi), |
info | 41 | arch/i386/math-emu/get_address.c | offsetof(struct info,___edi) |
info | 47 | arch/i386/math-emu/get_address.c | offsetof(struct info,___cs), |
info | 48 | arch/i386/math-emu/get_address.c | offsetof(struct info,___vm86_ds), |
info | 49 | arch/i386/math-emu/get_address.c | offsetof(struct info,___vm86_es), |
info | 50 | arch/i386/math-emu/get_address.c | offsetof(struct info,___vm86_fs), |
info | 51 | arch/i386/math-emu/get_address.c | offsetof(struct info,___vm86_gs), |
info | 52 | arch/i386/math-emu/get_address.c | offsetof(struct info,___ss), |
info | 53 | arch/i386/math-emu/get_address.c | offsetof(struct info,___vm86_ds) |
info | 60 | arch/i386/math-emu/get_address.c | offsetof(struct info,___cs), |
info | 61 | arch/i386/math-emu/get_address.c | offsetof(struct info,___ds), |
info | 62 | arch/i386/math-emu/get_address.c | offsetof(struct info,___es), |
info | 63 | arch/i386/math-emu/get_address.c | offsetof(struct info,___fs), |
info | 64 | arch/i386/math-emu/get_address.c | offsetof(struct info,___gs), |
info | 65 | arch/i386/math-emu/get_address.c | offsetof(struct info,___ss), |
info | 66 | arch/i386/math-emu/get_address.c | offsetof(struct info,___ds) |
info | 847 | drivers/block/ide-cd.c | struct cdrom_info *info = &drive->cdrom_info; |
info | 852 | drivers/block/ide-cd.c | info->nsectors_buffered); |
info | 859 | drivers/block/ide-cd.c | if (info->sector_buffer == NULL) |
info | 861 | drivers/block/ide-cd.c | info->sector_buffer = (char *) kmalloc (SECTOR_BUFFER_SIZE, GFP_ATOMIC); |
info | 864 | drivers/block/ide-cd.c | if (info->sector_buffer == NULL) |
info | 869 | drivers/block/ide-cd.c | if (info->nsectors_buffered == 0) |
info | 870 | drivers/block/ide-cd.c | info->sector_buffered = sector; |
info | 873 | drivers/block/ide-cd.c | dest = info->sector_buffer + info->nsectors_buffered * SECTOR_SIZE; |
info | 879 | drivers/block/ide-cd.c | ++info->nsectors_buffered; |
info | 1054 | drivers/block/ide-cd.c | struct cdrom_info *info = &drive->cdrom_info; |
info | 1058 | drivers/block/ide-cd.c | if (info->sector_buffer == NULL) return 0; |
info | 1063 | drivers/block/ide-cd.c | rq->sector >= info->sector_buffered && |
info | 1064 | drivers/block/ide-cd.c | rq->sector < info->sector_buffered + info->nsectors_buffered) |
info | 1070 | drivers/block/ide-cd.c | info->sector_buffer + |
info | 1071 | drivers/block/ide-cd.c | (rq->sector - info->sector_buffered) * SECTOR_SIZE, |
info | 160 | drivers/block/ide.h | byte info[4]; |
info | 1597 | drivers/cdrom/mcdx.c | mcdx_requesttocdata(struct s_drive_stuff *stuffp, struct s_diskinfo *info, int tries) |
info | 1602 | drivers/cdrom/mcdx.c | info->n_first = bcd2uint(buf[1]); |
info | 1603 | drivers/cdrom/mcdx.c | info->n_last = bcd2uint(buf[2]); |
info | 1604 | drivers/cdrom/mcdx.c | info->msf_leadout.minute = buf[3]; |
info | 1605 | drivers/cdrom/mcdx.c | info->msf_leadout.second = buf[4]; |
info | 1606 | drivers/cdrom/mcdx.c | info->msf_leadout.frame = buf[5]; |
info | 1607 | drivers/cdrom/mcdx.c | info->msf_first.minute = buf[6]; |
info | 1608 | drivers/cdrom/mcdx.c | info->msf_first.second = buf[7]; |
info | 1609 | drivers/cdrom/mcdx.c | info->msf_first.frame = buf[8]; |
info | 502 | drivers/cdrom/sjcd.c | struct sjcd_hw_disk_info info; |
info | 529 | drivers/cdrom/sjcd.c | if( sjcd_load_response( &info, sizeof( info ) ) != 0 ){ |
info | 533 | drivers/cdrom/sjcd.c | sjcd_first_track_no = bcd2bin( info.un.track_no ); |
info | 558 | drivers/cdrom/sjcd.c | if( sjcd_load_response( &info, sizeof( info ) ) != 0 ){ |
info | 562 | drivers/cdrom/sjcd.c | sjcd_last_track_no = bcd2bin( info.un.track_no ); |
info | 616 | drivers/cdrom/sjcd.c | if( sjcd_load_response( &info, sizeof( info ) ) != 0 ){ |
info | 620 | drivers/cdrom/sjcd.c | sjcd_disk_length.min = info.un.track_msf.min; |
info | 621 | drivers/cdrom/sjcd.c | sjcd_disk_length.sec = info.un.track_msf.sec; |
info | 622 | drivers/cdrom/sjcd.c | sjcd_disk_length.frame = info.un.track_msf.frame; |
info | 414 | drivers/char/cyclades.c | serial_paranoia_check(struct cyclades_port *info, |
info | 425 | drivers/char/cyclades.c | if (!info) { |
info | 430 | drivers/char/cyclades.c | if( (long)info < (long)(&cy_port[0]) |
info | 431 | drivers/char/cyclades.c | || (long)(&cy_port[NR_PORTS]) < (long)info ){ |
info | 436 | drivers/char/cyclades.c | if (info->magic != CYCLADES_MAGIC) { |
info | 510 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 516 | drivers/char/cyclades.c | printk("cy_stop ttyC%d\n", info->line); /* */ |
info | 519 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_stop")) |
info | 522 | drivers/char/cyclades.c | cinfo = &cy_card[info->card]; |
info | 524 | drivers/char/cyclades.c | channel = info->line - cinfo->first_line; |
info | 528 | drivers/char/cyclades.c | (cy_card[info->card].base_addr + (cy_chip_offset[chip]<<index)); |
info | 542 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 548 | drivers/char/cyclades.c | printk("cy_start ttyC%d\n", info->line); /* */ |
info | 551 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_start")) |
info | 554 | drivers/char/cyclades.c | cinfo = &cy_card[info->card]; |
info | 556 | drivers/char/cyclades.c | channel = info->line - cinfo->first_line; |
info | 560 | drivers/char/cyclades.c | (cy_card[info->card].base_addr + (cy_chip_offset[chip]<<index)); |
info | 578 | drivers/char/cyclades.c | cy_sched_event(struct cyclades_port *info, int event) |
info | 580 | drivers/char/cyclades.c | info->event |= 1 << event; /* remember what kind of event and who */ |
info | 581 | drivers/char/cyclades.c | queue_task_irq_off(&info->tqueue, &tq_cyclades); /* it belongs to */ |
info | 627 | drivers/char/cyclades.c | struct cyclades_port *info; |
info | 673 | drivers/char/cyclades.c | info = &cy_port[i]; |
info | 674 | drivers/char/cyclades.c | info->last_active = jiffies; |
info | 679 | drivers/char/cyclades.c | if(info->tty == 0){ |
info | 690 | drivers/char/cyclades.c | tty = info->tty; |
info | 694 | drivers/char/cyclades.c | if(data & info->ignore_status_mask){ |
info | 699 | drivers/char/cyclades.c | if (data & info->read_status_mask){ |
info | 705 | drivers/char/cyclades.c | if (info->flags & ASYNC_SAK){ |
info | 754 | drivers/char/cyclades.c | ++info->mon.int_count; |
info | 755 | drivers/char/cyclades.c | info->mon.char_count += char_count; |
info | 756 | drivers/char/cyclades.c | if (char_count > info->mon.char_max) |
info | 757 | drivers/char/cyclades.c | info->mon.char_max = char_count; |
info | 758 | drivers/char/cyclades.c | info->mon.char_last = char_count; |
info | 797 | drivers/char/cyclades.c | info = &cy_port[i]; |
info | 798 | drivers/char/cyclades.c | info->last_active = jiffies; |
info | 799 | drivers/char/cyclades.c | if(info->tty == 0){ |
info | 805 | drivers/char/cyclades.c | char_count = info->xmit_fifo_size; |
info | 808 | drivers/char/cyclades.c | if(info->x_char) { /* send special char */ |
info | 809 | drivers/char/cyclades.c | outch = info->x_char; |
info | 812 | drivers/char/cyclades.c | info->x_char = 0; |
info | 815 | drivers/char/cyclades.c | if (info->x_break){ |
info | 828 | drivers/char/cyclades.c | base_addr[CyTDR<<index] = info->x_break*200/HZ; |
info | 832 | drivers/char/cyclades.c | info->x_break = 0; |
info | 836 | drivers/char/cyclades.c | if (!info->xmit_cnt){ |
info | 840 | drivers/char/cyclades.c | if (info->xmit_buf == 0){ |
info | 844 | drivers/char/cyclades.c | if (info->tty->stopped || info->tty->hw_stopped){ |
info | 859 | drivers/char/cyclades.c | outch = info->xmit_buf[info->xmit_tail]; |
info | 861 | drivers/char/cyclades.c | info->xmit_cnt--; |
info | 862 | drivers/char/cyclades.c | info->xmit_tail = (info->xmit_tail + 1) |
info | 867 | drivers/char/cyclades.c | info->xmit_cnt--; |
info | 868 | drivers/char/cyclades.c | info->xmit_tail = (info->xmit_tail + 1) |
info | 879 | drivers/char/cyclades.c | if (info->xmit_cnt < WAKEUP_CHARS) { |
info | 880 | drivers/char/cyclades.c | cy_sched_event(info, Cy_EVENT_WRITE_WAKEUP); |
info | 894 | drivers/char/cyclades.c | info = &cy_port[channel + chip * 4 + cinfo->first_line]; |
info | 895 | drivers/char/cyclades.c | info->last_active = jiffies; |
info | 902 | drivers/char/cyclades.c | if(info->tty == 0){ /* nowhere to put the data, ignore it */ |
info | 906 | drivers/char/cyclades.c | && (info->flags & ASYNC_CHECK_CD)){ |
info | 909 | drivers/char/cyclades.c | cy_sched_event(info, Cy_EVENT_OPEN_WAKEUP); |
info | 910 | drivers/char/cyclades.c | }else if(!((info->flags & ASYNC_CALLOUT_ACTIVE) |
info | 911 | drivers/char/cyclades.c | &&(info->flags & ASYNC_CALLOUT_NOHUP))){ |
info | 913 | drivers/char/cyclades.c | cy_sched_event(info, Cy_EVENT_HANGUP); |
info | 917 | drivers/char/cyclades.c | && (info->flags & ASYNC_CTS_FLOW)){ |
info | 918 | drivers/char/cyclades.c | if(info->tty->stopped){ |
info | 921 | drivers/char/cyclades.c | info->tty->stopped = 0; |
info | 923 | drivers/char/cyclades.c | cy_sched_event(info, Cy_EVENT_WRITE_WAKEUP); |
info | 928 | drivers/char/cyclades.c | info->tty->stopped = 1; |
info | 982 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *) private_; |
info | 985 | drivers/char/cyclades.c | tty = info->tty; |
info | 989 | drivers/char/cyclades.c | if (clear_bit(Cy_EVENT_HANGUP, &info->event)) { |
info | 990 | drivers/char/cyclades.c | tty_hangup(info->tty); |
info | 991 | drivers/char/cyclades.c | wake_up_interruptible(&info->open_wait); |
info | 992 | drivers/char/cyclades.c | info->flags &= ~(ASYNC_NORMAL_ACTIVE| |
info | 995 | drivers/char/cyclades.c | if (clear_bit(Cy_EVENT_OPEN_WAKEUP, &info->event)) { |
info | 996 | drivers/char/cyclades.c | wake_up_interruptible(&info->open_wait); |
info | 998 | drivers/char/cyclades.c | if (clear_bit(Cy_EVENT_WRITE_WAKEUP, &info->event)) { |
info | 1160 | drivers/char/cyclades.c | startup(struct cyclades_port * info) |
info | 1166 | drivers/char/cyclades.c | if (info->flags & ASYNC_INITIALIZED){ |
info | 1170 | drivers/char/cyclades.c | if (!info->type){ |
info | 1171 | drivers/char/cyclades.c | if (info->tty){ |
info | 1172 | drivers/char/cyclades.c | set_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 1176 | drivers/char/cyclades.c | if (!info->xmit_buf){ |
info | 1177 | drivers/char/cyclades.c | info->xmit_buf = (unsigned char *) get_free_page (GFP_KERNEL); |
info | 1178 | drivers/char/cyclades.c | if (!info->xmit_buf){ |
info | 1183 | drivers/char/cyclades.c | config_setup(info); |
info | 1185 | drivers/char/cyclades.c | card = info->card; |
info | 1186 | drivers/char/cyclades.c | channel = (info->line) - (cy_card[card].first_line); |
info | 1201 | drivers/char/cyclades.c | base_addr[CyRTPR<<index] = (info->default_timeout |
info | 1202 | drivers/char/cyclades.c | ? info->default_timeout |
info | 1218 | drivers/char/cyclades.c | info->flags |= ASYNC_INITIALIZED; |
info | 1220 | drivers/char/cyclades.c | if (info->tty){ |
info | 1221 | drivers/char/cyclades.c | clear_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 1223 | drivers/char/cyclades.c | info->xmit_cnt = info->xmit_head = info->xmit_tail = 0; |
info | 1234 | drivers/char/cyclades.c | start_xmit( struct cyclades_port *info ) |
info | 1240 | drivers/char/cyclades.c | card = info->card; |
info | 1241 | drivers/char/cyclades.c | channel = (info->line) - (cy_card[card].first_line); |
info | 1259 | drivers/char/cyclades.c | shutdown(struct cyclades_port * info) |
info | 1265 | drivers/char/cyclades.c | if (!(info->flags & ASYNC_INITIALIZED)){ |
info | 1270 | drivers/char/cyclades.c | card = info->card; |
info | 1271 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 1290 | drivers/char/cyclades.c | if (info->xmit_buf){ |
info | 1291 | drivers/char/cyclades.c | free_page((unsigned long) info->xmit_buf); |
info | 1292 | drivers/char/cyclades.c | info->xmit_buf = 0; |
info | 1296 | drivers/char/cyclades.c | if (!info->tty || (info->tty->termios->c_cflag & HUPCL)) { |
info | 1308 | drivers/char/cyclades.c | if (info->tty){ |
info | 1309 | drivers/char/cyclades.c | set_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 1311 | drivers/char/cyclades.c | info->flags &= ~ASYNC_INITIALIZED; |
info | 1324 | drivers/char/cyclades.c | config_setup(struct cyclades_port * info) |
info | 1332 | drivers/char/cyclades.c | if (!info->tty || !info->tty->termios){ |
info | 1335 | drivers/char/cyclades.c | if (info->line == -1){ |
info | 1338 | drivers/char/cyclades.c | cflag = info->tty->termios->c_cflag; |
info | 1361 | drivers/char/cyclades.c | info->tty->termios->c_cflag &= ~CBAUDEX; |
info | 1365 | drivers/char/cyclades.c | if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_HI) |
info | 1367 | drivers/char/cyclades.c | if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_VHI) |
info | 1370 | drivers/char/cyclades.c | info->tbpr = baud_bpr[i]; /* Tx BPR */ |
info | 1371 | drivers/char/cyclades.c | info->tco = baud_co[i]; /* Tx CO */ |
info | 1372 | drivers/char/cyclades.c | info->rbpr = baud_bpr[i]; /* Rx BPR */ |
info | 1373 | drivers/char/cyclades.c | info->rco = baud_co[i]; /* Rx CO */ |
info | 1375 | drivers/char/cyclades.c | info->timeout = (info->xmit_fifo_size*HZ*30/269) + 2; |
info | 1378 | drivers/char/cyclades.c | info->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2; |
info | 1381 | drivers/char/cyclades.c | info->timeout = 0; |
info | 1388 | drivers/char/cyclades.c | info->cor5 = 0; |
info | 1389 | drivers/char/cyclades.c | info->cor4 = 0; |
info | 1390 | drivers/char/cyclades.c | info->cor3 = (info->default_threshold |
info | 1391 | drivers/char/cyclades.c | ? info->default_threshold |
info | 1393 | drivers/char/cyclades.c | info->cor2 = CyETC; |
info | 1396 | drivers/char/cyclades.c | info->cor1 = Cy_5_BITS; |
info | 1399 | drivers/char/cyclades.c | info->cor1 = Cy_6_BITS; |
info | 1402 | drivers/char/cyclades.c | info->cor1 = Cy_7_BITS; |
info | 1405 | drivers/char/cyclades.c | info->cor1 = Cy_8_BITS; |
info | 1409 | drivers/char/cyclades.c | info->cor1 |= Cy_2_STOP; |
info | 1413 | drivers/char/cyclades.c | info->cor1 |= CyPARITY_O; |
info | 1415 | drivers/char/cyclades.c | info->cor1 |= CyPARITY_E; |
info | 1418 | drivers/char/cyclades.c | info->cor1 |= CyPARITY_NONE; |
info | 1423 | drivers/char/cyclades.c | info->flags |= ASYNC_CTS_FLOW; |
info | 1424 | drivers/char/cyclades.c | info->cor2 |= CyCtsAE; |
info | 1426 | drivers/char/cyclades.c | info->flags &= ~ASYNC_CTS_FLOW; |
info | 1427 | drivers/char/cyclades.c | info->cor2 &= ~CyCtsAE; |
info | 1430 | drivers/char/cyclades.c | info->flags &= ~ASYNC_CHECK_CD; |
info | 1432 | drivers/char/cyclades.c | info->flags |= ASYNC_CHECK_CD; |
info | 1444 | drivers/char/cyclades.c | card = info->card; |
info | 1445 | drivers/char/cyclades.c | channel = (info->line) - (cy_card[card].first_line); |
info | 1457 | drivers/char/cyclades.c | base_addr[CyTCOR<<index] = info->tco; |
info | 1458 | drivers/char/cyclades.c | base_addr[CyTBPR<<index] = info->tbpr; |
info | 1459 | drivers/char/cyclades.c | base_addr[CyRCOR<<index] = info->rco; |
info | 1460 | drivers/char/cyclades.c | base_addr[CyRBPR<<index] = info->rbpr; |
info | 1464 | drivers/char/cyclades.c | base_addr[CySCHR1<<index] = START_CHAR(info->tty); |
info | 1465 | drivers/char/cyclades.c | base_addr[CySCHR2<<index] = STOP_CHAR(info->tty); |
info | 1466 | drivers/char/cyclades.c | base_addr[CyCOR1<<index] = info->cor1; |
info | 1467 | drivers/char/cyclades.c | base_addr[CyCOR2<<index] = info->cor2; |
info | 1468 | drivers/char/cyclades.c | base_addr[CyCOR3<<index] = info->cor3; |
info | 1469 | drivers/char/cyclades.c | base_addr[CyCOR4<<index] = info->cor4; |
info | 1470 | drivers/char/cyclades.c | base_addr[CyCOR5<<index] = info->cor5; |
info | 1476 | drivers/char/cyclades.c | base_addr[CyRTPR<<index] = (info->default_timeout |
info | 1477 | drivers/char/cyclades.c | ? info->default_timeout |
info | 1480 | drivers/char/cyclades.c | if (C_CLOCAL(info->tty)) { |
info | 1508 | drivers/char/cyclades.c | if (info->tty){ |
info | 1509 | drivers/char/cyclades.c | clear_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 1520 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1524 | drivers/char/cyclades.c | printk("cy_put_char ttyC%d\n", info->line); |
info | 1527 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_put_char")) |
info | 1530 | drivers/char/cyclades.c | if (!tty || !info->xmit_buf) |
info | 1534 | drivers/char/cyclades.c | if (info->xmit_cnt >= PAGE_SIZE - 1) { |
info | 1539 | drivers/char/cyclades.c | info->xmit_buf[info->xmit_head++] = ch; |
info | 1540 | drivers/char/cyclades.c | info->xmit_head &= PAGE_SIZE - 1; |
info | 1541 | drivers/char/cyclades.c | info->xmit_cnt++; |
info | 1549 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1555 | drivers/char/cyclades.c | printk("cy_flush_chars ttyC%d\n", info->line); /* */ |
info | 1558 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_flush_chars")) |
info | 1561 | drivers/char/cyclades.c | if (info->xmit_cnt <= 0 || tty->stopped |
info | 1562 | drivers/char/cyclades.c | || tty->hw_stopped || !info->xmit_buf) |
info | 1565 | drivers/char/cyclades.c | card = info->card; |
info | 1566 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 1590 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1595 | drivers/char/cyclades.c | printk("cy_write ttyC%d\n", info->line); /* */ |
info | 1598 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_write")){ |
info | 1602 | drivers/char/cyclades.c | if (!tty || !info->xmit_buf || !tmp_buf){ |
info | 1608 | drivers/char/cyclades.c | c = MIN(count, MIN(SERIAL_XMIT_SIZE - info->xmit_cnt - 1, |
info | 1609 | drivers/char/cyclades.c | SERIAL_XMIT_SIZE - info->xmit_head)); |
info | 1618 | drivers/char/cyclades.c | c = MIN(c, MIN(SERIAL_XMIT_SIZE - info->xmit_cnt - 1, |
info | 1619 | drivers/char/cyclades.c | SERIAL_XMIT_SIZE - info->xmit_head)); |
info | 1620 | drivers/char/cyclades.c | memcpy(info->xmit_buf + info->xmit_head, tmp_buf, c); |
info | 1623 | drivers/char/cyclades.c | memcpy(info->xmit_buf + info->xmit_head, buf, c); |
info | 1624 | drivers/char/cyclades.c | info->xmit_head = (info->xmit_head + c) & (SERIAL_XMIT_SIZE-1); |
info | 1625 | drivers/char/cyclades.c | info->xmit_cnt += c; |
info | 1633 | drivers/char/cyclades.c | if (info->xmit_cnt |
info | 1636 | drivers/char/cyclades.c | start_xmit(info); |
info | 1645 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1649 | drivers/char/cyclades.c | printk("cy_write_room ttyC%d\n", info->line); /* */ |
info | 1652 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_write_room")) |
info | 1654 | drivers/char/cyclades.c | ret = PAGE_SIZE - info->xmit_cnt - 1; |
info | 1664 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1667 | drivers/char/cyclades.c | printk("cy_chars_in_buffer ttyC%d %d\n", info->line, info->xmit_cnt); /* */ |
info | 1670 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_chars_in_buffer")) |
info | 1673 | drivers/char/cyclades.c | return info->xmit_cnt; |
info | 1680 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1684 | drivers/char/cyclades.c | printk("cy_flush_buffer ttyC%d\n", info->line); /* */ |
info | 1687 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_flush_buffer")) |
info | 1690 | drivers/char/cyclades.c | info->xmit_cnt = info->xmit_head = info->xmit_tail = 0; |
info | 1706 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1716 | drivers/char/cyclades.c | printk("cy_throttle ttyC%d\n", info->line); |
info | 1719 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_nthrottle")){ |
info | 1724 | drivers/char/cyclades.c | info->x_char = STOP_CHAR(tty); |
info | 1728 | drivers/char/cyclades.c | card = info->card; |
info | 1729 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 1748 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1758 | drivers/char/cyclades.c | printk("cy_unthrottle ttyC%d\n", info->line); |
info | 1761 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_nthrottle")){ |
info | 1766 | drivers/char/cyclades.c | info->x_char = START_CHAR(tty); |
info | 1770 | drivers/char/cyclades.c | card = info->card; |
info | 1771 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 1787 | drivers/char/cyclades.c | get_serial_info(struct cyclades_port * info, |
info | 1791 | drivers/char/cyclades.c | struct cyclades_card *cinfo = &cy_card[info->card]; |
info | 1797 | drivers/char/cyclades.c | tmp.type = info->type; |
info | 1798 | drivers/char/cyclades.c | tmp.line = info->line; |
info | 1799 | drivers/char/cyclades.c | tmp.port = info->card * 0x100 + info->line - cinfo->first_line; |
info | 1801 | drivers/char/cyclades.c | tmp.flags = info->flags; |
info | 1803 | drivers/char/cyclades.c | tmp.close_delay = info->close_delay; |
info | 1811 | drivers/char/cyclades.c | set_serial_info(struct cyclades_port * info, |
info | 1821 | drivers/char/cyclades.c | old_info = *info; |
info | 1824 | drivers/char/cyclades.c | if ((new_serial.close_delay != info->close_delay) || |
info | 1826 | drivers/char/cyclades.c | (info->flags & ASYNC_FLAGS & ~ASYNC_USR_MASK))) |
info | 1828 | drivers/char/cyclades.c | info->flags = ((info->flags & ~ASYNC_USR_MASK) | |
info | 1839 | drivers/char/cyclades.c | info->flags = ((info->flags & ~ASYNC_FLAGS) | |
info | 1841 | drivers/char/cyclades.c | info->close_delay = new_serial.close_delay; |
info | 1845 | drivers/char/cyclades.c | if (info->flags & ASYNC_INITIALIZED){ |
info | 1846 | drivers/char/cyclades.c | config_setup(info); |
info | 1849 | drivers/char/cyclades.c | return startup(info); |
info | 1854 | drivers/char/cyclades.c | get_modem_info(struct cyclades_port * info, unsigned int *value) |
info | 1862 | drivers/char/cyclades.c | card = info->card; |
info | 1863 | drivers/char/cyclades.c | channel = (info->line) - (cy_card[card].first_line); |
info | 1887 | drivers/char/cyclades.c | set_modem_info(struct cyclades_port * info, unsigned int cmd, |
info | 1895 | drivers/char/cyclades.c | card = info->card; |
info | 1896 | drivers/char/cyclades.c | channel = (info->line) - (cy_card[card].first_line); |
info | 1983 | drivers/char/cyclades.c | send_break( struct cyclades_port * info, int duration) |
info | 1987 | drivers/char/cyclades.c | info->x_break = duration; |
info | 1988 | drivers/char/cyclades.c | if (!info->xmit_cnt ) { |
info | 1989 | drivers/char/cyclades.c | start_xmit(info); |
info | 1994 | drivers/char/cyclades.c | get_mon_info(struct cyclades_port * info, struct cyclades_monitor * mon) |
info | 1997 | drivers/char/cyclades.c | memcpy_tofs(mon, &info->mon, sizeof(struct cyclades_monitor)); |
info | 1998 | drivers/char/cyclades.c | info->mon.int_count = 0; |
info | 1999 | drivers/char/cyclades.c | info->mon.char_count = 0; |
info | 2000 | drivers/char/cyclades.c | info->mon.char_max = 0; |
info | 2001 | drivers/char/cyclades.c | info->mon.char_last = 0; |
info | 2006 | drivers/char/cyclades.c | set_threshold(struct cyclades_port * info, unsigned long value) |
info | 2011 | drivers/char/cyclades.c | card = info->card; |
info | 2012 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 2019 | drivers/char/cyclades.c | info->cor3 &= ~CyREC_FIFO; |
info | 2020 | drivers/char/cyclades.c | info->cor3 |= value & CyREC_FIFO; |
info | 2021 | drivers/char/cyclades.c | base_addr[CyCOR3<<index] = info->cor3; |
info | 2027 | drivers/char/cyclades.c | get_threshold(struct cyclades_port * info, unsigned long *value) |
info | 2033 | drivers/char/cyclades.c | card = info->card; |
info | 2034 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 2047 | drivers/char/cyclades.c | set_default_threshold(struct cyclades_port * info, unsigned long value) |
info | 2049 | drivers/char/cyclades.c | info->default_threshold = value & 0x0f; |
info | 2054 | drivers/char/cyclades.c | get_default_threshold(struct cyclades_port * info, unsigned long *value) |
info | 2056 | drivers/char/cyclades.c | put_fs_long(info->default_threshold,value); |
info | 2061 | drivers/char/cyclades.c | set_timeout(struct cyclades_port * info, unsigned long value) |
info | 2066 | drivers/char/cyclades.c | card = info->card; |
info | 2067 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 2079 | drivers/char/cyclades.c | get_timeout(struct cyclades_port * info, unsigned long *value) |
info | 2085 | drivers/char/cyclades.c | card = info->card; |
info | 2086 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 2099 | drivers/char/cyclades.c | set_default_timeout(struct cyclades_port * info, unsigned long value) |
info | 2101 | drivers/char/cyclades.c | info->default_timeout = value & 0xff; |
info | 2106 | drivers/char/cyclades.c | get_default_timeout(struct cyclades_port * info, unsigned long *value) |
info | 2108 | drivers/char/cyclades.c | put_fs_long(info->default_timeout,value); |
info | 2117 | drivers/char/cyclades.c | struct cyclades_port * info = (struct cyclades_port *)tty->driver_data; |
info | 2121 | drivers/char/cyclades.c | printk("cy_ioctl ttyC%d, cmd = %x arg = %lx\n", info->line, cmd, arg); /* */ |
info | 2132 | drivers/char/cyclades.c | ret_val = get_mon_info(info, (struct cyclades_monitor *)arg); |
info | 2141 | drivers/char/cyclades.c | ret_val = get_threshold(info, (unsigned long *)arg); |
info | 2144 | drivers/char/cyclades.c | ret_val = set_threshold(info, (unsigned long)arg); |
info | 2153 | drivers/char/cyclades.c | ret_val = get_default_threshold(info, (unsigned long *)arg); |
info | 2156 | drivers/char/cyclades.c | ret_val = set_default_threshold(info, (unsigned long)arg); |
info | 2165 | drivers/char/cyclades.c | ret_val = get_timeout(info, (unsigned long *)arg); |
info | 2168 | drivers/char/cyclades.c | ret_val = set_timeout(info, (unsigned long)arg); |
info | 2177 | drivers/char/cyclades.c | ret_val = get_default_timeout(info, (unsigned long *)arg); |
info | 2180 | drivers/char/cyclades.c | ret_val = set_default_timeout(info, (unsigned long)arg); |
info | 2188 | drivers/char/cyclades.c | send_break(info, HZ/4); /* 1/4 second */ |
info | 2195 | drivers/char/cyclades.c | send_break(info, arg ? arg*(HZ/10) : HZ/4); |
info | 2200 | drivers/char/cyclades.c | ret_val = set_modem_info(info, cmd, (unsigned int *) arg); |
info | 2227 | drivers/char/cyclades.c | ret_val = get_modem_info(info, (unsigned int *) arg); |
info | 2236 | drivers/char/cyclades.c | ret_val = get_serial_info(info, |
info | 2240 | drivers/char/cyclades.c | ret_val = set_serial_info(info, |
info | 2260 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 2263 | drivers/char/cyclades.c | printk("cy_set_termios ttyC%d\n", info->line); |
info | 2268 | drivers/char/cyclades.c | config_setup(info); |
info | 2278 | drivers/char/cyclades.c | wake_up_interruptible(&info->open_wait); |
info | 2288 | drivers/char/cyclades.c | struct cyclades_port * info = (struct cyclades_port *)tty->driver_data; |
info | 2292 | drivers/char/cyclades.c | printk("cy_close ttyC%d\n", info->line); |
info | 2295 | drivers/char/cyclades.c | if (!info |
info | 2296 | drivers/char/cyclades.c | || serial_paranoia_check(info, tty->device, "cy_close")){ |
info | 2300 | drivers/char/cyclades.c | printk("cy_close ttyC%d, count = %d\n", info->line, info->count); |
info | 2303 | drivers/char/cyclades.c | if ((tty->count == 1) && (info->count != 1)) { |
info | 2312 | drivers/char/cyclades.c | "info->count is %d\n", info->count); |
info | 2313 | drivers/char/cyclades.c | info->count = 1; |
info | 2316 | drivers/char/cyclades.c | printk("cyc: %d: decrementing count to %d\n", __LINE__, info->count - 1); |
info | 2318 | drivers/char/cyclades.c | if (--info->count < 0) { |
info | 2322 | drivers/char/cyclades.c | info->count = 0; |
info | 2324 | drivers/char/cyclades.c | if (info->count) |
info | 2326 | drivers/char/cyclades.c | info->flags |= ASYNC_CLOSING; |
info | 2331 | drivers/char/cyclades.c | if (info->flags & ASYNC_NORMAL_ACTIVE) |
info | 2332 | drivers/char/cyclades.c | info->normal_termios = *tty->termios; |
info | 2333 | drivers/char/cyclades.c | if (info->flags & ASYNC_CALLOUT_ACTIVE) |
info | 2334 | drivers/char/cyclades.c | info->callout_termios = *tty->termios; |
info | 2335 | drivers/char/cyclades.c | if (info->flags & ASYNC_INITIALIZED) |
info | 2337 | drivers/char/cyclades.c | shutdown(info); |
info | 2342 | drivers/char/cyclades.c | info->event = 0; |
info | 2343 | drivers/char/cyclades.c | info->tty = 0; |
info | 2352 | drivers/char/cyclades.c | if (info->blocked_open) { |
info | 2353 | drivers/char/cyclades.c | if (info->close_delay) { |
info | 2355 | drivers/char/cyclades.c | current->timeout = jiffies + info->close_delay; |
info | 2358 | drivers/char/cyclades.c | wake_up_interruptible(&info->open_wait); |
info | 2360 | drivers/char/cyclades.c | info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CALLOUT_ACTIVE| |
info | 2362 | drivers/char/cyclades.c | wake_up_interruptible(&info->close_wait); |
info | 2377 | drivers/char/cyclades.c | struct cyclades_port * info = (struct cyclades_port *)tty->driver_data; |
info | 2380 | drivers/char/cyclades.c | printk("cy_hangup ttyC%d\n", info->line); /* */ |
info | 2383 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_hangup")) |
info | 2386 | drivers/char/cyclades.c | shutdown(info); |
info | 2388 | drivers/char/cyclades.c | info->event = 0; |
info | 2389 | drivers/char/cyclades.c | info->count = 0; |
info | 2393 | drivers/char/cyclades.c | info->tty = 0; |
info | 2395 | drivers/char/cyclades.c | info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CALLOUT_ACTIVE); |
info | 2396 | drivers/char/cyclades.c | wake_up_interruptible(&info->open_wait); |
info | 2409 | drivers/char/cyclades.c | struct cyclades_port *info) |
info | 2422 | drivers/char/cyclades.c | if (info->flags & ASYNC_CLOSING) { |
info | 2423 | drivers/char/cyclades.c | interruptible_sleep_on(&info->close_wait); |
info | 2424 | drivers/char/cyclades.c | if (info->flags & ASYNC_HUP_NOTIFY){ |
info | 2436 | drivers/char/cyclades.c | if (info->flags & ASYNC_NORMAL_ACTIVE){ |
info | 2439 | drivers/char/cyclades.c | if ((info->flags & ASYNC_CALLOUT_ACTIVE) && |
info | 2440 | drivers/char/cyclades.c | (info->flags & ASYNC_SESSION_LOCKOUT) && |
info | 2441 | drivers/char/cyclades.c | (info->session != current->session)){ |
info | 2444 | drivers/char/cyclades.c | if ((info->flags & ASYNC_CALLOUT_ACTIVE) && |
info | 2445 | drivers/char/cyclades.c | (info->flags & ASYNC_PGRP_LOCKOUT) && |
info | 2446 | drivers/char/cyclades.c | (info->pgrp != current->pgrp)){ |
info | 2449 | drivers/char/cyclades.c | info->flags |= ASYNC_CALLOUT_ACTIVE; |
info | 2458 | drivers/char/cyclades.c | if (info->flags & ASYNC_CALLOUT_ACTIVE){ |
info | 2461 | drivers/char/cyclades.c | info->flags |= ASYNC_NORMAL_ACTIVE; |
info | 2473 | drivers/char/cyclades.c | add_wait_queue(&info->open_wait, &wait); |
info | 2476 | drivers/char/cyclades.c | info->line, info->count);/**/ |
info | 2478 | drivers/char/cyclades.c | info->count--; |
info | 2480 | drivers/char/cyclades.c | printk("cyc: %d: decrementing count to %d\n", __LINE__, info->count); |
info | 2482 | drivers/char/cyclades.c | info->blocked_open++; |
info | 2484 | drivers/char/cyclades.c | cinfo = &cy_card[info->card]; |
info | 2485 | drivers/char/cyclades.c | channel = info->line - cinfo->first_line; |
info | 2493 | drivers/char/cyclades.c | if (!(info->flags & ASYNC_CALLOUT_ACTIVE)){ |
info | 2506 | drivers/char/cyclades.c | || !(info->flags & ASYNC_INITIALIZED) ){ |
info | 2507 | drivers/char/cyclades.c | if (info->flags & ASYNC_HUP_NOTIFY) { |
info | 2517 | drivers/char/cyclades.c | if (!(info->flags & ASYNC_CALLOUT_ACTIVE) |
info | 2518 | drivers/char/cyclades.c | && !(info->flags & ASYNC_CLOSING) |
info | 2531 | drivers/char/cyclades.c | info->line, info->count);/**/ |
info | 2536 | drivers/char/cyclades.c | remove_wait_queue(&info->open_wait, &wait); |
info | 2538 | drivers/char/cyclades.c | info->count++; |
info | 2540 | drivers/char/cyclades.c | printk("cyc: %d: incrementing count to %d\n", __LINE__, info->count); |
info | 2543 | drivers/char/cyclades.c | info->blocked_open--; |
info | 2546 | drivers/char/cyclades.c | info->line, info->count);/**/ |
info | 2550 | drivers/char/cyclades.c | info->flags |= ASYNC_NORMAL_ACTIVE; |
info | 2561 | drivers/char/cyclades.c | struct cyclades_port *info; |
info | 2569 | drivers/char/cyclades.c | info = &cy_port[line]; |
info | 2570 | drivers/char/cyclades.c | if (info->line < 0){ |
info | 2574 | drivers/char/cyclades.c | printk("cy_open ttyC%d\n", info->line); /* */ |
info | 2576 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_open")){ |
info | 2580 | drivers/char/cyclades.c | printk("cy_open ttyC%d, count = %d\n", info->line, info->count);/**/ |
info | 2582 | drivers/char/cyclades.c | info->count++; |
info | 2584 | drivers/char/cyclades.c | printk("cyc: %d: incrementing count to %d\n", __LINE__, info->count); |
info | 2586 | drivers/char/cyclades.c | tty->driver_data = info; |
info | 2587 | drivers/char/cyclades.c | info->tty = tty; |
info | 2596 | drivers/char/cyclades.c | if ((info->count == 1) && (info->flags & ASYNC_SPLIT_TERMIOS)) { |
info | 2598 | drivers/char/cyclades.c | *tty->termios = info->normal_termios; |
info | 2600 | drivers/char/cyclades.c | *tty->termios = info->callout_termios; |
info | 2605 | drivers/char/cyclades.c | retval = startup(info); |
info | 2610 | drivers/char/cyclades.c | retval = block_til_ready(tty, filp, info); |
info | 2619 | drivers/char/cyclades.c | info->session = current->session; |
info | 2620 | drivers/char/cyclades.c | info->pgrp = current->pgrp; |
info | 2735 | drivers/char/cyclades.c | struct cyclades_port *info; |
info | 2836 | drivers/char/cyclades.c | info = &cy_port[port]; |
info | 2837 | drivers/char/cyclades.c | info->magic = CYCLADES_MAGIC; |
info | 2838 | drivers/char/cyclades.c | info->type = PORT_CIRRUS; |
info | 2839 | drivers/char/cyclades.c | info->card = board; |
info | 2840 | drivers/char/cyclades.c | info->line = port; |
info | 2841 | drivers/char/cyclades.c | info->flags = STD_COM_FLAGS; |
info | 2842 | drivers/char/cyclades.c | info->tty = 0; |
info | 2843 | drivers/char/cyclades.c | info->xmit_fifo_size = 12; |
info | 2844 | drivers/char/cyclades.c | info->cor1 = CyPARITY_NONE|Cy_1_STOP|Cy_8_BITS; |
info | 2845 | drivers/char/cyclades.c | info->cor2 = CyETC; |
info | 2846 | drivers/char/cyclades.c | info->cor3 = 0x08; /* _very_ small receive threshold */ |
info | 2847 | drivers/char/cyclades.c | info->cor4 = 0; |
info | 2848 | drivers/char/cyclades.c | info->cor5 = 0; |
info | 2849 | drivers/char/cyclades.c | info->tbpr = baud_bpr[13]; /* Tx BPR */ |
info | 2850 | drivers/char/cyclades.c | info->tco = baud_co[13]; /* Tx CO */ |
info | 2851 | drivers/char/cyclades.c | info->rbpr = baud_bpr[13]; /* Rx BPR */ |
info | 2852 | drivers/char/cyclades.c | info->rco = baud_co[13]; /* Rx CO */ |
info | 2853 | drivers/char/cyclades.c | info->close_delay = 0; |
info | 2854 | drivers/char/cyclades.c | info->x_char = 0; |
info | 2855 | drivers/char/cyclades.c | info->event = 0; |
info | 2856 | drivers/char/cyclades.c | info->count = 0; |
info | 2860 | drivers/char/cyclades.c | info->blocked_open = 0; |
info | 2861 | drivers/char/cyclades.c | info->default_threshold = 0; |
info | 2862 | drivers/char/cyclades.c | info->default_timeout = 0; |
info | 2863 | drivers/char/cyclades.c | info->tqueue.routine = do_softint; |
info | 2864 | drivers/char/cyclades.c | info->tqueue.data = info; |
info | 2865 | drivers/char/cyclades.c | info->callout_termios =cy_callout_driver.init_termios; |
info | 2866 | drivers/char/cyclades.c | info->normal_termios = cy_serial_driver.init_termios; |
info | 2867 | drivers/char/cyclades.c | info->open_wait = 0; |
info | 2868 | drivers/char/cyclades.c | info->close_wait = 0; |
info | 2871 | drivers/char/cyclades.c | info->read_status_mask = CyTIMEOUT| CySPECHAR| CyBREAK |
info | 3067 | drivers/char/cyclades.c | struct cyclades_port * info; |
info | 3070 | drivers/char/cyclades.c | info = &cy_port[line_num]; |
info | 3071 | drivers/char/cyclades.c | card = info->card; |
info | 3073 | drivers/char/cyclades.c | channel = (info->line) - (cy_card[card].first_line); |
info | 3085 | drivers/char/cyclades.c | info->card, info->line, info->flags); |
info | 3087 | drivers/char/cyclades.c | (long)info->tty, info->read_status_mask, |
info | 3088 | drivers/char/cyclades.c | info->timeout, info->xmit_fifo_size); |
info | 3090 | drivers/char/cyclades.c | info->cor1, info->cor2, info->cor3, info->cor4, info->cor5); |
info | 3092 | drivers/char/cyclades.c | info->tbpr, info->tco, info->rbpr, info->rco); |
info | 3094 | drivers/char/cyclades.c | info->close_delay, info->event, info->count); |
info | 3096 | drivers/char/cyclades.c | info->x_char, info->blocked_open); |
info | 3098 | drivers/char/cyclades.c | info->session, info->pgrp, (long)info->open_wait); |
info | 91 | drivers/char/serial.c | static void autoconfig(struct async_struct * info); |
info | 92 | drivers/char/serial.c | static void change_speed(struct async_struct *info); |
info | 206 | drivers/char/serial.c | static inline int serial_paranoia_check(struct async_struct *info, |
info | 215 | drivers/char/serial.c | if (!info) { |
info | 219 | drivers/char/serial.c | if (info->magic != SERIAL_MAGIC) { |
info | 234 | drivers/char/serial.c | static inline unsigned int serial_in(struct async_struct *info, int offset) |
info | 237 | drivers/char/serial.c | if (info->hub6) { |
info | 238 | drivers/char/serial.c | outb(info->hub6 - 1 + offset, info->port); |
info | 239 | drivers/char/serial.c | return inb(info->port+1); |
info | 242 | drivers/char/serial.c | return inb(info->port + offset); |
info | 245 | drivers/char/serial.c | static inline unsigned int serial_inp(struct async_struct *info, int offset) |
info | 248 | drivers/char/serial.c | if (info->hub6) { |
info | 249 | drivers/char/serial.c | outb(info->hub6 - 1 + offset, info->port); |
info | 250 | drivers/char/serial.c | return inb_p(info->port+1); |
info | 254 | drivers/char/serial.c | return inb(info->port + offset); |
info | 256 | drivers/char/serial.c | return inb_p(info->port + offset); |
info | 260 | drivers/char/serial.c | static inline void serial_out(struct async_struct *info, int offset, int value) |
info | 263 | drivers/char/serial.c | if (info->hub6) { |
info | 264 | drivers/char/serial.c | outb(info->hub6 - 1 + offset, info->port); |
info | 265 | drivers/char/serial.c | outb(value, info->port+1); |
info | 268 | drivers/char/serial.c | outb(value, info->port+offset); |
info | 271 | drivers/char/serial.c | static inline void serial_outp(struct async_struct *info, int offset, |
info | 275 | drivers/char/serial.c | if (info->hub6) { |
info | 276 | drivers/char/serial.c | outb(info->hub6 - 1 + offset, info->port); |
info | 277 | drivers/char/serial.c | outb_p(value, info->port+1); |
info | 281 | drivers/char/serial.c | outb(value, info->port+offset); |
info | 283 | drivers/char/serial.c | outb_p(value, info->port+offset); |
info | 297 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 300 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_stop")) |
info | 304 | drivers/char/serial.c | if (info->IER & UART_IER_THRI) { |
info | 305 | drivers/char/serial.c | info->IER &= ~UART_IER_THRI; |
info | 306 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 313 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 316 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_start")) |
info | 320 | drivers/char/serial.c | if (info->xmit_cnt && info->xmit_buf && !(info->IER & UART_IER_THRI)) { |
info | 321 | drivers/char/serial.c | info->IER |= UART_IER_THRI; |
info | 322 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 363 | drivers/char/serial.c | static _INLINE_ void rs_sched_event(struct async_struct *info, |
info | 366 | drivers/char/serial.c | info->event |= 1 << event; |
info | 367 | drivers/char/serial.c | queue_task_irq_off(&info->tqueue, &tq_serial); |
info | 371 | drivers/char/serial.c | static _INLINE_ void receive_chars(struct async_struct *info, |
info | 374 | drivers/char/serial.c | struct tty_struct *tty = info->tty; |
info | 379 | drivers/char/serial.c | ch = serial_inp(info, UART_RX); |
info | 380 | drivers/char/serial.c | if (*status & info->ignore_status_mask) { |
info | 391 | drivers/char/serial.c | if (info->flags & ASYNC_SAK) |
info | 403 | drivers/char/serial.c | *status = serial_inp(info, UART_LSR) & info->read_status_mask; |
info | 411 | drivers/char/serial.c | static _INLINE_ void transmit_chars(struct async_struct *info, int *intr_done) |
info | 415 | drivers/char/serial.c | if (info->x_char) { |
info | 416 | drivers/char/serial.c | serial_outp(info, UART_TX, info->x_char); |
info | 417 | drivers/char/serial.c | info->x_char = 0; |
info | 422 | drivers/char/serial.c | if ((info->xmit_cnt <= 0) || info->tty->stopped || |
info | 423 | drivers/char/serial.c | info->tty->hw_stopped) { |
info | 424 | drivers/char/serial.c | info->IER &= ~UART_IER_THRI; |
info | 425 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 429 | drivers/char/serial.c | count = info->xmit_fifo_size; |
info | 431 | drivers/char/serial.c | serial_out(info, UART_TX, info->xmit_buf[info->xmit_tail++]); |
info | 432 | drivers/char/serial.c | info->xmit_tail = info->xmit_tail & (SERIAL_XMIT_SIZE-1); |
info | 433 | drivers/char/serial.c | if (--info->xmit_cnt <= 0) |
info | 437 | drivers/char/serial.c | if (info->xmit_cnt < WAKEUP_CHARS) |
info | 438 | drivers/char/serial.c | rs_sched_event(info, RS_EVENT_WRITE_WAKEUP); |
info | 446 | drivers/char/serial.c | if (info->xmit_cnt <= 0) { |
info | 447 | drivers/char/serial.c | info->IER &= ~UART_IER_THRI; |
info | 448 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 452 | drivers/char/serial.c | static _INLINE_ void check_modem_status(struct async_struct *info) |
info | 456 | drivers/char/serial.c | status = serial_in(info, UART_MSR); |
info | 458 | drivers/char/serial.c | if ((info->flags & ASYNC_CHECK_CD) && (status & UART_MSR_DDCD)) { |
info | 460 | drivers/char/serial.c | printk("ttys%d CD now %s...", info->line, |
info | 464 | drivers/char/serial.c | wake_up_interruptible(&info->open_wait); |
info | 465 | drivers/char/serial.c | else if (!((info->flags & ASYNC_CALLOUT_ACTIVE) && |
info | 466 | drivers/char/serial.c | (info->flags & ASYNC_CALLOUT_NOHUP))) { |
info | 470 | drivers/char/serial.c | queue_task_irq_off(&info->tqueue_hangup, |
info | 474 | drivers/char/serial.c | if (info->flags & ASYNC_CTS_FLOW) { |
info | 475 | drivers/char/serial.c | if (info->tty->hw_stopped) { |
info | 480 | drivers/char/serial.c | info->tty->hw_stopped = 0; |
info | 481 | drivers/char/serial.c | info->IER |= UART_IER_THRI; |
info | 482 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 483 | drivers/char/serial.c | rs_sched_event(info, RS_EVENT_WRITE_WAKEUP); |
info | 491 | drivers/char/serial.c | info->tty->hw_stopped = 1; |
info | 492 | drivers/char/serial.c | info->IER &= ~UART_IER_THRI; |
info | 493 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 505 | drivers/char/serial.c | struct async_struct * info; |
info | 515 | drivers/char/serial.c | info = IRQ_ports[irq]; |
info | 516 | drivers/char/serial.c | if (!info) |
info | 524 | drivers/char/serial.c | if (!info->tty || |
info | 525 | drivers/char/serial.c | (serial_in(info, UART_IIR) & UART_IIR_NO_INT)) { |
info | 527 | drivers/char/serial.c | end_mark = info; |
info | 532 | drivers/char/serial.c | info->last_active = jiffies; |
info | 534 | drivers/char/serial.c | status = serial_inp(info, UART_LSR) & info->read_status_mask; |
info | 539 | drivers/char/serial.c | receive_chars(info, &status); |
info | 540 | drivers/char/serial.c | check_modem_status(info); |
info | 542 | drivers/char/serial.c | transmit_chars(info, 0); |
info | 545 | drivers/char/serial.c | info = info->next_port; |
info | 546 | drivers/char/serial.c | if (!info) { |
info | 547 | drivers/char/serial.c | info = IRQ_ports[irq]; |
info | 556 | drivers/char/serial.c | } while (end_mark != info); |
info | 559 | drivers/char/serial.c | info->irq, first_multi, inb(multi->port_monitor)); |
info | 573 | drivers/char/serial.c | struct async_struct * info; |
info | 580 | drivers/char/serial.c | info = IRQ_ports[irq]; |
info | 581 | drivers/char/serial.c | if (!info || !info->tty) |
info | 589 | drivers/char/serial.c | status = serial_inp(info, UART_LSR) & info->read_status_mask; |
info | 594 | drivers/char/serial.c | receive_chars(info, &status); |
info | 595 | drivers/char/serial.c | check_modem_status(info); |
info | 597 | drivers/char/serial.c | transmit_chars(info, 0); |
info | 604 | drivers/char/serial.c | } while (!(serial_in(info, UART_IIR) & UART_IIR_NO_INT)); |
info | 605 | drivers/char/serial.c | info->last_active = jiffies; |
info | 608 | drivers/char/serial.c | info->irq, first_multi, inb(multi->port_monitor)); |
info | 620 | drivers/char/serial.c | struct async_struct * info; |
info | 629 | drivers/char/serial.c | info = IRQ_ports[irq]; |
info | 630 | drivers/char/serial.c | if (!info) |
info | 642 | drivers/char/serial.c | if (!info->tty || |
info | 643 | drivers/char/serial.c | (serial_in(info, UART_IIR) & UART_IIR_NO_INT)) |
info | 646 | drivers/char/serial.c | info->last_active = jiffies; |
info | 648 | drivers/char/serial.c | status = serial_inp(info, UART_LSR) & info->read_status_mask; |
info | 653 | drivers/char/serial.c | receive_chars(info, &status); |
info | 654 | drivers/char/serial.c | check_modem_status(info); |
info | 656 | drivers/char/serial.c | transmit_chars(info, 0); |
info | 659 | drivers/char/serial.c | info = info->next_port; |
info | 660 | drivers/char/serial.c | if (info) |
info | 663 | drivers/char/serial.c | info = IRQ_ports[irq]; |
info | 672 | drivers/char/serial.c | info->irq, first_multi, |
info | 718 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *) private_; |
info | 721 | drivers/char/serial.c | tty = info->tty; |
info | 725 | drivers/char/serial.c | if (clear_bit(RS_EVENT_WRITE_WAKEUP, &info->event)) { |
info | 744 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *) private_; |
info | 747 | drivers/char/serial.c | tty = info->tty; |
info | 765 | drivers/char/serial.c | struct async_struct *info; |
info | 770 | drivers/char/serial.c | info = IRQ_ports[i]; |
info | 771 | drivers/char/serial.c | if (!info) |
info | 774 | drivers/char/serial.c | if (info->next_port) { |
info | 776 | drivers/char/serial.c | serial_out(info, UART_IER, 0); |
info | 777 | drivers/char/serial.c | info->IER |= UART_IER_THRI; |
info | 778 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 779 | drivers/char/serial.c | info = info->next_port; |
info | 780 | drivers/char/serial.c | } while (info); |
info | 851 | drivers/char/serial.c | struct async_struct *info; |
info | 854 | drivers/char/serial.c | info = IRQ_ports[irq]; |
info | 855 | drivers/char/serial.c | if (!info) { |
info | 859 | drivers/char/serial.c | while (info) { |
info | 860 | drivers/char/serial.c | if (info->timeout < timeout) |
info | 861 | drivers/char/serial.c | timeout = info->timeout; |
info | 862 | drivers/char/serial.c | info = info->next_port; |
info | 869 | drivers/char/serial.c | static int startup(struct async_struct * info) |
info | 876 | drivers/char/serial.c | if (info->flags & ASYNC_INITIALIZED) |
info | 879 | drivers/char/serial.c | if (!info->port || !info->type) { |
info | 880 | drivers/char/serial.c | if (info->tty) |
info | 881 | drivers/char/serial.c | set_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 885 | drivers/char/serial.c | if (!info->xmit_buf) { |
info | 886 | drivers/char/serial.c | info->xmit_buf = (unsigned char *) get_free_page(GFP_KERNEL); |
info | 887 | drivers/char/serial.c | if (!info->xmit_buf) |
info | 894 | drivers/char/serial.c | printk("starting up ttys%d (irq %d)...", info->line, info->irq); |
info | 901 | drivers/char/serial.c | if (info->type == PORT_16650) { |
info | 902 | drivers/char/serial.c | serial_outp(info, UART_FCR, (UART_FCR_CLEAR_RCVR | |
info | 904 | drivers/char/serial.c | info->xmit_fifo_size = 1; /* disabled for now */ |
info | 905 | drivers/char/serial.c | } else if (info->type == PORT_16550A) { |
info | 906 | drivers/char/serial.c | serial_outp(info, UART_FCR, (UART_FCR_CLEAR_RCVR | |
info | 908 | drivers/char/serial.c | info->xmit_fifo_size = 16; |
info | 910 | drivers/char/serial.c | info->xmit_fifo_size = 1; |
info | 917 | drivers/char/serial.c | if (serial_inp(info, UART_LSR) == 0xff) { |
info | 920 | drivers/char/serial.c | if (info->tty) |
info | 921 | drivers/char/serial.c | set_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 930 | drivers/char/serial.c | if (info->irq && (!IRQ_ports[info->irq] || |
info | 931 | drivers/char/serial.c | !IRQ_ports[info->irq]->next_port)) { |
info | 932 | drivers/char/serial.c | if (IRQ_ports[info->irq]) { |
info | 933 | drivers/char/serial.c | free_irq(info->irq); |
info | 934 | drivers/char/serial.c | if (rs_multiport[info->irq].port1) |
info | 941 | drivers/char/serial.c | retval = request_irq(info->irq, handler, SA_INTERRUPT, "serial"); |
info | 945 | drivers/char/serial.c | if (info->tty) |
info | 947 | drivers/char/serial.c | &info->tty->flags); |
info | 958 | drivers/char/serial.c | (void) serial_inp(info, UART_RX); |
info | 959 | drivers/char/serial.c | (void) serial_inp(info, UART_IIR); |
info | 960 | drivers/char/serial.c | (void) serial_inp(info, UART_MSR); |
info | 965 | drivers/char/serial.c | serial_outp(info, UART_LCR, UART_LCR_WLEN8); /* reset DLAB */ |
info | 966 | drivers/char/serial.c | if (info->flags & ASYNC_FOURPORT) { |
info | 967 | drivers/char/serial.c | info->MCR = UART_MCR_DTR | UART_MCR_RTS; |
info | 968 | drivers/char/serial.c | info->MCR_noint = UART_MCR_DTR | UART_MCR_OUT1; |
info | 970 | drivers/char/serial.c | info->MCR = UART_MCR_DTR | UART_MCR_RTS | UART_MCR_OUT2; |
info | 971 | drivers/char/serial.c | info->MCR_noint = UART_MCR_DTR | UART_MCR_RTS; |
info | 974 | drivers/char/serial.c | info->MCR |= UART_MCR_OUT1 | UART_MCR_OUT2; |
info | 975 | drivers/char/serial.c | info->MCR_noint |= UART_MCR_OUT1 | UART_MCR_OUT2; |
info | 977 | drivers/char/serial.c | if (info->irq == 0) |
info | 978 | drivers/char/serial.c | info->MCR = info->MCR_noint; |
info | 979 | drivers/char/serial.c | serial_outp(info, UART_MCR, info->MCR); |
info | 984 | drivers/char/serial.c | info->IER = UART_IER_MSI | UART_IER_RLSI | UART_IER_RDI; |
info | 985 | drivers/char/serial.c | serial_outp(info, UART_IER, info->IER); /* enable interrupts */ |
info | 987 | drivers/char/serial.c | if (info->flags & ASYNC_FOURPORT) { |
info | 989 | drivers/char/serial.c | ICP = (info->port & 0xFE0) | 0x01F; |
info | 997 | drivers/char/serial.c | (void)serial_inp(info, UART_LSR); |
info | 998 | drivers/char/serial.c | (void)serial_inp(info, UART_RX); |
info | 999 | drivers/char/serial.c | (void)serial_inp(info, UART_IIR); |
info | 1000 | drivers/char/serial.c | (void)serial_inp(info, UART_MSR); |
info | 1002 | drivers/char/serial.c | if (info->tty) |
info | 1003 | drivers/char/serial.c | clear_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 1004 | drivers/char/serial.c | info->xmit_cnt = info->xmit_head = info->xmit_tail = 0; |
info | 1009 | drivers/char/serial.c | info->prev_port = 0; |
info | 1010 | drivers/char/serial.c | info->next_port = IRQ_ports[info->irq]; |
info | 1011 | drivers/char/serial.c | if (info->next_port) |
info | 1012 | drivers/char/serial.c | info->next_port->prev_port = info; |
info | 1013 | drivers/char/serial.c | IRQ_ports[info->irq] = info; |
info | 1014 | drivers/char/serial.c | figure_IRQ_timeout(info->irq); |
info | 1025 | drivers/char/serial.c | change_speed(info); |
info | 1027 | drivers/char/serial.c | info->flags |= ASYNC_INITIALIZED; |
info | 1036 | drivers/char/serial.c | static void shutdown(struct async_struct * info) |
info | 1041 | drivers/char/serial.c | if (!(info->flags & ASYNC_INITIALIZED)) |
info | 1045 | drivers/char/serial.c | printk("Shutting down serial port %d (irq %d)....", info->line, |
info | 1046 | drivers/char/serial.c | info->irq); |
info | 1054 | drivers/char/serial.c | if (info->next_port) |
info | 1055 | drivers/char/serial.c | info->next_port->prev_port = info->prev_port; |
info | 1056 | drivers/char/serial.c | if (info->prev_port) |
info | 1057 | drivers/char/serial.c | info->prev_port->next_port = info->next_port; |
info | 1059 | drivers/char/serial.c | IRQ_ports[info->irq] = info->next_port; |
info | 1060 | drivers/char/serial.c | figure_IRQ_timeout(info->irq); |
info | 1065 | drivers/char/serial.c | if (info->irq && (!IRQ_ports[info->irq] || |
info | 1066 | drivers/char/serial.c | !IRQ_ports[info->irq]->next_port)) { |
info | 1067 | drivers/char/serial.c | if (IRQ_ports[info->irq]) { |
info | 1068 | drivers/char/serial.c | free_irq(info->irq); |
info | 1069 | drivers/char/serial.c | retval = request_irq(info->irq, rs_interrupt_single, SA_INTERRUPT, "serial"); |
info | 1075 | drivers/char/serial.c | free_irq(info->irq); |
info | 1078 | drivers/char/serial.c | if (info->xmit_buf) { |
info | 1079 | drivers/char/serial.c | free_page((unsigned long) info->xmit_buf); |
info | 1080 | drivers/char/serial.c | info->xmit_buf = 0; |
info | 1083 | drivers/char/serial.c | info->IER = 0; |
info | 1084 | drivers/char/serial.c | serial_outp(info, UART_IER, 0x00); /* disable all intrs */ |
info | 1085 | drivers/char/serial.c | if (info->flags & ASYNC_FOURPORT) { |
info | 1087 | drivers/char/serial.c | (void) inb((info->port & 0xFE0) | 0x01F); |
info | 1090 | drivers/char/serial.c | if (!info->tty || (info->tty->termios->c_cflag & HUPCL)) { |
info | 1091 | drivers/char/serial.c | info->MCR &= ~(UART_MCR_DTR|UART_MCR_RTS); |
info | 1092 | drivers/char/serial.c | info->MCR_noint &= ~(UART_MCR_DTR|UART_MCR_RTS); |
info | 1094 | drivers/char/serial.c | serial_outp(info, UART_MCR, info->MCR_noint); |
info | 1097 | drivers/char/serial.c | serial_outp(info, UART_FCR, (UART_FCR_CLEAR_RCVR | |
info | 1099 | drivers/char/serial.c | (void)serial_in(info, UART_RX); /* read data port to reset things */ |
info | 1101 | drivers/char/serial.c | if (info->tty) |
info | 1102 | drivers/char/serial.c | set_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 1104 | drivers/char/serial.c | info->flags &= ~ASYNC_INITIALIZED; |
info | 1112 | drivers/char/serial.c | static void change_speed(struct async_struct *info) |
info | 1119 | drivers/char/serial.c | if (!info->tty || !info->tty->termios) |
info | 1121 | drivers/char/serial.c | cflag = info->tty->termios->c_cflag; |
info | 1122 | drivers/char/serial.c | if (!(port = info->port)) |
info | 1128 | drivers/char/serial.c | info->tty->termios->c_cflag &= ~CBAUDEX; |
info | 1133 | drivers/char/serial.c | if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_HI) |
info | 1135 | drivers/char/serial.c | if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_VHI) |
info | 1137 | drivers/char/serial.c | if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_CUST) |
info | 1138 | drivers/char/serial.c | quot = info->custom_divisor; |
info | 1141 | drivers/char/serial.c | info->timeout = ((info->xmit_fifo_size*HZ*15*quot) / |
info | 1142 | drivers/char/serial.c | info->baud_base) + 2; |
info | 1144 | drivers/char/serial.c | quot = (2*info->baud_base / 269); |
info | 1145 | drivers/char/serial.c | info->timeout = (info->xmit_fifo_size*HZ*30/269) + 2; |
info | 1147 | drivers/char/serial.c | quot = info->baud_base / baud_table[i]; |
info | 1148 | drivers/char/serial.c | info->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2; |
info | 1151 | drivers/char/serial.c | info->timeout = 0; |
info | 1154 | drivers/char/serial.c | info->MCR |= UART_MCR_DTR; |
info | 1155 | drivers/char/serial.c | info->MCR_noint |= UART_MCR_DTR; |
info | 1157 | drivers/char/serial.c | serial_out(info, UART_MCR, info->MCR); |
info | 1160 | drivers/char/serial.c | info->MCR &= ~UART_MCR_DTR; |
info | 1161 | drivers/char/serial.c | info->MCR_noint &= ~UART_MCR_DTR; |
info | 1163 | drivers/char/serial.c | serial_out(info, UART_MCR, info->MCR); |
info | 1182 | drivers/char/serial.c | if (info->type == PORT_16550A) { |
info | 1183 | drivers/char/serial.c | if ((info->baud_base / quot) < 2400) |
info | 1187 | drivers/char/serial.c | } else if (info->type == PORT_16650) { |
info | 1203 | drivers/char/serial.c | info->IER &= ~UART_IER_MSI; |
info | 1205 | drivers/char/serial.c | info->flags |= ASYNC_CTS_FLOW; |
info | 1206 | drivers/char/serial.c | info->IER |= UART_IER_MSI; |
info | 1208 | drivers/char/serial.c | info->flags &= ~ASYNC_CTS_FLOW; |
info | 1210 | drivers/char/serial.c | info->flags &= ~ASYNC_CHECK_CD; |
info | 1212 | drivers/char/serial.c | info->flags |= ASYNC_CHECK_CD; |
info | 1213 | drivers/char/serial.c | info->IER |= UART_IER_MSI; |
info | 1215 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 1220 | drivers/char/serial.c | info->read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; |
info | 1221 | drivers/char/serial.c | if (I_INPCK(info->tty)) |
info | 1222 | drivers/char/serial.c | info->read_status_mask |= UART_LSR_FE | UART_LSR_PE; |
info | 1223 | drivers/char/serial.c | if (I_BRKINT(info->tty) || I_PARMRK(info->tty)) |
info | 1224 | drivers/char/serial.c | info->read_status_mask |= UART_LSR_BI; |
info | 1226 | drivers/char/serial.c | info->ignore_status_mask = 0; |
info | 1227 | drivers/char/serial.c | if (I_IGNPAR(info->tty)) { |
info | 1228 | drivers/char/serial.c | info->ignore_status_mask |= UART_LSR_PE | UART_LSR_FE; |
info | 1229 | drivers/char/serial.c | info->read_status_mask |= UART_LSR_PE | UART_LSR_FE; |
info | 1231 | drivers/char/serial.c | if (I_IGNBRK(info->tty)) { |
info | 1232 | drivers/char/serial.c | info->ignore_status_mask |= UART_LSR_BI; |
info | 1233 | drivers/char/serial.c | info->read_status_mask |= UART_LSR_BI; |
info | 1238 | drivers/char/serial.c | if (I_IGNPAR(info->tty)) { |
info | 1239 | drivers/char/serial.c | info->ignore_status_mask |= UART_LSR_OE; |
info | 1240 | drivers/char/serial.c | info->read_status_mask |= UART_LSR_OE; |
info | 1245 | drivers/char/serial.c | serial_outp(info, UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ |
info | 1246 | drivers/char/serial.c | serial_outp(info, UART_DLL, quot & 0xff); /* LS of divisor */ |
info | 1247 | drivers/char/serial.c | serial_outp(info, UART_DLM, quot >> 8); /* MS of divisor */ |
info | 1248 | drivers/char/serial.c | serial_outp(info, UART_LCR, cval); /* reset DLAB */ |
info | 1249 | drivers/char/serial.c | serial_outp(info, UART_FCR, fcr); /* set fcr */ |
info | 1255 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1258 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_put_char")) |
info | 1261 | drivers/char/serial.c | if (!tty || !info->xmit_buf) |
info | 1265 | drivers/char/serial.c | if (info->xmit_cnt >= SERIAL_XMIT_SIZE - 1) { |
info | 1270 | drivers/char/serial.c | info->xmit_buf[info->xmit_head++] = ch; |
info | 1271 | drivers/char/serial.c | info->xmit_head &= SERIAL_XMIT_SIZE-1; |
info | 1272 | drivers/char/serial.c | info->xmit_cnt++; |
info | 1278 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1281 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_flush_chars")) |
info | 1284 | drivers/char/serial.c | if (info->xmit_cnt <= 0 || tty->stopped || tty->hw_stopped || |
info | 1285 | drivers/char/serial.c | !info->xmit_buf) |
info | 1289 | drivers/char/serial.c | info->IER |= UART_IER_THRI; |
info | 1290 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 1298 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1301 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_write")) |
info | 1304 | drivers/char/serial.c | if (!tty || !info->xmit_buf || !tmp_buf) |
info | 1310 | drivers/char/serial.c | c = MIN(count, MIN(SERIAL_XMIT_SIZE - info->xmit_cnt - 1, |
info | 1311 | drivers/char/serial.c | SERIAL_XMIT_SIZE - info->xmit_head)); |
info | 1318 | drivers/char/serial.c | c = MIN(c, MIN(SERIAL_XMIT_SIZE - info->xmit_cnt - 1, |
info | 1319 | drivers/char/serial.c | SERIAL_XMIT_SIZE - info->xmit_head)); |
info | 1320 | drivers/char/serial.c | memcpy(info->xmit_buf + info->xmit_head, tmp_buf, c); |
info | 1323 | drivers/char/serial.c | memcpy(info->xmit_buf + info->xmit_head, buf, c); |
info | 1324 | drivers/char/serial.c | info->xmit_head = (info->xmit_head + c) & (SERIAL_XMIT_SIZE-1); |
info | 1325 | drivers/char/serial.c | info->xmit_cnt += c; |
info | 1331 | drivers/char/serial.c | if (info->xmit_cnt && !tty->stopped && !tty->hw_stopped && |
info | 1332 | drivers/char/serial.c | !(info->IER & UART_IER_THRI)) { |
info | 1333 | drivers/char/serial.c | info->IER |= UART_IER_THRI; |
info | 1334 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 1342 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1345 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_write_room")) |
info | 1347 | drivers/char/serial.c | ret = SERIAL_XMIT_SIZE - info->xmit_cnt - 1; |
info | 1355 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1357 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_chars_in_buffer")) |
info | 1359 | drivers/char/serial.c | return info->xmit_cnt; |
info | 1364 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1366 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_flush_buffer")) |
info | 1369 | drivers/char/serial.c | info->xmit_cnt = info->xmit_head = info->xmit_tail = 0; |
info | 1387 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1395 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_throttle")) |
info | 1399 | drivers/char/serial.c | info->x_char = STOP_CHAR(tty); |
info | 1401 | drivers/char/serial.c | info->MCR &= ~UART_MCR_RTS; |
info | 1402 | drivers/char/serial.c | info->MCR_noint &= ~UART_MCR_RTS; |
info | 1404 | drivers/char/serial.c | serial_out(info, UART_MCR, info->MCR); |
info | 1410 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1418 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_unthrottle")) |
info | 1422 | drivers/char/serial.c | if (info->x_char) |
info | 1423 | drivers/char/serial.c | info->x_char = 0; |
info | 1425 | drivers/char/serial.c | info->x_char = START_CHAR(tty); |
info | 1427 | drivers/char/serial.c | info->MCR |= UART_MCR_RTS; |
info | 1428 | drivers/char/serial.c | info->MCR_noint |= UART_MCR_RTS; |
info | 1430 | drivers/char/serial.c | serial_out(info, UART_MCR, info->MCR); |
info | 1440 | drivers/char/serial.c | static int get_serial_info(struct async_struct * info, |
info | 1448 | drivers/char/serial.c | tmp.type = info->type; |
info | 1449 | drivers/char/serial.c | tmp.line = info->line; |
info | 1450 | drivers/char/serial.c | tmp.port = info->port; |
info | 1451 | drivers/char/serial.c | tmp.irq = info->irq; |
info | 1452 | drivers/char/serial.c | tmp.flags = info->flags; |
info | 1453 | drivers/char/serial.c | tmp.baud_base = info->baud_base; |
info | 1454 | drivers/char/serial.c | tmp.close_delay = info->close_delay; |
info | 1455 | drivers/char/serial.c | tmp.closing_wait = info->closing_wait; |
info | 1456 | drivers/char/serial.c | tmp.custom_divisor = info->custom_divisor; |
info | 1457 | drivers/char/serial.c | tmp.hub6 = info->hub6; |
info | 1462 | drivers/char/serial.c | static int set_serial_info(struct async_struct * info, |
info | 1473 | drivers/char/serial.c | old_info = *info; |
info | 1475 | drivers/char/serial.c | change_irq = new_serial.irq != info->irq; |
info | 1476 | drivers/char/serial.c | change_port = (new_serial.port != info->port) || (new_serial.hub6 != info->hub6); |
info | 1480 | drivers/char/serial.c | (new_serial.baud_base != info->baud_base) || |
info | 1481 | drivers/char/serial.c | (new_serial.type != info->type) || |
info | 1482 | drivers/char/serial.c | (new_serial.close_delay != info->close_delay) || |
info | 1484 | drivers/char/serial.c | (info->flags & ~ASYNC_USR_MASK))) |
info | 1486 | drivers/char/serial.c | info->flags = ((info->flags & ~ASYNC_USR_MASK) | |
info | 1488 | drivers/char/serial.c | info->custom_divisor = new_serial.custom_divisor; |
info | 1503 | drivers/char/serial.c | if ((info != &rs_table[i]) && |
info | 1509 | drivers/char/serial.c | if ((change_port || change_irq) && (info->count > 1)) |
info | 1517 | drivers/char/serial.c | info->baud_base = new_serial.baud_base; |
info | 1518 | drivers/char/serial.c | info->flags = ((info->flags & ~ASYNC_FLAGS) | |
info | 1520 | drivers/char/serial.c | info->custom_divisor = new_serial.custom_divisor; |
info | 1521 | drivers/char/serial.c | info->type = new_serial.type; |
info | 1522 | drivers/char/serial.c | info->close_delay = new_serial.close_delay * HZ/100; |
info | 1523 | drivers/char/serial.c | info->closing_wait = new_serial.closing_wait * HZ/100; |
info | 1525 | drivers/char/serial.c | release_region(info->port,8); |
info | 1531 | drivers/char/serial.c | shutdown(info); |
info | 1532 | drivers/char/serial.c | info->irq = new_serial.irq; |
info | 1533 | drivers/char/serial.c | info->port = new_serial.port; |
info | 1534 | drivers/char/serial.c | info->hub6 = new_serial.hub6; |
info | 1536 | drivers/char/serial.c | if(info->type != PORT_UNKNOWN) |
info | 1537 | drivers/char/serial.c | request_region(info->port,8,"serial(set)"); |
info | 1541 | drivers/char/serial.c | if (!info->port || !info->type) |
info | 1543 | drivers/char/serial.c | if (info->flags & ASYNC_INITIALIZED) { |
info | 1545 | drivers/char/serial.c | (info->flags & ASYNC_SPD_MASK)) || |
info | 1546 | drivers/char/serial.c | (old_info.custom_divisor != info->custom_divisor)) |
info | 1547 | drivers/char/serial.c | change_speed(info); |
info | 1549 | drivers/char/serial.c | retval = startup(info); |
info | 1564 | drivers/char/serial.c | static int get_lsr_info(struct async_struct * info, unsigned int *value) |
info | 1570 | drivers/char/serial.c | status = serial_in(info, UART_LSR); |
info | 1578 | drivers/char/serial.c | static int get_modem_info(struct async_struct * info, unsigned int *value) |
info | 1583 | drivers/char/serial.c | control = info->MCR; |
info | 1585 | drivers/char/serial.c | status = serial_in(info, UART_MSR); |
info | 1597 | drivers/char/serial.c | static int set_modem_info(struct async_struct * info, unsigned int cmd, |
info | 1610 | drivers/char/serial.c | info->MCR |= UART_MCR_RTS; |
info | 1611 | drivers/char/serial.c | info->MCR_noint |= UART_MCR_RTS; |
info | 1614 | drivers/char/serial.c | info->MCR |= UART_MCR_DTR; |
info | 1615 | drivers/char/serial.c | info->MCR_noint |= UART_MCR_DTR; |
info | 1620 | drivers/char/serial.c | info->MCR &= ~UART_MCR_RTS; |
info | 1621 | drivers/char/serial.c | info->MCR_noint &= ~UART_MCR_RTS; |
info | 1624 | drivers/char/serial.c | info->MCR &= ~UART_MCR_DTR; |
info | 1625 | drivers/char/serial.c | info->MCR_noint &= ~UART_MCR_DTR; |
info | 1629 | drivers/char/serial.c | info->MCR = ((info->MCR & ~(UART_MCR_RTS | UART_MCR_DTR)) |
info | 1632 | drivers/char/serial.c | info->MCR_noint = ((info->MCR_noint |
info | 1641 | drivers/char/serial.c | serial_out(info, UART_MCR, info->MCR); |
info | 1646 | drivers/char/serial.c | static int do_autoconfig(struct async_struct * info) |
info | 1653 | drivers/char/serial.c | if (info->count > 1) |
info | 1656 | drivers/char/serial.c | shutdown(info); |
info | 1659 | drivers/char/serial.c | autoconfig(info); |
info | 1662 | drivers/char/serial.c | retval = startup(info); |
info | 1672 | drivers/char/serial.c | static void send_break( struct async_struct * info, int duration) |
info | 1674 | drivers/char/serial.c | if (!info->port) |
info | 1679 | drivers/char/serial.c | serial_out(info, UART_LCR, serial_inp(info, UART_LCR) | UART_LCR_SBC); |
info | 1681 | drivers/char/serial.c | serial_out(info, UART_LCR, serial_inp(info, UART_LCR) & ~UART_LCR_SBC); |
info | 1729 | drivers/char/serial.c | static int get_multiport_struct(struct async_struct * info, |
info | 1735 | drivers/char/serial.c | multi = &rs_multiport[info->irq]; |
info | 1755 | drivers/char/serial.c | ret.irq = info->irq; |
info | 1762 | drivers/char/serial.c | static int set_multiport_struct(struct async_struct * info, |
info | 1778 | drivers/char/serial.c | if (new_multi.irq != info->irq || info->irq == 0 || |
info | 1779 | drivers/char/serial.c | !IRQ_ports[info->irq]) |
info | 1782 | drivers/char/serial.c | multi = &rs_multiport[info->irq]; |
info | 1821 | drivers/char/serial.c | if (IRQ_ports[info->irq]->next_port && |
info | 1823 | drivers/char/serial.c | free_irq(info->irq); |
info | 1829 | drivers/char/serial.c | retval = request_irq(info->irq, handler, SA_INTERRUPT, |
info | 1844 | drivers/char/serial.c | struct async_struct * info = (struct async_struct *)tty->driver_data; |
info | 1847 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_ioctl")) |
info | 1864 | drivers/char/serial.c | send_break(info, HZ/4); /* 1/4 second */ |
info | 1871 | drivers/char/serial.c | send_break(info, arg ? arg*(HZ/10) : HZ/4); |
info | 1891 | drivers/char/serial.c | return get_modem_info(info, (unsigned int *) arg); |
info | 1895 | drivers/char/serial.c | return set_modem_info(info, cmd, (unsigned int *) arg); |
info | 1901 | drivers/char/serial.c | return get_serial_info(info, |
info | 1904 | drivers/char/serial.c | return set_serial_info(info, |
info | 1907 | drivers/char/serial.c | return do_autoconfig(info); |
info | 1923 | drivers/char/serial.c | return get_lsr_info(info, (unsigned int *) arg); |
info | 1939 | drivers/char/serial.c | info, sizeof(struct async_struct)); |
info | 1947 | drivers/char/serial.c | return get_multiport_struct(info, |
info | 1950 | drivers/char/serial.c | return set_multiport_struct(info, |
info | 1960 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1965 | drivers/char/serial.c | change_speed(info); |
info | 1982 | drivers/char/serial.c | wake_up_interruptible(&info->open_wait); |
info | 1998 | drivers/char/serial.c | struct async_struct * info = (struct async_struct *)tty->driver_data; |
info | 2002 | drivers/char/serial.c | if (!info || serial_paranoia_check(info, tty->device, "rs_close")) |
info | 2013 | drivers/char/serial.c | printk("rs_close ttys%d, count = %d\n", info->line, info->count); |
info | 2015 | drivers/char/serial.c | if ((tty->count == 1) && (info->count != 1)) { |
info | 2024 | drivers/char/serial.c | "info->count is %d\n", info->count); |
info | 2025 | drivers/char/serial.c | info->count = 1; |
info | 2027 | drivers/char/serial.c | if (--info->count < 0) { |
info | 2029 | drivers/char/serial.c | info->line, info->count); |
info | 2030 | drivers/char/serial.c | info->count = 0; |
info | 2032 | drivers/char/serial.c | if (info->count) { |
info | 2036 | drivers/char/serial.c | info->flags |= ASYNC_CLOSING; |
info | 2041 | drivers/char/serial.c | if (info->flags & ASYNC_NORMAL_ACTIVE) |
info | 2042 | drivers/char/serial.c | info->normal_termios = *tty->termios; |
info | 2043 | drivers/char/serial.c | if (info->flags & ASYNC_CALLOUT_ACTIVE) |
info | 2044 | drivers/char/serial.c | info->callout_termios = *tty->termios; |
info | 2050 | drivers/char/serial.c | if (info->closing_wait != ASYNC_CLOSING_WAIT_NONE) |
info | 2051 | drivers/char/serial.c | tty_wait_until_sent(tty, info->closing_wait); |
info | 2058 | drivers/char/serial.c | info->IER &= ~UART_IER_RLSI; |
info | 2059 | drivers/char/serial.c | info->read_status_mask &= ~UART_LSR_DR; |
info | 2060 | drivers/char/serial.c | if (info->flags & ASYNC_INITIALIZED) { |
info | 2061 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 2068 | drivers/char/serial.c | while (!(serial_inp(info, UART_LSR) & UART_LSR_TEMT)) { |
info | 2070 | drivers/char/serial.c | current->timeout = jiffies + info->timeout; |
info | 2076 | drivers/char/serial.c | shutdown(info); |
info | 2082 | drivers/char/serial.c | info->event = 0; |
info | 2083 | drivers/char/serial.c | info->tty = 0; |
info | 2092 | drivers/char/serial.c | if (info->blocked_open) { |
info | 2093 | drivers/char/serial.c | if (info->close_delay) { |
info | 2095 | drivers/char/serial.c | current->timeout = jiffies + info->close_delay; |
info | 2098 | drivers/char/serial.c | wake_up_interruptible(&info->open_wait); |
info | 2100 | drivers/char/serial.c | info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CALLOUT_ACTIVE| |
info | 2102 | drivers/char/serial.c | wake_up_interruptible(&info->close_wait); |
info | 2111 | drivers/char/serial.c | struct async_struct * info = (struct async_struct *)tty->driver_data; |
info | 2113 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_hangup")) |
info | 2117 | drivers/char/serial.c | shutdown(info); |
info | 2118 | drivers/char/serial.c | info->event = 0; |
info | 2119 | drivers/char/serial.c | info->count = 0; |
info | 2120 | drivers/char/serial.c | info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CALLOUT_ACTIVE); |
info | 2121 | drivers/char/serial.c | info->tty = 0; |
info | 2122 | drivers/char/serial.c | wake_up_interruptible(&info->open_wait); |
info | 2131 | drivers/char/serial.c | struct async_struct *info) |
info | 2141 | drivers/char/serial.c | if (info->flags & ASYNC_CLOSING) { |
info | 2142 | drivers/char/serial.c | interruptible_sleep_on(&info->close_wait); |
info | 2144 | drivers/char/serial.c | if (info->flags & ASYNC_HUP_NOTIFY) |
info | 2158 | drivers/char/serial.c | if (info->flags & ASYNC_NORMAL_ACTIVE) |
info | 2160 | drivers/char/serial.c | if ((info->flags & ASYNC_CALLOUT_ACTIVE) && |
info | 2161 | drivers/char/serial.c | (info->flags & ASYNC_SESSION_LOCKOUT) && |
info | 2162 | drivers/char/serial.c | (info->session != current->session)) |
info | 2164 | drivers/char/serial.c | if ((info->flags & ASYNC_CALLOUT_ACTIVE) && |
info | 2165 | drivers/char/serial.c | (info->flags & ASYNC_PGRP_LOCKOUT) && |
info | 2166 | drivers/char/serial.c | (info->pgrp != current->pgrp)) |
info | 2168 | drivers/char/serial.c | info->flags |= ASYNC_CALLOUT_ACTIVE; |
info | 2178 | drivers/char/serial.c | if (info->flags & ASYNC_CALLOUT_ACTIVE) |
info | 2180 | drivers/char/serial.c | info->flags |= ASYNC_NORMAL_ACTIVE; |
info | 2184 | drivers/char/serial.c | if (info->flags & ASYNC_CALLOUT_ACTIVE) { |
info | 2185 | drivers/char/serial.c | if (info->normal_termios.c_cflag & CLOCAL) |
info | 2200 | drivers/char/serial.c | add_wait_queue(&info->open_wait, &wait); |
info | 2203 | drivers/char/serial.c | info->line, info->count); |
info | 2205 | drivers/char/serial.c | info->count--; |
info | 2206 | drivers/char/serial.c | info->blocked_open++; |
info | 2209 | drivers/char/serial.c | if (!(info->flags & ASYNC_CALLOUT_ACTIVE)) |
info | 2210 | drivers/char/serial.c | serial_out(info, UART_MCR, |
info | 2211 | drivers/char/serial.c | serial_inp(info, UART_MCR) | |
info | 2216 | drivers/char/serial.c | !(info->flags & ASYNC_INITIALIZED)) { |
info | 2218 | drivers/char/serial.c | if (info->flags & ASYNC_HUP_NOTIFY) |
info | 2227 | drivers/char/serial.c | if (!(info->flags & ASYNC_CALLOUT_ACTIVE) && |
info | 2228 | drivers/char/serial.c | !(info->flags & ASYNC_CLOSING) && |
info | 2229 | drivers/char/serial.c | (do_clocal || (serial_in(info, UART_MSR) & |
info | 2238 | drivers/char/serial.c | info->line, info->count); |
info | 2243 | drivers/char/serial.c | remove_wait_queue(&info->open_wait, &wait); |
info | 2245 | drivers/char/serial.c | info->count++; |
info | 2246 | drivers/char/serial.c | info->blocked_open--; |
info | 2249 | drivers/char/serial.c | info->line, info->count); |
info | 2253 | drivers/char/serial.c | info->flags |= ASYNC_NORMAL_ACTIVE; |
info | 2265 | drivers/char/serial.c | struct async_struct *info; |
info | 2271 | drivers/char/serial.c | info = rs_table + line; |
info | 2272 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_open")) |
info | 2276 | drivers/char/serial.c | printk("rs_open %s%d, count = %d\n", tty->driver.name, info->line, |
info | 2277 | drivers/char/serial.c | info->count); |
info | 2279 | drivers/char/serial.c | info->count++; |
info | 2280 | drivers/char/serial.c | tty->driver_data = info; |
info | 2281 | drivers/char/serial.c | info->tty = tty; |
info | 2292 | drivers/char/serial.c | retval = startup(info); |
info | 2296 | drivers/char/serial.c | retval = block_til_ready(tty, filp, info); |
info | 2305 | drivers/char/serial.c | if ((info->count == 1) && (info->flags & ASYNC_SPLIT_TERMIOS)) { |
info | 2307 | drivers/char/serial.c | *tty->termios = info->normal_termios; |
info | 2309 | drivers/char/serial.c | *tty->termios = info->callout_termios; |
info | 2310 | drivers/char/serial.c | change_speed(info); |
info | 2313 | drivers/char/serial.c | info->session = current->session; |
info | 2314 | drivers/char/serial.c | info->pgrp = current->pgrp; |
info | 2317 | drivers/char/serial.c | printk("rs_open ttys%d successful...", info->line); |
info | 2355 | drivers/char/serial.c | static int get_auto_irq(struct async_struct *info) |
info | 2358 | drivers/char/serial.c | unsigned short ICP=0, port = info->port; |
info | 2366 | drivers/char/serial.c | save_IER = serial_inp(info, UART_IER); |
info | 2367 | drivers/char/serial.c | save_MCR = serial_inp(info, UART_MCR); |
info | 2368 | drivers/char/serial.c | if (info->flags & ASYNC_FOURPORT) { |
info | 2369 | drivers/char/serial.c | serial_outp(info, UART_MCR, UART_MCR_DTR | UART_MCR_RTS); |
info | 2370 | drivers/char/serial.c | serial_outp(info, UART_IER, 0x0f); /* enable all intrs */ |
info | 2376 | drivers/char/serial.c | serial_outp(info, UART_MCR, |
info | 2378 | drivers/char/serial.c | serial_outp(info, UART_IER, 0x0f); /* enable all intrs */ |
info | 2384 | drivers/char/serial.c | (void)serial_inp(info, UART_LSR); |
info | 2385 | drivers/char/serial.c | (void)serial_inp(info, UART_RX); |
info | 2386 | drivers/char/serial.c | (void)serial_inp(info, UART_IIR); |
info | 2387 | drivers/char/serial.c | (void)serial_inp(info, UART_MSR); |
info | 2398 | drivers/char/serial.c | serial_outp(info, UART_IER, save_IER); |
info | 2399 | drivers/char/serial.c | serial_outp(info, UART_MCR, save_MCR); |
info | 2400 | drivers/char/serial.c | if (info->flags & ASYNC_FOURPORT) |
info | 2410 | drivers/char/serial.c | static int do_auto_irq(struct async_struct * info) |
info | 2412 | drivers/char/serial.c | unsigned port = info->port; |
info | 2428 | drivers/char/serial.c | irq_try_1 = get_auto_irq(info); |
info | 2430 | drivers/char/serial.c | irq_try_2 = get_auto_irq(info); |
info | 2449 | drivers/char/serial.c | static void autoconfig(struct async_struct * info) |
info | 2452 | drivers/char/serial.c | unsigned port = info->port; |
info | 2455 | drivers/char/serial.c | info->type = PORT_UNKNOWN; |
info | 2471 | drivers/char/serial.c | scratch = serial_inp(info, UART_IER); |
info | 2472 | drivers/char/serial.c | serial_outp(info, UART_IER, 0); |
info | 2474 | drivers/char/serial.c | scratch2 = serial_inp(info, UART_IER); |
info | 2475 | drivers/char/serial.c | serial_outp(info, UART_IER, scratch); |
info | 2490 | drivers/char/serial.c | if (!(info->flags & ASYNC_SKIP_TEST)) { |
info | 2491 | drivers/char/serial.c | scratch = serial_inp(info, UART_MCR); |
info | 2492 | drivers/char/serial.c | serial_outp(info, UART_MCR, UART_MCR_LOOP | scratch); |
info | 2493 | drivers/char/serial.c | scratch2 = serial_inp(info, UART_MSR); |
info | 2494 | drivers/char/serial.c | serial_outp(info, UART_MCR, UART_MCR_LOOP | 0x0A); |
info | 2495 | drivers/char/serial.c | status1 = serial_inp(info, UART_MSR) & 0xF0; |
info | 2496 | drivers/char/serial.c | serial_outp(info, UART_MCR, scratch); |
info | 2497 | drivers/char/serial.c | serial_outp(info, UART_MSR, scratch2); |
info | 2508 | drivers/char/serial.c | if (info->flags & ASYNC_AUTO_IRQ) |
info | 2509 | drivers/char/serial.c | info->irq = do_auto_irq(info); |
info | 2511 | drivers/char/serial.c | scratch2 = serial_in(info, UART_LCR); |
info | 2512 | drivers/char/serial.c | serial_outp(info, UART_LCR, scratch2 | UART_LCR_DLAB); |
info | 2513 | drivers/char/serial.c | serial_outp(info, UART_EFR, 0); /* EFR is the same as FCR */ |
info | 2514 | drivers/char/serial.c | serial_outp(info, UART_LCR, scratch2); |
info | 2515 | drivers/char/serial.c | serial_outp(info, UART_FCR, UART_FCR_ENABLE_FIFO); |
info | 2516 | drivers/char/serial.c | scratch = serial_in(info, UART_IIR) >> 6; |
info | 2517 | drivers/char/serial.c | info->xmit_fifo_size = 1; |
info | 2520 | drivers/char/serial.c | info->type = PORT_16450; |
info | 2523 | drivers/char/serial.c | info->type = PORT_UNKNOWN; |
info | 2526 | drivers/char/serial.c | info->type = PORT_16550; |
info | 2529 | drivers/char/serial.c | serial_outp(info, UART_LCR, scratch2 | UART_LCR_DLAB); |
info | 2530 | drivers/char/serial.c | if (serial_in(info, UART_EFR) == 0) { |
info | 2531 | drivers/char/serial.c | info->type = PORT_16650; |
info | 2532 | drivers/char/serial.c | info->xmit_fifo_size = 32; |
info | 2534 | drivers/char/serial.c | info->type = PORT_16550A; |
info | 2535 | drivers/char/serial.c | info->xmit_fifo_size = 16; |
info | 2537 | drivers/char/serial.c | serial_outp(info, UART_LCR, scratch2); |
info | 2540 | drivers/char/serial.c | if (info->type == PORT_16450) { |
info | 2541 | drivers/char/serial.c | scratch = serial_in(info, UART_SCR); |
info | 2542 | drivers/char/serial.c | serial_outp(info, UART_SCR, 0xa5); |
info | 2543 | drivers/char/serial.c | status1 = serial_in(info, UART_SCR); |
info | 2544 | drivers/char/serial.c | serial_outp(info, UART_SCR, 0x5a); |
info | 2545 | drivers/char/serial.c | status2 = serial_in(info, UART_SCR); |
info | 2546 | drivers/char/serial.c | serial_outp(info, UART_SCR, scratch); |
info | 2549 | drivers/char/serial.c | info->type = PORT_8250; |
info | 2551 | drivers/char/serial.c | request_region(info->port,8,"serial(auto)"); |
info | 2561 | drivers/char/serial.c | serial_outp(info, UART_MCR, 0x0c); |
info | 2563 | drivers/char/serial.c | serial_outp(info, UART_MCR, 0x00); |
info | 2565 | drivers/char/serial.c | serial_outp(info, UART_FCR, (UART_FCR_CLEAR_RCVR | |
info | 2567 | drivers/char/serial.c | (void)serial_in(info, UART_RX); |
info | 2578 | drivers/char/serial.c | struct async_struct * info; |
info | 2645 | drivers/char/serial.c | for (i = 0, info = rs_table; i < NR_PORTS; i++,info++) { |
info | 2646 | drivers/char/serial.c | info->magic = SERIAL_MAGIC; |
info | 2647 | drivers/char/serial.c | info->line = i; |
info | 2648 | drivers/char/serial.c | info->tty = 0; |
info | 2649 | drivers/char/serial.c | info->type = PORT_UNKNOWN; |
info | 2650 | drivers/char/serial.c | info->custom_divisor = 0; |
info | 2651 | drivers/char/serial.c | info->close_delay = 5*HZ/10; |
info | 2652 | drivers/char/serial.c | info->closing_wait = 30*HZ; |
info | 2653 | drivers/char/serial.c | info->x_char = 0; |
info | 2654 | drivers/char/serial.c | info->event = 0; |
info | 2655 | drivers/char/serial.c | info->count = 0; |
info | 2656 | drivers/char/serial.c | info->blocked_open = 0; |
info | 2657 | drivers/char/serial.c | info->tqueue.routine = do_softint; |
info | 2658 | drivers/char/serial.c | info->tqueue.data = info; |
info | 2659 | drivers/char/serial.c | info->tqueue_hangup.routine = do_serial_hangup; |
info | 2660 | drivers/char/serial.c | info->tqueue_hangup.data = info; |
info | 2661 | drivers/char/serial.c | info->callout_termios =callout_driver.init_termios; |
info | 2662 | drivers/char/serial.c | info->normal_termios = serial_driver.init_termios; |
info | 2663 | drivers/char/serial.c | info->open_wait = 0; |
info | 2664 | drivers/char/serial.c | info->close_wait = 0; |
info | 2665 | drivers/char/serial.c | info->next_port = 0; |
info | 2666 | drivers/char/serial.c | info->prev_port = 0; |
info | 2667 | drivers/char/serial.c | if (info->irq == 2) |
info | 2668 | drivers/char/serial.c | info->irq = 9; |
info | 2669 | drivers/char/serial.c | if (!(info->flags & ASYNC_BOOT_AUTOCONF)) |
info | 2671 | drivers/char/serial.c | autoconfig(info); |
info | 2672 | drivers/char/serial.c | if (info->type == PORT_UNKNOWN) |
info | 2674 | drivers/char/serial.c | printk("tty%02d%s at 0x%04x (irq = %d)", info->line, |
info | 2675 | drivers/char/serial.c | (info->flags & ASYNC_FOURPORT) ? " FourPort" : "", |
info | 2676 | drivers/char/serial.c | info->port, info->irq); |
info | 2677 | drivers/char/serial.c | switch (info->type) { |
info | 2709 | drivers/char/serial.c | struct async_struct *info; |
info | 2727 | drivers/char/serial.c | info = &rs_table[i]; |
info | 2734 | drivers/char/serial.c | info->irq = req->irq; |
info | 2735 | drivers/char/serial.c | info->port = req->port; |
info | 2736 | drivers/char/serial.c | autoconfig(info); |
info | 2737 | drivers/char/serial.c | if (info->type == PORT_UNKNOWN) { |
info | 2742 | drivers/char/serial.c | printk("tty%02d at 0x%04x (irq = %d)", info->line, |
info | 2743 | drivers/char/serial.c | info->port, info->irq); |
info | 2744 | drivers/char/serial.c | switch (info->type) { |
info | 2757 | drivers/char/serial.c | return info->line; |
info | 2763 | drivers/char/serial.c | struct async_struct *info = &rs_table[line]; |
info | 2767 | drivers/char/serial.c | if (info->tty) |
info | 2768 | drivers/char/serial.c | tty_hangup(info->tty); |
info | 2769 | drivers/char/serial.c | info->type = PORT_UNKNOWN; |
info | 2770 | drivers/char/serial.c | printk("tty%02d unloaded\n", info->line); |
info | 232 | drivers/net/3c505.h | struct Info info; |
info | 324 | drivers/net/de4x5.c | char info[100]; |
info | 437 | drivers/pci/pci.c | struct pci_dev_info *info; |
info | 439 | drivers/pci/pci.c | info = pci_lookup_dev(vendor, device); |
info | 440 | drivers/pci/pci.c | return info ? info->name : "Unknown device"; |
info | 681 | drivers/pci/pci.c | struct pci_dev_info *info; |
info | 726 | drivers/pci/pci.c | info = pci_lookup_dev(dev->vendor, dev->device); |
info | 727 | drivers/pci/pci.c | if (!info) { |
info | 732 | drivers/pci/pci.c | if (info->bridge_type != 0xff) { |
info | 734 | drivers/pci/pci.c | info->bridge_type, 1); |
info | 372 | drivers/scsi/eata.c | struct eata_info info; |
info | 391 | drivers/scsi/eata.c | if (read_pio(*port_base, (ushort *)&info, (ushort *)&info.ipad[0])) |
info | 395 | drivers/scsi/eata.c | if (info.sign != EATA_SIGNATURE) return FALSE; |
info | 397 | drivers/scsi/eata.c | if (ntohl(info.data_len) < EATA_2_0A_SIZE) { |
info | 399 | drivers/scsi/eata.c | name, ntohl(info.data_len)); |
info | 402 | drivers/scsi/eata.c | else if (ntohl(info.data_len) == EATA_2_0A_SIZE) |
info | 404 | drivers/scsi/eata.c | else if (ntohl(info.data_len) == EATA_2_0B_SIZE) |
info | 409 | drivers/scsi/eata.c | if (protocol_rev != 'A' && info.max_chan > 0) |
info | 412 | drivers/scsi/eata.c | irq = info.irq; |
info | 416 | drivers/scsi/eata.c | if (!info.haaval || info.ata || info.drqvld) { |
info | 418 | drivers/scsi/eata.c | name, info.haaval, info.ata, info.drqvld); |
info | 427 | drivers/scsi/eata.c | if (!info.haaval || info.ata || !info.drqvld) { |
info | 429 | drivers/scsi/eata.c | name, info.haaval, info.ata, info.drqvld); |
info | 434 | drivers/scsi/eata.c | dma_channel = dma_channel_table[3 - info.drqx]; |
info | 437 | drivers/scsi/eata.c | if (!info.dmasup) |
info | 440 | drivers/scsi/eata.c | if (subversion == ESA && !info.irq_tr) |
info | 444 | drivers/scsi/eata.c | if (info.second) |
info | 495 | drivers/scsi/eata.c | sh[j]->sg_tablesize = (ushort) ntohs(info.scatt_size); |
info | 496 | drivers/scsi/eata.c | sh[j]->this_id = (ushort) info.host_addr[3]; |
info | 497 | drivers/scsi/eata.c | sh[j]->can_queue = (ushort) ntohs(info.queue_size); |
info | 542 | drivers/scsi/eata.c | " max_chan %u.\n", name, protocol_rev, info.isaena, |
info | 543 | drivers/scsi/eata.c | info.forcaddr, info.max_id, info.max_chan); |
info | 546 | drivers/scsi/eata.c | name, info.version, info.sync, ntohl(info.data_len), |
info | 547 | drivers/scsi/eata.c | ntohl(info.cp_len), ntohl(info.sp_len)); |
info | 1095 | drivers/scsi/fdomain.c | const char *info = fdomain_16x0_info( NULL ); |
info | 1103 | drivers/scsi/fdomain.c | strcpy( buffer, info ); |
info | 380 | drivers/scsi/hosts.c | if(shpnt->hostt->info) |
info | 381 | drivers/scsi/hosts.c | name = shpnt->hostt->info(shpnt); |
info | 108 | drivers/scsi/hosts.h | const char *(* info)(struct Scsi_Host *); |
info | 2641 | drivers/scsi/scsi.c | if(tpnt->info) |
info | 2642 | drivers/scsi/scsi.c | name = tpnt->info(shpnt); |
info | 591 | drivers/scsi/scsi_debug.c | int scsi_debug_biosparam(Disk * disk, kdev_t dev, int* info){ |
info | 593 | drivers/scsi/scsi_debug.c | info[0] = 32; |
info | 594 | drivers/scsi/scsi_debug.c | info[1] = 64; |
info | 595 | drivers/scsi/scsi_debug.c | info[2] = (size + 2047) >> 11; |
info | 596 | drivers/scsi/scsi_debug.c | if (info[2] >= 1024) info[2] = 1024; |
info | 54 | drivers/scsi/scsi_ioctl.c | if(host->hostt->info) |
info | 55 | drivers/scsi/scsi_ioctl.c | string = host->hostt->info(host); |
info | 399 | drivers/sound/audio.c | audio_buf_info info; |
info | 401 | drivers/sound/audio.c | int err = DMAbuf_ioctl (dev, cmd, (ioctl_arg) & info, 1); |
info | 406 | drivers/sound/audio.c | memcpy_tofs ((&((char *) arg)[0]), (char *) &info, sizeof (info)); |
info | 415 | drivers/sound/audio.c | audio_buf_info info; |
info | 417 | drivers/sound/audio.c | int err = DMAbuf_ioctl (dev, cmd, (ioctl_arg) & info, 1); |
info | 423 | drivers/sound/audio.c | info.bytes += wr_buff_size[dev] - wr_buff_ptr[dev]; |
info | 425 | drivers/sound/audio.c | memcpy_tofs ((&((char *) arg)[0]), (char *) &info, sizeof (info)); |
info | 436 | drivers/sound/audio.c | int info = 1; /* Revision level of this ioctl() */ |
info | 439 | drivers/sound/audio.c | info |= DSP_CAP_DUPLEX; |
info | 442 | drivers/sound/audio.c | info |= DSP_CAP_COPROC; |
info | 445 | drivers/sound/audio.c | info |= DSP_CAP_BATCH; |
info | 448 | drivers/sound/audio.c | info |= DSP_CAP_TRIGGER; |
info | 450 | drivers/sound/audio.c | memcpy_tofs ((&((char *) arg)[0]), (char *) &info, sizeof (info)); |
info | 178 | drivers/sound/dev_table.h | struct synth_info *info; |
info | 197 | drivers/sound/dev_table.h | int (*pmgr_interface) (int dev, struct patmgr_info *info); |
info | 221 | drivers/sound/dev_table.h | struct midi_info info; |
info | 248 | drivers/sound/dev_table.h | struct sound_timer_info info; |
info | 490 | drivers/sound/dev_table.h | extern int soud_map_buffer (int dev, struct dma_buffparms *dmap, buffmem_desc *info); |
info | 759 | drivers/sound/dmabuf.c | audio_buf_info *info = (audio_buf_info *) arg; |
info | 770 | drivers/sound/dmabuf.c | info->fragstotal = dmap->nbufs; |
info | 773 | drivers/sound/dmabuf.c | info->fragments = dmap->qlen; |
info | 777 | drivers/sound/dmabuf.c | info->fragments = 0; |
info | 780 | drivers/sound/dmabuf.c | info->fragments = dmap->nbufs - dmap->qlen; |
info | 785 | drivers/sound/dmabuf.c | if (tmp & info->fragments) |
info | 789 | drivers/sound/dmabuf.c | info->fragments -= tmp; |
info | 794 | drivers/sound/dmabuf.c | if (info->fragments < 0) |
info | 795 | drivers/sound/dmabuf.c | info->fragments = 0; |
info | 796 | drivers/sound/dmabuf.c | else if (info->fragments > dmap->nbufs) |
info | 797 | drivers/sound/dmabuf.c | info->fragments = dmap->nbufs; |
info | 799 | drivers/sound/dmabuf.c | info->fragsize = dmap->fragment_size; |
info | 800 | drivers/sound/dmabuf.c | info->bytes = info->fragments * dmap->fragment_size; |
info | 803 | drivers/sound/dmabuf.c | info->bytes -= dmap->counts[dmap->qhead]; |
info | 858 | drivers/sound/dmabuf.c | count_info info; |
info | 863 | drivers/sound/dmabuf.c | info.bytes = audio_devs[dev]->dmap_in->byte_counter; |
info | 864 | drivers/sound/dmabuf.c | info.ptr = get_buffer_pointer (dev, audio_devs[dev]->dmachan2, audio_devs[dev]->dmap_in); |
info | 865 | drivers/sound/dmabuf.c | info.blocks = audio_devs[dev]->dmap_in->qlen; |
info | 866 | drivers/sound/dmabuf.c | info.bytes += info.ptr; |
info | 867 | drivers/sound/dmabuf.c | memcpy_tofs ((&((char *) arg)[0]), (char *) &info, sizeof (info)); |
info | 878 | drivers/sound/dmabuf.c | count_info info; |
info | 883 | drivers/sound/dmabuf.c | info.bytes = audio_devs[dev]->dmap_out->byte_counter; |
info | 884 | drivers/sound/dmabuf.c | info.ptr = get_buffer_pointer (dev, audio_devs[dev]->dmachan1, audio_devs[dev]->dmap_out); |
info | 885 | drivers/sound/dmabuf.c | info.blocks = audio_devs[dev]->dmap_out->qlen; |
info | 886 | drivers/sound/dmabuf.c | info.bytes += info.ptr; |
info | 887 | drivers/sound/dmabuf.c | memcpy_tofs ((&((char *) arg)[0]), (char *) &info, sizeof (info)); |
info | 2504 | drivers/sound/gus_wave.c | struct channel_info *info = |
info | 2507 | drivers/sound/gus_wave.c | guswave_set_instr (dev, voice, info->pgm_num); |
info | 2510 | drivers/sound/gus_wave.c | info->controllers[CTL_EXPRESSION]; /* Just msb */ |
info | 2512 | drivers/sound/gus_wave.c | (info->controllers[CTL_MAIN_VOLUME] * 100) / 128; |
info | 2514 | drivers/sound/gus_wave.c | (info->controllers[CTL_PAN] * 2) - 128; |
info | 2515 | drivers/sound/gus_wave.c | voices[voice].bender = info->bender_value; |
info | 287 | drivers/sound/midi_synth.c | memcpy_tofs ((&((char *) arg)[0]), synth_devs[dev]->info, sizeof (struct synth_info)); |
info | 1152 | drivers/sound/mpu401.c | strcpy (mpu401_midi_operations[num_midis].info.name, |
info | 1156 | drivers/sound/mpu401.c | mpu401_synth_operations[devc->devno]->info = |
info | 1137 | drivers/sound/opl3.c | struct channel_info *info = |
info | 1141 | drivers/sound/opl3.c | info->pgm_num); |
info | 1143 | drivers/sound/opl3.c | devc->voc[voice].bender = info->bender_value; |
info | 1145 | drivers/sound/opl3.c | info->controllers[CTL_MAIN_VOLUME]; |
info | 1216 | drivers/sound/opl3.c | opl3_operations.info = &devc->fm_info; |
info | 1806 | drivers/sound/sequencer.c | memcpy_tofs ((&((char *) arg)[0]), (char *) &(midi_devs[dev]->info), sizeof (inf)); |
info | 243 | drivers/sound/sound_switch.c | if (!put_status (synth_devs[i]->info->name)) |
info | 263 | drivers/sound/sound_switch.c | if (!put_status (midi_devs[i]->info.name)) |
info | 279 | drivers/sound/sound_switch.c | if (!put_status (sound_timer_devs[i]->info.name)) |
info | 349 | drivers/sound/sound_timer.c | strcpy (sound_timer.info.name, name); |
info | 724 | drivers/sound/soundcard.c | soud_map_buffer (int dev, struct dma_buffparms *dmap, buffmem_desc * info) |
info | 68 | fs/minix/dir.c | struct minix_sb_info * info; |
info | 72 | fs/minix/dir.c | info = &inode->i_sb->u.minix_sb; |
info | 73 | fs/minix/dir.c | if (filp->f_pos & (info->s_dirsize - 1)) |
info | 85 | fs/minix/dir.c | int size = strnlen(de->name, info->s_namelen); |
info | 91 | fs/minix/dir.c | offset += info->s_dirsize; |
info | 92 | fs/minix/dir.c | filp->f_pos += info->s_dirsize; |
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 | 190 | 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 | 348 | fs/minix/namei.c | de = (struct minix_dir_entry *) (dir_block->b_data + info->s_dirsize); |
info | 383 | fs/minix/namei.c | struct minix_sb_info * info; |
info | 387 | fs/minix/namei.c | info = &inode->i_sb->u.minix_sb; |
info | 390 | fs/minix/namei.c | offset = 2*info->s_dirsize; |
info | 391 | fs/minix/namei.c | if (inode->i_size & (info->s_dirsize-1)) |
info | 401 | fs/minix/namei.c | de = (struct minix_dir_entry *) (bh->b_data + info->s_dirsize); |
info | 413 | fs/minix/namei.c | offset += info->s_dirsize; |
info | 666 | fs/minix/namei.c | (((struct minix_dir_entry *) ((buffer)+info->s_dirsize))->inode) |
info | 684 | fs/minix/namei.c | struct minix_sb_info * info; |
info | 687 | fs/minix/namei.c | info = &old_dir->i_sb->u.minix_sb; |
info | 194 | fs/umsdos/dir.c | struct umsdos_info info; |
info | 197 | fs/umsdos/dir.c | umsdos_parse (entry.name,entry.name_len,&info); |
info | 198 | fs/umsdos/dir.c | info.f_pos = cur_f_pos; |
info | 199 | fs/umsdos/dir.c | umsdos_manglename (&info); |
info | 200 | fs/umsdos/dir.c | lret = umsdos_real_lookup (dir,info.fake.fname |
info | 201 | fs/umsdos/dir.c | ,info.fake.len,&inode); |
info | 203 | fs/umsdos/dir.c | ,info.fake.fname,lret,entry.flags)); |
info | 239 | fs/umsdos/dir.c | ret = umsdos_writeentry (dir,emd_dir,&info,1); |
info | 678 | fs/umsdos/dir.c | struct umsdos_info info; |
info | 679 | fs/umsdos/dir.c | ret = umsdos_parse (name,len,&info); |
info | 680 | fs/umsdos/dir.c | if (ret == 0) ret = umsdos_findentry (dir,&info,0); |
info | 681 | fs/umsdos/dir.c | PRINTK (("lookup %s pos %lu ret %d len %d ",info.fake.fname,info.f_pos,ret |
info | 682 | fs/umsdos/dir.c | ,info.fake.len)); |
info | 694 | fs/umsdos/dir.c | ret = umsdos_real_lookup (dir,info.fake.fname,info.fake.len,result); |
info | 698 | fs/umsdos/dir.c | ,info.fake.fname); |
info | 699 | fs/umsdos/dir.c | umsdos_delentry (dir,&info,S_ISDIR(info.entry.mode)); |
info | 701 | fs/umsdos/dir.c | umsdos_lookup_patch (dir,inode,&info.entry,info.f_pos); |
info | 703 | fs/umsdos/dir.c | ,info.entry.flags)); |
info | 704 | fs/umsdos/dir.c | if (info.entry.flags & UMSDOS_HLINK){ |
info | 167 | fs/umsdos/emd.c | struct umsdos_info *info, |
info | 172 | fs/umsdos/emd.c | struct umsdos_dirent *entry = &info->entry; |
info | 194 | fs/umsdos/emd.c | filp.f_pos = info->f_pos; |
info | 196 | fs/umsdos/emd.c | ret = umsdos_emd_dir_write(emd_dir,&filp,(char*)entry,info->recsize); |
info | 269 | fs/umsdos/emd.c | struct umsdos_info *info, /* Hold name and name_len */ |
info | 282 | fs/umsdos/emd.c | struct umsdos_dirent *entry = &info->entry; |
info | 283 | fs/umsdos/emd.c | int recsize = info->recsize; |
info | 307 | fs/umsdos/emd.c | info->f_pos = empty.posok; |
info | 314 | fs/umsdos/emd.c | info->f_pos = file_pos; |
info | 337 | fs/umsdos/emd.c | info->f_pos = empty.posok; |
info | 345 | fs/umsdos/emd.c | info->f_pos = file_pos; |
info | 355 | fs/umsdos/emd.c | umsdos_manglename(info); |
info | 369 | fs/umsdos/emd.c | struct umsdos_info *info) |
info | 372 | fs/umsdos/emd.c | int ret = umsdos_find (dir,info,&emd_dir); |
info | 376 | fs/umsdos/emd.c | ret = umsdos_writeentry(dir,emd_dir,info,0); |
info | 388 | fs/umsdos/emd.c | struct umsdos_info *info) |
info | 392 | fs/umsdos/emd.c | umsdos_parse ("..LINK",6,info); |
info | 393 | fs/umsdos/emd.c | info->entry.name_len = 0; |
info | 394 | fs/umsdos/emd.c | ret = umsdos_find (dir,info,&emd_dir); |
info | 402 | fs/umsdos/emd.c | info->entry.name_len = sprintf (info->entry.name,"..LINK%ld" |
info | 403 | fs/umsdos/emd.c | ,info->f_pos); |
info | 416 | fs/umsdos/emd.c | struct umsdos_info *info, |
info | 420 | fs/umsdos/emd.c | int ret = umsdos_find (dir,info,&emd_dir); |
info | 422 | fs/umsdos/emd.c | if (info->entry.name_len != 0){ |
info | 423 | fs/umsdos/emd.c | if ((isdir != 0) != (S_ISDIR(info->entry.mode) != 0)){ |
info | 424 | fs/umsdos/emd.c | if (S_ISDIR(info->entry.mode)){ |
info | 430 | fs/umsdos/emd.c | ret = umsdos_writeentry(dir,emd_dir,info,1); |
info | 478 | fs/umsdos/emd.c | struct umsdos_info *info, |
info | 484 | fs/umsdos/emd.c | int ret = umsdos_find (dir,info,&emd_dir); |
info | 487 | fs/umsdos/emd.c | if (S_ISDIR(info->entry.mode)){ |
info | 151 | fs/umsdos/ioctl.c | struct umsdos_info info; |
info | 153 | fs/umsdos/ioctl.c | umsdos_parse (entry.name,entry.name_len,&info); |
info | 154 | fs/umsdos/ioctl.c | info.f_pos = f_pos; |
info | 155 | fs/umsdos/ioctl.c | umsdos_manglename(&info); |
info | 159 | fs/umsdos/ioctl.c | ,info.fake.fname,info.fake.len+1); |
info | 201 | fs/umsdos/ioctl.c | struct umsdos_info info; |
info | 204 | fs/umsdos/ioctl.c | memcpy (&info.entry,&data.umsdos_dirent |
info | 207 | fs/umsdos/ioctl.c | ,data.umsdos_dirent.name_len,&info); |
info | 208 | fs/umsdos/ioctl.c | ret = umsdos_newentry (dir,&info); |
info | 233 | fs/umsdos/ioctl.c | struct umsdos_info info; |
info | 236 | fs/umsdos/ioctl.c | memcpy (&info.entry,&data.umsdos_dirent |
info | 239 | fs/umsdos/ioctl.c | ,data.umsdos_dirent.name_len,&info); |
info | 240 | fs/umsdos/ioctl.c | ret = umsdos_delentry (dir,&info |
info | 27 | fs/umsdos/mangle.c | void umsdos_manglename (struct umsdos_info *info) |
info | 29 | fs/umsdos/mangle.c | if (info->msdos_reject){ |
info | 77 | fs/umsdos/mangle.c | char *pt = info->fake.fname + info->fake.len; |
info | 91 | fs/umsdos/mangle.c | u.entry_num = info->f_pos / UMSDOS_REC_SIZE; |
info | 102 | fs/umsdos/mangle.c | info->fake.len += 4; |
info | 103 | fs/umsdos/mangle.c | info->msdos_reject = 0; /* Avoid mangling twice */ |
info | 140 | fs/umsdos/mangle.c | struct umsdos_info *info) |
info | 287 | fs/umsdos/mangle.c | char *pt = info->fake.fname; |
info | 293 | fs/umsdos/mangle.c | memcpy (info->fake.fname,fname,msdos_len); |
info | 296 | fs/umsdos/mangle.c | info->msdos_reject = 1; |
info | 305 | fs/umsdos/mangle.c | strncpy (info->fake.fname,fname,len); |
info | 306 | fs/umsdos/mangle.c | info->msdos_reject = 0; |
info | 359 | fs/umsdos/mangle.c | if (memcmp(info->fake.fname,tbdev[i],base_len)==0){ |
info | 360 | fs/umsdos/mangle.c | memcpy (basen,info->fake.fname,base_len); |
info | 366 | fs/umsdos/mangle.c | info->fake.fname[0] = '-'; |
info | 367 | fs/umsdos/mangle.c | strcpy (info->fake.fname+1,basen); /* GLU C'est sur on a un 0 a la fin */ |
info | 369 | fs/umsdos/mangle.c | info->msdos_reject = 1; |
info | 374 | fs/umsdos/mangle.c | info->fake.fname[msdos_len] = '\0'; /* Help doing printk */ |
info | 376 | fs/umsdos/mangle.c | info->fake.len = msdos_len; |
info | 378 | fs/umsdos/mangle.c | memcpy (info->entry.name,fname,len); |
info | 379 | fs/umsdos/mangle.c | info->entry.name_len = len; |
info | 385 | fs/umsdos/mangle.c | info->recsize = umsdos_evalrecsize (len); |
info | 457 | fs/umsdos/mangle.c | struct umsdos_info info; |
info | 458 | fs/umsdos/mangle.c | int ok = umsdos_parse (pttb->fname,strlen(pttb->fname),&info); |
info | 459 | fs/umsdos/mangle.c | if (strcmp(info.fake.fname,pttb->msname)!=0){ |
info | 461 | fs/umsdos/mangle.c | printf ("%s <> %s\n",info.fake.fname,pttb->msname); |
info | 462 | fs/umsdos/mangle.c | }else if (info.msdos_reject != pttb->msdos_reject){ |
info | 464 | fs/umsdos/mangle.c | printf ("%d <> %d\n",info.msdos_reject,pttb->msdos_reject); |
info | 215 | fs/umsdos/namei.c | struct umsdos_info info; |
info | 216 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
info | 219 | fs/umsdos/namei.c | info.entry.mode = mode; |
info | 220 | fs/umsdos/namei.c | info.entry.rdev = rdev; |
info | 221 | fs/umsdos/namei.c | info.entry.flags = flags; |
info | 222 | fs/umsdos/namei.c | info.entry.uid = current->fsuid; |
info | 223 | fs/umsdos/namei.c | info.entry.gid = (dir->i_mode & S_ISGID) |
info | 225 | fs/umsdos/namei.c | info.entry.ctime = info.entry.atime = info.entry.mtime |
info | 227 | fs/umsdos/namei.c | info.entry.nlink = 1; |
info | 229 | fs/umsdos/namei.c | ret = umsdos_newentry (dir,&info); |
info | 232 | fs/umsdos/namei.c | ret = msdos_create (dir,info.fake.fname,info.fake.len |
info | 236 | fs/umsdos/namei.c | umsdos_lookup_patch (dir,inode,&info.entry,info.f_pos); |
info | 239 | fs/umsdos/namei.c | ,info.fake.fname,current->pid,info.f_pos)); |
info | 266 | fs/umsdos/namei.c | ,info.fake.fname,-ret,current->pid,info.f_pos); |
info | 268 | fs/umsdos/namei.c | umsdos_delentry (dir,&info,0); |
info | 271 | fs/umsdos/namei.c | ,info.fake.fname,ret,info.f_pos)); |
info | 595 | fs/umsdos/namei.c | struct umsdos_info info; |
info | 596 | fs/umsdos/namei.c | ret = umsdos_newhidden (olddir,&info); |
info | 602 | fs/umsdos/namei.c | ,olddir,info.entry.name,info.entry.name_len |
info | 688 | fs/umsdos/namei.c | struct umsdos_info info; |
info | 689 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
info | 692 | fs/umsdos/namei.c | info.entry.mode = mode | S_IFDIR; |
info | 693 | fs/umsdos/namei.c | info.entry.rdev = 0; |
info | 694 | fs/umsdos/namei.c | info.entry.uid = current->fsuid; |
info | 695 | fs/umsdos/namei.c | info.entry.gid = (dir->i_mode & S_ISGID) |
info | 697 | fs/umsdos/namei.c | info.entry.ctime = info.entry.atime = info.entry.mtime |
info | 699 | fs/umsdos/namei.c | info.entry.flags = 0; |
info | 701 | fs/umsdos/namei.c | info.entry.nlink = 1; |
info | 702 | fs/umsdos/namei.c | ret = umsdos_newentry (dir,&info); |
info | 706 | fs/umsdos/namei.c | ret = msdos_mkdir (dir,info.fake.fname,info.fake.len,mode); |
info | 708 | fs/umsdos/namei.c | umsdos_delentry (dir,&info,1); |
info | 721 | fs/umsdos/namei.c | ret = umsdos_real_lookup (dir,info.fake.fname |
info | 722 | fs/umsdos/namei.c | ,info.fake.len,&subdir); |
info | 896 | fs/umsdos/namei.c | struct umsdos_info info; |
info | 898 | fs/umsdos/namei.c | umsdos_parse (name,len,&info); |
info | 901 | fs/umsdos/namei.c | umsdos_findentry (dir,&info,2); |
info | 902 | fs/umsdos/namei.c | ret = msdos_rmdir (dir,info.fake.fname |
info | 903 | fs/umsdos/namei.c | ,info.fake.len); |
info | 905 | fs/umsdos/namei.c | ret = umsdos_delentry (dir,&info,1); |
info | 937 | fs/umsdos/namei.c | struct umsdos_info info; |
info | 938 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
info | 941 | fs/umsdos/namei.c | ret = umsdos_findentry(dir,&info,1); |
info | 943 | fs/umsdos/namei.c | PRINTK (("UMSDOS_unlink %s ",info.fake.fname)); |
info | 946 | fs/umsdos/namei.c | current->fsuid == info.entry.uid || |
info | 948 | fs/umsdos/namei.c | if (info.entry.flags & UMSDOS_HLINK){ |
info | 987 | fs/umsdos/namei.c | ret = umsdos_delentry (dir,&info,0); |
info | 989 | fs/umsdos/namei.c | PRINTK (("Avant msdos_unlink %s ",info.fake.fname)); |
info | 991 | fs/umsdos/namei.c | ret = msdos_unlink_umsdos (dir,info.fake.fname |
info | 992 | fs/umsdos/namei.c | ,info.fake.len); |
info | 993 | fs/umsdos/namei.c | PRINTK (("msdos_unlink %s %o ret %d ",info.fake.fname |
info | 994 | fs/umsdos/namei.c | ,info.entry.mode,ret)); |
info | 25 | include/asm-alpha/a.out.h | __u64 info; /* after that it looks quite normal.. */ |
info | 62 | include/asm-alpha/a.out.h | #define a_info ah.info |
info | 65 | include/asm-i386/processor.h | struct info *info; |
info | 27 | include/net/icmp.h | unsigned long info, struct device *dev); |
info | 17 | kernel/info.c | asmlinkage int sys_sysinfo(struct sysinfo *info) |
info | 22 | kernel/info.c | error = verify_area(VERIFY_WRITE, info, sizeof(struct sysinfo)); |
info | 38 | kernel/info.c | memcpy_tofs(info, &val, sizeof(struct sysinfo)); |
info | 252 | net/ipv4/icmp.c | void icmp_send(struct sk_buff *skb_in, int type, int code, unsigned long info, struct device *dev) |
info | 321 | net/ipv4/icmp.c | icmp_param.icmph.un.gateway = info; |