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 | 71 | drivers/block/ide-cd.c | byte info[4]; |
info | 332 | drivers/block/ide-cd.c | struct cdrom_info *info = &cdrom_info[dev->hwif][dev->select.b.drive]; |
info | 343 | drivers/block/ide-cd.c | if (info->sector_buffer == NULL) |
info | 345 | drivers/block/ide-cd.c | info->sector_buffer = (char *) kmalloc (SECTOR_BUFFER_SIZE, GFP_ATOMIC); |
info | 348 | drivers/block/ide-cd.c | if (info->sector_buffer == NULL) |
info | 353 | drivers/block/ide-cd.c | info->sector_buffered = sector; |
info | 354 | drivers/block/ide-cd.c | info->nsectors_buffered = sectors_to_buffer; |
info | 357 | drivers/block/ide-cd.c | dest = info->sector_buffer; |
info | 537 | drivers/block/ide-cd.c | struct cdrom_info *info = &cdrom_info[dev->hwif][dev->select.b.drive]; |
info | 541 | drivers/block/ide-cd.c | if (info->sector_buffer == NULL) return 0; |
info | 546 | drivers/block/ide-cd.c | rq->sector >= info->sector_buffered && |
info | 547 | drivers/block/ide-cd.c | rq->sector < info->sector_buffered + info->nsectors_buffered) |
info | 553 | drivers/block/ide-cd.c | info->sector_buffer + |
info | 554 | drivers/block/ide-cd.c | (rq->sector - info->sector_buffered) * SECTOR_SIZE, |
info | 394 | drivers/char/cyclades.c | serial_paranoia_check(struct cyclades_port *info, |
info | 405 | drivers/char/cyclades.c | if (!info) { |
info | 410 | drivers/char/cyclades.c | if( (long)info < (long)(&cy_port[0]) |
info | 411 | drivers/char/cyclades.c | || (long)(&cy_port[NR_PORTS]) < (long)info ){ |
info | 416 | drivers/char/cyclades.c | if (info->magic != CYCLADES_MAGIC) { |
info | 490 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 496 | drivers/char/cyclades.c | printk("cy_stop ttyC%d\n", info->line); /* */ |
info | 499 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_stop")) |
info | 502 | drivers/char/cyclades.c | cinfo = &cy_card[info->card]; |
info | 503 | drivers/char/cyclades.c | channel = info->line - cinfo->first_line; |
info | 507 | drivers/char/cyclades.c | (cy_card[info->card].base_addr + cy_chip_offset[chip]); |
info | 521 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 527 | drivers/char/cyclades.c | printk("cy_start ttyC%d\n", info->line); /* */ |
info | 530 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_start")) |
info | 533 | drivers/char/cyclades.c | cinfo = &cy_card[info->card]; |
info | 534 | drivers/char/cyclades.c | channel = info->line - cinfo->first_line; |
info | 538 | drivers/char/cyclades.c | (cy_card[info->card].base_addr + cy_chip_offset[chip]); |
info | 556 | drivers/char/cyclades.c | cy_sched_event(struct cyclades_port *info, int event) |
info | 558 | drivers/char/cyclades.c | info->event |= 1 << event; /* remember what kind of event and who */ |
info | 559 | drivers/char/cyclades.c | queue_task_irq_off(&info->tqueue, &tq_cyclades); /* it belongs to */ |
info | 587 | drivers/char/cyclades.c | struct cyclades_port *info; |
info | 632 | drivers/char/cyclades.c | info = &cy_port[i]; |
info | 633 | drivers/char/cyclades.c | info->last_active = jiffies; |
info | 638 | drivers/char/cyclades.c | if(info->tty == 0){ |
info | 649 | drivers/char/cyclades.c | tty = info->tty; |
info | 653 | drivers/char/cyclades.c | if(data & info->ignore_status_mask){ |
info | 658 | drivers/char/cyclades.c | if (data & info->read_status_mask){ |
info | 664 | drivers/char/cyclades.c | if (info->flags & ASYNC_SAK){ |
info | 713 | drivers/char/cyclades.c | ++info->mon.int_count; |
info | 714 | drivers/char/cyclades.c | info->mon.char_count += char_count; |
info | 715 | drivers/char/cyclades.c | if (char_count > info->mon.char_max) |
info | 716 | drivers/char/cyclades.c | info->mon.char_max = char_count; |
info | 717 | drivers/char/cyclades.c | info->mon.char_last = char_count; |
info | 756 | drivers/char/cyclades.c | info = &cy_port[i]; |
info | 757 | drivers/char/cyclades.c | info->last_active = jiffies; |
info | 758 | drivers/char/cyclades.c | if(info->tty == 0){ |
info | 764 | drivers/char/cyclades.c | char_count = info->xmit_fifo_size; |
info | 767 | drivers/char/cyclades.c | if(info->x_char) { /* send special char */ |
info | 768 | drivers/char/cyclades.c | outch = info->x_char; |
info | 771 | drivers/char/cyclades.c | info->x_char = 0; |
info | 774 | drivers/char/cyclades.c | if (info->x_break){ |
info | 787 | drivers/char/cyclades.c | base_addr[CyTDR] = info->x_break*200/HZ; |
info | 791 | drivers/char/cyclades.c | info->x_break = 0; |
info | 795 | drivers/char/cyclades.c | if (!info->xmit_cnt){ |
info | 799 | drivers/char/cyclades.c | if (info->xmit_buf == 0){ |
info | 803 | drivers/char/cyclades.c | if (info->tty->stopped || info->tty->hw_stopped){ |
info | 818 | drivers/char/cyclades.c | outch = info->xmit_buf[info->xmit_tail]; |
info | 820 | drivers/char/cyclades.c | info->xmit_cnt--; |
info | 821 | drivers/char/cyclades.c | info->xmit_tail = (info->xmit_tail + 1) |
info | 826 | drivers/char/cyclades.c | info->xmit_cnt--; |
info | 827 | drivers/char/cyclades.c | info->xmit_tail = (info->xmit_tail + 1) |
info | 838 | drivers/char/cyclades.c | if (info->xmit_cnt < WAKEUP_CHARS) { |
info | 839 | drivers/char/cyclades.c | cy_sched_event(info, Cy_EVENT_WRITE_WAKEUP); |
info | 853 | drivers/char/cyclades.c | info = &cy_port[channel + chip * 4 + cinfo->first_line]; |
info | 854 | drivers/char/cyclades.c | info->last_active = jiffies; |
info | 861 | drivers/char/cyclades.c | if(info->tty == 0){ /* nowhere to put the data, ignore it */ |
info | 865 | drivers/char/cyclades.c | && (info->flags & ASYNC_CHECK_CD)){ |
info | 868 | drivers/char/cyclades.c | cy_sched_event(info, Cy_EVENT_OPEN_WAKEUP); |
info | 869 | drivers/char/cyclades.c | }else if(!((info->flags & ASYNC_CALLOUT_ACTIVE) |
info | 870 | drivers/char/cyclades.c | &&(info->flags & ASYNC_CALLOUT_NOHUP))){ |
info | 872 | drivers/char/cyclades.c | cy_sched_event(info, Cy_EVENT_HANGUP); |
info | 876 | drivers/char/cyclades.c | && (info->flags & ASYNC_CTS_FLOW)){ |
info | 877 | drivers/char/cyclades.c | if(info->tty->stopped){ |
info | 880 | drivers/char/cyclades.c | info->tty->stopped = 0; |
info | 882 | drivers/char/cyclades.c | cy_sched_event(info, Cy_EVENT_WRITE_WAKEUP); |
info | 887 | drivers/char/cyclades.c | info->tty->stopped = 1; |
info | 942 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *) private_; |
info | 945 | drivers/char/cyclades.c | tty = info->tty; |
info | 949 | drivers/char/cyclades.c | if (clear_bit(Cy_EVENT_HANGUP, &info->event)) { |
info | 950 | drivers/char/cyclades.c | tty_hangup(info->tty); |
info | 951 | drivers/char/cyclades.c | wake_up_interruptible(&info->open_wait); |
info | 952 | drivers/char/cyclades.c | info->flags &= ~(ASYNC_NORMAL_ACTIVE| |
info | 955 | drivers/char/cyclades.c | if (clear_bit(Cy_EVENT_OPEN_WAKEUP, &info->event)) { |
info | 956 | drivers/char/cyclades.c | wake_up_interruptible(&info->open_wait); |
info | 958 | drivers/char/cyclades.c | if (clear_bit(Cy_EVENT_WRITE_WAKEUP, &info->event)) { |
info | 1138 | drivers/char/cyclades.c | startup(struct cyclades_port * info) |
info | 1144 | drivers/char/cyclades.c | if (info->flags & ASYNC_INITIALIZED){ |
info | 1148 | drivers/char/cyclades.c | if (!info->type){ |
info | 1149 | drivers/char/cyclades.c | if (info->tty){ |
info | 1150 | drivers/char/cyclades.c | set_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 1154 | drivers/char/cyclades.c | if (!info->xmit_buf){ |
info | 1155 | drivers/char/cyclades.c | info->xmit_buf = (unsigned char *) get_free_page (GFP_KERNEL); |
info | 1156 | drivers/char/cyclades.c | if (!info->xmit_buf){ |
info | 1161 | drivers/char/cyclades.c | config_setup(info); |
info | 1163 | drivers/char/cyclades.c | card = info->card; |
info | 1164 | drivers/char/cyclades.c | channel = (info->line) - (cy_card[card].first_line); |
info | 1178 | drivers/char/cyclades.c | base_addr[CyRTPR] = (info->default_timeout |
info | 1179 | drivers/char/cyclades.c | ? info->default_timeout |
info | 1195 | drivers/char/cyclades.c | info->flags |= ASYNC_INITIALIZED; |
info | 1197 | drivers/char/cyclades.c | if (info->tty){ |
info | 1198 | drivers/char/cyclades.c | clear_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 1200 | drivers/char/cyclades.c | info->xmit_cnt = info->xmit_head = info->xmit_tail = 0; |
info | 1211 | drivers/char/cyclades.c | start_xmit( struct cyclades_port *info ) |
info | 1217 | drivers/char/cyclades.c | card = info->card; |
info | 1218 | drivers/char/cyclades.c | channel = (info->line) - (cy_card[card].first_line); |
info | 1234 | drivers/char/cyclades.c | shutdown(struct cyclades_port * info) |
info | 1240 | drivers/char/cyclades.c | if (!(info->flags & ASYNC_INITIALIZED)){ |
info | 1245 | drivers/char/cyclades.c | card = info->card; |
info | 1246 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 1264 | drivers/char/cyclades.c | if (info->xmit_buf){ |
info | 1265 | drivers/char/cyclades.c | free_page((unsigned long) info->xmit_buf); |
info | 1266 | drivers/char/cyclades.c | info->xmit_buf = 0; |
info | 1270 | drivers/char/cyclades.c | if (!info->tty || (info->tty->termios->c_cflag & HUPCL)) { |
info | 1283 | drivers/char/cyclades.c | if (info->tty){ |
info | 1284 | drivers/char/cyclades.c | set_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 1286 | drivers/char/cyclades.c | info->flags &= ~ASYNC_INITIALIZED; |
info | 1299 | drivers/char/cyclades.c | config_setup(struct cyclades_port * info) |
info | 1307 | drivers/char/cyclades.c | if (!info->tty || !info->tty->termios){ |
info | 1310 | drivers/char/cyclades.c | if (info->line == -1){ |
info | 1313 | drivers/char/cyclades.c | cflag = info->tty->termios->c_cflag; |
info | 1336 | drivers/char/cyclades.c | info->tty->termios->c_cflag &= ~CBAUDEX; |
info | 1340 | drivers/char/cyclades.c | if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_HI) |
info | 1342 | drivers/char/cyclades.c | if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_VHI) |
info | 1345 | drivers/char/cyclades.c | info->tbpr = baud_bpr[i]; /* Tx BPR */ |
info | 1346 | drivers/char/cyclades.c | info->tco = baud_co[i]; /* Tx CO */ |
info | 1347 | drivers/char/cyclades.c | info->rbpr = baud_bpr[i]; /* Rx BPR */ |
info | 1348 | drivers/char/cyclades.c | info->rco = baud_co[i]; /* Rx CO */ |
info | 1350 | drivers/char/cyclades.c | info->timeout = (info->xmit_fifo_size*HZ*30/269) + 2; |
info | 1353 | drivers/char/cyclades.c | info->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2; |
info | 1356 | drivers/char/cyclades.c | info->timeout = 0; |
info | 1363 | drivers/char/cyclades.c | info->cor5 = 0; |
info | 1364 | drivers/char/cyclades.c | info->cor4 = 0; |
info | 1365 | drivers/char/cyclades.c | info->cor3 = (info->default_threshold |
info | 1366 | drivers/char/cyclades.c | ? info->default_threshold |
info | 1368 | drivers/char/cyclades.c | info->cor2 = CyETC; |
info | 1371 | drivers/char/cyclades.c | info->cor1 = Cy_5_BITS; |
info | 1374 | drivers/char/cyclades.c | info->cor1 = Cy_6_BITS; |
info | 1377 | drivers/char/cyclades.c | info->cor1 = Cy_7_BITS; |
info | 1380 | drivers/char/cyclades.c | info->cor1 = Cy_8_BITS; |
info | 1384 | drivers/char/cyclades.c | info->cor1 |= Cy_2_STOP; |
info | 1388 | drivers/char/cyclades.c | info->cor1 |= CyPARITY_O; |
info | 1390 | drivers/char/cyclades.c | info->cor1 |= CyPARITY_E; |
info | 1393 | drivers/char/cyclades.c | info->cor1 |= CyPARITY_NONE; |
info | 1398 | drivers/char/cyclades.c | info->flags |= ASYNC_CTS_FLOW; |
info | 1399 | drivers/char/cyclades.c | info->cor2 |= CyCtsAE; |
info | 1401 | drivers/char/cyclades.c | info->flags &= ~ASYNC_CTS_FLOW; |
info | 1402 | drivers/char/cyclades.c | info->cor2 &= ~CyCtsAE; |
info | 1405 | drivers/char/cyclades.c | info->flags &= ~ASYNC_CHECK_CD; |
info | 1407 | drivers/char/cyclades.c | info->flags |= ASYNC_CHECK_CD; |
info | 1419 | drivers/char/cyclades.c | card = info->card; |
info | 1420 | drivers/char/cyclades.c | channel = (info->line) - (cy_card[card].first_line); |
info | 1431 | drivers/char/cyclades.c | base_addr[CyTCOR] = info->tco; |
info | 1432 | drivers/char/cyclades.c | base_addr[CyTBPR] = info->tbpr; |
info | 1433 | drivers/char/cyclades.c | base_addr[CyRCOR] = info->rco; |
info | 1434 | drivers/char/cyclades.c | base_addr[CyRBPR] = info->rbpr; |
info | 1438 | drivers/char/cyclades.c | base_addr[CySCHR1] = START_CHAR(info->tty); |
info | 1439 | drivers/char/cyclades.c | base_addr[CySCHR2] = STOP_CHAR(info->tty); |
info | 1440 | drivers/char/cyclades.c | base_addr[CyCOR1] = info->cor1; |
info | 1441 | drivers/char/cyclades.c | base_addr[CyCOR2] = info->cor2; |
info | 1442 | drivers/char/cyclades.c | base_addr[CyCOR3] = info->cor3; |
info | 1443 | drivers/char/cyclades.c | base_addr[CyCOR4] = info->cor4; |
info | 1444 | drivers/char/cyclades.c | base_addr[CyCOR5] = info->cor5; |
info | 1450 | drivers/char/cyclades.c | base_addr[CyRTPR] = (info->default_timeout |
info | 1451 | drivers/char/cyclades.c | ? info->default_timeout |
info | 1454 | drivers/char/cyclades.c | if (C_CLOCAL(info->tty)) { |
info | 1482 | drivers/char/cyclades.c | if (info->tty){ |
info | 1483 | drivers/char/cyclades.c | clear_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 1494 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1498 | drivers/char/cyclades.c | printk("cy_put_char ttyC%d\n", info->line); |
info | 1501 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_put_char")) |
info | 1504 | drivers/char/cyclades.c | if (!tty || !info->xmit_buf) |
info | 1508 | drivers/char/cyclades.c | if (info->xmit_cnt >= PAGE_SIZE - 1) { |
info | 1513 | drivers/char/cyclades.c | info->xmit_buf[info->xmit_head++] = ch; |
info | 1514 | drivers/char/cyclades.c | info->xmit_head &= PAGE_SIZE - 1; |
info | 1515 | drivers/char/cyclades.c | info->xmit_cnt++; |
info | 1523 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1529 | drivers/char/cyclades.c | printk("cy_flush_chars ttyC%d\n", info->line); /* */ |
info | 1532 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_flush_chars")) |
info | 1535 | drivers/char/cyclades.c | if (info->xmit_cnt <= 0 || tty->stopped |
info | 1536 | drivers/char/cyclades.c | || tty->hw_stopped || !info->xmit_buf) |
info | 1539 | drivers/char/cyclades.c | card = info->card; |
info | 1540 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 1563 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1568 | drivers/char/cyclades.c | printk("cy_write ttyC%d\n", info->line); /* */ |
info | 1571 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_write")){ |
info | 1575 | drivers/char/cyclades.c | if (!tty || !info->xmit_buf || !tmp_buf){ |
info | 1581 | drivers/char/cyclades.c | c = MIN(count, MIN(SERIAL_XMIT_SIZE - info->xmit_cnt - 1, |
info | 1582 | drivers/char/cyclades.c | SERIAL_XMIT_SIZE - info->xmit_head)); |
info | 1591 | drivers/char/cyclades.c | c = MIN(c, MIN(SERIAL_XMIT_SIZE - info->xmit_cnt - 1, |
info | 1592 | drivers/char/cyclades.c | SERIAL_XMIT_SIZE - info->xmit_head)); |
info | 1593 | drivers/char/cyclades.c | memcpy(info->xmit_buf + info->xmit_head, tmp_buf, c); |
info | 1596 | drivers/char/cyclades.c | memcpy(info->xmit_buf + info->xmit_head, buf, c); |
info | 1597 | drivers/char/cyclades.c | info->xmit_head = (info->xmit_head + c) & (SERIAL_XMIT_SIZE-1); |
info | 1598 | drivers/char/cyclades.c | info->xmit_cnt += c; |
info | 1606 | drivers/char/cyclades.c | if (info->xmit_cnt |
info | 1609 | drivers/char/cyclades.c | start_xmit(info); |
info | 1618 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1622 | drivers/char/cyclades.c | printk("cy_write_room ttyC%d\n", info->line); /* */ |
info | 1625 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_write_room")) |
info | 1627 | drivers/char/cyclades.c | ret = PAGE_SIZE - info->xmit_cnt - 1; |
info | 1637 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1640 | drivers/char/cyclades.c | printk("cy_chars_in_buffer ttyC%d %d\n", info->line, info->xmit_cnt); /* */ |
info | 1643 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_chars_in_buffer")) |
info | 1646 | drivers/char/cyclades.c | return info->xmit_cnt; |
info | 1653 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1657 | drivers/char/cyclades.c | printk("cy_flush_buffer ttyC%d\n", info->line); /* */ |
info | 1660 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_flush_buffer")) |
info | 1663 | drivers/char/cyclades.c | info->xmit_cnt = info->xmit_head = info->xmit_tail = 0; |
info | 1679 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1689 | drivers/char/cyclades.c | printk("cy_throttle ttyC%d\n", info->line); |
info | 1692 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_nthrottle")){ |
info | 1697 | drivers/char/cyclades.c | info->x_char = STOP_CHAR(tty); |
info | 1701 | drivers/char/cyclades.c | card = info->card; |
info | 1702 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 1720 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1730 | drivers/char/cyclades.c | printk("cy_unthrottle ttyC%d\n", info->line); |
info | 1733 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_nthrottle")){ |
info | 1738 | drivers/char/cyclades.c | info->x_char = START_CHAR(tty); |
info | 1742 | drivers/char/cyclades.c | card = info->card; |
info | 1743 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 1758 | drivers/char/cyclades.c | get_serial_info(struct cyclades_port * info, |
info | 1762 | drivers/char/cyclades.c | struct cyclades_card *cinfo = &cy_card[info->card]; |
info | 1768 | drivers/char/cyclades.c | tmp.type = info->type; |
info | 1769 | drivers/char/cyclades.c | tmp.line = info->line; |
info | 1770 | drivers/char/cyclades.c | tmp.port = info->card * 0x100 + info->line - cinfo->first_line; |
info | 1772 | drivers/char/cyclades.c | tmp.flags = info->flags; |
info | 1774 | drivers/char/cyclades.c | tmp.close_delay = info->close_delay; |
info | 1782 | drivers/char/cyclades.c | set_serial_info(struct cyclades_port * info, |
info | 1792 | drivers/char/cyclades.c | old_info = *info; |
info | 1795 | drivers/char/cyclades.c | if ((new_serial.close_delay != info->close_delay) || |
info | 1797 | drivers/char/cyclades.c | (info->flags & ASYNC_FLAGS & ~ASYNC_USR_MASK))) |
info | 1799 | drivers/char/cyclades.c | info->flags = ((info->flags & ~ASYNC_USR_MASK) | |
info | 1810 | drivers/char/cyclades.c | info->flags = ((info->flags & ~ASYNC_FLAGS) | |
info | 1812 | drivers/char/cyclades.c | info->close_delay = new_serial.close_delay; |
info | 1816 | drivers/char/cyclades.c | if (info->flags & ASYNC_INITIALIZED){ |
info | 1817 | drivers/char/cyclades.c | config_setup(info); |
info | 1820 | drivers/char/cyclades.c | return startup(info); |
info | 1825 | drivers/char/cyclades.c | get_modem_info(struct cyclades_port * info, unsigned int *value) |
info | 1833 | drivers/char/cyclades.c | card = info->card; |
info | 1834 | drivers/char/cyclades.c | channel = (info->line) - (cy_card[card].first_line); |
info | 1856 | drivers/char/cyclades.c | set_modem_info(struct cyclades_port * info, unsigned int cmd, |
info | 1864 | drivers/char/cyclades.c | card = info->card; |
info | 1865 | drivers/char/cyclades.c | channel = (info->line) - (cy_card[card].first_line); |
info | 1951 | drivers/char/cyclades.c | send_break( struct cyclades_port * info, int duration) |
info | 1955 | drivers/char/cyclades.c | info->x_break = duration; |
info | 1956 | drivers/char/cyclades.c | if (!info->xmit_cnt ) { |
info | 1957 | drivers/char/cyclades.c | start_xmit(info); |
info | 1962 | drivers/char/cyclades.c | get_mon_info(struct cyclades_port * info, struct cyclades_monitor * mon) |
info | 1965 | drivers/char/cyclades.c | memcpy_tofs(mon, &info->mon, sizeof(struct cyclades_monitor)); |
info | 1966 | drivers/char/cyclades.c | info->mon.int_count = 0; |
info | 1967 | drivers/char/cyclades.c | info->mon.char_count = 0; |
info | 1968 | drivers/char/cyclades.c | info->mon.char_max = 0; |
info | 1969 | drivers/char/cyclades.c | info->mon.char_last = 0; |
info | 1974 | drivers/char/cyclades.c | set_threshold(struct cyclades_port * info, unsigned long value) |
info | 1979 | drivers/char/cyclades.c | card = info->card; |
info | 1980 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 1986 | drivers/char/cyclades.c | info->cor3 &= ~CyREC_FIFO; |
info | 1987 | drivers/char/cyclades.c | info->cor3 |= value & CyREC_FIFO; |
info | 1988 | drivers/char/cyclades.c | base_addr[CyCOR3] = info->cor3; |
info | 1994 | drivers/char/cyclades.c | get_threshold(struct cyclades_port * info, unsigned long *value) |
info | 2000 | drivers/char/cyclades.c | card = info->card; |
info | 2001 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 2013 | drivers/char/cyclades.c | set_default_threshold(struct cyclades_port * info, unsigned long value) |
info | 2015 | drivers/char/cyclades.c | info->default_threshold = value & 0x0f; |
info | 2020 | drivers/char/cyclades.c | get_default_threshold(struct cyclades_port * info, unsigned long *value) |
info | 2022 | drivers/char/cyclades.c | put_fs_long(info->default_threshold,value); |
info | 2027 | drivers/char/cyclades.c | set_timeout(struct cyclades_port * info, unsigned long value) |
info | 2032 | drivers/char/cyclades.c | card = info->card; |
info | 2033 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 2044 | drivers/char/cyclades.c | get_timeout(struct cyclades_port * info, unsigned long *value) |
info | 2050 | drivers/char/cyclades.c | card = info->card; |
info | 2051 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 2063 | drivers/char/cyclades.c | set_default_timeout(struct cyclades_port * info, unsigned long value) |
info | 2065 | drivers/char/cyclades.c | info->default_timeout = value & 0xff; |
info | 2070 | drivers/char/cyclades.c | get_default_timeout(struct cyclades_port * info, unsigned long *value) |
info | 2072 | drivers/char/cyclades.c | put_fs_long(info->default_timeout,value); |
info | 2081 | drivers/char/cyclades.c | struct cyclades_port * info = (struct cyclades_port *)tty->driver_data; |
info | 2085 | drivers/char/cyclades.c | printk("cy_ioctl ttyC%d, cmd = %x arg = %lx\n", info->line, cmd, arg); /* */ |
info | 2096 | drivers/char/cyclades.c | ret_val = get_mon_info(info, (struct cyclades_monitor *)arg); |
info | 2105 | drivers/char/cyclades.c | ret_val = get_threshold(info, (unsigned long *)arg); |
info | 2108 | drivers/char/cyclades.c | ret_val = set_threshold(info, (unsigned long)arg); |
info | 2117 | drivers/char/cyclades.c | ret_val = get_default_threshold(info, (unsigned long *)arg); |
info | 2120 | drivers/char/cyclades.c | ret_val = set_default_threshold(info, (unsigned long)arg); |
info | 2129 | drivers/char/cyclades.c | ret_val = get_timeout(info, (unsigned long *)arg); |
info | 2132 | drivers/char/cyclades.c | ret_val = set_timeout(info, (unsigned long)arg); |
info | 2141 | drivers/char/cyclades.c | ret_val = get_default_timeout(info, (unsigned long *)arg); |
info | 2144 | drivers/char/cyclades.c | ret_val = set_default_timeout(info, (unsigned long)arg); |
info | 2152 | drivers/char/cyclades.c | send_break(info, HZ/4); /* 1/4 second */ |
info | 2159 | drivers/char/cyclades.c | send_break(info, arg ? arg*(HZ/10) : HZ/4); |
info | 2164 | drivers/char/cyclades.c | ret_val = set_modem_info(info, cmd, (unsigned int *) arg); |
info | 2191 | drivers/char/cyclades.c | ret_val = get_modem_info(info, (unsigned int *) arg); |
info | 2200 | drivers/char/cyclades.c | ret_val = get_serial_info(info, |
info | 2204 | drivers/char/cyclades.c | ret_val = set_serial_info(info, |
info | 2224 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 2227 | drivers/char/cyclades.c | printk("cy_set_termios ttyC%d\n", info->line); |
info | 2232 | drivers/char/cyclades.c | config_setup(info); |
info | 2242 | drivers/char/cyclades.c | wake_up_interruptible(&info->open_wait); |
info | 2252 | drivers/char/cyclades.c | struct cyclades_port * info = (struct cyclades_port *)tty->driver_data; |
info | 2256 | drivers/char/cyclades.c | printk("cy_close ttyC%d\n", info->line); |
info | 2259 | drivers/char/cyclades.c | if (!info |
info | 2260 | drivers/char/cyclades.c | || serial_paranoia_check(info, tty->device, "cy_close")){ |
info | 2264 | drivers/char/cyclades.c | printk("cy_close ttyC%d, count = %d\n", info->line, info->count); |
info | 2267 | drivers/char/cyclades.c | if ((tty->count == 1) && (info->count != 1)) { |
info | 2276 | drivers/char/cyclades.c | "info->count is %d\n", info->count); |
info | 2277 | drivers/char/cyclades.c | info->count = 1; |
info | 2280 | drivers/char/cyclades.c | printk("cyc: %d: decrementing count to %d\n", __LINE__, info->count - 1); |
info | 2282 | drivers/char/cyclades.c | if (--info->count < 0) { |
info | 2284 | drivers/char/cyclades.c | info->line, info->count); |
info | 2288 | drivers/char/cyclades.c | info->count = 0; |
info | 2290 | drivers/char/cyclades.c | if (info->count) |
info | 2292 | drivers/char/cyclades.c | info->flags |= ASYNC_CLOSING; |
info | 2297 | drivers/char/cyclades.c | if (info->flags & ASYNC_NORMAL_ACTIVE) |
info | 2298 | drivers/char/cyclades.c | info->normal_termios = *tty->termios; |
info | 2299 | drivers/char/cyclades.c | if (info->flags & ASYNC_CALLOUT_ACTIVE) |
info | 2300 | drivers/char/cyclades.c | info->callout_termios = *tty->termios; |
info | 2301 | drivers/char/cyclades.c | if (info->flags & ASYNC_INITIALIZED) |
info | 2303 | drivers/char/cyclades.c | shutdown(info); |
info | 2308 | drivers/char/cyclades.c | info->event = 0; |
info | 2309 | drivers/char/cyclades.c | info->tty = 0; |
info | 2318 | drivers/char/cyclades.c | if (info->blocked_open) { |
info | 2319 | drivers/char/cyclades.c | if (info->close_delay) { |
info | 2321 | drivers/char/cyclades.c | current->timeout = jiffies + info->close_delay; |
info | 2324 | drivers/char/cyclades.c | wake_up_interruptible(&info->open_wait); |
info | 2326 | drivers/char/cyclades.c | info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CALLOUT_ACTIVE| |
info | 2328 | drivers/char/cyclades.c | wake_up_interruptible(&info->close_wait); |
info | 2343 | drivers/char/cyclades.c | struct cyclades_port * info = (struct cyclades_port *)tty->driver_data; |
info | 2346 | drivers/char/cyclades.c | printk("cy_hangup ttyC%d\n", info->line); /* */ |
info | 2349 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_hangup")) |
info | 2352 | drivers/char/cyclades.c | shutdown(info); |
info | 2354 | drivers/char/cyclades.c | info->event = 0; |
info | 2355 | drivers/char/cyclades.c | info->count = 0; |
info | 2359 | drivers/char/cyclades.c | info->tty = 0; |
info | 2361 | drivers/char/cyclades.c | info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CALLOUT_ACTIVE); |
info | 2362 | drivers/char/cyclades.c | wake_up_interruptible(&info->open_wait); |
info | 2375 | drivers/char/cyclades.c | struct cyclades_port *info) |
info | 2388 | drivers/char/cyclades.c | if (info->flags & ASYNC_CLOSING) { |
info | 2389 | drivers/char/cyclades.c | interruptible_sleep_on(&info->close_wait); |
info | 2390 | drivers/char/cyclades.c | if (info->flags & ASYNC_HUP_NOTIFY){ |
info | 2402 | drivers/char/cyclades.c | if (info->flags & ASYNC_NORMAL_ACTIVE){ |
info | 2405 | drivers/char/cyclades.c | if ((info->flags & ASYNC_CALLOUT_ACTIVE) && |
info | 2406 | drivers/char/cyclades.c | (info->flags & ASYNC_SESSION_LOCKOUT) && |
info | 2407 | drivers/char/cyclades.c | (info->session != current->session)){ |
info | 2410 | drivers/char/cyclades.c | if ((info->flags & ASYNC_CALLOUT_ACTIVE) && |
info | 2411 | drivers/char/cyclades.c | (info->flags & ASYNC_PGRP_LOCKOUT) && |
info | 2412 | drivers/char/cyclades.c | (info->pgrp != current->pgrp)){ |
info | 2415 | drivers/char/cyclades.c | info->flags |= ASYNC_CALLOUT_ACTIVE; |
info | 2424 | drivers/char/cyclades.c | if (info->flags & ASYNC_CALLOUT_ACTIVE){ |
info | 2427 | drivers/char/cyclades.c | info->flags |= ASYNC_NORMAL_ACTIVE; |
info | 2439 | drivers/char/cyclades.c | add_wait_queue(&info->open_wait, &wait); |
info | 2442 | drivers/char/cyclades.c | info->line, info->count);/**/ |
info | 2444 | drivers/char/cyclades.c | info->count--; |
info | 2446 | drivers/char/cyclades.c | printk("cyc: %d: decrementing count to %d\n", __LINE__, info->count); |
info | 2448 | drivers/char/cyclades.c | info->blocked_open++; |
info | 2450 | drivers/char/cyclades.c | cinfo = &cy_card[info->card]; |
info | 2451 | drivers/char/cyclades.c | channel = info->line - cinfo->first_line; |
info | 2458 | drivers/char/cyclades.c | if (!(info->flags & ASYNC_CALLOUT_ACTIVE)){ |
info | 2471 | drivers/char/cyclades.c | || !(info->flags & ASYNC_INITIALIZED) ){ |
info | 2472 | drivers/char/cyclades.c | if (info->flags & ASYNC_HUP_NOTIFY) { |
info | 2482 | drivers/char/cyclades.c | if (!(info->flags & ASYNC_CALLOUT_ACTIVE) |
info | 2483 | drivers/char/cyclades.c | && !(info->flags & ASYNC_CLOSING) |
info | 2496 | drivers/char/cyclades.c | info->line, info->count);/**/ |
info | 2501 | drivers/char/cyclades.c | remove_wait_queue(&info->open_wait, &wait); |
info | 2503 | drivers/char/cyclades.c | info->count++; |
info | 2505 | drivers/char/cyclades.c | printk("cyc: %d: incrementing count to %d\n", __LINE__, info->count); |
info | 2508 | drivers/char/cyclades.c | info->blocked_open--; |
info | 2511 | drivers/char/cyclades.c | info->line, info->count);/**/ |
info | 2515 | drivers/char/cyclades.c | info->flags |= ASYNC_NORMAL_ACTIVE; |
info | 2526 | drivers/char/cyclades.c | struct cyclades_port *info; |
info | 2534 | drivers/char/cyclades.c | info = &cy_port[line]; |
info | 2535 | drivers/char/cyclades.c | if (info->line < 0){ |
info | 2539 | drivers/char/cyclades.c | printk("cy_open ttyC%d\n", info->line); /* */ |
info | 2541 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_open")){ |
info | 2545 | drivers/char/cyclades.c | printk("cy_open ttyC%d, count = %d\n", info->line, info->count);/**/ |
info | 2547 | drivers/char/cyclades.c | info->count++; |
info | 2549 | drivers/char/cyclades.c | printk("cyc: %d: incrementing count to %d\n", __LINE__, info->count); |
info | 2551 | drivers/char/cyclades.c | tty->driver_data = info; |
info | 2552 | drivers/char/cyclades.c | info->tty = tty; |
info | 2561 | drivers/char/cyclades.c | if ((info->count == 1) && (info->flags & ASYNC_SPLIT_TERMIOS)) { |
info | 2563 | drivers/char/cyclades.c | *tty->termios = info->normal_termios; |
info | 2565 | drivers/char/cyclades.c | *tty->termios = info->callout_termios; |
info | 2570 | drivers/char/cyclades.c | retval = startup(info); |
info | 2575 | drivers/char/cyclades.c | retval = block_til_ready(tty, filp, info); |
info | 2584 | drivers/char/cyclades.c | info->session = current->session; |
info | 2585 | drivers/char/cyclades.c | info->pgrp = current->pgrp; |
info | 2684 | drivers/char/cyclades.c | struct cyclades_port *info; |
info | 2753 | drivers/char/cyclades.c | info = cy_port; |
info | 2788 | drivers/char/cyclades.c | info->magic = CYCLADES_MAGIC; |
info | 2789 | drivers/char/cyclades.c | info->type = PORT_CIRRUS; |
info | 2790 | drivers/char/cyclades.c | info->card = index; |
info | 2791 | drivers/char/cyclades.c | info->line = port_num; |
info | 2792 | drivers/char/cyclades.c | info->flags = STD_COM_FLAGS; |
info | 2793 | drivers/char/cyclades.c | info->tty = 0; |
info | 2794 | drivers/char/cyclades.c | info->xmit_fifo_size = 12; |
info | 2795 | drivers/char/cyclades.c | info->cor1 = CyPARITY_NONE|Cy_1_STOP|Cy_8_BITS; |
info | 2796 | drivers/char/cyclades.c | info->cor2 = CyETC; |
info | 2797 | drivers/char/cyclades.c | info->cor3 = 0x08; /* _very_ small receive threshold */ |
info | 2798 | drivers/char/cyclades.c | info->cor4 = 0; |
info | 2799 | drivers/char/cyclades.c | info->cor5 = 0; |
info | 2800 | drivers/char/cyclades.c | info->tbpr = baud_bpr[13]; /* Tx BPR */ |
info | 2801 | drivers/char/cyclades.c | info->tco = baud_co[13]; /* Tx CO */ |
info | 2802 | drivers/char/cyclades.c | info->rbpr = baud_bpr[13]; /* Rx BPR */ |
info | 2803 | drivers/char/cyclades.c | info->rco = baud_co[13]; /* Rx CO */ |
info | 2804 | drivers/char/cyclades.c | info->close_delay = 0; |
info | 2805 | drivers/char/cyclades.c | info->x_char = 0; |
info | 2806 | drivers/char/cyclades.c | info->event = 0; |
info | 2807 | drivers/char/cyclades.c | info->count = 0; |
info | 2811 | drivers/char/cyclades.c | info->blocked_open = 0; |
info | 2812 | drivers/char/cyclades.c | info->default_threshold = 0; |
info | 2813 | drivers/char/cyclades.c | info->default_timeout = 0; |
info | 2814 | drivers/char/cyclades.c | info->tqueue.routine = do_softint; |
info | 2815 | drivers/char/cyclades.c | info->tqueue.data = info; |
info | 2816 | drivers/char/cyclades.c | info->callout_termios =cy_callout_driver.init_termios; |
info | 2817 | drivers/char/cyclades.c | info->normal_termios = cy_serial_driver.init_termios; |
info | 2818 | drivers/char/cyclades.c | info->open_wait = 0; |
info | 2819 | drivers/char/cyclades.c | info->close_wait = 0; |
info | 2823 | drivers/char/cyclades.c | info->read_status_mask = CyTIMEOUT| CySPECHAR| CyBREAK |
info | 2827 | drivers/char/cyclades.c | printk("ttyC%1d ", info->line); |
info | 2828 | drivers/char/cyclades.c | port_num++;info++; |
info | 2839 | drivers/char/cyclades.c | info->line = -1; |
info | 2840 | drivers/char/cyclades.c | port_num++;info++; |
info | 2852 | drivers/char/cyclades.c | struct cyclades_port * info; |
info | 2855 | drivers/char/cyclades.c | info = &cy_port[line_num]; |
info | 2856 | drivers/char/cyclades.c | card = info->card; |
info | 2857 | drivers/char/cyclades.c | channel = (info->line) - (cy_card[card].first_line); |
info | 2869 | drivers/char/cyclades.c | info->card, info->line, info->flags); |
info | 2871 | drivers/char/cyclades.c | (long)info->tty, info->read_status_mask, |
info | 2872 | drivers/char/cyclades.c | info->timeout, info->xmit_fifo_size); |
info | 2874 | drivers/char/cyclades.c | info->cor1, info->cor2, info->cor3, info->cor4, info->cor5); |
info | 2876 | drivers/char/cyclades.c | info->tbpr, info->tco, info->rbpr, info->rco); |
info | 2878 | drivers/char/cyclades.c | info->close_delay, info->event, info->count); |
info | 2880 | drivers/char/cyclades.c | info->x_char, info->blocked_open); |
info | 2882 | drivers/char/cyclades.c | info->session, info->pgrp, (long)info->open_wait); |
info | 92 | drivers/char/serial.c | static void autoconfig(struct async_struct * info); |
info | 93 | drivers/char/serial.c | static void change_speed(struct async_struct *info); |
info | 207 | drivers/char/serial.c | static inline int serial_paranoia_check(struct async_struct *info, |
info | 216 | drivers/char/serial.c | if (!info) { |
info | 220 | drivers/char/serial.c | if (info->magic != SERIAL_MAGIC) { |
info | 235 | drivers/char/serial.c | static inline unsigned int serial_in(struct async_struct *info, int offset) |
info | 238 | drivers/char/serial.c | if (info->hub6) { |
info | 239 | drivers/char/serial.c | outb(info->hub6 - 1 + offset, info->port); |
info | 240 | drivers/char/serial.c | return inb(info->port+1); |
info | 243 | drivers/char/serial.c | return inb(info->port + offset); |
info | 246 | drivers/char/serial.c | static inline unsigned int serial_inp(struct async_struct *info, int offset) |
info | 249 | drivers/char/serial.c | if (info->hub6) { |
info | 250 | drivers/char/serial.c | outb(info->hub6 - 1 + offset, info->port); |
info | 251 | drivers/char/serial.c | return inb_p(info->port+1); |
info | 255 | drivers/char/serial.c | return inb(info->port + offset); |
info | 257 | drivers/char/serial.c | return inb_p(info->port + offset); |
info | 261 | drivers/char/serial.c | static inline void serial_out(struct async_struct *info, int offset, int value) |
info | 264 | drivers/char/serial.c | if (info->hub6) { |
info | 265 | drivers/char/serial.c | outb(info->hub6 - 1 + offset, info->port); |
info | 266 | drivers/char/serial.c | outb(value, info->port+1); |
info | 269 | drivers/char/serial.c | outb(value, info->port+offset); |
info | 272 | drivers/char/serial.c | static inline void serial_outp(struct async_struct *info, int offset, |
info | 276 | drivers/char/serial.c | if (info->hub6) { |
info | 277 | drivers/char/serial.c | outb(info->hub6 - 1 + offset, info->port); |
info | 278 | drivers/char/serial.c | outb_p(value, info->port+1); |
info | 282 | drivers/char/serial.c | outb(value, info->port+offset); |
info | 284 | drivers/char/serial.c | outb_p(value, info->port+offset); |
info | 298 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 301 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_stop")) |
info | 305 | drivers/char/serial.c | if (info->IER & UART_IER_THRI) { |
info | 306 | drivers/char/serial.c | info->IER &= ~UART_IER_THRI; |
info | 307 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 314 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 317 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_start")) |
info | 321 | drivers/char/serial.c | if (info->xmit_cnt && info->xmit_buf && !(info->IER & UART_IER_THRI)) { |
info | 322 | drivers/char/serial.c | info->IER |= UART_IER_THRI; |
info | 323 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 364 | drivers/char/serial.c | static _INLINE_ void rs_sched_event(struct async_struct *info, |
info | 367 | drivers/char/serial.c | info->event |= 1 << event; |
info | 368 | drivers/char/serial.c | queue_task_irq_off(&info->tqueue, &tq_serial); |
info | 372 | drivers/char/serial.c | static _INLINE_ void receive_chars(struct async_struct *info, |
info | 375 | drivers/char/serial.c | struct tty_struct *tty = info->tty; |
info | 380 | drivers/char/serial.c | ch = serial_inp(info, UART_RX); |
info | 381 | drivers/char/serial.c | if (*status & info->ignore_status_mask) { |
info | 392 | drivers/char/serial.c | if (info->flags & ASYNC_SAK) |
info | 404 | drivers/char/serial.c | *status = serial_inp(info, UART_LSR) & info->read_status_mask; |
info | 412 | drivers/char/serial.c | static _INLINE_ void transmit_chars(struct async_struct *info, int *intr_done) |
info | 416 | drivers/char/serial.c | if (info->x_char) { |
info | 417 | drivers/char/serial.c | serial_outp(info, UART_TX, info->x_char); |
info | 418 | drivers/char/serial.c | info->x_char = 0; |
info | 423 | drivers/char/serial.c | if ((info->xmit_cnt <= 0) || info->tty->stopped || |
info | 424 | drivers/char/serial.c | info->tty->hw_stopped) { |
info | 425 | drivers/char/serial.c | info->IER &= ~UART_IER_THRI; |
info | 426 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 430 | drivers/char/serial.c | count = info->xmit_fifo_size; |
info | 432 | drivers/char/serial.c | serial_out(info, UART_TX, info->xmit_buf[info->xmit_tail++]); |
info | 433 | drivers/char/serial.c | info->xmit_tail = info->xmit_tail & (SERIAL_XMIT_SIZE-1); |
info | 434 | drivers/char/serial.c | if (--info->xmit_cnt <= 0) |
info | 438 | drivers/char/serial.c | if (info->xmit_cnt < WAKEUP_CHARS) |
info | 439 | drivers/char/serial.c | rs_sched_event(info, RS_EVENT_WRITE_WAKEUP); |
info | 447 | drivers/char/serial.c | if (info->xmit_cnt <= 0) { |
info | 448 | drivers/char/serial.c | info->IER &= ~UART_IER_THRI; |
info | 449 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 453 | drivers/char/serial.c | static _INLINE_ void check_modem_status(struct async_struct *info) |
info | 457 | drivers/char/serial.c | status = serial_in(info, UART_MSR); |
info | 459 | drivers/char/serial.c | if ((info->flags & ASYNC_CHECK_CD) && (status & UART_MSR_DDCD)) { |
info | 461 | drivers/char/serial.c | printk("ttys%d CD now %s...", info->line, |
info | 465 | drivers/char/serial.c | wake_up_interruptible(&info->open_wait); |
info | 466 | drivers/char/serial.c | else if (!((info->flags & ASYNC_CALLOUT_ACTIVE) && |
info | 467 | drivers/char/serial.c | (info->flags & ASYNC_CALLOUT_NOHUP))) { |
info | 471 | drivers/char/serial.c | rs_sched_event(info, RS_EVENT_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_HANGUP, &info->event)) { |
info | 727 | drivers/char/serial.c | wake_up_interruptible(&info->open_wait); |
info | 728 | drivers/char/serial.c | info->flags &= ~(ASYNC_NORMAL_ACTIVE| |
info | 731 | drivers/char/serial.c | if (clear_bit(RS_EVENT_WRITE_WAKEUP, &info->event)) { |
info | 749 | drivers/char/serial.c | struct async_struct *info; |
info | 754 | drivers/char/serial.c | info = IRQ_ports[i]; |
info | 755 | drivers/char/serial.c | if (!info) |
info | 758 | drivers/char/serial.c | if (info->next_port) { |
info | 760 | drivers/char/serial.c | serial_out(info, UART_IER, 0); |
info | 761 | drivers/char/serial.c | info->IER |= UART_IER_THRI; |
info | 762 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 763 | drivers/char/serial.c | info = info->next_port; |
info | 764 | drivers/char/serial.c | } while (info); |
info | 835 | drivers/char/serial.c | struct async_struct *info; |
info | 838 | drivers/char/serial.c | info = IRQ_ports[irq]; |
info | 839 | drivers/char/serial.c | if (!info) { |
info | 843 | drivers/char/serial.c | while (info) { |
info | 844 | drivers/char/serial.c | if (info->timeout < timeout) |
info | 845 | drivers/char/serial.c | timeout = info->timeout; |
info | 846 | drivers/char/serial.c | info = info->next_port; |
info | 853 | drivers/char/serial.c | static int startup(struct async_struct * info) |
info | 860 | drivers/char/serial.c | if (info->flags & ASYNC_INITIALIZED) |
info | 863 | drivers/char/serial.c | if (!info->port || !info->type) { |
info | 864 | drivers/char/serial.c | if (info->tty) |
info | 865 | drivers/char/serial.c | set_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 869 | drivers/char/serial.c | if (!info->xmit_buf) { |
info | 870 | drivers/char/serial.c | info->xmit_buf = (unsigned char *) get_free_page(GFP_KERNEL); |
info | 871 | drivers/char/serial.c | if (!info->xmit_buf) |
info | 878 | drivers/char/serial.c | printk("starting up ttys%d (irq %d)...", info->line, info->irq); |
info | 885 | drivers/char/serial.c | if (info->type == PORT_16650) { |
info | 886 | drivers/char/serial.c | serial_outp(info, UART_FCR, (UART_FCR_CLEAR_RCVR | |
info | 888 | drivers/char/serial.c | info->xmit_fifo_size = 1; /* disabled for now */ |
info | 889 | drivers/char/serial.c | } else if (info->type == PORT_16550A) { |
info | 890 | drivers/char/serial.c | serial_outp(info, UART_FCR, (UART_FCR_CLEAR_RCVR | |
info | 892 | drivers/char/serial.c | info->xmit_fifo_size = 16; |
info | 894 | drivers/char/serial.c | info->xmit_fifo_size = 1; |
info | 901 | drivers/char/serial.c | if (serial_inp(info, UART_LSR) == 0xff) { |
info | 904 | drivers/char/serial.c | if (info->tty) |
info | 905 | drivers/char/serial.c | set_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 914 | drivers/char/serial.c | if (info->irq && (!IRQ_ports[info->irq] || |
info | 915 | drivers/char/serial.c | !IRQ_ports[info->irq]->next_port)) { |
info | 916 | drivers/char/serial.c | if (IRQ_ports[info->irq]) { |
info | 917 | drivers/char/serial.c | free_irq(info->irq); |
info | 918 | drivers/char/serial.c | if (rs_multiport[info->irq].port1) |
info | 925 | drivers/char/serial.c | retval = request_irq(info->irq, handler, SA_INTERRUPT, "serial"); |
info | 929 | drivers/char/serial.c | if (info->tty) |
info | 931 | drivers/char/serial.c | &info->tty->flags); |
info | 942 | drivers/char/serial.c | (void) serial_inp(info, UART_RX); |
info | 943 | drivers/char/serial.c | (void) serial_inp(info, UART_IIR); |
info | 944 | drivers/char/serial.c | (void) serial_inp(info, UART_MSR); |
info | 949 | drivers/char/serial.c | serial_outp(info, UART_LCR, UART_LCR_WLEN8); /* reset DLAB */ |
info | 950 | drivers/char/serial.c | if (info->flags & ASYNC_FOURPORT) { |
info | 951 | drivers/char/serial.c | info->MCR = UART_MCR_DTR | UART_MCR_RTS; |
info | 952 | drivers/char/serial.c | info->MCR_noint = UART_MCR_DTR | UART_MCR_OUT1; |
info | 954 | drivers/char/serial.c | info->MCR = UART_MCR_DTR | UART_MCR_RTS | UART_MCR_OUT2; |
info | 955 | drivers/char/serial.c | info->MCR_noint = UART_MCR_DTR | UART_MCR_RTS; |
info | 958 | drivers/char/serial.c | info->MCR |= UART_MCR_OUT1 | UART_MCR_OUT2; |
info | 959 | drivers/char/serial.c | info->MCR_noint |= UART_MCR_OUT1 | UART_MCR_OUT2; |
info | 961 | drivers/char/serial.c | if (info->irq == 0) |
info | 962 | drivers/char/serial.c | info->MCR = info->MCR_noint; |
info | 963 | drivers/char/serial.c | serial_outp(info, UART_MCR, info->MCR); |
info | 968 | drivers/char/serial.c | info->IER = UART_IER_MSI | UART_IER_RLSI | UART_IER_RDI; |
info | 969 | drivers/char/serial.c | serial_outp(info, UART_IER, info->IER); /* enable interrupts */ |
info | 971 | drivers/char/serial.c | if (info->flags & ASYNC_FOURPORT) { |
info | 973 | drivers/char/serial.c | ICP = (info->port & 0xFE0) | 0x01F; |
info | 981 | drivers/char/serial.c | (void)serial_inp(info, UART_LSR); |
info | 982 | drivers/char/serial.c | (void)serial_inp(info, UART_RX); |
info | 983 | drivers/char/serial.c | (void)serial_inp(info, UART_IIR); |
info | 984 | drivers/char/serial.c | (void)serial_inp(info, UART_MSR); |
info | 986 | drivers/char/serial.c | if (info->tty) |
info | 987 | drivers/char/serial.c | clear_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 988 | drivers/char/serial.c | info->xmit_cnt = info->xmit_head = info->xmit_tail = 0; |
info | 993 | drivers/char/serial.c | info->prev_port = 0; |
info | 994 | drivers/char/serial.c | info->next_port = IRQ_ports[info->irq]; |
info | 995 | drivers/char/serial.c | if (info->next_port) |
info | 996 | drivers/char/serial.c | info->next_port->prev_port = info; |
info | 997 | drivers/char/serial.c | IRQ_ports[info->irq] = info; |
info | 998 | drivers/char/serial.c | figure_IRQ_timeout(info->irq); |
info | 1009 | drivers/char/serial.c | change_speed(info); |
info | 1011 | drivers/char/serial.c | info->flags |= ASYNC_INITIALIZED; |
info | 1020 | drivers/char/serial.c | static void shutdown(struct async_struct * info) |
info | 1025 | drivers/char/serial.c | if (!(info->flags & ASYNC_INITIALIZED)) |
info | 1029 | drivers/char/serial.c | printk("Shutting down serial port %d (irq %d)....", info->line, |
info | 1030 | drivers/char/serial.c | info->irq); |
info | 1038 | drivers/char/serial.c | if (info->next_port) |
info | 1039 | drivers/char/serial.c | info->next_port->prev_port = info->prev_port; |
info | 1040 | drivers/char/serial.c | if (info->prev_port) |
info | 1041 | drivers/char/serial.c | info->prev_port->next_port = info->next_port; |
info | 1043 | drivers/char/serial.c | IRQ_ports[info->irq] = info->next_port; |
info | 1044 | drivers/char/serial.c | figure_IRQ_timeout(info->irq); |
info | 1049 | drivers/char/serial.c | if (info->irq && (!IRQ_ports[info->irq] || |
info | 1050 | drivers/char/serial.c | !IRQ_ports[info->irq]->next_port)) { |
info | 1051 | drivers/char/serial.c | if (IRQ_ports[info->irq]) { |
info | 1052 | drivers/char/serial.c | free_irq(info->irq); |
info | 1053 | drivers/char/serial.c | retval = request_irq(info->irq, rs_interrupt_single, SA_INTERRUPT, "serial"); |
info | 1059 | drivers/char/serial.c | free_irq(info->irq); |
info | 1062 | drivers/char/serial.c | if (info->xmit_buf) { |
info | 1063 | drivers/char/serial.c | free_page((unsigned long) info->xmit_buf); |
info | 1064 | drivers/char/serial.c | info->xmit_buf = 0; |
info | 1067 | drivers/char/serial.c | info->IER = 0; |
info | 1068 | drivers/char/serial.c | serial_outp(info, UART_IER, 0x00); /* disable all intrs */ |
info | 1069 | drivers/char/serial.c | if (info->flags & ASYNC_FOURPORT) { |
info | 1071 | drivers/char/serial.c | (void) inb((info->port & 0xFE0) | 0x01F); |
info | 1074 | drivers/char/serial.c | if (!info->tty || (info->tty->termios->c_cflag & HUPCL)) { |
info | 1075 | drivers/char/serial.c | info->MCR &= ~(UART_MCR_DTR|UART_MCR_RTS); |
info | 1076 | drivers/char/serial.c | info->MCR_noint &= ~(UART_MCR_DTR|UART_MCR_RTS); |
info | 1078 | drivers/char/serial.c | serial_outp(info, UART_MCR, info->MCR_noint); |
info | 1081 | drivers/char/serial.c | serial_outp(info, UART_FCR, (UART_FCR_CLEAR_RCVR | |
info | 1083 | drivers/char/serial.c | (void)serial_in(info, UART_RX); /* read data port to reset things */ |
info | 1085 | drivers/char/serial.c | if (info->tty) |
info | 1086 | drivers/char/serial.c | set_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 1088 | drivers/char/serial.c | info->flags &= ~ASYNC_INITIALIZED; |
info | 1096 | drivers/char/serial.c | static void change_speed(struct async_struct *info) |
info | 1103 | drivers/char/serial.c | if (!info->tty || !info->tty->termios) |
info | 1105 | drivers/char/serial.c | cflag = info->tty->termios->c_cflag; |
info | 1106 | drivers/char/serial.c | if (!(port = info->port)) |
info | 1112 | drivers/char/serial.c | info->tty->termios->c_cflag &= ~CBAUDEX; |
info | 1117 | drivers/char/serial.c | if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_HI) |
info | 1119 | drivers/char/serial.c | if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_VHI) |
info | 1121 | drivers/char/serial.c | if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_CUST) |
info | 1122 | drivers/char/serial.c | quot = info->custom_divisor; |
info | 1125 | drivers/char/serial.c | info->timeout = ((info->xmit_fifo_size*HZ*15*quot) / |
info | 1126 | drivers/char/serial.c | info->baud_base) + 2; |
info | 1128 | drivers/char/serial.c | quot = (2*info->baud_base / 269); |
info | 1129 | drivers/char/serial.c | info->timeout = (info->xmit_fifo_size*HZ*30/269) + 2; |
info | 1131 | drivers/char/serial.c | quot = info->baud_base / baud_table[i]; |
info | 1132 | drivers/char/serial.c | info->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2; |
info | 1135 | drivers/char/serial.c | info->timeout = 0; |
info | 1138 | drivers/char/serial.c | info->MCR |= UART_MCR_DTR; |
info | 1139 | drivers/char/serial.c | info->MCR_noint |= UART_MCR_DTR; |
info | 1141 | drivers/char/serial.c | serial_out(info, UART_MCR, info->MCR); |
info | 1144 | drivers/char/serial.c | info->MCR &= ~UART_MCR_DTR; |
info | 1145 | drivers/char/serial.c | info->MCR_noint &= ~UART_MCR_DTR; |
info | 1147 | drivers/char/serial.c | serial_out(info, UART_MCR, info->MCR); |
info | 1158 | drivers/char/serial.c | if (info->type == PORT_16550A) { |
info | 1159 | drivers/char/serial.c | if ((info->baud_base / quot) < 2400) |
info | 1163 | drivers/char/serial.c | } else if (info->type == PORT_16650) { |
info | 1179 | drivers/char/serial.c | info->IER &= ~UART_IER_MSI; |
info | 1181 | drivers/char/serial.c | info->flags |= ASYNC_CTS_FLOW; |
info | 1182 | drivers/char/serial.c | info->IER |= UART_IER_MSI; |
info | 1184 | drivers/char/serial.c | info->flags &= ~ASYNC_CTS_FLOW; |
info | 1186 | drivers/char/serial.c | info->flags &= ~ASYNC_CHECK_CD; |
info | 1188 | drivers/char/serial.c | info->flags |= ASYNC_CHECK_CD; |
info | 1189 | drivers/char/serial.c | info->IER |= UART_IER_MSI; |
info | 1191 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 1196 | drivers/char/serial.c | info->read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; |
info | 1197 | drivers/char/serial.c | if (I_INPCK(info->tty)) |
info | 1198 | drivers/char/serial.c | info->read_status_mask |= UART_LSR_FE | UART_LSR_PE; |
info | 1199 | drivers/char/serial.c | if (I_BRKINT(info->tty) || I_PARMRK(info->tty)) |
info | 1200 | drivers/char/serial.c | info->read_status_mask |= UART_LSR_BI; |
info | 1202 | drivers/char/serial.c | info->ignore_status_mask = 0; |
info | 1203 | drivers/char/serial.c | if (I_IGNPAR(info->tty)) { |
info | 1204 | drivers/char/serial.c | info->ignore_status_mask |= UART_LSR_PE | UART_LSR_FE; |
info | 1205 | drivers/char/serial.c | info->read_status_mask |= UART_LSR_PE | UART_LSR_FE; |
info | 1207 | drivers/char/serial.c | if (I_IGNBRK(info->tty)) { |
info | 1208 | drivers/char/serial.c | info->ignore_status_mask |= UART_LSR_BI; |
info | 1209 | drivers/char/serial.c | info->read_status_mask |= UART_LSR_BI; |
info | 1214 | drivers/char/serial.c | if (I_IGNPAR(info->tty)) { |
info | 1215 | drivers/char/serial.c | info->ignore_status_mask |= UART_LSR_OE; |
info | 1216 | drivers/char/serial.c | info->read_status_mask |= UART_LSR_OE; |
info | 1221 | drivers/char/serial.c | serial_outp(info, UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ |
info | 1222 | drivers/char/serial.c | serial_outp(info, UART_DLL, quot & 0xff); /* LS of divisor */ |
info | 1223 | drivers/char/serial.c | serial_outp(info, UART_DLM, quot >> 8); /* MS of divisor */ |
info | 1224 | drivers/char/serial.c | serial_outp(info, UART_LCR, cval); /* reset DLAB */ |
info | 1225 | drivers/char/serial.c | serial_outp(info, UART_FCR, fcr); /* set fcr */ |
info | 1231 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1234 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_put_char")) |
info | 1237 | drivers/char/serial.c | if (!tty || !info->xmit_buf) |
info | 1241 | drivers/char/serial.c | if (info->xmit_cnt >= SERIAL_XMIT_SIZE - 1) { |
info | 1246 | drivers/char/serial.c | info->xmit_buf[info->xmit_head++] = ch; |
info | 1247 | drivers/char/serial.c | info->xmit_head &= SERIAL_XMIT_SIZE-1; |
info | 1248 | drivers/char/serial.c | info->xmit_cnt++; |
info | 1254 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1257 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_flush_chars")) |
info | 1260 | drivers/char/serial.c | if (info->xmit_cnt <= 0 || tty->stopped || tty->hw_stopped || |
info | 1261 | drivers/char/serial.c | !info->xmit_buf) |
info | 1265 | drivers/char/serial.c | info->IER |= UART_IER_THRI; |
info | 1266 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 1274 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1277 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_write")) |
info | 1280 | drivers/char/serial.c | if (!tty || !info->xmit_buf || !tmp_buf) |
info | 1286 | drivers/char/serial.c | c = MIN(count, MIN(SERIAL_XMIT_SIZE - info->xmit_cnt - 1, |
info | 1287 | drivers/char/serial.c | SERIAL_XMIT_SIZE - info->xmit_head)); |
info | 1294 | drivers/char/serial.c | c = MIN(c, MIN(SERIAL_XMIT_SIZE - info->xmit_cnt - 1, |
info | 1295 | drivers/char/serial.c | SERIAL_XMIT_SIZE - info->xmit_head)); |
info | 1296 | drivers/char/serial.c | memcpy(info->xmit_buf + info->xmit_head, tmp_buf, c); |
info | 1299 | drivers/char/serial.c | memcpy(info->xmit_buf + info->xmit_head, buf, c); |
info | 1300 | drivers/char/serial.c | info->xmit_head = (info->xmit_head + c) & (SERIAL_XMIT_SIZE-1); |
info | 1301 | drivers/char/serial.c | info->xmit_cnt += c; |
info | 1307 | drivers/char/serial.c | if (info->xmit_cnt && !tty->stopped && !tty->hw_stopped && |
info | 1308 | drivers/char/serial.c | !(info->IER & UART_IER_THRI)) { |
info | 1309 | drivers/char/serial.c | info->IER |= UART_IER_THRI; |
info | 1310 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 1318 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1321 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_write_room")) |
info | 1323 | drivers/char/serial.c | ret = SERIAL_XMIT_SIZE - info->xmit_cnt - 1; |
info | 1331 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1333 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_chars_in_buffer")) |
info | 1335 | drivers/char/serial.c | return info->xmit_cnt; |
info | 1340 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1342 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_flush_buffer")) |
info | 1345 | drivers/char/serial.c | info->xmit_cnt = info->xmit_head = info->xmit_tail = 0; |
info | 1363 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1371 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_throttle")) |
info | 1375 | drivers/char/serial.c | info->x_char = STOP_CHAR(tty); |
info | 1377 | drivers/char/serial.c | info->MCR &= ~UART_MCR_RTS; |
info | 1378 | drivers/char/serial.c | info->MCR_noint &= ~UART_MCR_RTS; |
info | 1380 | drivers/char/serial.c | serial_out(info, UART_MCR, info->MCR); |
info | 1386 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1394 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_unthrottle")) |
info | 1398 | drivers/char/serial.c | if (info->x_char) |
info | 1399 | drivers/char/serial.c | info->x_char = 0; |
info | 1401 | drivers/char/serial.c | info->x_char = START_CHAR(tty); |
info | 1403 | drivers/char/serial.c | info->MCR |= UART_MCR_RTS; |
info | 1404 | drivers/char/serial.c | info->MCR_noint |= UART_MCR_RTS; |
info | 1406 | drivers/char/serial.c | serial_out(info, UART_MCR, info->MCR); |
info | 1416 | drivers/char/serial.c | static int get_serial_info(struct async_struct * info, |
info | 1424 | drivers/char/serial.c | tmp.type = info->type; |
info | 1425 | drivers/char/serial.c | tmp.line = info->line; |
info | 1426 | drivers/char/serial.c | tmp.port = info->port; |
info | 1427 | drivers/char/serial.c | tmp.irq = info->irq; |
info | 1428 | drivers/char/serial.c | tmp.flags = info->flags; |
info | 1429 | drivers/char/serial.c | tmp.baud_base = info->baud_base; |
info | 1430 | drivers/char/serial.c | tmp.close_delay = info->close_delay; |
info | 1431 | drivers/char/serial.c | tmp.closing_wait = info->closing_wait; |
info | 1432 | drivers/char/serial.c | tmp.custom_divisor = info->custom_divisor; |
info | 1433 | drivers/char/serial.c | tmp.hub6 = info->hub6; |
info | 1438 | drivers/char/serial.c | static int set_serial_info(struct async_struct * info, |
info | 1449 | drivers/char/serial.c | old_info = *info; |
info | 1451 | drivers/char/serial.c | change_irq = new_serial.irq != info->irq; |
info | 1452 | drivers/char/serial.c | change_port = (new_serial.port != info->port) || (new_serial.hub6 != info->hub6); |
info | 1456 | drivers/char/serial.c | (new_serial.baud_base != info->baud_base) || |
info | 1457 | drivers/char/serial.c | (new_serial.type != info->type) || |
info | 1458 | drivers/char/serial.c | (new_serial.close_delay != info->close_delay) || |
info | 1460 | drivers/char/serial.c | (info->flags & ~ASYNC_USR_MASK))) |
info | 1462 | drivers/char/serial.c | info->flags = ((info->flags & ~ASYNC_USR_MASK) | |
info | 1464 | drivers/char/serial.c | info->custom_divisor = new_serial.custom_divisor; |
info | 1479 | drivers/char/serial.c | if ((info != &rs_table[i]) && |
info | 1485 | drivers/char/serial.c | if ((change_port || change_irq) && (info->count > 1)) |
info | 1493 | drivers/char/serial.c | info->baud_base = new_serial.baud_base; |
info | 1494 | drivers/char/serial.c | info->flags = ((info->flags & ~ASYNC_FLAGS) | |
info | 1496 | drivers/char/serial.c | info->custom_divisor = new_serial.custom_divisor; |
info | 1497 | drivers/char/serial.c | info->type = new_serial.type; |
info | 1498 | drivers/char/serial.c | info->close_delay = new_serial.close_delay; |
info | 1499 | drivers/char/serial.c | info->closing_wait = new_serial.closing_wait; |
info | 1501 | drivers/char/serial.c | release_region(info->port,8); |
info | 1507 | drivers/char/serial.c | shutdown(info); |
info | 1508 | drivers/char/serial.c | info->irq = new_serial.irq; |
info | 1509 | drivers/char/serial.c | info->port = new_serial.port; |
info | 1510 | drivers/char/serial.c | info->hub6 = new_serial.hub6; |
info | 1512 | drivers/char/serial.c | if(info->type != PORT_UNKNOWN) |
info | 1513 | drivers/char/serial.c | request_region(info->port,8,"serial(set)"); |
info | 1517 | drivers/char/serial.c | if (!info->port || !info->type) |
info | 1519 | drivers/char/serial.c | if (info->flags & ASYNC_INITIALIZED) { |
info | 1521 | drivers/char/serial.c | (info->flags & ASYNC_SPD_MASK)) || |
info | 1522 | drivers/char/serial.c | (old_info.custom_divisor != info->custom_divisor)) |
info | 1523 | drivers/char/serial.c | change_speed(info); |
info | 1525 | drivers/char/serial.c | retval = startup(info); |
info | 1540 | drivers/char/serial.c | static int get_lsr_info(struct async_struct * info, unsigned int *value) |
info | 1546 | drivers/char/serial.c | status = serial_in(info, UART_LSR); |
info | 1554 | drivers/char/serial.c | static int get_modem_info(struct async_struct * info, unsigned int *value) |
info | 1559 | drivers/char/serial.c | control = info->MCR; |
info | 1561 | drivers/char/serial.c | status = serial_in(info, UART_MSR); |
info | 1573 | drivers/char/serial.c | static int set_modem_info(struct async_struct * info, unsigned int cmd, |
info | 1586 | drivers/char/serial.c | info->MCR |= UART_MCR_RTS; |
info | 1587 | drivers/char/serial.c | info->MCR_noint |= UART_MCR_RTS; |
info | 1590 | drivers/char/serial.c | info->MCR |= UART_MCR_DTR; |
info | 1591 | drivers/char/serial.c | info->MCR_noint |= UART_MCR_DTR; |
info | 1596 | drivers/char/serial.c | info->MCR &= ~UART_MCR_RTS; |
info | 1597 | drivers/char/serial.c | info->MCR_noint &= ~UART_MCR_RTS; |
info | 1600 | drivers/char/serial.c | info->MCR &= ~UART_MCR_DTR; |
info | 1601 | drivers/char/serial.c | info->MCR_noint &= ~UART_MCR_DTR; |
info | 1605 | drivers/char/serial.c | info->MCR = ((info->MCR & ~(UART_MCR_RTS | UART_MCR_DTR)) |
info | 1608 | drivers/char/serial.c | info->MCR_noint = ((info->MCR_noint |
info | 1617 | drivers/char/serial.c | serial_out(info, UART_MCR, info->MCR); |
info | 1622 | drivers/char/serial.c | static int do_autoconfig(struct async_struct * info) |
info | 1629 | drivers/char/serial.c | if (info->count > 1) |
info | 1632 | drivers/char/serial.c | shutdown(info); |
info | 1635 | drivers/char/serial.c | autoconfig(info); |
info | 1638 | drivers/char/serial.c | retval = startup(info); |
info | 1648 | drivers/char/serial.c | static void send_break( struct async_struct * info, int duration) |
info | 1650 | drivers/char/serial.c | if (!info->port) |
info | 1655 | drivers/char/serial.c | serial_out(info, UART_LCR, serial_inp(info, UART_LCR) | UART_LCR_SBC); |
info | 1657 | drivers/char/serial.c | serial_out(info, UART_LCR, serial_inp(info, UART_LCR) & ~UART_LCR_SBC); |
info | 1705 | drivers/char/serial.c | static int get_multiport_struct(struct async_struct * info, |
info | 1711 | drivers/char/serial.c | multi = &rs_multiport[info->irq]; |
info | 1731 | drivers/char/serial.c | ret.irq = info->irq; |
info | 1738 | drivers/char/serial.c | static int set_multiport_struct(struct async_struct * info, |
info | 1754 | drivers/char/serial.c | if (new_multi.irq != info->irq || info->irq == 0 || |
info | 1755 | drivers/char/serial.c | !IRQ_ports[info->irq]) |
info | 1758 | drivers/char/serial.c | multi = &rs_multiport[info->irq]; |
info | 1781 | drivers/char/serial.c | if (IRQ_ports[info->irq]->next_port && |
info | 1783 | drivers/char/serial.c | free_irq(info->irq); |
info | 1789 | drivers/char/serial.c | retval = request_irq(info->irq, handler, SA_INTERRUPT, |
info | 1804 | drivers/char/serial.c | struct async_struct * info = (struct async_struct *)tty->driver_data; |
info | 1807 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_ioctl")) |
info | 1824 | drivers/char/serial.c | send_break(info, HZ/4); /* 1/4 second */ |
info | 1831 | drivers/char/serial.c | send_break(info, arg ? arg*(HZ/10) : HZ/4); |
info | 1851 | drivers/char/serial.c | return get_modem_info(info, (unsigned int *) arg); |
info | 1855 | drivers/char/serial.c | return set_modem_info(info, cmd, (unsigned int *) arg); |
info | 1861 | drivers/char/serial.c | return get_serial_info(info, |
info | 1864 | drivers/char/serial.c | return set_serial_info(info, |
info | 1867 | drivers/char/serial.c | return do_autoconfig(info); |
info | 1883 | drivers/char/serial.c | return get_lsr_info(info, (unsigned int *) arg); |
info | 1899 | drivers/char/serial.c | info, sizeof(struct async_struct)); |
info | 1907 | drivers/char/serial.c | return get_multiport_struct(info, |
info | 1910 | drivers/char/serial.c | return set_multiport_struct(info, |
info | 1920 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1925 | drivers/char/serial.c | change_speed(info); |
info | 1942 | drivers/char/serial.c | wake_up_interruptible(&info->open_wait); |
info | 1958 | drivers/char/serial.c | struct async_struct * info = (struct async_struct *)tty->driver_data; |
info | 1962 | drivers/char/serial.c | if (!info || serial_paranoia_check(info, tty->device, "rs_close")) |
info | 1973 | drivers/char/serial.c | printk("rs_close ttys%d, count = %d\n", info->line, info->count); |
info | 1975 | drivers/char/serial.c | if ((tty->count == 1) && (info->count != 1)) { |
info | 1984 | drivers/char/serial.c | "info->count is %d\n", info->count); |
info | 1985 | drivers/char/serial.c | info->count = 1; |
info | 1987 | drivers/char/serial.c | if (--info->count < 0) { |
info | 1989 | drivers/char/serial.c | info->line, info->count); |
info | 1990 | drivers/char/serial.c | info->count = 0; |
info | 1992 | drivers/char/serial.c | if (info->count) { |
info | 1996 | drivers/char/serial.c | info->flags |= ASYNC_CLOSING; |
info | 2001 | drivers/char/serial.c | if (info->flags & ASYNC_NORMAL_ACTIVE) |
info | 2002 | drivers/char/serial.c | info->normal_termios = *tty->termios; |
info | 2003 | drivers/char/serial.c | if (info->flags & ASYNC_CALLOUT_ACTIVE) |
info | 2004 | drivers/char/serial.c | info->callout_termios = *tty->termios; |
info | 2010 | drivers/char/serial.c | if (info->closing_wait != ASYNC_CLOSING_WAIT_NONE) |
info | 2011 | drivers/char/serial.c | tty_wait_until_sent(tty, info->closing_wait); |
info | 2018 | drivers/char/serial.c | info->IER &= ~UART_IER_RLSI; |
info | 2019 | drivers/char/serial.c | info->read_status_mask &= ~UART_LSR_DR; |
info | 2020 | drivers/char/serial.c | if (info->flags & ASYNC_INITIALIZED) { |
info | 2021 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 2028 | drivers/char/serial.c | while (!(serial_inp(info, UART_LSR) & UART_LSR_TEMT)) { |
info | 2030 | drivers/char/serial.c | current->timeout = jiffies + info->timeout; |
info | 2036 | drivers/char/serial.c | shutdown(info); |
info | 2042 | drivers/char/serial.c | info->event = 0; |
info | 2043 | drivers/char/serial.c | info->tty = 0; |
info | 2052 | drivers/char/serial.c | if (info->blocked_open) { |
info | 2053 | drivers/char/serial.c | if (info->close_delay) { |
info | 2055 | drivers/char/serial.c | current->timeout = jiffies + info->close_delay; |
info | 2058 | drivers/char/serial.c | wake_up_interruptible(&info->open_wait); |
info | 2060 | drivers/char/serial.c | info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CALLOUT_ACTIVE| |
info | 2062 | drivers/char/serial.c | wake_up_interruptible(&info->close_wait); |
info | 2071 | drivers/char/serial.c | struct async_struct * info = (struct async_struct *)tty->driver_data; |
info | 2073 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_hangup")) |
info | 2076 | drivers/char/serial.c | shutdown(info); |
info | 2077 | drivers/char/serial.c | info->event = 0; |
info | 2078 | drivers/char/serial.c | info->count = 0; |
info | 2079 | drivers/char/serial.c | info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CALLOUT_ACTIVE); |
info | 2080 | drivers/char/serial.c | info->tty = 0; |
info | 2081 | drivers/char/serial.c | wake_up_interruptible(&info->open_wait); |
info | 2090 | drivers/char/serial.c | struct async_struct *info) |
info | 2100 | drivers/char/serial.c | if (info->flags & ASYNC_CLOSING) { |
info | 2101 | drivers/char/serial.c | interruptible_sleep_on(&info->close_wait); |
info | 2103 | drivers/char/serial.c | if (info->flags & ASYNC_HUP_NOTIFY) |
info | 2117 | drivers/char/serial.c | if (info->flags & ASYNC_NORMAL_ACTIVE) |
info | 2119 | drivers/char/serial.c | if ((info->flags & ASYNC_CALLOUT_ACTIVE) && |
info | 2120 | drivers/char/serial.c | (info->flags & ASYNC_SESSION_LOCKOUT) && |
info | 2121 | drivers/char/serial.c | (info->session != current->session)) |
info | 2123 | drivers/char/serial.c | if ((info->flags & ASYNC_CALLOUT_ACTIVE) && |
info | 2124 | drivers/char/serial.c | (info->flags & ASYNC_PGRP_LOCKOUT) && |
info | 2125 | drivers/char/serial.c | (info->pgrp != current->pgrp)) |
info | 2127 | drivers/char/serial.c | info->flags |= ASYNC_CALLOUT_ACTIVE; |
info | 2137 | drivers/char/serial.c | if (info->flags & ASYNC_CALLOUT_ACTIVE) |
info | 2139 | drivers/char/serial.c | info->flags |= ASYNC_NORMAL_ACTIVE; |
info | 2143 | drivers/char/serial.c | if (info->flags & ASYNC_CALLOUT_ACTIVE) { |
info | 2144 | drivers/char/serial.c | if (info->normal_termios.c_cflag & CLOCAL) |
info | 2159 | drivers/char/serial.c | add_wait_queue(&info->open_wait, &wait); |
info | 2162 | drivers/char/serial.c | info->line, info->count); |
info | 2164 | drivers/char/serial.c | info->count--; |
info | 2165 | drivers/char/serial.c | info->blocked_open++; |
info | 2168 | drivers/char/serial.c | if (!(info->flags & ASYNC_CALLOUT_ACTIVE)) |
info | 2169 | drivers/char/serial.c | serial_out(info, UART_MCR, |
info | 2170 | drivers/char/serial.c | serial_inp(info, UART_MCR) | |
info | 2175 | drivers/char/serial.c | !(info->flags & ASYNC_INITIALIZED)) { |
info | 2177 | drivers/char/serial.c | if (info->flags & ASYNC_HUP_NOTIFY) |
info | 2186 | drivers/char/serial.c | if (!(info->flags & ASYNC_CALLOUT_ACTIVE) && |
info | 2187 | drivers/char/serial.c | !(info->flags & ASYNC_CLOSING) && |
info | 2188 | drivers/char/serial.c | (do_clocal || (serial_in(info, UART_MSR) & |
info | 2197 | drivers/char/serial.c | info->line, info->count); |
info | 2202 | drivers/char/serial.c | remove_wait_queue(&info->open_wait, &wait); |
info | 2204 | drivers/char/serial.c | info->count++; |
info | 2205 | drivers/char/serial.c | info->blocked_open--; |
info | 2208 | drivers/char/serial.c | info->line, info->count); |
info | 2212 | drivers/char/serial.c | info->flags |= ASYNC_NORMAL_ACTIVE; |
info | 2224 | drivers/char/serial.c | struct async_struct *info; |
info | 2230 | drivers/char/serial.c | info = rs_table + line; |
info | 2231 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_open")) |
info | 2235 | drivers/char/serial.c | printk("rs_open %s%d, count = %d\n", tty->driver.name, info->line, |
info | 2236 | drivers/char/serial.c | info->count); |
info | 2238 | drivers/char/serial.c | info->count++; |
info | 2239 | drivers/char/serial.c | tty->driver_data = info; |
info | 2240 | drivers/char/serial.c | info->tty = tty; |
info | 2251 | drivers/char/serial.c | retval = startup(info); |
info | 2255 | drivers/char/serial.c | retval = block_til_ready(tty, filp, info); |
info | 2264 | drivers/char/serial.c | if ((info->count == 1) && (info->flags & ASYNC_SPLIT_TERMIOS)) { |
info | 2266 | drivers/char/serial.c | *tty->termios = info->normal_termios; |
info | 2268 | drivers/char/serial.c | *tty->termios = info->callout_termios; |
info | 2269 | drivers/char/serial.c | change_speed(info); |
info | 2272 | drivers/char/serial.c | info->session = current->session; |
info | 2273 | drivers/char/serial.c | info->pgrp = current->pgrp; |
info | 2276 | drivers/char/serial.c | printk("rs_open ttys%d successful...", info->line); |
info | 2314 | drivers/char/serial.c | static int get_auto_irq(struct async_struct *info) |
info | 2317 | drivers/char/serial.c | unsigned short ICP=0, port = info->port; |
info | 2325 | drivers/char/serial.c | save_IER = serial_inp(info, UART_IER); |
info | 2326 | drivers/char/serial.c | save_MCR = serial_inp(info, UART_MCR); |
info | 2327 | drivers/char/serial.c | if (info->flags & ASYNC_FOURPORT) { |
info | 2328 | drivers/char/serial.c | serial_outp(info, UART_MCR, UART_MCR_DTR | UART_MCR_RTS); |
info | 2329 | drivers/char/serial.c | serial_outp(info, UART_IER, 0x0f); /* enable all intrs */ |
info | 2335 | drivers/char/serial.c | serial_outp(info, UART_MCR, |
info | 2337 | drivers/char/serial.c | serial_outp(info, UART_IER, 0x0f); /* enable all intrs */ |
info | 2343 | drivers/char/serial.c | (void)serial_inp(info, UART_LSR); |
info | 2344 | drivers/char/serial.c | (void)serial_inp(info, UART_RX); |
info | 2345 | drivers/char/serial.c | (void)serial_inp(info, UART_IIR); |
info | 2346 | drivers/char/serial.c | (void)serial_inp(info, UART_MSR); |
info | 2357 | drivers/char/serial.c | serial_outp(info, UART_IER, save_IER); |
info | 2358 | drivers/char/serial.c | serial_outp(info, UART_MCR, save_MCR); |
info | 2359 | drivers/char/serial.c | if (info->flags & ASYNC_FOURPORT) |
info | 2369 | drivers/char/serial.c | static int do_auto_irq(struct async_struct * info) |
info | 2371 | drivers/char/serial.c | unsigned port = info->port; |
info | 2387 | drivers/char/serial.c | irq_try_1 = get_auto_irq(info); |
info | 2389 | drivers/char/serial.c | irq_try_2 = get_auto_irq(info); |
info | 2408 | drivers/char/serial.c | static void autoconfig(struct async_struct * info) |
info | 2411 | drivers/char/serial.c | unsigned port = info->port; |
info | 2414 | drivers/char/serial.c | info->type = PORT_UNKNOWN; |
info | 2430 | drivers/char/serial.c | scratch = serial_inp(info, UART_IER); |
info | 2431 | drivers/char/serial.c | serial_outp(info, UART_IER, 0); |
info | 2433 | drivers/char/serial.c | scratch2 = serial_inp(info, UART_IER); |
info | 2434 | drivers/char/serial.c | serial_outp(info, UART_IER, scratch); |
info | 2449 | drivers/char/serial.c | if (!(info->flags & ASYNC_SKIP_TEST)) { |
info | 2450 | drivers/char/serial.c | scratch = serial_inp(info, UART_MCR); |
info | 2451 | drivers/char/serial.c | serial_outp(info, UART_MCR, UART_MCR_LOOP | scratch); |
info | 2452 | drivers/char/serial.c | scratch2 = serial_inp(info, UART_MSR); |
info | 2453 | drivers/char/serial.c | serial_outp(info, UART_MCR, UART_MCR_LOOP | 0x0A); |
info | 2454 | drivers/char/serial.c | status1 = serial_inp(info, UART_MSR) & 0xF0; |
info | 2455 | drivers/char/serial.c | serial_outp(info, UART_MCR, scratch); |
info | 2456 | drivers/char/serial.c | serial_outp(info, UART_MSR, scratch2); |
info | 2467 | drivers/char/serial.c | if (info->flags & ASYNC_AUTO_IRQ) |
info | 2468 | drivers/char/serial.c | info->irq = do_auto_irq(info); |
info | 2470 | drivers/char/serial.c | scratch2 = serial_in(info, UART_LCR); |
info | 2471 | drivers/char/serial.c | serial_outp(info, UART_LCR, scratch2 | UART_LCR_DLAB); |
info | 2472 | drivers/char/serial.c | serial_outp(info, UART_EFR, 0); /* EFR is the same as FCR */ |
info | 2473 | drivers/char/serial.c | serial_outp(info, UART_LCR, scratch2); |
info | 2474 | drivers/char/serial.c | serial_outp(info, UART_FCR, UART_FCR_ENABLE_FIFO); |
info | 2475 | drivers/char/serial.c | scratch = serial_in(info, UART_IIR) >> 6; |
info | 2476 | drivers/char/serial.c | info->xmit_fifo_size = 1; |
info | 2479 | drivers/char/serial.c | info->type = PORT_16450; |
info | 2482 | drivers/char/serial.c | info->type = PORT_UNKNOWN; |
info | 2485 | drivers/char/serial.c | info->type = PORT_16550; |
info | 2488 | drivers/char/serial.c | serial_outp(info, UART_LCR, scratch2 | UART_LCR_DLAB); |
info | 2489 | drivers/char/serial.c | if (serial_in(info, UART_EFR) == 0) { |
info | 2490 | drivers/char/serial.c | info->type = PORT_16650; |
info | 2491 | drivers/char/serial.c | info->xmit_fifo_size = 32; |
info | 2493 | drivers/char/serial.c | info->type = PORT_16550A; |
info | 2494 | drivers/char/serial.c | info->xmit_fifo_size = 16; |
info | 2496 | drivers/char/serial.c | serial_outp(info, UART_LCR, scratch2); |
info | 2499 | drivers/char/serial.c | if (info->type == PORT_16450) { |
info | 2500 | drivers/char/serial.c | scratch = serial_in(info, UART_SCR); |
info | 2501 | drivers/char/serial.c | serial_outp(info, UART_SCR, 0xa5); |
info | 2502 | drivers/char/serial.c | status1 = serial_in(info, UART_SCR); |
info | 2503 | drivers/char/serial.c | serial_outp(info, UART_SCR, 0x5a); |
info | 2504 | drivers/char/serial.c | status2 = serial_in(info, UART_SCR); |
info | 2505 | drivers/char/serial.c | serial_outp(info, UART_SCR, scratch); |
info | 2508 | drivers/char/serial.c | info->type = PORT_8250; |
info | 2510 | drivers/char/serial.c | request_region(info->port,8,"serial(auto)"); |
info | 2520 | drivers/char/serial.c | serial_outp(info, UART_MCR, 0x0c); |
info | 2522 | drivers/char/serial.c | serial_outp(info, UART_MCR, 0x00); |
info | 2524 | drivers/char/serial.c | serial_outp(info, UART_FCR, (UART_FCR_CLEAR_RCVR | |
info | 2526 | drivers/char/serial.c | (void)serial_in(info, UART_RX); |
info | 2537 | drivers/char/serial.c | struct async_struct * info; |
info | 2604 | drivers/char/serial.c | for (i = 0, info = rs_table; i < NR_PORTS; i++,info++) { |
info | 2605 | drivers/char/serial.c | info->magic = SERIAL_MAGIC; |
info | 2606 | drivers/char/serial.c | info->line = i; |
info | 2607 | drivers/char/serial.c | info->tty = 0; |
info | 2608 | drivers/char/serial.c | info->type = PORT_UNKNOWN; |
info | 2609 | drivers/char/serial.c | info->custom_divisor = 0; |
info | 2610 | drivers/char/serial.c | info->close_delay = 50; |
info | 2611 | drivers/char/serial.c | info->closing_wait = 3000; |
info | 2612 | drivers/char/serial.c | info->x_char = 0; |
info | 2613 | drivers/char/serial.c | info->event = 0; |
info | 2614 | drivers/char/serial.c | info->count = 0; |
info | 2615 | drivers/char/serial.c | info->blocked_open = 0; |
info | 2616 | drivers/char/serial.c | info->tqueue.routine = do_softint; |
info | 2617 | drivers/char/serial.c | info->tqueue.data = info; |
info | 2618 | drivers/char/serial.c | info->callout_termios =callout_driver.init_termios; |
info | 2619 | drivers/char/serial.c | info->normal_termios = serial_driver.init_termios; |
info | 2620 | drivers/char/serial.c | info->open_wait = 0; |
info | 2621 | drivers/char/serial.c | info->close_wait = 0; |
info | 2622 | drivers/char/serial.c | info->next_port = 0; |
info | 2623 | drivers/char/serial.c | info->prev_port = 0; |
info | 2624 | drivers/char/serial.c | if (info->irq == 2) |
info | 2625 | drivers/char/serial.c | info->irq = 9; |
info | 2626 | drivers/char/serial.c | if (!(info->flags & ASYNC_BOOT_AUTOCONF)) |
info | 2628 | drivers/char/serial.c | autoconfig(info); |
info | 2629 | drivers/char/serial.c | if (info->type == PORT_UNKNOWN) |
info | 2631 | drivers/char/serial.c | printk("tty%02d%s at 0x%04x (irq = %d)", info->line, |
info | 2632 | drivers/char/serial.c | (info->flags & ASYNC_FOURPORT) ? " FourPort" : "", |
info | 2633 | drivers/char/serial.c | info->port, info->irq); |
info | 2634 | drivers/char/serial.c | switch (info->type) { |
info | 2666 | drivers/char/serial.c | struct async_struct *info; |
info | 2684 | drivers/char/serial.c | info = &rs_table[i]; |
info | 2691 | drivers/char/serial.c | info->irq = req->irq; |
info | 2692 | drivers/char/serial.c | info->port = req->port; |
info | 2693 | drivers/char/serial.c | autoconfig(info); |
info | 2694 | drivers/char/serial.c | if (info->type == PORT_UNKNOWN) { |
info | 2699 | drivers/char/serial.c | printk("tty%02d at 0x%04x (irq = %d)", info->line, |
info | 2700 | drivers/char/serial.c | info->port, info->irq); |
info | 2701 | drivers/char/serial.c | switch (info->type) { |
info | 2714 | drivers/char/serial.c | return info->line; |
info | 2720 | drivers/char/serial.c | struct async_struct *info = &rs_table[line]; |
info | 2724 | drivers/char/serial.c | if (info->tty) |
info | 2725 | drivers/char/serial.c | tty_hangup(info->tty); |
info | 2726 | drivers/char/serial.c | info->type = PORT_UNKNOWN; |
info | 2727 | drivers/char/serial.c | printk("tty%02d unloaded\n", info->line); |
info | 106 | drivers/net/3c505dta.h | struct Info info; |
info | 362 | drivers/scsi/eata.c | struct eata_info info; |
info | 381 | drivers/scsi/eata.c | if (read_pio(*port_base, (ushort *)&info, (ushort *)&info.ipad[0])) |
info | 385 | drivers/scsi/eata.c | if (info.sign != EATA_SIGNATURE) return FALSE; |
info | 387 | drivers/scsi/eata.c | if (ntohl(info.data_len) < EATA_2_0A_SIZE) { |
info | 389 | drivers/scsi/eata.c | name, ntohl(info.data_len)); |
info | 392 | drivers/scsi/eata.c | else if (ntohl(info.data_len) == EATA_2_0A_SIZE) |
info | 394 | drivers/scsi/eata.c | else if (ntohl(info.data_len) == EATA_2_0B_SIZE) |
info | 399 | drivers/scsi/eata.c | if (protocol_rev != 'A' && info.max_chan > 0) |
info | 402 | drivers/scsi/eata.c | irq = info.irq; |
info | 406 | drivers/scsi/eata.c | if (!info.haaval || info.ata || info.drqvld) { |
info | 408 | drivers/scsi/eata.c | name, info.haaval, info.ata, info.drqvld); |
info | 417 | drivers/scsi/eata.c | if (!info.haaval || info.ata || !info.drqvld) { |
info | 419 | drivers/scsi/eata.c | name, info.haaval, info.ata, info.drqvld); |
info | 424 | drivers/scsi/eata.c | dma_channel = dma_channel_table[3 - info.drqx]; |
info | 427 | drivers/scsi/eata.c | if (!info.dmasup) |
info | 430 | drivers/scsi/eata.c | if (subversion == ESA && !info.irq_tr) |
info | 434 | drivers/scsi/eata.c | if (info.second) |
info | 485 | drivers/scsi/eata.c | sh[j]->sg_tablesize = (ushort) ntohs(info.scatt_size); |
info | 486 | drivers/scsi/eata.c | sh[j]->this_id = (ushort) info.host_addr[3]; |
info | 487 | drivers/scsi/eata.c | sh[j]->can_queue = (ushort) ntohs(info.queue_size); |
info | 532 | drivers/scsi/eata.c | " max_chan %u.\n", name, protocol_rev, info.isaena, |
info | 533 | drivers/scsi/eata.c | info.forcaddr, info.max_id, info.max_chan); |
info | 536 | drivers/scsi/eata.c | name, info.version, info.sync, ntohl(info.data_len), |
info | 537 | drivers/scsi/eata.c | ntohl(info.cp_len), ntohl(info.sp_len)); |
info | 336 | drivers/scsi/hosts.c | if(shpnt->hostt->info) |
info | 337 | drivers/scsi/hosts.c | name = shpnt->hostt->info(shpnt); |
info | 94 | drivers/scsi/hosts.h | const char *(* info)(struct Scsi_Host *); |
info | 2190 | drivers/scsi/scsi.c | if(tpnt->info) |
info | 2191 | drivers/scsi/scsi.c | name = tpnt->info(shpnt); |
info | 551 | drivers/scsi/scsi_debug.c | int scsi_debug_biosparam(Disk * disk, int dev, int* info){ |
info | 553 | drivers/scsi/scsi_debug.c | info[0] = 32; |
info | 554 | drivers/scsi/scsi_debug.c | info[1] = 64; |
info | 555 | drivers/scsi/scsi_debug.c | info[2] = (size + 2047) >> 11; |
info | 556 | drivers/scsi/scsi_debug.c | if (info[2] >= 1024) info[2] = 1024; |
info | 37 | drivers/scsi/scsi_ioctl.c | if(host->hostt->info) |
info | 38 | drivers/scsi/scsi_ioctl.c | string = host->hostt->info(host); |
info | 143 | drivers/sound/dev_table.h | struct synth_info *info; |
info | 162 | drivers/sound/dev_table.h | int (*pmgr_interface) (int dev, struct patmgr_info *info); |
info | 171 | drivers/sound/dev_table.h | struct midi_info info; |
info | 189 | drivers/sound/dev_table.h | struct sound_timer_info info; |
info | 113 | drivers/sound/midi_synth.c | IOCTL_TO_USER ((char *) arg, 0, synth_devs[dev]->info, |
info | 1086 | drivers/sound/mpu401.c | strcpy (mpu401_midi_operations[num_midis].info.name, |
info | 1091 | drivers/sound/mpu401.c | mpu401_synth_operations[devc->devno].info = |
info | 1537 | drivers/sound/sequencer.c | IOCTL_TO_USER ((char *) arg, 0, (char *) &(midi_devs[dev]->info), sizeof (inf)); |
info | 211 | drivers/sound/sound_switch.c | if (!put_status (synth_devs[i]->info->name)) |
info | 226 | drivers/sound/sound_switch.c | if (!put_status (midi_devs[i]->info.name)) |
info | 241 | drivers/sound/sound_switch.c | if (!put_status (sound_timer_devs[i]->info.name)) |
info | 72 | fs/minix/dir.c | struct minix_sb_info * info; |
info | 76 | fs/minix/dir.c | info = &inode->i_sb->u.minix_sb; |
info | 77 | fs/minix/dir.c | if (filp->f_pos & (info->s_dirsize - 1)) |
info | 89 | fs/minix/dir.c | offset += info->s_dirsize; |
info | 90 | fs/minix/dir.c | filp->f_pos += info->s_dirsize; |
info | 94 | fs/minix/dir.c | for (i = 0; i < info->s_namelen; i++) |
info | 46 | fs/minix/namei.c | struct minix_sb_info * info) |
info | 51 | fs/minix/namei.c | *offset += info->s_dirsize; |
info | 52 | fs/minix/namei.c | if (!de->inode || len > info->s_namelen) |
info | 57 | fs/minix/namei.c | return namecompare(len,info->s_namelen,name,de->name); |
info | 73 | fs/minix/namei.c | struct minix_sb_info * info; |
info | 78 | fs/minix/namei.c | info = &dir->i_sb->u.minix_sb; |
info | 79 | fs/minix/namei.c | if (namelen > info->s_namelen) { |
info | 83 | fs/minix/namei.c | namelen = info->s_namelen; |
info | 97 | fs/minix/namei.c | if (minix_match(namelen,name,bh,&offset,info)) |
info | 158 | fs/minix/namei.c | struct minix_sb_info * info; |
info | 164 | fs/minix/namei.c | info = &dir->i_sb->u.minix_sb; |
info | 165 | fs/minix/namei.c | if (namelen > info->s_namelen) { |
info | 169 | fs/minix/namei.c | namelen = info->s_namelen; |
info | 183 | fs/minix/namei.c | offset += info->s_dirsize; |
info | 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 | 664 | fs/minix/namei.c | (((struct minix_dir_entry *) ((buffer)+info->s_dirsize))->inode) |
info | 682 | fs/minix/namei.c | struct minix_sb_info * info; |
info | 685 | fs/minix/namei.c | info = &old_dir->i_sb->u.minix_sb; |
info | 154 | fs/umsdos/dir.c | struct umsdos_info info; |
info | 157 | fs/umsdos/dir.c | umsdos_parse (entry.name,entry.name_len,&info); |
info | 158 | fs/umsdos/dir.c | info.f_pos = cur_f_pos; |
info | 160 | fs/umsdos/dir.c | umsdos_manglename (&info); |
info | 161 | fs/umsdos/dir.c | lret = umsdos_real_lookup (dir,info.fake.fname |
info | 162 | fs/umsdos/dir.c | ,info.fake.len,&inode); |
info | 164 | fs/umsdos/dir.c | ,info.fake.fname,lret,entry.flags)); |
info | 213 | fs/umsdos/dir.c | ret = umsdos_writeentry (dir,emd_dir,&info,1); |
info | 560 | fs/umsdos/dir.c | struct umsdos_info info; |
info | 561 | fs/umsdos/dir.c | ret = umsdos_parse (name,len,&info); |
info | 562 | fs/umsdos/dir.c | if (ret == 0) ret = umsdos_findentry (dir,&info,0); |
info | 563 | fs/umsdos/dir.c | PRINTK (("lookup %s pos %d ret %d len %d ",info.fake.fname,info.f_pos,ret |
info | 564 | fs/umsdos/dir.c | ,info.fake.len)); |
info | 576 | fs/umsdos/dir.c | ret = umsdos_real_lookup (dir,info.fake.fname,info.fake.len,result); |
info | 580 | fs/umsdos/dir.c | ,info.fake.fname); |
info | 581 | fs/umsdos/dir.c | umsdos_delentry (dir,&info,S_ISDIR(info.entry.mode)); |
info | 583 | fs/umsdos/dir.c | umsdos_lookup_patch (dir,inode,&info.entry,info.f_pos); |
info | 585 | fs/umsdos/dir.c | ,info.entry.flags)); |
info | 586 | fs/umsdos/dir.c | if (info.entry.flags & UMSDOS_HLINK){ |
info | 179 | fs/umsdos/emd.c | struct umsdos_info *info, |
info | 184 | fs/umsdos/emd.c | struct umsdos_dirent *entry = &info->entry; |
info | 206 | fs/umsdos/emd.c | filp.f_pos = info->f_pos; |
info | 208 | fs/umsdos/emd.c | ret = umsdos_emd_dir_write(emd_dir,&filp,(char*)entry,info->recsize); |
info | 281 | fs/umsdos/emd.c | struct umsdos_info *info, /* Hold name and name_len */ |
info | 294 | fs/umsdos/emd.c | struct umsdos_dirent *entry = &info->entry; |
info | 295 | fs/umsdos/emd.c | int recsize = info->recsize; |
info | 319 | fs/umsdos/emd.c | info->f_pos = empty.posok; |
info | 326 | fs/umsdos/emd.c | info->f_pos = file_pos; |
info | 349 | fs/umsdos/emd.c | info->f_pos = empty.posok; |
info | 357 | fs/umsdos/emd.c | info->f_pos = file_pos; |
info | 367 | fs/umsdos/emd.c | umsdos_manglename(info); |
info | 381 | fs/umsdos/emd.c | struct umsdos_info *info) |
info | 384 | fs/umsdos/emd.c | int ret = umsdos_find (dir,info,&emd_dir); |
info | 388 | fs/umsdos/emd.c | ret = umsdos_writeentry(dir,emd_dir,info,0); |
info | 400 | fs/umsdos/emd.c | struct umsdos_info *info) |
info | 404 | fs/umsdos/emd.c | umsdos_parse ("..LINK",6,info); |
info | 405 | fs/umsdos/emd.c | info->entry.name_len = 0; |
info | 406 | fs/umsdos/emd.c | ret = umsdos_find (dir,info,&emd_dir); |
info | 414 | fs/umsdos/emd.c | info->entry.name_len = sprintf (info->entry.name,"..LINK%ld" |
info | 415 | fs/umsdos/emd.c | ,info->f_pos); |
info | 428 | fs/umsdos/emd.c | struct umsdos_info *info, |
info | 432 | fs/umsdos/emd.c | int ret = umsdos_find (dir,info,&emd_dir); |
info | 434 | fs/umsdos/emd.c | if (info->entry.name_len != 0){ |
info | 435 | fs/umsdos/emd.c | if ((isdir != 0) != (S_ISDIR(info->entry.mode) != 0)){ |
info | 436 | fs/umsdos/emd.c | if (S_ISDIR(info->entry.mode)){ |
info | 442 | fs/umsdos/emd.c | ret = umsdos_writeentry(dir,emd_dir,info,1); |
info | 490 | fs/umsdos/emd.c | struct umsdos_info *info, |
info | 496 | fs/umsdos/emd.c | int ret = umsdos_find (dir,info,&emd_dir); |
info | 499 | fs/umsdos/emd.c | if (S_ISDIR(info->entry.mode)){ |
info | 109 | fs/umsdos/ioctl.c | struct umsdos_info info; |
info | 111 | fs/umsdos/ioctl.c | umsdos_parse (entry.name,entry.name_len,&info); |
info | 112 | fs/umsdos/ioctl.c | info.f_pos = f_pos; |
info | 113 | fs/umsdos/ioctl.c | umsdos_manglename(&info); |
info | 117 | fs/umsdos/ioctl.c | ,info.fake.fname,info.fake.len+1); |
info | 159 | fs/umsdos/ioctl.c | struct umsdos_info info; |
info | 162 | fs/umsdos/ioctl.c | memcpy (&info.entry,&data.umsdos_dirent |
info | 165 | fs/umsdos/ioctl.c | ,data.umsdos_dirent.name_len,&info); |
info | 166 | fs/umsdos/ioctl.c | ret = umsdos_newentry (dir,&info); |
info | 191 | fs/umsdos/ioctl.c | struct umsdos_info info; |
info | 194 | fs/umsdos/ioctl.c | memcpy (&info.entry,&data.umsdos_dirent |
info | 197 | fs/umsdos/ioctl.c | ,data.umsdos_dirent.name_len,&info); |
info | 198 | 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 | 216 | fs/umsdos/namei.c | struct umsdos_info info; |
info | 217 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
info | 220 | fs/umsdos/namei.c | info.entry.mode = mode; |
info | 221 | fs/umsdos/namei.c | info.entry.rdev = rdev; |
info | 222 | fs/umsdos/namei.c | info.entry.flags = flags; |
info | 223 | fs/umsdos/namei.c | info.entry.uid = current->fsuid; |
info | 224 | fs/umsdos/namei.c | info.entry.gid = (dir->i_mode & S_ISGID) |
info | 226 | fs/umsdos/namei.c | info.entry.ctime = info.entry.atime = info.entry.mtime |
info | 228 | fs/umsdos/namei.c | info.entry.nlink = 1; |
info | 230 | fs/umsdos/namei.c | ret = umsdos_newentry (dir,&info); |
info | 233 | fs/umsdos/namei.c | ret = msdos_create (dir,info.fake.fname,info.fake.len |
info | 237 | fs/umsdos/namei.c | umsdos_lookup_patch (dir,inode,&info.entry,info.f_pos); |
info | 240 | fs/umsdos/namei.c | ,info.fake.fname,current->pid,info.f_pos)); |
info | 267 | fs/umsdos/namei.c | ,info.fake.fname,-ret,current->pid,info.f_pos); |
info | 269 | fs/umsdos/namei.c | umsdos_delentry (dir,&info,0); |
info | 272 | fs/umsdos/namei.c | ,info.fake.fname,ret,info.f_pos)); |
info | 596 | fs/umsdos/namei.c | struct umsdos_info info; |
info | 597 | fs/umsdos/namei.c | ret = umsdos_newhidden (olddir,&info); |
info | 603 | fs/umsdos/namei.c | ,olddir,info.entry.name,info.entry.name_len |
info | 689 | fs/umsdos/namei.c | struct umsdos_info info; |
info | 690 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
info | 693 | fs/umsdos/namei.c | info.entry.mode = mode | S_IFDIR; |
info | 694 | fs/umsdos/namei.c | info.entry.rdev = 0; |
info | 695 | fs/umsdos/namei.c | info.entry.uid = current->fsuid; |
info | 696 | fs/umsdos/namei.c | info.entry.gid = (dir->i_mode & S_ISGID) |
info | 698 | fs/umsdos/namei.c | info.entry.ctime = info.entry.atime = info.entry.mtime |
info | 700 | fs/umsdos/namei.c | info.entry.flags = 0; |
info | 702 | fs/umsdos/namei.c | info.entry.nlink = 1; |
info | 703 | fs/umsdos/namei.c | ret = umsdos_newentry (dir,&info); |
info | 707 | fs/umsdos/namei.c | ret = msdos_mkdir (dir,info.fake.fname,info.fake.len,mode); |
info | 709 | fs/umsdos/namei.c | umsdos_delentry (dir,&info,1); |
info | 722 | fs/umsdos/namei.c | ret = umsdos_real_lookup (dir,info.fake.fname |
info | 723 | fs/umsdos/namei.c | ,info.fake.len,&subdir); |
info | 897 | fs/umsdos/namei.c | struct umsdos_info info; |
info | 899 | fs/umsdos/namei.c | umsdos_parse (name,len,&info); |
info | 902 | fs/umsdos/namei.c | umsdos_findentry (dir,&info,2); |
info | 903 | fs/umsdos/namei.c | ret = msdos_rmdir (dir,info.fake.fname |
info | 904 | fs/umsdos/namei.c | ,info.fake.len); |
info | 906 | fs/umsdos/namei.c | ret = umsdos_delentry (dir,&info,1); |
info | 938 | fs/umsdos/namei.c | struct umsdos_info info; |
info | 939 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
info | 942 | fs/umsdos/namei.c | ret = umsdos_findentry(dir,&info,1); |
info | 944 | fs/umsdos/namei.c | PRINTK (("UMSDOS_unlink %s ",info.fake.fname)); |
info | 947 | fs/umsdos/namei.c | current->fsuid == info.entry.uid || |
info | 949 | fs/umsdos/namei.c | if (info.entry.flags & UMSDOS_HLINK){ |
info | 988 | fs/umsdos/namei.c | ret = umsdos_delentry (dir,&info,0); |
info | 990 | fs/umsdos/namei.c | PRINTK (("Avant msdos_unlink %s ",info.fake.fname)); |
info | 992 | fs/umsdos/namei.c | ret = msdos_unlink_umsdos (dir,info.fake.fname |
info | 993 | fs/umsdos/namei.c | ,info.fake.len); |
info | 994 | fs/umsdos/namei.c | PRINTK (("msdos_unlink %s %o ret %d ",info.fake.fname |
info | 995 | fs/umsdos/namei.c | ,info.entry.mode,ret)); |
info | 71 | include/asm-i386/processor.h | struct info *info; |
info | 17 | kernel/info.c | asmlinkage int sys_sysinfo(struct sysinfo *info) |
info | 23 | kernel/info.c | error = verify_area(VERIFY_WRITE, info, sizeof(struct sysinfo)); |
info | 40 | kernel/info.c | memcpy_tofs(info, &val, sizeof(struct sysinfo)); |
info | 99 | net/inet/icmp.c | void icmp_send(struct sk_buff *skb_in, int type, int code, unsigned long info, struct device *dev) |
info | 255 | net/inet/icmp.c | icmph->un.gateway = info; /* This might not be meant for |
info | 29 | net/inet/icmp.h | unsigned long info, struct device *dev); |