Home
last modified time | relevance | path

Searched refs:up (Results 1 – 25 of 1510) sorted by relevance

12345678910>>...61

/Linux-v5.4/drivers/tty/serial/
Domap-serial.c176 static void serial_omap_mdr1_errataset(struct uart_omap_port *up, u8 mdr1);
178 static inline unsigned int serial_in(struct uart_omap_port *up, int offset) in serial_in() argument
180 offset <<= up->port.regshift; in serial_in()
181 return readw(up->port.membase + offset); in serial_in()
184 static inline void serial_out(struct uart_omap_port *up, int offset, int value) in serial_out() argument
186 offset <<= up->port.regshift; in serial_out()
187 writew(value, up->port.membase + offset); in serial_out()
190 static inline void serial_omap_clear_fifos(struct uart_omap_port *up) in serial_omap_clear_fifos() argument
192 serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO); in serial_omap_clear_fifos()
193 serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO | in serial_omap_clear_fifos()
[all …]
Dsunsu.c108 static unsigned int serial_in(struct uart_sunsu_port *up, int offset) in serial_in() argument
110 offset <<= up->port.regshift; in serial_in()
112 switch (up->port.iotype) { in serial_in()
114 outb(up->port.hub6 - 1 + offset, up->port.iobase); in serial_in()
115 return inb(up->port.iobase + 1); in serial_in()
118 return readb(up->port.membase + offset); in serial_in()
121 return inb(up->port.iobase + offset); in serial_in()
125 static void serial_out(struct uart_sunsu_port *up, int offset, int value) in serial_out() argument
139 offset <<= up->port.regshift; in serial_out()
141 switch (up->port.iotype) { in serial_out()
[all …]
Dsunsab.c95 static __inline__ void sunsab_tec_wait(struct uart_sunsab_port *up) in sunsab_tec_wait() argument
97 int timeout = up->tec_timeout; in sunsab_tec_wait()
99 while ((readb(&up->regs->r.star) & SAB82532_STAR_TEC) && --timeout) in sunsab_tec_wait()
103 static __inline__ void sunsab_cec_wait(struct uart_sunsab_port *up) in sunsab_cec_wait() argument
105 int timeout = up->cec_timeout; in sunsab_cec_wait()
107 while ((readb(&up->regs->r.star) & SAB82532_STAR_CEC) && --timeout) in sunsab_cec_wait()
112 receive_chars(struct uart_sunsab_port *up, in receive_chars() argument
122 if (up->port.state != NULL) /* Unopened serial console */ in receive_chars()
123 port = &up->port.state->port; in receive_chars()
132 count = readb(&up->regs->r.rbcl) & (SAB82532_RECV_FIFO_SIZE - 1); in receive_chars()
[all …]
Dpxa.c55 static inline unsigned int serial_in(struct uart_pxa_port *up, int offset) in serial_in() argument
58 return readl(up->port.membase + offset); in serial_in()
61 static inline void serial_out(struct uart_pxa_port *up, int offset, int value) in serial_out() argument
64 writel(value, up->port.membase + offset); in serial_out()
69 struct uart_pxa_port *up = (struct uart_pxa_port *)port; in serial_pxa_enable_ms() local
71 up->ier |= UART_IER_MSI; in serial_pxa_enable_ms()
72 serial_out(up, UART_IER, up->ier); in serial_pxa_enable_ms()
77 struct uart_pxa_port *up = (struct uart_pxa_port *)port; in serial_pxa_stop_tx() local
79 if (up->ier & UART_IER_THRI) { in serial_pxa_stop_tx()
80 up->ier &= ~UART_IER_THRI; in serial_pxa_stop_tx()
[all …]
Dsunzilog.c272 static void sunzilog_maybe_update_regs(struct uart_sunzilog_port *up, in sunzilog_maybe_update_regs() argument
275 if (!ZS_REGS_HELD(up)) { in sunzilog_maybe_update_regs()
276 if (ZS_TX_ACTIVE(up)) { in sunzilog_maybe_update_regs()
277 up->flags |= SUNZILOG_FLAG_REGS_HELD; in sunzilog_maybe_update_regs()
279 __load_zsregs(channel, up->curregs); in sunzilog_maybe_update_regs()
284 static void sunzilog_change_mouse_baud(struct uart_sunzilog_port *up) in sunzilog_change_mouse_baud() argument
286 unsigned int cur_cflag = up->cflag; in sunzilog_change_mouse_baud()
289 up->cflag &= ~CBAUD; in sunzilog_change_mouse_baud()
290 up->cflag |= suncore_mouse_baud_cflag_next(cur_cflag, &new_baud); in sunzilog_change_mouse_baud()
293 up->curregs[R12] = (brg & 0xff); in sunzilog_change_mouse_baud()
[all …]
Dar933x_uart.c52 static inline unsigned int ar933x_uart_read(struct ar933x_uart_port *up, in ar933x_uart_read() argument
55 return readl(up->port.membase + offset); in ar933x_uart_read()
58 static inline void ar933x_uart_write(struct ar933x_uart_port *up, in ar933x_uart_write() argument
61 writel(value, up->port.membase + offset); in ar933x_uart_write()
64 static inline void ar933x_uart_rmw(struct ar933x_uart_port *up, in ar933x_uart_rmw() argument
71 t = ar933x_uart_read(up, offset); in ar933x_uart_rmw()
74 ar933x_uart_write(up, offset, t); in ar933x_uart_rmw()
77 static inline void ar933x_uart_rmw_set(struct ar933x_uart_port *up, in ar933x_uart_rmw_set() argument
81 ar933x_uart_rmw(up, offset, 0, val); in ar933x_uart_rmw_set()
84 static inline void ar933x_uart_rmw_clear(struct ar933x_uart_port *up, in ar933x_uart_rmw_clear() argument
[all …]
Dserial_txx9.c170 static inline unsigned int sio_in(struct uart_txx9_port *up, int offset) in sio_in() argument
172 switch (up->port.iotype) { in sio_in()
174 return __raw_readl(up->port.membase + offset); in sio_in()
176 return inl(up->port.iobase + offset); in sio_in()
181 sio_out(struct uart_txx9_port *up, int offset, int value) in sio_out() argument
183 switch (up->port.iotype) { in sio_out()
185 __raw_writel(value, up->port.membase + offset); in sio_out()
188 outl(value, up->port.iobase + offset); in sio_out()
194 sio_mask(struct uart_txx9_port *up, int offset, unsigned int value) in sio_mask() argument
196 sio_out(up, offset, sio_in(up, offset) & ~value); in sio_mask()
[all …]
Dip22zilog.c237 static void ip22zilog_maybe_update_regs(struct uart_ip22zilog_port *up, in ip22zilog_maybe_update_regs() argument
240 if (!ZS_REGS_HELD(up)) { in ip22zilog_maybe_update_regs()
241 if (ZS_TX_ACTIVE(up)) { in ip22zilog_maybe_update_regs()
242 up->flags |= IP22ZILOG_FLAG_REGS_HELD; in ip22zilog_maybe_update_regs()
244 __load_zsregs(channel, up->curregs); in ip22zilog_maybe_update_regs()
252 static bool ip22zilog_receive_chars(struct uart_ip22zilog_port *up, in ip22zilog_receive_chars() argument
257 bool push = up->port.state != NULL; in ip22zilog_receive_chars()
275 ch &= up->parity_mask; in ip22zilog_receive_chars()
279 r1 |= up->tty_break; in ip22zilog_receive_chars()
283 up->port.icount.rx++; in ip22zilog_receive_chars()
[all …]
Drp2.c234 static void rp2_rmw(struct rp2_uart_port *up, int reg, in rp2_rmw() argument
237 u32 tmp = readl(up->base + reg); in rp2_rmw()
240 writel(tmp, up->base + reg); in rp2_rmw()
243 static void rp2_rmw_clr(struct rp2_uart_port *up, int reg, u32 val) in rp2_rmw_clr() argument
245 rp2_rmw(up, reg, val, 0); in rp2_rmw_clr()
248 static void rp2_rmw_set(struct rp2_uart_port *up, int reg, u32 val) in rp2_rmw_set() argument
250 rp2_rmw(up, reg, 0, val); in rp2_rmw_set()
253 static void rp2_mask_ch_irq(struct rp2_uart_port *up, int ch_num, in rp2_mask_ch_irq() argument
258 spin_lock_irqsave(&up->card->card_lock, flags); in rp2_mask_ch_irq()
260 irq_mask = readl(up->asic_base + RP2_CH_IRQ_MASK); in rp2_mask_ch_irq()
[all …]
/Linux-v5.4/drivers/net/can/usb/
Ducan.c261 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()
334 sizeof(*up->context_array), in ucan_alloc_context_array()
[all …]
/Linux-v5.4/drivers/tty/serial/8250/
D8250_port.c315 static int default_serial_dl_read(struct uart_8250_port *up) in default_serial_dl_read() argument
317 return serial_in(up, UART_DLL) | serial_in(up, UART_DLM) << 8; in default_serial_dl_read()
321 static void default_serial_dl_write(struct uart_8250_port *up, int value) in default_serial_dl_write() argument
323 serial_out(up, UART_DLL, value & 0xff); in default_serial_dl_write()
324 serial_out(up, UART_DLM, value >> 8 & 0xff); in default_serial_dl_write()
373 static int au_serial_dl_read(struct uart_8250_port *up) in au_serial_dl_read() argument
375 return __raw_readl(up->port.membase + 0x28); in au_serial_dl_read()
378 static void au_serial_dl_write(struct uart_8250_port *up, int value) in au_serial_dl_write() argument
380 __raw_writel(value, up->port.membase + 0x28); in au_serial_dl_write()
463 struct uart_8250_port *up = up_to_u8250p(p); in set_io_from_upio() local
[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
177 int ret, irq_flags = up->port.flags & UPF_SHARE_IRQ ? IRQF_SHARED : 0; in serial_link_irq_chain()
181 h = &irq_lists[up->port.irq % NR_IRQ_HASH]; in serial_link_irq_chain()
[all …]
D8250_omap.c131 static u32 uart_read(struct uart_8250_port *up, u32 reg) in uart_read() argument
133 return readl(up->port.membase + (reg << up->port.regshift)); in uart_read()
138 struct uart_8250_port *up = up_to_u8250p(port); in omap8250_set_mctrl() local
139 struct omap8250_priv *priv = up->port.private_data; in omap8250_set_mctrl()
144 if (!mctrl_gpio_to_gpiod(up->gpios, UART_GPIO_RTS)) { in omap8250_set_mctrl()
149 lcr = serial_in(up, UART_LCR); in omap8250_set_mctrl()
150 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_set_mctrl()
155 serial_out(up, UART_EFR, priv->efr); in omap8250_set_mctrl()
156 serial_out(up, UART_LCR, lcr); in omap8250_set_mctrl()
169 static void omap_8250_mdr1_errataset(struct uart_8250_port *up, in omap_8250_mdr1_errataset() argument
[all …]
D8250_fsl.c32 struct uart_8250_port *up = up_to_u8250p(port); in fsl8250_handle_irq() local
34 spin_lock_irqsave(&up->port.lock, flags); in fsl8250_handle_irq()
38 spin_unlock_irqrestore(&up->port.lock, flags); in fsl8250_handle_irq()
43 if (unlikely(up->lsr_saved_flags & UART_LSR_BI)) { in fsl8250_handle_irq()
44 up->lsr_saved_flags &= ~UART_LSR_BI; in fsl8250_handle_irq()
46 spin_unlock_irqrestore(&up->port.lock, flags); in fsl8250_handle_irq()
50 lsr = orig_lsr = up->port.serial_in(&up->port, UART_LSR); in fsl8250_handle_irq()
54 (up->ier & (UART_IER_RLSI | UART_IER_RDI))) { in fsl8250_handle_irq()
55 lsr = serial8250_rx_chars(up, lsr); in fsl8250_handle_irq()
59 if ((orig_lsr & UART_LSR_OE) && (up->overrun_backoff_time_ms > 0)) { in fsl8250_handle_irq()
[all …]
D8250_mtk.c84 static void mtk8250_rx_dma(struct uart_8250_port *up);
88 struct uart_8250_port *up = param; in mtk8250_dma_rx_complete() local
89 struct uart_8250_dma *dma = up->dma; in mtk8250_dma_rx_complete()
90 struct mtk8250_data *data = up->port.private_data; in mtk8250_dma_rx_complete()
91 struct tty_port *tty_port = &up->port.state->port; in mtk8250_dma_rx_complete()
117 up->port.icount.rx += copied; in mtk8250_dma_rx_complete()
121 mtk8250_rx_dma(up); in mtk8250_dma_rx_complete()
124 static void mtk8250_rx_dma(struct uart_8250_port *up) in mtk8250_rx_dma() argument
126 struct uart_8250_dma *dma = up->dma; in mtk8250_rx_dma()
138 desc->callback_param = up; in mtk8250_rx_dma()
[all …]
D8250.h111 static inline int serial_in(struct uart_8250_port *up, int offset) in serial_in() argument
113 return up->port.serial_in(&up->port, offset); in serial_in()
116 static inline void serial_out(struct uart_8250_port *up, int offset, int value) in serial_out() argument
118 up->port.serial_out(&up->port, offset, value); in serial_out()
123 static inline int serial_dl_read(struct uart_8250_port *up) in serial_dl_read() argument
125 return up->dl_read(up); in serial_dl_read()
128 static inline void serial_dl_write(struct uart_8250_port *up, int value) in serial_dl_write() argument
130 up->dl_write(up, value); in serial_dl_write()
133 static inline bool serial8250_set_THRI(struct uart_8250_port *up) in serial8250_set_THRI() argument
135 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_em.c68 static int serial8250_em_serial_dl_read(struct uart_8250_port *up) in serial8250_em_serial_dl_read() argument
70 return serial_in(up, UART_DLL_EM) | serial_in(up, UART_DLM_EM) << 8; in serial8250_em_serial_dl_read()
73 static void serial8250_em_serial_dl_write(struct uart_8250_port *up, int value) in serial8250_em_serial_dl_write() argument
75 serial_out(up, UART_DLL_EM, value & 0xff); in serial8250_em_serial_dl_write()
76 serial_out(up, UART_DLM_EM, value >> 8 & 0xff); in serial8250_em_serial_dl_write()
84 struct uart_8250_port up; in serial8250_em_probe() local
102 memset(&up, 0, sizeof(up)); in serial8250_em_probe()
103 up.port.mapbase = regs->start; in serial8250_em_probe()
104 up.port.irq = irq->start; in serial8250_em_probe()
105 up.port.type = PORT_UNKNOWN; in serial8250_em_probe()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Duar.c87 struct mlx5_uars_page *up = container_of(kref, struct mlx5_uars_page, ref_count); in up_rel_func() local
89 list_del(&up->list); in up_rel_func()
90 iounmap(up->map); in up_rel_func()
91 if (mlx5_cmd_free_uar(up->mdev, up->index)) in up_rel_func()
92 mlx5_core_warn(up->mdev, "failed to free uar index %d\n", up->index); in up_rel_func()
93 bitmap_free(up->reg_bitmap); in up_rel_func()
94 bitmap_free(up->fp_bitmap); in up_rel_func()
95 kfree(up); in up_rel_func()
101 struct mlx5_uars_page *up; in alloc_uars_page() local
108 up = kzalloc(sizeof(*up), GFP_KERNEL); in alloc_uars_page()
[all …]
/Linux-v5.4/drivers/mtd/maps/
Dsun_uflash.c53 struct uflash_dev *up; in uflash_devinit() local
65 up = kzalloc(sizeof(struct uflash_dev), GFP_KERNEL); in uflash_devinit()
66 if (!up) { in uflash_devinit()
72 memcpy(&up->map, &uflash_map_templ, sizeof(uflash_map_templ)); in uflash_devinit()
74 up->map.size = resource_size(&op->resource[0]); in uflash_devinit()
76 up->name = of_get_property(dp, "model", NULL); in uflash_devinit()
77 if (up->name && 0 < strlen(up->name)) in uflash_devinit()
78 up->map.name = up->name; in uflash_devinit()
80 up->map.phys = op->resource[0].start; in uflash_devinit()
82 up->map.virt = of_ioremap(&op->resource[0], 0, up->map.size, in uflash_devinit()
[all …]
/Linux-v5.4/arch/mips/pmcs-msp71xx/
Dmsp_serial.c95 struct uart_port up; in msp_serial_setup() local
98 memset(&up, 0, sizeof(up)); in msp_serial_setup()
107 up.mapbase = MSP_UART0_BASE; in msp_serial_setup()
108 up.membase = ioremap_nocache(up.mapbase, MSP_UART_REG_LEN); in msp_serial_setup()
109 up.irq = MSP_INT_UART0; in msp_serial_setup()
110 up.uartclk = uartclk; in msp_serial_setup()
111 up.regshift = 2; in msp_serial_setup()
112 up.iotype = UPIO_MEM; in msp_serial_setup()
113 up.flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST; in msp_serial_setup()
114 up.type = PORT_16550A; in msp_serial_setup()
[all …]
/Linux-v5.4/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); \
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()
71 cy = mpihelp_mul_1(prodp, up, size, v_limb); in mul_n_basecase()
83 cy = mpihelp_add_n(prodp, prodp, up, size); in mul_n_basecase()
[all …]
/Linux-v5.4/arch/x86/platform/ce4100/
Dce4100.c82 static void ce4100_serial_fixup(int port, struct uart_port *up, in ce4100_serial_fixup() argument
91 if (up->iotype != UPIO_MEM32) { in ce4100_serial_fixup()
92 up->uartclk = 14745600; in ce4100_serial_fixup()
93 up->mapbase = 0xdffe0200; in ce4100_serial_fixup()
95 up->mapbase & PAGE_MASK); in ce4100_serial_fixup()
96 up->membase = in ce4100_serial_fixup()
98 up->membase += up->mapbase & ~PAGE_MASK; in ce4100_serial_fixup()
99 up->mapbase += port * 0x100; in ce4100_serial_fixup()
100 up->membase += port * 0x100; in ce4100_serial_fixup()
101 up->iotype = UPIO_MEM32; in ce4100_serial_fixup()
[all …]
/Linux-v5.4/Documentation/networking/dsa/
Dconfiguration.rst37 The slave interfaces depend on the master interface. They can only brought up,
38 when the master interface is up.
91 # The master interface needs to be brought up before the slave ports.
92 ip link set eth0 up
94 # bring up the slave interfaces
95 ip link set lan1 up
96 ip link set lan2 up
97 ip link set lan3 up
104 # The master interface needs to be brought up before the slave ports.
105 ip link set eth0 up
[all …]
/Linux-v5.4/drivers/scsi/
Daha1740.h85 #define any2scsi(up, p) \ argument
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]) ) argument
92 #define xany2scsi(up, p) \ argument
93 (up)[0] = ((long)(p)) >> 24; \
94 (up)[1] = ((long)(p)) >> 16; \
95 (up)[2] = ((long)(p)) >> 8; \
96 (up)[3] = ((long)(p));
[all …]

12345678910>>...61