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 | 431 | drivers/block/genhd.c | unsigned char info[128]; /* Informative text string */ |
info | 856 | drivers/block/ide-cd.c | struct cdrom_info *info = &drive->cdrom_info; |
info | 861 | drivers/block/ide-cd.c | info->nsectors_buffered); |
info | 868 | drivers/block/ide-cd.c | if (info->sector_buffer == NULL) |
info | 870 | drivers/block/ide-cd.c | info->sector_buffer = (char *) kmalloc (SECTOR_BUFFER_SIZE, GFP_ATOMIC); |
info | 873 | drivers/block/ide-cd.c | if (info->sector_buffer == NULL) |
info | 878 | drivers/block/ide-cd.c | if (info->nsectors_buffered == 0) |
info | 879 | drivers/block/ide-cd.c | info->sector_buffered = sector; |
info | 882 | drivers/block/ide-cd.c | dest = info->sector_buffer + info->nsectors_buffered * SECTOR_SIZE; |
info | 888 | drivers/block/ide-cd.c | ++info->nsectors_buffered; |
info | 1060 | drivers/block/ide-cd.c | struct cdrom_info *info = &drive->cdrom_info; |
info | 1064 | drivers/block/ide-cd.c | if (info->sector_buffer == NULL) return 0; |
info | 1069 | drivers/block/ide-cd.c | rq->sector >= info->sector_buffered && |
info | 1070 | drivers/block/ide-cd.c | rq->sector < info->sector_buffered + info->nsectors_buffered) |
info | 1076 | drivers/block/ide-cd.c | info->sector_buffer + |
info | 1077 | drivers/block/ide-cd.c | (rq->sector - info->sector_buffered) * SECTOR_SIZE, |
info | 157 | drivers/block/ide.h | byte info[4]; |
info | 291 | drivers/block/loop.c | struct loop_info info; |
info | 297 | drivers/block/loop.c | memcpy_fromfs(&info, arg, sizeof(info)); |
info | 298 | drivers/block/loop.c | if (info.lo_encrypt_key_size > LO_KEY_SIZE) |
info | 300 | drivers/block/loop.c | switch (info.lo_encrypt_type) { |
info | 304 | drivers/block/loop.c | if (info.lo_encrypt_key_size < 0) |
info | 309 | drivers/block/loop.c | if (info.lo_encrypt_key_size != 8) |
info | 313 | drivers/block/loop.c | memcpy(lo->lo_des_init,info.lo_init,8); |
info | 319 | drivers/block/loop.c | lo->lo_offset = info.lo_offset; |
info | 320 | drivers/block/loop.c | strncpy(lo->lo_name, info.lo_name, LO_NAME_SIZE); |
info | 321 | drivers/block/loop.c | lo->lo_encrypt_type = info.lo_encrypt_type; |
info | 323 | drivers/block/loop.c | lo->lo_encrypt_key_size = info.lo_encrypt_key_size; |
info | 324 | drivers/block/loop.c | if (info.lo_encrypt_key_size) |
info | 325 | drivers/block/loop.c | memcpy(lo->lo_encrypt_key, info.lo_encrypt_key, |
info | 326 | drivers/block/loop.c | info.lo_encrypt_key_size); |
info | 333 | drivers/block/loop.c | struct loop_info info; |
info | 339 | drivers/block/loop.c | memset(&info, 0, sizeof(info)); |
info | 340 | drivers/block/loop.c | info.lo_number = lo->lo_number; |
info | 341 | drivers/block/loop.c | info.lo_device = kdev_t_to_nr(lo->lo_inode->i_dev); |
info | 342 | drivers/block/loop.c | info.lo_inode = lo->lo_inode->i_ino; |
info | 343 | drivers/block/loop.c | info.lo_rdevice = kdev_t_to_nr(lo->lo_device); |
info | 344 | drivers/block/loop.c | info.lo_offset = lo->lo_offset; |
info | 345 | drivers/block/loop.c | info.lo_flags = lo->lo_flags; |
info | 346 | drivers/block/loop.c | strncpy(info.lo_name, lo->lo_name, LO_NAME_SIZE); |
info | 347 | drivers/block/loop.c | info.lo_encrypt_type = lo->lo_encrypt_type; |
info | 349 | drivers/block/loop.c | info.lo_encrypt_key_size = lo->lo_encrypt_key_size; |
info | 350 | drivers/block/loop.c | memcpy(info.lo_encrypt_key, lo->lo_encrypt_key, |
info | 353 | drivers/block/loop.c | memcpy_tofs(arg, &info, sizeof(info)); |
info | 1620 | drivers/cdrom/mcdx.c | mcdx_requesttocdata(struct s_drive_stuff *stuffp, struct s_diskinfo *info, int tries) |
info | 1625 | drivers/cdrom/mcdx.c | info->n_first = bcd2uint(buf[1]); |
info | 1626 | drivers/cdrom/mcdx.c | info->n_last = bcd2uint(buf[2]); |
info | 1627 | drivers/cdrom/mcdx.c | info->msf_leadout.minute = buf[3]; |
info | 1628 | drivers/cdrom/mcdx.c | info->msf_leadout.second = buf[4]; |
info | 1629 | drivers/cdrom/mcdx.c | info->msf_leadout.frame = buf[5]; |
info | 1630 | drivers/cdrom/mcdx.c | info->msf_first.minute = buf[6]; |
info | 1631 | drivers/cdrom/mcdx.c | info->msf_first.second = buf[7]; |
info | 1632 | drivers/cdrom/mcdx.c | info->msf_first.frame = buf[8]; |
info | 433 | drivers/cdrom/sjcd.c | struct sjcd_hw_disk_info info; |
info | 460 | drivers/cdrom/sjcd.c | if( sjcd_load_response( &info, sizeof( info ) ) != 0 ){ |
info | 464 | drivers/cdrom/sjcd.c | sjcd_first_track_no = bcd2bin( info.un.track_no ); |
info | 489 | drivers/cdrom/sjcd.c | if( sjcd_load_response( &info, sizeof( info ) ) != 0 ){ |
info | 493 | drivers/cdrom/sjcd.c | sjcd_last_track_no = bcd2bin( info.un.track_no ); |
info | 547 | drivers/cdrom/sjcd.c | if( sjcd_load_response( &info, sizeof( info ) ) != 0 ){ |
info | 551 | drivers/cdrom/sjcd.c | sjcd_disk_length.min = info.un.track_msf.min; |
info | 552 | drivers/cdrom/sjcd.c | sjcd_disk_length.sec = info.un.track_msf.sec; |
info | 553 | drivers/cdrom/sjcd.c | sjcd_disk_length.frame = info.un.track_msf.frame; |
info | 428 | drivers/char/cyclades.c | serial_paranoia_check(struct cyclades_port *info, |
info | 439 | drivers/char/cyclades.c | if (!info) { |
info | 444 | drivers/char/cyclades.c | if( (long)info < (long)(&cy_port[0]) |
info | 445 | drivers/char/cyclades.c | || (long)(&cy_port[NR_PORTS]) < (long)info ){ |
info | 450 | drivers/char/cyclades.c | if (info->magic != CYCLADES_MAGIC) { |
info | 524 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 530 | drivers/char/cyclades.c | printk("cy_stop ttyC%d\n", info->line); /* */ |
info | 533 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_stop")) |
info | 536 | drivers/char/cyclades.c | cinfo = &cy_card[info->card]; |
info | 538 | drivers/char/cyclades.c | channel = info->line - cinfo->first_line; |
info | 542 | drivers/char/cyclades.c | (cy_card[info->card].base_addr + (cy_chip_offset[chip]<<index)); |
info | 556 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 562 | drivers/char/cyclades.c | printk("cy_start ttyC%d\n", info->line); /* */ |
info | 565 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_start")) |
info | 568 | drivers/char/cyclades.c | cinfo = &cy_card[info->card]; |
info | 570 | drivers/char/cyclades.c | channel = info->line - cinfo->first_line; |
info | 574 | drivers/char/cyclades.c | (cy_card[info->card].base_addr + (cy_chip_offset[chip]<<index)); |
info | 592 | drivers/char/cyclades.c | cy_sched_event(struct cyclades_port *info, int event) |
info | 594 | drivers/char/cyclades.c | info->event |= 1 << event; /* remember what kind of event and who */ |
info | 595 | drivers/char/cyclades.c | queue_task_irq_off(&info->tqueue, &tq_cyclades); /* it belongs to */ |
info | 645 | drivers/char/cyclades.c | struct cyclades_port *info; |
info | 691 | drivers/char/cyclades.c | info = &cy_port[i]; |
info | 692 | drivers/char/cyclades.c | info->last_active = jiffies; |
info | 697 | drivers/char/cyclades.c | if(info->tty == 0){ |
info | 708 | drivers/char/cyclades.c | tty = info->tty; |
info | 712 | drivers/char/cyclades.c | if(data & info->ignore_status_mask){ |
info | 717 | drivers/char/cyclades.c | if (data & info->read_status_mask){ |
info | 723 | drivers/char/cyclades.c | if (info->flags & ASYNC_SAK){ |
info | 772 | drivers/char/cyclades.c | ++info->mon.int_count; |
info | 773 | drivers/char/cyclades.c | info->mon.char_count += char_count; |
info | 774 | drivers/char/cyclades.c | if (char_count > info->mon.char_max) |
info | 775 | drivers/char/cyclades.c | info->mon.char_max = char_count; |
info | 776 | drivers/char/cyclades.c | info->mon.char_last = char_count; |
info | 815 | drivers/char/cyclades.c | info = &cy_port[i]; |
info | 816 | drivers/char/cyclades.c | info->last_active = jiffies; |
info | 817 | drivers/char/cyclades.c | if(info->tty == 0){ |
info | 823 | drivers/char/cyclades.c | char_count = info->xmit_fifo_size; |
info | 826 | drivers/char/cyclades.c | if(info->x_char) { /* send special char */ |
info | 827 | drivers/char/cyclades.c | outch = info->x_char; |
info | 830 | drivers/char/cyclades.c | info->x_char = 0; |
info | 833 | drivers/char/cyclades.c | if (info->x_break){ |
info | 846 | drivers/char/cyclades.c | base_addr[CyTDR<<index] = info->x_break*200/HZ; |
info | 850 | drivers/char/cyclades.c | info->x_break = 0; |
info | 854 | drivers/char/cyclades.c | if (!info->xmit_cnt){ |
info | 858 | drivers/char/cyclades.c | if (info->xmit_buf == 0){ |
info | 862 | drivers/char/cyclades.c | if (info->tty->stopped || info->tty->hw_stopped){ |
info | 877 | drivers/char/cyclades.c | outch = info->xmit_buf[info->xmit_tail]; |
info | 879 | drivers/char/cyclades.c | info->xmit_cnt--; |
info | 880 | drivers/char/cyclades.c | info->xmit_tail = (info->xmit_tail + 1) |
info | 885 | drivers/char/cyclades.c | info->xmit_cnt--; |
info | 886 | drivers/char/cyclades.c | info->xmit_tail = (info->xmit_tail + 1) |
info | 897 | drivers/char/cyclades.c | if (info->xmit_cnt < WAKEUP_CHARS) { |
info | 898 | drivers/char/cyclades.c | cy_sched_event(info, Cy_EVENT_WRITE_WAKEUP); |
info | 912 | drivers/char/cyclades.c | info = &cy_port[channel + chip * 4 + cinfo->first_line]; |
info | 913 | drivers/char/cyclades.c | info->last_active = jiffies; |
info | 920 | drivers/char/cyclades.c | if(info->tty == 0){ /* nowhere to put the data, ignore it */ |
info | 924 | drivers/char/cyclades.c | && (info->flags & ASYNC_CHECK_CD)){ |
info | 927 | drivers/char/cyclades.c | cy_sched_event(info, Cy_EVENT_OPEN_WAKEUP); |
info | 928 | drivers/char/cyclades.c | }else if(!((info->flags & ASYNC_CALLOUT_ACTIVE) |
info | 929 | drivers/char/cyclades.c | &&(info->flags & ASYNC_CALLOUT_NOHUP))){ |
info | 931 | drivers/char/cyclades.c | cy_sched_event(info, Cy_EVENT_HANGUP); |
info | 935 | drivers/char/cyclades.c | && (info->flags & ASYNC_CTS_FLOW)){ |
info | 936 | drivers/char/cyclades.c | if(info->tty->stopped){ |
info | 939 | drivers/char/cyclades.c | info->tty->stopped = 0; |
info | 941 | drivers/char/cyclades.c | cy_sched_event(info, Cy_EVENT_WRITE_WAKEUP); |
info | 946 | drivers/char/cyclades.c | info->tty->stopped = 1; |
info | 1000 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *) private_; |
info | 1003 | drivers/char/cyclades.c | tty = info->tty; |
info | 1007 | drivers/char/cyclades.c | if (clear_bit(Cy_EVENT_HANGUP, &info->event)) { |
info | 1008 | drivers/char/cyclades.c | tty_hangup(info->tty); |
info | 1009 | drivers/char/cyclades.c | wake_up_interruptible(&info->open_wait); |
info | 1010 | drivers/char/cyclades.c | info->flags &= ~(ASYNC_NORMAL_ACTIVE| |
info | 1013 | drivers/char/cyclades.c | if (clear_bit(Cy_EVENT_OPEN_WAKEUP, &info->event)) { |
info | 1014 | drivers/char/cyclades.c | wake_up_interruptible(&info->open_wait); |
info | 1016 | drivers/char/cyclades.c | if (clear_bit(Cy_EVENT_WRITE_WAKEUP, &info->event)) { |
info | 1182 | drivers/char/cyclades.c | startup(struct cyclades_port * info) |
info | 1188 | drivers/char/cyclades.c | if (info->flags & ASYNC_INITIALIZED){ |
info | 1192 | drivers/char/cyclades.c | if (!info->type){ |
info | 1193 | drivers/char/cyclades.c | if (info->tty){ |
info | 1194 | drivers/char/cyclades.c | set_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 1198 | drivers/char/cyclades.c | if (!info->xmit_buf){ |
info | 1199 | drivers/char/cyclades.c | info->xmit_buf = (unsigned char *) get_free_page (GFP_KERNEL); |
info | 1200 | drivers/char/cyclades.c | if (!info->xmit_buf){ |
info | 1205 | drivers/char/cyclades.c | config_setup(info); |
info | 1207 | drivers/char/cyclades.c | card = info->card; |
info | 1208 | drivers/char/cyclades.c | channel = (info->line) - (cy_card[card].first_line); |
info | 1223 | drivers/char/cyclades.c | base_addr[CyRTPR<<index] = (info->default_timeout |
info | 1224 | drivers/char/cyclades.c | ? info->default_timeout |
info | 1240 | drivers/char/cyclades.c | info->flags |= ASYNC_INITIALIZED; |
info | 1242 | drivers/char/cyclades.c | if (info->tty){ |
info | 1243 | drivers/char/cyclades.c | clear_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 1245 | drivers/char/cyclades.c | info->xmit_cnt = info->xmit_head = info->xmit_tail = 0; |
info | 1256 | drivers/char/cyclades.c | start_xmit( struct cyclades_port *info ) |
info | 1262 | drivers/char/cyclades.c | card = info->card; |
info | 1263 | drivers/char/cyclades.c | channel = (info->line) - (cy_card[card].first_line); |
info | 1281 | drivers/char/cyclades.c | shutdown(struct cyclades_port * info) |
info | 1287 | drivers/char/cyclades.c | if (!(info->flags & ASYNC_INITIALIZED)){ |
info | 1292 | drivers/char/cyclades.c | card = info->card; |
info | 1293 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 1312 | drivers/char/cyclades.c | if (info->xmit_buf){ |
info | 1314 | drivers/char/cyclades.c | temp = info->xmit_buf; |
info | 1315 | drivers/char/cyclades.c | info->xmit_buf = 0; |
info | 1320 | drivers/char/cyclades.c | if (!info->tty || (info->tty->termios->c_cflag & HUPCL)) { |
info | 1332 | drivers/char/cyclades.c | if (info->tty){ |
info | 1333 | drivers/char/cyclades.c | set_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 1335 | drivers/char/cyclades.c | info->flags &= ~ASYNC_INITIALIZED; |
info | 1348 | drivers/char/cyclades.c | config_setup(struct cyclades_port * info) |
info | 1356 | drivers/char/cyclades.c | if (!info->tty || !info->tty->termios){ |
info | 1359 | drivers/char/cyclades.c | if (info->line == -1){ |
info | 1362 | drivers/char/cyclades.c | cflag = info->tty->termios->c_cflag; |
info | 1385 | drivers/char/cyclades.c | info->tty->termios->c_cflag &= ~CBAUDEX; |
info | 1389 | drivers/char/cyclades.c | if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_HI) |
info | 1391 | drivers/char/cyclades.c | if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_VHI) |
info | 1394 | drivers/char/cyclades.c | info->tbpr = baud_bpr[i]; /* Tx BPR */ |
info | 1395 | drivers/char/cyclades.c | info->tco = baud_co[i]; /* Tx CO */ |
info | 1396 | drivers/char/cyclades.c | info->rbpr = baud_bpr[i]; /* Rx BPR */ |
info | 1397 | drivers/char/cyclades.c | info->rco = baud_co[i]; /* Rx CO */ |
info | 1399 | drivers/char/cyclades.c | info->timeout = (info->xmit_fifo_size*HZ*30/269) + 2; |
info | 1402 | drivers/char/cyclades.c | info->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2; |
info | 1405 | drivers/char/cyclades.c | info->timeout = 0; |
info | 1412 | drivers/char/cyclades.c | info->cor5 = 0; |
info | 1413 | drivers/char/cyclades.c | info->cor4 = 0; |
info | 1414 | drivers/char/cyclades.c | info->cor3 = (info->default_threshold |
info | 1415 | drivers/char/cyclades.c | ? info->default_threshold |
info | 1417 | drivers/char/cyclades.c | info->cor2 = CyETC; |
info | 1420 | drivers/char/cyclades.c | info->cor1 = Cy_5_BITS; |
info | 1423 | drivers/char/cyclades.c | info->cor1 = Cy_6_BITS; |
info | 1426 | drivers/char/cyclades.c | info->cor1 = Cy_7_BITS; |
info | 1429 | drivers/char/cyclades.c | info->cor1 = Cy_8_BITS; |
info | 1433 | drivers/char/cyclades.c | info->cor1 |= Cy_2_STOP; |
info | 1437 | drivers/char/cyclades.c | info->cor1 |= CyPARITY_O; |
info | 1439 | drivers/char/cyclades.c | info->cor1 |= CyPARITY_E; |
info | 1442 | drivers/char/cyclades.c | info->cor1 |= CyPARITY_NONE; |
info | 1447 | drivers/char/cyclades.c | info->flags |= ASYNC_CTS_FLOW; |
info | 1448 | drivers/char/cyclades.c | info->cor2 |= CyCtsAE; |
info | 1450 | drivers/char/cyclades.c | info->flags &= ~ASYNC_CTS_FLOW; |
info | 1451 | drivers/char/cyclades.c | info->cor2 &= ~CyCtsAE; |
info | 1454 | drivers/char/cyclades.c | info->flags &= ~ASYNC_CHECK_CD; |
info | 1456 | drivers/char/cyclades.c | info->flags |= ASYNC_CHECK_CD; |
info | 1468 | drivers/char/cyclades.c | card = info->card; |
info | 1469 | drivers/char/cyclades.c | channel = (info->line) - (cy_card[card].first_line); |
info | 1481 | drivers/char/cyclades.c | base_addr[CyTCOR<<index] = info->tco; |
info | 1482 | drivers/char/cyclades.c | base_addr[CyTBPR<<index] = info->tbpr; |
info | 1483 | drivers/char/cyclades.c | base_addr[CyRCOR<<index] = info->rco; |
info | 1484 | drivers/char/cyclades.c | base_addr[CyRBPR<<index] = info->rbpr; |
info | 1488 | drivers/char/cyclades.c | base_addr[CySCHR1<<index] = START_CHAR(info->tty); |
info | 1489 | drivers/char/cyclades.c | base_addr[CySCHR2<<index] = STOP_CHAR(info->tty); |
info | 1490 | drivers/char/cyclades.c | base_addr[CyCOR1<<index] = info->cor1; |
info | 1491 | drivers/char/cyclades.c | base_addr[CyCOR2<<index] = info->cor2; |
info | 1492 | drivers/char/cyclades.c | base_addr[CyCOR3<<index] = info->cor3; |
info | 1493 | drivers/char/cyclades.c | base_addr[CyCOR4<<index] = info->cor4; |
info | 1494 | drivers/char/cyclades.c | base_addr[CyCOR5<<index] = info->cor5; |
info | 1500 | drivers/char/cyclades.c | base_addr[CyRTPR<<index] = (info->default_timeout |
info | 1501 | drivers/char/cyclades.c | ? info->default_timeout |
info | 1504 | drivers/char/cyclades.c | if (C_CLOCAL(info->tty)) { |
info | 1532 | drivers/char/cyclades.c | if (info->tty){ |
info | 1533 | drivers/char/cyclades.c | clear_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 1544 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1548 | drivers/char/cyclades.c | printk("cy_put_char ttyC%d\n", info->line); |
info | 1551 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_put_char")) |
info | 1554 | drivers/char/cyclades.c | if (!tty || !info->xmit_buf) |
info | 1558 | drivers/char/cyclades.c | if (info->xmit_cnt >= PAGE_SIZE - 1) { |
info | 1563 | drivers/char/cyclades.c | info->xmit_buf[info->xmit_head++] = ch; |
info | 1564 | drivers/char/cyclades.c | info->xmit_head &= PAGE_SIZE - 1; |
info | 1565 | drivers/char/cyclades.c | info->xmit_cnt++; |
info | 1573 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1579 | drivers/char/cyclades.c | printk("cy_flush_chars ttyC%d\n", info->line); /* */ |
info | 1582 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_flush_chars")) |
info | 1585 | drivers/char/cyclades.c | if (info->xmit_cnt <= 0 || tty->stopped |
info | 1586 | drivers/char/cyclades.c | || tty->hw_stopped || !info->xmit_buf) |
info | 1589 | drivers/char/cyclades.c | card = info->card; |
info | 1590 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 1614 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1619 | drivers/char/cyclades.c | printk("cy_write ttyC%d\n", info->line); /* */ |
info | 1622 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_write")){ |
info | 1626 | drivers/char/cyclades.c | if (!tty || !info->xmit_buf || !tmp_buf){ |
info | 1632 | drivers/char/cyclades.c | c = MIN(count, MIN(SERIAL_XMIT_SIZE - info->xmit_cnt - 1, |
info | 1633 | drivers/char/cyclades.c | SERIAL_XMIT_SIZE - info->xmit_head)); |
info | 1642 | drivers/char/cyclades.c | c = MIN(c, MIN(SERIAL_XMIT_SIZE - info->xmit_cnt - 1, |
info | 1643 | drivers/char/cyclades.c | SERIAL_XMIT_SIZE - info->xmit_head)); |
info | 1644 | drivers/char/cyclades.c | memcpy(info->xmit_buf + info->xmit_head, tmp_buf, c); |
info | 1647 | drivers/char/cyclades.c | memcpy(info->xmit_buf + info->xmit_head, buf, c); |
info | 1648 | drivers/char/cyclades.c | info->xmit_head = (info->xmit_head + c) & (SERIAL_XMIT_SIZE-1); |
info | 1649 | drivers/char/cyclades.c | info->xmit_cnt += c; |
info | 1657 | drivers/char/cyclades.c | if (info->xmit_cnt |
info | 1660 | drivers/char/cyclades.c | start_xmit(info); |
info | 1669 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1673 | drivers/char/cyclades.c | printk("cy_write_room ttyC%d\n", info->line); /* */ |
info | 1676 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_write_room")) |
info | 1678 | drivers/char/cyclades.c | ret = PAGE_SIZE - info->xmit_cnt - 1; |
info | 1688 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1691 | drivers/char/cyclades.c | printk("cy_chars_in_buffer ttyC%d %d\n", info->line, info->xmit_cnt); /* */ |
info | 1694 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_chars_in_buffer")) |
info | 1697 | drivers/char/cyclades.c | return info->xmit_cnt; |
info | 1704 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1708 | drivers/char/cyclades.c | printk("cy_flush_buffer ttyC%d\n", info->line); /* */ |
info | 1711 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_flush_buffer")) |
info | 1714 | drivers/char/cyclades.c | info->xmit_cnt = info->xmit_head = info->xmit_tail = 0; |
info | 1730 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1740 | drivers/char/cyclades.c | printk("cy_throttle ttyC%d\n", info->line); |
info | 1743 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_nthrottle")){ |
info | 1748 | drivers/char/cyclades.c | info->x_char = STOP_CHAR(tty); |
info | 1752 | drivers/char/cyclades.c | card = info->card; |
info | 1753 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 1772 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 1782 | drivers/char/cyclades.c | printk("cy_unthrottle ttyC%d\n", info->line); |
info | 1785 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_nthrottle")){ |
info | 1790 | drivers/char/cyclades.c | info->x_char = START_CHAR(tty); |
info | 1794 | drivers/char/cyclades.c | card = info->card; |
info | 1795 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 1811 | drivers/char/cyclades.c | get_serial_info(struct cyclades_port * info, |
info | 1815 | drivers/char/cyclades.c | struct cyclades_card *cinfo = &cy_card[info->card]; |
info | 1821 | drivers/char/cyclades.c | tmp.type = info->type; |
info | 1822 | drivers/char/cyclades.c | tmp.line = info->line; |
info | 1823 | drivers/char/cyclades.c | tmp.port = info->card * 0x100 + info->line - cinfo->first_line; |
info | 1825 | drivers/char/cyclades.c | tmp.flags = info->flags; |
info | 1827 | drivers/char/cyclades.c | tmp.close_delay = info->close_delay; |
info | 1835 | drivers/char/cyclades.c | set_serial_info(struct cyclades_port * info, |
info | 1845 | drivers/char/cyclades.c | old_info = *info; |
info | 1848 | drivers/char/cyclades.c | if ((new_serial.close_delay != info->close_delay) || |
info | 1850 | drivers/char/cyclades.c | (info->flags & ASYNC_FLAGS & ~ASYNC_USR_MASK))) |
info | 1852 | drivers/char/cyclades.c | info->flags = ((info->flags & ~ASYNC_USR_MASK) | |
info | 1863 | drivers/char/cyclades.c | info->flags = ((info->flags & ~ASYNC_FLAGS) | |
info | 1865 | drivers/char/cyclades.c | info->close_delay = new_serial.close_delay; |
info | 1869 | drivers/char/cyclades.c | if (info->flags & ASYNC_INITIALIZED){ |
info | 1870 | drivers/char/cyclades.c | config_setup(info); |
info | 1873 | drivers/char/cyclades.c | return startup(info); |
info | 1878 | drivers/char/cyclades.c | get_modem_info(struct cyclades_port * info, unsigned int *value) |
info | 1886 | drivers/char/cyclades.c | card = info->card; |
info | 1887 | drivers/char/cyclades.c | channel = (info->line) - (cy_card[card].first_line); |
info | 1911 | drivers/char/cyclades.c | set_modem_info(struct cyclades_port * info, unsigned int cmd, |
info | 1919 | drivers/char/cyclades.c | card = info->card; |
info | 1920 | drivers/char/cyclades.c | channel = (info->line) - (cy_card[card].first_line); |
info | 2007 | drivers/char/cyclades.c | send_break( struct cyclades_port * info, int duration) |
info | 2011 | drivers/char/cyclades.c | info->x_break = duration; |
info | 2012 | drivers/char/cyclades.c | if (!info->xmit_cnt ) { |
info | 2013 | drivers/char/cyclades.c | start_xmit(info); |
info | 2018 | drivers/char/cyclades.c | get_mon_info(struct cyclades_port * info, struct cyclades_monitor * mon) |
info | 2021 | drivers/char/cyclades.c | memcpy_tofs(mon, &info->mon, sizeof(struct cyclades_monitor)); |
info | 2022 | drivers/char/cyclades.c | info->mon.int_count = 0; |
info | 2023 | drivers/char/cyclades.c | info->mon.char_count = 0; |
info | 2024 | drivers/char/cyclades.c | info->mon.char_max = 0; |
info | 2025 | drivers/char/cyclades.c | info->mon.char_last = 0; |
info | 2030 | drivers/char/cyclades.c | set_threshold(struct cyclades_port * info, unsigned long value) |
info | 2035 | drivers/char/cyclades.c | card = info->card; |
info | 2036 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 2043 | drivers/char/cyclades.c | info->cor3 &= ~CyREC_FIFO; |
info | 2044 | drivers/char/cyclades.c | info->cor3 |= value & CyREC_FIFO; |
info | 2045 | drivers/char/cyclades.c | base_addr[CyCOR3<<index] = info->cor3; |
info | 2051 | drivers/char/cyclades.c | get_threshold(struct cyclades_port * info, unsigned long *value) |
info | 2057 | drivers/char/cyclades.c | card = info->card; |
info | 2058 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 2071 | drivers/char/cyclades.c | set_default_threshold(struct cyclades_port * info, unsigned long value) |
info | 2073 | drivers/char/cyclades.c | info->default_threshold = value & 0x0f; |
info | 2078 | drivers/char/cyclades.c | get_default_threshold(struct cyclades_port * info, unsigned long *value) |
info | 2080 | drivers/char/cyclades.c | put_fs_long(info->default_threshold,value); |
info | 2085 | drivers/char/cyclades.c | set_timeout(struct cyclades_port * info, unsigned long value) |
info | 2090 | drivers/char/cyclades.c | card = info->card; |
info | 2091 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 2103 | drivers/char/cyclades.c | get_timeout(struct cyclades_port * info, unsigned long *value) |
info | 2109 | drivers/char/cyclades.c | card = info->card; |
info | 2110 | drivers/char/cyclades.c | channel = info->line - cy_card[card].first_line; |
info | 2123 | drivers/char/cyclades.c | set_default_timeout(struct cyclades_port * info, unsigned long value) |
info | 2125 | drivers/char/cyclades.c | info->default_timeout = value & 0xff; |
info | 2130 | drivers/char/cyclades.c | get_default_timeout(struct cyclades_port * info, unsigned long *value) |
info | 2132 | drivers/char/cyclades.c | put_fs_long(info->default_timeout,value); |
info | 2141 | drivers/char/cyclades.c | struct cyclades_port * info = (struct cyclades_port *)tty->driver_data; |
info | 2145 | drivers/char/cyclades.c | printk("cy_ioctl ttyC%d, cmd = %x arg = %lx\n", info->line, cmd, arg); /* */ |
info | 2156 | drivers/char/cyclades.c | ret_val = get_mon_info(info, (struct cyclades_monitor *)arg); |
info | 2165 | drivers/char/cyclades.c | ret_val = get_threshold(info, (unsigned long *)arg); |
info | 2168 | drivers/char/cyclades.c | ret_val = set_threshold(info, (unsigned long)arg); |
info | 2177 | drivers/char/cyclades.c | ret_val = get_default_threshold(info, (unsigned long *)arg); |
info | 2180 | drivers/char/cyclades.c | ret_val = set_default_threshold(info, (unsigned long)arg); |
info | 2189 | drivers/char/cyclades.c | ret_val = get_timeout(info, (unsigned long *)arg); |
info | 2192 | drivers/char/cyclades.c | ret_val = set_timeout(info, (unsigned long)arg); |
info | 2201 | drivers/char/cyclades.c | ret_val = get_default_timeout(info, (unsigned long *)arg); |
info | 2204 | drivers/char/cyclades.c | ret_val = set_default_timeout(info, (unsigned long)arg); |
info | 2212 | drivers/char/cyclades.c | send_break(info, HZ/4); /* 1/4 second */ |
info | 2219 | drivers/char/cyclades.c | send_break(info, arg ? arg*(HZ/10) : HZ/4); |
info | 2224 | drivers/char/cyclades.c | ret_val = set_modem_info(info, cmd, (unsigned int *) arg); |
info | 2251 | drivers/char/cyclades.c | ret_val = get_modem_info(info, (unsigned int *) arg); |
info | 2260 | drivers/char/cyclades.c | ret_val = get_serial_info(info, |
info | 2264 | drivers/char/cyclades.c | ret_val = set_serial_info(info, |
info | 2284 | drivers/char/cyclades.c | struct cyclades_port *info = (struct cyclades_port *)tty->driver_data; |
info | 2287 | drivers/char/cyclades.c | printk("cy_set_termios ttyC%d\n", info->line); |
info | 2292 | drivers/char/cyclades.c | config_setup(info); |
info | 2302 | drivers/char/cyclades.c | wake_up_interruptible(&info->open_wait); |
info | 2312 | drivers/char/cyclades.c | struct cyclades_port * info = (struct cyclades_port *)tty->driver_data; |
info | 2317 | drivers/char/cyclades.c | printk("cy_close ttyC%d\n", info->line); |
info | 2320 | drivers/char/cyclades.c | if (!info |
info | 2321 | drivers/char/cyclades.c | || serial_paranoia_check(info, tty->device, "cy_close")){ |
info | 2325 | drivers/char/cyclades.c | printk("cy_close ttyC%d, count = %d\n", info->line, info->count); |
info | 2336 | drivers/char/cyclades.c | if ((tty->count == 1) && (info->count != 1)) { |
info | 2345 | drivers/char/cyclades.c | "info->count is %d\n", info->count); |
info | 2346 | drivers/char/cyclades.c | info->count = 1; |
info | 2349 | drivers/char/cyclades.c | printk("cyc: %d(%d): decrementing count to %d\n", __LINE__, current->pid, info->count - 1); |
info | 2351 | drivers/char/cyclades.c | if (--info->count < 0) { |
info | 2355 | drivers/char/cyclades.c | info->count = 0; |
info | 2357 | drivers/char/cyclades.c | if (info->count) |
info | 2363 | drivers/char/cyclades.c | info->flags |= ASYNC_CLOSING; |
info | 2368 | drivers/char/cyclades.c | if (info->flags & ASYNC_NORMAL_ACTIVE) |
info | 2369 | drivers/char/cyclades.c | info->normal_termios = *tty->termios; |
info | 2370 | drivers/char/cyclades.c | if (info->flags & ASYNC_CALLOUT_ACTIVE) |
info | 2371 | drivers/char/cyclades.c | info->callout_termios = *tty->termios; |
info | 2372 | drivers/char/cyclades.c | if (info->flags & ASYNC_INITIALIZED) |
info | 2374 | drivers/char/cyclades.c | shutdown(info); |
info | 2379 | drivers/char/cyclades.c | info->event = 0; |
info | 2380 | drivers/char/cyclades.c | info->tty = 0; |
info | 2381 | drivers/char/cyclades.c | if (info->blocked_open) { |
info | 2382 | drivers/char/cyclades.c | if (info->close_delay) { |
info | 2384 | drivers/char/cyclades.c | current->timeout = jiffies + info->close_delay; |
info | 2387 | drivers/char/cyclades.c | wake_up_interruptible(&info->open_wait); |
info | 2389 | drivers/char/cyclades.c | info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CALLOUT_ACTIVE| |
info | 2391 | drivers/char/cyclades.c | wake_up_interruptible(&info->close_wait); |
info | 2408 | drivers/char/cyclades.c | struct cyclades_port * info = (struct cyclades_port *)tty->driver_data; |
info | 2411 | drivers/char/cyclades.c | printk("cy_hangup ttyC%d\n", info->line); /* */ |
info | 2414 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_hangup")) |
info | 2417 | drivers/char/cyclades.c | shutdown(info); |
info | 2418 | drivers/char/cyclades.c | info->event = 0; |
info | 2419 | drivers/char/cyclades.c | info->count = 0; |
info | 2423 | drivers/char/cyclades.c | info->tty = 0; |
info | 2424 | drivers/char/cyclades.c | info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CALLOUT_ACTIVE); |
info | 2425 | drivers/char/cyclades.c | wake_up_interruptible(&info->open_wait); |
info | 2438 | drivers/char/cyclades.c | struct cyclades_port *info) |
info | 2451 | drivers/char/cyclades.c | if (info->flags & ASYNC_CLOSING) { |
info | 2452 | drivers/char/cyclades.c | interruptible_sleep_on(&info->close_wait); |
info | 2453 | drivers/char/cyclades.c | if (info->flags & ASYNC_HUP_NOTIFY){ |
info | 2465 | drivers/char/cyclades.c | if (info->flags & ASYNC_NORMAL_ACTIVE){ |
info | 2468 | drivers/char/cyclades.c | if ((info->flags & ASYNC_CALLOUT_ACTIVE) && |
info | 2469 | drivers/char/cyclades.c | (info->flags & ASYNC_SESSION_LOCKOUT) && |
info | 2470 | drivers/char/cyclades.c | (info->session != current->session)){ |
info | 2473 | drivers/char/cyclades.c | if ((info->flags & ASYNC_CALLOUT_ACTIVE) && |
info | 2474 | drivers/char/cyclades.c | (info->flags & ASYNC_PGRP_LOCKOUT) && |
info | 2475 | drivers/char/cyclades.c | (info->pgrp != current->pgrp)){ |
info | 2478 | drivers/char/cyclades.c | info->flags |= ASYNC_CALLOUT_ACTIVE; |
info | 2487 | drivers/char/cyclades.c | if (info->flags & ASYNC_CALLOUT_ACTIVE){ |
info | 2490 | drivers/char/cyclades.c | info->flags |= ASYNC_NORMAL_ACTIVE; |
info | 2502 | drivers/char/cyclades.c | add_wait_queue(&info->open_wait, &wait); |
info | 2505 | drivers/char/cyclades.c | info->line, info->count);/**/ |
info | 2507 | drivers/char/cyclades.c | info->count--; |
info | 2509 | drivers/char/cyclades.c | printk("cyc: %d(%d): decrementing count to %d\n", __LINE__, current->pid, info->count); |
info | 2511 | drivers/char/cyclades.c | info->blocked_open++; |
info | 2513 | drivers/char/cyclades.c | cinfo = &cy_card[info->card]; |
info | 2514 | drivers/char/cyclades.c | channel = info->line - cinfo->first_line; |
info | 2522 | drivers/char/cyclades.c | if (!(info->flags & ASYNC_CALLOUT_ACTIVE)){ |
info | 2535 | drivers/char/cyclades.c | || !(info->flags & ASYNC_INITIALIZED) ){ |
info | 2536 | drivers/char/cyclades.c | if (info->flags & ASYNC_HUP_NOTIFY) { |
info | 2546 | drivers/char/cyclades.c | if (!(info->flags & ASYNC_CALLOUT_ACTIVE) |
info | 2547 | drivers/char/cyclades.c | && !(info->flags & ASYNC_CLOSING) |
info | 2560 | drivers/char/cyclades.c | info->line, info->count);/**/ |
info | 2565 | drivers/char/cyclades.c | remove_wait_queue(&info->open_wait, &wait); |
info | 2567 | drivers/char/cyclades.c | info->count++; |
info | 2569 | drivers/char/cyclades.c | printk("cyc: %d(%d): incrementing count to %d\n", __LINE__, current->pid, info->count); |
info | 2572 | drivers/char/cyclades.c | info->blocked_open--; |
info | 2575 | drivers/char/cyclades.c | info->line, info->count);/**/ |
info | 2579 | drivers/char/cyclades.c | info->flags |= ASYNC_NORMAL_ACTIVE; |
info | 2590 | drivers/char/cyclades.c | struct cyclades_port *info; |
info | 2598 | drivers/char/cyclades.c | info = &cy_port[line]; |
info | 2599 | drivers/char/cyclades.c | if (info->line < 0){ |
info | 2603 | drivers/char/cyclades.c | printk("cy_open ttyC%d\n", info->line); /* */ |
info | 2605 | drivers/char/cyclades.c | if (serial_paranoia_check(info, tty->device, "cy_open")){ |
info | 2609 | drivers/char/cyclades.c | printk("cy_open ttyC%d, count = %d\n", info->line, info->count);/**/ |
info | 2611 | drivers/char/cyclades.c | info->count++; |
info | 2613 | drivers/char/cyclades.c | printk("cyc: %d(%d): incrementing count to %d\n", __LINE__, current->pid, info->count); |
info | 2615 | drivers/char/cyclades.c | tty->driver_data = info; |
info | 2616 | drivers/char/cyclades.c | info->tty = tty; |
info | 2625 | drivers/char/cyclades.c | if ((info->count == 1) && (info->flags & ASYNC_SPLIT_TERMIOS)) { |
info | 2627 | drivers/char/cyclades.c | *tty->termios = info->normal_termios; |
info | 2629 | drivers/char/cyclades.c | *tty->termios = info->callout_termios; |
info | 2634 | drivers/char/cyclades.c | retval = startup(info); |
info | 2639 | drivers/char/cyclades.c | retval = block_til_ready(tty, filp, info); |
info | 2648 | drivers/char/cyclades.c | info->session = current->session; |
info | 2649 | drivers/char/cyclades.c | info->pgrp = current->pgrp; |
info | 2765 | drivers/char/cyclades.c | struct cyclades_port *info; |
info | 2865 | drivers/char/cyclades.c | info = &cy_port[port]; |
info | 2866 | drivers/char/cyclades.c | info->magic = CYCLADES_MAGIC; |
info | 2867 | drivers/char/cyclades.c | info->type = PORT_CIRRUS; |
info | 2868 | drivers/char/cyclades.c | info->card = board; |
info | 2869 | drivers/char/cyclades.c | info->line = port; |
info | 2870 | drivers/char/cyclades.c | info->flags = STD_COM_FLAGS; |
info | 2871 | drivers/char/cyclades.c | info->tty = 0; |
info | 2872 | drivers/char/cyclades.c | info->xmit_fifo_size = 12; |
info | 2873 | drivers/char/cyclades.c | info->cor1 = CyPARITY_NONE|Cy_1_STOP|Cy_8_BITS; |
info | 2874 | drivers/char/cyclades.c | info->cor2 = CyETC; |
info | 2875 | drivers/char/cyclades.c | info->cor3 = 0x08; /* _very_ small receive threshold */ |
info | 2876 | drivers/char/cyclades.c | info->cor4 = 0; |
info | 2877 | drivers/char/cyclades.c | info->cor5 = 0; |
info | 2878 | drivers/char/cyclades.c | info->tbpr = baud_bpr[13]; /* Tx BPR */ |
info | 2879 | drivers/char/cyclades.c | info->tco = baud_co[13]; /* Tx CO */ |
info | 2880 | drivers/char/cyclades.c | info->rbpr = baud_bpr[13]; /* Rx BPR */ |
info | 2881 | drivers/char/cyclades.c | info->rco = baud_co[13]; /* Rx CO */ |
info | 2882 | drivers/char/cyclades.c | info->close_delay = 0; |
info | 2883 | drivers/char/cyclades.c | info->x_char = 0; |
info | 2884 | drivers/char/cyclades.c | info->event = 0; |
info | 2885 | drivers/char/cyclades.c | info->count = 0; |
info | 2889 | drivers/char/cyclades.c | info->blocked_open = 0; |
info | 2890 | drivers/char/cyclades.c | info->default_threshold = 0; |
info | 2891 | drivers/char/cyclades.c | info->default_timeout = 0; |
info | 2892 | drivers/char/cyclades.c | info->tqueue.routine = do_softint; |
info | 2893 | drivers/char/cyclades.c | info->tqueue.data = info; |
info | 2894 | drivers/char/cyclades.c | info->callout_termios =cy_callout_driver.init_termios; |
info | 2895 | drivers/char/cyclades.c | info->normal_termios = cy_serial_driver.init_termios; |
info | 2896 | drivers/char/cyclades.c | info->open_wait = 0; |
info | 2897 | drivers/char/cyclades.c | info->close_wait = 0; |
info | 2900 | drivers/char/cyclades.c | info->read_status_mask = CyTIMEOUT| CySPECHAR| CyBREAK |
info | 3123 | drivers/char/cyclades.c | struct cyclades_port * info; |
info | 3126 | drivers/char/cyclades.c | info = &cy_port[line_num]; |
info | 3127 | drivers/char/cyclades.c | card = info->card; |
info | 3129 | drivers/char/cyclades.c | channel = (info->line) - (cy_card[card].first_line); |
info | 3141 | drivers/char/cyclades.c | info->card, info->line, info->flags); |
info | 3143 | drivers/char/cyclades.c | (long)info->tty, info->read_status_mask, |
info | 3144 | drivers/char/cyclades.c | info->timeout, info->xmit_fifo_size); |
info | 3146 | drivers/char/cyclades.c | info->cor1, info->cor2, info->cor3, info->cor4, info->cor5); |
info | 3148 | drivers/char/cyclades.c | info->tbpr, info->tco, info->rbpr, info->rco); |
info | 3150 | drivers/char/cyclades.c | info->close_delay, info->event, info->count); |
info | 3152 | drivers/char/cyclades.c | info->x_char, info->blocked_open); |
info | 3154 | drivers/char/cyclades.c | info->session, info->pgrp, (long)info->open_wait); |
info | 93 | drivers/char/serial.c | static void autoconfig(struct async_struct * info); |
info | 94 | drivers/char/serial.c | static void change_speed(struct async_struct *info); |
info | 208 | drivers/char/serial.c | static inline int serial_paranoia_check(struct async_struct *info, |
info | 217 | drivers/char/serial.c | if (!info) { |
info | 221 | drivers/char/serial.c | if (info->magic != SERIAL_MAGIC) { |
info | 236 | drivers/char/serial.c | static inline unsigned int serial_in(struct async_struct *info, int offset) |
info | 239 | drivers/char/serial.c | if (info->hub6) { |
info | 240 | drivers/char/serial.c | outb(info->hub6 - 1 + offset, info->port); |
info | 241 | drivers/char/serial.c | return inb(info->port+1); |
info | 244 | drivers/char/serial.c | return inb(info->port + offset); |
info | 247 | drivers/char/serial.c | static inline unsigned int serial_inp(struct async_struct *info, int offset) |
info | 250 | drivers/char/serial.c | if (info->hub6) { |
info | 251 | drivers/char/serial.c | outb(info->hub6 - 1 + offset, info->port); |
info | 252 | drivers/char/serial.c | return inb_p(info->port+1); |
info | 256 | drivers/char/serial.c | return inb(info->port + offset); |
info | 258 | drivers/char/serial.c | return inb_p(info->port + offset); |
info | 262 | drivers/char/serial.c | static inline void serial_out(struct async_struct *info, int offset, int value) |
info | 265 | drivers/char/serial.c | if (info->hub6) { |
info | 266 | drivers/char/serial.c | outb(info->hub6 - 1 + offset, info->port); |
info | 267 | drivers/char/serial.c | outb(value, info->port+1); |
info | 270 | drivers/char/serial.c | outb(value, info->port+offset); |
info | 273 | drivers/char/serial.c | static inline void serial_outp(struct async_struct *info, int offset, |
info | 277 | drivers/char/serial.c | if (info->hub6) { |
info | 278 | drivers/char/serial.c | outb(info->hub6 - 1 + offset, info->port); |
info | 279 | drivers/char/serial.c | outb_p(value, info->port+1); |
info | 283 | drivers/char/serial.c | outb(value, info->port+offset); |
info | 285 | drivers/char/serial.c | outb_p(value, info->port+offset); |
info | 299 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 302 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_stop")) |
info | 306 | drivers/char/serial.c | if (info->IER & UART_IER_THRI) { |
info | 307 | drivers/char/serial.c | info->IER &= ~UART_IER_THRI; |
info | 308 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 315 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 318 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_start")) |
info | 322 | drivers/char/serial.c | if (info->xmit_cnt && info->xmit_buf && !(info->IER & UART_IER_THRI)) { |
info | 323 | drivers/char/serial.c | info->IER |= UART_IER_THRI; |
info | 324 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 365 | drivers/char/serial.c | static _INLINE_ void rs_sched_event(struct async_struct *info, |
info | 368 | drivers/char/serial.c | info->event |= 1 << event; |
info | 369 | drivers/char/serial.c | queue_task_irq_off(&info->tqueue, &tq_serial); |
info | 373 | drivers/char/serial.c | static _INLINE_ void receive_chars(struct async_struct *info, |
info | 376 | drivers/char/serial.c | struct tty_struct *tty = info->tty; |
info | 381 | drivers/char/serial.c | ch = serial_inp(info, UART_RX); |
info | 382 | drivers/char/serial.c | if (*status & info->ignore_status_mask) { |
info | 393 | drivers/char/serial.c | if (info->flags & ASYNC_SAK) |
info | 405 | drivers/char/serial.c | *status = serial_inp(info, UART_LSR) & info->read_status_mask; |
info | 413 | drivers/char/serial.c | static _INLINE_ void transmit_chars(struct async_struct *info, int *intr_done) |
info | 417 | drivers/char/serial.c | if (info->x_char) { |
info | 418 | drivers/char/serial.c | serial_outp(info, UART_TX, info->x_char); |
info | 419 | drivers/char/serial.c | info->x_char = 0; |
info | 424 | drivers/char/serial.c | if ((info->xmit_cnt <= 0) || info->tty->stopped || |
info | 425 | drivers/char/serial.c | info->tty->hw_stopped) { |
info | 426 | drivers/char/serial.c | info->IER &= ~UART_IER_THRI; |
info | 427 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 431 | drivers/char/serial.c | count = info->xmit_fifo_size; |
info | 433 | drivers/char/serial.c | serial_out(info, UART_TX, info->xmit_buf[info->xmit_tail++]); |
info | 434 | drivers/char/serial.c | info->xmit_tail = info->xmit_tail & (SERIAL_XMIT_SIZE-1); |
info | 435 | drivers/char/serial.c | if (--info->xmit_cnt <= 0) |
info | 439 | drivers/char/serial.c | if (info->xmit_cnt < WAKEUP_CHARS) |
info | 440 | drivers/char/serial.c | rs_sched_event(info, RS_EVENT_WRITE_WAKEUP); |
info | 448 | drivers/char/serial.c | if (info->xmit_cnt <= 0) { |
info | 449 | drivers/char/serial.c | info->IER &= ~UART_IER_THRI; |
info | 450 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 454 | drivers/char/serial.c | static _INLINE_ void check_modem_status(struct async_struct *info) |
info | 458 | drivers/char/serial.c | status = serial_in(info, UART_MSR); |
info | 463 | drivers/char/serial.c | info->icount.rng++; |
info | 465 | drivers/char/serial.c | info->icount.dsr++; |
info | 467 | drivers/char/serial.c | info->icount.dcd++; |
info | 469 | drivers/char/serial.c | info->icount.cts++; |
info | 470 | drivers/char/serial.c | wake_up_interruptible(&info->delta_msr_wait); |
info | 473 | drivers/char/serial.c | if ((info->flags & ASYNC_CHECK_CD) && (status & UART_MSR_DDCD)) { |
info | 475 | drivers/char/serial.c | printk("ttys%d CD now %s...", info->line, |
info | 479 | drivers/char/serial.c | wake_up_interruptible(&info->open_wait); |
info | 480 | drivers/char/serial.c | else if (!((info->flags & ASYNC_CALLOUT_ACTIVE) && |
info | 481 | drivers/char/serial.c | (info->flags & ASYNC_CALLOUT_NOHUP))) { |
info | 485 | drivers/char/serial.c | queue_task_irq_off(&info->tqueue_hangup, |
info | 489 | drivers/char/serial.c | if (info->flags & ASYNC_CTS_FLOW) { |
info | 490 | drivers/char/serial.c | if (info->tty->hw_stopped) { |
info | 495 | drivers/char/serial.c | info->tty->hw_stopped = 0; |
info | 496 | drivers/char/serial.c | info->IER |= UART_IER_THRI; |
info | 497 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 498 | drivers/char/serial.c | rs_sched_event(info, RS_EVENT_WRITE_WAKEUP); |
info | 506 | drivers/char/serial.c | info->tty->hw_stopped = 1; |
info | 507 | drivers/char/serial.c | info->IER &= ~UART_IER_THRI; |
info | 508 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 520 | drivers/char/serial.c | struct async_struct * info; |
info | 530 | drivers/char/serial.c | info = IRQ_ports[irq]; |
info | 531 | drivers/char/serial.c | if (!info) |
info | 539 | drivers/char/serial.c | if (!info->tty || |
info | 540 | drivers/char/serial.c | (serial_in(info, UART_IIR) & UART_IIR_NO_INT)) { |
info | 542 | drivers/char/serial.c | end_mark = info; |
info | 547 | drivers/char/serial.c | info->last_active = jiffies; |
info | 549 | drivers/char/serial.c | status = serial_inp(info, UART_LSR) & info->read_status_mask; |
info | 554 | drivers/char/serial.c | receive_chars(info, &status); |
info | 555 | drivers/char/serial.c | check_modem_status(info); |
info | 557 | drivers/char/serial.c | transmit_chars(info, 0); |
info | 560 | drivers/char/serial.c | info = info->next_port; |
info | 561 | drivers/char/serial.c | if (!info) { |
info | 562 | drivers/char/serial.c | info = IRQ_ports[irq]; |
info | 571 | drivers/char/serial.c | } while (end_mark != info); |
info | 574 | drivers/char/serial.c | info->irq, first_multi, inb(multi->port_monitor)); |
info | 588 | drivers/char/serial.c | struct async_struct * info; |
info | 595 | drivers/char/serial.c | info = IRQ_ports[irq]; |
info | 596 | drivers/char/serial.c | if (!info || !info->tty) |
info | 604 | drivers/char/serial.c | status = serial_inp(info, UART_LSR) & info->read_status_mask; |
info | 609 | drivers/char/serial.c | receive_chars(info, &status); |
info | 610 | drivers/char/serial.c | check_modem_status(info); |
info | 612 | drivers/char/serial.c | transmit_chars(info, 0); |
info | 619 | drivers/char/serial.c | } while (!(serial_in(info, UART_IIR) & UART_IIR_NO_INT)); |
info | 620 | drivers/char/serial.c | info->last_active = jiffies; |
info | 623 | drivers/char/serial.c | info->irq, first_multi, inb(multi->port_monitor)); |
info | 635 | drivers/char/serial.c | struct async_struct * info; |
info | 644 | drivers/char/serial.c | info = IRQ_ports[irq]; |
info | 645 | drivers/char/serial.c | if (!info) |
info | 657 | drivers/char/serial.c | if (!info->tty || |
info | 658 | drivers/char/serial.c | (serial_in(info, UART_IIR) & UART_IIR_NO_INT)) |
info | 661 | drivers/char/serial.c | info->last_active = jiffies; |
info | 663 | drivers/char/serial.c | status = serial_inp(info, UART_LSR) & info->read_status_mask; |
info | 668 | drivers/char/serial.c | receive_chars(info, &status); |
info | 669 | drivers/char/serial.c | check_modem_status(info); |
info | 671 | drivers/char/serial.c | transmit_chars(info, 0); |
info | 674 | drivers/char/serial.c | info = info->next_port; |
info | 675 | drivers/char/serial.c | if (info) |
info | 678 | drivers/char/serial.c | info = IRQ_ports[irq]; |
info | 687 | drivers/char/serial.c | info->irq, first_multi, |
info | 733 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *) private_; |
info | 736 | drivers/char/serial.c | tty = info->tty; |
info | 740 | drivers/char/serial.c | if (clear_bit(RS_EVENT_WRITE_WAKEUP, &info->event)) { |
info | 759 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *) private_; |
info | 762 | drivers/char/serial.c | tty = info->tty; |
info | 780 | drivers/char/serial.c | struct async_struct *info; |
info | 785 | drivers/char/serial.c | info = IRQ_ports[i]; |
info | 786 | drivers/char/serial.c | if (!info) |
info | 789 | drivers/char/serial.c | if (info->next_port) { |
info | 791 | drivers/char/serial.c | serial_out(info, UART_IER, 0); |
info | 792 | drivers/char/serial.c | info->IER |= UART_IER_THRI; |
info | 793 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 794 | drivers/char/serial.c | info = info->next_port; |
info | 795 | drivers/char/serial.c | } while (info); |
info | 866 | drivers/char/serial.c | struct async_struct *info; |
info | 869 | drivers/char/serial.c | info = IRQ_ports[irq]; |
info | 870 | drivers/char/serial.c | if (!info) { |
info | 874 | drivers/char/serial.c | while (info) { |
info | 875 | drivers/char/serial.c | if (info->timeout < timeout) |
info | 876 | drivers/char/serial.c | timeout = info->timeout; |
info | 877 | drivers/char/serial.c | info = info->next_port; |
info | 884 | drivers/char/serial.c | static int startup(struct async_struct * info) |
info | 899 | drivers/char/serial.c | if (info->flags & ASYNC_INITIALIZED) { |
info | 905 | drivers/char/serial.c | if (!info->port || !info->type) { |
info | 906 | drivers/char/serial.c | if (info->tty) |
info | 907 | drivers/char/serial.c | set_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 912 | drivers/char/serial.c | if (info->xmit_buf) |
info | 915 | drivers/char/serial.c | info->xmit_buf = (unsigned char *) page; |
info | 918 | drivers/char/serial.c | printk("starting up ttys%d (irq %d)...", info->line, info->irq); |
info | 925 | drivers/char/serial.c | if (info->type == PORT_16650) { |
info | 926 | drivers/char/serial.c | serial_outp(info, UART_FCR, (UART_FCR_CLEAR_RCVR | |
info | 928 | drivers/char/serial.c | info->xmit_fifo_size = 1; /* disabled for now */ |
info | 929 | drivers/char/serial.c | } else if (info->type == PORT_16550A) { |
info | 930 | drivers/char/serial.c | serial_outp(info, UART_FCR, (UART_FCR_CLEAR_RCVR | |
info | 932 | drivers/char/serial.c | info->xmit_fifo_size = 16; |
info | 934 | drivers/char/serial.c | info->xmit_fifo_size = 1; |
info | 941 | drivers/char/serial.c | if (serial_inp(info, UART_LSR) == 0xff) { |
info | 944 | drivers/char/serial.c | if (info->tty) |
info | 945 | drivers/char/serial.c | set_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 954 | drivers/char/serial.c | if (info->irq && (!IRQ_ports[info->irq] || |
info | 955 | drivers/char/serial.c | !IRQ_ports[info->irq]->next_port)) { |
info | 956 | drivers/char/serial.c | if (IRQ_ports[info->irq]) { |
info | 957 | drivers/char/serial.c | free_irq(info->irq, NULL); |
info | 958 | drivers/char/serial.c | if (rs_multiport[info->irq].port1) |
info | 965 | drivers/char/serial.c | retval = request_irq(info->irq, handler, SA_INTERRUPT, "serial", NULL); |
info | 969 | drivers/char/serial.c | if (info->tty) |
info | 971 | drivers/char/serial.c | &info->tty->flags); |
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 | 989 | drivers/char/serial.c | serial_outp(info, UART_LCR, UART_LCR_WLEN8); /* reset DLAB */ |
info | 990 | drivers/char/serial.c | if (info->flags & ASYNC_FOURPORT) { |
info | 991 | drivers/char/serial.c | info->MCR = UART_MCR_DTR | UART_MCR_RTS; |
info | 992 | drivers/char/serial.c | info->MCR_noint = UART_MCR_DTR | UART_MCR_OUT1; |
info | 994 | drivers/char/serial.c | info->MCR = UART_MCR_DTR | UART_MCR_RTS | UART_MCR_OUT2; |
info | 995 | drivers/char/serial.c | info->MCR_noint = UART_MCR_DTR | UART_MCR_RTS; |
info | 998 | drivers/char/serial.c | info->MCR |= UART_MCR_OUT1 | UART_MCR_OUT2; |
info | 999 | drivers/char/serial.c | info->MCR_noint |= UART_MCR_OUT1 | UART_MCR_OUT2; |
info | 1001 | drivers/char/serial.c | if (info->irq == 0) |
info | 1002 | drivers/char/serial.c | info->MCR = info->MCR_noint; |
info | 1003 | drivers/char/serial.c | serial_outp(info, UART_MCR, info->MCR); |
info | 1008 | drivers/char/serial.c | info->IER = UART_IER_MSI | UART_IER_RLSI | UART_IER_RDI; |
info | 1009 | drivers/char/serial.c | serial_outp(info, UART_IER, info->IER); /* enable interrupts */ |
info | 1011 | drivers/char/serial.c | if (info->flags & ASYNC_FOURPORT) { |
info | 1013 | drivers/char/serial.c | ICP = (info->port & 0xFE0) | 0x01F; |
info | 1021 | drivers/char/serial.c | (void)serial_inp(info, UART_LSR); |
info | 1022 | drivers/char/serial.c | (void)serial_inp(info, UART_RX); |
info | 1023 | drivers/char/serial.c | (void)serial_inp(info, UART_IIR); |
info | 1024 | drivers/char/serial.c | (void)serial_inp(info, UART_MSR); |
info | 1026 | drivers/char/serial.c | if (info->tty) |
info | 1027 | drivers/char/serial.c | clear_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 1028 | drivers/char/serial.c | info->xmit_cnt = info->xmit_head = info->xmit_tail = 0; |
info | 1033 | drivers/char/serial.c | info->prev_port = 0; |
info | 1034 | drivers/char/serial.c | info->next_port = IRQ_ports[info->irq]; |
info | 1035 | drivers/char/serial.c | if (info->next_port) |
info | 1036 | drivers/char/serial.c | info->next_port->prev_port = info; |
info | 1037 | drivers/char/serial.c | IRQ_ports[info->irq] = info; |
info | 1038 | drivers/char/serial.c | figure_IRQ_timeout(info->irq); |
info | 1049 | drivers/char/serial.c | change_speed(info); |
info | 1051 | drivers/char/serial.c | info->flags |= ASYNC_INITIALIZED; |
info | 1060 | drivers/char/serial.c | static void shutdown(struct async_struct * info) |
info | 1065 | drivers/char/serial.c | if (!(info->flags & ASYNC_INITIALIZED)) |
info | 1069 | drivers/char/serial.c | printk("Shutting down serial port %d (irq %d)....", info->line, |
info | 1070 | drivers/char/serial.c | info->irq); |
info | 1078 | drivers/char/serial.c | if (info->next_port) |
info | 1079 | drivers/char/serial.c | info->next_port->prev_port = info->prev_port; |
info | 1080 | drivers/char/serial.c | if (info->prev_port) |
info | 1081 | drivers/char/serial.c | info->prev_port->next_port = info->next_port; |
info | 1083 | drivers/char/serial.c | IRQ_ports[info->irq] = info->next_port; |
info | 1084 | drivers/char/serial.c | figure_IRQ_timeout(info->irq); |
info | 1089 | drivers/char/serial.c | if (info->irq && (!IRQ_ports[info->irq] || |
info | 1090 | drivers/char/serial.c | !IRQ_ports[info->irq]->next_port)) { |
info | 1091 | drivers/char/serial.c | if (IRQ_ports[info->irq]) { |
info | 1092 | drivers/char/serial.c | free_irq(info->irq, NULL); |
info | 1093 | drivers/char/serial.c | retval = request_irq(info->irq, rs_interrupt_single, SA_INTERRUPT, "serial", NULL); |
info | 1099 | drivers/char/serial.c | free_irq(info->irq, NULL); |
info | 1102 | drivers/char/serial.c | if (info->xmit_buf) { |
info | 1103 | drivers/char/serial.c | free_page((unsigned long) info->xmit_buf); |
info | 1104 | drivers/char/serial.c | info->xmit_buf = 0; |
info | 1107 | drivers/char/serial.c | info->IER = 0; |
info | 1108 | drivers/char/serial.c | serial_outp(info, UART_IER, 0x00); /* disable all intrs */ |
info | 1109 | drivers/char/serial.c | if (info->flags & ASYNC_FOURPORT) { |
info | 1111 | drivers/char/serial.c | (void) inb((info->port & 0xFE0) | 0x01F); |
info | 1114 | drivers/char/serial.c | if (!info->tty || (info->tty->termios->c_cflag & HUPCL)) { |
info | 1115 | drivers/char/serial.c | info->MCR &= ~(UART_MCR_DTR|UART_MCR_RTS); |
info | 1116 | drivers/char/serial.c | info->MCR_noint &= ~(UART_MCR_DTR|UART_MCR_RTS); |
info | 1118 | drivers/char/serial.c | serial_outp(info, UART_MCR, info->MCR_noint); |
info | 1121 | drivers/char/serial.c | serial_outp(info, UART_FCR, (UART_FCR_CLEAR_RCVR | |
info | 1123 | drivers/char/serial.c | (void)serial_in(info, UART_RX); /* read data port to reset things */ |
info | 1125 | drivers/char/serial.c | if (info->tty) |
info | 1126 | drivers/char/serial.c | set_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 1128 | drivers/char/serial.c | info->flags &= ~ASYNC_INITIALIZED; |
info | 1136 | drivers/char/serial.c | static void change_speed(struct async_struct *info) |
info | 1143 | drivers/char/serial.c | if (!info->tty || !info->tty->termios) |
info | 1145 | drivers/char/serial.c | cflag = info->tty->termios->c_cflag; |
info | 1146 | drivers/char/serial.c | if (!(port = info->port)) |
info | 1152 | drivers/char/serial.c | info->tty->termios->c_cflag &= ~CBAUDEX; |
info | 1157 | drivers/char/serial.c | if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_HI) |
info | 1159 | drivers/char/serial.c | if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_VHI) |
info | 1161 | drivers/char/serial.c | if ((info->flags & ASYNC_SPD_MASK) == ASYNC_SPD_CUST) |
info | 1162 | drivers/char/serial.c | quot = info->custom_divisor; |
info | 1165 | drivers/char/serial.c | info->timeout = ((info->xmit_fifo_size*HZ*15*quot) / |
info | 1166 | drivers/char/serial.c | info->baud_base) + 2; |
info | 1168 | drivers/char/serial.c | quot = (2*info->baud_base / 269); |
info | 1169 | drivers/char/serial.c | info->timeout = (info->xmit_fifo_size*HZ*30/269) + 2; |
info | 1171 | drivers/char/serial.c | quot = info->baud_base / baud_table[i]; |
info | 1172 | drivers/char/serial.c | info->timeout = (info->xmit_fifo_size*HZ*15/baud_table[i]) + 2; |
info | 1175 | drivers/char/serial.c | info->timeout = 0; |
info | 1178 | drivers/char/serial.c | info->MCR |= UART_MCR_DTR; |
info | 1179 | drivers/char/serial.c | info->MCR_noint |= UART_MCR_DTR; |
info | 1181 | drivers/char/serial.c | serial_out(info, UART_MCR, info->MCR); |
info | 1184 | drivers/char/serial.c | info->MCR &= ~UART_MCR_DTR; |
info | 1185 | drivers/char/serial.c | info->MCR_noint &= ~UART_MCR_DTR; |
info | 1187 | drivers/char/serial.c | serial_out(info, UART_MCR, info->MCR); |
info | 1206 | drivers/char/serial.c | if (info->type == PORT_16550A) { |
info | 1207 | drivers/char/serial.c | if ((info->baud_base / quot) < 2400) |
info | 1211 | drivers/char/serial.c | } else if (info->type == PORT_16650) { |
info | 1227 | drivers/char/serial.c | info->IER &= ~UART_IER_MSI; |
info | 1229 | drivers/char/serial.c | info->flags |= ASYNC_CTS_FLOW; |
info | 1230 | drivers/char/serial.c | info->IER |= UART_IER_MSI; |
info | 1232 | drivers/char/serial.c | info->flags &= ~ASYNC_CTS_FLOW; |
info | 1234 | drivers/char/serial.c | info->flags &= ~ASYNC_CHECK_CD; |
info | 1236 | drivers/char/serial.c | info->flags |= ASYNC_CHECK_CD; |
info | 1237 | drivers/char/serial.c | info->IER |= UART_IER_MSI; |
info | 1239 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 1244 | drivers/char/serial.c | info->read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; |
info | 1245 | drivers/char/serial.c | if (I_INPCK(info->tty)) |
info | 1246 | drivers/char/serial.c | info->read_status_mask |= UART_LSR_FE | UART_LSR_PE; |
info | 1247 | drivers/char/serial.c | if (I_BRKINT(info->tty) || I_PARMRK(info->tty)) |
info | 1248 | drivers/char/serial.c | info->read_status_mask |= UART_LSR_BI; |
info | 1250 | drivers/char/serial.c | info->ignore_status_mask = 0; |
info | 1251 | drivers/char/serial.c | if (I_IGNPAR(info->tty)) { |
info | 1252 | drivers/char/serial.c | info->ignore_status_mask |= UART_LSR_PE | UART_LSR_FE; |
info | 1253 | drivers/char/serial.c | info->read_status_mask |= UART_LSR_PE | UART_LSR_FE; |
info | 1255 | drivers/char/serial.c | if (I_IGNBRK(info->tty)) { |
info | 1256 | drivers/char/serial.c | info->ignore_status_mask |= UART_LSR_BI; |
info | 1257 | drivers/char/serial.c | info->read_status_mask |= UART_LSR_BI; |
info | 1262 | drivers/char/serial.c | if (I_IGNPAR(info->tty)) { |
info | 1263 | drivers/char/serial.c | info->ignore_status_mask |= UART_LSR_OE; |
info | 1264 | drivers/char/serial.c | info->read_status_mask |= UART_LSR_OE; |
info | 1269 | drivers/char/serial.c | serial_outp(info, UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ |
info | 1270 | drivers/char/serial.c | serial_outp(info, UART_DLL, quot & 0xff); /* LS of divisor */ |
info | 1271 | drivers/char/serial.c | serial_outp(info, UART_DLM, quot >> 8); /* MS of divisor */ |
info | 1272 | drivers/char/serial.c | serial_outp(info, UART_LCR, cval); /* reset DLAB */ |
info | 1273 | drivers/char/serial.c | serial_outp(info, UART_FCR, fcr); /* set fcr */ |
info | 1279 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1282 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_put_char")) |
info | 1285 | drivers/char/serial.c | if (!tty || !info->xmit_buf) |
info | 1289 | drivers/char/serial.c | if (info->xmit_cnt >= SERIAL_XMIT_SIZE - 1) { |
info | 1294 | drivers/char/serial.c | info->xmit_buf[info->xmit_head++] = ch; |
info | 1295 | drivers/char/serial.c | info->xmit_head &= SERIAL_XMIT_SIZE-1; |
info | 1296 | drivers/char/serial.c | info->xmit_cnt++; |
info | 1302 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1305 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_flush_chars")) |
info | 1308 | drivers/char/serial.c | if (info->xmit_cnt <= 0 || tty->stopped || tty->hw_stopped || |
info | 1309 | drivers/char/serial.c | !info->xmit_buf) |
info | 1313 | drivers/char/serial.c | info->IER |= UART_IER_THRI; |
info | 1314 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 1322 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1325 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_write")) |
info | 1328 | drivers/char/serial.c | if (!tty || !info->xmit_buf || !tmp_buf) |
info | 1336 | drivers/char/serial.c | c = MIN(count, MIN(SERIAL_XMIT_SIZE - info->xmit_cnt - 1, |
info | 1337 | drivers/char/serial.c | SERIAL_XMIT_SIZE - info->xmit_head)); |
info | 1343 | drivers/char/serial.c | c = MIN(c, MIN(SERIAL_XMIT_SIZE - info->xmit_cnt - 1, |
info | 1344 | drivers/char/serial.c | SERIAL_XMIT_SIZE - info->xmit_head)); |
info | 1345 | drivers/char/serial.c | memcpy(info->xmit_buf + info->xmit_head, tmp_buf, c); |
info | 1347 | drivers/char/serial.c | memcpy(info->xmit_buf + info->xmit_head, buf, c); |
info | 1348 | drivers/char/serial.c | info->xmit_head = (info->xmit_head + c) & (SERIAL_XMIT_SIZE-1); |
info | 1349 | drivers/char/serial.c | info->xmit_cnt += c; |
info | 1357 | drivers/char/serial.c | if (info->xmit_cnt && !tty->stopped && !tty->hw_stopped && |
info | 1358 | drivers/char/serial.c | !(info->IER & UART_IER_THRI)) { |
info | 1359 | drivers/char/serial.c | info->IER |= UART_IER_THRI; |
info | 1360 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 1368 | 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_write_room")) |
info | 1373 | drivers/char/serial.c | ret = SERIAL_XMIT_SIZE - info->xmit_cnt - 1; |
info | 1381 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1383 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_chars_in_buffer")) |
info | 1385 | drivers/char/serial.c | return info->xmit_cnt; |
info | 1390 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1392 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_flush_buffer")) |
info | 1395 | drivers/char/serial.c | info->xmit_cnt = info->xmit_head = info->xmit_tail = 0; |
info | 1413 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1421 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_throttle")) |
info | 1425 | drivers/char/serial.c | info->x_char = STOP_CHAR(tty); |
info | 1427 | drivers/char/serial.c | info->MCR &= ~UART_MCR_RTS; |
info | 1428 | drivers/char/serial.c | info->MCR_noint &= ~UART_MCR_RTS; |
info | 1430 | drivers/char/serial.c | serial_out(info, UART_MCR, info->MCR); |
info | 1436 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 1444 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_unthrottle")) |
info | 1448 | drivers/char/serial.c | if (info->x_char) |
info | 1449 | drivers/char/serial.c | info->x_char = 0; |
info | 1451 | drivers/char/serial.c | info->x_char = START_CHAR(tty); |
info | 1453 | drivers/char/serial.c | info->MCR |= UART_MCR_RTS; |
info | 1454 | drivers/char/serial.c | info->MCR_noint |= UART_MCR_RTS; |
info | 1456 | drivers/char/serial.c | serial_out(info, UART_MCR, info->MCR); |
info | 1466 | drivers/char/serial.c | static int get_serial_info(struct async_struct * info, |
info | 1474 | drivers/char/serial.c | tmp.type = info->type; |
info | 1475 | drivers/char/serial.c | tmp.line = info->line; |
info | 1476 | drivers/char/serial.c | tmp.port = info->port; |
info | 1477 | drivers/char/serial.c | tmp.irq = info->irq; |
info | 1478 | drivers/char/serial.c | tmp.flags = info->flags; |
info | 1479 | drivers/char/serial.c | tmp.baud_base = info->baud_base; |
info | 1480 | drivers/char/serial.c | tmp.close_delay = info->close_delay; |
info | 1481 | drivers/char/serial.c | tmp.closing_wait = info->closing_wait; |
info | 1482 | drivers/char/serial.c | tmp.custom_divisor = info->custom_divisor; |
info | 1483 | drivers/char/serial.c | tmp.hub6 = info->hub6; |
info | 1488 | drivers/char/serial.c | static int set_serial_info(struct async_struct * info, |
info | 1499 | drivers/char/serial.c | old_info = *info; |
info | 1501 | drivers/char/serial.c | change_irq = new_serial.irq != info->irq; |
info | 1502 | drivers/char/serial.c | change_port = (new_serial.port != info->port) || (new_serial.hub6 != info->hub6); |
info | 1506 | drivers/char/serial.c | (new_serial.baud_base != info->baud_base) || |
info | 1507 | drivers/char/serial.c | (new_serial.type != info->type) || |
info | 1508 | drivers/char/serial.c | (new_serial.close_delay != info->close_delay) || |
info | 1510 | drivers/char/serial.c | (info->flags & ~ASYNC_USR_MASK))) |
info | 1512 | drivers/char/serial.c | info->flags = ((info->flags & ~ASYNC_USR_MASK) | |
info | 1514 | drivers/char/serial.c | info->custom_divisor = new_serial.custom_divisor; |
info | 1529 | drivers/char/serial.c | if ((info != &rs_table[i]) && |
info | 1535 | drivers/char/serial.c | if ((change_port || change_irq) && (info->count > 1)) |
info | 1543 | drivers/char/serial.c | info->baud_base = new_serial.baud_base; |
info | 1544 | drivers/char/serial.c | info->flags = ((info->flags & ~ASYNC_FLAGS) | |
info | 1546 | drivers/char/serial.c | info->custom_divisor = new_serial.custom_divisor; |
info | 1547 | drivers/char/serial.c | info->type = new_serial.type; |
info | 1548 | drivers/char/serial.c | info->close_delay = new_serial.close_delay * HZ/100; |
info | 1549 | drivers/char/serial.c | info->closing_wait = new_serial.closing_wait * HZ/100; |
info | 1551 | drivers/char/serial.c | release_region(info->port,8); |
info | 1557 | drivers/char/serial.c | shutdown(info); |
info | 1558 | drivers/char/serial.c | info->irq = new_serial.irq; |
info | 1559 | drivers/char/serial.c | info->port = new_serial.port; |
info | 1560 | drivers/char/serial.c | info->hub6 = new_serial.hub6; |
info | 1562 | drivers/char/serial.c | if(info->type != PORT_UNKNOWN) |
info | 1563 | drivers/char/serial.c | request_region(info->port,8,"serial(set)"); |
info | 1567 | drivers/char/serial.c | if (!info->port || !info->type) |
info | 1569 | drivers/char/serial.c | if (info->flags & ASYNC_INITIALIZED) { |
info | 1571 | drivers/char/serial.c | (info->flags & ASYNC_SPD_MASK)) || |
info | 1572 | drivers/char/serial.c | (old_info.custom_divisor != info->custom_divisor)) |
info | 1573 | drivers/char/serial.c | change_speed(info); |
info | 1575 | drivers/char/serial.c | retval = startup(info); |
info | 1590 | drivers/char/serial.c | static int get_lsr_info(struct async_struct * info, unsigned int *value) |
info | 1596 | drivers/char/serial.c | status = serial_in(info, UART_LSR); |
info | 1604 | drivers/char/serial.c | static int get_modem_info(struct async_struct * info, unsigned int *value) |
info | 1609 | drivers/char/serial.c | control = info->MCR; |
info | 1611 | drivers/char/serial.c | status = serial_in(info, UART_MSR); |
info | 1623 | drivers/char/serial.c | static int set_modem_info(struct async_struct * info, unsigned int cmd, |
info | 1636 | drivers/char/serial.c | info->MCR |= UART_MCR_RTS; |
info | 1637 | drivers/char/serial.c | info->MCR_noint |= UART_MCR_RTS; |
info | 1640 | drivers/char/serial.c | info->MCR |= UART_MCR_DTR; |
info | 1641 | drivers/char/serial.c | info->MCR_noint |= UART_MCR_DTR; |
info | 1646 | drivers/char/serial.c | info->MCR &= ~UART_MCR_RTS; |
info | 1647 | drivers/char/serial.c | info->MCR_noint &= ~UART_MCR_RTS; |
info | 1650 | drivers/char/serial.c | info->MCR &= ~UART_MCR_DTR; |
info | 1651 | drivers/char/serial.c | info->MCR_noint &= ~UART_MCR_DTR; |
info | 1655 | drivers/char/serial.c | info->MCR = ((info->MCR & ~(UART_MCR_RTS | UART_MCR_DTR)) |
info | 1658 | drivers/char/serial.c | info->MCR_noint = ((info->MCR_noint |
info | 1667 | drivers/char/serial.c | serial_out(info, UART_MCR, info->MCR); |
info | 1672 | drivers/char/serial.c | static int do_autoconfig(struct async_struct * info) |
info | 1679 | drivers/char/serial.c | if (info->count > 1) |
info | 1682 | drivers/char/serial.c | shutdown(info); |
info | 1685 | drivers/char/serial.c | autoconfig(info); |
info | 1688 | drivers/char/serial.c | retval = startup(info); |
info | 1698 | drivers/char/serial.c | static void send_break( struct async_struct * info, int duration) |
info | 1700 | drivers/char/serial.c | if (!info->port) |
info | 1705 | drivers/char/serial.c | serial_out(info, UART_LCR, serial_inp(info, UART_LCR) | UART_LCR_SBC); |
info | 1707 | drivers/char/serial.c | serial_out(info, UART_LCR, serial_inp(info, UART_LCR) & ~UART_LCR_SBC); |
info | 1755 | drivers/char/serial.c | static int get_multiport_struct(struct async_struct * info, |
info | 1761 | drivers/char/serial.c | multi = &rs_multiport[info->irq]; |
info | 1781 | drivers/char/serial.c | ret.irq = info->irq; |
info | 1788 | drivers/char/serial.c | static int set_multiport_struct(struct async_struct * info, |
info | 1804 | drivers/char/serial.c | if (new_multi.irq != info->irq || info->irq == 0 || |
info | 1805 | drivers/char/serial.c | !IRQ_ports[info->irq]) |
info | 1808 | drivers/char/serial.c | multi = &rs_multiport[info->irq]; |
info | 1847 | drivers/char/serial.c | if (IRQ_ports[info->irq]->next_port && |
info | 1849 | drivers/char/serial.c | free_irq(info->irq, NULL); |
info | 1855 | drivers/char/serial.c | retval = request_irq(info->irq, handler, SA_INTERRUPT, |
info | 1870 | drivers/char/serial.c | struct async_struct * info = (struct async_struct *)tty->driver_data; |
info | 1875 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_ioctl")) |
info | 1893 | drivers/char/serial.c | send_break(info, HZ/4); /* 1/4 second */ |
info | 1900 | drivers/char/serial.c | send_break(info, arg ? arg*(HZ/10) : HZ/4); |
info | 1920 | drivers/char/serial.c | return get_modem_info(info, (unsigned int *) arg); |
info | 1924 | drivers/char/serial.c | return set_modem_info(info, cmd, (unsigned int *) arg); |
info | 1930 | drivers/char/serial.c | return get_serial_info(info, |
info | 1933 | drivers/char/serial.c | return set_serial_info(info, |
info | 1936 | drivers/char/serial.c | return do_autoconfig(info); |
info | 1952 | drivers/char/serial.c | return get_lsr_info(info, (unsigned int *) arg); |
info | 1968 | drivers/char/serial.c | info, sizeof(struct async_struct)); |
info | 1976 | drivers/char/serial.c | return get_multiport_struct(info, |
info | 1979 | drivers/char/serial.c | return set_multiport_struct(info, |
info | 1989 | drivers/char/serial.c | cprev = info->icount; /* note the counters on entry */ |
info | 1992 | drivers/char/serial.c | interruptible_sleep_on(&info->delta_msr_wait); |
info | 1997 | drivers/char/serial.c | cnow = info->icount; /* atomic copy */ |
info | 2021 | drivers/char/serial.c | cnow = info->icount; |
info | 2038 | drivers/char/serial.c | struct async_struct *info = (struct async_struct *)tty->driver_data; |
info | 2043 | drivers/char/serial.c | change_speed(info); |
info | 2060 | drivers/char/serial.c | wake_up_interruptible(&info->open_wait); |
info | 2076 | drivers/char/serial.c | struct async_struct * info = (struct async_struct *)tty->driver_data; |
info | 2080 | drivers/char/serial.c | if (!info || serial_paranoia_check(info, tty->device, "rs_close")) |
info | 2091 | drivers/char/serial.c | printk("rs_close ttys%d, count = %d\n", info->line, info->count); |
info | 2093 | drivers/char/serial.c | if ((tty->count == 1) && (info->count != 1)) { |
info | 2102 | drivers/char/serial.c | "info->count is %d\n", info->count); |
info | 2103 | drivers/char/serial.c | info->count = 1; |
info | 2105 | drivers/char/serial.c | if (--info->count < 0) { |
info | 2107 | drivers/char/serial.c | info->line, info->count); |
info | 2108 | drivers/char/serial.c | info->count = 0; |
info | 2110 | drivers/char/serial.c | if (info->count) { |
info | 2114 | drivers/char/serial.c | info->flags |= ASYNC_CLOSING; |
info | 2119 | drivers/char/serial.c | if (info->flags & ASYNC_NORMAL_ACTIVE) |
info | 2120 | drivers/char/serial.c | info->normal_termios = *tty->termios; |
info | 2121 | drivers/char/serial.c | if (info->flags & ASYNC_CALLOUT_ACTIVE) |
info | 2122 | drivers/char/serial.c | info->callout_termios = *tty->termios; |
info | 2128 | drivers/char/serial.c | if (info->closing_wait != ASYNC_CLOSING_WAIT_NONE) |
info | 2129 | drivers/char/serial.c | tty_wait_until_sent(tty, info->closing_wait); |
info | 2136 | drivers/char/serial.c | info->IER &= ~UART_IER_RLSI; |
info | 2137 | drivers/char/serial.c | info->read_status_mask &= ~UART_LSR_DR; |
info | 2138 | drivers/char/serial.c | if (info->flags & ASYNC_INITIALIZED) { |
info | 2139 | drivers/char/serial.c | serial_out(info, UART_IER, info->IER); |
info | 2146 | drivers/char/serial.c | while (!(serial_inp(info, UART_LSR) & UART_LSR_TEMT)) { |
info | 2148 | drivers/char/serial.c | current->timeout = jiffies + info->timeout; |
info | 2154 | drivers/char/serial.c | shutdown(info); |
info | 2160 | drivers/char/serial.c | info->event = 0; |
info | 2161 | drivers/char/serial.c | info->tty = 0; |
info | 2170 | drivers/char/serial.c | if (info->blocked_open) { |
info | 2171 | drivers/char/serial.c | if (info->close_delay) { |
info | 2173 | drivers/char/serial.c | current->timeout = jiffies + info->close_delay; |
info | 2176 | drivers/char/serial.c | wake_up_interruptible(&info->open_wait); |
info | 2178 | drivers/char/serial.c | info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CALLOUT_ACTIVE| |
info | 2180 | drivers/char/serial.c | wake_up_interruptible(&info->close_wait); |
info | 2189 | drivers/char/serial.c | struct async_struct * info = (struct async_struct *)tty->driver_data; |
info | 2191 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_hangup")) |
info | 2195 | drivers/char/serial.c | shutdown(info); |
info | 2196 | drivers/char/serial.c | info->event = 0; |
info | 2197 | drivers/char/serial.c | info->count = 0; |
info | 2198 | drivers/char/serial.c | info->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CALLOUT_ACTIVE); |
info | 2199 | drivers/char/serial.c | info->tty = 0; |
info | 2200 | drivers/char/serial.c | wake_up_interruptible(&info->open_wait); |
info | 2209 | drivers/char/serial.c | struct async_struct *info) |
info | 2220 | drivers/char/serial.c | (info->flags & ASYNC_CLOSING)) { |
info | 2221 | drivers/char/serial.c | if (info->flags & ASYNC_CLOSING) |
info | 2222 | drivers/char/serial.c | interruptible_sleep_on(&info->close_wait); |
info | 2224 | drivers/char/serial.c | if (info->flags & ASYNC_HUP_NOTIFY) |
info | 2238 | drivers/char/serial.c | if (info->flags & ASYNC_NORMAL_ACTIVE) |
info | 2240 | drivers/char/serial.c | if ((info->flags & ASYNC_CALLOUT_ACTIVE) && |
info | 2241 | drivers/char/serial.c | (info->flags & ASYNC_SESSION_LOCKOUT) && |
info | 2242 | drivers/char/serial.c | (info->session != current->session)) |
info | 2244 | drivers/char/serial.c | if ((info->flags & ASYNC_CALLOUT_ACTIVE) && |
info | 2245 | drivers/char/serial.c | (info->flags & ASYNC_PGRP_LOCKOUT) && |
info | 2246 | drivers/char/serial.c | (info->pgrp != current->pgrp)) |
info | 2248 | drivers/char/serial.c | info->flags |= ASYNC_CALLOUT_ACTIVE; |
info | 2258 | drivers/char/serial.c | if (info->flags & ASYNC_CALLOUT_ACTIVE) |
info | 2260 | drivers/char/serial.c | info->flags |= ASYNC_NORMAL_ACTIVE; |
info | 2264 | drivers/char/serial.c | if (info->flags & ASYNC_CALLOUT_ACTIVE) { |
info | 2265 | drivers/char/serial.c | if (info->normal_termios.c_cflag & CLOCAL) |
info | 2280 | drivers/char/serial.c | add_wait_queue(&info->open_wait, &wait); |
info | 2283 | drivers/char/serial.c | info->line, info->count); |
info | 2287 | drivers/char/serial.c | info->count--; |
info | 2289 | drivers/char/serial.c | info->blocked_open++; |
info | 2292 | drivers/char/serial.c | if (!(info->flags & ASYNC_CALLOUT_ACTIVE)) |
info | 2293 | drivers/char/serial.c | serial_out(info, UART_MCR, |
info | 2294 | drivers/char/serial.c | serial_inp(info, UART_MCR) | |
info | 2299 | drivers/char/serial.c | !(info->flags & ASYNC_INITIALIZED)) { |
info | 2301 | drivers/char/serial.c | if (info->flags & ASYNC_HUP_NOTIFY) |
info | 2310 | drivers/char/serial.c | if (!(info->flags & ASYNC_CALLOUT_ACTIVE) && |
info | 2311 | drivers/char/serial.c | !(info->flags & ASYNC_CLOSING) && |
info | 2312 | drivers/char/serial.c | (do_clocal || (serial_in(info, UART_MSR) & |
info | 2321 | drivers/char/serial.c | info->line, info->count); |
info | 2326 | drivers/char/serial.c | remove_wait_queue(&info->open_wait, &wait); |
info | 2328 | drivers/char/serial.c | info->count++; |
info | 2329 | drivers/char/serial.c | info->blocked_open--; |
info | 2332 | drivers/char/serial.c | info->line, info->count); |
info | 2336 | drivers/char/serial.c | info->flags |= ASYNC_NORMAL_ACTIVE; |
info | 2348 | drivers/char/serial.c | struct async_struct *info; |
info | 2355 | drivers/char/serial.c | info = rs_table + line; |
info | 2356 | drivers/char/serial.c | if (serial_paranoia_check(info, tty->device, "rs_open")) |
info | 2360 | drivers/char/serial.c | printk("rs_open %s%d, count = %d\n", tty->driver.name, info->line, |
info | 2361 | drivers/char/serial.c | info->count); |
info | 2363 | drivers/char/serial.c | info->count++; |
info | 2364 | drivers/char/serial.c | tty->driver_data = info; |
info | 2365 | drivers/char/serial.c | info->tty = tty; |
info | 2380 | drivers/char/serial.c | retval = startup(info); |
info | 2384 | drivers/char/serial.c | retval = block_til_ready(tty, filp, info); |
info | 2393 | drivers/char/serial.c | if ((info->count == 1) && (info->flags & ASYNC_SPLIT_TERMIOS)) { |
info | 2395 | drivers/char/serial.c | *tty->termios = info->normal_termios; |
info | 2397 | drivers/char/serial.c | *tty->termios = info->callout_termios; |
info | 2398 | drivers/char/serial.c | change_speed(info); |
info | 2401 | drivers/char/serial.c | info->session = current->session; |
info | 2402 | drivers/char/serial.c | info->pgrp = current->pgrp; |
info | 2405 | drivers/char/serial.c | printk("rs_open ttys%d successful...", info->line); |
info | 2443 | drivers/char/serial.c | static int get_auto_irq(struct async_struct *info) |
info | 2446 | drivers/char/serial.c | unsigned short ICP=0, port = info->port; |
info | 2454 | drivers/char/serial.c | save_IER = serial_inp(info, UART_IER); |
info | 2455 | drivers/char/serial.c | save_MCR = serial_inp(info, UART_MCR); |
info | 2456 | drivers/char/serial.c | if (info->flags & ASYNC_FOURPORT) { |
info | 2457 | drivers/char/serial.c | serial_outp(info, UART_MCR, UART_MCR_DTR | UART_MCR_RTS); |
info | 2458 | drivers/char/serial.c | serial_outp(info, UART_IER, 0x0f); /* enable all intrs */ |
info | 2464 | drivers/char/serial.c | serial_outp(info, UART_MCR, |
info | 2466 | drivers/char/serial.c | serial_outp(info, UART_IER, 0x0f); /* enable all intrs */ |
info | 2472 | drivers/char/serial.c | (void)serial_inp(info, UART_LSR); |
info | 2473 | drivers/char/serial.c | (void)serial_inp(info, UART_RX); |
info | 2474 | drivers/char/serial.c | (void)serial_inp(info, UART_IIR); |
info | 2475 | drivers/char/serial.c | (void)serial_inp(info, UART_MSR); |
info | 2486 | drivers/char/serial.c | serial_outp(info, UART_IER, save_IER); |
info | 2487 | drivers/char/serial.c | serial_outp(info, UART_MCR, save_MCR); |
info | 2488 | drivers/char/serial.c | if (info->flags & ASYNC_FOURPORT) |
info | 2498 | drivers/char/serial.c | static int do_auto_irq(struct async_struct * info) |
info | 2500 | drivers/char/serial.c | unsigned port = info->port; |
info | 2516 | drivers/char/serial.c | irq_try_1 = get_auto_irq(info); |
info | 2518 | drivers/char/serial.c | irq_try_2 = get_auto_irq(info); |
info | 2537 | drivers/char/serial.c | static void autoconfig(struct async_struct * info) |
info | 2540 | drivers/char/serial.c | unsigned port = info->port; |
info | 2543 | drivers/char/serial.c | info->type = PORT_UNKNOWN; |
info | 2559 | drivers/char/serial.c | scratch = serial_inp(info, UART_IER); |
info | 2560 | drivers/char/serial.c | serial_outp(info, UART_IER, 0); |
info | 2562 | drivers/char/serial.c | scratch2 = serial_inp(info, UART_IER); |
info | 2563 | drivers/char/serial.c | serial_outp(info, UART_IER, scratch); |
info | 2578 | drivers/char/serial.c | if (!(info->flags & ASYNC_SKIP_TEST)) { |
info | 2579 | drivers/char/serial.c | scratch = serial_inp(info, UART_MCR); |
info | 2580 | drivers/char/serial.c | serial_outp(info, UART_MCR, UART_MCR_LOOP | scratch); |
info | 2581 | drivers/char/serial.c | scratch2 = serial_inp(info, UART_MSR); |
info | 2582 | drivers/char/serial.c | serial_outp(info, UART_MCR, UART_MCR_LOOP | 0x0A); |
info | 2583 | drivers/char/serial.c | status1 = serial_inp(info, UART_MSR) & 0xF0; |
info | 2584 | drivers/char/serial.c | serial_outp(info, UART_MCR, scratch); |
info | 2585 | drivers/char/serial.c | serial_outp(info, UART_MSR, scratch2); |
info | 2596 | drivers/char/serial.c | if (info->flags & ASYNC_AUTO_IRQ) |
info | 2597 | drivers/char/serial.c | info->irq = do_auto_irq(info); |
info | 2599 | drivers/char/serial.c | scratch2 = serial_in(info, UART_LCR); |
info | 2600 | drivers/char/serial.c | serial_outp(info, UART_LCR, scratch2 | UART_LCR_DLAB); |
info | 2601 | drivers/char/serial.c | serial_outp(info, UART_EFR, 0); /* EFR is the same as FCR */ |
info | 2602 | drivers/char/serial.c | serial_outp(info, UART_LCR, scratch2); |
info | 2603 | drivers/char/serial.c | serial_outp(info, UART_FCR, UART_FCR_ENABLE_FIFO); |
info | 2604 | drivers/char/serial.c | scratch = serial_in(info, UART_IIR) >> 6; |
info | 2605 | drivers/char/serial.c | info->xmit_fifo_size = 1; |
info | 2608 | drivers/char/serial.c | info->type = PORT_16450; |
info | 2611 | drivers/char/serial.c | info->type = PORT_UNKNOWN; |
info | 2614 | drivers/char/serial.c | info->type = PORT_16550; |
info | 2617 | drivers/char/serial.c | serial_outp(info, UART_LCR, scratch2 | UART_LCR_DLAB); |
info | 2618 | drivers/char/serial.c | if (serial_in(info, UART_EFR) == 0) { |
info | 2619 | drivers/char/serial.c | info->type = PORT_16650; |
info | 2620 | drivers/char/serial.c | info->xmit_fifo_size = 32; |
info | 2622 | drivers/char/serial.c | info->type = PORT_16550A; |
info | 2623 | drivers/char/serial.c | info->xmit_fifo_size = 16; |
info | 2625 | drivers/char/serial.c | serial_outp(info, UART_LCR, scratch2); |
info | 2628 | drivers/char/serial.c | if (info->type == PORT_16450) { |
info | 2629 | drivers/char/serial.c | scratch = serial_in(info, UART_SCR); |
info | 2630 | drivers/char/serial.c | serial_outp(info, UART_SCR, 0xa5); |
info | 2631 | drivers/char/serial.c | status1 = serial_in(info, UART_SCR); |
info | 2632 | drivers/char/serial.c | serial_outp(info, UART_SCR, 0x5a); |
info | 2633 | drivers/char/serial.c | status2 = serial_in(info, UART_SCR); |
info | 2634 | drivers/char/serial.c | serial_outp(info, UART_SCR, scratch); |
info | 2637 | drivers/char/serial.c | info->type = PORT_8250; |
info | 2639 | drivers/char/serial.c | request_region(info->port,8,"serial(auto)"); |
info | 2649 | drivers/char/serial.c | serial_outp(info, UART_MCR, 0x0c); |
info | 2651 | drivers/char/serial.c | serial_outp(info, UART_MCR, 0x00); |
info | 2653 | drivers/char/serial.c | serial_outp(info, UART_FCR, (UART_FCR_CLEAR_RCVR | |
info | 2655 | drivers/char/serial.c | (void)serial_in(info, UART_RX); |
info | 2666 | drivers/char/serial.c | struct async_struct * info; |
info | 2733 | drivers/char/serial.c | for (i = 0, info = rs_table; i < NR_PORTS; i++,info++) { |
info | 2734 | drivers/char/serial.c | info->magic = SERIAL_MAGIC; |
info | 2735 | drivers/char/serial.c | info->line = i; |
info | 2736 | drivers/char/serial.c | info->tty = 0; |
info | 2737 | drivers/char/serial.c | info->type = PORT_UNKNOWN; |
info | 2738 | drivers/char/serial.c | info->custom_divisor = 0; |
info | 2739 | drivers/char/serial.c | info->close_delay = 5*HZ/10; |
info | 2740 | drivers/char/serial.c | info->closing_wait = 30*HZ; |
info | 2741 | drivers/char/serial.c | info->x_char = 0; |
info | 2742 | drivers/char/serial.c | info->event = 0; |
info | 2743 | drivers/char/serial.c | info->count = 0; |
info | 2744 | drivers/char/serial.c | info->blocked_open = 0; |
info | 2745 | drivers/char/serial.c | info->tqueue.routine = do_softint; |
info | 2746 | drivers/char/serial.c | info->tqueue.data = info; |
info | 2747 | drivers/char/serial.c | info->tqueue_hangup.routine = do_serial_hangup; |
info | 2748 | drivers/char/serial.c | info->tqueue_hangup.data = info; |
info | 2749 | drivers/char/serial.c | info->callout_termios =callout_driver.init_termios; |
info | 2750 | drivers/char/serial.c | info->normal_termios = serial_driver.init_termios; |
info | 2751 | drivers/char/serial.c | info->open_wait = 0; |
info | 2752 | drivers/char/serial.c | info->close_wait = 0; |
info | 2753 | drivers/char/serial.c | info->delta_msr_wait = 0; |
info | 2754 | drivers/char/serial.c | info->icount.cts = info->icount.dsr = |
info | 2755 | drivers/char/serial.c | info->icount.rng = info->icount.dcd = 0; |
info | 2756 | drivers/char/serial.c | info->next_port = 0; |
info | 2757 | drivers/char/serial.c | info->prev_port = 0; |
info | 2758 | drivers/char/serial.c | if (info->irq == 2) |
info | 2759 | drivers/char/serial.c | info->irq = 9; |
info | 2760 | drivers/char/serial.c | if (!(info->flags & ASYNC_BOOT_AUTOCONF)) |
info | 2762 | drivers/char/serial.c | autoconfig(info); |
info | 2763 | drivers/char/serial.c | if (info->type == PORT_UNKNOWN) |
info | 2765 | drivers/char/serial.c | printk("tty%02d%s at 0x%04x (irq = %d)", info->line, |
info | 2766 | drivers/char/serial.c | (info->flags & ASYNC_FOURPORT) ? " FourPort" : "", |
info | 2767 | drivers/char/serial.c | info->port, info->irq); |
info | 2768 | drivers/char/serial.c | switch (info->type) { |
info | 2800 | drivers/char/serial.c | struct async_struct *info; |
info | 2818 | drivers/char/serial.c | info = &rs_table[i]; |
info | 2825 | drivers/char/serial.c | info->irq = req->irq; |
info | 2826 | drivers/char/serial.c | info->port = req->port; |
info | 2827 | drivers/char/serial.c | autoconfig(info); |
info | 2828 | drivers/char/serial.c | if (info->type == PORT_UNKNOWN) { |
info | 2833 | drivers/char/serial.c | printk("tty%02d at 0x%04x (irq = %d)", info->line, |
info | 2834 | drivers/char/serial.c | info->port, info->irq); |
info | 2835 | drivers/char/serial.c | switch (info->type) { |
info | 2848 | drivers/char/serial.c | return info->line; |
info | 2854 | drivers/char/serial.c | struct async_struct *info = &rs_table[line]; |
info | 2858 | drivers/char/serial.c | if (info->tty) |
info | 2859 | drivers/char/serial.c | tty_hangup(info->tty); |
info | 2860 | drivers/char/serial.c | info->type = PORT_UNKNOWN; |
info | 2861 | drivers/char/serial.c | printk("tty%02d unloaded\n", info->line); |
info | 359 | drivers/isdn/isdn_common.c | isdn_tty_modem_result(2, &dev->mdm.info[mi]); |
info | 419 | drivers/isdn/isdn_common.c | if (dev->mdm.info[mi].flags & |
info | 446 | drivers/isdn/isdn_common.c | if (dev->mdm.info[mi].flags & |
info | 450 | drivers/isdn/isdn_common.c | isdn_tty_modem_result(7, &dev->mdm.info[mi]); |
info | 453 | drivers/isdn/isdn_common.c | isdn_tty_modem_result(3, &dev->mdm.info[mi]); |
info | 457 | drivers/isdn/isdn_common.c | isdn_tty_modem_hup(&dev->mdm.info[mi]); |
info | 480 | drivers/isdn/isdn_common.c | if (dev->mdm.info[mi].flags & |
info | 486 | drivers/isdn/isdn_common.c | isdn_tty_modem_result(5, &dev->mdm.info[mi]); |
info | 502 | drivers/isdn/isdn_common.c | if (dev->mdm.info[mi].flags & |
info | 506 | drivers/isdn/isdn_common.c | isdn_tty_modem_result(3, &dev->mdm.info[mi]); |
info | 510 | drivers/isdn/isdn_common.c | isdn_tty_modem_hup(&dev->mdm.info[mi]); |
info | 525 | drivers/isdn/isdn_common.c | if (dev->mdm.info[mi].flags & |
info | 529 | drivers/isdn/isdn_common.c | isdn_tty_modem_result(6, &dev->mdm.info[mi]); |
info | 533 | drivers/isdn/isdn_common.c | isdn_tty_modem_result(3, &dev->mdm.info[mi]); |
info | 548 | drivers/isdn/isdn_common.c | dev->mdm.info[i].isdn_driver = -1; |
info | 549 | drivers/isdn/isdn_common.c | dev->mdm.info[i].isdn_channel = -1; |
info | 1821 | drivers/isdn/isdn_common.c | kfree(dev->mdm.info[i].xmit_buf); |
info | 1877 | drivers/isdn/isdn_common.c | kfree(dev->mdm.info[i].xmit_buf - 4); |
info | 62 | drivers/isdn/isdn_tty.c | if ((tty = dev->mdm.info[i].tty)) { |
info | 63 | drivers/isdn/isdn_tty.c | if (dev->mdm.info[i].MCR & UART_MCR_RTS) { |
info | 94 | drivers/isdn/isdn_tty.c | modem_info *info; |
info | 102 | drivers/isdn/isdn_tty.c | info = &dev->mdm.info[midx]; |
info | 103 | drivers/isdn/isdn_tty.c | if ((tty = info->tty)) { |
info | 104 | drivers/isdn/isdn_tty.c | if (info->MCR & UART_MCR_RTS) { |
info | 107 | drivers/isdn/isdn_tty.c | r = isdn_readbchan(info->isdn_driver, info->isdn_channel, |
info | 142 | drivers/isdn/isdn_tty.c | static void isdn_tty_dial(char *n, modem_info * info, atemu * m) |
info | 153 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(6, info); |
info | 156 | drivers/isdn/isdn_tty.c | info->isdn_driver = dev->drvmap[i]; |
info | 157 | drivers/isdn/isdn_tty.c | info->isdn_channel = dev->chanmap[i]; |
info | 158 | drivers/isdn/isdn_tty.c | info->drv_index = i; |
info | 159 | drivers/isdn/isdn_tty.c | dev->m_idx[i] = info->line; |
info | 163 | drivers/isdn/isdn_tty.c | cmd.driver = info->isdn_driver; |
info | 164 | drivers/isdn/isdn_tty.c | cmd.arg = info->isdn_channel; |
info | 166 | drivers/isdn/isdn_tty.c | dev->drv[info->isdn_driver]->interface->command(&cmd); |
info | 167 | drivers/isdn/isdn_tty.c | strcpy(cmd.num, isdn_map_eaz2msn(m->msn, info->isdn_driver)); |
info | 168 | drivers/isdn/isdn_tty.c | cmd.driver = info->isdn_driver; |
info | 170 | drivers/isdn/isdn_tty.c | dev->drv[info->isdn_driver]->interface->command(&cmd); |
info | 171 | drivers/isdn/isdn_tty.c | cmd.driver = info->isdn_driver; |
info | 173 | drivers/isdn/isdn_tty.c | cmd.arg = info->isdn_channel + (m->mdmreg[14] << 8); |
info | 174 | drivers/isdn/isdn_tty.c | dev->drv[info->isdn_driver]->interface->command(&cmd); |
info | 175 | drivers/isdn/isdn_tty.c | cmd.driver = info->isdn_driver; |
info | 177 | drivers/isdn/isdn_tty.c | cmd.arg = info->isdn_channel + (m->mdmreg[15] << 8); |
info | 178 | drivers/isdn/isdn_tty.c | dev->drv[info->isdn_driver]->interface->command(&cmd); |
info | 179 | drivers/isdn/isdn_tty.c | cmd.driver = info->isdn_driver; |
info | 180 | drivers/isdn/isdn_tty.c | cmd.arg = info->isdn_channel; |
info | 181 | drivers/isdn/isdn_tty.c | sprintf(cmd.num, "%s,%s,%d,%d", n, isdn_map_eaz2msn(m->msn, info->isdn_driver), |
info | 184 | drivers/isdn/isdn_tty.c | dev->mdm.dialing[info->line] = 1; |
info | 187 | drivers/isdn/isdn_tty.c | dev->drv[info->isdn_driver]->interface->command(&cmd); |
info | 193 | drivers/isdn/isdn_tty.c | void isdn_tty_modem_hup(modem_info * info) |
info | 197 | drivers/isdn/isdn_tty.c | dev->mdm.rcvsched[info->line] = 0; |
info | 198 | drivers/isdn/isdn_tty.c | dev->mdm.online[info->line] = 0; |
info | 199 | drivers/isdn/isdn_tty.c | if (info->isdn_driver >= 0) { |
info | 200 | drivers/isdn/isdn_tty.c | cmd.driver = info->isdn_driver; |
info | 202 | drivers/isdn/isdn_tty.c | cmd.arg = info->isdn_channel; |
info | 203 | drivers/isdn/isdn_tty.c | dev->drv[info->isdn_driver]->interface->command(&cmd); |
info | 204 | drivers/isdn/isdn_tty.c | isdn_all_eaz(info->isdn_driver, info->isdn_channel); |
info | 205 | drivers/isdn/isdn_tty.c | isdn_free_channel(info->isdn_driver, info->isdn_channel, ISDN_USAGE_MODEM); |
info | 207 | drivers/isdn/isdn_tty.c | dev->m_idx[info->drv_index] = -1; |
info | 208 | drivers/isdn/isdn_tty.c | info->isdn_driver = -1; |
info | 209 | drivers/isdn/isdn_tty.c | info->isdn_channel = -1; |
info | 210 | drivers/isdn/isdn_tty.c | info->drv_index = -1; |
info | 213 | drivers/isdn/isdn_tty.c | static inline int isdn_tty_paranoia_check(modem_info * info, dev_t device, const char *routine) |
info | 216 | drivers/isdn/isdn_tty.c | if (!info) { |
info | 221 | drivers/isdn/isdn_tty.c | if (info->magic != ISDN_ASYNC_MAGIC) { |
info | 234 | drivers/isdn/isdn_tty.c | static void isdn_tty_change_speed(modem_info * info) |
info | 239 | drivers/isdn/isdn_tty.c | if (!info->tty || !info->tty->termios) |
info | 241 | drivers/isdn/isdn_tty.c | cflag = info->tty->termios->c_cflag; |
info | 247 | drivers/isdn/isdn_tty.c | info->tty->termios->c_cflag &= ~CBAUDEX; |
info | 252 | drivers/isdn/isdn_tty.c | info->MCR |= UART_MCR_DTR; |
info | 254 | drivers/isdn/isdn_tty.c | info->MCR &= ~UART_MCR_DTR; |
info | 255 | drivers/isdn/isdn_tty.c | isdn_tty_modem_reset_regs(&dev->mdm.atmodem[info->line], 0); |
info | 256 | drivers/isdn/isdn_tty.c | if (dev->mdm.online[info->line]) { |
info | 260 | drivers/isdn/isdn_tty.c | isdn_tty_modem_hup(info); |
info | 261 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(3, info); |
info | 276 | drivers/isdn/isdn_tty.c | info->flags |= ISDN_ASYNC_CTS_FLOW; |
info | 278 | drivers/isdn/isdn_tty.c | info->flags &= ~ISDN_ASYNC_CTS_FLOW; |
info | 280 | drivers/isdn/isdn_tty.c | info->flags &= ~ISDN_ASYNC_CHECK_CD; |
info | 282 | drivers/isdn/isdn_tty.c | info->flags |= ISDN_ASYNC_CHECK_CD; |
info | 286 | drivers/isdn/isdn_tty.c | static int isdn_tty_startup(modem_info * info) |
info | 290 | drivers/isdn/isdn_tty.c | if (info->flags & ISDN_ASYNC_INITIALIZED) |
info | 292 | drivers/isdn/isdn_tty.c | if (!info->type) { |
info | 293 | drivers/isdn/isdn_tty.c | if (info->tty) |
info | 294 | drivers/isdn/isdn_tty.c | set_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 301 | drivers/isdn/isdn_tty.c | printk(KERN_DEBUG "starting up ttyi%d ...\n", info->line); |
info | 306 | drivers/isdn/isdn_tty.c | info->MCR = UART_MCR_DTR | UART_MCR_RTS | UART_MCR_OUT2; |
info | 307 | drivers/isdn/isdn_tty.c | if (info->tty) |
info | 308 | drivers/isdn/isdn_tty.c | clear_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 312 | drivers/isdn/isdn_tty.c | isdn_tty_change_speed(info); |
info | 314 | drivers/isdn/isdn_tty.c | info->flags |= ISDN_ASYNC_INITIALIZED; |
info | 315 | drivers/isdn/isdn_tty.c | dev->mdm.msr[info->line] |= UART_MSR_DSR; |
info | 317 | drivers/isdn/isdn_tty.c | info->send_outstanding = 0; |
info | 327 | drivers/isdn/isdn_tty.c | static void isdn_tty_shutdown(modem_info * info) |
info | 331 | drivers/isdn/isdn_tty.c | if (!(info->flags & ISDN_ASYNC_INITIALIZED)) |
info | 334 | drivers/isdn/isdn_tty.c | printk(KERN_DEBUG "Shutting down isdnmodem port %d ....\n", info->line); |
info | 338 | drivers/isdn/isdn_tty.c | if (!info->tty || (info->tty->termios->c_cflag & HUPCL)) { |
info | 339 | drivers/isdn/isdn_tty.c | info->MCR &= ~(UART_MCR_DTR | UART_MCR_RTS); |
info | 340 | drivers/isdn/isdn_tty.c | isdn_tty_modem_reset_regs(&dev->mdm.atmodem[info->line], 0); |
info | 341 | drivers/isdn/isdn_tty.c | if (dev->mdm.online[info->line]) { |
info | 345 | drivers/isdn/isdn_tty.c | isdn_tty_modem_hup(info); |
info | 348 | drivers/isdn/isdn_tty.c | if (info->tty) |
info | 349 | drivers/isdn/isdn_tty.c | set_bit(TTY_IO_ERROR, &info->tty->flags); |
info | 351 | drivers/isdn/isdn_tty.c | info->flags &= ~ISDN_ASYNC_INITIALIZED; |
info | 358 | drivers/isdn/isdn_tty.c | modem_info *info = (modem_info *) tty->driver_data; |
info | 362 | drivers/isdn/isdn_tty.c | if (isdn_tty_paranoia_check(info, tty->device, "isdn_tty_write")) |
info | 369 | drivers/isdn/isdn_tty.c | c = MIN(count, info->xmit_size - info->xmit_count - 1); |
info | 370 | drivers/isdn/isdn_tty.c | if (info->isdn_driver >= 0) { |
info | 372 | drivers/isdn/isdn_tty.c | if (info->isdn_driver != 0) { |
info | 376 | drivers/isdn/isdn_tty.c | int drvidx = info->isdn_driver; |
info | 380 | drivers/isdn/isdn_tty.c | i = dev->drv[info->isdn_driver]->maxbufsize; |
info | 386 | drivers/isdn/isdn_tty.c | i = info->line; |
info | 392 | drivers/isdn/isdn_tty.c | memcpy_fromfs(&(info->xmit_buf[info->xmit_count]), buf, c); |
info | 394 | drivers/isdn/isdn_tty.c | memcpy(&(info->xmit_buf[info->xmit_count]), buf, c); |
info | 395 | drivers/isdn/isdn_tty.c | info->xmit_count += c; |
info | 400 | drivers/isdn/isdn_tty.c | printk(KERN_DEBUG "WB1: %d\n", info->xmit_count); |
info | 402 | drivers/isdn/isdn_tty.c | bufptr = info->xmit_buf; |
info | 403 | drivers/isdn/isdn_tty.c | buflen = info->xmit_count; |
info | 417 | drivers/isdn/isdn_tty.c | if (dev->drv[info->isdn_driver]->interface-> |
info | 418 | drivers/isdn/isdn_tty.c | writebuf(info->isdn_driver, info->isdn_channel, bufptr, buflen, 0) > 0) { |
info | 419 | drivers/isdn/isdn_tty.c | info->xmit_count = 0; |
info | 420 | drivers/isdn/isdn_tty.c | info->xmit_size = dev->mdm.atmodem[i].mdmreg[16] * 16; |
info | 422 | drivers/isdn/isdn_tty.c | info->send_outstanding++; |
info | 437 | drivers/isdn/isdn_tty.c | isdn_tty_modem_hup(info); |
info | 438 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(3, info); |
info | 440 | drivers/isdn/isdn_tty.c | c = isdn_tty_edit_at(buf, c, info, from_user); |
info | 446 | drivers/isdn/isdn_tty.c | if (info->xmit_count) |
info | 454 | drivers/isdn/isdn_tty.c | modem_info *info = (modem_info *) tty->driver_data; |
info | 457 | drivers/isdn/isdn_tty.c | if (isdn_tty_paranoia_check(info, tty->device, "isdn_tty_write_room")) |
info | 459 | drivers/isdn/isdn_tty.c | if (!dev->mdm.online[info->line]) |
info | 460 | drivers/isdn/isdn_tty.c | return info->xmit_size - 1; |
info | 461 | drivers/isdn/isdn_tty.c | ret = info->xmit_size - info->xmit_count - 1; |
info | 467 | drivers/isdn/isdn_tty.c | modem_info *info = (modem_info *) tty->driver_data; |
info | 469 | drivers/isdn/isdn_tty.c | if (isdn_tty_paranoia_check(info, tty->device, "isdn_tty_chars_in_buffer")) |
info | 471 | drivers/isdn/isdn_tty.c | if (!dev->mdm.online[info->line]) |
info | 473 | drivers/isdn/isdn_tty.c | return (info->xmit_count); |
info | 478 | drivers/isdn/isdn_tty.c | modem_info *info = (modem_info *) tty->driver_data; |
info | 481 | drivers/isdn/isdn_tty.c | if (isdn_tty_paranoia_check(info, tty->device, "isdn_tty_flush_buffer")) |
info | 485 | drivers/isdn/isdn_tty.c | info->xmit_count = 0; |
info | 495 | drivers/isdn/isdn_tty.c | modem_info *info = (modem_info *) tty->driver_data; |
info | 497 | drivers/isdn/isdn_tty.c | if (isdn_tty_paranoia_check(info, tty->device, "isdn_tty_flush_chars")) |
info | 499 | drivers/isdn/isdn_tty.c | if (info->xmit_count > 0) |
info | 513 | drivers/isdn/isdn_tty.c | modem_info *info = (modem_info *) tty->driver_data; |
info | 515 | drivers/isdn/isdn_tty.c | if (isdn_tty_paranoia_check(info, tty->device, "isdn_tty_throttle")) |
info | 518 | drivers/isdn/isdn_tty.c | info->x_char = STOP_CHAR(tty); |
info | 519 | drivers/isdn/isdn_tty.c | info->MCR &= ~UART_MCR_RTS; |
info | 524 | drivers/isdn/isdn_tty.c | modem_info *info = (modem_info *) tty->driver_data; |
info | 526 | drivers/isdn/isdn_tty.c | if (isdn_tty_paranoia_check(info, tty->device, "isdn_tty_unthrottle")) |
info | 529 | drivers/isdn/isdn_tty.c | if (info->x_char) |
info | 530 | drivers/isdn/isdn_tty.c | info->x_char = 0; |
info | 532 | drivers/isdn/isdn_tty.c | info->x_char = START_CHAR(tty); |
info | 534 | drivers/isdn/isdn_tty.c | info->MCR |= UART_MCR_RTS; |
info | 553 | drivers/isdn/isdn_tty.c | static int isdn_tty_get_lsr_info(modem_info * info, uint * value) |
info | 561 | drivers/isdn/isdn_tty.c | status = dev->mdm.msr[info->line]; |
info | 569 | drivers/isdn/isdn_tty.c | static int isdn_tty_get_modem_info(modem_info * info, uint * value) |
info | 575 | drivers/isdn/isdn_tty.c | control = info->MCR; |
info | 578 | drivers/isdn/isdn_tty.c | status = dev->mdm.msr[info->line]; |
info | 590 | drivers/isdn/isdn_tty.c | static int isdn_tty_set_modem_info(modem_info * info, uint cmd, uint * value) |
info | 597 | drivers/isdn/isdn_tty.c | info->MCR |= UART_MCR_RTS; |
info | 600 | drivers/isdn/isdn_tty.c | info->MCR |= UART_MCR_DTR; |
info | 605 | drivers/isdn/isdn_tty.c | info->MCR &= ~UART_MCR_RTS; |
info | 608 | drivers/isdn/isdn_tty.c | info->MCR &= ~UART_MCR_DTR; |
info | 609 | drivers/isdn/isdn_tty.c | isdn_tty_modem_reset_regs(&dev->mdm.atmodem[info->line], 0); |
info | 610 | drivers/isdn/isdn_tty.c | if (dev->mdm.online[info->line]) { |
info | 614 | drivers/isdn/isdn_tty.c | isdn_tty_modem_hup(info); |
info | 615 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(3, info); |
info | 620 | drivers/isdn/isdn_tty.c | info->MCR = ((info->MCR & ~(UART_MCR_RTS | UART_MCR_DTR)) |
info | 623 | drivers/isdn/isdn_tty.c | if (!(info->MCR & UART_MCR_DTR)) { |
info | 624 | drivers/isdn/isdn_tty.c | isdn_tty_modem_reset_regs(&dev->mdm.atmodem[info->line], 0); |
info | 625 | drivers/isdn/isdn_tty.c | if (dev->mdm.online[info->line]) { |
info | 629 | drivers/isdn/isdn_tty.c | isdn_tty_modem_hup(info); |
info | 630 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(3, info); |
info | 643 | drivers/isdn/isdn_tty.c | modem_info *info = (modem_info *) tty->driver_data; |
info | 647 | drivers/isdn/isdn_tty.c | if (isdn_tty_paranoia_check(info, tty->device, "isdn_tty_ioctl")) |
info | 678 | drivers/isdn/isdn_tty.c | return isdn_tty_get_modem_info(info, (uint *) arg); |
info | 682 | drivers/isdn/isdn_tty.c | return isdn_tty_set_modem_info(info, cmd, (uint *) arg); |
info | 688 | drivers/isdn/isdn_tty.c | return isdn_tty_get_lsr_info(info, (uint *) arg); |
info | 697 | drivers/isdn/isdn_tty.c | return get_serial_info(info, |
info | 703 | drivers/isdn/isdn_tty.c | return set_serial_info(info, |
info | 709 | drivers/isdn/isdn_tty.c | return do_autoconfig(info); |
info | 740 | drivers/isdn/isdn_tty.c | info, sizeof(modem_info)); |
info | 745 | drivers/isdn/isdn_tty.c | printk(KERN_DEBUG "unsupp. ioctl 0x%08x on ttyi%d\n", cmd, info->line); |
info | 754 | drivers/isdn/isdn_tty.c | modem_info *info = (modem_info *) tty->driver_data; |
info | 758 | drivers/isdn/isdn_tty.c | isdn_tty_change_speed(info); |
info | 770 | drivers/isdn/isdn_tty.c | static int isdn_tty_block_til_ready(struct tty_struct *tty, struct file *filp, modem_info * info) |
info | 782 | drivers/isdn/isdn_tty.c | (info->flags & ISDN_ASYNC_CLOSING)) { |
info | 783 | drivers/isdn/isdn_tty.c | if (info->flags & ISDN_ASYNC_CLOSING) |
info | 784 | drivers/isdn/isdn_tty.c | interruptible_sleep_on(&info->close_wait); |
info | 786 | drivers/isdn/isdn_tty.c | if (info->flags & ISDN_ASYNC_HUP_NOTIFY) |
info | 799 | drivers/isdn/isdn_tty.c | if (info->flags & ISDN_ASYNC_NORMAL_ACTIVE) |
info | 801 | drivers/isdn/isdn_tty.c | if ((info->flags & ISDN_ASYNC_CALLOUT_ACTIVE) && |
info | 802 | drivers/isdn/isdn_tty.c | (info->flags & ISDN_ASYNC_SESSION_LOCKOUT) && |
info | 803 | drivers/isdn/isdn_tty.c | (info->session != current->session)) |
info | 805 | drivers/isdn/isdn_tty.c | if ((info->flags & ISDN_ASYNC_CALLOUT_ACTIVE) && |
info | 806 | drivers/isdn/isdn_tty.c | (info->flags & ISDN_ASYNC_PGRP_LOCKOUT) && |
info | 807 | drivers/isdn/isdn_tty.c | (info->pgrp != current->pgrp)) |
info | 809 | drivers/isdn/isdn_tty.c | info->flags |= ISDN_ASYNC_CALLOUT_ACTIVE; |
info | 817 | drivers/isdn/isdn_tty.c | if (info->flags & ISDN_ASYNC_CALLOUT_ACTIVE) |
info | 819 | drivers/isdn/isdn_tty.c | info->flags |= ISDN_ASYNC_NORMAL_ACTIVE; |
info | 822 | drivers/isdn/isdn_tty.c | if (info->flags & ISDN_ASYNC_CALLOUT_ACTIVE) { |
info | 823 | drivers/isdn/isdn_tty.c | if (info->normal_termios.c_cflag & CLOCAL) |
info | 837 | drivers/isdn/isdn_tty.c | add_wait_queue(&info->open_wait, &wait); |
info | 840 | drivers/isdn/isdn_tty.c | info->line, info->count); |
info | 845 | drivers/isdn/isdn_tty.c | info->count--; |
info | 847 | drivers/isdn/isdn_tty.c | info->blocked_open++; |
info | 851 | drivers/isdn/isdn_tty.c | !(info->flags & ISDN_ASYNC_INITIALIZED)) { |
info | 853 | drivers/isdn/isdn_tty.c | if (info->flags & ISDN_ASYNC_HUP_NOTIFY) |
info | 862 | drivers/isdn/isdn_tty.c | if (!(info->flags & ISDN_ASYNC_CALLOUT_ACTIVE) && |
info | 863 | drivers/isdn/isdn_tty.c | !(info->flags & ISDN_ASYNC_CLOSING) && |
info | 865 | drivers/isdn/isdn_tty.c | dev->mdm.msr[info->line] & |
info | 875 | drivers/isdn/isdn_tty.c | info->line, info->count); |
info | 880 | drivers/isdn/isdn_tty.c | remove_wait_queue(&info->open_wait, &wait); |
info | 882 | drivers/isdn/isdn_tty.c | info->count++; |
info | 883 | drivers/isdn/isdn_tty.c | info->blocked_open--; |
info | 886 | drivers/isdn/isdn_tty.c | info->line, info->count); |
info | 890 | drivers/isdn/isdn_tty.c | info->flags |= ISDN_ASYNC_NORMAL_ACTIVE; |
info | 902 | drivers/isdn/isdn_tty.c | modem_info *info; |
info | 908 | drivers/isdn/isdn_tty.c | info = &dev->mdm.info[line]; |
info | 909 | drivers/isdn/isdn_tty.c | if (isdn_tty_paranoia_check(info, tty->device, "isdn_tty_open")) |
info | 913 | drivers/isdn/isdn_tty.c | info->line, info->count); |
info | 915 | drivers/isdn/isdn_tty.c | info->count++; |
info | 916 | drivers/isdn/isdn_tty.c | tty->driver_data = info; |
info | 917 | drivers/isdn/isdn_tty.c | info->tty = tty; |
info | 921 | drivers/isdn/isdn_tty.c | retval = isdn_tty_startup(info); |
info | 928 | drivers/isdn/isdn_tty.c | retval = isdn_tty_block_til_ready(tty, filp, info); |
info | 935 | drivers/isdn/isdn_tty.c | if ((info->count == 1) && (info->flags & ISDN_ASYNC_SPLIT_TERMIOS)) { |
info | 937 | drivers/isdn/isdn_tty.c | *tty->termios = info->normal_termios; |
info | 939 | drivers/isdn/isdn_tty.c | *tty->termios = info->callout_termios; |
info | 940 | drivers/isdn/isdn_tty.c | isdn_tty_change_speed(info); |
info | 942 | drivers/isdn/isdn_tty.c | info->session = current->session; |
info | 943 | drivers/isdn/isdn_tty.c | info->pgrp = current->pgrp; |
info | 945 | drivers/isdn/isdn_tty.c | printk(KERN_DEBUG "isdn_tty_open ttyi%d successful...\n", info->line); |
info | 956 | drivers/isdn/isdn_tty.c | modem_info *info = (modem_info *) tty->driver_data; |
info | 960 | drivers/isdn/isdn_tty.c | if (!info || isdn_tty_paranoia_check(info, tty->device, "isdn_tty_close")) |
info | 972 | drivers/isdn/isdn_tty.c | if ((tty->count == 1) && (info->count != 1)) { |
info | 981 | drivers/isdn/isdn_tty.c | "info->count is %d\n", info->count); |
info | 982 | drivers/isdn/isdn_tty.c | info->count = 1; |
info | 984 | drivers/isdn/isdn_tty.c | if (--info->count < 0) { |
info | 986 | drivers/isdn/isdn_tty.c | info->line, info->count); |
info | 987 | drivers/isdn/isdn_tty.c | info->count = 0; |
info | 989 | drivers/isdn/isdn_tty.c | if (info->count) { |
info | 996 | drivers/isdn/isdn_tty.c | info->flags |= ISDN_ASYNC_CLOSING; |
info | 1001 | drivers/isdn/isdn_tty.c | if (info->flags & ISDN_ASYNC_NORMAL_ACTIVE) |
info | 1002 | drivers/isdn/isdn_tty.c | info->normal_termios = *tty->termios; |
info | 1003 | drivers/isdn/isdn_tty.c | if (info->flags & ISDN_ASYNC_CALLOUT_ACTIVE) |
info | 1004 | drivers/isdn/isdn_tty.c | info->callout_termios = *tty->termios; |
info | 1014 | drivers/isdn/isdn_tty.c | if (info->flags & ISDN_ASYNC_INITIALIZED) { |
info | 1022 | drivers/isdn/isdn_tty.c | while (!(dev->mdm.mlr[info->line] |
info | 1031 | drivers/isdn/isdn_tty.c | isdn_tty_shutdown(info); |
info | 1036 | drivers/isdn/isdn_tty.c | info->tty = 0; |
info | 1048 | drivers/isdn/isdn_tty.c | if (info->blocked_open) { |
info | 1049 | drivers/isdn/isdn_tty.c | if (info->close_delay) { |
info | 1051 | drivers/isdn/isdn_tty.c | current->timeout = jiffies + info->close_delay; |
info | 1054 | drivers/isdn/isdn_tty.c | wake_up_interruptible(&info->open_wait); |
info | 1056 | drivers/isdn/isdn_tty.c | info->flags &= ~(ISDN_ASYNC_NORMAL_ACTIVE | ISDN_ASYNC_CALLOUT_ACTIVE | |
info | 1058 | drivers/isdn/isdn_tty.c | wake_up_interruptible(&info->close_wait); |
info | 1070 | drivers/isdn/isdn_tty.c | modem_info *info = (modem_info *) tty->driver_data; |
info | 1072 | drivers/isdn/isdn_tty.c | if (isdn_tty_paranoia_check(info, tty->device, "isdn_tty_hangup")) |
info | 1074 | drivers/isdn/isdn_tty.c | isdn_tty_shutdown(info); |
info | 1075 | drivers/isdn/isdn_tty.c | info->count = 0; |
info | 1076 | drivers/isdn/isdn_tty.c | info->flags &= ~(ISDN_ASYNC_NORMAL_ACTIVE | ISDN_ASYNC_CALLOUT_ACTIVE); |
info | 1077 | drivers/isdn/isdn_tty.c | info->tty = 0; |
info | 1078 | drivers/isdn/isdn_tty.c | wake_up_interruptible(&info->open_wait); |
info | 1127 | drivers/isdn/isdn_tty.c | modem_info *info; |
info | 1183 | drivers/isdn/isdn_tty.c | info = &(m->info[i]); |
info | 1184 | drivers/isdn/isdn_tty.c | info->magic = ISDN_ASYNC_MAGIC; |
info | 1185 | drivers/isdn/isdn_tty.c | info->line = i; |
info | 1186 | drivers/isdn/isdn_tty.c | info->tty = 0; |
info | 1187 | drivers/isdn/isdn_tty.c | info->close_delay = 50; |
info | 1188 | drivers/isdn/isdn_tty.c | info->x_char = 0; |
info | 1189 | drivers/isdn/isdn_tty.c | info->count = 0; |
info | 1190 | drivers/isdn/isdn_tty.c | info->blocked_open = 0; |
info | 1191 | drivers/isdn/isdn_tty.c | info->callout_termios = m->cua_modem.init_termios; |
info | 1192 | drivers/isdn/isdn_tty.c | info->normal_termios = m->tty_modem.init_termios; |
info | 1193 | drivers/isdn/isdn_tty.c | info->open_wait = 0; |
info | 1194 | drivers/isdn/isdn_tty.c | info->close_wait = 0; |
info | 1195 | drivers/isdn/isdn_tty.c | info->type = ISDN_PORT_16550A; |
info | 1196 | drivers/isdn/isdn_tty.c | info->isdn_driver = -1; |
info | 1197 | drivers/isdn/isdn_tty.c | info->isdn_channel = -1; |
info | 1198 | drivers/isdn/isdn_tty.c | info->drv_index = -1; |
info | 1199 | drivers/isdn/isdn_tty.c | info->xmit_size = ISDN_SERIAL_XMIT_SIZE; |
info | 1200 | drivers/isdn/isdn_tty.c | if (!(info->xmit_buf = kmalloc(ISDN_SERIAL_XMIT_SIZE + 5, GFP_KERNEL))) { |
info | 1204 | drivers/isdn/isdn_tty.c | info->xmit_buf += 4; /* Make room for T.70 header */ |
info | 1269 | drivers/isdn/isdn_tty.c | modem_info *info = &dev->mdm.info[i]; |
info | 1274 | drivers/isdn/isdn_tty.c | info->flags, info->isdn_driver, info->isdn_channel, |
info | 1277 | drivers/isdn/isdn_tty.c | if ((info->flags & ISDN_ASYNC_NORMAL_ACTIVE) && |
info | 1278 | drivers/isdn/isdn_tty.c | (info->isdn_driver == -1) && |
info | 1279 | drivers/isdn/isdn_tty.c | (info->isdn_channel == -1) && |
info | 1281 | drivers/isdn/isdn_tty.c | info->isdn_driver = di; |
info | 1282 | drivers/isdn/isdn_tty.c | info->isdn_channel = ch; |
info | 1283 | drivers/isdn/isdn_tty.c | info->drv_index = idx; |
info | 1284 | drivers/isdn/isdn_tty.c | dev->m_idx[idx] = info->line; |
info | 1291 | drivers/isdn/isdn_tty.c | info->line); |
info | 1292 | drivers/isdn/isdn_tty.c | return info->line; |
info | 1312 | drivers/isdn/isdn_tty.c | static void isdn_tty_at_cout(char *msg, modem_info * info) |
info | 1315 | drivers/isdn/isdn_tty.c | atemu *m = &(dev->mdm.atmodem[info->line]); |
info | 1326 | drivers/isdn/isdn_tty.c | tty = info->tty; |
info | 1341 | drivers/isdn/isdn_tty.c | if ((info->flags & ISDN_ASYNC_CLOSING) || (!tty)) { |
info | 1356 | drivers/isdn/isdn_tty.c | static void isdn_tty_on_hook(modem_info * info) |
info | 1358 | drivers/isdn/isdn_tty.c | if (info->isdn_channel >= 0) { |
info | 1362 | drivers/isdn/isdn_tty.c | isdn_tty_modem_hup(info); |
info | 1363 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(3, info); |
info | 1430 | drivers/isdn/isdn_tty.c | void isdn_tty_modem_result(int code, modem_info * info) |
info | 1432 | drivers/isdn/isdn_tty.c | atemu *m = &dev->mdm.atmodem[info->line]; |
info | 1447 | drivers/isdn/isdn_tty.c | dev->mdm.msr[info->line] &= ~UART_MSR_RI; |
info | 1448 | drivers/isdn/isdn_tty.c | cmd.driver = info->isdn_driver; |
info | 1449 | drivers/isdn/isdn_tty.c | cmd.arg = info->isdn_channel; |
info | 1451 | drivers/isdn/isdn_tty.c | dev->drv[info->isdn_driver]->interface->command(&cmd); |
info | 1458 | drivers/isdn/isdn_tty.c | dev->mdm.msr[info->line] &= ~(UART_MSR_DCD | UART_MSR_RI); |
info | 1459 | drivers/isdn/isdn_tty.c | if ((info->flags & ISDN_ASYNC_CLOSING) || (!info->tty)) { |
info | 1467 | drivers/isdn/isdn_tty.c | dev->mdm.online[info->line] = 1; |
info | 1472 | drivers/isdn/isdn_tty.c | isdn_tty_at_cout("\r\n", info); |
info | 1476 | drivers/isdn/isdn_tty.c | isdn_tty_at_cout(s, info); |
info | 1479 | drivers/isdn/isdn_tty.c | isdn_tty_at_cout("CALLER NUMBER: ", info); |
info | 1480 | drivers/isdn/isdn_tty.c | isdn_tty_at_cout(dev->num[info->drv_index], info); |
info | 1481 | drivers/isdn/isdn_tty.c | isdn_tty_at_cout("\r\n", info); |
info | 1483 | drivers/isdn/isdn_tty.c | isdn_tty_at_cout(msg[code], info); |
info | 1486 | drivers/isdn/isdn_tty.c | isdn_tty_at_cout((m->mdmreg[14] != 3) ? "/X.75" : "/HDLC", info); |
info | 1488 | drivers/isdn/isdn_tty.c | isdn_tty_at_cout("/T.70", info); |
info | 1491 | drivers/isdn/isdn_tty.c | isdn_tty_at_cout("\r\n", info); |
info | 1496 | drivers/isdn/isdn_tty.c | if ((info->flags & ISDN_ASYNC_CLOSING) || (!info->tty)) { |
info | 1500 | drivers/isdn/isdn_tty.c | if ((info->flags & ISDN_ASYNC_CHECK_CD) && |
info | 1501 | drivers/isdn/isdn_tty.c | (!((info->flags & ISDN_ASYNC_CALLOUT_ACTIVE) && |
info | 1502 | drivers/isdn/isdn_tty.c | (info->flags & ISDN_ASYNC_CALLOUT_NOHUP)))) |
info | 1503 | drivers/isdn/isdn_tty.c | tty_hangup(info->tty); |
info | 1511 | drivers/isdn/isdn_tty.c | static void isdn_tty_show_profile(int ridx, modem_info * info) |
info | 1515 | drivers/isdn/isdn_tty.c | sprintf(v, "%d\r\n", dev->mdm.atmodem[info->line].mdmreg[ridx]); |
info | 1516 | drivers/isdn/isdn_tty.c | isdn_tty_at_cout(v, info); |
info | 1551 | drivers/isdn/isdn_tty.c | static void isdn_tty_parse_at(modem_info * info) |
info | 1553 | drivers/isdn/isdn_tty.c | atemu *m = &dev->mdm.atmodem[info->line]; |
info | 1582 | drivers/isdn/isdn_tty.c | dev->mdm.msr[info->line] &= ~UART_MSR_RI; |
info | 1583 | drivers/isdn/isdn_tty.c | cmd.driver = info->isdn_driver; |
info | 1585 | drivers/isdn/isdn_tty.c | cmd.arg = info->isdn_channel + (m->mdmreg[14] << 8); |
info | 1586 | drivers/isdn/isdn_tty.c | dev->drv[info->isdn_driver]->interface->command(&cmd); |
info | 1587 | drivers/isdn/isdn_tty.c | cmd.driver = info->isdn_driver; |
info | 1589 | drivers/isdn/isdn_tty.c | cmd.arg = info->isdn_channel + (m->mdmreg[15] << 8); |
info | 1590 | drivers/isdn/isdn_tty.c | dev->drv[info->isdn_driver]->interface->command(&cmd); |
info | 1591 | drivers/isdn/isdn_tty.c | cmd.driver = info->isdn_driver; |
info | 1592 | drivers/isdn/isdn_tty.c | cmd.arg = info->isdn_channel; |
info | 1595 | drivers/isdn/isdn_tty.c | fido_modem_info = info; |
info | 1602 | drivers/isdn/isdn_tty.c | dev->drv[info->isdn_driver]->interface->command(&cmd); |
info | 1605 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(8, info); |
info | 1614 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(10, info); |
info | 1616 | drivers/isdn/isdn_tty.c | isdn_tty_dial(ds, info, m); |
info | 1618 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(4, info); |
info | 1633 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(4, info); |
info | 1643 | drivers/isdn/isdn_tty.c | isdn_tty_on_hook(info); |
info | 1650 | drivers/isdn/isdn_tty.c | isdn_tty_on_hook(info); |
info | 1657 | drivers/isdn/isdn_tty.c | isdn_tty_at_cout("ISDN for Linux (c) by Fritz Elfert\r\n", info); |
info | 1669 | drivers/isdn/isdn_tty.c | if (dev->mdm.msr[info->line] & UART_MSR_DCD) /* if B-Channel is up */ |
info | 1670 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(5, info); |
info | 1672 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(3, info); |
info | 1687 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(4, info); |
info | 1696 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(4, info); |
info | 1705 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(4, info); |
info | 1710 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(4, info); |
info | 1716 | drivers/isdn/isdn_tty.c | isdn_tty_show_profile(mreg, info); |
info | 1720 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(4, info); |
info | 1737 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(4, info); |
info | 1761 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(4, info); |
info | 1777 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(4, info); |
info | 1799 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(4, info); |
info | 1808 | drivers/isdn/isdn_tty.c | isdn_tty_at_cout(rb, info); |
info | 1811 | drivers/isdn/isdn_tty.c | isdn_tty_at_cout(rb, info); |
info | 1822 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(4, info); |
info | 1843 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(4, info); |
info | 1848 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(4, info); |
info | 1853 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(4, info); |
info | 1857 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(0, info); |
info | 1874 | drivers/isdn/isdn_tty.c | static int isdn_tty_edit_at(const char *p, int count, modem_info * info, int user) |
info | 1876 | drivers/isdn/isdn_tty.c | atemu *m = &dev->mdm.atmodem[info->line]; |
info | 1894 | drivers/isdn/isdn_tty.c | isdn_tty_at_cout(eb, info); |
info | 1897 | drivers/isdn/isdn_tty.c | isdn_tty_parse_at(info); |
info | 1907 | drivers/isdn/isdn_tty.c | isdn_tty_at_cout("\b", info); |
info | 1915 | drivers/isdn/isdn_tty.c | isdn_tty_at_cout(eb, info); |
info | 1958 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(0, &dev->mdm.info[midx]); |
info | 1980 | drivers/isdn/isdn_tty.c | isdn_tty_modem_result(2, &dev->mdm.info[midx]); |
info | 1997 | drivers/isdn/isdn_tty.c | modem_info *info = &(dev->mdm.info[midx]); |
info | 2002 | drivers/isdn/isdn_tty.c | if (info->xmit_count > 0) { |
info | 2003 | drivers/isdn/isdn_tty.c | struct tty_struct *tty = info->tty; |
info | 2006 | drivers/isdn/isdn_tty.c | printk(KERN_DEBUG "WB2: %d\n", info->xmit_count); |
info | 2008 | drivers/isdn/isdn_tty.c | bufptr = info->xmit_buf; |
info | 2009 | drivers/isdn/isdn_tty.c | buflen = info->xmit_count; |
info | 2022 | drivers/isdn/isdn_tty.c | if (dev->drv[info->isdn_driver]->interface-> |
info | 2023 | drivers/isdn/isdn_tty.c | writebuf(info->isdn_driver, info->isdn_channel, bufptr, buflen, 0) > 0) { |
info | 2024 | drivers/isdn/isdn_tty.c | info->xmit_count = 0; |
info | 2025 | drivers/isdn/isdn_tty.c | info->xmit_size = dev->mdm.atmodem[midx].mdmreg[16] * 16; |
info | 2027 | drivers/isdn/isdn_tty.c | info->send_outstanding++; |
info | 2055 | drivers/isdn/isdn_tty.c | modem_info *info = &dev->mdm.info[i]; |
info | 2056 | drivers/isdn/isdn_tty.c | if ((info->isdn_driver == drv) && |
info | 2057 | drivers/isdn/isdn_tty.c | (info->isdn_channel == chan) && |
info | 2058 | drivers/isdn/isdn_tty.c | (info->send_outstanding)) { |
info | 2059 | drivers/isdn/isdn_tty.c | if (!(--info->send_outstanding)) |
info | 212 | drivers/isdn/teles/callc.c | chanp->para.info = my_atoi(sis); |
info | 335 | drivers/isdn/teles/callc.c | sprintf(ic.num, "%s,%d,0,%s", chanp->para.calling, chanp->para.info, |
info | 85 | drivers/isdn/teles/isdnl3.c | switch (st->pa->info) { |
info | 211 | drivers/isdn/teles/isdnl3.c | st->pa->info = p[2]; |
info | 225 | drivers/isdn/teles/isdnl3.c | st->pa->info = 1; |
info | 229 | drivers/isdn/teles/isdnl3.c | st->pa->info = 7; |
info | 233 | drivers/isdn/teles/isdnl3.c | st->pa->info = 2; |
info | 237 | drivers/isdn/teles/isdnl3.c | st->pa->info = 3; |
info | 241 | drivers/isdn/teles/isdnl3.c | st->pa->info = 4; |
info | 244 | drivers/isdn/teles/isdnl3.c | st->pa->info = 0; |
info | 268 | drivers/isdn/teles/isdnl3.c | if (st->pa->info == 7) { |
info | 87 | drivers/isdn/teles/l3_1TR6.c | *p++ = st->pa->info; |
info | 126 | drivers/isdn/teles/l3_1TR6.c | st->pa->info = p[2]; |
info | 147 | drivers/isdn/teles/l3_1TR6.c | if (st->pa->info == 7) { |
info | 276 | drivers/isdn/teles/teles.h | int info; /* Service-Indicator */ |
info | 232 | drivers/net/3c505.h | struct Info info; |
info | 317 | drivers/net/de4x5.c | char info[100]; |
info | 491 | drivers/pci/pci.c | struct pci_dev_info *info; |
info | 493 | drivers/pci/pci.c | info = pci_lookup_dev(vendor, device); |
info | 494 | drivers/pci/pci.c | return info ? info->name : "Unknown device"; |
info | 735 | drivers/pci/pci.c | struct pci_dev_info *info; |
info | 780 | drivers/pci/pci.c | info = pci_lookup_dev(dev->vendor, dev->device); |
info | 781 | drivers/pci/pci.c | if (!info) { |
info | 786 | drivers/pci/pci.c | if (info->bridge_type != 0xff) { |
info | 788 | drivers/pci/pci.c | info->bridge_type, 1); |
info | 723 | drivers/scsi/AM53C974.c | static char info[100]; |
info | 725 | drivers/scsi/AM53C974.c | sprintf(info, "AM53/79C974 PCscsi driver rev. %d.%d; host I/O address: 0x%x; irq: %d\n", |
info | 728 | drivers/scsi/AM53C974.c | return (info); |
info | 3175 | drivers/scsi/advansys.c | static char info[128]; |
info | 3182 | drivers/scsi/advansys.c | sprintf(info, |
info | 3205 | drivers/scsi/advansys.c | sprintf(info, |
info | 3212 | drivers/scsi/advansys.c | return info; |
info | 9049 | drivers/scsi/advansys.c | uchar dosfar * info |
info | 9052 | drivers/scsi/advansys.c | if (AscScsiSetupCmdQ(asc_dvc, scsiq, info, 8L) == ERR) { |
info | 372 | drivers/scsi/eata.c | struct eata_info info; |
info | 391 | drivers/scsi/eata.c | if (read_pio(*port_base, (ushort *)&info, (ushort *)&info.ipad[0])) |
info | 395 | drivers/scsi/eata.c | if (info.sign != EATA_SIGNATURE) return FALSE; |
info | 397 | drivers/scsi/eata.c | if (ntohl(info.data_len) < EATA_2_0A_SIZE) { |
info | 399 | drivers/scsi/eata.c | name, ntohl(info.data_len)); |
info | 402 | drivers/scsi/eata.c | else if (ntohl(info.data_len) == EATA_2_0A_SIZE) |
info | 404 | drivers/scsi/eata.c | else if (ntohl(info.data_len) == EATA_2_0B_SIZE) |
info | 409 | drivers/scsi/eata.c | if (protocol_rev != 'A' && info.max_chan > 0) |
info | 412 | drivers/scsi/eata.c | irq = info.irq; |
info | 416 | drivers/scsi/eata.c | if (!info.haaval || info.ata || info.drqvld) { |
info | 418 | drivers/scsi/eata.c | name, info.haaval, info.ata, info.drqvld); |
info | 427 | drivers/scsi/eata.c | if (!info.haaval || info.ata || !info.drqvld) { |
info | 429 | drivers/scsi/eata.c | name, info.haaval, info.ata, info.drqvld); |
info | 434 | drivers/scsi/eata.c | dma_channel = dma_channel_table[3 - info.drqx]; |
info | 437 | drivers/scsi/eata.c | if (!info.dmasup) |
info | 440 | drivers/scsi/eata.c | if (subversion == ESA && !info.irq_tr) |
info | 444 | drivers/scsi/eata.c | if (info.second) |
info | 495 | drivers/scsi/eata.c | sh[j]->sg_tablesize = (ushort) ntohs(info.scatt_size); |
info | 496 | drivers/scsi/eata.c | sh[j]->this_id = (ushort) info.host_addr[3]; |
info | 497 | drivers/scsi/eata.c | sh[j]->can_queue = (ushort) ntohs(info.queue_size); |
info | 542 | drivers/scsi/eata.c | " max_chan %u.\n", name, protocol_rev, info.isaena, |
info | 543 | drivers/scsi/eata.c | info.forcaddr, info.max_id, info.max_chan); |
info | 546 | drivers/scsi/eata.c | name, info.version, info.sync, ntohl(info.data_len), |
info | 547 | drivers/scsi/eata.c | ntohl(info.cp_len), ntohl(info.sp_len)); |
info | 1097 | drivers/scsi/fdomain.c | const char *info = fdomain_16x0_info( NULL ); |
info | 1105 | drivers/scsi/fdomain.c | strcpy( buffer, info ); |
info | 386 | drivers/scsi/hosts.c | if(shpnt->hostt->info) |
info | 387 | drivers/scsi/hosts.c | name = shpnt->hostt->info(shpnt); |
info | 108 | drivers/scsi/hosts.h | const char *(* info)(struct Scsi_Host *); |
info | 2706 | drivers/scsi/scsi.c | if(tpnt->info) |
info | 2707 | drivers/scsi/scsi.c | name = tpnt->info(shpnt); |
info | 588 | drivers/scsi/scsi_debug.c | int scsi_debug_biosparam(Disk * disk, kdev_t dev, int* info){ |
info | 590 | drivers/scsi/scsi_debug.c | info[0] = 32; |
info | 591 | drivers/scsi/scsi_debug.c | info[1] = 64; |
info | 592 | drivers/scsi/scsi_debug.c | info[2] = (size + 2047) >> 11; |
info | 593 | drivers/scsi/scsi_debug.c | if (info[2] >= 1024) info[2] = 1024; |
info | 48 | drivers/scsi/scsi_ioctl.c | if(host->hostt->info) |
info | 49 | drivers/scsi/scsi_ioctl.c | string = host->hostt->info(host); |
info | 412 | drivers/scsi/seagate.c | const char *info = seagate_st0x_info(NULL); |
info | 420 | drivers/scsi/seagate.c | strcpy(buffer,info); |
info | 383 | drivers/sound/audio.c | audio_buf_info info; |
info | 385 | drivers/sound/audio.c | int err = DMAbuf_ioctl (dev, cmd, (caddr_t) & info, 1); |
info | 390 | drivers/sound/audio.c | memcpy_tofs ((&((char *) arg)[0]), (char *) &info, sizeof (info)); |
info | 399 | drivers/sound/audio.c | audio_buf_info info; |
info | 403 | drivers/sound/audio.c | int err = DMAbuf_ioctl (dev, cmd, (caddr_t) & info, 1); |
info | 409 | drivers/sound/audio.c | info.bytes += buf_size - buf_ptr; |
info | 411 | drivers/sound/audio.c | memcpy_tofs ((&((char *) arg)[0]), (char *) &info, sizeof (info)); |
info | 422 | drivers/sound/audio.c | int info = 1; /* Revision level of this ioctl() */ |
info | 425 | drivers/sound/audio.c | info |= DSP_CAP_DUPLEX; |
info | 428 | drivers/sound/audio.c | info |= DSP_CAP_COPROC; |
info | 431 | drivers/sound/audio.c | info |= DSP_CAP_BATCH; |
info | 434 | drivers/sound/audio.c | info |= DSP_CAP_TRIGGER; |
info | 436 | drivers/sound/audio.c | info |= DSP_CAP_MMAP; |
info | 438 | drivers/sound/audio.c | memcpy_tofs ((&((char *) arg)[0]), (char *) &info, sizeof (info)); |
info | 188 | drivers/sound/dev_table.h | struct synth_info *info; |
info | 207 | drivers/sound/dev_table.h | int (*pmgr_interface) (int dev, struct patmgr_info *info); |
info | 231 | drivers/sound/dev_table.h | struct midi_info info; |
info | 258 | drivers/sound/dev_table.h | struct sound_timer_info info; |
info | 527 | drivers/sound/dev_table.h | extern int soud_map_buffer (int dev, struct dma_buffparms *dmap, buffmem_desc *info); |
info | 786 | drivers/sound/dmabuf.c | audio_buf_info *info = (audio_buf_info *) arg; |
info | 797 | drivers/sound/dmabuf.c | info->fragstotal = dmap->nbufs; |
info | 800 | drivers/sound/dmabuf.c | info->fragments = dmap->qlen; |
info | 804 | drivers/sound/dmabuf.c | info->fragments = 0; |
info | 807 | drivers/sound/dmabuf.c | info->fragments = dmap->nbufs - dmap->qlen; |
info | 812 | drivers/sound/dmabuf.c | if (tmp && info->fragments) |
info | 816 | drivers/sound/dmabuf.c | info->fragments -= tmp; |
info | 821 | drivers/sound/dmabuf.c | if (info->fragments < 0) |
info | 822 | drivers/sound/dmabuf.c | info->fragments = 0; |
info | 823 | drivers/sound/dmabuf.c | else if (info->fragments > dmap->nbufs) |
info | 824 | drivers/sound/dmabuf.c | info->fragments = dmap->nbufs; |
info | 826 | drivers/sound/dmabuf.c | info->fragsize = dmap->fragment_size; |
info | 827 | drivers/sound/dmabuf.c | info->bytes = info->fragments * dmap->fragment_size; |
info | 830 | drivers/sound/dmabuf.c | info->bytes -= dmap->counts[dmap->qhead]; |
info | 911 | drivers/sound/dmabuf.c | count_info info; |
info | 916 | drivers/sound/dmabuf.c | info.bytes = audio_devs[dev]->dmap_in->byte_counter; |
info | 917 | drivers/sound/dmabuf.c | info.ptr = get_buffer_pointer (dev, audio_devs[dev]->dmachan2, audio_devs[dev]->dmap_in); |
info | 918 | drivers/sound/dmabuf.c | info.blocks = audio_devs[dev]->dmap_in->qlen; |
info | 919 | drivers/sound/dmabuf.c | info.bytes += info.ptr; |
info | 920 | drivers/sound/dmabuf.c | memcpy_tofs ((&((char *) arg)[0]), (char *) &info, sizeof (info)); |
info | 931 | drivers/sound/dmabuf.c | count_info info; |
info | 936 | drivers/sound/dmabuf.c | info.bytes = audio_devs[dev]->dmap_out->byte_counter; |
info | 937 | drivers/sound/dmabuf.c | info.ptr = get_buffer_pointer (dev, audio_devs[dev]->dmachan1, audio_devs[dev]->dmap_out); |
info | 938 | drivers/sound/dmabuf.c | info.blocks = audio_devs[dev]->dmap_out->qlen; |
info | 939 | drivers/sound/dmabuf.c | info.bytes += info.ptr; |
info | 940 | drivers/sound/dmabuf.c | memcpy_tofs ((&((char *) arg)[0]), (char *) &info, sizeof (info)); |
info | 2502 | drivers/sound/gus_wave.c | struct channel_info *info = |
info | 2505 | drivers/sound/gus_wave.c | guswave_set_instr (dev, voice, info->pgm_num); |
info | 2508 | drivers/sound/gus_wave.c | info->controllers[CTL_EXPRESSION]; /* Just msb */ |
info | 2510 | drivers/sound/gus_wave.c | (info->controllers[CTL_MAIN_VOLUME] * 100) / 128; |
info | 2512 | drivers/sound/gus_wave.c | (info->controllers[CTL_PAN] * 2) - 128; |
info | 2513 | drivers/sound/gus_wave.c | voices[voice].bender = info->bender_value; |
info | 294 | drivers/sound/midi_synth.c | memcpy_tofs ((&((char *) arg)[0]), synth_devs[dev]->info, sizeof (struct synth_info)); |
info | 1188 | drivers/sound/mpu401.c | strcpy (mpu401_midi_operations[num_midis].info.name, |
info | 1194 | drivers/sound/mpu401.c | mpu401_synth_operations[devc->devno]->info = |
info | 1140 | drivers/sound/opl3.c | struct channel_info *info = |
info | 1144 | drivers/sound/opl3.c | info->pgm_num); |
info | 1146 | drivers/sound/opl3.c | devc->voc[voice].bender = info->bender_value; |
info | 1148 | drivers/sound/opl3.c | info->controllers[CTL_MAIN_VOLUME]; |
info | 1219 | drivers/sound/opl3.c | opl3_operations.info = &devc->fm_info; |
info | 1765 | drivers/sound/sequencer.c | memcpy_tofs ((&((char *) arg)[0]), (char *) &(midi_devs[dev]->info), sizeof (inf)); |
info | 243 | drivers/sound/sound_switch.c | if (!put_status (synth_devs[i]->info->name)) |
info | 263 | drivers/sound/sound_switch.c | if (!put_status (midi_devs[i]->info.name)) |
info | 279 | drivers/sound/sound_switch.c | if (!put_status (sound_timer_devs[i]->info.name)) |
info | 349 | drivers/sound/sound_timer.c | strcpy (sound_timer.info.name, name); |
info | 729 | drivers/sound/soundcard.c | soud_map_buffer (int dev, struct dma_buffparms *dmap, buffmem_desc * info) |
info | 66 | fs/minix/dir.c | struct minix_sb_info * info; |
info | 70 | fs/minix/dir.c | info = &inode->i_sb->u.minix_sb; |
info | 71 | fs/minix/dir.c | if (filp->f_pos & (info->s_dirsize - 1)) |
info | 83 | fs/minix/dir.c | int size = strnlen(de->name, info->s_namelen); |
info | 89 | fs/minix/dir.c | offset += info->s_dirsize; |
info | 90 | fs/minix/dir.c | filp->f_pos += info->s_dirsize; |
info | 42 | fs/minix/namei.c | struct minix_sb_info * info) |
info | 47 | fs/minix/namei.c | *offset += info->s_dirsize; |
info | 48 | fs/minix/namei.c | if (!de->inode || len > info->s_namelen) |
info | 53 | fs/minix/namei.c | return namecompare(len,info->s_namelen,name,de->name); |
info | 69 | fs/minix/namei.c | struct minix_sb_info * info; |
info | 74 | fs/minix/namei.c | info = &dir->i_sb->u.minix_sb; |
info | 75 | fs/minix/namei.c | if (namelen > info->s_namelen) { |
info | 79 | fs/minix/namei.c | namelen = info->s_namelen; |
info | 93 | fs/minix/namei.c | if (minix_match(namelen,name,bh,&offset,info)) |
info | 154 | fs/minix/namei.c | struct minix_sb_info * info; |
info | 160 | fs/minix/namei.c | info = &dir->i_sb->u.minix_sb; |
info | 161 | fs/minix/namei.c | if (namelen > info->s_namelen) { |
info | 165 | fs/minix/namei.c | namelen = info->s_namelen; |
info | 179 | fs/minix/namei.c | offset += info->s_dirsize; |
info | 186 | fs/minix/namei.c | if (namecompare(namelen, info->s_namelen, name, de->name)) { |
info | 193 | fs/minix/namei.c | for (i = 0; i < info->s_namelen ; i++) |
info | 309 | fs/minix/namei.c | struct minix_sb_info * info; |
info | 315 | fs/minix/namei.c | info = &dir->i_sb->u.minix_sb; |
info | 332 | fs/minix/namei.c | inode->i_size = 2 * info->s_dirsize; |
info | 344 | fs/minix/namei.c | de = (struct minix_dir_entry *) (dir_block->b_data + info->s_dirsize); |
info | 379 | fs/minix/namei.c | struct minix_sb_info * info; |
info | 383 | fs/minix/namei.c | info = &inode->i_sb->u.minix_sb; |
info | 386 | fs/minix/namei.c | offset = 2*info->s_dirsize; |
info | 387 | fs/minix/namei.c | if (inode->i_size & (info->s_dirsize-1)) |
info | 397 | fs/minix/namei.c | de = (struct minix_dir_entry *) (bh->b_data + info->s_dirsize); |
info | 409 | fs/minix/namei.c | offset += info->s_dirsize; |
info | 662 | fs/minix/namei.c | (((struct minix_dir_entry *) ((buffer)+info->s_dirsize))->inode) |
info | 680 | fs/minix/namei.c | struct minix_sb_info * info; |
info | 683 | fs/minix/namei.c | info = &old_dir->i_sb->u.minix_sb; |
info | 321 | fs/ncpfs/dir.c | struct ncp_volume_info info; |
info | 323 | fs/ncpfs/dir.c | if (ncp_get_volume_info_with_number(server, i, &info) != 0) |
info | 328 | fs/ncpfs/dir.c | if (strlen(info.volume_name) > 0) |
info | 333 | fs/ncpfs/dir.c | info.volume_name); |
info | 342 | fs/ncpfs/dir.c | info.volume_name); |
info | 345 | fs/ncpfs/dir.c | info.volume_name, |
info | 349 | fs/ncpfs/dir.c | "%s\n", info.volume_name); |
info | 446 | fs/ncpfs/inode.c | struct nw_modify_dos_info info; |
info | 470 | fs/ncpfs/inode.c | memset(&info, 0, sizeof(info)); |
info | 476 | fs/ncpfs/inode.c | &(info.creationTime), &(info.creationDate)); |
info | 483 | fs/ncpfs/inode.c | &(info.modifyTime), &(info.modifyDate)); |
info | 491 | fs/ncpfs/inode.c | &(dummy), &(info.lastAccessDate)); |
info | 500 | fs/ncpfs/inode.c | &info)) != 0) |
info | 23 | fs/ncpfs/ioctl.c | struct ncp_fs_info info; |
info | 85 | fs/ncpfs/ioctl.c | sizeof(info))) != 0) |
info | 90 | fs/ncpfs/ioctl.c | memcpy_fromfs(&info, (struct ncp_fs_info *)arg, |
info | 91 | fs/ncpfs/ioctl.c | sizeof(info)); |
info | 93 | fs/ncpfs/ioctl.c | if (info.version != NCP_GET_FS_INFO_VERSION) |
info | 95 | fs/ncpfs/ioctl.c | DPRINTK("info.version invalid: %d\n", info.version); |
info | 99 | fs/ncpfs/ioctl.c | info.addr = server->m.serv_addr; |
info | 100 | fs/ncpfs/ioctl.c | info.mounted_uid = server->m.mounted_uid; |
info | 101 | fs/ncpfs/ioctl.c | info.connection = server->connection; |
info | 102 | fs/ncpfs/ioctl.c | info.buffer_size = server->buffer_size; |
info | 104 | fs/ncpfs/ioctl.c | memcpy_tofs((struct ncp_fs_info *)arg, &info, sizeof(info)); |
info | 345 | fs/ncpfs/ncplib_kernel.c | struct nw_modify_dos_info *info) |
info | 356 | fs/ncpfs/ncplib_kernel.c | ncp_add_mem(server, info, sizeof(*info)); |
info | 126 | fs/ncpfs/ncplib_kernel.h | struct nw_modify_dos_info *info); |
info | 190 | fs/umsdos/dir.c | struct umsdos_info info; |
info | 193 | fs/umsdos/dir.c | umsdos_parse (entry.name,entry.name_len,&info); |
info | 194 | fs/umsdos/dir.c | info.f_pos = cur_f_pos; |
info | 195 | fs/umsdos/dir.c | umsdos_manglename (&info); |
info | 196 | fs/umsdos/dir.c | lret = umsdos_real_lookup (dir,info.fake.fname |
info | 197 | fs/umsdos/dir.c | ,info.fake.len,&inode); |
info | 199 | fs/umsdos/dir.c | ,info.fake.fname,lret,entry.flags)); |
info | 235 | fs/umsdos/dir.c | ret = umsdos_writeentry (dir,emd_dir,&info,1); |
info | 674 | fs/umsdos/dir.c | struct umsdos_info info; |
info | 675 | fs/umsdos/dir.c | ret = umsdos_parse (name,len,&info); |
info | 676 | fs/umsdos/dir.c | if (ret == 0) ret = umsdos_findentry (dir,&info,0); |
info | 677 | fs/umsdos/dir.c | PRINTK (("lookup %s pos %lu ret %d len %d ",info.fake.fname,info.f_pos,ret |
info | 678 | fs/umsdos/dir.c | ,info.fake.len)); |
info | 690 | fs/umsdos/dir.c | ret = umsdos_real_lookup (dir,info.fake.fname,info.fake.len,result); |
info | 694 | fs/umsdos/dir.c | ,info.fake.fname); |
info | 695 | fs/umsdos/dir.c | umsdos_delentry (dir,&info,S_ISDIR(info.entry.mode)); |
info | 697 | fs/umsdos/dir.c | umsdos_lookup_patch (dir,inode,&info.entry,info.f_pos); |
info | 699 | fs/umsdos/dir.c | ,info.entry.flags)); |
info | 700 | fs/umsdos/dir.c | if (info.entry.flags & UMSDOS_HLINK){ |
info | 165 | fs/umsdos/emd.c | struct umsdos_info *info, |
info | 170 | fs/umsdos/emd.c | struct umsdos_dirent *entry = &info->entry; |
info | 192 | fs/umsdos/emd.c | filp.f_pos = info->f_pos; |
info | 194 | fs/umsdos/emd.c | ret = umsdos_emd_dir_write(emd_dir,&filp,(char*)entry,info->recsize); |
info | 267 | fs/umsdos/emd.c | struct umsdos_info *info, /* Hold name and name_len */ |
info | 280 | fs/umsdos/emd.c | struct umsdos_dirent *entry = &info->entry; |
info | 281 | fs/umsdos/emd.c | int recsize = info->recsize; |
info | 305 | fs/umsdos/emd.c | info->f_pos = empty.posok; |
info | 312 | fs/umsdos/emd.c | info->f_pos = file_pos; |
info | 335 | fs/umsdos/emd.c | info->f_pos = empty.posok; |
info | 343 | fs/umsdos/emd.c | info->f_pos = file_pos; |
info | 353 | fs/umsdos/emd.c | umsdos_manglename(info); |
info | 367 | fs/umsdos/emd.c | struct umsdos_info *info) |
info | 370 | fs/umsdos/emd.c | int ret = umsdos_find (dir,info,&emd_dir); |
info | 374 | fs/umsdos/emd.c | ret = umsdos_writeentry(dir,emd_dir,info,0); |
info | 386 | fs/umsdos/emd.c | struct umsdos_info *info) |
info | 390 | fs/umsdos/emd.c | umsdos_parse ("..LINK",6,info); |
info | 391 | fs/umsdos/emd.c | info->entry.name_len = 0; |
info | 392 | fs/umsdos/emd.c | ret = umsdos_find (dir,info,&emd_dir); |
info | 400 | fs/umsdos/emd.c | info->entry.name_len = sprintf (info->entry.name,"..LINK%ld" |
info | 401 | fs/umsdos/emd.c | ,info->f_pos); |
info | 414 | fs/umsdos/emd.c | struct umsdos_info *info, |
info | 418 | fs/umsdos/emd.c | int ret = umsdos_find (dir,info,&emd_dir); |
info | 420 | fs/umsdos/emd.c | if (info->entry.name_len != 0){ |
info | 421 | fs/umsdos/emd.c | if ((isdir != 0) != (S_ISDIR(info->entry.mode) != 0)){ |
info | 422 | fs/umsdos/emd.c | if (S_ISDIR(info->entry.mode)){ |
info | 428 | fs/umsdos/emd.c | ret = umsdos_writeentry(dir,emd_dir,info,1); |
info | 476 | fs/umsdos/emd.c | struct umsdos_info *info, |
info | 482 | fs/umsdos/emd.c | int ret = umsdos_find (dir,info,&emd_dir); |
info | 485 | fs/umsdos/emd.c | if (S_ISDIR(info->entry.mode)){ |
info | 149 | fs/umsdos/ioctl.c | struct umsdos_info info; |
info | 151 | fs/umsdos/ioctl.c | umsdos_parse (entry.name,entry.name_len,&info); |
info | 152 | fs/umsdos/ioctl.c | info.f_pos = f_pos; |
info | 153 | fs/umsdos/ioctl.c | umsdos_manglename(&info); |
info | 157 | fs/umsdos/ioctl.c | ,info.fake.fname,info.fake.len+1); |
info | 199 | fs/umsdos/ioctl.c | struct umsdos_info info; |
info | 202 | fs/umsdos/ioctl.c | memcpy (&info.entry,&data.umsdos_dirent |
info | 205 | fs/umsdos/ioctl.c | ,data.umsdos_dirent.name_len,&info); |
info | 206 | fs/umsdos/ioctl.c | ret = umsdos_newentry (dir,&info); |
info | 231 | fs/umsdos/ioctl.c | struct umsdos_info info; |
info | 234 | fs/umsdos/ioctl.c | memcpy (&info.entry,&data.umsdos_dirent |
info | 237 | fs/umsdos/ioctl.c | ,data.umsdos_dirent.name_len,&info); |
info | 238 | fs/umsdos/ioctl.c | ret = umsdos_delentry (dir,&info |
info | 23 | fs/umsdos/mangle.c | void umsdos_manglename (struct umsdos_info *info) |
info | 25 | fs/umsdos/mangle.c | if (info->msdos_reject){ |
info | 73 | fs/umsdos/mangle.c | char *pt = info->fake.fname + info->fake.len; |
info | 87 | fs/umsdos/mangle.c | u.entry_num = info->f_pos / UMSDOS_REC_SIZE; |
info | 98 | fs/umsdos/mangle.c | info->fake.len += 4; |
info | 99 | fs/umsdos/mangle.c | info->msdos_reject = 0; /* Avoid mangling twice */ |
info | 136 | fs/umsdos/mangle.c | struct umsdos_info *info) |
info | 283 | fs/umsdos/mangle.c | char *pt = info->fake.fname; |
info | 289 | fs/umsdos/mangle.c | memcpy (info->fake.fname,fname,msdos_len); |
info | 292 | fs/umsdos/mangle.c | info->msdos_reject = 1; |
info | 301 | fs/umsdos/mangle.c | strncpy (info->fake.fname,fname,len); |
info | 302 | fs/umsdos/mangle.c | info->msdos_reject = 0; |
info | 355 | fs/umsdos/mangle.c | if (memcmp(info->fake.fname,tbdev[i],base_len)==0){ |
info | 356 | fs/umsdos/mangle.c | memcpy (basen,info->fake.fname,base_len); |
info | 362 | fs/umsdos/mangle.c | info->fake.fname[0] = '-'; |
info | 363 | fs/umsdos/mangle.c | strcpy (info->fake.fname+1,basen); /* GLU C'est sur on a un 0 a la fin */ |
info | 365 | fs/umsdos/mangle.c | info->msdos_reject = 1; |
info | 370 | fs/umsdos/mangle.c | info->fake.fname[msdos_len] = '\0'; /* Help doing printk */ |
info | 372 | fs/umsdos/mangle.c | info->fake.len = msdos_len; |
info | 374 | fs/umsdos/mangle.c | memcpy (info->entry.name,fname,len); |
info | 375 | fs/umsdos/mangle.c | info->entry.name_len = len; |
info | 381 | fs/umsdos/mangle.c | info->recsize = umsdos_evalrecsize (len); |
info | 453 | fs/umsdos/mangle.c | struct umsdos_info info; |
info | 454 | fs/umsdos/mangle.c | int ok = umsdos_parse (pttb->fname,strlen(pttb->fname),&info); |
info | 455 | fs/umsdos/mangle.c | if (strcmp(info.fake.fname,pttb->msname)!=0){ |
info | 457 | fs/umsdos/mangle.c | printf ("%s <> %s\n",info.fake.fname,pttb->msname); |
info | 458 | fs/umsdos/mangle.c | }else if (info.msdos_reject != pttb->msdos_reject){ |
info | 460 | fs/umsdos/mangle.c | printf ("%d <> %d\n",info.msdos_reject,pttb->msdos_reject); |
info | 212 | fs/umsdos/namei.c | struct umsdos_info info; |
info | 213 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
info | 216 | fs/umsdos/namei.c | info.entry.mode = mode; |
info | 217 | fs/umsdos/namei.c | info.entry.rdev = rdev; |
info | 218 | fs/umsdos/namei.c | info.entry.flags = flags; |
info | 219 | fs/umsdos/namei.c | info.entry.uid = current->fsuid; |
info | 220 | fs/umsdos/namei.c | info.entry.gid = (dir->i_mode & S_ISGID) |
info | 222 | fs/umsdos/namei.c | info.entry.ctime = info.entry.atime = info.entry.mtime |
info | 224 | fs/umsdos/namei.c | info.entry.nlink = 1; |
info | 226 | fs/umsdos/namei.c | ret = umsdos_newentry (dir,&info); |
info | 229 | fs/umsdos/namei.c | ret = msdos_create (dir,info.fake.fname,info.fake.len |
info | 233 | fs/umsdos/namei.c | umsdos_lookup_patch (dir,inode,&info.entry,info.f_pos); |
info | 236 | fs/umsdos/namei.c | ,info.fake.fname,current->pid,info.f_pos)); |
info | 263 | fs/umsdos/namei.c | ,info.fake.fname,-ret,current->pid,info.f_pos); |
info | 265 | fs/umsdos/namei.c | umsdos_delentry (dir,&info,0); |
info | 268 | fs/umsdos/namei.c | ,info.fake.fname,ret,info.f_pos)); |
info | 592 | fs/umsdos/namei.c | struct umsdos_info info; |
info | 593 | fs/umsdos/namei.c | ret = umsdos_newhidden (olddir,&info); |
info | 599 | fs/umsdos/namei.c | ,olddir,info.entry.name,info.entry.name_len |
info | 685 | fs/umsdos/namei.c | struct umsdos_info info; |
info | 686 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
info | 689 | fs/umsdos/namei.c | info.entry.mode = mode | S_IFDIR; |
info | 690 | fs/umsdos/namei.c | info.entry.rdev = 0; |
info | 691 | fs/umsdos/namei.c | info.entry.uid = current->fsuid; |
info | 692 | fs/umsdos/namei.c | info.entry.gid = (dir->i_mode & S_ISGID) |
info | 694 | fs/umsdos/namei.c | info.entry.ctime = info.entry.atime = info.entry.mtime |
info | 696 | fs/umsdos/namei.c | info.entry.flags = 0; |
info | 698 | fs/umsdos/namei.c | info.entry.nlink = 1; |
info | 699 | fs/umsdos/namei.c | ret = umsdos_newentry (dir,&info); |
info | 703 | fs/umsdos/namei.c | ret = msdos_mkdir (dir,info.fake.fname,info.fake.len,mode); |
info | 705 | fs/umsdos/namei.c | umsdos_delentry (dir,&info,1); |
info | 718 | fs/umsdos/namei.c | ret = umsdos_real_lookup (dir,info.fake.fname |
info | 719 | fs/umsdos/namei.c | ,info.fake.len,&subdir); |
info | 893 | fs/umsdos/namei.c | struct umsdos_info info; |
info | 895 | fs/umsdos/namei.c | umsdos_parse (name,len,&info); |
info | 898 | fs/umsdos/namei.c | umsdos_findentry (dir,&info,2); |
info | 899 | fs/umsdos/namei.c | ret = msdos_rmdir (dir,info.fake.fname |
info | 900 | fs/umsdos/namei.c | ,info.fake.len); |
info | 902 | fs/umsdos/namei.c | ret = umsdos_delentry (dir,&info,1); |
info | 934 | fs/umsdos/namei.c | struct umsdos_info info; |
info | 935 | fs/umsdos/namei.c | ret = umsdos_parse (name,len,&info); |
info | 938 | fs/umsdos/namei.c | ret = umsdos_findentry(dir,&info,1); |
info | 940 | fs/umsdos/namei.c | PRINTK (("UMSDOS_unlink %s ",info.fake.fname)); |
info | 943 | fs/umsdos/namei.c | current->fsuid == info.entry.uid || |
info | 945 | fs/umsdos/namei.c | if (info.entry.flags & UMSDOS_HLINK){ |
info | 984 | fs/umsdos/namei.c | ret = umsdos_delentry (dir,&info,0); |
info | 986 | fs/umsdos/namei.c | PRINTK (("Avant msdos_unlink %s ",info.fake.fname)); |
info | 988 | fs/umsdos/namei.c | ret = msdos_unlink_umsdos (dir,info.fake.fname |
info | 989 | fs/umsdos/namei.c | ,info.fake.len); |
info | 990 | fs/umsdos/namei.c | PRINTK (("msdos_unlink %s %o ret %d ",info.fake.fname |
info | 991 | fs/umsdos/namei.c | ,info.entry.mode,ret)); |
info | 27 | include/asm-alpha/a.out.h | __u64 info; /* after that it looks quite normal.. */ |
info | 64 | include/asm-alpha/a.out.h | #define a_info ah.info |
info | 65 | include/asm-i386/processor.h | struct info *info; |
info | 116 | include/linux/isdn.h | unsigned long info[ISDN_MAX_CHANNELS]; |
info | 423 | include/linux/isdn.h | modem_info info[ISDN_MAX_CHANNELS]; /* Private data */ |
info | 10 | include/linux/isdn_ppp.h | } info; |
info | 31 | include/net/icmp.h | unsigned long info, struct device *dev); |
info | 18 | 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 | 39 | kernel/info.c | memcpy_tofs(info, &val, sizeof(struct sysinfo)); |
info | 254 | net/ipv4/icmp.c | void icmp_send(struct sk_buff *skb_in, int type, int code, unsigned long info, struct device *dev) |
info | 323 | net/ipv4/icmp.c | icmp_param.icmph.un.gateway = info; |