summaryrefslogtreecommitdiff
path: root/lib
ModeNameSize
-rw-r--r--.gitignore51logplain
-rw-r--r--Kconfig8881logplain
-rw-r--r--Kconfig.debug45405logplain
-rw-r--r--Kconfig.kgdb2403logplain
-rw-r--r--Kconfig.kmemcheck2967logplain
-rw-r--r--Makefile4031logplain
-rw-r--r--argv_split.c1826logplain
-rw-r--r--atomic64.c4352logplain
-rw-r--r--atomic64_test.c3587arch/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
6975logplain
-rw-r--r--cpumask.c4490logplain
-rw-r--r--crc-ccitt.c3052logplain
-rw-r--r--crc-itu-t.c2892logplain
-rw-r--r--crc-t10dif.c2965logplain
-rw-r--r--crc16.c2838logplain
-rw-r--r--crc32.c42819logplain
-rw-r--r--crc32defs.h2054logplain
-rw-r--r--crc7.c2329logplain
-rw-r--r--crc8.c2461logplain
-rw-r--r--ctype.c1390logplain
-rw-r--r--debug_locks.c1108logplain
-rw-r--r--debugobjects.c26845logplain
-rw-r--r--dec_and_lock.c784logplain
-rw-r--r--decompress.c1373logplain
-rw-r--r--decompress_bunzip2.c23975logplain
-rw-r--r--decompress_inflate.c3811logplain
-rw-r--r--decompress_unlzma.c16161logplain
-rw-r--r--decompress_unlzo.c6965logplain
-rw-r--r--decompress_unxz.c10892logplain
-rw-r--r--devres.c9411logplain
-rw-r--r--digsig.c5831logplain
-rw-r--r--div64.c3154logplain
-rw-r--r--dma-debug.c33945logplain
-rw-r--r--dump_stack.c290logplain
-rw-r--r--dynamic_debug.c23285logplain
-rw-r--r--dynamic_queue_limits.c4301logplain
-rw-r--r--extable.c2486logplain
-rw-r--r--fault-inject.c6041logplain
-rw-r--r--find_last_bit.c1139logplain
-rw-r--r--find_next_bit.c6535logplain
-rw-r--r--flex_array.c11135logplain
-rw-r--r--gcd.c291logplain
-rw-r--r--gen_crc32table.c3318logplain
-rw-r--r--genalloc.c11351logplain
-rw-r--r--halfmd4.c2028logplain
-rw-r--r--hexdump.c7158logplain
-rw-r--r--hweight.c1911logplain
-rw-r--r--idr.c24078logplain
-rw-r--r--inflate.c39549logplain
-rw-r--r--int_sqrt.c533logplain
-rw-r--r--iomap.c6608logplain
-rw-r--r--iomap_copy.c2198logplain
-rw-r--r--iommu-helper.c1029logplain
-rw-r--r--ioremap.c2195logplain
-rw-r--r--irq_regs.c604logplain
-rw-r--r--is_single_threaded.c1363logplain
-rw-r--r--kasprintf.c704logplain
-rw-r--r--klist.c9566logplain
-rw-r--r--kobject.c23730logplain
-rw-r--r--kobject_uevent.c10622logplain
-rw-r--r--kstrtox.c6123logplain
-rw-r--r--kstrtox.h254logplain
-rw-r--r--lcm.c288logplain
-rw-r--r--libcrc32c.c2133logplain
-rw-r--r--list_debug.c1962logplain
-rw-r--r--list_sort.c7193logplain
-rw-r--r--llist.c2811logplain
-rw-r--r--locking-selftest-hardirq.h207logplain
-rw-r--r--locking-selftest-mutex.h120logplain
-rw-r--r--locking-selftest-rlock-hardirq.h74logplain
-rw-r--r--locking-selftest-rlock-softirq.h74logplain
-rw-r--r--locking-selftest-rlock.h158logplain
-rw-r--r--locking-selftest-rsem.h163logplain
-rw-r--r--locking-selftest-softirq.h207logplain
-rw-r--r--locking-selftest-spin-hardirq.h73logplain
-rw-r--r--locking-selftest-spin-softirq.h73logplain
-rw-r--r--locking-selftest-spin.h118logplain
-rw-r--r--locking-selftest-wlock-hardirq.h74logplain
-rw-r--r--locking-selftest-wlock-softirq.h74logplain
-rw-r--r--locking-selftest-wlock.h158logplain
-rw-r--r--locking-selftest-wsem.h163logplain
-rw-r--r--locking-selftest.c29290logplain
-rw-r--r--lru_cache.c14933logplain
d---------lzo163logplain
-rw-r--r--md5.c3742logplain
d---------mpi1140logplain
-rw-r--r--nlattr.c12556logplain
-rw-r--r--parser.c6234logplain
-rw-r--r--pci_iomap.c1383logplain
-rw-r--r--percpu_counter.c5235logplain
-rw-r--r--plist.c4839logplain
-rw-r--r--prio_heap.c1477logplain
-rw-r--r--prio_tree.c12104logplain
-rw-r--r--proportions.c9551logplain
-rw-r--r--radix-tree.c38983logplain
d---------raid6457logplain
-rw-r--r--random32.c4015logplain
-rw-r--r--ratelimit.c1567logplain
-rw-r--r--rational.c1552logplain
-rw-r--r--rbtree.c10295logplain
-rw-r--r--reciprocal_div.c218logplain
d---------reed_solomon156logplain
-rw-r--r--rwsem-spinlock.c7179logplain
-rw-r--r--rwsem.c8268logplain
-rw-r--r--scatterlist.c13050logplain
-rw-r--r--sha1.c6197logplain
-rw-r--r--show_mem.c1375logplain
-rw-r--r--smp_processor_id.c1122logplain
-rw-r--r--sort.c2605logplain
-rw-r--r--spinlock_debug.c6972logplain
-rw-r--r--string.c16632logplain
-rw-r--r--string_helpers.c1702logplain
-rw-r--r--swiotlb.c26277logplain
-rw-r--r--syscall.c2475logplain
-rw-r--r--test-kstrtox.c17808logplain
-rw-r--r--textsearch.c9800logplain
-rw-r--r--timerqueue.c3178logplain
-rw-r--r--ts_bm.c5408logplain
-rw-r--r--ts_fsm.c10866logplain
-rw-r--r--ts_kmp.c4437logplain
-rw-r--r--uuid.c1398logplain
-rw-r--r--vsprintf.c48826logplain
d---------xz433logplain
d---------zlib_deflate189logplain
d---------zlib_inflate414logplain