/linux-master/drivers/tty/serial/ |
H A D | sunsu.c | 104 static unsigned int serial_in(struct uart_sunsu_port *up, int offset) argument 106 offset <<= up->port.regshift; 108 switch (up->port.iotype) { 110 outb(up->port.hub6 - 1 + offset, up->port.iobase); 111 return inb(up->port.iobase + 1); 114 return readb(up->port.membase + offset); 117 return inb(up->port.iobase + offset); 121 static void serial_out(struct uart_sunsu_port *up, int offset, int value) argument 136 offset <<= up 166 serial_icr_write(struct uart_sunsu_port *up, int offset, int value) argument 191 __enable_rsa(struct uart_sunsu_port *up) argument 211 enable_rsa(struct uart_sunsu_port *up) argument 230 disable_rsa(struct uart_sunsu_port *up) argument 265 struct uart_sunsu_port *up = local 281 struct uart_sunsu_port *up = local 300 struct uart_sunsu_port *up = local 310 struct uart_sunsu_port *up = local 321 receive_chars(struct uart_sunsu_port *up, unsigned char *status) argument 397 transmit_chars(struct uart_sunsu_port *up) argument 432 check_modem_status(struct uart_sunsu_port *up) argument 455 struct uart_sunsu_port *up = dev_id; local 484 sunsu_change_mouse_baud(struct uart_sunsu_port *up) argument 497 receive_kbd_ms_chars(struct uart_sunsu_port *up, int is_break) argument 529 struct uart_sunsu_port *up = dev_id; local 543 struct uart_sunsu_port *up = local 557 struct uart_sunsu_port *up = local 578 struct uart_sunsu_port *up = local 598 struct uart_sunsu_port *up = local 613 struct uart_sunsu_port *up = local 724 struct uart_sunsu_port *up = local 773 struct uart_sunsu_port *up = local 923 struct uart_sunsu_port *up = local 982 struct uart_sunsu_port *up = serio->port_data; local 1002 struct uart_sunsu_port *up = serio->port_data; local 1019 struct uart_sunsu_port *up = serio->port_data; local 1029 sunsu_autoconfig(struct uart_sunsu_port *up) argument 1186 sunsu_kbd_ms_init(struct uart_sunsu_port *up) argument 1254 wait_for_xmitr(struct uart_sunsu_port *up) argument 1281 struct uart_sunsu_port *up = local 1295 struct uart_sunsu_port *up = &sunsu_ports[co->index]; local 1427 struct uart_sunsu_port *up; local 1520 struct uart_sunsu_port *up = platform_get_drvdata(op); local [all...] |
H A D | omap-serial.c | 172 static void serial_omap_mdr1_errataset(struct uart_omap_port *up, u8 mdr1); 174 static inline unsigned int serial_in(struct uart_omap_port *up, int offset) argument 176 offset <<= up->port.regshift; 177 return readw(up->port.membase + offset); 180 static inline void serial_out(struct uart_omap_port *up, int offset, int value) argument 182 offset <<= up->port.regshift; 183 writew(value, up->port.membase + offset); 186 static inline void serial_omap_clear_fifos(struct uart_omap_port *up) argument 188 serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO); 189 serial_out(up, UART_FC 195 serial_omap_get_context_loss_count(struct uart_omap_port *up) argument 206 serial_omap_enable_wakeup(struct uart_omap_port *up, bool enable) argument 271 struct uart_omap_port *up = to_uart_omap_port(port); local 281 struct uart_omap_port *up = to_uart_omap_port(port); local 327 struct uart_omap_port *up = to_uart_omap_port(port); local 334 serial_omap_put_char(struct uart_omap_port *up, unsigned char ch) argument 343 transmit_chars(struct uart_omap_port *up, unsigned int lsr) argument 353 serial_omap_enable_ier_thri(struct uart_omap_port *up) argument 363 struct uart_omap_port *up = to_uart_omap_port(port); local 390 struct uart_omap_port *up = to_uart_omap_port(port); local 401 struct uart_omap_port *up = to_uart_omap_port(port); local 410 check_modem_status(struct uart_omap_port *up) argument 438 serial_omap_rlsi(struct uart_omap_port *up, unsigned int lsr) argument 494 serial_omap_rdi(struct uart_omap_port *up, unsigned int lsr) argument 524 struct uart_omap_port *up = dev_id; local 577 struct uart_omap_port *up = to_uart_omap_port(port); local 591 struct uart_omap_port *up = to_uart_omap_port(port); local 612 struct uart_omap_port *up = to_uart_omap_port(port); local 646 struct uart_omap_port *up = to_uart_omap_port(port); local 661 struct uart_omap_port *up = to_uart_omap_port(port); local 734 struct uart_omap_port *up = to_uart_omap_port(port); local 769 struct uart_omap_port *up = container_of(work, struct uart_omap_port, local 779 struct uart_omap_port *up = to_uart_omap_port(port); local 1024 struct uart_omap_port *up = to_uart_omap_port(port); local 1053 struct uart_omap_port *up = to_uart_omap_port(port); local 1072 struct uart_omap_port *up = to_uart_omap_port(port); local 1078 wait_for_xmitr(struct uart_omap_port *up) argument 1113 struct uart_omap_port *up = to_uart_omap_port(port); local 1121 struct uart_omap_port *up = to_uart_omap_port(port); local 1200 struct uart_omap_port *up = to_uart_omap_port(port); local 1210 struct uart_omap_port *up = serial_omap_console_ports[co->index]; local 1251 struct uart_omap_port *up; local 1277 serial_omap_add_console_port(struct uart_omap_port *up) argument 1288 serial_omap_add_console_port(struct uart_omap_port *up) argument 1298 struct uart_omap_port *up = to_uart_omap_port(port); local 1366 struct uart_omap_port *up = dev_get_drvdata(dev); local 1375 struct uart_omap_port *up = dev_get_drvdata(dev); local 1382 struct uart_omap_port *up = dev_get_drvdata(dev); local 1397 struct uart_omap_port *up = dev_get_drvdata(dev); local 1411 omap_serial_fill_features_erratas(struct uart_omap_port *up) argument 1489 serial_omap_probe_rs485(struct uart_omap_port *up, struct device *dev) argument 1543 struct uart_omap_port *up; local 1660 struct uart_omap_port *up = platform_get_drvdata(dev); local 1681 serial_omap_mdr1_errataset(struct uart_omap_port *up, u8 mdr1) argument 1707 serial_omap_restore_context(struct uart_omap_port *up) argument 1739 struct uart_omap_port *up = dev_get_drvdata(dev); local 1766 struct uart_omap_port *up = dev_get_drvdata(dev); local [all...] |
H A D | sunsab.c | 92 static __inline__ void sunsab_tec_wait(struct uart_sunsab_port *up) argument 94 int timeout = up->tec_timeout; 96 while ((readb(&up->regs->r.star) & SAB82532_STAR_TEC) && --timeout) 100 static __inline__ void sunsab_cec_wait(struct uart_sunsab_port *up) argument 102 int timeout = up->cec_timeout; 104 while ((readb(&up->regs->r.star) & SAB82532_STAR_CEC) && --timeout) 109 receive_chars(struct uart_sunsab_port *up, argument 119 if (up->port.state != NULL) /* Unopened serial console */ 120 port = &up->port.state->port; 129 count = readb(&up 232 transmit_chars(struct uart_sunsab_port *up, union sab82532_irq_status *stat) argument 286 check_status(struct uart_sunsab_port *up, union sab82532_irq_status *stat) argument 307 struct uart_sunsab_port *up = dev_id; local 345 struct uart_sunsab_port *up = local 361 struct uart_sunsab_port *up = local 385 struct uart_sunsab_port *up = local 407 struct uart_sunsab_port *up = local 415 sunsab_tx_idle(struct uart_sunsab_port *up) argument 436 struct uart_sunsab_port *up = local 469 struct uart_sunsab_port *up = local 487 struct uart_sunsab_port *up = local 497 struct uart_sunsab_port *up = local 521 struct uart_sunsab_port *up = local 593 struct uart_sunsab_port *up = local 678 sunsab_convert_to_sab(struct uart_sunsab_port *up, unsigned int cflag, unsigned int iflag, unsigned int baud, unsigned int quot) argument 776 struct uart_sunsab_port *up = local 789 struct uart_sunsab_port *up = (void *)port; local 846 struct uart_sunsab_port *up = local 855 struct uart_sunsab_port *up = &sunsab_ports[con->index]; local 873 struct uart_sunsab_port *up = &sunsab_ports[con->index]; local 959 sunsab_init_one(struct uart_sunsab_port *up, struct platform_device *op, unsigned long offset, int line) argument 1016 struct uart_sunsab_port *up; local 1071 struct uart_sunsab_port *up = platform_get_drvdata(op); local [all...] |
H A D | ip22zilog.c | 233 static void ip22zilog_maybe_update_regs(struct uart_ip22zilog_port *up, argument 236 if (!ZS_REGS_HELD(up)) { 237 if (ZS_TX_ACTIVE(up)) { 238 up->flags |= IP22ZILOG_FLAG_REGS_HELD; 240 __load_zsregs(channel, up->curregs); 248 static bool ip22zilog_receive_chars(struct uart_ip22zilog_port *up, argument 253 bool push = up->port.state != NULL; 271 ch &= up->parity_mask; 275 r1 |= up->tty_break; 279 up 313 ip22zilog_status_handle(struct uart_ip22zilog_port *up, struct zilog_channel *channel) argument 355 ip22zilog_transmit_chars(struct uart_ip22zilog_port *up, struct zilog_channel *channel) argument 427 struct uart_ip22zilog_port *up = dev_id; local 543 struct uart_ip22zilog_port *up = local 568 struct uart_ip22zilog_port *up = local 577 struct uart_ip22zilog_port *up = local 621 struct uart_ip22zilog_port *up = UART_ZILOG(port); local 637 struct uart_ip22zilog_port *up = local 654 struct uart_ip22zilog_port *up = local 680 __ip22zilog_reset(struct uart_ip22zilog_port *up) argument 709 __ip22zilog_startup(struct uart_ip22zilog_port *up) argument 732 struct uart_ip22zilog_port *up = UART_ZILOG(port); local 771 struct uart_ip22zilog_port *up = UART_ZILOG(port); local 798 ip22zilog_convert_to_zs(struct uart_ip22zilog_port *up, unsigned int cflag, unsigned int iflag, int brg) argument 876 struct uart_ip22zilog_port *up = local 1016 struct uart_ip22zilog_port *up = &ip22zilog_port_table[con->index]; local 1027 struct uart_ip22zilog_port *up = &ip22zilog_port_table[con->index]; local 1078 struct uart_ip22zilog_port *up; local 1133 struct uart_ip22zilog_port *up = &ip22zilog_port_table[channel]; local 1170 struct uart_ip22zilog_port *up = &ip22zilog_port_table[i]; local 1191 struct uart_ip22zilog_port *up; local [all...] |
H A D | serial_txx9.c | 159 static inline unsigned int sio_in(struct uart_port *up, int offset) argument 161 switch (up->iotype) { 163 return __raw_readl(up->membase + offset); 165 return inl(up->iobase + offset); 170 sio_out(struct uart_port *up, int offset, int value) argument 172 switch (up->iotype) { 174 __raw_writel(value, up->membase + offset); 177 outl(value, up->iobase + offset); 183 sio_mask(struct uart_port *up, int offset, unsigned int value) argument 185 sio_out(up, offse 188 sio_set(struct uart_port *up, int offset, unsigned int value) argument 194 sio_quot_set(struct uart_port *up, int quot) argument 209 serial_txx9_stop_tx(struct uart_port *up) argument 214 serial_txx9_start_tx(struct uart_port *up) argument 219 serial_txx9_stop_rx(struct uart_port *up) argument 224 serial_txx9_initialize(struct uart_port *up) argument 248 receive_chars(struct uart_port *up, unsigned int *status) argument 322 transmit_chars(struct uart_port *up) argument 335 struct uart_port *up = dev_id; local 366 serial_txx9_tx_empty(struct uart_port *up) argument 378 serial_txx9_get_mctrl(struct uart_port *up) argument 390 serial_txx9_set_mctrl(struct uart_port *up, unsigned int mctrl) argument 399 serial_txx9_break_ctl(struct uart_port *up, int break_state) argument 415 wait_for_xmitr(struct uart_port *up) argument 440 serial_txx9_get_poll_char(struct uart_port *up) argument 466 serial_txx9_put_poll_char(struct uart_port *up, unsigned char c) argument 492 serial_txx9_startup(struct uart_port *up) argument 536 serial_txx9_shutdown(struct uart_port *up) argument 574 serial_txx9_set_termios(struct uart_port *up, struct ktermios *termios, const struct ktermios *old) argument 699 serial_txx9_request_resource(struct uart_port *up) argument 731 serial_txx9_release_resource(struct uart_port *up) argument 754 serial_txx9_release_port(struct uart_port *up) argument 759 serial_txx9_request_port(struct uart_port *up) argument 764 serial_txx9_config_port(struct uart_port *up, int uflags) argument 821 struct uart_port *up = &serial_txx9_ports[i]; local 833 serial_txx9_console_putchar(struct uart_port *up, unsigned char ch) argument 848 struct uart_port *up = &serial_txx9_ports[co->index]; local 876 struct uart_port *up; local 1061 struct uart_port *up = &serial_txx9_ports[i]; local 1074 struct uart_port *up = &serial_txx9_ports[i]; local 1088 struct uart_port *up = &serial_txx9_ports[i]; local 1147 struct uart_port *up = pci_get_drvdata(dev); local 1158 struct uart_port *up = pci_get_drvdata(dev); local 1169 struct uart_port *up = pci_get_drvdata(dev); local 1254 struct uart_port *up = &serial_txx9_ports[i]; local [all...] |
H A D | pxa.c | 52 static inline unsigned int serial_in(struct uart_pxa_port *up, int offset) argument 55 return readl(up->port.membase + offset); 58 static inline void serial_out(struct uart_pxa_port *up, int offset, int value) argument 61 writel(value, up->port.membase + offset); 66 struct uart_pxa_port *up = (struct uart_pxa_port *)port; local 68 up->ier |= UART_IER_MSI; 69 serial_out(up, UART_IER, up->ier); 74 struct uart_pxa_port *up = (struct uart_pxa_port *)port; local 76 if (up 84 struct uart_pxa_port *up = (struct uart_pxa_port *)port; local 91 receive_chars(struct uart_pxa_port *up, int *status) argument 175 transmit_chars(struct uart_pxa_port *up) argument 187 struct uart_pxa_port *up = (struct uart_pxa_port *)port; local 196 check_modem_status(struct uart_pxa_port *up) argument 222 struct uart_pxa_port *up = dev_id; local 241 struct uart_pxa_port *up = (struct uart_pxa_port *)port; local 254 struct uart_pxa_port *up = (struct uart_pxa_port *)port; local 274 struct uart_pxa_port *up = (struct uart_pxa_port *)port; local 295 struct uart_pxa_port *up = (struct uart_pxa_port *)port; local 309 struct uart_pxa_port *up = (struct uart_pxa_port *)port; local 375 struct uart_pxa_port *up = (struct uart_pxa_port *)port; local 405 struct uart_pxa_port *up = (struct uart_pxa_port *)port; local 514 struct uart_pxa_port *up = (struct uart_pxa_port *)port; local 533 struct uart_pxa_port *up = (struct uart_pxa_port *)port; local 547 struct uart_pxa_port *up = (struct uart_pxa_port *)port; local 559 wait_for_xmitr(struct uart_pxa_port *up) argument 586 struct uart_pxa_port *up = (struct uart_pxa_port *)port; local 601 struct uart_pxa_port *up = serial_pxa_ports[co->index]; local 640 struct uart_pxa_port *up = (struct uart_pxa_port *)port; local 654 struct uart_pxa_port *up = (struct uart_pxa_port *)port; local 681 struct uart_pxa_port *up; local [all...] |
H A D | sunzilog.c | 268 static void sunzilog_maybe_update_regs(struct uart_sunzilog_port *up, argument 271 if (!ZS_REGS_HELD(up)) { 272 if (ZS_TX_ACTIVE(up)) { 273 up->flags |= SUNZILOG_FLAG_REGS_HELD; 275 __load_zsregs(channel, up->curregs); 280 static void sunzilog_change_mouse_baud(struct uart_sunzilog_port *up) argument 282 unsigned int cur_cflag = up->cflag; 285 up->cflag &= ~CBAUD; 286 up->cflag |= suncore_mouse_baud_cflag_next(cur_cflag, &new_baud); 289 up 294 sunzilog_kbdms_receive_chars(struct uart_sunzilog_port *up, unsigned char ch, int is_break) argument 324 sunzilog_receive_chars(struct uart_sunzilog_port *up, struct zilog_channel __iomem *channel) argument 402 sunzilog_status_handle(struct uart_sunzilog_port *up, struct zilog_channel __iomem *channel) argument 453 sunzilog_transmit_chars(struct uart_sunzilog_port *up, struct zilog_channel __iomem *channel) argument 526 struct uart_sunzilog_port *up = dev_id; local 643 struct uart_sunzilog_port *up = local 668 struct uart_sunzilog_port *up = local 677 struct uart_sunzilog_port *up = local 721 struct uart_sunzilog_port *up = UART_ZILOG(port); local 737 struct uart_sunzilog_port *up = local 754 struct uart_sunzilog_port *up = local 780 __sunzilog_startup(struct uart_sunzilog_port *up) argument 797 struct uart_sunzilog_port *up = UART_ZILOG(port); local 836 struct uart_sunzilog_port *up = UART_ZILOG(port); local 863 sunzilog_convert_to_zs(struct uart_sunzilog_port *up, unsigned int cflag, unsigned int iflag, int brg) argument 941 struct uart_sunzilog_port *up = local 970 struct uart_sunzilog_port *up = UART_ZILOG(port); local 1002 struct uart_sunzilog_port *up = local 1037 struct uart_sunzilog_port *up = local 1082 struct uart_sunzilog_port *up; local 1154 struct uart_sunzilog_port *up = serio->port_data; local 1168 struct uart_sunzilog_port *up = serio->port_data; local 1185 struct uart_sunzilog_port *up = serio->port_data; local 1199 struct uart_sunzilog_port *up = &sunzilog_port_table[con->index]; local 1217 struct uart_sunzilog_port *up = &sunzilog_port_table[con->index]; local 1279 sunzilog_init_kbdms(struct uart_sunzilog_port *up) argument 1299 sunzilog_register_serio(struct uart_sunzilog_port *up) argument 1328 sunzilog_init_hw(struct uart_sunzilog_port *up) argument 1401 struct uart_sunzilog_port *up; local 1506 zs_remove_one(struct uart_sunzilog_port *up) argument 1518 struct uart_sunzilog_port *up = platform_get_drvdata(op); local 1576 struct uart_sunzilog_port *up = sunzilog_irq_chain; local 1617 struct uart_sunzilog_port *up = sunzilog_irq_chain; local [all...] |
H A D | ar933x_uart.c | 57 static inline unsigned int ar933x_uart_read(struct ar933x_uart_port *up, argument 60 return readl(up->port.membase + offset); 63 static inline void ar933x_uart_write(struct ar933x_uart_port *up, argument 66 writel(value, up->port.membase + offset); 69 static inline void ar933x_uart_rmw(struct ar933x_uart_port *up, argument 76 t = ar933x_uart_read(up, offset); 79 ar933x_uart_write(up, offset, t); 82 static inline void ar933x_uart_rmw_set(struct ar933x_uart_port *up, argument 86 ar933x_uart_rmw(up, offset, 0, val); 89 static inline void ar933x_uart_rmw_clear(struct ar933x_uart_port *up, argument 96 ar933x_uart_start_tx_interrupt(struct ar933x_uart_port *up) argument 102 ar933x_uart_stop_tx_interrupt(struct ar933x_uart_port *up) argument 108 ar933x_uart_start_rx_interrupt(struct ar933x_uart_port *up) argument 114 ar933x_uart_stop_rx_interrupt(struct ar933x_uart_port *up) argument 120 ar933x_uart_putc(struct ar933x_uart_port *up, int ch) argument 131 struct ar933x_uart_port *up = local 145 struct ar933x_uart_port *up = local 156 struct ar933x_uart_port *up = local 164 struct ar933x_uart_port *up = local 170 ar933x_uart_wait_tx_complete(struct ar933x_uart_port *up) argument 187 ar933x_uart_rx_flush(struct ar933x_uart_port *up) argument 203 struct ar933x_uart_port *up = local 211 struct ar933x_uart_port *up = local 219 struct ar933x_uart_port *up = local 288 struct ar933x_uart_port *up = local 361 ar933x_uart_rx_chars(struct ar933x_uart_port *up) argument 391 ar933x_uart_tx_chars(struct ar933x_uart_port *up) argument 446 struct ar933x_uart_port *up = dev_id; local 478 struct ar933x_uart_port *up = local 508 struct ar933x_uart_port *up = local 547 struct ar933x_uart_port *up = local 585 struct ar933x_uart_port *up = local 599 ar933x_uart_wait_xmitr(struct ar933x_uart_port *up) argument 615 struct ar933x_uart_port *up = local 625 struct ar933x_uart_port *up = ar933x_console_ports[co->index]; local 658 struct ar933x_uart_port *up; local 703 struct ar933x_uart_port *up; local 817 struct ar933x_uart_port *up; local [all...] |
H A D | ma35d1_serial.c | 105 #define MA35_ISR_WK_IF BIT(6) /* UART Wake-up Interrupt Flag */ 189 struct uart_ma35d1_port *up = to_ma35d1_uart_port(port); local 191 __stop_tx(up); 194 static void transmit_chars(struct uart_ma35d1_port *up) argument 199 if (uart_tx_stopped(&up->port)) { 200 ma35d1serial_stop_tx(&up->port); 204 serial_in(up, MA35_FSR_REG)); 205 uart_port_tx_limited(&up->port, ch, count, 206 !(serial_in(up, MA35_FSR_REG) & MA35_FSR_TX_FULL), 207 serial_out(up, MA35_THR_RE 213 struct uart_ma35d1_port *up = to_ma35d1_uart_port(port); local 224 struct uart_ma35d1_port *up = to_ma35d1_uart_port(port); local 232 receive_chars(struct uart_ma35d1_port *up) argument 287 struct uart_ma35d1_port *up = to_ma35d1_uart_port(port); local 308 struct uart_ma35d1_port *up = to_ma35d1_uart_port(port); local 320 struct uart_ma35d1_port *up = to_ma35d1_uart_port(port); local 332 struct uart_ma35d1_port *up = to_ma35d1_uart_port(port); local 363 struct uart_ma35d1_port *up = to_ma35d1_uart_port(port); local 379 struct uart_ma35d1_port *up = to_ma35d1_uart_port(port); local 407 struct uart_ma35d1_port *up = to_ma35d1_uart_port(port); local 417 struct uart_ma35d1_port *up = to_ma35d1_uart_port(port); local 530 wait_for_xmitr(struct uart_ma35d1_port *up) argument 541 struct uart_ma35d1_port *up = to_ma35d1_uart_port(port); local 555 struct uart_ma35d1_port *up; local 688 struct uart_ma35d1_port *up; local 760 struct uart_ma35d1_port *up = to_ma35d1_uart_port(port); local 769 struct uart_ma35d1_port *up = to_ma35d1_uart_port(port); local 783 struct uart_ma35d1_port *up = to_ma35d1_uart_port(port); local [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | uar.c | 83 struct mlx5_uars_page *up = container_of(kref, struct mlx5_uars_page, ref_count); local 85 list_del(&up->list); 86 iounmap(up->map); 87 if (mlx5_cmd_free_uar(up->mdev, up->index)) 88 mlx5_core_warn(up->mdev, "failed to free uar index %d\n", up->index); 89 bitmap_free(up->reg_bitmap); 90 bitmap_free(up->fp_bitmap); 91 kfree(up); 97 struct mlx5_uars_page *up; local 186 mlx5_put_uars_page(struct mlx5_core_dev *mdev, struct mlx5_uars_page *up) argument 208 struct mlx5_uars_page *up; local 273 addr_to_dbi_in_syspage(struct mlx5_core_dev *dev, struct mlx5_uars_page *up, struct mlx5_sq_bfreg *bfreg) argument 292 struct mlx5_uars_page *up; local [all...] |
/linux-master/drivers/mtd/maps/ |
H A D | sun_uflash.c | 52 struct uflash_dev *up; local 64 up = kzalloc(sizeof(struct uflash_dev), GFP_KERNEL); 65 if (!up) 69 memcpy(&up->map, &uflash_map_templ, sizeof(uflash_map_templ)); 71 up->map.size = resource_size(&op->resource[0]); 73 up->name = of_get_property(dp, "model", NULL); 74 if (up->name && 0 < strlen(up->name)) 75 up->map.name = up 123 struct uflash_dev *up = dev_get_drvdata(&op->dev); local [all...] |
/linux-master/drivers/tty/serial/8250/ |
H A D | 8250_port.c | 325 static u32 default_serial_dl_read(struct uart_8250_port *up) argument 328 unsigned char dll = serial_in(up, UART_DLL); 329 unsigned char dlm = serial_in(up, UART_DLM); 335 static void default_serial_dl_write(struct uart_8250_port *up, u32 value) argument 337 serial_out(up, UART_DLL, value & 0xff); 338 serial_out(up, UART_DLM, value >> 8 & 0xff); 419 struct uart_8250_port *up = up_to_u8250p(p); local 421 up->dl_read = default_serial_dl_read; 422 up->dl_write = default_serial_dl_write; 456 up 613 struct uart_8250_port *up = up_to_u8250p(port); local 701 serial8250_clear_IER(struct uart_8250_port *up) argument 714 __enable_rsa(struct uart_8250_port *up) argument 734 enable_rsa(struct uart_8250_port *up) argument 753 disable_rsa(struct uart_8250_port *up) argument 782 size_fifo(struct uart_8250_port *up) argument 846 autoconfig_has_efr(struct uart_8250_port *up) argument 934 autoconfig_8250(struct uart_8250_port *up) argument 951 broken_efr(struct uart_8250_port *up) argument 970 autoconfig_16550a(struct uart_8250_port *up) argument 1143 autoconfig(struct uart_8250_port *up) argument 1312 autoconfig_irq(struct uart_8250_port *up) argument 1372 struct uart_8250_port *up = up_to_u8250p(port); local 1507 struct uart_8250_port *up = up_to_u8250p(port); local 1524 struct uart_8250_port *up = up_to_u8250p(port); local 1557 serial8250_em485_start_tx(struct uart_8250_port *up) argument 1575 struct uart_8250_port *up = up_to_u8250p(port); local 1627 struct uart_8250_port *up = up_to_u8250p(port); local 1658 struct uart_8250_port *up = up_to_u8250p(port); local 1675 struct uart_8250_port *up = up_to_u8250p(port); local 1693 serial8250_read_char(struct uart_8250_port *up, u16 lsr) argument 1761 serial8250_rx_chars(struct uart_8250_port *up, u16 lsr) argument 1778 serial8250_tx_chars(struct uart_8250_port *up) argument 1838 serial8250_modem_status(struct uart_8250_port *up) argument 1863 handle_rx_dma(struct uart_8250_port *up, unsigned int iir) argument 1894 struct uart_8250_port *up = up_to_u8250p(port); local 1945 struct uart_8250_port *up = up_to_u8250p(port); local 1971 struct uart_8250_port *up = up_to_u8250p(port); local 1984 struct uart_8250_port *up = up_to_u8250p(port); local 2002 struct uart_8250_port *up = up_to_u8250p(port); local 2027 struct uart_8250_port *up = up_to_u8250p(port); local 2051 struct uart_8250_port *up = up_to_u8250p(port); local 2065 wait_for_lsr(struct uart_8250_port *up, int bits) argument 2085 wait_for_xmitr(struct uart_8250_port *up, int bits) argument 2112 struct uart_8250_port *up = up_to_u8250p(port); local 2136 struct uart_8250_port *up = up_to_u8250p(port); local 2172 struct uart_8250_port *up = up_to_u8250p(port); local 2466 struct uart_8250_port *up = up_to_u8250p(port); local 2534 struct uart_8250_port *up = up_to_u8250p(port); local 2595 serial8250_compute_lcr(struct uart_8250_port *up, tcflag_t c_cflag) argument 2617 struct uart_8250_port *up = up_to_u8250p(port); local 2722 struct uart_8250_port *up = up_to_u8250p(port); local 2926 serial8250_request_std_resource(struct uart_8250_port *up) argument 2967 serial8250_release_std_resource(struct uart_8250_port *up) argument 2999 struct uart_8250_port *up = up_to_u8250p(port); local 3006 struct uart_8250_port *up = up_to_u8250p(port); local 3011 fcr_get_rxtrig_bytes(struct uart_8250_port *up) argument 3021 bytes_to_fcr_rxtrig(struct uart_8250_port *up, unsigned char bytes) argument 3042 struct uart_8250_port *up = up_to_u8250p(uport); local 3078 struct uart_8250_port *up = up_to_u8250p(uport); local 3138 register_dev_spec_attr_grp(struct uart_8250_port *up) argument 3148 struct uart_8250_port *up = up_to_u8250p(port); local 3226 serial8250_init_port(struct uart_8250_port *up) argument 3240 serial8250_set_defaults(struct uart_8250_port *up) argument 3271 struct uart_8250_port *up = up_to_u8250p(port); local 3280 serial8250_console_restore(struct uart_8250_port *up) argument 3309 serial8250_console_fifo_write(struct uart_8250_port *up, const char *s, unsigned int count) argument 3341 serial8250_console_write(struct uart_8250_port *up, const char *s, unsigned int count) argument [all...] |
H A D | 8250_ioc3.c | 37 struct uart_8250_port up; local 59 memset(&up, 0, sizeof(struct uart_8250_port)); 60 up.port.iotype = UPIO_MEM; 61 up.port.uartclk = IOC3_UARTCLK; 62 up.port.type = PORT_16550A; 63 up.port.irq = irq; 64 up.port.flags = (UPF_BOOT_AUTOCONF | UPF_SHARE_IRQ); 65 up.port.dev = &pdev->dev; 66 up.port.membase = membase; 67 up [all...] |
H A D | 8250_core.c | 121 struct uart_8250_port *up; local 124 up = list_entry(l, struct uart_8250_port, list); 125 port = &up->port; 153 static void serial_do_unlink(struct irq_info *i, struct uart_8250_port *up) argument 158 if (i->head == &up->list) 160 list_del(&up->list); 162 BUG_ON(i->head != &up->list); 173 static int serial_link_irq_chain(struct uart_8250_port *up) argument 181 h = &irq_lists[up->port.irq % NR_IRQ_HASH]; 184 if (i->irq == up 219 serial_unlink_irq_chain(struct uart_8250_port *up) argument 250 struct uart_8250_port *up = from_timer(up, t, timer); local 258 struct uart_8250_port *up = from_timer(up, t, timer); local 302 univ8250_setup_timer(struct uart_8250_port *up) argument 327 univ8250_setup_irq(struct uart_8250_port *up) argument 337 univ8250_release_irq(struct uart_8250_port *up) argument 348 serial8250_request_rsa_resource(struct uart_8250_port *up) argument 369 serial8250_release_rsa_resource(struct uart_8250_port *up) argument 416 serial8250_set_isa_configurator( void (*v)(int port, struct uart_port *up, u32 *capabilities)) argument 427 struct uart_8250_port *up = up_to_u8250p(port); local 453 struct uart_8250_port *up = up_to_u8250p(port); local 468 struct uart_8250_port *up = up_to_u8250p(port); local 486 serial8250_apply_quirks(struct uart_8250_port *up) argument 493 struct uart_8250_port *up; local 522 struct uart_8250_port *up; local 575 struct uart_8250_port *up = &serial8250_ports[i]; local 598 struct uart_8250_port *up = &serial8250_ports[co->index]; local 605 struct uart_8250_port *up; local 786 struct uart_8250_port *up = &serial8250_ports[line]; local 810 struct uart_8250_port *up = &serial8250_ports[line]; local 891 struct uart_8250_port *up = &serial8250_ports[i]; local 903 struct uart_8250_port *up = &serial8250_ports[i]; local 917 struct uart_8250_port *up = &serial8250_ports[i]; local 988 struct uart_8250_port *up = local 1014 serial8250_register_8250_port(const struct uart_8250_port *up) argument [all...] |
H A D | 8250.h | 115 static inline int serial_in(struct uart_8250_port *up, int offset) argument 117 return up->port.serial_in(&up->port, offset); 120 static inline void serial_out(struct uart_8250_port *up, int offset, int value) argument 122 up->port.serial_out(&up->port, offset, value); 127 * @up: uart 8250 port 131 * up->lsr_saved_flags. 135 static inline u16 serial_lsr_in(struct uart_8250_port *up) argument 137 u16 lsr = up 148 serial_icr_write(struct uart_8250_port *up, int offset, int value) argument 154 serial_icr_read(struct uart_8250_port *up, int offset) argument 169 serial_dl_read(struct uart_8250_port *up) argument 174 serial_dl_write(struct uart_8250_port *up, u32 value) argument 179 serial8250_set_THRI(struct uart_8250_port *up) argument 191 serial8250_clear_THRI(struct uart_8250_port *up) argument 272 serial8250_out_MCR(struct uart_8250_port *up, int value) argument 280 serial8250_in_MCR(struct uart_8250_port *up) argument 402 ns16550a_goto_highspeed(struct uart_8250_port *up) argument [all...] |
H A D | 8250_omap.c | 183 struct uart_8250_port *up = up_to_u8250p(port); local 184 struct omap8250_priv *priv = up->port.private_data; 189 if (!mctrl_gpio_to_gpiod(up->gpios, UART_GPIO_RTS)) { 194 lcr = serial_in(up, UART_LCR); 195 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); 200 serial_out(up, UART_EFR, priv->efr); 201 serial_out(up, UART_LCR, lcr); 228 static void omap_8250_mdr1_errataset(struct uart_8250_port *up, argument 231 serial_out(up, UART_OMAP_MDR1, priv->mdr1); 233 serial_out(up, UART_FC 280 omap8250_update_scr(struct uart_8250_port *up, struct omap8250_priv *priv) argument 300 omap8250_update_mdr1(struct uart_8250_port *up, struct omap8250_priv *priv) argument 309 omap8250_restore_regs(struct uart_8250_port *up) argument 384 struct uart_8250_port *up = up_to_u8250p(port); local 535 struct uart_8250_port *up = up_to_u8250p(port); local 559 omap_serial_fill_features_erratas(struct uart_8250_port *up, struct omap8250_priv *priv) argument 639 struct uart_8250_port *up = serial8250_get_port(priv->line); local 705 struct uart_8250_port *up = up_to_u8250p(port); local 769 struct uart_8250_port *up = up_to_u8250p(port); local 823 struct uart_8250_port *up = up_to_u8250p(port); local 847 struct uart_8250_port *up = up_to_u8250p(port); local 1226 handle_rx_dma(struct uart_8250_port *up, unsigned int iir) argument 1238 omap_8250_handle_rx_dma(struct uart_8250_port *up, u8 iir, u16 status) argument 1251 am654_8250_handle_rx_dma(struct uart_8250_port *up, u8 iir, u16 status) argument 1287 struct uart_8250_port *up = up_to_u8250p(port); local 1394 struct uart_8250_port up; local 1583 struct uart_8250_port *up; local 1624 struct uart_8250_port *up = serial8250_get_port(priv->line); local 1657 struct uart_8250_port *up = serial8250_get_port(priv->line); local 1678 omap8250_lost_context(struct uart_8250_port *up) argument 1742 struct uart_8250_port *up = NULL; local 1775 struct uart_8250_port *up = NULL; local [all...] |
H A D | 8250_fsl.c | 31 struct uart_8250_port *up = up_to_u8250p(port); local 33 uart_port_lock_irqsave(&up->port, &flags); 37 uart_port_unlock_irqrestore(&up->port, flags); 55 (up->lsr_saved_flags & UART_LSR_BI))) { 56 up->lsr_saved_flags &= ~UART_LSR_BI; 58 uart_port_unlock_irqrestore(&up->port, flags); 62 lsr = orig_lsr = up->port.serial_in(&up->port, UART_LSR); 66 (up->ier & (UART_IER_RLSI | UART_IER_RDI))) { 67 lsr = serial8250_rx_chars(up, ls [all...] |
H A D | 8250_mtk.c | 89 static void mtk8250_rx_dma(struct uart_8250_port *up); 93 struct uart_8250_port *up = param; local 94 struct uart_8250_dma *dma = up->dma; 95 struct mtk8250_data *data = up->port.private_data; 96 struct tty_port *tty_port = &up->port.state->port; 105 uart_port_lock_irqsave(&up->port, &flags); 125 up->port.icount.rx += copied; 129 mtk8250_rx_dma(up); 131 uart_port_unlock_irqrestore(&up->port, flags); 134 static void mtk8250_rx_dma(struct uart_8250_port *up) argument 155 mtk8250_dma_enable(struct uart_8250_port *up) argument 193 struct uart_8250_port *up = up_to_u8250p(port); local 213 struct uart_8250_port *up = up_to_u8250p(port); local 223 mtk8250_disable_intrs(struct uart_8250_port *up, int mask) argument 231 mtk8250_enable_intrs(struct uart_8250_port *up, int mask) argument 239 mtk8250_set_flow_ctrl(struct uart_8250_port *up, int mode) argument 311 struct uart_8250_port *up = up_to_u8250p(port); local 428 struct uart_8250_port *up = serial8250_get_port(data->line); local [all...] |
H A D | 8250_bcm2835aux.c | 48 static void bcm2835aux_rs485_start_tx(struct uart_8250_port *up) argument 50 if (!(up->port.rs485.flags & SER_RS485_RX_DURING_TX)) { 51 struct bcm2835aux_data *data = dev_get_drvdata(up->port.dev); 54 serial_out(up, BCM2835_AUX_UART_CNTL, data->cntl); 61 if (up->port.rs485.flags & SER_RS485_RTS_ON_SEND) 62 serial8250_out_MCR(up, 0); 64 serial8250_out_MCR(up, UART_MCR_RTS); 67 static void bcm2835aux_rs485_stop_tx(struct uart_8250_port *up) argument 69 if (up->port.rs485.flags & SER_RS485_RTS_AFTER_SEND) 70 serial8250_out_MCR(up, 85 struct uart_8250_port up = { }; local [all...] |
H A D | 8250_uniphier.c | 148 static u32 uniphier_serial_dl_read(struct uart_8250_port *up) argument 150 return readl(up->port.membase + UNIPHIER_UART_DLR); 153 static void uniphier_serial_dl_write(struct uart_8250_port *up, u32 value) argument 155 writel(value, up->port.membase + UNIPHIER_UART_DLR); 161 struct uart_8250_port up; local 181 memset(&up, 0, sizeof(up)); 193 up.port.uartclk = clk_get_rate(priv->clk); 197 up.port.dev = dev; 198 up 246 struct uart_8250_port *up = serial8250_get_port(priv->line); local 259 struct uart_8250_port *up = serial8250_get_port(priv->line); local [all...] |
/linux-master/drivers/net/can/usb/ |
H A D | ucan.c | 85 /* wake up can transceiver from low-power sleep mode */ 263 struct ucan_priv *up; member in struct:ucan_urb_context 314 static void ucan_release_context_array(struct ucan_priv *up) argument 316 if (!up->context_array) 320 up->available_tx_urbs = 0; 322 kfree(up->context_array); 323 up->context_array = NULL; 326 static int ucan_alloc_context_array(struct ucan_priv *up) argument 331 ucan_release_context_array(up); 333 up 353 ucan_alloc_context(struct ucan_priv *up) argument 384 ucan_release_context(struct ucan_priv *up, struct ucan_urb_context *ctx) argument 412 ucan_ctrl_command_out(struct ucan_priv *up, u8 cmd, u16 subcmd, u16 datalen) argument 427 ucan_device_request_in(struct ucan_priv *up, u8 cmd, u16 subcmd, u16 datalen) argument 444 ucan_parse_device_info(struct ucan_priv *up, struct ucan_ctl_cmd_device_info *device_info) argument 483 ucan_handle_error_frame(struct ucan_priv *up, struct ucan_message_in *m, canid_t canid) argument 565 ucan_rx_can_msg(struct ucan_priv *up, struct ucan_message_in *m) argument 635 ucan_tx_complete_msg(struct ucan_priv *up, struct ucan_message_in *m) argument 691 struct ucan_priv *up = urb->context; local 819 struct ucan_priv *up; local 860 ucan_cleanup_rx_urbs(struct ucan_priv *up, struct urb **urbs) argument 878 ucan_prepare_and_anchor_rx_urbs(struct ucan_priv *up, struct urb **urbs) argument 927 ucan_submit_rx_urbs(struct ucan_priv *up, struct urb **urbs) argument 967 struct ucan_priv *up = netdev_priv(netdev); local 1049 ucan_prepare_tx_urb(struct ucan_priv *up, struct ucan_urb_context *context, struct can_frame *cf, u8 echo_index) argument 1103 ucan_clean_up_tx_urb(struct ucan_priv *up, struct urb *urb) argument 1119 struct ucan_priv *up = netdev_priv(netdev); local 1198 struct ucan_priv *up = netdev_priv(netdev); local 1249 struct ucan_priv *up = netdev_priv(netdev); local 1274 struct ucan_priv *up = netdev_priv(netdev); local 1310 struct ucan_priv *up; local 1577 struct ucan_priv *up = usb_get_intfdata(intf); local [all...] |
/linux-master/arch/x86/platform/ce4100/ |
H A D | ce4100.c | 82 static void ce4100_serial_fixup(int port, struct uart_port *up, argument 91 if (up->iotype != UPIO_MEM32) { 92 up->uartclk = 14745600; 93 up->mapbase = 0xdffe0200; 95 up->mapbase & PAGE_MASK); 96 up->membase = 98 up->membase += up->mapbase & ~PAGE_MASK; 99 up->mapbase += port * 0x100; 100 up [all...] |
/linux-master/lib/crypto/mpi/ |
H A D | mpih-mul.c | 21 #define MPN_MUL_N_RECURSE(prodp, up, vp, size, tspace) \ 24 mul_n_basecase(prodp, up, vp, size); \ 26 mul_n(prodp, up, vp, size, tspace); \ 29 #define MPN_SQR_N_RECURSE(prodp, up, size, tspace) \ 32 mpih_sqr_n_basecase(prodp, up, size); \ 34 mpih_sqr_n(prodp, up, size, tspace); \ 55 mul_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, mpi_size_t size) argument 66 MPN_COPY(prodp, up, size); 71 cy = mpihelp_mul_1(prodp, up, size, v_limb); 83 cy = mpihelp_add_n(prodp, prodp, up, siz 95 mul_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, mpi_size_t size, mpi_ptr_t tspace) argument 207 mpih_sqr_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size) argument 245 mpih_sqr_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size, mpi_ptr_t tspace) argument 321 mpihelp_mul_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, mpi_size_t size) argument 346 mpihelp_mul_karatsuba_case(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t usize, mpi_ptr_t vp, mpi_size_t vsize, struct karatsuba_ctx *ctx) argument 452 mpihelp_mul(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t usize, mpi_ptr_t vp, mpi_size_t vsize, mpi_limb_t *_result) argument [all...] |
/linux-master/arch/alpha/lib/ |
H A D | strcpy.S | 19 mov $16, $0 # set up return value 20 mov $26, $23 # set up return address
|
/linux-master/drivers/scsi/ |
H A D | aha1740.h | 85 #define any2scsi(up, p) \ 86 (up)[0] = (((unsigned long)(p)) >> 16) ; \ 87 (up)[1] = (((unsigned long)(p)) >> 8); \ 88 (up)[2] = ((unsigned long)(p)); 90 #define scsi2int(up) ( (((long)*(up)) << 16) + (((long)(up)[1]) << 8) + ((long)(up)[2]) ) 92 #define xany2scsi(up, p) \ 93 (up)[ [all...] |