Mode | Name | Size | |||
---|---|---|---|---|---|
-rw-r--r-- | .gitignore | 51 | logplain | ||
-rw-r--r-- | Kconfig | 8881 | logplain | ||
-rw-r--r-- | Kconfig.debug | 45405 | logplain | ||
-rw-r--r-- | Kconfig.kgdb | 2403 | logplain | ||
-rw-r--r-- | Kconfig.kmemcheck | 2967 | logplain | ||
-rw-r--r-- | Makefile | 4031 | logplain | ||
-rw-r--r-- | argv_split.c | 1826 | logplain | ||
-rw-r--r-- | atomic64.c | 4352 | logplain | ||
-rw-r--r-- | atomic64_test.c | 3587 | arch/ia64/hp/sim/simserial.c +++ b/arch/ia64/hp/sim/simserial.c @@ -47,7 +47,7 @@ #define NR_PORTS 1 /* only one port for now */ struct serial_state { - struct tty_port tport; + struct tty_port port; struct circ_buf xmit; int irq; int x_char; @@ -132,8 +132,9 @@ static void receive_chars(struct tty_struct *tty) static irqreturn_t rs_interrupt_single(int irq, void *dev_id) { struct serial_state *info = dev_id; + struct tty_struct *tty = info->port.tty; - if (!info->tport.tty) { + if (!tty) { printk(KERN_INFO "simrs_interrupt_single: info|tty=0 info=%p problem\n", info); return IRQ_NONE; } @@ -141,7 +142,7 @@ static irqreturn_t rs_interrupt_single(int irq, void *dev_id) * pretty simple in our case, because we only get interrupts * on inbound traffic */ - receive_chars(info->tport.tty); + receive_chars(tty); return IRQ_HANDLED; } @@ -416,7 +417,7 @@ static void shutdown(struct tty_struct *tty, struct serial_state *info) { unsigned long flags; - if (!(info->tport.flags & ASYNC_INITIALIZED)) + if (!(info->port.flags & ASYNC_INITIALIZED)) return; #ifdef SIMSERIAL_DEBUG @@ -436,7 +437,7 @@ static void shutdown(struct tty_struct *tty, struct serial_state *info) set_bit(TTY_IO_ERROR, &tty->flags); - info->tport.flags &= ~ASYNC_INITIALIZED; + info->port.flags &= ~ASYNC_INITIALIZED; } local_irq_restore(flags); } @@ -454,6 +455,7 @@ static void shutdown(struct tty_struct *tty, struct serial_state *info) static void rs_close(struct tty_struct *tty, struct file * filp) { struct serial_state *info = tty->driver_data; + struct tty_port *port = &info->port; unsigned long flags; if (!info) @@ -468,30 +470,30 @@ static void rs_close(struct tty_struct *tty, struct file * filp) return; } #ifdef SIMSERIAL_DEBUG - printk("rs_close ttys%d, count = %d\n", info->line, info->tport.count); + printk("rs_close ttys%d, count = %d\n", info->line, port->count); #endif - if ((tty->count == 1) && (info->tport.count != 1)) { + if ((tty->count == 1) && (port->count != 1)) { /* * Uh, oh. tty->count is 1, which means that the tty - * structure will be freed. info->tport.count should always + * structure will be freed. port->count should always * be one in these conditions. If it's greater than * one, we've got real problems, since it means the * serial port won't be shutdown. */ printk(KERN_ERR "rs_close: bad serial port count; tty->count is 1, " - "info->tport.count is %d\n", info->tport.count); - info->tport.count = 1; + "port->count is %d\n", port->count); + port->count = 1; } - if (--info->tport.count < 0) { + if (--port->count < 0) { printk(KERN_ERR "rs_close: bad serial port count for ttys%d: %d\n", - tty->index, info->tport.count); - info->tport.count = 0; + tty->index, port->count); + port->count = 0; } - if (info->tport.count) { + if (port->count) { local_irq_restore(flags); return; } - info->tport.flags |= ASYNC_CLOSING; + port->flags |= ASYNC_CLOSING; local_irq_restore(flags); /* @@ -501,14 +503,14 @@ static void rs_close(struct tty_struct *tty, struct file * filp) shutdown(tty, info); rs_flush_buffer(tty); tty_ldisc_flush(tty); - info->tport.tty = NULL; - if (info->tport.blocked_open) { - if (info->tport.close_delay) - schedule_timeout_interruptible(info->tport.close_delay); - wake_up_interruptible(&info->tport.open_wait); + port->tty = NULL; + if (port->blocked_open) { + if (port->close_delay) + schedule_timeout_interruptible(port->close_delay); + wake_up_interruptible(&port->open_wait); } - info->tport.flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CLOSING); - wake_up_interruptible(&info->tport.close_wait); + port->flags &= ~(ASYNC_NORMAL_ACTIVE|ASYNC_CLOSING); + wake_up_interruptible(&port->close_wait); } /* @@ -525,26 +527,27 @@ static void rs_wait_until_sent(struct tty_struct *tty, int timeout) static void rs_hangup(struct tty_struct *tty) { struct serial_state *info = tty->driver_data; + struct tty_port *port = &info->port; #ifdef SIMSERIAL_DEBUG printk("rs_hangup: called\n"); #endif rs_flush_buffer(tty); - if (info->tport.flags & ASYNC_CLOSING) + if (port->flags & ASYNC_CLOSING) return; shutdown(tty, info); - info->tport.count = 0; - info->tport.flags &= ~ASYNC_NORMAL_ACTIVE; cpu_rmap.c | 6975 | logplain |
-rw-r--r-- | cpumask.c | 4490 | logplain | ||
-rw-r--r-- | crc-ccitt.c | 3052 | logplain | ||
-rw-r--r-- | crc-itu-t.c | 2892 | logplain | ||
-rw-r--r-- | crc-t10dif.c | 2965 | logplain | ||
-rw-r--r-- | crc16.c | 2838 | logplain | ||
-rw-r--r-- | crc32.c | 42819 | logplain | ||
-rw-r--r-- | crc32defs.h | 2054 | logplain | ||
-rw-r--r-- | crc7.c | 2329 | logplain | ||
-rw-r--r-- | crc8.c | 2461 | logplain | ||
-rw-r--r-- | ctype.c | 1390 | logplain | ||
-rw-r--r-- | debug_locks.c | 1108 | logplain | ||
-rw-r--r-- | debugobjects.c | 26845 | logplain | ||
-rw-r--r-- | dec_and_lock.c | 784 | logplain | ||
-rw-r--r-- | decompress.c | 1373 | logplain | ||
-rw-r--r-- | decompress_bunzip2.c | 23975 | logplain | ||
-rw-r--r-- | decompress_inflate.c | 3811 | logplain | ||
-rw-r--r-- | decompress_unlzma.c | 16161 | logplain | ||
-rw-r--r-- | decompress_unlzo.c | 6965 | logplain | ||
-rw-r--r-- | decompress_unxz.c | 10892 | logplain | ||
-rw-r--r-- | devres.c | 9411 | logplain | ||
-rw-r--r-- | digsig.c | 5831 | logplain | ||
-rw-r--r-- | div64.c | 3154 | logplain | ||
-rw-r--r-- | dma-debug.c | 33945 | logplain | ||
-rw-r--r-- | dump_stack.c | 290 | logplain | ||
-rw-r--r-- | dynamic_debug.c | 23285 | logplain | ||
-rw-r--r-- | dynamic_queue_limits.c | 4301 | logplain | ||
-rw-r--r-- | extable.c | 2486 | logplain | ||
-rw-r--r-- | fault-inject.c | 6041 | logplain | ||
-rw-r--r-- | find_last_bit.c | 1139 | logplain | ||
-rw-r--r-- | find_next_bit.c | 6535 | logplain | ||
-rw-r--r-- | flex_array.c | 11135 | logplain | ||
-rw-r--r-- | gcd.c | 291 | logplain | ||
-rw-r--r-- | gen_crc32table.c | 3318 | logplain | ||
-rw-r--r-- | genalloc.c | 11351 | logplain | ||
-rw-r--r-- | halfmd4.c | 2028 | logplain | ||
-rw-r--r-- | hexdump.c | 7158 | logplain | ||
-rw-r--r-- | hweight.c | 1911 | logplain | ||
-rw-r--r-- | idr.c | 24078 | logplain | ||
-rw-r--r-- | inflate.c | 39549 | logplain | ||
-rw-r--r-- | int_sqrt.c | 533 | logplain | ||
-rw-r--r-- | iomap.c | 6608 | logplain | ||
-rw-r--r-- | iomap_copy.c | 2198 | logplain | ||
-rw-r--r-- | iommu-helper.c | 1029 | logplain | ||
-rw-r--r-- | ioremap.c | 2195 | logplain | ||
-rw-r--r-- | irq_regs.c | 604 | logplain | ||
-rw-r--r-- | is_single_threaded.c | 1363 | logplain | ||
-rw-r--r-- | kasprintf.c | 704 | logplain | ||
-rw-r--r-- | klist.c | 9566 | logplain | ||
-rw-r--r-- | kobject.c | 23730 | logplain | ||
-rw-r--r-- | kobject_uevent.c | 10622 | logplain | ||
-rw-r--r-- | kstrtox.c | 6123 | logplain | ||
-rw-r--r-- | kstrtox.h | 254 | logplain | ||
-rw-r--r-- | lcm.c | 288 | logplain | ||
-rw-r--r-- | libcrc32c.c | 2133 | logplain | ||
-rw-r--r-- | list_debug.c | 1962 | logplain | ||
-rw-r--r-- | list_sort.c | 7193 | logplain | ||
-rw-r--r-- | llist.c | 2811 | logplain | ||
-rw-r--r-- | locking-selftest-hardirq.h | 207 | logplain | ||
-rw-r--r-- | locking-selftest-mutex.h | 120 | logplain | ||
-rw-r--r-- | locking-selftest-rlock-hardirq.h | 74 | logplain | ||
-rw-r--r-- | locking-selftest-rlock-softirq.h | 74 | logplain | ||
-rw-r--r-- | locking-selftest-rlock.h | 158 | logplain | ||
-rw-r--r-- | locking-selftest-rsem.h | 163 | logplain | ||
-rw-r--r-- | locking-selftest-softirq.h | 207 | logplain | ||
-rw-r--r-- | locking-selftest-spin-hardirq.h | 73 | logplain | ||
-rw-r--r-- | locking-selftest-spin-softirq.h | 73 | logplain | ||
-rw-r--r-- | locking-selftest-spin.h | 118 | logplain | ||
-rw-r--r-- | locking-selftest-wlock-hardirq.h | 74 | logplain | ||
-rw-r--r-- | locking-selftest-wlock-softirq.h | 74 | logplain | ||
-rw-r--r-- | locking-selftest-wlock.h | 158 | logplain | ||
-rw-r--r-- | locking-selftest-wsem.h | 163 | logplain | ||
-rw-r--r-- | locking-selftest.c | 29290 | logplain | ||
-rw-r--r-- | lru_cache.c | 14933 | logplain | ||
d--------- | lzo | 163 | logplain | ||
-rw-r--r-- | md5.c | 3742 | logplain | ||
d--------- | mpi | 1140 | logplain | ||
-rw-r--r-- | nlattr.c | 12556 | logplain | ||
-rw-r--r-- | parser.c | 6234 | logplain | ||
-rw-r--r-- | pci_iomap.c | 1383 | logplain | ||
-rw-r--r-- | percpu_counter.c | 5235 | logplain | ||
-rw-r--r-- | plist.c | 4839 | logplain | ||
-rw-r--r-- | prio_heap.c | 1477 | logplain | ||
-rw-r--r-- | prio_tree.c | 12104 | logplain | ||
-rw-r--r-- | proportions.c | 9551 | logplain | ||
-rw-r--r-- | radix-tree.c | 38983 | logplain | ||
d--------- | raid6 | 457 | logplain | ||
-rw-r--r-- | random32.c | 4015 | logplain | ||
-rw-r--r-- | ratelimit.c | 1567 | logplain | ||
-rw-r--r-- | rational.c | 1552 | logplain | ||
-rw-r--r-- | rbtree.c | 10295 | logplain | ||
-rw-r--r-- | reciprocal_div.c | 218 | logplain | ||
d--------- | reed_solomon | 156 | logplain | ||
-rw-r--r-- | rwsem-spinlock.c | 7179 | logplain | ||
-rw-r--r-- | rwsem.c | 8268 | logplain | ||
-rw-r--r-- | scatterlist.c | 13050 | logplain | ||
-rw-r--r-- | sha1.c | 6197 | logplain | ||
-rw-r--r-- | show_mem.c | 1375 | logplain | ||
-rw-r--r-- | smp_processor_id.c | 1122 | logplain | ||
-rw-r--r-- | sort.c | 2605 | logplain | ||
-rw-r--r-- | spinlock_debug.c | 6972 | logplain | ||
-rw-r--r-- | string.c | 16632 | logplain | ||
-rw-r--r-- | string_helpers.c | 1702 | logplain | ||
-rw-r--r-- | swiotlb.c | 26277 | logplain | ||
-rw-r--r-- | syscall.c | 2475 | logplain | ||
-rw-r--r-- | test-kstrtox.c | 17808 | logplain | ||
-rw-r--r-- | textsearch.c | 9800 | logplain | ||
-rw-r--r-- | timerqueue.c | 3178 | logplain | ||
-rw-r--r-- | ts_bm.c | 5408 | logplain | ||
-rw-r--r-- | ts_fsm.c | 10866 | logplain | ||
-rw-r--r-- | ts_kmp.c | 4437 | logplain | ||
-rw-r--r-- | uuid.c | 1398 | logplain | ||
-rw-r--r-- | vsprintf.c | 48826 | logplain | ||
d--------- | xz | 433 | logplain | ||
d--------- | zlib_deflate | 189 | logplain | ||
d--------- | zlib_inflate | 414 | logplain |