Home
last modified time | relevance | path

Searched full:up (Results 1 – 25 of 7509) sorted by relevance

12345678910>>...301

/Linux-v5.15/drivers/tty/serial/
Domap-serial.c171 static void serial_omap_mdr1_errataset(struct uart_omap_port *up, u8 mdr1);
173 static inline unsigned int serial_in(struct uart_omap_port *up, int offset) in serial_in() argument
175 offset <<= up->port.regshift; in serial_in()
176 return readw(up->port.membase + offset); in serial_in()
179 static inline void serial_out(struct uart_omap_port *up, int offset, int value) in serial_out() argument
181 offset <<= up->port.regshift; in serial_out()
182 writew(value, up->port.membase + offset); in serial_out()
185 static inline void serial_omap_clear_fifos(struct uart_omap_port *up) in serial_omap_clear_fifos() argument
187 serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO); in serial_omap_clear_fifos()
188 serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO | in serial_omap_clear_fifos()
[all …]
Dsunsu.c104 static unsigned int serial_in(struct uart_sunsu_port *up, int offset) in serial_in() argument
106 offset <<= up->port.regshift; in serial_in()
108 switch (up->port.iotype) { in serial_in()
110 outb(up->port.hub6 - 1 + offset, up->port.iobase); in serial_in()
111 return inb(up->port.iobase + 1); in serial_in()
114 return readb(up->port.membase + offset); in serial_in()
117 return inb(up->port.iobase + offset); in serial_in()
121 static void serial_out(struct uart_sunsu_port *up, int offset, int value) in serial_out() argument
135 offset <<= up->port.regshift; in serial_out()
137 switch (up->port.iotype) { in serial_out()
[all …]
Dar933x_uart.c57 static inline unsigned int ar933x_uart_read(struct ar933x_uart_port *up, in ar933x_uart_read() argument
60 return readl(up->port.membase + offset); in ar933x_uart_read()
63 static inline void ar933x_uart_write(struct ar933x_uart_port *up, in ar933x_uart_write() argument
66 writel(value, up->port.membase + offset); in ar933x_uart_write()
69 static inline void ar933x_uart_rmw(struct ar933x_uart_port *up, in ar933x_uart_rmw() argument
76 t = ar933x_uart_read(up, offset); in ar933x_uart_rmw()
79 ar933x_uart_write(up, offset, t); in ar933x_uart_rmw()
82 static inline void ar933x_uart_rmw_set(struct ar933x_uart_port *up, in ar933x_uart_rmw_set() argument
86 ar933x_uart_rmw(up, offset, 0, val); in ar933x_uart_rmw_set()
89 static inline void ar933x_uart_rmw_clear(struct ar933x_uart_port *up, in ar933x_uart_rmw_clear() argument
[all …]
Dsunsab.c91 static __inline__ void sunsab_tec_wait(struct uart_sunsab_port *up) in sunsab_tec_wait() argument
93 int timeout = up->tec_timeout; in sunsab_tec_wait()
95 while ((readb(&up->regs->r.star) & SAB82532_STAR_TEC) && --timeout) in sunsab_tec_wait()
99 static __inline__ void sunsab_cec_wait(struct uart_sunsab_port *up) in sunsab_cec_wait() argument
101 int timeout = up->cec_timeout; in sunsab_cec_wait()
103 while ((readb(&up->regs->r.star) & SAB82532_STAR_CEC) && --timeout) in sunsab_cec_wait()
108 receive_chars(struct uart_sunsab_port *up, in receive_chars() argument
118 if (up->port.state != NULL) /* Unopened serial console */ in receive_chars()
119 port = &up->port.state->port; in receive_chars()
128 count = readb(&up->regs->r.rbcl) & (SAB82532_RECV_FIFO_SIZE - 1); in receive_chars()
[all …]
Dsunzilog.c108 #define ZS_IS_KEYB(UP) ((UP)->flags & SUNZILOG_FLAG_CONS_KEYB) argument
109 #define ZS_IS_MOUSE(UP) ((UP)->flags & SUNZILOG_FLAG_CONS_MOUSE) argument
110 #define ZS_IS_CONS(UP) ((UP)->flags & SUNZILOG_FLAG_IS_CONS) argument
111 #define ZS_IS_KGDB(UP) ((UP)->flags & SUNZILOG_FLAG_IS_KGDB) argument
112 #define ZS_WANTS_MODEM_STATUS(UP) ((UP)->flags & SUNZILOG_FLAG_MODEM_STATUS) argument
113 #define ZS_IS_CHANNEL_A(UP) ((UP)->flags & SUNZILOG_FLAG_IS_CHANNEL_A) argument
114 #define ZS_REGS_HELD(UP) ((UP)->flags & SUNZILOG_FLAG_REGS_HELD) argument
115 #define ZS_TX_STOPPED(UP) ((UP)->flags & SUNZILOG_FLAG_TX_STOPPED) argument
116 #define ZS_TX_ACTIVE(UP) ((UP)->flags & SUNZILOG_FLAG_TX_ACTIVE) argument
268 static void sunzilog_maybe_update_regs(struct uart_sunzilog_port *up, in sunzilog_maybe_update_regs() argument
[all …]
Dpxa.c51 static inline unsigned int serial_in(struct uart_pxa_port *up, int offset) in serial_in() argument
54 return readl(up->port.membase + offset); in serial_in()
57 static inline void serial_out(struct uart_pxa_port *up, int offset, int value) in serial_out() argument
60 writel(value, up->port.membase + offset); in serial_out()
65 struct uart_pxa_port *up = (struct uart_pxa_port *)port; in serial_pxa_enable_ms() local
67 up->ier |= UART_IER_MSI; in serial_pxa_enable_ms()
68 serial_out(up, UART_IER, up->ier); in serial_pxa_enable_ms()
73 struct uart_pxa_port *up = (struct uart_pxa_port *)port; in serial_pxa_stop_tx() local
75 if (up->ier & UART_IER_THRI) { in serial_pxa_stop_tx()
76 up->ier &= ~UART_IER_THRI; in serial_pxa_stop_tx()
[all …]
Dserial_txx9.c166 static inline unsigned int sio_in(struct uart_txx9_port *up, int offset) in sio_in() argument
168 switch (up->port.iotype) { in sio_in()
170 return __raw_readl(up->port.membase + offset); in sio_in()
172 return inl(up->port.iobase + offset); in sio_in()
177 sio_out(struct uart_txx9_port *up, int offset, int value) in sio_out() argument
179 switch (up->port.iotype) { in sio_out()
181 __raw_writel(value, up->port.membase + offset); in sio_out()
184 outl(value, up->port.iobase + offset); in sio_out()
190 sio_mask(struct uart_txx9_port *up, int offset, unsigned int value) in sio_mask() argument
192 sio_out(up, offset, sio_in(up, offset) & ~value); in sio_mask()
[all …]
Dip22zilog.c93 #define ZS_IS_CONS(UP) ((UP)->flags & IP22ZILOG_FLAG_IS_CONS) argument
94 #define ZS_IS_KGDB(UP) ((UP)->flags & IP22ZILOG_FLAG_IS_KGDB) argument
95 #define ZS_WANTS_MODEM_STATUS(UP) ((UP)->flags & IP22ZILOG_FLAG_MODEM_STATUS) argument
96 #define ZS_IS_CHANNEL_A(UP) ((UP)->flags & IP22ZILOG_FLAG_IS_CHANNEL_A) argument
97 #define ZS_REGS_HELD(UP) ((UP)->flags & IP22ZILOG_FLAG_REGS_HELD) argument
98 #define ZS_TX_STOPPED(UP) ((UP)->flags & IP22ZILOG_FLAG_TX_STOPPED) argument
99 #define ZS_TX_ACTIVE(UP) ((UP)->flags & IP22ZILOG_FLAG_TX_ACTIVE) argument
233 static void ip22zilog_maybe_update_regs(struct uart_ip22zilog_port *up, in ip22zilog_maybe_update_regs() argument
236 if (!ZS_REGS_HELD(up)) { in ip22zilog_maybe_update_regs()
237 if (ZS_TX_ACTIVE(up)) { in ip22zilog_maybe_update_regs()
[all …]
Drp2.c233 static void rp2_rmw(struct rp2_uart_port *up, int reg, in rp2_rmw() argument
236 u32 tmp = readl(up->base + reg); in rp2_rmw()
239 writel(tmp, up->base + reg); in rp2_rmw()
242 static void rp2_rmw_clr(struct rp2_uart_port *up, int reg, u32 val) in rp2_rmw_clr() argument
244 rp2_rmw(up, reg, val, 0); in rp2_rmw_clr()
247 static void rp2_rmw_set(struct rp2_uart_port *up, int reg, u32 val) in rp2_rmw_set() argument
249 rp2_rmw(up, reg, 0, val); in rp2_rmw_set()
252 static void rp2_mask_ch_irq(struct rp2_uart_port *up, int ch_num, in rp2_mask_ch_irq() argument
257 spin_lock_irqsave(&up->card->card_lock, flags); in rp2_mask_ch_irq()
259 irq_mask = readl(up->asic_base + RP2_CH_IRQ_MASK); in rp2_mask_ch_irq()
[all …]
/Linux-v5.15/drivers/net/can/usb/
Ducan.c84 /* wake up can transceiver from low-power sleep mode */
261 struct ucan_priv *up; member
314 static void ucan_release_context_array(struct ucan_priv *up) in ucan_release_context_array() argument
316 if (!up->context_array) in ucan_release_context_array()
320 up->available_tx_urbs = 0; in ucan_release_context_array()
322 kfree(up->context_array); in ucan_release_context_array()
323 up->context_array = NULL; in ucan_release_context_array()
326 static int ucan_alloc_context_array(struct ucan_priv *up) in ucan_alloc_context_array() argument
331 ucan_release_context_array(up); in ucan_alloc_context_array()
333 up->context_array = kcalloc(up->device_info.tx_fifo, in ucan_alloc_context_array()
[all …]
/Linux-v5.15/drivers/tty/serial/8250/
D8250_port.c313 static int default_serial_dl_read(struct uart_8250_port *up) in default_serial_dl_read() argument
316 unsigned char dll = serial_in(up, UART_DLL); in default_serial_dl_read()
317 unsigned char dlm = serial_in(up, UART_DLM); in default_serial_dl_read()
323 static void default_serial_dl_write(struct uart_8250_port *up, int value) in default_serial_dl_write() argument
325 serial_out(up, UART_DLL, value & 0xff); in default_serial_dl_write()
326 serial_out(up, UART_DLM, value >> 8 & 0xff); in default_serial_dl_write()
375 static int au_serial_dl_read(struct uart_8250_port *up) in au_serial_dl_read() argument
377 return __raw_readl(up->port.membase + 0x28); in au_serial_dl_read()
380 static void au_serial_dl_write(struct uart_8250_port *up, int value) in au_serial_dl_write() argument
382 __raw_writel(value, up->port.membase + 0x28); in au_serial_dl_write()
[all …]
D8250_core.c120 struct uart_8250_port *up; in serial8250_interrupt() local
123 up = list_entry(l, struct uart_8250_port, list); in serial8250_interrupt()
124 port = &up->port; in serial8250_interrupt()
152 static void serial_do_unlink(struct irq_info *i, struct uart_8250_port *up) in serial_do_unlink() argument
157 if (i->head == &up->list) in serial_do_unlink()
159 list_del(&up->list); in serial_do_unlink()
161 BUG_ON(i->head != &up->list); in serial_do_unlink()
172 static int serial_link_irq_chain(struct uart_8250_port *up) in serial_link_irq_chain() argument
180 h = &irq_lists[up->port.irq % NR_IRQ_HASH]; in serial_link_irq_chain()
183 if (i->irq == up->port.irq) in serial_link_irq_chain()
[all …]
D8250_omap.c155 static u32 uart_read(struct uart_8250_port *up, u32 reg) in uart_read() argument
157 return readl(up->port.membase + (reg << up->port.regshift)); in uart_read()
162 struct uart_8250_port *up = up_to_u8250p(port); in omap8250_set_mctrl() local
163 struct omap8250_priv *priv = up->port.private_data; in omap8250_set_mctrl()
168 if (!mctrl_gpio_to_gpiod(up->gpios, UART_GPIO_RTS)) { in omap8250_set_mctrl()
173 lcr = serial_in(up, UART_LCR); in omap8250_set_mctrl()
174 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_set_mctrl()
179 serial_out(up, UART_EFR, priv->efr); in omap8250_set_mctrl()
180 serial_out(up, UART_LCR, lcr); in omap8250_set_mctrl()
193 static void omap_8250_mdr1_errataset(struct uart_8250_port *up, in omap_8250_mdr1_errataset() argument
[all …]
D8250_mtk.c85 static void mtk8250_rx_dma(struct uart_8250_port *up);
89 struct uart_8250_port *up = param; in mtk8250_dma_rx_complete() local
90 struct uart_8250_dma *dma = up->dma; in mtk8250_dma_rx_complete()
91 struct mtk8250_data *data = up->port.private_data; in mtk8250_dma_rx_complete()
92 struct tty_port *tty_port = &up->port.state->port; in mtk8250_dma_rx_complete()
101 spin_lock_irqsave(&up->port.lock, flags); in mtk8250_dma_rx_complete()
121 up->port.icount.rx += copied; in mtk8250_dma_rx_complete()
125 mtk8250_rx_dma(up); in mtk8250_dma_rx_complete()
127 spin_unlock_irqrestore(&up->port.lock, flags); in mtk8250_dma_rx_complete()
130 static void mtk8250_rx_dma(struct uart_8250_port *up) in mtk8250_rx_dma() argument
[all …]
D8250_bcm2835aux.c47 static void bcm2835aux_rs485_start_tx(struct uart_8250_port *up) in bcm2835aux_rs485_start_tx() argument
49 if (!(up->port.rs485.flags & SER_RS485_RX_DURING_TX)) { in bcm2835aux_rs485_start_tx()
50 struct bcm2835aux_data *data = dev_get_drvdata(up->port.dev); in bcm2835aux_rs485_start_tx()
53 serial_out(up, BCM2835_AUX_UART_CNTL, data->cntl); in bcm2835aux_rs485_start_tx()
60 if (up->port.rs485.flags & SER_RS485_RTS_ON_SEND) in bcm2835aux_rs485_start_tx()
61 serial8250_out_MCR(up, 0); in bcm2835aux_rs485_start_tx()
63 serial8250_out_MCR(up, UART_MCR_RTS); in bcm2835aux_rs485_start_tx()
66 static void bcm2835aux_rs485_stop_tx(struct uart_8250_port *up) in bcm2835aux_rs485_stop_tx() argument
68 if (up->port.rs485.flags & SER_RS485_RTS_AFTER_SEND) in bcm2835aux_rs485_stop_tx()
69 serial8250_out_MCR(up, 0); in bcm2835aux_rs485_stop_tx()
[all …]
D8250.h113 static inline int serial_in(struct uart_8250_port *up, int offset) in serial_in() argument
115 return up->port.serial_in(&up->port, offset); in serial_in()
118 static inline void serial_out(struct uart_8250_port *up, int offset, int value) in serial_out() argument
120 up->port.serial_out(&up->port, offset, value); in serial_out()
125 static inline int serial_dl_read(struct uart_8250_port *up) in serial_dl_read() argument
127 return up->dl_read(up); in serial_dl_read()
130 static inline void serial_dl_write(struct uart_8250_port *up, int value) in serial_dl_write() argument
132 up->dl_write(up, value); in serial_dl_write()
135 static inline bool serial8250_set_THRI(struct uart_8250_port *up) in serial8250_set_THRI() argument
137 if (up->ier & UART_IER_THRI) in serial8250_set_THRI()
[all …]
D8250_uniphier.c148 static int uniphier_serial_dl_read(struct uart_8250_port *up) in uniphier_serial_dl_read() argument
150 return readl(up->port.membase + UNIPHIER_UART_DLR); in uniphier_serial_dl_read()
153 static void uniphier_serial_dl_write(struct uart_8250_port *up, int value) in uniphier_serial_dl_write() argument
155 writel(value, up->port.membase + UNIPHIER_UART_DLR); in uniphier_serial_dl_write()
161 struct uart_8250_port up; in uniphier_uart_probe() local
186 memset(&up, 0, sizeof(up)); in uniphier_uart_probe()
193 up.port.line = ret; in uniphier_uart_probe()
205 up.port.uartclk = clk_get_rate(priv->clk); in uniphier_uart_probe()
209 up.port.dev = dev; in uniphier_uart_probe()
210 up.port.private_data = priv; in uniphier_uart_probe()
[all …]
D8250_bcm7271.c214 struct uart_port *up; member
443 static void brcmuart_rx_buf_done_isr(struct uart_port *up, int index) in brcmuart_rx_buf_done_isr() argument
445 struct brcmuart_priv *priv = up->private_data; in brcmuart_rx_buf_done_isr()
446 struct tty_port *tty_port = &up->state->port; in brcmuart_rx_buf_done_isr()
456 dev_err(up->dev, "RX done interrupt but DATA_RDY not found\n"); in brcmuart_rx_buf_done_isr()
463 up->icount.overrun++; in brcmuart_rx_buf_done_isr()
464 dev_warn(up->dev, "RX OVERRUN Error\n"); in brcmuart_rx_buf_done_isr()
467 up->icount.frame++; in brcmuart_rx_buf_done_isr()
468 dev_warn(up->dev, "RX FRAMING Error\n"); in brcmuart_rx_buf_done_isr()
471 up->icount.parity++; in brcmuart_rx_buf_done_isr()
[all …]
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/
Duar.c85 struct mlx5_uars_page *up = container_of(kref, struct mlx5_uars_page, ref_count); in up_rel_func() local
87 list_del(&up->list); in up_rel_func()
88 iounmap(up->map); in up_rel_func()
89 if (mlx5_cmd_free_uar(up->mdev, up->index)) in up_rel_func()
90 mlx5_core_warn(up->mdev, "failed to free uar index %d\n", up->index); in up_rel_func()
91 bitmap_free(up->reg_bitmap); in up_rel_func()
92 bitmap_free(up->fp_bitmap); in up_rel_func()
93 kfree(up); in up_rel_func()
99 struct mlx5_uars_page *up; in alloc_uars_page() local
106 up = kzalloc(sizeof(*up), GFP_KERNEL); in alloc_uars_page()
[all …]
/Linux-v5.15/drivers/mtd/maps/
Dsun_uflash.c52 struct uflash_dev *up; in uflash_devinit() local
64 up = kzalloc(sizeof(struct uflash_dev), GFP_KERNEL); in uflash_devinit()
65 if (!up) in uflash_devinit()
69 memcpy(&up->map, &uflash_map_templ, sizeof(uflash_map_templ)); in uflash_devinit()
71 up->map.size = resource_size(&op->resource[0]); in uflash_devinit()
73 up->name = of_get_property(dp, "model", NULL); in uflash_devinit()
74 if (up->name && 0 < strlen(up->name)) in uflash_devinit()
75 up->map.name = up->name; in uflash_devinit()
77 up->map.phys = op->resource[0].start; in uflash_devinit()
79 up->map.virt = of_ioremap(&op->resource[0], 0, up->map.size, in uflash_devinit()
[all …]
/Linux-v5.15/Documentation/networking/dsa/
Dconfiguration.rst37 The slave interfaces depend on the master interface being up in order for them
42 - when a DSA slave interface is brought up, the master interface is
43 automatically brought up.
97 # brought up manually before the slave ports.
98 ip link set eth0 up
100 # bring up the slave interfaces
101 ip link set lan1 up
102 ip link set lan2 up
103 ip link set lan3 up
109 # brought up manually before the slave ports.
[all …]
Db53.rst61 The configuration can only be set up via VLAN tagging and bridge setup.
71 # The master interface needs to be brought up before the slave ports.
72 ip link set eth0 up
73 ip link set eth0.1 up
74 ip link set eth0.2 up
75 ip link set eth0.3 up
77 # bring up the slave interfaces
78 ip link set wan up
79 ip link set lan1 up
80 ip link set lan2 up
[all …]
/Linux-v5.15/lib/mpi/
Dmpih-mul.c21 #define MPN_MUL_N_RECURSE(prodp, up, vp, size, tspace) \ argument
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) \ argument
32 mpih_sqr_n_basecase(prodp, up, size); \
34 mpih_sqr_n(prodp, up, size, tspace); \
37 /* Multiply the natural numbers u (pointed to by UP) and v (pointed to by VP),
42 * 1. PRODP != UP and PRODP != VP, i.e. the destination
55 mul_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, mpi_size_t size) in mul_n_basecase() argument
66 MPN_COPY(prodp, up, size); in mul_n_basecase()
[all …]
/Linux-v5.15/drivers/base/power/
Dwakeirq.c17 * Internal function to attach a dedicated wake-up interrupt as a wake IRQ.
46 * automatically configured for wake-up from suspend based
107 * handle_threaded_wake_irq - Handler for dedicated wake-up interrupts
108 * @irq: Device specific dedicated wake-up interrupt
111 * Some devices have a separate wake-up interrupt in addition to the
112 * device IO interrupt. The wake-up interrupt signals that a device
113 * should be woken up from it's idle state. This handler uses device
115 * up to the device to do whatever it needs to. Note that as the
116 * device may need to restore context and start up regulators, we
120 * We assume that the wake-up interrupt just needs to wake-up the
[all …]
/Linux-v5.15/arch/arm64/boot/dts/rockchip/
Drockchip-pinconf.dtsi8 pcfg_pull_up: pcfg-pull-up {
9 bias-pull-up;
119 pcfg_pull_up_drv_level_0: pcfg-pull-up-drv-level-0 {
120 bias-pull-up;
125 pcfg_pull_up_drv_level_1: pcfg-pull-up-drv-level-1 {
126 bias-pull-up;
131 pcfg_pull_up_drv_level_2: pcfg-pull-up-drv-level-2 {
132 bias-pull-up;
137 pcfg_pull_up_drv_level_3: pcfg-pull-up-drv-level-3 {
138 bias-pull-up;
[all …]

12345678910>>...301