con3215.c (6f84981772535e670e4e2df051a672af229b6694) | con3215.c (515be7baeddb04d786e3a7f4072791087c25bb04) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * 3215 line mode terminal driver. 4 * 5 * Copyright IBM Corp. 1999, 2009 6 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> 7 * 8 * Updated: --- 615 unchanged lines hidden (view full) --- 624 */ 625static int raw3215_startup(struct raw3215_info *raw) 626{ 627 unsigned long flags; 628 629 if (tty_port_initialized(&raw->port)) 630 return 0; 631 raw->line_pos = 0; | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * 3215 line mode terminal driver. 4 * 5 * Copyright IBM Corp. 1999, 2009 6 * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com> 7 * 8 * Updated: --- 615 unchanged lines hidden (view full) --- 624 */ 625static int raw3215_startup(struct raw3215_info *raw) 626{ 627 unsigned long flags; 628 629 if (tty_port_initialized(&raw->port)) 630 return 0; 631 raw->line_pos = 0; |
632 tty_port_set_initialized(&raw->port, 1); | 632 tty_port_set_initialized(&raw->port, true); |
633 spin_lock_irqsave(get_ccwdev_lock(raw->cdev), flags); 634 raw3215_try_io(raw); 635 spin_unlock_irqrestore(get_ccwdev_lock(raw->cdev), flags); 636 637 return 0; 638} 639 640/* --- 13 unchanged lines hidden (view full) --- 654 raw->queued_read != NULL) { 655 add_wait_queue(&raw->empty_wait, &wait); 656 set_current_state(TASK_INTERRUPTIBLE); 657 spin_unlock_irqrestore(get_ccwdev_lock(raw->cdev), flags); 658 schedule(); 659 spin_lock_irqsave(get_ccwdev_lock(raw->cdev), flags); 660 remove_wait_queue(&raw->empty_wait, &wait); 661 set_current_state(TASK_RUNNING); | 633 spin_lock_irqsave(get_ccwdev_lock(raw->cdev), flags); 634 raw3215_try_io(raw); 635 spin_unlock_irqrestore(get_ccwdev_lock(raw->cdev), flags); 636 637 return 0; 638} 639 640/* --- 13 unchanged lines hidden (view full) --- 654 raw->queued_read != NULL) { 655 add_wait_queue(&raw->empty_wait, &wait); 656 set_current_state(TASK_INTERRUPTIBLE); 657 spin_unlock_irqrestore(get_ccwdev_lock(raw->cdev), flags); 658 schedule(); 659 spin_lock_irqsave(get_ccwdev_lock(raw->cdev), flags); 660 remove_wait_queue(&raw->empty_wait, &wait); 661 set_current_state(TASK_RUNNING); |
662 tty_port_set_initialized(&raw->port, 1); | 662 tty_port_set_initialized(&raw->port, true); |
663 } 664 spin_unlock_irqrestore(get_ccwdev_lock(raw->cdev), flags); 665} 666 667static struct raw3215_info *raw3215_alloc_info(void) 668{ 669 struct raw3215_info *info; 670 --- 521 unchanged lines hidden --- | 663 } 664 spin_unlock_irqrestore(get_ccwdev_lock(raw->cdev), flags); 665} 666 667static struct raw3215_info *raw3215_alloc_info(void) 668{ 669 struct raw3215_info *info; 670 --- 521 unchanged lines hidden --- |