Home
last modified time | relevance | path

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

12345678910>>...369

/openbmc/linux/drivers/tty/serial/
H A Domap-serial.c172 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) in serial_in() argument
176 offset <<= up->port.regshift; in serial_in()
177 return readw(up->port.membase + offset); in serial_in()
180 static inline void serial_out(struct uart_omap_port *up, int offset, int value) in serial_out() argument
182 offset <<= up->port.regshift; in serial_out()
183 writew(value, up->port.membase + offset); in serial_out()
186 static inline void serial_omap_clear_fifos(struct uart_omap_port *up) in serial_omap_clear_fifos() argument
188 serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO); in serial_omap_clear_fifos()
189 serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO | in serial_omap_clear_fifos()
[all …]
H A 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
136 offset <<= up->port.regshift; in serial_out()
138 switch (up->port.iotype) { in serial_out()
[all …]
H A 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 …]
H A Dsunsab.c92 static __inline__ void sunsab_tec_wait(struct uart_sunsab_port *up) in sunsab_tec_wait() argument
94 int timeout = up->tec_timeout; in sunsab_tec_wait()
96 while ((readb(&up->regs->r.star) & SAB82532_STAR_TEC) && --timeout) in sunsab_tec_wait()
100 static __inline__ void sunsab_cec_wait(struct uart_sunsab_port *up) in sunsab_cec_wait() argument
102 int timeout = up->cec_timeout; in sunsab_cec_wait()
104 while ((readb(&up->regs->r.star) & SAB82532_STAR_CEC) && --timeout) in sunsab_cec_wait()
109 receive_chars(struct uart_sunsab_port *up, in receive_chars() argument
119 if (up->port.state != NULL) /* Unopened serial console */ in receive_chars()
120 port = &up->port.state->port; in receive_chars()
129 count = readb(&up->regs->r.rbcl) & (SAB82532_RECV_FIFO_SIZE - 1); in receive_chars()
[all …]
H A 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 …]
H A Dpxa.c52 static inline unsigned int serial_in(struct uart_pxa_port *up, int offset) in serial_in() argument
55 return readl(up->port.membase + offset); in serial_in()
58 static inline void serial_out(struct uart_pxa_port *up, int offset, int value) in serial_out() argument
61 writel(value, up->port.membase + offset); in serial_out()
66 struct uart_pxa_port *up = (struct uart_pxa_port *)port; in serial_pxa_enable_ms() local
68 up->ier |= UART_IER_MSI; in serial_pxa_enable_ms()
69 serial_out(up, UART_IER, up->ier); in serial_pxa_enable_ms()
74 struct uart_pxa_port *up = (struct uart_pxa_port *)port; in serial_pxa_stop_tx() local
76 if (up->ier & UART_IER_THRI) { in serial_pxa_stop_tx()
77 up->ier &= ~UART_IER_THRI; in serial_pxa_stop_tx()
[all …]
H A Dserial_txx9.c158 static inline unsigned int sio_in(struct uart_port *up, int offset) in sio_in() argument
160 switch (up->iotype) { in sio_in()
162 return __raw_readl(up->membase + offset); in sio_in()
164 return inl(up->iobase + offset); in sio_in()
169 sio_out(struct uart_port *up, int offset, int value) in sio_out() argument
171 switch (up->iotype) { in sio_out()
173 __raw_writel(value, up->membase + offset); in sio_out()
176 outl(value, up->iobase + offset); in sio_out()
182 sio_mask(struct uart_port *up, int offset, unsigned int value) in sio_mask() argument
184 sio_out(up, offset, sio_in(up, offset) & ~value); in sio_mask()
[all …]
H A 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 …]
H A Dma35d1_serial.c105 #define MA35_ISR_WK_IF BIT(6) /* UART Wake-up Interrupt Flag */
189 struct uart_ma35d1_port *up = to_ma35d1_uart_port(port); in ma35d1serial_stop_tx() local
191 __stop_tx(up); in ma35d1serial_stop_tx()
194 static void transmit_chars(struct uart_ma35d1_port *up) in transmit_chars() argument
199 if (uart_tx_stopped(&up->port)) { in transmit_chars()
200 ma35d1serial_stop_tx(&up->port); in transmit_chars()
204 serial_in(up, MA35_FSR_REG)); in transmit_chars()
205 uart_port_tx_limited(&up->port, ch, count, in transmit_chars()
206 !(serial_in(up, MA35_FSR_REG) & MA35_FSR_TX_FULL), in transmit_chars()
207 serial_out(up, MA35_THR_REG, ch), in transmit_chars()
[all …]
/openbmc/linux/drivers/net/can/usb/
H A Ducan.c85 /* wake up can transceiver from low-power sleep mode */
263 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 …]
/openbmc/linux/drivers/tty/serial/8250/
H A D8250_port.c336 static u32 default_serial_dl_read(struct uart_8250_port *up) in default_serial_dl_read() argument
339 unsigned char dll = serial_in(up, UART_DLL); in default_serial_dl_read()
340 unsigned char dlm = serial_in(up, UART_DLM); in default_serial_dl_read()
346 static void default_serial_dl_write(struct uart_8250_port *up, u32 value) in default_serial_dl_write() argument
348 serial_out(up, UART_DLL, value & 0xff); in default_serial_dl_write()
349 serial_out(up, UART_DLM, value >> 8 & 0xff); in default_serial_dl_write()
430 struct uart_8250_port *up = up_to_u8250p(p); in set_io_from_upio() local
432 up->dl_read = default_serial_dl_read; in set_io_from_upio()
433 up->dl_write = default_serial_dl_write; in set_io_from_upio()
467 up->cur_iotype = p->iotype; in set_io_from_upio()
[all …]
H A D8250_core.c121 struct uart_8250_port *up; in serial8250_interrupt() local
124 up = list_entry(l, struct uart_8250_port, list); in serial8250_interrupt()
125 port = &up->port; in serial8250_interrupt()
153 static void serial_do_unlink(struct irq_info *i, struct uart_8250_port *up) in serial_do_unlink() argument
158 if (i->head == &up->list) in serial_do_unlink()
160 list_del(&up->list); in serial_do_unlink()
162 BUG_ON(i->head != &up->list); in serial_do_unlink()
173 static int serial_link_irq_chain(struct uart_8250_port *up) in serial_link_irq_chain() argument
181 h = &irq_lists[up->port.irq % NR_IRQ_HASH]; in serial_link_irq_chain()
184 if (i->irq == up->port.irq) in serial_link_irq_chain()
[all …]
H A D8250_omap.c178 struct uart_8250_port *up = up_to_u8250p(port); in __omap8250_set_mctrl() local
179 struct omap8250_priv *priv = up->port.private_data; in __omap8250_set_mctrl()
184 if (!mctrl_gpio_to_gpiod(up->gpios, UART_GPIO_RTS)) { in __omap8250_set_mctrl()
189 lcr = serial_in(up, UART_LCR); in __omap8250_set_mctrl()
190 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in __omap8250_set_mctrl()
195 serial_out(up, UART_EFR, priv->efr); in __omap8250_set_mctrl()
196 serial_out(up, UART_LCR, lcr); in __omap8250_set_mctrl()
223 static void omap_8250_mdr1_errataset(struct uart_8250_port *up, in omap_8250_mdr1_errataset() argument
226 serial_out(up, UART_OMAP_MDR1, priv->mdr1); in omap_8250_mdr1_errataset()
228 serial_out(up, UART_FCR, up->fcr | UART_FCR_CLEAR_XMIT | in omap_8250_mdr1_errataset()
[all …]
H A D8250.h115 static inline int serial_in(struct uart_8250_port *up, int offset) in serial_in() argument
117 return up->port.serial_in(&up->port, offset); in serial_in()
120 static inline void serial_out(struct uart_8250_port *up, int offset, int value) in serial_out() argument
122 up->port.serial_out(&up->port, offset, value); in serial_out()
127 * @up: uart 8250 port
131 * up->lsr_saved_flags.
135 static inline u16 serial_lsr_in(struct uart_8250_port *up) in serial_lsr_in() argument
137 u16 lsr = up->lsr_saved_flags; in serial_lsr_in()
139 lsr |= serial_in(up, UART_LSR); in serial_lsr_in()
140 up->lsr_saved_flags = lsr & up->lsr_save_mask; in serial_lsr_in()
[all …]
H A D8250_mtk.c89 static void mtk8250_rx_dma(struct uart_8250_port *up);
93 struct uart_8250_port *up = param; in mtk8250_dma_rx_complete() local
94 struct uart_8250_dma *dma = up->dma; in mtk8250_dma_rx_complete()
95 struct mtk8250_data *data = up->port.private_data; in mtk8250_dma_rx_complete()
96 struct tty_port *tty_port = &up->port.state->port; in mtk8250_dma_rx_complete()
105 spin_lock_irqsave(&up->port.lock, flags); in mtk8250_dma_rx_complete()
125 up->port.icount.rx += copied; in mtk8250_dma_rx_complete()
129 mtk8250_rx_dma(up); in mtk8250_dma_rx_complete()
131 spin_unlock_irqrestore(&up->port.lock, flags); in mtk8250_dma_rx_complete()
134 static void mtk8250_rx_dma(struct uart_8250_port *up) in mtk8250_rx_dma() argument
[all …]
H A D8250_bcm2835aux.c52 static void bcm2835aux_rs485_start_tx(struct uart_8250_port *up) in bcm2835aux_rs485_start_tx() argument
54 if (!(up->port.rs485.flags & SER_RS485_RX_DURING_TX)) { in bcm2835aux_rs485_start_tx()
55 struct bcm2835aux_data *data = dev_get_drvdata(up->port.dev); in bcm2835aux_rs485_start_tx()
58 serial_out(up, BCM2835_AUX_UART_CNTL, data->cntl); in bcm2835aux_rs485_start_tx()
65 if (up->port.rs485.flags & SER_RS485_RTS_ON_SEND) in bcm2835aux_rs485_start_tx()
66 serial8250_out_MCR(up, 0); in bcm2835aux_rs485_start_tx()
68 serial8250_out_MCR(up, UART_MCR_RTS); in bcm2835aux_rs485_start_tx()
71 static void bcm2835aux_rs485_stop_tx(struct uart_8250_port *up) in bcm2835aux_rs485_stop_tx() argument
73 if (up->port.rs485.flags & SER_RS485_RTS_AFTER_SEND) in bcm2835aux_rs485_stop_tx()
74 serial8250_out_MCR(up, 0); in bcm2835aux_rs485_stop_tx()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Duar.c83 struct mlx5_uars_page *up = container_of(kref, struct mlx5_uars_page, ref_count); in up_rel_func() local
85 list_del(&up->list); in up_rel_func()
86 iounmap(up->map); in up_rel_func()
87 if (mlx5_cmd_free_uar(up->mdev, up->index)) in up_rel_func()
88 mlx5_core_warn(up->mdev, "failed to free uar index %d\n", up->index); in up_rel_func()
89 bitmap_free(up->reg_bitmap); in up_rel_func()
90 bitmap_free(up->fp_bitmap); in up_rel_func()
91 kfree(up); in up_rel_func()
97 struct mlx5_uars_page *up; in alloc_uars_page() local
106 up = kzalloc_node(sizeof(*up), GFP_KERNEL, node); in alloc_uars_page()
[all …]
/openbmc/linux/drivers/mtd/maps/
H A 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 …]
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/
H A Dserial_scc.c77 volatile scc_uart_t *up; in mpc85xx_serial_init() local
85 up = (scc_uart_t *)&(cpm->im_dprambase[PROFF_SCC]); in mpc85xx_serial_init()
97 /* Set up the baud rate generator. in mpc85xx_serial_init()
117 /* Set up the uart parameters in the parameter ram. in mpc85xx_serial_init()
119 up->scc_genscc.scc_rbase = dpaddr; in mpc85xx_serial_init()
120 up->scc_genscc.scc_tbase = dpaddr+sizeof(cbd_t); in mpc85xx_serial_init()
121 up->scc_genscc.scc_rfcr = CPMFCR_EB; in mpc85xx_serial_init()
122 up->scc_genscc.scc_tfcr = CPMFCR_EB; in mpc85xx_serial_init()
123 up->scc_genscc.scc_mrblr = 1; in mpc85xx_serial_init()
124 up->scc_maxidl = 0; in mpc85xx_serial_init()
[all …]
/openbmc/linux/lib/crypto/mpi/
H A 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 …]
/openbmc/linux/Documentation/networking/dsa/
H A 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 …]
H A 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.
100 # brought up manually before the slave ports.
101 ip link set eth0 up
103 # bring up the slave interfaces
104 ip link set lan1 up
105 ip link set lan2 up
106 ip link set lan3 up
112 # brought up manually before the slave ports.
[all …]
/openbmc/phosphor-webui/app/common/styles/base/
H A Dfoundation.scss996 .small-up-1 > .column, .small-up-1 > .columns {
999 .small-up-1 > .column:nth-of-type(1n), .small-up-1 > .columns:nth-of-type(1n) {
1001 .small-up-1 > .column:nth-of-type(1n+1), .small-up-1 > .columns:nth-of-type(1n+1) {
1003 .small-up-1 > .column:last-child, .small-up-1 > .columns:last-child {
1006 .small-up-2 > .column, .small-up-2 > .columns {
1009 .small-up-2 > .column:nth-of-type(1n), .small-up-2 > .columns:nth-of-type(1n) {
1011 .small-up-2 > .column:nth-of-type(2n+1), .small-up-2 > .columns:nth-of-type(2n+1) {
1013 .small-up-2 > .column:last-child, .small-up-2 > .columns:last-child {
1016 .small-up-3 > .column, .small-up-3 > .columns {
1019 .small-up-3 > .column:nth-of-type(1n), .small-up-3 > .columns:nth-of-type(1n) {
[all …]
/openbmc/u-boot/board/nvidia/dalmore/
H A Dpinmux-config-dalmore.h148 DEFAULT_PINMUX(GMI_AD6_PG6, SPI4, UP, NORMAL, INPUT),
149 DEFAULT_PINMUX(GMI_AD7_PG7, SPI4, UP, NORMAL, INPUT),
166 DEFAULT_PINMUX(SDMMC1_CMD_PZ1, SDMMC1, UP, NORMAL, INPUT),
167 DEFAULT_PINMUX(SDMMC1_DAT0_PY7, SDMMC1, UP, NORMAL, INPUT),
168 DEFAULT_PINMUX(SDMMC1_DAT1_PY6, SDMMC1, UP, NORMAL, INPUT),
169 DEFAULT_PINMUX(SDMMC1_DAT2_PY5, SDMMC1, UP, NORMAL, INPUT),
170 DEFAULT_PINMUX(SDMMC1_DAT3_PY4, SDMMC1, UP, NORMAL, INPUT),
174 DEFAULT_PINMUX(SDMMC3_CMD_PA7, SDMMC3, UP, NORMAL, INPUT),
175 DEFAULT_PINMUX(SDMMC3_DAT0_PB7, SDMMC3, UP, NORMAL, INPUT),
176 DEFAULT_PINMUX(SDMMC3_DAT1_PB6, SDMMC3, UP, NORMAL, INPUT),
[all …]
/openbmc/u-boot/board/nvidia/cardhu/
H A Dpinmux-config-cardhu.h60 DEFAULT_PINMUX(SDMMC1_CMD_PZ1, SDMMC1, UP, NORMAL, INPUT),
61 DEFAULT_PINMUX(SDMMC1_DAT3_PY4, SDMMC1, UP, NORMAL, INPUT),
62 DEFAULT_PINMUX(SDMMC1_DAT2_PY5, SDMMC1, UP, NORMAL, INPUT),
63 DEFAULT_PINMUX(SDMMC1_DAT1_PY6, SDMMC1, UP, NORMAL, INPUT),
64 DEFAULT_PINMUX(SDMMC1_DAT0_PY7, SDMMC1, UP, NORMAL, INPUT),
68 DEFAULT_PINMUX(SDMMC3_CMD_PA7, SDMMC3, UP, NORMAL, INPUT),
69 DEFAULT_PINMUX(SDMMC3_DAT0_PB7, SDMMC3, UP, NORMAL, INPUT),
70 DEFAULT_PINMUX(SDMMC3_DAT1_PB6, SDMMC3, UP, NORMAL, INPUT),
71 DEFAULT_PINMUX(SDMMC3_DAT2_PB5, SDMMC3, UP, NORMAL, INPUT),
72 DEFAULT_PINMUX(SDMMC3_DAT3_PB4, SDMMC3, UP, NORMAL, INPUT),
[all …]

12345678910>>...369