| /linux/drivers/tty/serial/ |
| H A D | sunsab.c | 92 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 D | ar933x_uart.c | 57 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 D | sunzilog.c | 268 static void sunzilog_maybe_update_regs(struct uart_sunzilog_port *up, in sunzilog_maybe_update_regs() argument 271 if (!ZS_REGS_HELD(up)) { in sunzilog_maybe_update_regs() 272 if (ZS_TX_ACTIVE(up)) { in sunzilog_maybe_update_regs() 273 up->flags |= SUNZILOG_FLAG_REGS_HELD; in sunzilog_maybe_update_regs() 275 __load_zsregs(channel, up->curregs); in sunzilog_maybe_update_regs() 280 static void sunzilog_change_mouse_baud(struct uart_sunzilog_port *up) in sunzilog_change_mouse_baud() argument 282 unsigned int cur_cflag = up->cflag; in sunzilog_change_mouse_baud() 285 up->cflag &= ~CBAUD; in sunzilog_change_mouse_baud() 286 up->cflag |= suncore_mouse_baud_cflag_next(cur_cflag, &new_baud); in sunzilog_change_mouse_baud() 289 up->curregs[R12] = (brg & 0xff); in sunzilog_change_mouse_baud() [all …]
|
| /linux/drivers/net/can/usb/ |
| H A D | ucan.c | 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 = kzalloc_objs(*up->context_array, in ucan_alloc_context_array() 334 up->device_info.tx_fifo); in ucan_alloc_context_array() [all …]
|
| /linux/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); 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 …]
|
| /linux/drivers/mtd/maps/ |
| H A D | sun_uflash.c | 52 struct uflash_dev *up; in uflash_devinit() local 64 up = kzalloc_obj(struct uflash_dev); 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/drivers/tty/serial/8250/ |
| H A D | 8250_omap.c | 185 struct uart_8250_port *up = up_to_u8250p(port); in __omap8250_set_mctrl() local 191 if (!mctrl_gpio_to_gpiod(up->gpios, UART_GPIO_RTS)) { in __omap8250_set_mctrl() 196 lcr = serial_in(up, UART_LCR); in __omap8250_set_mctrl() 197 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in __omap8250_set_mctrl() 202 serial_out(up, UART_EFR, priv->efr); in __omap8250_set_mctrl() 203 serial_out(up, UART_LCR, lcr); in __omap8250_set_mctrl() 230 static void omap_8250_mdr1_errataset(struct uart_8250_port *up, in omap_8250_mdr1_errataset() argument 233 serial_out(up, UART_OMAP_MDR1, priv->mdr1); in omap_8250_mdr1_errataset() 235 serial_out(up, UART_FCR, up in omap_8250_mdr1_errataset() 266 omap8250_update_scr(struct uart_8250_port * up,struct omap8250_priv * priv) omap8250_update_scr() argument 286 omap8250_update_mdr1(struct uart_8250_port * up,struct omap8250_priv * priv) omap8250_update_mdr1() argument 295 omap8250_restore_regs(struct uart_8250_port * up) omap8250_restore_regs() argument 366 struct uart_8250_port *up = up_to_u8250p(port); omap_8250_set_termios_atomic() local 533 struct uart_8250_port *up = up_to_u8250p(port); omap_8250_pm() local 551 omap_serial_fill_features_erratas(struct uart_8250_port * up,struct omap8250_priv * priv) omap_serial_fill_features_erratas() argument 631 struct uart_8250_port *up = serial8250_get_port(priv->line); omap8250_irq() local 709 struct uart_8250_port *up = up_to_u8250p(port); omap_8250_startup() local 770 struct uart_8250_port *up = up_to_u8250p(port); omap_8250_shutdown() local 817 struct uart_8250_port *up = up_to_u8250p(port); omap_8250_unthrottle() local 835 struct uart_8250_port *up = up_to_u8250p(port); omap8250_rs485_config() local 1221 handle_rx_dma(struct uart_8250_port * up,unsigned int iir) handle_rx_dma() argument 1233 omap_8250_handle_rx_dma(struct uart_8250_port * up,u8 iir,u16 status) omap_8250_handle_rx_dma() argument 1246 am654_8250_handle_uart_errors(struct uart_8250_port * up,u8 iir,u16 status) am654_8250_handle_uart_errors() argument 1260 am654_8250_handle_rx_dma(struct uart_8250_port * up,u8 iir,u16 status) am654_8250_handle_rx_dma() argument 1299 struct uart_8250_port *up = up_to_u8250p(port); omap_8250_dma_handle_irq() local 1420 struct uart_8250_port up; omap8250_probe() local 1617 struct uart_8250_port *up; omap8250_remove() local 1658 struct uart_8250_port *up = serial8250_get_port(priv->line); omap8250_suspend() local 1686 struct uart_8250_port *up = serial8250_get_port(priv->line); omap8250_resume() local 1710 omap8250_lost_context(struct uart_8250_port * up) omap8250_lost_context() argument 1774 struct uart_8250_port *up = NULL; omap8250_runtime_suspend() local 1807 struct uart_8250_port *up = NULL; omap8250_runtime_resume() local [all...] |
| H A D | 8250_uniphier.c | 148 static u32 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, u32 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 181 memset(&up, 0, sizeof(up)); in uniphier_uart_probe() 193 up.port.uartclk = clk_get_rate(priv->clk); in uniphier_uart_probe() 197 up.port.dev = dev; in uniphier_uart_probe() 198 up.port.private_data = priv; in uniphier_uart_probe() 199 up.port.mapbase = regs->start; in uniphier_uart_probe() [all …]
|
| H A D | 8250_ce4100.c | 62 static void ce4100_serial_fixup(int port, struct uart_port *up, u32 *capabilities) in ce4100_serial_fixup() argument 70 if (up->iotype != UPIO_MEM32) { in ce4100_serial_fixup() 71 up->uartclk = 14745600; in ce4100_serial_fixup() 72 up->mapbase = 0xdffe0200; in ce4100_serial_fixup() 73 set_fixmap_nocache(FIX_EARLYCON_MEM_BASE, up->mapbase & PAGE_MASK); in ce4100_serial_fixup() 74 up->membase = (void __iomem *)__fix_to_virt(FIX_EARLYCON_MEM_BASE); in ce4100_serial_fixup() 75 up->membase += up->mapbase & ~PAGE_MASK; in ce4100_serial_fixup() 76 up->mapbase += port * 0x100; in ce4100_serial_fixup() 77 up->membase += port * 0x100; in ce4100_serial_fixup() 78 up->iotype = UPIO_MEM32; in ce4100_serial_fixup() [all …]
|
| H A D | 8250_em.c | 141 static u32 serial8250_em_serial_dl_read(struct uart_8250_port *up) in serial8250_em_serial_dl_read() argument 143 return serial_in(up, UART_DLL_EM) | serial_in(up, UART_DLM_EM) << 8; in serial8250_em_serial_dl_read() 146 static void serial8250_em_serial_dl_write(struct uart_8250_port *up, u32 value) in serial8250_em_serial_dl_write() argument 148 serial_out(up, UART_DLL_EM, value & 0xff); in serial8250_em_serial_dl_write() 149 serial_out(up, UART_DLM_EM, value >> 8 & 0xff); in serial8250_em_serial_dl_write() 156 struct uart_8250_port up; in serial8250_em_probe() local 177 memset(&up, 0, sizeof(up)); in serial8250_em_probe() 178 up.port.mapbase = regs->start; in serial8250_em_probe() 179 up.port.irq = irq; in serial8250_em_probe() 180 up.port.type = PORT_16750; in serial8250_em_probe() [all …]
|
| H A D | 8250_dw.c | 105 struct uart_8250_port *up = up_to_u8250p(p); in dw8250_idle_exit() local 110 if (up->capabilities & UART_CAP_FIFO) in dw8250_idle_exit() 111 serial_port_out(p, UART_FCR, up->fcr); in dw8250_idle_exit() 112 serial_port_out(p, UART_MCR, up->mcr); in dw8250_idle_exit() 113 serial_port_out(p, UART_IER, up->ier); in dw8250_idle_exit() 116 if (up->dma) in dw8250_idle_exit() 117 serial8250_tx_dma_resume(up); in dw8250_idle_exit() 133 struct uart_8250_port *up = up_to_u8250p(p); in dw8250_idle_enter() local 147 if (up->dma) { in dw8250_idle_enter() 148 serial8250_rx_dma_flush(up); in dw8250_idle_enter() [all …]
|
| H A D | 8250_ni.c | 108 struct uart_8250_port *up = container_of(port, struct uart_8250_port, port); in ni16550_rs485_config() local 118 up->acr &= ~NI16550_ACR_AUTO_DTR_EN; in ni16550_rs485_config() 122 up->acr |= NI16550_ACR_AUTO_DTR_EN; in ni16550_rs485_config() 125 dev_dbg(port->dev, "config rs485: write pcr: 0x%02x, acr: %02x\n", pcr, up->acr); in ni16550_rs485_config() 127 serial_icr_write(up, UART_ACR, up->acr); in ni16550_rs485_config() 132 static bool is_pmr_rs232_mode(struct uart_8250_port *up) in is_pmr_rs232_mode() argument 134 u8 pmr = serial_in(up, NI16550_PMR_OFFSET); in is_pmr_rs232_mode() 158 static void ni16550_config_prescaler(struct uart_8250_port *up, in ni16550_config_prescaler() argument 168 lcr_value = serial_in(up, UART_LCR); in ni16550_config_prescaler() 169 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in ni16550_config_prescaler() [all …]
|
| H A D | 8250_keba.c | 77 static void kuart_enhanced_mode(struct uart_8250_port *up, bool enable) in kuart_enhanced_mode() argument 82 lcr = serial_in(up, UART_LCR); in kuart_enhanced_mode() 85 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in kuart_enhanced_mode() 88 efr = serial_in(up, UART_EFR); in kuart_enhanced_mode() 93 serial_out(up, UART_EFR, efr); in kuart_enhanced_mode() 96 serial_out(up, UART_LCR, lcr); in kuart_enhanced_mode() 99 static void kuart_dtr_line_config(struct uart_8250_port *up, u8 dtrlc) in kuart_dtr_line_config() argument 104 serial_out(up, KUART_EMODE_ICR_OFFSET, UART_ACR); in kuart_dtr_line_config() 107 acr = serial_in(up, KUART_EMODE_ICR_VALUE); in kuart_dtr_line_config() 110 serial_out(up, KUART_EMODE_ICR_VALUE, acr); in kuart_dtr_line_config() [all …]
|
| /linux/lib/crypto/mpi/ |
| H A D | mpih-mul.c | 21 #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 …]
|
| H A D | mpi-mul.c | 21 mpi_ptr_t up, vp, wp; in mpi_mul() local 32 up = v->d; in mpi_mul() 39 up = u->d; in mpi_mul() 50 if (wp == up || wp == vp) { in mpi_mul() 62 if (wp == up) { in mpi_mul() 64 up = tmp_limb = mpi_alloc_limb_space(usize); in mpi_mul() 65 if (!up) in mpi_mul() 69 vp = up; in mpi_mul() 71 MPN_COPY(up, wp, usize); in mpi_mul() 85 err = mpihelp_mul(wp, up, usize, vp, vsize, &cy); in mpi_mul()
|
| /linux/drivers/scsi/ |
| H A D | aha1740.h | 85 #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 …]
|
| H A D | aha1542.h | 73 #define scsi2int(up) ( (((long)*(up)) << 16) + (((long)(up)[1]) << 8) + ((long)(up)[2]) ) argument 75 #define xscsi2int(up) ( (((long)(up)[0]) << 24) + (((long)(up)[1]) << 16) \ argument 76 + (((long)(up)[2]) << 8) + ((long)(up)[3]) )
|
| /linux/arch/arm/boot/dts/broadcom/ |
| H A D | bcm2166x-pinctrl.dtsi | 85 bias-pull-up; 91 bias-pull-up; 105 bias-pull-up; 111 bias-pull-up; 126 bias-pull-up; 132 bias-pull-up; 146 bias-pull-up; 152 bias-pull-up; 158 bias-pull-up; 164 bias-pull-up; [all …]
|
| /linux/arch/arm64/boot/dts/rockchip/ |
| H A D | rockchip-pinconf.dtsi | 8 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 …]
|
| /linux/Documentation/networking/dsa/ |
| H A D | b53.rst | 61 The configuration can only be set up via VLAN tagging and bridge setup. 71 # The conduit interface needs to be brought up before the user 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 user interfaces 78 ip link set wan up 79 ip link set lan1 up 80 ip link set lan2 up [all …]
|
| H A D | configuration.rst | 37 The user interfaces depend on the conduit interface being up in order for them 42 - when a DSA user interface is brought up, the conduit interface is 43 automatically brought up. 100 # brought up manually before the user ports. 101 ip link set eth0 up 103 # bring up the user 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 user ports. [all …]
|
| /linux/drivers/thunderbolt/ |
| H A D | tmu.c | 378 struct tb_port *up = tb_upstream_port(sw); in tmu_mode_init() local 380 if (enhanced && tb_port_tmu_is_enhanced(up)) { in tmu_mode_init() 382 } else if (ucap && tb_port_tmu_is_unidirectional(up)) { in tmu_mode_init() 540 static int disable_enhanced(struct tb_port *up, struct tb_port *down) in disable_enhanced() argument 548 tb_port_tmu_rate_write(up, 0); in disable_enhanced() 549 tb_port_tmu_enhanced_enable(up, false); in disable_enhanced() 572 struct tb_port *down, *up; in tb_switch_tmu_disable() local 576 up = tb_upstream_port(sw); in tb_switch_tmu_disable() 592 tb_port_tmu_time_sync_disable(up); in tb_switch_tmu_disable() 601 tb_port_tmu_unidirectional_disable(up); in tb_switch_tmu_disable() [all …]
|
| /linux/fs/ntfs3/ |
| H A D | lznt.c | 145 const u8 *up = unc; in compress_chunk() local 163 while (up < unc_end) { in compress_chunk() 166 while (unc + s_max_off[idx] < up) in compress_chunk() 170 max_len = up + 3 <= unc_end ? (*match)(up, ctx) : 0; in compress_chunk() 175 not_zero |= *cp++ = *up++; in compress_chunk() 179 t16 = make_pair(up - ctx->best_match, max_len, idx); in compress_chunk() 184 up += max_len; in compress_chunk() 230 u8 *up = unc; in decompress_chunk() local 238 while (up < unc_end && cmpr < cmpr_end) { in decompress_chunk() 240 if (up - unc > LZNT_CHUNK_SIZE) in decompress_chunk() [all …]
|
| /linux/arch/arm/boot/dts/nxp/mxs/ |
| H A D | imx28.dtsi | 224 fsl,pull-up = <MXS_PULL_DISABLE>; 235 fsl,pull-up = <MXS_PULL_DISABLE>; 248 fsl,pull-up = <MXS_PULL_DISABLE>; 272 fsl,pull-up = <MXS_PULL_DISABLE>; 295 fsl,pull-up = <MXS_PULL_DISABLE>; 306 fsl,pull-up = <MXS_PULL_DISABLE>; 319 fsl,pull-up = <MXS_PULL_DISABLE>; 330 fsl,pull-up = <MXS_PULL_DISABLE>; 341 fsl,pull-up = <MXS_PULL_DISABLE>; 352 fsl,pull-up = <MXS_PULL_DISABLE>; [all …]
|
| /linux/tools/testing/selftests/net/hsr/ |
| H A D | hsr_redbox.sh | 83 ip -n "${ns1}" link set ns1eth1 up 84 ip -n "${ns1}" link set ns1eth2 up 86 ip -n "${ns2}" link set ns2eth1 up 87 ip -n "${ns2}" link set ns2eth2 up 88 ip -n "${ns2}" link set ns2eth3 up 91 ip -n "${ns3}" link set ns3br1 up 92 ip -n "${ns3}" link set ns3eth1 master ns3br1 up 93 ip -n "${ns3}" link set ns3eth2 master ns3br1 up 94 ip -n "${ns3}" link set ns3eth3 master ns3br1 up 96 ip -n "${ns4}" link set ns4eth1 up [all …]
|