up 105 arch/arm/include/asm/processor.h #define __ALT_SMP_ASM(smp, up) \ up 109 arch/arm/include/asm/processor.h " " up "\n" \ up 112 arch/arm/include/asm/processor.h #define __ALT_SMP_ASM(smp, up) up up 31 arch/arm/mach-omap1/serial.c static inline unsigned int omap_serial_in(struct plat_serial8250_port *up, up 34 arch/arm/mach-omap1/serial.c offset <<= up->regshift; up 35 arch/arm/mach-omap1/serial.c return (unsigned int)__raw_readb(up->membase + offset); up 350 arch/arm/mach-vexpress/spc.c up(&info->sem); up 373 arch/arm/mach-vexpress/spc.c up(&info->sem); up 88 arch/ia64/include/asm/processor.h __u64 up : 1; up 3955 arch/ia64/kernel/perfmon.c ia64_psr(regs)->up = 0; up 3962 arch/ia64/kernel/perfmon.c ia64_psr(tregs)->up = 0; up 4036 arch/ia64/kernel/perfmon.c ia64_psr(regs)->up = 1; up 4050 arch/ia64/kernel/perfmon.c ia64_psr(tregs)->up = 1; up 4318 arch/ia64/kernel/perfmon.c ia64_psr(regs)->up = ia64_psr(regs)->pp = 0; up 4544 arch/ia64/kernel/perfmon.c BUG_ON(ia64_psr(regs)->up); up 5396 arch/ia64/kernel/perfmon.c ia64_psr(regs)->up = 0; up 5721 arch/ia64/kernel/perfmon.c ia64_psr(regs)->up = 0; up 6647 arch/ia64/kernel/perfmon.c ia64_psr(regs)->up, up 6650 arch/ia64/kernel/perfmon.c ia64_psr(regs)->up = 0; up 331 arch/m68k/math-emu/fp_decode.h | all other indirect addressing modes will finally end up here up 36 arch/mips/cavium-octeon/flash_setup.c up(&octeon_bootbus_sem); up 46 arch/mips/cavium-octeon/flash_setup.c up(&octeon_bootbus_sem); up 54 arch/mips/cavium-octeon/flash_setup.c up(&octeon_bootbus_sem); up 62 arch/mips/cavium-octeon/flash_setup.c up(&octeon_bootbus_sem); up 290 arch/mips/include/asm/netlogic/xlr/pic.h uint32_t up, low; up 295 arch/mips/include/asm/netlogic/xlr/pic.h up = value >> 32; up 298 arch/mips/include/asm/netlogic/xlr/pic.h nlm_write_reg(base, PIC_TIMER_MAXVAL_1(timer), up); up 95 arch/mips/pmcs-msp71xx/msp_serial.c struct uart_port up; up 98 arch/mips/pmcs-msp71xx/msp_serial.c memset(&up, 0, sizeof(up)); up 107 arch/mips/pmcs-msp71xx/msp_serial.c up.mapbase = MSP_UART0_BASE; up 108 arch/mips/pmcs-msp71xx/msp_serial.c up.membase = ioremap_nocache(up.mapbase, MSP_UART_REG_LEN); up 109 arch/mips/pmcs-msp71xx/msp_serial.c up.irq = MSP_INT_UART0; up 110 arch/mips/pmcs-msp71xx/msp_serial.c up.uartclk = uartclk; up 111 arch/mips/pmcs-msp71xx/msp_serial.c up.regshift = 2; up 112 arch/mips/pmcs-msp71xx/msp_serial.c up.iotype = UPIO_MEM; up 113 arch/mips/pmcs-msp71xx/msp_serial.c up.flags = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST; up 114 arch/mips/pmcs-msp71xx/msp_serial.c up.type = PORT_16550A; up 115 arch/mips/pmcs-msp71xx/msp_serial.c up.line = 0; up 116 arch/mips/pmcs-msp71xx/msp_serial.c up.serial_out = msp_serial_out; up 117 arch/mips/pmcs-msp71xx/msp_serial.c up.serial_in = msp_serial_in; up 118 arch/mips/pmcs-msp71xx/msp_serial.c up.handle_irq = msp_serial_handle_irq; up 119 arch/mips/pmcs-msp71xx/msp_serial.c up.private_data = kzalloc(sizeof(struct msp_uart_data), GFP_KERNEL); up 120 arch/mips/pmcs-msp71xx/msp_serial.c if (!up.private_data) { up 124 arch/mips/pmcs-msp71xx/msp_serial.c if (early_serial_setup(&up)) { up 125 arch/mips/pmcs-msp71xx/msp_serial.c kfree(up.private_data); up 145 arch/mips/pmcs-msp71xx/msp_serial.c up.mapbase = MSP_UART1_BASE; up 146 arch/mips/pmcs-msp71xx/msp_serial.c up.membase = ioremap_nocache(up.mapbase, MSP_UART_REG_LEN); up 147 arch/mips/pmcs-msp71xx/msp_serial.c up.irq = MSP_INT_UART1; up 148 arch/mips/pmcs-msp71xx/msp_serial.c up.line = 1; up 149 arch/mips/pmcs-msp71xx/msp_serial.c up.private_data = (void*)UART1_STATUS_REG; up 150 arch/mips/pmcs-msp71xx/msp_serial.c if (early_serial_setup(&up)) { up 151 arch/mips/pmcs-msp71xx/msp_serial.c kfree(up.private_data); up 232 arch/powerpc/lib/sstep.c unsigned long *up = (unsigned long *)ptr; up 234 arch/powerpc/lib/sstep.c tmp = byterev_8(up[0]); up 235 arch/powerpc/lib/sstep.c up[0] = byterev_8(up[1]); up 236 arch/powerpc/lib/sstep.c up[1] = tmp; up 76 arch/powerpc/platforms/powernv/opal-async.c up(&opal_async_sem); up 122 arch/powerpc/platforms/powernv/opal-async.c up(&opal_async_sem); up 62 arch/sh/drivers/heartbeat.c static unsigned bit = 0, up = 1; up 66 arch/sh/drivers/heartbeat.c bit += up; up 68 arch/sh/drivers/heartbeat.c up = -up; up 82 arch/x86/platform/ce4100/ce4100.c static void ce4100_serial_fixup(int port, struct uart_port *up, up 91 arch/x86/platform/ce4100/ce4100.c if (up->iotype != UPIO_MEM32) { up 92 arch/x86/platform/ce4100/ce4100.c up->uartclk = 14745600; up 93 arch/x86/platform/ce4100/ce4100.c up->mapbase = 0xdffe0200; up 95 arch/x86/platform/ce4100/ce4100.c up->mapbase & PAGE_MASK); up 96 arch/x86/platform/ce4100/ce4100.c up->membase = up 98 arch/x86/platform/ce4100/ce4100.c up->membase += up->mapbase & ~PAGE_MASK; up 99 arch/x86/platform/ce4100/ce4100.c up->mapbase += port * 0x100; up 100 arch/x86/platform/ce4100/ce4100.c up->membase += port * 0x100; up 101 arch/x86/platform/ce4100/ce4100.c up->iotype = UPIO_MEM32; up 102 arch/x86/platform/ce4100/ce4100.c up->regshift = 2; up 103 arch/x86/platform/ce4100/ce4100.c up->irq = 4; up 106 arch/x86/platform/ce4100/ce4100.c up->iobase = 0; up 107 arch/x86/platform/ce4100/ce4100.c up->serial_in = ce4100_mem_serial_in; up 108 arch/x86/platform/ce4100/ce4100.c up->serial_out = ce4100_mem_serial_out; up 53 arch/x86/platform/uv/bios_uv.c up(&__efi_uv_runtime_lock); up 72 arch/x86/platform/uv/bios_uv.c up(&__efi_uv_runtime_lock); up 448 block/bfq-wf2q.c up: up 461 block/bfq-wf2q.c goto up; up 309 block/blk-iolatency.c static inline unsigned long scale_amount(unsigned long qd, bool up) up 311 block/blk-iolatency.c return max(up ? qd >> SCALE_UP_FACTOR : qd >> SCALE_DOWN_FACTOR, 1UL); up 325 block/blk-iolatency.c bool up) up 328 block/blk-iolatency.c unsigned long scale = scale_amount(qd, up); up 336 block/blk-iolatency.c if (up) { up 365 block/blk-iolatency.c static void scale_change(struct iolatency_grp *iolat, bool up) up 368 block/blk-iolatency.c unsigned long scale = scale_amount(qd, up); up 374 block/blk-iolatency.c if (up) { up 1299 drivers/acpi/osl.c up(sem); up 259 drivers/bcma/driver_pci.c void bcma_core_pci_power_save(struct bcma_bus *bus, bool up) up 270 drivers/bcma/driver_pci.c data = up ? 0x74 : 0x7C; up 276 drivers/bcma/driver_pci.c data = up ? 0x75 : 0x7D; up 369 drivers/char/hw_random/n2-drv.c struct n2rng_unit *up = &np->units[i]; up 371 drivers/char/hw_random/n2-drv.c up->control[0] = n2rng_control_default(np, 0); up 372 drivers/char/hw_random/n2-drv.c up->control[1] = n2rng_control_default(np, 1); up 373 drivers/char/hw_random/n2-drv.c up->control[2] = n2rng_control_default(np, 2); up 374 drivers/char/hw_random/n2-drv.c up->control[3] = n2rng_control_default(np, 3); up 620 drivers/char/hw_random/n2-drv.c struct n2rng_unit *up = &np->units[unit]; up 621 drivers/char/hw_random/n2-drv.c unsigned long ctl_ra = __pa(&up->control[0]); up 643 drivers/char/hw_random/n2-drv.c up->control[esrc] = base | up 647 drivers/char/hw_random/n2-drv.c up->control[3] = base | up 185 drivers/clk/clk-divider.c int up = INT_MAX; up 193 drivers/clk/clk-divider.c if ((clkt->div - div) < (up - div)) up 194 drivers/clk/clk-divider.c up = clkt->div; up 197 drivers/clk/clk-divider.c return up; up 236 drivers/clk/clk-divider.c int up, down; up 239 drivers/clk/clk-divider.c up = DIV_ROUND_UP_ULL((u64)parent_rate, rate); up 243 drivers/clk/clk-divider.c up = __roundup_pow_of_two(up); up 246 drivers/clk/clk-divider.c up = _round_up_table(table, up); up 250 drivers/clk/clk-divider.c up_rate = DIV_ROUND_UP_ULL((u64)parent_rate, up); up 253 drivers/clk/clk-divider.c return (rate - up_rate) <= (down_rate - rate) ? up : down; up 43 drivers/clk/tegra/cvb.c static int round_voltage(int mv, const struct rail_alignment *align, int up) up 49 drivers/clk/tegra/cvb.c uv = (uv + (up ? align->step_uv - 1 : 0)) / align->step_uv; up 147 drivers/clk/ti/divider.c int up = INT_MAX; up 156 drivers/clk/ti/divider.c if ((clkt->div - div) < (up - div)) up 157 drivers/clk/ti/divider.c up = clkt->div; up 160 drivers/clk/ti/divider.c return up; up 288 drivers/cpufreq/brcmstb-avs-cpufreq.c up(&priv->sem); up 880 drivers/crypto/ux500/cryp/cryp_core.c up(&driver_data.device_allocation); up 946 drivers/crypto/ux500/cryp/cryp_core.c up(&driver_data.device_allocation); up 1437 drivers/crypto/ux500/cryp/cryp_core.c up(&driver_data.device_allocation); up 1488 drivers/crypto/ux500/cryp/cryp_core.c up(&driver_data.device_allocation); up 1622 drivers/crypto/ux500/cryp/cryp_core.c up(&driver_data.device_allocation); up 103 drivers/crypto/ux500/hash/hash_core.c up(&driver_data.device_allocation); up 1728 drivers/crypto/ux500/hash/hash_core.c up(&driver_data.device_allocation); up 1779 drivers/crypto/ux500/hash/hash_core.c up(&driver_data.device_allocation); up 1907 drivers/crypto/ux500/hash/hash_core.c up(&driver_data.device_allocation); up 258 drivers/firmware/efi/runtime-wrappers.c up(&efi_runtime_lock); up 269 drivers/firmware/efi/runtime-wrappers.c up(&efi_runtime_lock); up 283 drivers/firmware/efi/runtime-wrappers.c up(&efi_runtime_lock); up 295 drivers/firmware/efi/runtime-wrappers.c up(&efi_runtime_lock); up 311 drivers/firmware/efi/runtime-wrappers.c up(&efi_runtime_lock); up 325 drivers/firmware/efi/runtime-wrappers.c up(&efi_runtime_lock); up 341 drivers/firmware/efi/runtime-wrappers.c up(&efi_runtime_lock); up 357 drivers/firmware/efi/runtime-wrappers.c up(&efi_runtime_lock); up 376 drivers/firmware/efi/runtime-wrappers.c up(&efi_runtime_lock); up 396 drivers/firmware/efi/runtime-wrappers.c up(&efi_runtime_lock); up 408 drivers/firmware/efi/runtime-wrappers.c up(&efi_runtime_lock); up 424 drivers/firmware/efi/runtime-wrappers.c up(&efi_runtime_lock); up 440 drivers/firmware/efi/runtime-wrappers.c up(&efi_runtime_lock); up 458 drivers/firmware/efi/runtime-wrappers.c up(&efi_runtime_lock); up 466 drivers/firmware/efi/vars.c up(&efivars_lock); up 511 drivers/firmware/efi/vars.c up(&efivars_lock); up 531 drivers/firmware/efi/vars.c up(&efivars_lock); up 548 drivers/firmware/efi/vars.c up(&efivars_lock); up 568 drivers/firmware/efi/vars.c up(&efivars_lock); up 621 drivers/firmware/efi/vars.c up(&efivars_lock); up 629 drivers/firmware/efi/vars.c up(&efivars_lock); up 671 drivers/firmware/efi/vars.c up(&efivars_lock); up 676 drivers/firmware/efi/vars.c up(&efivars_lock); up 685 drivers/firmware/efi/vars.c up(&efivars_lock); up 712 drivers/firmware/efi/vars.c up(&efivars_lock); up 719 drivers/firmware/efi/vars.c up(&efivars_lock); up 727 drivers/firmware/efi/vars.c up(&efivars_lock); up 785 drivers/firmware/efi/vars.c up(&efivars_lock); up 791 drivers/firmware/efi/vars.c up(&efivars_lock); up 865 drivers/firmware/efi/vars.c up(&efivars_lock); up 871 drivers/firmware/efi/vars.c up(&efivars_lock); up 923 drivers/firmware/efi/vars.c up(&efivars_lock); up 930 drivers/firmware/efi/vars.c up(&efivars_lock); up 1025 drivers/firmware/efi/vars.c up(&efivars_lock); up 1033 drivers/firmware/efi/vars.c up(&efivars_lock); up 1059 drivers/firmware/efi/vars.c up(&efivars_lock); up 1192 drivers/firmware/efi/vars.c up(&efivars_lock); up 1228 drivers/firmware/efi/vars.c up(&efivars_lock); up 234 drivers/firmware/tegra/bpmp.c up(&bpmp->threaded.lock); up 298 drivers/firmware/tegra/bpmp.c up(&bpmp->threaded.lock); up 409 drivers/firmware/ti_sci.c up(&minfo->sem_xfer_count); up 433 drivers/fsi/fsi-sbefifo.c static int sbefifo_wait(struct sbefifo *sbefifo, bool up, up 442 drivers/fsi/fsi-sbefifo.c dev_vdbg(dev, "Wait on %s fifo...\n", up ? "up" : "down"); up 444 drivers/fsi/fsi-sbefifo.c addr = (up ? SBEFIFO_UP : SBEFIFO_DOWN) | SBEFIFO_STS; up 454 drivers/fsi/fsi-sbefifo.c if (!up && sbefifo_parity_err(sts)) { up 458 drivers/fsi/fsi-sbefifo.c ready = !(up ? sbefifo_full(sts) : sbefifo_empty(sts)); up 463 drivers/fsi/fsi-sbefifo.c dev_err(dev, "%s FIFO Timeout ! status=%08x\n", up ? "UP" : "DOWN", sts); up 115 drivers/gpu/drm/amd/display/dc/dml/dml_inline_defs.h bool up) up 127 drivers/gpu/drm/amd/display/dc/dml/dml_inline_defs.h if (up) up 1925 drivers/gpu/drm/drm_dp_mst_topology.c bool up, u8 *msg, int len) up 1928 drivers/gpu/drm/drm_dp_mst_topology.c int regbase = up ? DP_SIDEBAND_MSG_UP_REP_BASE : DP_SIDEBAND_MSG_DOWN_REQ_BASE; up 1997 drivers/gpu/drm/drm_dp_mst_topology.c bool up) up 2037 drivers/gpu/drm/drm_dp_mst_topology.c ret = drm_dp_send_sideband_msg(mgr, up, chunk, idx); up 2849 drivers/gpu/drm/drm_dp_mst_topology.c static bool drm_dp_get_one_sb_msg(struct drm_dp_mst_topology_mgr *mgr, bool up) up 2856 drivers/gpu/drm/drm_dp_mst_topology.c int basereg = up ? DP_SIDEBAND_MSG_UP_REQ_BASE : DP_SIDEBAND_MSG_DOWN_REP_BASE; up 2857 drivers/gpu/drm/drm_dp_mst_topology.c msg = up ? &mgr->up_req_recv : &mgr->down_rep_recv; up 59 drivers/gpu/drm/msm/edp/edp.h void msm_edp_phy_lane_power_ctrl(struct edp_phy *phy, bool up, u32 max_lane); up 68 drivers/gpu/drm/msm/edp/edp_phy.c void msm_edp_phy_lane_power_ctrl(struct edp_phy *phy, bool up, u32 max_lane) up 73 drivers/gpu/drm/msm/edp/edp_phy.c if (up) up 475 drivers/gpu/drm/omapdrm/dss/dsi.c up(&dsi->bus_lock); up 127 drivers/gpu/drm/udl/udl_main.c up(&unode->dev->urbs.limit_sem); up 163 drivers/gpu/drm/udl/udl_main.c up(&udl->urbs.limit_sem); up 253 drivers/gpu/drm/udl/udl_main.c up(&udl->urbs.limit_sem); up 883 drivers/gpu/drm/vc4/vc4_crtc.c up(&vc4->async_modeset); up 187 drivers/gpu/drm/vc4/vc4_kms.c up(&vc4->async_modeset); up 225 drivers/gpu/drm/vc4/vc4_kms.c up(&vc4->async_modeset); up 233 drivers/gpu/drm/vc4/vc4_kms.c up(&vc4->async_modeset); up 256 drivers/gpu/drm/vc4/vc4_kms.c up(&vc4->async_modeset); up 264 drivers/gpu/drm/vc4/vc4_kms.c up(&vc4->async_modeset); up 144 drivers/gpu/ipu-v3/ipu-di.c int set, int up, int down) up 153 drivers/gpu/ipu-v3/ipu-di.c ipu_di_write(di, (down << 16) | up, DI_DW_SET(wave_gen, set)); up 1835 drivers/hid/hid-core.c up(&hid->driver_input_lock); up 2276 drivers/hid/hid-core.c up(&hdev->driver_input_lock); up 2304 drivers/hid/hid-core.c up(&hdev->driver_input_lock); up 1058 drivers/hid/hid-debug.c up(&hdev->driver_input_lock); up 586 drivers/hid/hid-prodikeys.c static void pcmidi_in_trigger(struct snd_rawmidi_substream *substream, int up) up 590 drivers/hid/hid-prodikeys.c dbg_hid("pcmidi in trigger %d\n", up); up 592 drivers/hid/hid-prodikeys.c pm->in_triggered = up; up 2109 drivers/hv/vmbus_drv.c up(&hyperv_mmio_lock); up 2134 drivers/hv/vmbus_drv.c up(&hyperv_mmio_lock); up 454 drivers/infiniband/core/iwpm_msg.c up(&nlmsg_request->sem); up 526 drivers/infiniband/core/iwpm_msg.c up(&nlmsg_request->sem); up 623 drivers/infiniband/core/iwpm_msg.c up(&nlmsg_request->sem); up 832 drivers/infiniband/core/iwpm_msg.c up(&nlmsg_request->sem); up 1101 drivers/infiniband/core/user_mad.c up(&port->sm_sem); up 1120 drivers/infiniband/core/user_mad.c up(&port->sm_sem); up 651 drivers/infiniband/hw/efa/efa_com.c up(&aq->avail_cmds); up 664 drivers/infiniband/hw/efa/efa_com.c up(&aq->avail_cmds); up 26 drivers/infiniband/hw/hfi1/aspm.c u32 up, dn; up 38 drivers/infiniband/hw/hfi1/aspm.c pcie_capability_read_dword(parent, PCI_EXP_LNKCAP, &up); up 39 drivers/infiniband/hw/hfi1/aspm.c up = ASPM_L1_SUPPORTED(up); up 42 drivers/infiniband/hw/hfi1/aspm.c return (!!dn || is_ax(dd)) && !!up; up 88 drivers/infiniband/hw/hns/hns_roce_cmd.c up(&hr_dev->cmd.poll_sem); up 169 drivers/infiniband/hw/hns/hns_roce_cmd.c up(&hr_dev->cmd.event_sem); up 845 drivers/infiniband/hw/mlx5/mr.c up(&umrc->sem); up 383 drivers/infiniband/hw/mthca/mthca_cmd.c up(&dev->cmd.poll_sem); up 464 drivers/infiniband/hw/mthca/mthca_cmd.c up(&dev->cmd.event_sem); up 606 drivers/infiniband/hw/mthca/mthca_cmd.c up(&dev->cmd.poll_sem); up 116 drivers/infiniband/hw/vmw_pvrdma/pvrdma_cmd.c up(&dev->cmd_sema); up 610 drivers/infiniband/ulp/isert/ib_isert.c up(&isert_np->sem); up 113 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c static void opa_vnic_update_state(struct opa_vnic_adapter *adapter, bool up) up 119 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c if ((info->vport.config_state == OPA_VNIC_STATE_FORWARDING) && up) { up 171 drivers/input/keyboard/hil_kbd.c int up = key & HIL_KBD_SET1_UPBIT; up 175 drivers/input/keyboard/hil_kbd.c input_report_key(dev, key, !up); up 182 drivers/input/keyboard/hil_kbd.c int up = key & HIL_KBD_SET2_UPBIT; up 186 drivers/input/keyboard/hil_kbd.c input_report_key(dev, key, !up); up 193 drivers/input/keyboard/hil_kbd.c int up = key & HIL_KBD_SET3_UPBIT; up 197 drivers/input/keyboard/hil_kbd.c input_report_key(dev, key, !up); up 252 drivers/input/keyboard/hil_kbd.c int up = btn & 1; up 261 drivers/input/keyboard/hil_kbd.c input_report_key(dev, btn, !up); up 444 drivers/input/keyboard/lm8323.c int div512, perstep, steps, hz, up, kill; up 460 drivers/input/keyboard/lm8323.c up = (pwm->desired_brightness > pwm->brightness); up 486 drivers/input/keyboard/lm8323.c pwm_cmds[num_cmds++] = PWM_RAMP(div512, perstep, s, up); up 180 drivers/input/keyboard/stmpe-keypad.c bool up = data & STMPE_KPC_DATA_UP; up 187 drivers/input/keyboard/stmpe-keypad.c input_report_key(input, keypad->keymap[code], !up); up 193 drivers/input/keyboard/tc3589x-keypad.c u8 i, row_index, col_index, kbd_code, up; up 209 drivers/input/keyboard/tc3589x-keypad.c up = kbd_code & KP_RELEASE_EVT_MASK; up 212 drivers/input/keyboard/tc3589x-keypad.c input_report_key(keypad->input, keypad->keymap[code], !up); up 184 drivers/input/misc/hp_sdc_rtc.c up(&i8042tregs); up 192 drivers/input/misc/hp_sdc_rtc.c up(&i8042tregs); up 33 drivers/input/mouse/gpio_mouse.c struct gpio_desc *up; up 63 drivers/input/mouse/gpio_mouse.c y = gpiod_get_value(gpio->down) - gpiod_get_value(gpio->up); up 90 drivers/input/mouse/gpio_mouse.c gmouse->up = devm_gpiod_get(dev, "up", GPIOD_IN); up 91 drivers/input/mouse/gpio_mouse.c if (IS_ERR(gmouse->up)) up 92 drivers/input/mouse/gpio_mouse.c return PTR_ERR(gmouse->up); up 849 drivers/input/mouse/synaptics.c hw->up = ((buf[0] ^ buf[3]) & 0x01) ? 1 : 0; up 976 drivers/input/mouse/synaptics.c input_report_key(dev, BTN_FORWARD, hw->up); up 1087 drivers/input/mouse/synaptics.c input_report_key(dev, BTN_FORWARD, !hw.up); up 1089 drivers/input/mouse/synaptics.c input_report_key(dev, BTN_FORWARD, hw.up); up 159 drivers/input/mouse/synaptics.h unsigned int up:1; up 699 drivers/input/serio/hil_mlc.c up(&mlc->osem); up 202 drivers/input/serio/hp_sdc.c up(curr->act.semaphore); up 329 drivers/input/serio/hp_sdc.c up(curr->act.semaphore); up 566 drivers/input/serio/hp_sdc.c up(curr->act.semaphore); up 1051 drivers/input/serio/hp_sdc.c up(&tq_init_sem); up 1068 drivers/input/serio/hp_sdc.c up(&tq_init_sem); up 1093 drivers/input/serio/hp_sdc.c up(&tq_init_sem); up 70 drivers/input/serio/hp_sdc_mlc.c up(&mlc->isem); up 135 drivers/input/serio/hp_sdc_mlc.c up(&mlc->isem); up 168 drivers/input/serio/hp_sdc_mlc.c up(&mlc->isem); up 173 drivers/input/serio/hp_sdc_mlc.c up(&mlc->isem); up 189 drivers/input/serio/hp_sdc_mlc.c up(&mlc->isem); up 190 drivers/input/serio/hp_sdc_mlc.c up(&mlc->osem); up 218 drivers/input/serio/hp_sdc_mlc.c up(&mlc->csem); up 236 drivers/input/serio/hp_sdc_mlc.c up(&mlc->osem); up 241 drivers/input/serio/hp_sdc_mlc.c up(&mlc->csem); up 157 drivers/input/touchscreen/mainstone-wm97xx.c goto up; up 168 drivers/input/touchscreen/mainstone-wm97xx.c up: up 124 drivers/input/touchscreen/zylonite-wm97xx.c goto up; up 135 drivers/input/touchscreen/zylonite-wm97xx.c up: up 173 drivers/isdn/mISDN/dsp.h struct mISDNchannel *up; up 592 drivers/isdn/mISDN/dsp_core.c if (dsp->up) { up 593 drivers/isdn/mISDN/dsp_core.c if (dsp->up->send(dsp->up, nskb)) up 707 drivers/isdn/mISDN/dsp_core.c if (dsp->up) up 708 drivers/isdn/mISDN/dsp_core.c return dsp->up->send(dsp->up, skb); up 751 drivers/isdn/mISDN/dsp_core.c if (dsp->up) { up 752 drivers/isdn/mISDN/dsp_core.c if (dsp->up->send( up 753 drivers/isdn/mISDN/dsp_core.c dsp->up, nskb)) up 766 drivers/isdn/mISDN/dsp_core.c if (dsp->up) up 767 drivers/isdn/mISDN/dsp_core.c return dsp->up->send(dsp->up, skb); up 797 drivers/isdn/mISDN/dsp_core.c if (dsp->up) { up 798 drivers/isdn/mISDN/dsp_core.c if (dsp->up->send( up 799 drivers/isdn/mISDN/dsp_core.c dsp->up, nskb)) up 853 drivers/isdn/mISDN/dsp_core.c if (dsp->up) up 854 drivers/isdn/mISDN/dsp_core.c return dsp->up->send(dsp->up, skb); up 869 drivers/isdn/mISDN/dsp_core.c if (dsp->up) up 870 drivers/isdn/mISDN/dsp_core.c return dsp->up->send(dsp->up, skb); up 1028 drivers/isdn/mISDN/dsp_core.c if (dsp->up) { up 1029 drivers/isdn/mISDN/dsp_core.c if (dsp->up->send(dsp->up, skb)) up 1069 drivers/isdn/mISDN/dsp_core.c ndsp->up = crq->ch; up 1083 drivers/isdn/mISDN/dsp_core.c ndsp->up->st->dev->id + 1, ndsp); up 142 drivers/isdn/mISDN/layer2.c if (!l2->up) up 146 drivers/isdn/mISDN/layer2.c err = l2->up->send(l2->up, skb); up 161 drivers/isdn/mISDN/layer2.c if (!l2->up) up 171 drivers/isdn/mISDN/layer2.c err = l2->up->send(l2->up, skb); up 1980 drivers/isdn/mISDN/layer2.c if (!l2->up) up 1982 drivers/isdn/mISDN/layer2.c ret = l2->up->send(l2->up, skb); up 2121 drivers/isdn/mISDN/layer2.c l2->up = ch; up 23 drivers/isdn/mISDN/layer2.h struct mISDNchannel *up; up 48 drivers/isdn/mISDN/layer2.h struct mISDNchannel *up; up 307 drivers/isdn/mISDN/tei.c err = mgr->up->send(mgr->up, skb); up 790 drivers/isdn/mISDN/tei.c if (!mgr->up) up 801 drivers/isdn/mISDN/tei.c l2 = create_l2(mgr->up, ISDN_P_LAPD_NT, opt, tei, sapi); up 855 drivers/isdn/mISDN/tei.c if (!mgr->up) up 1007 drivers/isdn/mISDN/tei.c if (mgr->up) { up 1029 drivers/isdn/mISDN/tei.c mgr->up = crq->ch; up 1038 drivers/isdn/mISDN/tei.c l2->up = mgr->up; up 1084 drivers/isdn/mISDN/tei.c l2->up->nr = id; up 1117 drivers/isdn/mISDN/tei.c if (mgr->up) up 1125 drivers/isdn/mISDN/tei.c if (mgr->up) up 1146 drivers/isdn/mISDN/tei.c mgr->up = NULL; up 1158 drivers/isdn/mISDN/tei.c l2->up = NULL; up 1930 drivers/lightnvm/pblk-core.c up(&rlun->wr_sem); up 1943 drivers/lightnvm/pblk-core.c up(&rlun->wr_sem); up 96 drivers/lightnvm/pblk-gc.c up(&gc->gc_sem); up 38 drivers/lightnvm/pblk-sysfs.c up(&rlun->wr_sem); up 231 drivers/macintosh/adb.c up(&adb_probe_mutex); up 295 drivers/macintosh/adb.c up(&adb_probe_mutex); up 809 drivers/macintosh/adb.c up(&adb_probe_mutex); up 816 drivers/macintosh/adb.c up(&adb_probe_mutex); up 827 drivers/macintosh/adb.c up(&adb_probe_mutex); up 356 drivers/md/bcache/btree.c up(&b->io_mutex); up 659 drivers/md/bcache/btree.c up(&b->io_mutex); up 689 drivers/md/bcache/btree.c up(&b->io_mutex); up 105 drivers/md/bcache/debug.c up(&b->io_mutex); up 57 drivers/md/bcache/movinggc.c up(&io->op.c->moving_in_flight); up 248 drivers/md/bcache/super.c up(&dc->sb_write_mutex); up 285 drivers/md/bcache/super.c up(&c->sb_write_mutex); up 336 drivers/md/bcache/super.c up(&c->uuid_write_mutex); up 304 drivers/md/bcache/writeback.c up(&dc->in_flight); up 382 drivers/md/dm-region-hash.c up(&rh->recovery_count); up 631 drivers/md/dm-region-hash.c up(&rh->recovery_count); up 716 drivers/md/dm-region-hash.c up(&rh->recovery_count); up 274 drivers/media/dvb-core/dvb_frontend.c up(&fepriv->sem); up 668 drivers/media/dvb-core/dvb_frontend.c up(&fepriv->sem); /* is locked when we enter the thread... */ up 796 drivers/media/dvb-core/dvb_frontend.c up(&fepriv->sem); up 880 drivers/media/dvb-core/dvb_frontend.c up(&fepriv->sem); up 2000 drivers/media/dvb-core/dvb_frontend.c up(&fepriv->sem); up 2021 drivers/media/dvb-core/dvb_frontend.c up(&fepriv->sem); up 2027 drivers/media/dvb-core/dvb_frontend.c up(&fepriv->sem); up 2173 drivers/media/dvb-core/dvb_frontend.c up(&fepriv->sem); up 176 drivers/media/pci/ngene/ngene-cards.c up(&chan->dev->pll_mutex); up 433 drivers/media/pci/ngene/ngene-cards.c up(&chan->dev->pll_mutex); up 956 drivers/media/rc/img-ir/img-ir-hw.c u32 ir_status, len, lw, up; up 999 drivers/media/rc/img-ir/img-ir-hw.c up = img_ir_read(priv, IMG_IR_DATA_UP); up 1000 drivers/media/rc/img-ir/img-ir-hw.c img_ir_handle_data(priv, len, (u64)up << 32 | lw); up 465 drivers/media/usb/em28xx/em28xx-dvb.c up(&dvb->pll_mutex); up 1314 drivers/media/usb/uvc/uvc_v4l2.c const struct uvc_xu_control_mapping32 __user *up) up 1320 drivers/media/usb/uvc/uvc_v4l2.c if (copy_from_user(p, up, sizeof(*p))) up 1333 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_xu_control_mapping32 __user *up) up 1335 drivers/media/usb/uvc/uvc_v4l2.c if (copy_to_user(up, kp, offsetof(typeof(*up), menu_info)) || up 1336 drivers/media/usb/uvc/uvc_v4l2.c put_user(kp->menu_count, &up->menu_count)) up 1339 drivers/media/usb/uvc/uvc_v4l2.c if (clear_user(up->reserved, sizeof(up->reserved))) up 1354 drivers/media/usb/uvc/uvc_v4l2.c const struct uvc_xu_control_query32 __user *up) up 1358 drivers/media/usb/uvc/uvc_v4l2.c if (copy_from_user(&v, up, sizeof(v))) up 1372 drivers/media/usb/uvc/uvc_v4l2.c struct uvc_xu_control_query32 __user *up) up 1374 drivers/media/usb/uvc/uvc_v4l2.c if (copy_to_user(up, kp, offsetof(typeof(*up), data))) up 1390 drivers/media/usb/uvc/uvc_v4l2.c void __user *up = compat_ptr(arg); up 1395 drivers/media/usb/uvc/uvc_v4l2.c ret = uvc_v4l2_get_xu_mapping(&karg.xmap, up); up 1401 drivers/media/usb/uvc/uvc_v4l2.c ret = uvc_v4l2_put_xu_mapping(&karg.xmap, up); up 1408 drivers/media/usb/uvc/uvc_v4l2.c ret = uvc_v4l2_get_xu_query(&karg.xqry, up); up 1414 drivers/media/usb/uvc/uvc_v4l2.c ret = uvc_v4l2_put_xu_query(&karg.xqry, up); up 138 drivers/mfd/wm8350-gpio.c static int gpio_set_pull_up(struct wm8350 *wm8350, int gpio, int up) up 140 drivers/mfd/wm8350-gpio.c if (up) up 453 drivers/misc/cxl/flash.c up(&sem); up 497 drivers/misc/cxl/flash.c up(&sem); up 201 drivers/misc/habanalabs/goya/goya_coresight.c int position, bool up) up 215 drivers/misc/habanalabs/goya/goya_coresight.c up ? val & BIT(position) : !(val & BIT(position)), up 222 drivers/misc/habanalabs/goya/goya_coresight.c addr, position, up); up 103 drivers/mmc/host/cavium-octeon.c up(&octeon_bootbus_sem); up 105 drivers/mmc/host/cavium-octeon.c up(&host->mmc_serializer); up 27 drivers/mmc/host/cavium-thunderx.c up(&host->mmc_serializer); up 53 drivers/mtd/maps/sun_uflash.c struct uflash_dev *up; up 65 drivers/mtd/maps/sun_uflash.c up = kzalloc(sizeof(struct uflash_dev), GFP_KERNEL); up 66 drivers/mtd/maps/sun_uflash.c if (!up) { up 72 drivers/mtd/maps/sun_uflash.c memcpy(&up->map, &uflash_map_templ, sizeof(uflash_map_templ)); up 74 drivers/mtd/maps/sun_uflash.c up->map.size = resource_size(&op->resource[0]); up 76 drivers/mtd/maps/sun_uflash.c up->name = of_get_property(dp, "model", NULL); up 77 drivers/mtd/maps/sun_uflash.c if (up->name && 0 < strlen(up->name)) up 78 drivers/mtd/maps/sun_uflash.c up->map.name = up->name; up 80 drivers/mtd/maps/sun_uflash.c up->map.phys = op->resource[0].start; up 82 drivers/mtd/maps/sun_uflash.c up->map.virt = of_ioremap(&op->resource[0], 0, up->map.size, up 84 drivers/mtd/maps/sun_uflash.c if (!up->map.virt) { up 86 drivers/mtd/maps/sun_uflash.c kfree(up); up 91 drivers/mtd/maps/sun_uflash.c simple_map_init(&up->map); up 94 drivers/mtd/maps/sun_uflash.c up->mtd = do_map_probe("cfi_probe", &up->map); up 95 drivers/mtd/maps/sun_uflash.c if (!up->mtd) { up 96 drivers/mtd/maps/sun_uflash.c of_iounmap(&op->resource[0], up->map.virt, up->map.size); up 97 drivers/mtd/maps/sun_uflash.c kfree(up); up 102 drivers/mtd/maps/sun_uflash.c up->mtd->owner = THIS_MODULE; up 104 drivers/mtd/maps/sun_uflash.c mtd_device_register(up->mtd, NULL, 0); up 106 drivers/mtd/maps/sun_uflash.c dev_set_drvdata(&op->dev, up); up 126 drivers/mtd/maps/sun_uflash.c struct uflash_dev *up = dev_get_drvdata(&op->dev); up 128 drivers/mtd/maps/sun_uflash.c if (up->mtd) { up 129 drivers/mtd/maps/sun_uflash.c mtd_device_unregister(up->mtd); up 130 drivers/mtd/maps/sun_uflash.c map_destroy(up->mtd); up 132 drivers/mtd/maps/sun_uflash.c if (up->map.virt) { up 133 drivers/mtd/maps/sun_uflash.c of_iounmap(&op->resource[0], up->map.virt, up->map.size); up 134 drivers/mtd/maps/sun_uflash.c up->map.virt = NULL; up 137 drivers/mtd/maps/sun_uflash.c kfree(up); up 345 drivers/mux/core.c up(&mux->lock); up 376 drivers/mux/core.c up(&mux->lock); up 402 drivers/mux/core.c up(&mux->lock); up 47 drivers/net/can/softing/softing.h int up; up 98 drivers/net/can/softing/softing.h int softing_startstop(struct net_device *netdev, int up); up 417 drivers/net/can/softing/softing_fw.c int softing_startstop(struct net_device *dev, int up) up 431 drivers/net/can/softing/softing_fw.c if (!card->fw.up) up 439 drivers/net/can/softing/softing_fw.c if (dev && up) up 68 drivers/net/can/softing/softing_main.c if (!card->fw.up || up 452 drivers/net/can/softing/softing_main.c fw_up = card->fw.up; up 453 drivers/net/can/softing/softing_main.c card->fw.up = 0; up 478 drivers/net/can/softing/softing_main.c if (card->fw.up) { up 532 drivers/net/can/softing/softing_main.c card->fw.up = 1; up 536 drivers/net/can/softing/softing_main.c card->fw.up = 0; up 261 drivers/net/can/usb/ucan.c struct ucan_priv *up; up 314 drivers/net/can/usb/ucan.c static void ucan_release_context_array(struct ucan_priv *up) up 316 drivers/net/can/usb/ucan.c if (!up->context_array) up 320 drivers/net/can/usb/ucan.c up->available_tx_urbs = 0; up 322 drivers/net/can/usb/ucan.c kfree(up->context_array); up 323 drivers/net/can/usb/ucan.c up->context_array = NULL; up 326 drivers/net/can/usb/ucan.c static int ucan_alloc_context_array(struct ucan_priv *up) up 331 drivers/net/can/usb/ucan.c ucan_release_context_array(up); up 333 drivers/net/can/usb/ucan.c up->context_array = kcalloc(up->device_info.tx_fifo, up 334 drivers/net/can/usb/ucan.c sizeof(*up->context_array), up 336 drivers/net/can/usb/ucan.c if (!up->context_array) { up 337 drivers/net/can/usb/ucan.c netdev_err(up->netdev, up 342 drivers/net/can/usb/ucan.c for (i = 0; i < up->device_info.tx_fifo; i++) { up 343 drivers/net/can/usb/ucan.c up->context_array[i].allocated = false; up 344 drivers/net/can/usb/ucan.c up->context_array[i].up = up; up 348 drivers/net/can/usb/ucan.c up->available_tx_urbs = up->device_info.tx_fifo; up 353 drivers/net/can/usb/ucan.c static struct ucan_urb_context *ucan_alloc_context(struct ucan_priv *up) up 359 drivers/net/can/usb/ucan.c if (WARN_ON_ONCE(!up->context_array)) up 363 drivers/net/can/usb/ucan.c spin_lock_irqsave(&up->context_lock, flags); up 365 drivers/net/can/usb/ucan.c for (i = 0; i < up->device_info.tx_fifo; i++) { up 366 drivers/net/can/usb/ucan.c if (!up->context_array[i].allocated) { up 368 drivers/net/can/usb/ucan.c ret = &up->context_array[i]; up 369 drivers/net/can/usb/ucan.c up->context_array[i].allocated = true; up 372 drivers/net/can/usb/ucan.c up->available_tx_urbs--; up 373 drivers/net/can/usb/ucan.c if (!up->available_tx_urbs) up 374 drivers/net/can/usb/ucan.c netif_stop_queue(up->netdev); up 380 drivers/net/can/usb/ucan.c spin_unlock_irqrestore(&up->context_lock, flags); up 384 drivers/net/can/usb/ucan.c static bool ucan_release_context(struct ucan_priv *up, up 390 drivers/net/can/usb/ucan.c if (WARN_ON_ONCE(!up->context_array)) up 394 drivers/net/can/usb/ucan.c spin_lock_irqsave(&up->context_lock, flags); up 401 drivers/net/can/usb/ucan.c if (!up->available_tx_urbs) up 402 drivers/net/can/usb/ucan.c netif_wake_queue(up->netdev); up 403 drivers/net/can/usb/ucan.c up->available_tx_urbs++; up 408 drivers/net/can/usb/ucan.c spin_unlock_irqrestore(&up->context_lock, flags); up 412 drivers/net/can/usb/ucan.c static int ucan_ctrl_command_out(struct ucan_priv *up, up 415 drivers/net/can/usb/ucan.c return usb_control_msg(up->udev, up 416 drivers/net/can/usb/ucan.c usb_sndctrlpipe(up->udev, 0), up 421 drivers/net/can/usb/ucan.c up->intf_index, up 422 drivers/net/can/usb/ucan.c up->ctl_msg_buffer, up 427 drivers/net/can/usb/ucan.c static int ucan_device_request_in(struct ucan_priv *up, up 430 drivers/net/can/usb/ucan.c return usb_control_msg(up->udev, up 431 drivers/net/can/usb/ucan.c usb_rcvctrlpipe(up->udev, 0), up 436 drivers/net/can/usb/ucan.c up->ctl_msg_buffer, up 444 drivers/net/can/usb/ucan.c static void ucan_parse_device_info(struct ucan_priv *up, up 448 drivers/net/can/usb/ucan.c &up->device_info.bittiming_const; up 452 drivers/net/can/usb/ucan.c up->can.clock.freq = le32_to_cpu(device_info->freq); up 453 drivers/net/can/usb/ucan.c up->device_info.tx_fifo = device_info->tx_fifo; up 466 drivers/net/can/usb/ucan.c up->can.ctrlmode_supported = 0; up 469 drivers/net/can/usb/ucan.c up->can.ctrlmode_supported |= CAN_CTRLMODE_LOOPBACK; up 471 drivers/net/can/usb/ucan.c up->can.ctrlmode_supported |= CAN_CTRLMODE_LISTENONLY; up 473 drivers/net/can/usb/ucan.c up->can.ctrlmode_supported |= CAN_CTRLMODE_3_SAMPLES; up 475 drivers/net/can/usb/ucan.c up->can.ctrlmode_supported |= CAN_CTRLMODE_ONE_SHOT; up 477 drivers/net/can/usb/ucan.c up->can.ctrlmode_supported |= CAN_CTRLMODE_BERR_REPORTING; up 483 drivers/net/can/usb/ucan.c static bool ucan_handle_error_frame(struct ucan_priv *up, up 487 drivers/net/can/usb/ucan.c enum can_state new_state = up->can.state; up 488 drivers/net/can/usb/ucan.c struct net_device_stats *net_stats = &up->netdev->stats; up 489 drivers/net/can/usb/ucan.c struct can_device_stats *can_stats = &up->can.can_stats; up 532 drivers/net/can/usb/ucan.c if (up->can.state == new_state) up 536 drivers/net/can/usb/ucan.c if (up->can.state > new_state) { up 537 drivers/net/can/usb/ucan.c up->can.state = new_state; up 542 drivers/net/can/usb/ucan.c up->can.state = new_state; up 546 drivers/net/can/usb/ucan.c can_bus_off(up->netdev); up 565 drivers/net/can/usb/ucan.c static void ucan_rx_can_msg(struct ucan_priv *up, struct ucan_message_in *m) up 571 drivers/net/can/usb/ucan.c struct net_device_stats *stats = &up->netdev->stats; up 578 drivers/net/can/usb/ucan.c netdev_warn(up->netdev, "invalid input message len: %d\n", len); up 585 drivers/net/can/usb/ucan.c bool busstate_changed = ucan_handle_error_frame(up, m, canid); up 588 drivers/net/can/usb/ucan.c if (!(up->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) && up 601 drivers/net/can/usb/ucan.c netdev_warn(up->netdev, up 609 drivers/net/can/usb/ucan.c skb = alloc_can_skb(up->netdev, &cf); up 632 drivers/net/can/usb/ucan.c static void ucan_tx_complete_msg(struct ucan_priv *up, up 643 drivers/net/can/usb/ucan.c netdev_err(up->netdev, "invalid tx complete length\n"); up 651 drivers/net/can/usb/ucan.c if (echo_index >= up->device_info.tx_fifo) { up 652 drivers/net/can/usb/ucan.c up->netdev->stats.tx_errors++; up 653 drivers/net/can/usb/ucan.c netdev_err(up->netdev, up 660 drivers/net/can/usb/ucan.c context = &up->context_array[echo_index]; up 666 drivers/net/can/usb/ucan.c if (!ucan_release_context(up, context)) up 669 drivers/net/can/usb/ucan.c spin_lock_irqsave(&up->echo_skb_lock, flags); up 673 drivers/net/can/usb/ucan.c up->netdev->stats.tx_packets++; up 674 drivers/net/can/usb/ucan.c up->netdev->stats.tx_bytes += dlc; up 675 drivers/net/can/usb/ucan.c can_get_echo_skb(up->netdev, echo_index); up 677 drivers/net/can/usb/ucan.c up->netdev->stats.tx_dropped++; up 678 drivers/net/can/usb/ucan.c can_free_echo_skb(up->netdev, echo_index); up 680 drivers/net/can/usb/ucan.c spin_unlock_irqrestore(&up->echo_skb_lock, flags); up 689 drivers/net/can/usb/ucan.c struct ucan_priv *up = urb->context; up 690 drivers/net/can/usb/ucan.c struct net_device *netdev = up->netdev; up 696 drivers/net/can/usb/ucan.c if (WARN_ON(!up->context_array)) { up 697 drivers/net/can/usb/ucan.c usb_free_coherent(up->udev, up 698 drivers/net/can/usb/ucan.c up->in_ep_size, up 714 drivers/net/can/usb/ucan.c usb_free_coherent(up->udev, up 715 drivers/net/can/usb/ucan.c up->in_ep_size, up 718 drivers/net/can/usb/ucan.c netdev_dbg(up->netdev, "not resubmitting urb; status: %d\n", up 736 drivers/net/can/usb/ucan.c netdev_warn(up->netdev, up 749 drivers/net/can/usb/ucan.c netdev_warn(up->netdev, up 766 drivers/net/can/usb/ucan.c ucan_rx_can_msg(up, m); up 769 drivers/net/can/usb/ucan.c ucan_tx_complete_msg(up, m); up 772 drivers/net/can/usb/ucan.c netdev_warn(up->netdev, up 786 drivers/net/can/usb/ucan.c usb_fill_bulk_urb(urb, up->udev, up 787 drivers/net/can/usb/ucan.c usb_rcvbulkpipe(up->udev, up 788 drivers/net/can/usb/ucan.c up->in_ep_addr), up 790 drivers/net/can/usb/ucan.c up->in_ep_size, up 792 drivers/net/can/usb/ucan.c up); up 794 drivers/net/can/usb/ucan.c usb_anchor_urb(urb, &up->rx_urbs); up 798 drivers/net/can/usb/ucan.c netdev_err(up->netdev, up 803 drivers/net/can/usb/ucan.c usb_free_coherent(up->udev, up 804 drivers/net/can/usb/ucan.c up->in_ep_size, up 817 drivers/net/can/usb/ucan.c struct ucan_priv *up; up 830 drivers/net/can/usb/ucan.c up = context->up; up 831 drivers/net/can/usb/ucan.c if (WARN_ON_ONCE(!up)) up 835 drivers/net/can/usb/ucan.c if (!netif_device_present(up->netdev)) up 840 drivers/net/can/usb/ucan.c netdev_warn(up->netdev, up 845 drivers/net/can/usb/ucan.c spin_lock_irqsave(&up->echo_skb_lock, flags); up 846 drivers/net/can/usb/ucan.c can_free_echo_skb(up->netdev, context - up->context_array); up 847 drivers/net/can/usb/ucan.c spin_unlock_irqrestore(&up->echo_skb_lock, flags); up 849 drivers/net/can/usb/ucan.c up->netdev->stats.tx_dropped++; up 852 drivers/net/can/usb/ucan.c if (!ucan_release_context(up, context)) up 853 drivers/net/can/usb/ucan.c netdev_err(up->netdev, up 858 drivers/net/can/usb/ucan.c static void ucan_cleanup_rx_urbs(struct ucan_priv *up, struct urb **urbs) up 865 drivers/net/can/usb/ucan.c usb_free_coherent(up->udev, up 866 drivers/net/can/usb/ucan.c up->in_ep_size, up 876 drivers/net/can/usb/ucan.c static int ucan_prepare_and_anchor_rx_urbs(struct ucan_priv *up, up 890 drivers/net/can/usb/ucan.c buf = usb_alloc_coherent(up->udev, up 891 drivers/net/can/usb/ucan.c up->in_ep_size, up 900 drivers/net/can/usb/ucan.c usb_fill_bulk_urb(urbs[i], up->udev, up 901 drivers/net/can/usb/ucan.c usb_rcvbulkpipe(up->udev, up 902 drivers/net/can/usb/ucan.c up->in_ep_addr), up 904 drivers/net/can/usb/ucan.c up->in_ep_size, up 906 drivers/net/can/usb/ucan.c up); up 910 drivers/net/can/usb/ucan.c usb_anchor_urb(urbs[i], &up->rx_urbs); up 916 drivers/net/can/usb/ucan.c ucan_cleanup_rx_urbs(up, urbs); up 925 drivers/net/can/usb/ucan.c static int ucan_submit_rx_urbs(struct ucan_priv *up, struct urb **urbs) up 935 drivers/net/can/usb/ucan.c netdev_err(up->netdev, up 951 drivers/net/can/usb/ucan.c ucan_cleanup_rx_urbs(up, urbs); up 954 drivers/net/can/usb/ucan.c usb_kill_anchored_urbs(&up->rx_urbs); up 965 drivers/net/can/usb/ucan.c struct ucan_priv *up = netdev_priv(netdev); up 967 drivers/net/can/usb/ucan.c ret = ucan_alloc_context_array(up); up 974 drivers/net/can/usb/ucan.c ret = ucan_prepare_and_anchor_rx_urbs(up, urbs); up 980 drivers/net/can/usb/ucan.c if (up->can.ctrlmode & CAN_CTRLMODE_LOOPBACK) up 982 drivers/net/can/usb/ucan.c if (up->can.ctrlmode & CAN_CTRLMODE_LISTENONLY) up 984 drivers/net/can/usb/ucan.c if (up->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES) up 986 drivers/net/can/usb/ucan.c if (up->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT) up 993 drivers/net/can/usb/ucan.c up->ctl_msg_buffer->cmd_start.mode = cpu_to_le16(ctrlmode); up 996 drivers/net/can/usb/ucan.c ret = ucan_ctrl_command_out(up, UCAN_COMMAND_START, 0, 2); up 998 drivers/net/can/usb/ucan.c netdev_err(up->netdev, up 1010 drivers/net/can/usb/ucan.c ret = ucan_submit_rx_urbs(up, urbs); up 1014 drivers/net/can/usb/ucan.c up->can.state = CAN_STATE_ERROR_ACTIVE; up 1023 drivers/net/can/usb/ucan.c ret_cleanup = ucan_ctrl_command_out(up, UCAN_COMMAND_STOP, 0, 0); up 1025 drivers/net/can/usb/ucan.c netdev_err(up->netdev, up 1033 drivers/net/can/usb/ucan.c ret_cleanup = ucan_ctrl_command_out(up, UCAN_COMMAND_RESET, 0, 0); up 1035 drivers/net/can/usb/ucan.c netdev_err(up->netdev, up 1040 drivers/net/can/usb/ucan.c ucan_cleanup_rx_urbs(up, urbs); up 1043 drivers/net/can/usb/ucan.c ucan_release_context_array(up); up 1047 drivers/net/can/usb/ucan.c static struct urb *ucan_prepare_tx_urb(struct ucan_priv *up, up 1059 drivers/net/can/usb/ucan.c netdev_err(up->netdev, "no memory left for URBs\n"); up 1063 drivers/net/can/usb/ucan.c m = usb_alloc_coherent(up->udev, up 1068 drivers/net/can/usb/ucan.c netdev_err(up->netdev, "no memory left for USB buffer\n"); up 1094 drivers/net/can/usb/ucan.c usb_fill_bulk_urb(urb, up->udev, up 1095 drivers/net/can/usb/ucan.c usb_sndbulkpipe(up->udev, up 1096 drivers/net/can/usb/ucan.c up->out_ep_addr), up 1103 drivers/net/can/usb/ucan.c static void ucan_clean_up_tx_urb(struct ucan_priv *up, struct urb *urb) up 1105 drivers/net/can/usb/ucan.c usb_free_coherent(up->udev, sizeof(struct ucan_message_out), up 1119 drivers/net/can/usb/ucan.c struct ucan_priv *up = netdev_priv(netdev); up 1127 drivers/net/can/usb/ucan.c context = ucan_alloc_context(up); up 1128 drivers/net/can/usb/ucan.c echo_index = context - up->context_array; up 1134 drivers/net/can/usb/ucan.c urb = ucan_prepare_tx_urb(up, context, cf, echo_index); up 1139 drivers/net/can/usb/ucan.c spin_lock_irqsave(&up->echo_skb_lock, flags); up 1140 drivers/net/can/usb/ucan.c can_put_echo_skb(skb, up->netdev, echo_index); up 1141 drivers/net/can/usb/ucan.c spin_unlock_irqrestore(&up->echo_skb_lock, flags); up 1144 drivers/net/can/usb/ucan.c usb_anchor_urb(urb, &up->tx_urbs); up 1151 drivers/net/can/usb/ucan.c ucan_clean_up_tx_urb(up, urb); up 1152 drivers/net/can/usb/ucan.c if (!ucan_release_context(up, context)) up 1153 drivers/net/can/usb/ucan.c netdev_err(up->netdev, up 1159 drivers/net/can/usb/ucan.c spin_lock_irqsave(&up->echo_skb_lock, flags); up 1160 drivers/net/can/usb/ucan.c can_free_echo_skb(up->netdev, echo_index); up 1161 drivers/net/can/usb/ucan.c spin_unlock_irqrestore(&up->echo_skb_lock, flags); up 1164 drivers/net/can/usb/ucan.c netif_device_detach(up->netdev); up 1166 drivers/net/can/usb/ucan.c netdev_warn(up->netdev, up 1169 drivers/net/can/usb/ucan.c up->netdev->stats.tx_dropped++; up 1182 drivers/net/can/usb/ucan.c if (!ucan_release_context(up, context)) up 1183 drivers/net/can/usb/ucan.c netdev_err(up->netdev, up 1186 drivers/net/can/usb/ucan.c up->netdev->stats.tx_dropped++; up 1198 drivers/net/can/usb/ucan.c struct ucan_priv *up = netdev_priv(netdev); up 1200 drivers/net/can/usb/ucan.c up->can.state = CAN_STATE_STOPPED; up 1203 drivers/net/can/usb/ucan.c usb_kill_anchored_urbs(&up->tx_urbs); up 1206 drivers/net/can/usb/ucan.c usb_kill_anchored_urbs(&up->rx_urbs); up 1209 drivers/net/can/usb/ucan.c ret = ucan_ctrl_command_out(up, UCAN_COMMAND_STOP, 0, 0); up 1211 drivers/net/can/usb/ucan.c netdev_err(up->netdev, up 1215 drivers/net/can/usb/ucan.c ret = ucan_ctrl_command_out(up, UCAN_COMMAND_RESET, 0, 0); up 1217 drivers/net/can/usb/ucan.c netdev_err(up->netdev, up 1223 drivers/net/can/usb/ucan.c ucan_release_context_array(up); up 1225 drivers/net/can/usb/ucan.c close_candev(up->netdev); up 1245 drivers/net/can/usb/ucan.c struct ucan_priv *up = netdev_priv(netdev); up 1248 drivers/net/can/usb/ucan.c cmd_set_bittiming = &up->ctl_msg_buffer->cmd_set_bittiming; up 1249 drivers/net/can/usb/ucan.c cmd_set_bittiming->tq = cpu_to_le32(up->can.bittiming.tq); up 1250 drivers/net/can/usb/ucan.c cmd_set_bittiming->brp = cpu_to_le16(up->can.bittiming.brp); up 1252 drivers/net/can/usb/ucan.c cpu_to_le16(up->can.bittiming.sample_point); up 1253 drivers/net/can/usb/ucan.c cmd_set_bittiming->prop_seg = up->can.bittiming.prop_seg; up 1254 drivers/net/can/usb/ucan.c cmd_set_bittiming->phase_seg1 = up->can.bittiming.phase_seg1; up 1255 drivers/net/can/usb/ucan.c cmd_set_bittiming->phase_seg2 = up->can.bittiming.phase_seg2; up 1256 drivers/net/can/usb/ucan.c cmd_set_bittiming->sjw = up->can.bittiming.sjw; up 1258 drivers/net/can/usb/ucan.c ret = ucan_ctrl_command_out(up, UCAN_COMMAND_SET_BITTIMING, 0, up 1270 drivers/net/can/usb/ucan.c struct ucan_priv *up = netdev_priv(netdev); up 1274 drivers/net/can/usb/ucan.c netdev_dbg(up->netdev, "restarting device\n"); up 1276 drivers/net/can/usb/ucan.c ret = ucan_ctrl_command_out(up, UCAN_COMMAND_RESTART, 0, 0); up 1277 drivers/net/can/usb/ucan.c up->can.state = CAN_STATE_ERROR_ACTIVE; up 1283 drivers/net/can/usb/ucan.c spin_lock_irqsave(&up->context_lock, flags); up 1285 drivers/net/can/usb/ucan.c if (up->available_tx_urbs > 0) up 1286 drivers/net/can/usb/ucan.c netif_wake_queue(up->netdev); up 1288 drivers/net/can/usb/ucan.c spin_unlock_irqrestore(&up->context_lock, flags); up 1306 drivers/net/can/usb/ucan.c struct ucan_priv *up; up 1495 drivers/net/can/usb/ucan.c up = netdev_priv(netdev); up 1498 drivers/net/can/usb/ucan.c up->udev = udev; up 1499 drivers/net/can/usb/ucan.c up->intf = intf; up 1500 drivers/net/can/usb/ucan.c up->netdev = netdev; up 1501 drivers/net/can/usb/ucan.c up->intf_index = iface_desc->desc.bInterfaceNumber; up 1502 drivers/net/can/usb/ucan.c up->in_ep_addr = in_ep_addr; up 1503 drivers/net/can/usb/ucan.c up->out_ep_addr = out_ep_addr; up 1504 drivers/net/can/usb/ucan.c up->in_ep_size = in_ep_size; up 1505 drivers/net/can/usb/ucan.c up->ctl_msg_buffer = ctl_msg_buffer; up 1506 drivers/net/can/usb/ucan.c up->context_array = NULL; up 1507 drivers/net/can/usb/ucan.c up->available_tx_urbs = 0; up 1509 drivers/net/can/usb/ucan.c up->can.state = CAN_STATE_STOPPED; up 1510 drivers/net/can/usb/ucan.c up->can.bittiming_const = &up->device_info.bittiming_const; up 1511 drivers/net/can/usb/ucan.c up->can.do_set_bittiming = ucan_set_bittiming; up 1512 drivers/net/can/usb/ucan.c up->can.do_set_mode = &ucan_set_mode; up 1513 drivers/net/can/usb/ucan.c spin_lock_init(&up->context_lock); up 1514 drivers/net/can/usb/ucan.c spin_lock_init(&up->echo_skb_lock); up 1517 drivers/net/can/usb/ucan.c usb_set_intfdata(intf, up); up 1524 drivers/net/can/usb/ucan.c ucan_parse_device_info(up, &ctl_msg_buffer->cmd_get_device_info); up 1527 drivers/net/can/usb/ucan.c ret = ucan_device_request_in(up, UCAN_DEVICE_GET_FW_STRING, 0, up 1531 drivers/net/can/usb/ucan.c strncpy(firmware_str, up->ctl_msg_buffer->raw, up 1539 drivers/net/can/usb/ucan.c ret = ucan_ctrl_command_out(up, UCAN_COMMAND_RESET, 0, 0); up 1543 drivers/net/can/usb/ucan.c init_usb_anchor(&up->rx_urbs); up 1544 drivers/net/can/usb/ucan.c init_usb_anchor(&up->tx_urbs); up 1546 drivers/net/can/usb/ucan.c up->can.state = CAN_STATE_STOPPED; up 1554 drivers/net/can/usb/ucan.c netdev_info(up->netdev, "registered device\n"); up 1555 drivers/net/can/usb/ucan.c netdev_info(up->netdev, "firmware string: %s\n", firmware_str); up 1574 drivers/net/can/usb/ucan.c struct ucan_priv *up = usb_get_intfdata(intf); up 1578 drivers/net/can/usb/ucan.c if (up) { up 1579 drivers/net/can/usb/ucan.c unregister_netdev(up->netdev); up 1580 drivers/net/can/usb/ucan.c free_candev(up->netdev); up 480 drivers/net/dsa/mv88e6xxx/chip.h bool up); up 53 drivers/net/dsa/mv88e6xxx/serdes.c bool up) up 62 drivers/net/dsa/mv88e6xxx/serdes.c if (up) up 185 drivers/net/dsa/mv88e6xxx/serdes.c bool up; up 200 drivers/net/dsa/mv88e6xxx/serdes.c up = status & BMSR_LSTATUS; up 202 drivers/net/dsa/mv88e6xxx/serdes.c dsa_port_phylink_mac_change(ds, port, up); up 357 drivers/net/dsa/mv88e6xxx/serdes.c bool up) up 368 drivers/net/dsa/mv88e6xxx/serdes.c if (up) up 384 drivers/net/dsa/mv88e6xxx/serdes.c bool up) up 394 drivers/net/dsa/mv88e6xxx/serdes.c if (up) up 409 drivers/net/dsa/mv88e6xxx/serdes.c bool up) up 417 drivers/net/dsa/mv88e6xxx/serdes.c return mv88e6390_serdes_power_sgmii(chip, lane, up); up 420 drivers/net/dsa/mv88e6xxx/serdes.c return mv88e6390_serdes_power_10g(chip, lane, up); up 954 drivers/net/ethernet/3com/3c574_cs.c u8 rx, tx, up; up 971 drivers/net/ethernet/3com/3c574_cs.c up = inb(ioaddr + 9); up 972 drivers/net/ethernet/3com/3c574_cs.c dev->stats.tx_packets += (up&0x30) << 4; up 980 drivers/net/ethernet/3com/3c574_cs.c up = inb(ioaddr + 13); up 2873 drivers/net/ethernet/3com/3c59x.c u8 up = window_read8(vp, 4, 13); up 2874 drivers/net/ethernet/3com/3c59x.c dev->stats.rx_bytes += (up & 0x0f) << 16; up 2875 drivers/net/ethernet/3com/3c59x.c dev->stats.tx_bytes += (up & 0xf0) << 12; up 1988 drivers/net/ethernet/broadcom/bcm63xx_enet.c int val, j, up, advertise, lpa, speed, duplex, media; up 2007 drivers/net/ethernet/broadcom/bcm63xx_enet.c up = (val & BMSR_LSTATUS) ? 1 : 0; up 2008 drivers/net/ethernet/broadcom/bcm63xx_enet.c if (!(up ^ priv->sw_port_link[i])) up 2011 drivers/net/ethernet/broadcom/bcm63xx_enet.c priv->sw_port_link[i] = up; up 2014 drivers/net/ethernet/broadcom/bcm63xx_enet.c if (!up) { up 710 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c u8 up = bnx2x_dcbx_dcbnl_app_up(ent); up 713 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c if (up) { up 717 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c app.priority = delall ? 0 : up; up 2257 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c u8 idtype, u16 idval, u8 up) up 2272 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c app_ent->priority = up; up 2300 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c static int bnx2x_set_admin_app_up(struct bnx2x *bp, u8 idtype, u16 idval, u8 up) up 2317 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c admin_priority_app_table[i].priority = up; up 2322 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c idtype, idval, up); up 2330 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c if (up) up 2337 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c u16 idval, u8 up) up 2342 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c idtype, idval, up); up 2358 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c return bnx2x_set_admin_app_up(bp, idtype, idval, up); up 10654 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c up(&bnx2x_prev_sem); up 10679 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c up(&bnx2x_prev_sem); up 10694 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c up(&bnx2x_prev_sem); up 10720 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c up(&bnx2x_prev_sem); up 10723 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c up(&bnx2x_prev_sem); up 10746 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c up(&bnx2x_prev_sem); up 10971 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c up(&bnx2x_prev_sem); up 14282 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c up(&bp->stats_lock); up 1393 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c up(&bp->stats_lock); up 2001 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c up(&bp->stats_lock); up 8738 drivers/net/ethernet/broadcom/bnxt/bnxt.c static int bnxt_hwrm_if_change(struct bnxt *bp, bool up) up 8750 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (up) up 8760 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (!up) up 502 drivers/net/ethernet/brocade/bna/bna_enet.c bfa_fsm_state_decl(bna_ethport, up, struct bna_ethport, up 1262 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c if (priv->link_state.up == state.up) up 1265 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c if (state.up) { up 1275 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c state.up ? "up" : "down"); up 1769 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c bool up, need_update; up 1781 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c up = netif_running(dev); up 1784 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c if (up) up 1812 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c if (up) { up 1823 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c if (up) up 921 drivers/net/ethernet/freescale/dpaa2/dpni.c state->up = dpni_get_field(rsp_params->flags, LINK_STATE); up 545 drivers/net/ethernet/freescale/dpaa2/dpni.h int up; up 365 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c up(&chain->sem); up 382 drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c up(&chain->sem); up 68 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c up(&free_db_area->idx_lock); up 79 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c up(&free_db_area->idx_lock); up 99 drivers/net/ethernet/huawei/hinic/hinic_hw_io.c up(&free_db_area->idx_lock); up 295 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c up(&pf_to_mgmt->sync_msg_lock); up 325 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c up(&pf_to_mgmt->sync_msg_lock); up 243 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c up(&wqs->alloc_blocks_lock); up 256 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c up(&wqs->alloc_blocks_lock); up 275 drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c up(&wqs->alloc_blocks_lock); up 449 drivers/net/ethernet/huawei/hinic/hinic_main.c up(&nic_dev->mgmt_lock); up 455 drivers/net/ethernet/huawei/hinic/hinic_main.c up(&nic_dev->mgmt_lock); up 497 drivers/net/ethernet/huawei/hinic/hinic_main.c up(&nic_dev->mgmt_lock); up 572 drivers/net/ethernet/huawei/hinic/hinic_main.c up(&nic_dev->mgmt_lock); up 619 drivers/net/ethernet/huawei/hinic/hinic_main.c up(&nic_dev->mgmt_lock); up 655 drivers/net/ethernet/huawei/hinic/hinic_main.c up(&nic_dev->mgmt_lock); up 683 drivers/net/ethernet/huawei/hinic/hinic_main.c up(&nic_dev->mgmt_lock); up 693 drivers/net/ethernet/huawei/hinic/hinic_main.c up(&nic_dev->mgmt_lock); up 715 drivers/net/ethernet/huawei/hinic/hinic_main.c up(&nic_dev->mgmt_lock); up 719 drivers/net/ethernet/huawei/hinic/hinic_main.c up(&nic_dev->mgmt_lock); up 780 drivers/net/ethernet/huawei/hinic/hinic_main.c up(&nic_dev->mgmt_lock); up 871 drivers/net/ethernet/huawei/hinic/hinic_main.c up(&nic_dev->mgmt_lock); up 882 drivers/net/ethernet/huawei/hinic/hinic_main.c up(&nic_dev->mgmt_lock); up 374 drivers/net/ethernet/intel/i40e/i40e_dcb.c u8 up, selector; up 377 drivers/net/ethernet/intel/i40e/i40e_dcb.c for (up = 0; up < I40E_MAX_USER_PRIORITY; up++) { up 378 drivers/net/ethernet/intel/i40e/i40e_dcb.c if (app->prio_map & BIT(up)) up 381 drivers/net/ethernet/intel/i40e/i40e_dcb.c dcbcfg->app[i].priority = up; up 509 drivers/net/ethernet/intel/ice/ice_dcb.c u8 up, selector; up 512 drivers/net/ethernet/intel/ice/ice_dcb.c for (up = 0; up < ICE_MAX_USER_PRIORITY; up++) up 513 drivers/net/ethernet/intel/ice/ice_dcb.c if (app->prio_map & BIT(up)) up 516 drivers/net/ethernet/intel/ice/ice_dcb.c dcbcfg->app[i].priority = up; up 939 drivers/net/ethernet/intel/ixgbe/ixgbe.h u8 ixgbe_fcoe_setapp(struct ixgbe_adapter *adapter, u8 up); up 212 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c u8 ixgbe_dcb_get_tc_from_up(struct ixgbe_dcb_config *cfg, int direction, u8 up) up 215 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c u8 prio_mask = BIT(up); up 237 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c u8 up; up 239 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c for (up = 0; up < MAX_USER_PRIORITY; up++) up 240 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c map[up] = ixgbe_dcb_get_tc_from_up(cfg, direction, up); up 38 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c u8 up = dcb_getapp(adapter->netdev, &app); up 40 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c if (up && !(up & BIT(adapter->fcoe.up))) up 373 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c u8 up = dcb_getapp(netdev, &app); up 375 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c adapter->fcoe.up = ffs(up) - 1; up 635 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c if (app_mask & BIT(adapter->fcoe.up)) up 638 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c adapter->fcoe.up = app->priority; up 678 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c if (app_mask & BIT(adapter->fcoe.up)) up 681 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c adapter->fcoe.up = app_mask ? up 1049 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c return netdev_get_prio_tc_map(adapter->netdev, adapter->fcoe.up); up 60 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.h u8 up; up 5175 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c (pb == netdev_get_prio_tc_map(dev, adapter->fcoe.up))) up 6289 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c adapter->fcoe.up = IXGBE_FCOE_DEFTC; up 6332 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c adapter->fcoe.up = 0; up 6363 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c adapter->fcoe.up = 0; up 7406 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c u8 up = 0; up 7409 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c up = dcb_ieee_getapp_mask(netdev, &app); up 7411 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c adapter->default_up = (up > 1) ? (ffs(up) - 1) : 0; up 334 drivers/net/ethernet/mellanox/mlx4/cmd.c up(&priv->cmd.poll_sem); up 403 drivers/net/ethernet/mellanox/mlx4/cmd.c up(&cmd->event_sem); up 656 drivers/net/ethernet/mellanox/mlx4/cmd.c up(&priv->cmd.poll_sem); up 770 drivers/net/ethernet/mellanox/mlx4/cmd.c up(&cmd->event_sem); up 2687 drivers/net/ethernet/mellanox/mlx4/cmd.c up(&priv->cmd.poll_sem); up 271 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c u16 id, u8 up) up 282 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c app.priority = up; up 1819 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c u8 up; up 1858 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c up = (priv->prof->num_up == MLX4_EN_NUM_UP_LOW) ? up 1860 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c mlx4_en_setup_tc(dev, up); up 56 drivers/net/ethernet/mellanox/mlx4/en_netdev.c int mlx4_en_setup_tc(struct net_device *dev, u8 up) up 62 drivers/net/ethernet/mellanox/mlx4/en_netdev.c if (up && up != MLX4_EN_NUM_UP_HIGH) up 65 drivers/net/ethernet/mellanox/mlx4/en_netdev.c netdev_set_num_tc(dev, up); up 68 drivers/net/ethernet/mellanox/mlx4/en_netdev.c for (i = 0; i < up; i++) { up 75 drivers/net/ethernet/mellanox/mlx4/en_netdev.c if (up) { up 776 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h int mlx4_en_setup_tc(struct net_device *dev, u8 up); up 880 drivers/net/ethernet/mellanox/mlx5/core/cmd.c up(sem); up 1419 drivers/net/ethernet/mellanox/mlx5/core/cmd.c up(&cmd->pages_sem); up 1421 drivers/net/ethernet/mellanox/mlx5/core/cmd.c up(&cmd->sem); up 1559 drivers/net/ethernet/mellanox/mlx5/core/cmd.c up(sem); up 1600 drivers/net/ethernet/mellanox/mlx5/core/cmd.c up(&cmd->pages_sem); up 1602 drivers/net/ethernet/mellanox/mlx5/core/cmd.c up(&cmd->sem); up 76 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c int up = 0; up 83 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c up = mlx5e_get_dscp_up(priv, skb); up 87 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c up = skb_vlan_tag_get_prio(skb); up 96 drivers/net/ethernet/mellanox/mlx5/core/en_tx.c return priv->channel_tc2realtxq[txq_ix][up]; up 87 drivers/net/ethernet/mellanox/mlx5/core/uar.c struct mlx5_uars_page *up = container_of(kref, struct mlx5_uars_page, ref_count); up 89 drivers/net/ethernet/mellanox/mlx5/core/uar.c list_del(&up->list); up 90 drivers/net/ethernet/mellanox/mlx5/core/uar.c iounmap(up->map); up 91 drivers/net/ethernet/mellanox/mlx5/core/uar.c if (mlx5_cmd_free_uar(up->mdev, up->index)) up 92 drivers/net/ethernet/mellanox/mlx5/core/uar.c mlx5_core_warn(up->mdev, "failed to free uar index %d\n", up->index); up 93 drivers/net/ethernet/mellanox/mlx5/core/uar.c bitmap_free(up->reg_bitmap); up 94 drivers/net/ethernet/mellanox/mlx5/core/uar.c bitmap_free(up->fp_bitmap); up 95 drivers/net/ethernet/mellanox/mlx5/core/uar.c kfree(up); up 101 drivers/net/ethernet/mellanox/mlx5/core/uar.c struct mlx5_uars_page *up; up 108 drivers/net/ethernet/mellanox/mlx5/core/uar.c up = kzalloc(sizeof(*up), GFP_KERNEL); up 109 drivers/net/ethernet/mellanox/mlx5/core/uar.c if (!up) up 112 drivers/net/ethernet/mellanox/mlx5/core/uar.c up->mdev = mdev; up 113 drivers/net/ethernet/mellanox/mlx5/core/uar.c up->reg_bitmap = bitmap_zalloc(bfregs, GFP_KERNEL); up 114 drivers/net/ethernet/mellanox/mlx5/core/uar.c if (!up->reg_bitmap) up 117 drivers/net/ethernet/mellanox/mlx5/core/uar.c up->fp_bitmap = bitmap_zalloc(bfregs, GFP_KERNEL); up 118 drivers/net/ethernet/mellanox/mlx5/core/uar.c if (!up->fp_bitmap) up 123 drivers/net/ethernet/mellanox/mlx5/core/uar.c set_bit(i, up->reg_bitmap); up 125 drivers/net/ethernet/mellanox/mlx5/core/uar.c set_bit(i, up->fp_bitmap); up 127 drivers/net/ethernet/mellanox/mlx5/core/uar.c up->bfregs = bfregs; up 128 drivers/net/ethernet/mellanox/mlx5/core/uar.c up->fp_avail = bfregs * MLX5_FP_BFREGS_PER_UAR / MLX5_BFREGS_PER_UAR; up 129 drivers/net/ethernet/mellanox/mlx5/core/uar.c up->reg_avail = bfregs * MLX5_NON_FP_BFREGS_PER_UAR / MLX5_BFREGS_PER_UAR; up 131 drivers/net/ethernet/mellanox/mlx5/core/uar.c err = mlx5_cmd_alloc_uar(mdev, &up->index); up 137 drivers/net/ethernet/mellanox/mlx5/core/uar.c pfn = uar2pfn(mdev, up->index); up 139 drivers/net/ethernet/mellanox/mlx5/core/uar.c up->map = ioremap_wc(pfn << PAGE_SHIFT, PAGE_SIZE); up 140 drivers/net/ethernet/mellanox/mlx5/core/uar.c if (!up->map) { up 145 drivers/net/ethernet/mellanox/mlx5/core/uar.c up->map = ioremap(pfn << PAGE_SHIFT, PAGE_SIZE); up 146 drivers/net/ethernet/mellanox/mlx5/core/uar.c if (!up->map) { up 151 drivers/net/ethernet/mellanox/mlx5/core/uar.c kref_init(&up->ref_count); up 153 drivers/net/ethernet/mellanox/mlx5/core/uar.c up->index, up->bfregs); up 154 drivers/net/ethernet/mellanox/mlx5/core/uar.c return up; up 157 drivers/net/ethernet/mellanox/mlx5/core/uar.c if (mlx5_cmd_free_uar(mdev, up->index)) up 158 drivers/net/ethernet/mellanox/mlx5/core/uar.c mlx5_core_warn(mdev, "failed to free uar index %d\n", up->index); up 160 drivers/net/ethernet/mellanox/mlx5/core/uar.c bitmap_free(up->fp_bitmap); up 161 drivers/net/ethernet/mellanox/mlx5/core/uar.c bitmap_free(up->reg_bitmap); up 162 drivers/net/ethernet/mellanox/mlx5/core/uar.c kfree(up); up 188 drivers/net/ethernet/mellanox/mlx5/core/uar.c void mlx5_put_uars_page(struct mlx5_core_dev *mdev, struct mlx5_uars_page *up) up 191 drivers/net/ethernet/mellanox/mlx5/core/uar.c kref_put(&up->ref_count, up_rel_func); up 210 drivers/net/ethernet/mellanox/mlx5/core/uar.c struct mlx5_uars_page *up; up 227 drivers/net/ethernet/mellanox/mlx5/core/uar.c up = alloc_uars_page(mdev, map_wc); up 228 drivers/net/ethernet/mellanox/mlx5/core/uar.c if (IS_ERR(up)) { up 230 drivers/net/ethernet/mellanox/mlx5/core/uar.c return PTR_ERR(up); up 232 drivers/net/ethernet/mellanox/mlx5/core/uar.c list_add(&up->list, head); up 234 drivers/net/ethernet/mellanox/mlx5/core/uar.c up = list_entry(head->next, struct mlx5_uars_page, list); up 235 drivers/net/ethernet/mellanox/mlx5/core/uar.c kref_get(&up->ref_count); up 238 drivers/net/ethernet/mellanox/mlx5/core/uar.c bitmap = up->fp_bitmap; up 239 drivers/net/ethernet/mellanox/mlx5/core/uar.c avail = &up->fp_avail; up 241 drivers/net/ethernet/mellanox/mlx5/core/uar.c bitmap = up->reg_bitmap; up 242 drivers/net/ethernet/mellanox/mlx5/core/uar.c avail = &up->reg_avail; up 244 drivers/net/ethernet/mellanox/mlx5/core/uar.c dbi = find_first_bit(bitmap, up->bfregs); up 248 drivers/net/ethernet/mellanox/mlx5/core/uar.c list_del(&up->list); up 250 drivers/net/ethernet/mellanox/mlx5/core/uar.c bfreg->map = up->map + map_offset(mdev, dbi); up 251 drivers/net/ethernet/mellanox/mlx5/core/uar.c bfreg->up = up; up 253 drivers/net/ethernet/mellanox/mlx5/core/uar.c bfreg->index = up->index + dbi / MLX5_BFREGS_PER_UAR; up 276 drivers/net/ethernet/mellanox/mlx5/core/uar.c struct mlx5_uars_page *up, up 285 drivers/net/ethernet/mellanox/mlx5/core/uar.c uar_idx = (bfreg->map - up->map) >> MLX5_ADAPTER_PAGE_SHIFT; up 294 drivers/net/ethernet/mellanox/mlx5/core/uar.c struct mlx5_uars_page *up; up 310 drivers/net/ethernet/mellanox/mlx5/core/uar.c up = bfreg->up; up 311 drivers/net/ethernet/mellanox/mlx5/core/uar.c dbi = addr_to_dbi_in_syspage(mdev, up, bfreg); up 314 drivers/net/ethernet/mellanox/mlx5/core/uar.c avail = &up->fp_avail; up 315 drivers/net/ethernet/mellanox/mlx5/core/uar.c bitmap = up->fp_bitmap; up 317 drivers/net/ethernet/mellanox/mlx5/core/uar.c avail = &up->reg_avail; up 318 drivers/net/ethernet/mellanox/mlx5/core/uar.c bitmap = up->reg_bitmap; up 324 drivers/net/ethernet/mellanox/mlx5/core/uar.c list_add_tail(&up->list, head); up 326 drivers/net/ethernet/mellanox/mlx5/core/uar.c kref_put(&up->ref_count, up_rel_func); up 5867 drivers/net/ethernet/micrel/ksz884x.c up(&priv->proc_sem); up 398 drivers/net/ethernet/natsemi/ns83820.c int up; up 589 drivers/net/ethernet/natsemi/ns83820.c if (dev->rx_info.up) up 735 drivers/net/ethernet/natsemi/ns83820.c dev->rx_info.up = 1; up 777 drivers/net/ethernet/natsemi/ns83820.c dev->rx_info.up = 0; up 799 drivers/net/ethernet/natsemi/ns83820.c if (dev->rx_info.up) { up 805 drivers/net/ethernet/natsemi/ns83820.c if (dev->rx_info.up && nr_rx_empty(dev) > NR_RX_DESC*3/4) up 838 drivers/net/ethernet/natsemi/ns83820.c if (!info->up) up 1448 drivers/net/ethernet/natsemi/ns83820.c if ((ISR_RXRCMP & isr) && dev->rx_info.up) up 1535 drivers/net/ethernet/natsemi/ns83820.c dev->rx_info.up = 0; up 908 drivers/net/ethernet/netronome/nfp/nfp_net.h up(&nn->bar_lock); up 175 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c u8 up) up 179 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->setapp(edev->cdev, idtype, idval, up); up 965 drivers/net/ethernet/sfc/efx.c if (link_state->up != netif_carrier_ok(efx->net_dev)) { up 968 drivers/net/ethernet/sfc/efx.c if (link_state->up) up 975 drivers/net/ethernet/sfc/efx.c if (link_state->up) up 1193 drivers/net/ethernet/sfc/efx.c efx->link_state.up = false; up 916 drivers/net/ethernet/sfc/falcon/efx.c if (link_state->up != netif_carrier_ok(efx->net_dev)) { up 919 drivers/net/ethernet/sfc/falcon/efx.c if (link_state->up) up 926 drivers/net/ethernet/sfc/falcon/efx.c if (link_state->up) up 1133 drivers/net/ethernet/sfc/falcon/efx.c efx->link_state.up = false; up 1050 drivers/net/ethernet/sfc/falcon/falcon.c if (!efx->link_state.up) up 1246 drivers/net/ethernet/sfc/falcon/falcon.c if (!efx->link_state.up || !nic_data->xmac_poll_required) up 1395 drivers/net/ethernet/sfc/falcon/falcon.c !link_state->up || isolate); up 1478 drivers/net/ethernet/sfc/falcon/falcon.c efx->link_state.up = true; up 129 drivers/net/ethernet/sfc/falcon/falcon_boards.c if (EF4_WORKAROUND_7884(efx) && efx->link_state.up) up 537 drivers/net/ethernet/sfc/falcon/net_driver.h bool up; up 546 drivers/net/ethernet/sfc/falcon/net_driver.h return left->up == right->up && left->fd == right->fd && up 190 drivers/net/ethernet/sfc/falcon/qt202x_phy.c if (efx->link_state.up || up 387 drivers/net/ethernet/sfc/falcon/qt202x_phy.c bool was_up = efx->link_state.up; up 389 drivers/net/ethernet/sfc/falcon/qt202x_phy.c efx->link_state.up = qt202x_link_ok(efx); up 397 drivers/net/ethernet/sfc/falcon/qt202x_phy.c return efx->link_state.up != was_up; up 597 drivers/net/ethernet/sfc/falcon/selftest.c link_up = link_state->up; up 356 drivers/net/ethernet/sfc/falcon/tenxpress.c efx->link_state.up = sfx7101_link_ok(efx); up 361 drivers/net/ethernet/sfc/falcon/tenxpress.c sfx7101_check_bad_lp(efx, efx->link_state.up); up 492 drivers/net/ethernet/sfc/falcon/txc43128_phy.c bool was_up = efx->link_state.up; up 494 drivers/net/ethernet/sfc/falcon/txc43128_phy.c efx->link_state.up = txc43128_phy_read_link(efx); up 499 drivers/net/ethernet/sfc/falcon/txc43128_phy.c if (efx->link_state.up || (efx->loopback_mode != LOOPBACK_NONE)) { up 509 drivers/net/ethernet/sfc/falcon/txc43128_phy.c return efx->link_state.up != was_up; up 348 drivers/net/ethernet/sfc/mcdi_port.c link_state->up = !!(flags & (1 << MC_CMD_GET_LINK_OUT_LINK_UP_LBN)); up 571 drivers/net/ethernet/sfc/mcdi_port.c efx->link_state.up = false; up 608 drivers/net/ethernet/sfc/net_driver.h bool up; up 617 drivers/net/ethernet/sfc/net_driver.h return left->up == right->up && left->fd == right->fd && up 597 drivers/net/ethernet/sfc/selftest.c link_up = link_state->up; up 2079 drivers/net/ethernet/ti/netcp_ethss.c int up) up 2084 drivers/net/ethernet/ti/netcp_ethss.c if (up) { up 649 drivers/net/fddi/skfp/fplustm.c static void mac_ring_up(struct s_smc *smc, int up) up 651 drivers/net/fddi/skfp/fplustm.c if (up) { up 915 drivers/net/phy/phy_device.c static void phy_link_change(struct phy_device *phydev, bool up, bool do_carrier) up 920 drivers/net/phy/phy_device.c if (up) up 697 drivers/net/phy/phylink.c static void phylink_phy_change(struct phy_device *phydev, bool up, up 711 drivers/net/phy/phylink.c pl->phy_state.link = up; up 716 drivers/net/phy/phylink.c phylink_dbg(pl, "phy link %s %s/%s/%s\n", up ? "up" : "down", up 943 drivers/net/phy/phylink.c void phylink_mac_change(struct phylink *pl, bool up) up 945 drivers/net/phy/phylink.c if (!up) up 948 drivers/net/phy/phylink.c phylink_dbg(pl, "mac link %s\n", up ? "up" : "down"); up 983 drivers/net/tap.c unsigned int __user *up = argp; up 1030 drivers/net/tap.c if (put_user(IFF_TAP | IFF_NO_PI | TAP_IFFEATURES, up)) up 756 drivers/net/usb/r8152.c void (*up)(struct r8152 *); up 4288 drivers/net/usb/r8152.c tp->rtl_ops.up(tp); up 4750 drivers/net/usb/r8152.c tp->rtl_ops.up(tp); up 5527 drivers/net/usb/r8152.c ops->up = rtl8152_up; up 5547 drivers/net/usb/r8152.c ops->up = rtl8153_up; up 5565 drivers/net/usb/r8152.c ops->up = rtl8153b_up; up 836 drivers/net/wan/cosa.c up(&chan->wsem); up 867 drivers/net/wan/cosa.c up(&chan->wsem); up 871 drivers/net/wan/cosa.c up(&chan->wsem); up 891 drivers/net/wan/cosa.c up(&chan->wsem); up 897 drivers/net/wan/cosa.c up(&chan->wsem); up 907 drivers/net/wan/cosa.c up(&chan->wsem); up 57 drivers/net/wan/hdlc_cisco.c int up; up 226 drivers/net/wan/hdlc_cisco.c if (!st->up) { up 235 drivers/net/wan/hdlc_cisco.c st->up = 1; up 263 drivers/net/wan/hdlc_cisco.c if (st->up && up 265 drivers/net/wan/hdlc_cisco.c st->up = 0; up 287 drivers/net/wan/hdlc_cisco.c st->up = st->txseq = st->rxseq = 0; up 308 drivers/net/wan/hdlc_cisco.c st->up = st->txseq = 0; up 489 drivers/net/wireless/ath/ath6kl/cfg80211.c up(&ar->sem); up 502 drivers/net/wireless/ath/ath6kl/cfg80211.c up(&ar->sem); up 509 drivers/net/wireless/ath/ath6kl/cfg80211.c up(&ar->sem); up 524 drivers/net/wireless/ath/ath6kl/cfg80211.c up(&ar->sem); up 550 drivers/net/wireless/ath/ath6kl/cfg80211.c up(&ar->sem); up 572 drivers/net/wireless/ath/ath6kl/cfg80211.c up(&ar->sem); up 596 drivers/net/wireless/ath/ath6kl/cfg80211.c up(&ar->sem); up 628 drivers/net/wireless/ath/ath6kl/cfg80211.c up(&ar->sem); up 653 drivers/net/wireless/ath/ath6kl/cfg80211.c up(&ar->sem); up 853 drivers/net/wireless/ath/ath6kl/cfg80211.c up(&ar->sem); up 1796 drivers/net/wireless/ath/ath6kl/cfg80211.c up(&ar->sem); up 1805 drivers/net/wireless/ath/ath6kl/cfg80211.c up(&ar->sem); up 111 drivers/net/wireless/ath/ath6kl/debug.c up(&ar->sem); up 119 drivers/net/wireless/ath/ath6kl/debug.c up(&ar->sem); up 1176 drivers/net/wireless/ath/ath6kl/debug.c up(&ar->sem); up 1182 drivers/net/wireless/ath/ath6kl/debug.c up(&ar->sem); up 1941 drivers/net/wireless/ath/ath6kl/init.c up(&ar->sem); up 110 drivers/net/wireless/ath/ath6kl/txrx.c u8 up = 0, traffic_class, *ip_hdr; up 146 drivers/net/wireless/ath/ath6kl/txrx.c up = ath6kl_wmi_determine_user_priority( up 150 drivers/net/wireless/ath/ath6kl/txrx.c traffic_class = ath6kl_wmi_get_traffic_class(up); up 3502 drivers/net/wireless/ath/wcn36xx/hal.h u8 up; up 24 drivers/net/wireless/ath/wil6210/netdev.c struct net_device *ndev, bool up, bool ok) up 35 drivers/net/wireless/ath/wil6210/netdev.c if ((up && (ndev_i->flags & IFF_UP)) || up 44 drivers/net/wireless/ath/wil6210/netdev.c bool wil_has_active_ifaces(struct wil6210_priv *wil, bool up, bool ok) up 47 drivers/net/wireless/ath/wil6210/netdev.c return wil_has_other_active_ifaces(wil, NULL, up, ok); up 1218 drivers/net/wireless/ath/wil6210/wil6210.h struct net_device *ndev, bool up, bool ok); up 1219 drivers/net/wireless/ath/wil6210/wil6210.h bool wil_has_active_ifaces(struct wil6210_priv *wil, bool up, bool ok); up 411 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c if (!wl->pub->up) { up 445 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c if (!wl->pub->up) up 995 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c if (wl->pub->up) { up 1008 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c if (!wl->pub->up) up 1370 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c wl->pub->up = false; up 1423 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c if (wl->pub->up) up 1837 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (!wlc_hw->up) up 2317 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (!wlc_hw->up) up 2622 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (!wlc_hw->up || !wlc->macintmask) up 3029 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (wlc_hw->up) { up 3092 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (!wlc->pub->up) up 3814 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (wlc_hw->band->bandtype == BRCM_BAND_2G && wlc_hw->up) { up 3867 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (wlc_hw->up) { up 3880 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (!wlc_hw->up) { up 3900 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (!wlc->pub->up) up 4042 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (wlc->pub->up) { up 4052 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (wlc->pub->up) { up 4221 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (!wlc_hw->up) up 4241 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (!wlc->pub->up) up 4988 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_hw->up = true; up 5082 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->up = true; up 5121 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (!wlc_hw->up) up 5147 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (!wlc_hw->up) up 5150 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc_hw->up = false; up 5204 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (!wlc->pub->up) up 5229 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c wlc->pub->up = false; up 5426 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (!wlc->pub->up && brcms_is_mband_unlocked(wlc)) { up 5436 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (wlc->pub->up && (wlc_phy_chanspec_get(wlc->band->pi) != chspec)) { up 5565 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (wlc->pub->up && wlc->pub->associated) { up 5567 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c } else if (wlc->pub->up) { up 7399 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (wlc->pub->up && (bsscfg->type == BRCMS_TYPE_AP || up 7509 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (wlc->pub->up && (bsscfg->type == BRCMS_TYPE_AP || up 7594 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (wlc->pub->up) up 7871 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c if (wlc->pub->associated && wlc->pub->up) { up 346 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.h bool up; /* d11 hardware up and running */ up 391 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (!pi->sh->up) { up 731 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c pi->sh->up = newstate; up 1374 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c if (pi->sh->up) { up 2097 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c } else if (pi->hwpwrctrl && pi->sh->up) { up 476 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h bool up; up 152 drivers/net/wireless/broadcom/brcm80211/brcmsmac/pub.h bool up; /* interface up and running */ up 55 drivers/net/wireless/broadcom/brcm80211/brcmsmac/stf.c if (wlc->pub->up) { up 96 drivers/net/wireless/broadcom/brcm80211/brcmsmac/stf.c if (!wlc->pub->up) { up 1334 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 1755 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 2107 drivers/net/wireless/cisco/airo.c up(&priv->sem); up 2178 drivers/net/wireless/cisco/airo.c up(&priv->sem); up 2253 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 2257 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 2304 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 2714 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 2988 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 3048 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 3125 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 3130 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 3153 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 3599 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 3627 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 3826 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 3836 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 3849 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 4189 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 4263 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 4319 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 5469 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 5545 drivers/net/wireless/cisco/airo.c up(&apriv->sem); up 5649 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 5951 drivers/net/wireless/cisco/airo.c up(&local->sem); up 7252 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 7477 drivers/net/wireless/cisco/airo.c up(&ai->sem); up 7517 drivers/net/wireless/cisco/airo.c up(&local->sem); up 7714 drivers/net/wireless/cisco/airo.c up(&local->sem); up 7720 drivers/net/wireless/cisco/airo.c up(&local->sem); up 1799 drivers/net/wireless/intel/ipw2x00/ipw2200.c schedule_work(&priv->up); up 10663 drivers/net/wireless/intel/ipw2x00/ipw2200.c INIT_WORK(&priv->up, ipw_bg_up); up 11245 drivers/net/wireless/intel/ipw2x00/ipw2200.c container_of(work, struct ipw_priv, up); up 11813 drivers/net/wireless/intel/ipw2x00/ipw2200.c cancel_work_sync(&priv->up); up 11915 drivers/net/wireless/intel/ipw2x00/ipw2200.c schedule_work(&priv->up); up 1297 drivers/net/wireless/intel/ipw2x00/ipw2200.h struct work_struct up; up 1197 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c void qtnf_netdev_updown(struct net_device *ndev, bool up) up 1201 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c if (qtnf_cmd_send_updown_intf(vif, up)) up 1203 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c up ? "UP" : "DOWN", vif->mac->macid, vif->vifid); up 2345 drivers/net/wireless/quantenna/qtnfmac/commands.c int qtnf_cmd_send_updown_intf(struct qtnf_vif *vif, bool up) up 2358 drivers/net/wireless/quantenna/qtnfmac/commands.c cmd->if_up = !!up; up 59 drivers/net/wireless/quantenna/qtnfmac/commands.h bool up); up 153 drivers/net/wireless/quantenna/qtnfmac/core.h void qtnf_netdev_updown(struct net_device *ndev, bool up); up 1580 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c static int up, dn, m, n, wait_cnt; up 1668 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c up = 0; up 1681 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c up, dn, m, n, wait_cnt); up 1686 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c up++; up 1692 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c if (up >= n) { up 1695 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c up = 0; up 1702 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c up--; up 1705 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c if (up <= 0) up 1706 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c up = 0; up 1718 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c up = 0; up 1735 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c up = 0; up 1422 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c static s32 up, dn, m, n, wait_count; up 1448 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c up = 0; up 1466 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c up = 0; up 1485 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c up++; up 1491 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c if (up >= n) { up 1497 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c up = 0; up 1505 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c up--; up 1508 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c if (up <= 0) up 1509 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c up = 0; up 1529 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c up = 0; up 1554 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c up = 0; up 1784 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c static s32 up, dn, m, n, wait_count; up 1890 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c up = 0; up 1908 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c up, dn, m, n, wait_count); up 1913 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c up++; up 1919 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c if (up >= n) { up 1925 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c up = 0; up 1932 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c up--; up 1935 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c if (up <= 0) up 1936 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c up = 0; up 1956 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c up = 0; up 1981 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c up = 0; up 1702 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c static long up, dn, m, n, wait_count; up 1795 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c up = 0; up 1808 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c (int)up, (int)dn, (int)m, (int)n, (int)wait_count); up 1814 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c up++; up 1820 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c if (up >= n) { up 1826 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c up = 0; up 1834 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c up--; up 1837 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c if (up <= 0) up 1838 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c up = 0; up 1855 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c up = 0; up 1877 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c up = 0; up 365 drivers/net/wireless/realtek/rtw88/phy.c bool up; up 371 drivers/net/wireless/realtek/rtw88/phy.c up = igi > igi_history[0]; up 372 drivers/net/wireless/realtek/rtw88/phy.c igi_bitmap |= up; up 296 drivers/net/wireless/st/cw1200/pm.c up(&priv->scan.lock); up 318 drivers/net/wireless/st/cw1200/pm.c up(&priv->scan.lock); up 86 drivers/net/wireless/st/cw1200/scan.c up(&priv->scan.lock); up 101 drivers/net/wireless/st/cw1200/scan.c up(&priv->scan.lock); up 195 drivers/net/wireless/st/cw1200/scan.c up(&priv->scan.lock); up 297 drivers/net/wireless/st/cw1200/scan.c up(&priv->scan.lock); up 401 drivers/net/wireless/st/cw1200/scan.c up(&priv->scan.lock); up 461 drivers/net/wireless/st/cw1200/scan.c up(&priv->scan.lock); up 106 drivers/net/wireless/st/cw1200/sta.c up(&priv->scan.lock); up 435 drivers/net/wireless/st/cw1200/sta.c up(&priv->scan.lock); up 605 drivers/net/wireless/st/cw1200/sta.c up(&priv->scan.lock); up 984 drivers/net/wireless/st/cw1200/sta.c up(&priv->scan.lock); up 40 drivers/nfc/nfcsim.c bool up; up 190 drivers/nfc/nfcsim.c if (!dev->up) { up 208 drivers/nfc/nfcsim.c if (!dev->up) { up 252 drivers/nfc/nfcsim.c dev->up = on; up 264 drivers/nfc/nfcsim.c dev->up = true; up 294 drivers/nfc/nfcsim.c dev->up = true; up 426 drivers/nfc/nfcsim.c dev->up = false; up 795 drivers/nfc/st95hf/core.c up(&stcontext->exchange_lock); up 852 drivers/nfc/st95hf/core.c up(&stcontext->exchange_lock); up 865 drivers/nfc/st95hf/core.c up(&stcontext->exchange_lock); up 979 drivers/nfc/st95hf/core.c up(&stcontext->exchange_lock); up 294 drivers/ntb/test/ntb_tool.c int up; up 296 drivers/ntb/test/ntb_tool.c up = ntb_link_is_up(tc->ntb, &speed, &width); up 299 drivers/ntb/test/ntb_tool.c up ? "up" : "down", speed, width); up 44 drivers/parport/ieee1284.c up (&port->physport->ieee1284.irq); up 2674 drivers/pci/controller/pci-tegra.c bool up = false, active = false; up 2683 drivers/pci/controller/pci-tegra.c up = true; up 2692 drivers/pci/controller/pci-tegra.c if (up) up 2696 drivers/pci/controller/pci-tegra.c if (up) up 891 drivers/pci/switch/switchtec.c struct switchtec_ioctl_pff_port *up) up 898 drivers/pci/switch/switchtec.c if (copy_from_user(&p, up, sizeof(p))) up 931 drivers/pci/switch/switchtec.c if (copy_to_user(up, &p, sizeof(p))) up 938 drivers/pci/switch/switchtec.c struct switchtec_ioctl_pff_port *up) up 943 drivers/pci/switch/switchtec.c if (copy_from_user(&p, up, sizeof(p))) up 969 drivers/pci/switch/switchtec.c if (copy_to_user(up, &p, sizeof(p))) up 73 drivers/scsi/aha1542.h #define scsi2int(up) ( (((long)*(up)) << 16) + (((long)(up)[1]) << 8) + ((long)(up)[2]) ) up 75 drivers/scsi/aha1542.h #define xscsi2int(up) ( (((long)(up)[0]) << 24) + (((long)(up)[1]) << 16) \ up 76 drivers/scsi/aha1542.h + (((long)(up)[2]) << 8) + ((long)(up)[3]) ) up 85 drivers/scsi/aha1740.h #define any2scsi(up, p) \ up 86 drivers/scsi/aha1740.h (up)[0] = (((unsigned long)(p)) >> 16) ; \ up 87 drivers/scsi/aha1740.h (up)[1] = (((unsigned long)(p)) >> 8); \ up 88 drivers/scsi/aha1740.h (up)[2] = ((unsigned long)(p)); up 90 drivers/scsi/aha1740.h #define scsi2int(up) ( (((long)*(up)) << 16) + (((long)(up)[1]) << 8) + ((long)(up)[2]) ) up 92 drivers/scsi/aha1740.h #define xany2scsi(up, p) \ up 93 drivers/scsi/aha1740.h (up)[0] = ((long)(p)) >> 24; \ up 94 drivers/scsi/aha1740.h (up)[1] = ((long)(p)) >> 16; \ up 95 drivers/scsi/aha1740.h (up)[2] = ((long)(p)) >> 8; \ up 96 drivers/scsi/aha1740.h (up)[3] = ((long)(p)); up 98 drivers/scsi/aha1740.h #define xscsi2int(up) ( (((long)(up)[0]) << 24) + (((long)(up)[1]) << 16) \ up 99 drivers/scsi/aha1740.h + (((long)(up)[2]) << 8) + ((long)(up)[3]) ) up 1200 drivers/scsi/esas2r/esas2r_flash.c up(&a->nvram_semaphore); up 1206 drivers/scsi/esas2r/esas2r_flash.c up(&a->nvram_semaphore); up 1250 drivers/scsi/esas2r/esas2r_flash.c up(&a->nvram_semaphore); up 1277 drivers/scsi/esas2r/esas2r_flash.c up(&a->nvram_semaphore); up 1288 drivers/scsi/esas2r/esas2r_flash.c up(&a->nvram_semaphore); up 288 drivers/scsi/esas2r/esas2r_ioctl.c up(&buffered_ioctl_semaphore); up 2150 drivers/scsi/fcoe/fcoe.c u8 fup, up; up 2163 drivers/scsi/fcoe/fcoe.c up = dcb_ieee_getapp_mask(netdev, &app); up 2168 drivers/scsi/fcoe/fcoe.c up = dcb_getapp(netdev, &app); up 2173 drivers/scsi/fcoe/fcoe.c fcoe_prio = ffs(up) ? ffs(up) - 1 : 0; up 600 drivers/scsi/hisi_sas/hisi_sas_main.c up(&hisi_hba->sem); up 1074 drivers/scsi/hisi_sas/hisi_sas_main.c up(&hisi_hba->sem); up 1558 drivers/scsi/hisi_sas/hisi_sas_main.c up(&hisi_hba->sem); up 1589 drivers/scsi/hisi_sas/hisi_sas_main.c up(&hisi_hba->sem); up 605 drivers/scsi/megaraid/megaraid_mm.c up(&adp->kioc_semaphore); up 671 drivers/scsi/megaraid/megaraid_mm.c up(&adp->kioc_semaphore); up 8306 drivers/scsi/megaraid/megaraid_sas_base.c up(&instance->ioctl_sem); up 3086 drivers/scsi/scsi_debug.c u8 *up; up 3159 drivers/scsi/scsi_debug.c for (k = 0, up = lrdp + lrd_size; k < num_lrd; ++k, up += lrd_size) { up 3160 drivers/scsi/scsi_debug.c lba = get_unaligned_be64(up + 0); up 3161 drivers/scsi/scsi_debug.c num = get_unaligned_be32(up + 8); up 3172 drivers/scsi/scsi_debug.c ei_lba = is_16 ? 0 : get_unaligned_be32(up + 12); up 4114 drivers/scsi/smartpqi/smartpqi_init.c up(&ctrl_info->sync_request_sem); up 982 drivers/scsi/ufs/ufshcd.h bool up, enum ufs_notify_change_status status) up 985 drivers/scsi/ufs/ufshcd.h return hba->vops->clk_scale_notify(hba, up, status); up 276 drivers/staging/comedi/drivers/vmk80xx.c up(&devpriv->limit_sem); up 317 drivers/staging/comedi/drivers/vmk80xx.c up(&devpriv->limit_sem); up 346 drivers/staging/comedi/drivers/vmk80xx.c up(&devpriv->limit_sem); up 385 drivers/staging/comedi/drivers/vmk80xx.c up(&devpriv->limit_sem); up 429 drivers/staging/comedi/drivers/vmk80xx.c up(&devpriv->limit_sem); up 473 drivers/staging/comedi/drivers/vmk80xx.c up(&devpriv->limit_sem); up 510 drivers/staging/comedi/drivers/vmk80xx.c up(&devpriv->limit_sem); up 554 drivers/staging/comedi/drivers/vmk80xx.c up(&devpriv->limit_sem); up 587 drivers/staging/comedi/drivers/vmk80xx.c up(&devpriv->limit_sem); up 633 drivers/staging/comedi/drivers/vmk80xx.c up(&devpriv->limit_sem); up 707 drivers/staging/comedi/drivers/vmk80xx.c up(&devpriv->limit_sem); up 775 drivers/staging/comedi/drivers/vmk80xx.c up(&devpriv->limit_sem); up 834 drivers/staging/comedi/drivers/vmk80xx.c up(&devpriv->limit_sem); up 320 drivers/staging/exfat/exfat_cache.c up(&f_sem); up 439 drivers/staging/exfat/exfat_cache.c up(&f_sem); up 510 drivers/staging/exfat/exfat_cache.c up(&f_sem); up 529 drivers/staging/exfat/exfat_cache.c up(&f_sem); up 605 drivers/staging/exfat/exfat_cache.c up(&b_sem); up 623 drivers/staging/exfat/exfat_cache.c up(&b_sem); up 639 drivers/staging/exfat/exfat_cache.c up(&b_sem); up 655 drivers/staging/exfat/exfat_cache.c up(&b_sem); up 679 drivers/staging/exfat/exfat_cache.c up(&b_sem); up 704 drivers/staging/exfat/exfat_cache.c up(&b_sem); up 723 drivers/staging/exfat/exfat_cache.c up(&b_sem); up 445 drivers/staging/exfat/exfat_super.c up(&z_sem); up 484 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); up 485 drivers/staging/exfat/exfat_super.c up(&z_sem); up 517 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); up 538 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); up 639 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); up 680 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); up 804 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); up 1061 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); up 1194 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); up 1340 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); up 1402 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); up 1491 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); up 1644 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); up 1731 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); up 1885 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); up 1929 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); up 2128 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); up 2191 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); up 3990 drivers/staging/exfat/exfat_super.c up(&p_fs->v_sem); up 277 drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h u8 up; up 429 drivers/staging/fsl-dpaa2/ethsw/dpsw.c state->up = dpsw_get_field(rsp_params->up, UP); up 229 drivers/staging/fsl-dpaa2/ethsw/dpsw.h u8 up; up 458 drivers/staging/fsl-dpaa2/ethsw/ethsw.c WARN_ONCE(state.up > 1, "Garbage read into link_state"); up 460 drivers/staging/fsl-dpaa2/ethsw/ethsw.c if (state.up != port_priv->link_state) { up 461 drivers/staging/fsl-dpaa2/ethsw/ethsw.c if (state.up) up 465 drivers/staging/fsl-dpaa2/ethsw/ethsw.c port_priv->link_state = state.up; up 1431 drivers/staging/rtl8188eu/core/rtw_xmit.c struct sta_info *psta, int up, u8 *ac) up 1435 drivers/staging/rtl8188eu/core/rtw_xmit.c switch (up) { up 321 drivers/staging/rtl8188eu/include/rtw_xmit.h struct sta_info *psta, int up, u8 *ac); up 973 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c if (!priv->up) up 969 drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c if (!priv->up) up 994 drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c if (!priv->up) { up 1040 drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c if (priv->up) up 1167 drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c if (!priv->up) { up 1291 drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c if (priv->up) { up 1607 drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c if (priv->up) { up 740 drivers/staging/rtl8192e/rtl8192e/rtl_core.c priv->up = 1; up 779 drivers/staging/rtl8192e/rtl8192e/rtl_core.c if (priv->up == 0) up 789 drivers/staging/rtl8192e/rtl8192e/rtl_core.c priv->up = 0; up 1241 drivers/staging/rtl8192e/rtl8192e/rtl_core.c if (priv->up) { up 1247 drivers/staging/rtl8192e/rtl8192e/rtl_core.c priv->up = 0; up 1382 drivers/staging/rtl8192e/rtl8192e/rtl_core.c if (!priv->up || priv->bHwRadioOff) up 1606 drivers/staging/rtl8192e/rtl8192e/rtl_core.c if ((priv->rtllib->eRFPowerState == eRfOff) || !priv->up || up 1640 drivers/staging/rtl8192e/rtl8192e/rtl_core.c !priv->up || priv->bResetInProgress) { up 2171 drivers/staging/rtl8192e/rtl8192e/rtl_core.c if (priv->up == 1) up 2209 drivers/staging/rtl8192e/rtl8192e/rtl_core.c if (priv->up == 0) up 2584 drivers/staging/rtl8192e/rtl8192e/rtl_core.c if (!priv->up) { up 319 drivers/staging/rtl8192e/rtl8192e/rtl_core.h short up; up 335 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c if (!priv->up) { up 1178 drivers/staging/rtl8192e/rtl8192e/rtl_dm.c if (!priv->up) { up 400 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c if (!priv->up) up 472 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c if (!priv->up) up 674 drivers/staging/rtl8192e/rtl8192e/rtl_wx.c if (!priv->up) up 1076 drivers/staging/rtl8192e/rtllib.h #define UP2AC(up) ( \ up 1077 drivers/staging/rtl8192e/rtllib.h ((up) < 1) ? WME_AC_BE : \ up 1078 drivers/staging/rtl8192e/rtllib.h ((up) < 3) ? WME_AC_BK : \ up 1079 drivers/staging/rtl8192e/rtllib.h ((up) < 4) ? WME_AC_BE : \ up 1080 drivers/staging/rtl8192e/rtllib.h ((up) < 6) ? WME_AC_VI : \ up 1290 drivers/staging/rtl8192u/ieee80211/ieee80211.h #define UP2AC(up) ( \ up 1291 drivers/staging/rtl8192u/ieee80211/ieee80211.h ((up) < 1) ? WME_AC_BE : \ up 1292 drivers/staging/rtl8192u/ieee80211/ieee80211.h ((up) < 3) ? WME_AC_BK : \ up 1293 drivers/staging/rtl8192u/ieee80211/ieee80211.h ((up) < 4) ? WME_AC_BE : \ up 1294 drivers/staging/rtl8192u/ieee80211/ieee80211.h ((up) < 6) ? WME_AC_VI : \ up 848 drivers/staging/rtl8192u/r8192U.h short up; up 848 drivers/staging/rtl8192u/r8192U_core.c if (!priv->up) up 3156 drivers/staging/rtl8192u/r8192U_core.c if (priv->up == 0) { up 3163 drivers/staging/rtl8192u/r8192U_core.c priv->up = 0; up 3282 drivers/staging/rtl8192u/r8192U_core.c if (!priv->up) up 3355 drivers/staging/rtl8192u/r8192U_core.c priv->up = 1; up 3362 drivers/staging/rtl8192u/r8192U_core.c priv->up = priv->ieee80211->ieee_up = 0; up 3396 drivers/staging/rtl8192u/r8192U_core.c if (priv->up == 1) up 3422 drivers/staging/rtl8192u/r8192U_core.c if (priv->up == 0) up 3425 drivers/staging/rtl8192u/r8192U_core.c priv->up = 0; up 3465 drivers/staging/rtl8192u/r8192U_core.c if (priv->up == 0) up 3467 drivers/staging/rtl8192u/r8192U_core.c priv->up = 0; up 292 drivers/staging/rtl8192u/r8192U_dm.c if (!priv->up) { up 1492 drivers/staging/rtl8192u/r8192U_dm.c if (!priv->up) { up 327 drivers/staging/rtl8192u/r8192U_wx.c if (!priv->up) up 361 drivers/staging/rtl8192u/r8192U_wx.c if (!priv->up) up 515 drivers/staging/rtl8192u/r8192U_wx.c if (!priv->up) up 1367 drivers/staging/rtl8192u/r819xU_phy.c if (!priv->up) up 1407 drivers/staging/rtl8192u/r819xU_phy.c if (!priv->up) up 1445 drivers/staging/rtl8192u/r819xU_phy.c if (priv->up) up 1636 drivers/staging/rtl8192u/r819xU_phy.c if (priv->up) up 856 drivers/staging/rtl8712/rtl871x_xmit.c struct sta_info *psta, sint up) up 862 drivers/staging/rtl8712/rtl871x_xmit.c switch (up) { up 2039 drivers/staging/rtl8723bs/core/rtw_xmit.c struct tx_servq *rtw_get_sta_pending(struct adapter *padapter, struct sta_info *psta, sint up, u8 *ac) up 2043 drivers/staging/rtl8723bs/core/rtw_xmit.c switch (up) { up 1758 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c static s32 up, dn, m, n, WaitCount; up 1782 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c up = 0; up 1803 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c up = 0; up 1824 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c up++; up 1830 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c if (up >= n) { /* if 連續 n 個2秒 retry count為0, 則調寬WiFi duration */ up 1833 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c up = 0; up 1843 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c up--; up 1846 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c if (up <= 0) up 1847 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c up = 0; up 1859 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c up = 0; up 1875 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c up = 0; up 1597 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c static s32 up, dn, m, n, WaitCount; up 1650 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c up = 0; up 1665 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c up, dn, m, n, WaitCount up 1672 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c up++; up 1678 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c if (up >= n) { /* if 連續 n 個2秒 retry count為0, 則調寬WiFi duration */ up 1681 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c up = 0; up 1687 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c up--; up 1690 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c if (up <= 0) up 1691 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c up = 0; up 1703 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c up = 0; up 1719 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c up = 0; up 470 drivers/staging/rtl8723bs/include/rtw_xmit.h struct tx_servq *rtw_get_sta_pending(struct adapter *padapter, struct sta_info *psta, sint up, u8 *ac); up 2219 drivers/staging/speakup/main.c int up = !param->down; up 2252 drivers/staging/speakup/main.c if (speakup_key(vc, param->shift, keycode, param->value, up)) up 2255 drivers/staging/speakup/main.c ret = pre_handle_cursor(vc, KVAL(param->value), up); up 2263 drivers/staging/speakup/main.c do_handle_shift(vc, val, up); up 2267 drivers/staging/speakup/main.c do_handle_latin(vc, val, up); up 2270 drivers/staging/speakup/main.c do_handle_cursor(vc, val, up); up 2273 drivers/staging/speakup/main.c do_handle_spec(vc, val, up); up 535 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c up(&g_free_fragments_mutex); up 597 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c up(&g_free_fragments_mutex); up 598 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c up(&g_free_fragments_sema); up 232 drivers/target/iscsi/iscsi_target.c up(&tpg->np_login_sem); up 253 drivers/target/iscsi/iscsi_target.c up(&tpg->np_login_sem); up 432 drivers/target/target_core_sbc.c up(&dev->caw_sem); up 583 drivers/target/target_core_sbc.c up(&dev->caw_sem); up 616 drivers/target/target_core_sbc.c up(&dev->caw_sem); up 275 drivers/tee/tee_core.c struct tee_ioctl_param __user *up = uparams + n; up 281 drivers/tee/tee_core.c if (put_user(p->u.value.a, &up->a) || up 282 drivers/tee/tee_core.c put_user(p->u.value.b, &up->b) || up 283 drivers/tee/tee_core.c put_user(p->u.value.c, &up->c)) up 288 drivers/tee/tee_core.c if (put_user((u64)p->u.memref.size, &up->b)) up 94 drivers/thunderbolt/lc.c struct tb_port *up, *down; up 100 drivers/thunderbolt/lc.c up = tb_upstream_port(sw); up 109 drivers/thunderbolt/lc.c ret = tb_lc_configure_lane(up, true); up 125 drivers/thunderbolt/lc.c struct tb_port *up, *down; up 130 drivers/thunderbolt/lc.c up = tb_upstream_port(sw); up 133 drivers/thunderbolt/lc.c tb_lc_configure_lane(up, false); up 401 drivers/thunderbolt/tb.c struct tb_port *up, *down, *port; up 406 drivers/thunderbolt/tb.c up = tb_find_port(sw, TB_TYPE_PCIE_UP); up 407 drivers/thunderbolt/tb.c if (!up) up 420 drivers/thunderbolt/tb.c tunnel = tb_tunnel_alloc_pci(tb, up, down); up 425 drivers/thunderbolt/tb.c tb_port_info(up, up 193 drivers/thunderbolt/tunnel.c struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up, up 205 drivers/thunderbolt/tunnel.c tunnel->dst_port = up; up 207 drivers/thunderbolt/tunnel.c path = tb_path_alloc(tb, down, TB_PCI_HOPID, up, TB_PCI_HOPID, 0, up 216 drivers/thunderbolt/tunnel.c path = tb_path_alloc(tb, up, TB_PCI_HOPID, down, TB_PCI_HOPID, 0, up 46 drivers/thunderbolt/tunnel.h struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up, up 111 drivers/tty/serial/8250/8250.h static inline int serial_in(struct uart_8250_port *up, int offset) up 113 drivers/tty/serial/8250/8250.h return up->port.serial_in(&up->port, offset); up 116 drivers/tty/serial/8250/8250.h static inline void serial_out(struct uart_8250_port *up, int offset, int value) up 118 drivers/tty/serial/8250/8250.h up->port.serial_out(&up->port, offset, value); up 123 drivers/tty/serial/8250/8250.h static inline int serial_dl_read(struct uart_8250_port *up) up 125 drivers/tty/serial/8250/8250.h return up->dl_read(up); up 128 drivers/tty/serial/8250/8250.h static inline void serial_dl_write(struct uart_8250_port *up, int value) up 130 drivers/tty/serial/8250/8250.h up->dl_write(up, value); up 133 drivers/tty/serial/8250/8250.h static inline bool serial8250_set_THRI(struct uart_8250_port *up) up 135 drivers/tty/serial/8250/8250.h if (up->ier & UART_IER_THRI) up 137 drivers/tty/serial/8250/8250.h up->ier |= UART_IER_THRI; up 138 drivers/tty/serial/8250/8250.h serial_out(up, UART_IER, up->ier); up 142 drivers/tty/serial/8250/8250.h static inline bool serial8250_clear_THRI(struct uart_8250_port *up) up 144 drivers/tty/serial/8250/8250.h if (!(up->ier & UART_IER_THRI)) up 146 drivers/tty/serial/8250/8250.h up->ier &= ~UART_IER_THRI; up 147 drivers/tty/serial/8250/8250.h serial_out(up, UART_IER, up->ier); up 216 drivers/tty/serial/8250/8250.h static inline void serial8250_out_MCR(struct uart_8250_port *up, int value) up 218 drivers/tty/serial/8250/8250.h serial_out(up, UART_MCR, value); up 220 drivers/tty/serial/8250/8250.h if (up->gpios) up 221 drivers/tty/serial/8250/8250.h mctrl_gpio_set(up->gpios, serial8250_MCR_to_TIOCM(value)); up 224 drivers/tty/serial/8250/8250.h static inline int serial8250_in_MCR(struct uart_8250_port *up) up 228 drivers/tty/serial/8250/8250.h mctrl = serial_in(up, UART_MCR); up 230 drivers/tty/serial/8250/8250.h if (up->gpios) { up 233 drivers/tty/serial/8250/8250.h mctrl_gpio = mctrl_gpio_get_outputs(up->gpios, &mctrl_gpio); up 325 drivers/tty/serial/8250/8250.h static inline int ns16550a_goto_highspeed(struct uart_8250_port *up) up 329 drivers/tty/serial/8250/8250.h status = serial_in(up, 0x04); /* EXCR2 */ up 337 drivers/tty/serial/8250/8250.h serial_out(up, 0x04, status); up 197 drivers/tty/serial/8250/8250_aspeed_vuart.c static void __aspeed_vuart_set_throttle(struct uart_8250_port *up, up 202 drivers/tty/serial/8250/8250_aspeed_vuart.c up->ier &= ~irqs; up 204 drivers/tty/serial/8250/8250_aspeed_vuart.c up->ier |= irqs; up 205 drivers/tty/serial/8250/8250_aspeed_vuart.c serial_out(up, UART_IER, up->ier); up 209 drivers/tty/serial/8250/8250_aspeed_vuart.c struct uart_8250_port *up = up_to_u8250p(port); up 213 drivers/tty/serial/8250/8250_aspeed_vuart.c __aspeed_vuart_set_throttle(up, throttle); up 230 drivers/tty/serial/8250/8250_aspeed_vuart.c struct uart_8250_port *up = vuart->port; up 232 drivers/tty/serial/8250/8250_aspeed_vuart.c if (!tty_buffer_space_avail(&up->port.state->port)) { up 238 drivers/tty/serial/8250/8250_aspeed_vuart.c aspeed_vuart_unthrottle(&up->port); up 254 drivers/tty/serial/8250/8250_aspeed_vuart.c struct uart_8250_port *up = up_to_u8250p(port); up 274 drivers/tty/serial/8250/8250_aspeed_vuart.c __aspeed_vuart_set_throttle(up, true); up 277 drivers/tty/serial/8250/8250_aspeed_vuart.c vuart->port = up; up 286 drivers/tty/serial/8250/8250_aspeed_vuart.c serial8250_read_char(up, lsr); up 287 drivers/tty/serial/8250/8250_aspeed_vuart.c lsr = serial_in(up, UART_LSR); up 296 drivers/tty/serial/8250/8250_aspeed_vuart.c serial8250_modem_status(up); up 298 drivers/tty/serial/8250/8250_aspeed_vuart.c serial8250_tx_chars(up); up 120 drivers/tty/serial/8250/8250_core.c struct uart_8250_port *up; up 123 drivers/tty/serial/8250/8250_core.c up = list_entry(l, struct uart_8250_port, list); up 124 drivers/tty/serial/8250/8250_core.c port = &up->port; up 152 drivers/tty/serial/8250/8250_core.c static void serial_do_unlink(struct irq_info *i, struct uart_8250_port *up) up 157 drivers/tty/serial/8250/8250_core.c if (i->head == &up->list) up 159 drivers/tty/serial/8250/8250_core.c list_del(&up->list); up 161 drivers/tty/serial/8250/8250_core.c BUG_ON(i->head != &up->list); up 172 drivers/tty/serial/8250/8250_core.c static int serial_link_irq_chain(struct uart_8250_port *up) up 181 drivers/tty/serial/8250/8250_core.c h = &irq_lists[up->port.irq % NR_IRQ_HASH]; up 185 drivers/tty/serial/8250/8250_core.c if (i->irq == up->port.irq) up 196 drivers/tty/serial/8250/8250_core.c i->irq = up->port.irq; up 204 drivers/tty/serial/8250/8250_core.c list_add(&up->list, i->head); up 209 drivers/tty/serial/8250/8250_core.c INIT_LIST_HEAD(&up->list); up 210 drivers/tty/serial/8250/8250_core.c i->head = &up->list; up 212 drivers/tty/serial/8250/8250_core.c ret = request_irq(up->port.irq, serial8250_interrupt, up 213 drivers/tty/serial/8250/8250_core.c up->port.irqflags, up->port.name, i); up 215 drivers/tty/serial/8250/8250_core.c serial_do_unlink(i, up); up 221 drivers/tty/serial/8250/8250_core.c static void serial_unlink_irq_chain(struct uart_8250_port *up) up 233 drivers/tty/serial/8250/8250_core.c h = &irq_lists[up->port.irq % NR_IRQ_HASH]; up 237 drivers/tty/serial/8250/8250_core.c if (i->irq == up->port.irq) up 245 drivers/tty/serial/8250/8250_core.c free_irq(up->port.irq, i); up 247 drivers/tty/serial/8250/8250_core.c serial_do_unlink(i, up); up 259 drivers/tty/serial/8250/8250_core.c struct uart_8250_port *up = from_timer(up, t, timer); up 261 drivers/tty/serial/8250/8250_core.c up->port.handle_irq(&up->port); up 262 drivers/tty/serial/8250/8250_core.c mod_timer(&up->timer, jiffies + uart_poll_timeout(&up->port)); up 267 drivers/tty/serial/8250/8250_core.c struct uart_8250_port *up = from_timer(up, t, timer); up 271 drivers/tty/serial/8250/8250_core.c spin_lock_irqsave(&up->port.lock, flags); up 277 drivers/tty/serial/8250/8250_core.c if (up->port.irq) { up 278 drivers/tty/serial/8250/8250_core.c ier = serial_in(up, UART_IER); up 279 drivers/tty/serial/8250/8250_core.c serial_out(up, UART_IER, 0); up 282 drivers/tty/serial/8250/8250_core.c iir = serial_in(up, UART_IIR); up 290 drivers/tty/serial/8250/8250_core.c lsr = serial_in(up, UART_LSR); up 291 drivers/tty/serial/8250/8250_core.c up->lsr_saved_flags |= lsr & LSR_SAVE_FLAGS; up 292 drivers/tty/serial/8250/8250_core.c if ((iir & UART_IIR_NO_INT) && (up->ier & UART_IER_THRI) && up 293 drivers/tty/serial/8250/8250_core.c (!uart_circ_empty(&up->port.state->xmit) || up->port.x_char) && up 300 drivers/tty/serial/8250/8250_core.c serial8250_tx_chars(up); up 302 drivers/tty/serial/8250/8250_core.c if (up->port.irq) up 303 drivers/tty/serial/8250/8250_core.c serial_out(up, UART_IER, ier); up 305 drivers/tty/serial/8250/8250_core.c spin_unlock_irqrestore(&up->port.lock, flags); up 308 drivers/tty/serial/8250/8250_core.c mod_timer(&up->timer, up 309 drivers/tty/serial/8250/8250_core.c jiffies + uart_poll_timeout(&up->port) + HZ / 5); up 312 drivers/tty/serial/8250/8250_core.c static int univ8250_setup_irq(struct uart_8250_port *up) up 314 drivers/tty/serial/8250/8250_core.c struct uart_port *port = &up->port; up 321 drivers/tty/serial/8250/8250_core.c if (up->bugs & UART_BUG_THRE) { up 324 drivers/tty/serial/8250/8250_core.c up->timer.function = serial8250_backup_timeout; up 325 drivers/tty/serial/8250/8250_core.c mod_timer(&up->timer, jiffies + up 335 drivers/tty/serial/8250/8250_core.c mod_timer(&up->timer, jiffies + uart_poll_timeout(port)); up 337 drivers/tty/serial/8250/8250_core.c retval = serial_link_irq_chain(up); up 342 drivers/tty/serial/8250/8250_core.c static void univ8250_release_irq(struct uart_8250_port *up) up 344 drivers/tty/serial/8250/8250_core.c struct uart_port *port = &up->port; up 346 drivers/tty/serial/8250/8250_core.c del_timer_sync(&up->timer); up 347 drivers/tty/serial/8250/8250_core.c up->timer.function = serial8250_timeout; up 349 drivers/tty/serial/8250/8250_core.c serial_unlink_irq_chain(up); up 353 drivers/tty/serial/8250/8250_core.c static int serial8250_request_rsa_resource(struct uart_8250_port *up) up 355 drivers/tty/serial/8250/8250_core.c unsigned long start = UART_RSA_BASE << up->port.regshift; up 356 drivers/tty/serial/8250/8250_core.c unsigned int size = 8 << up->port.regshift; up 357 drivers/tty/serial/8250/8250_core.c struct uart_port *port = &up->port; up 374 drivers/tty/serial/8250/8250_core.c static void serial8250_release_rsa_resource(struct uart_8250_port *up) up 376 drivers/tty/serial/8250/8250_core.c unsigned long offset = UART_RSA_BASE << up->port.regshift; up 377 drivers/tty/serial/8250/8250_core.c unsigned int size = 8 << up->port.regshift; up 378 drivers/tty/serial/8250/8250_core.c struct uart_port *port = &up->port; up 417 drivers/tty/serial/8250/8250_core.c static void (*serial8250_isa_config)(int port, struct uart_port *up, up 421 drivers/tty/serial/8250/8250_core.c void (*v)(int port, struct uart_port *up, u32 *capabilities)) up 431 drivers/tty/serial/8250/8250_core.c struct uart_8250_port *up = up_to_u8250p(port); up 433 drivers/tty/serial/8250/8250_core.c up->probe &= ~UART_PROBE_RSA; up 435 drivers/tty/serial/8250/8250_core.c if (serial8250_request_rsa_resource(up) == 0) up 436 drivers/tty/serial/8250/8250_core.c up->probe |= UART_PROBE_RSA; up 441 drivers/tty/serial/8250/8250_core.c if (probe_rsa[i] == up->port.iobase) { up 442 drivers/tty/serial/8250/8250_core.c if (serial8250_request_rsa_resource(up) == 0) up 443 drivers/tty/serial/8250/8250_core.c up->probe |= UART_PROBE_RSA; up 451 drivers/tty/serial/8250/8250_core.c if (port->type != PORT_RSA && up->probe & UART_PROBE_RSA) up 452 drivers/tty/serial/8250/8250_core.c serial8250_release_rsa_resource(up); up 457 drivers/tty/serial/8250/8250_core.c struct uart_8250_port *up = up_to_u8250p(port); up 462 drivers/tty/serial/8250/8250_core.c ret = serial8250_request_rsa_resource(up); up 472 drivers/tty/serial/8250/8250_core.c struct uart_8250_port *up = up_to_u8250p(port); up 475 drivers/tty/serial/8250/8250_core.c serial8250_release_rsa_resource(up); up 490 drivers/tty/serial/8250/8250_core.c static inline void serial8250_apply_quirks(struct uart_8250_port *up) up 492 drivers/tty/serial/8250/8250_core.c up->port.quirks |= skip_txen_test ? UPQ_NO_TXEN_TEST : 0; up 497 drivers/tty/serial/8250/8250_core.c struct uart_8250_port *up; up 509 drivers/tty/serial/8250/8250_core.c struct uart_8250_port *up = &serial8250_ports[i]; up 510 drivers/tty/serial/8250/8250_core.c struct uart_port *port = &up->port; up 513 drivers/tty/serial/8250/8250_core.c serial8250_init_port(up); up 518 drivers/tty/serial/8250/8250_core.c timer_setup(&up->timer, serial8250_timeout, 0); up 520 drivers/tty/serial/8250/8250_core.c up->ops = &univ8250_driver_ops; up 525 drivers/tty/serial/8250/8250_core.c up->mcr_mask = ~ALPHA_KLUDGE_MCR; up 526 drivers/tty/serial/8250/8250_core.c up->mcr_force = ALPHA_KLUDGE_MCR; up 536 drivers/tty/serial/8250/8250_core.c for (i = 0, up = serial8250_ports; up 538 drivers/tty/serial/8250/8250_core.c i++, up++) { up 539 drivers/tty/serial/8250/8250_core.c struct uart_port *port = &up->port; up 550 drivers/tty/serial/8250/8250_core.c serial8250_set_defaults(up); up 554 drivers/tty/serial/8250/8250_core.c serial8250_isa_config(i, &up->port, &up->capabilities); up 564 drivers/tty/serial/8250/8250_core.c struct uart_8250_port *up = &serial8250_ports[i]; up 566 drivers/tty/serial/8250/8250_core.c if (up->port.type == PORT_8250_CIR) up 569 drivers/tty/serial/8250/8250_core.c if (up->port.dev) up 572 drivers/tty/serial/8250/8250_core.c up->port.dev = dev; up 574 drivers/tty/serial/8250/8250_core.c serial8250_apply_quirks(up); up 575 drivers/tty/serial/8250/8250_core.c uart_add_one_port(drv, &up->port); up 584 drivers/tty/serial/8250/8250_core.c struct uart_8250_port *up = &serial8250_ports[co->index]; up 586 drivers/tty/serial/8250/8250_core.c serial8250_console_write(up, s, count); up 750 drivers/tty/serial/8250/8250_core.c struct uart_8250_port *up = &serial8250_ports[line]; up 751 drivers/tty/serial/8250/8250_core.c struct uart_port *port = &up->port; up 756 drivers/tty/serial/8250/8250_core.c serial_out(up, UART_SCR, canary); up 757 drivers/tty/serial/8250/8250_core.c if (serial_in(up, UART_SCR) == canary) up 758 drivers/tty/serial/8250/8250_core.c up->canary = canary; up 773 drivers/tty/serial/8250/8250_core.c struct uart_8250_port *up = &serial8250_ports[line]; up 774 drivers/tty/serial/8250/8250_core.c struct uart_port *port = &up->port; up 776 drivers/tty/serial/8250/8250_core.c up->canary = 0; up 778 drivers/tty/serial/8250/8250_core.c if (up->capabilities & UART_NATSEMI) { up 782 drivers/tty/serial/8250/8250_core.c ns16550a_goto_highspeed(up); up 849 drivers/tty/serial/8250/8250_core.c struct uart_8250_port *up = &serial8250_ports[i]; up 851 drivers/tty/serial/8250/8250_core.c if (up->port.dev == &dev->dev) up 862 drivers/tty/serial/8250/8250_core.c struct uart_8250_port *up = &serial8250_ports[i]; up 864 drivers/tty/serial/8250/8250_core.c if (up->port.type != PORT_UNKNOWN && up->port.dev == &dev->dev) up 865 drivers/tty/serial/8250/8250_core.c uart_suspend_port(&serial8250_reg, &up->port); up 876 drivers/tty/serial/8250/8250_core.c struct uart_8250_port *up = &serial8250_ports[i]; up 878 drivers/tty/serial/8250/8250_core.c if (up->port.type != PORT_UNKNOWN && up->port.dev == &dev->dev) up 947 drivers/tty/serial/8250/8250_core.c struct uart_8250_port *up = up 950 drivers/tty/serial/8250/8250_core.c struct uart_port *port = &up->port; up 954 drivers/tty/serial/8250/8250_core.c up->ier |= UART_IER_RLSI | UART_IER_RDI; up 955 drivers/tty/serial/8250/8250_core.c up->port.read_status_mask |= UART_LSR_DR; up 956 drivers/tty/serial/8250/8250_core.c serial_out(up, UART_IER, up->ier); up 973 drivers/tty/serial/8250/8250_core.c int serial8250_register_8250_port(struct uart_8250_port *up) up 978 drivers/tty/serial/8250/8250_core.c if (up->port.uartclk == 0) up 983 drivers/tty/serial/8250/8250_core.c uart = serial8250_find_match_or_unused(&up->port); up 990 drivers/tty/serial/8250/8250_core.c uart->port.iobase = up->port.iobase; up 991 drivers/tty/serial/8250/8250_core.c uart->port.membase = up->port.membase; up 992 drivers/tty/serial/8250/8250_core.c uart->port.irq = up->port.irq; up 993 drivers/tty/serial/8250/8250_core.c uart->port.irqflags = up->port.irqflags; up 994 drivers/tty/serial/8250/8250_core.c uart->port.uartclk = up->port.uartclk; up 995 drivers/tty/serial/8250/8250_core.c uart->port.fifosize = up->port.fifosize; up 996 drivers/tty/serial/8250/8250_core.c uart->port.regshift = up->port.regshift; up 997 drivers/tty/serial/8250/8250_core.c uart->port.iotype = up->port.iotype; up 998 drivers/tty/serial/8250/8250_core.c uart->port.flags = up->port.flags | UPF_BOOT_AUTOCONF; up 999 drivers/tty/serial/8250/8250_core.c uart->bugs = up->bugs; up 1000 drivers/tty/serial/8250/8250_core.c uart->port.mapbase = up->port.mapbase; up 1001 drivers/tty/serial/8250/8250_core.c uart->port.mapsize = up->port.mapsize; up 1002 drivers/tty/serial/8250/8250_core.c uart->port.private_data = up->port.private_data; up 1003 drivers/tty/serial/8250/8250_core.c uart->tx_loadsz = up->tx_loadsz; up 1004 drivers/tty/serial/8250/8250_core.c uart->capabilities = up->capabilities; up 1005 drivers/tty/serial/8250/8250_core.c uart->port.throttle = up->port.throttle; up 1006 drivers/tty/serial/8250/8250_core.c uart->port.unthrottle = up->port.unthrottle; up 1007 drivers/tty/serial/8250/8250_core.c uart->port.rs485_config = up->port.rs485_config; up 1008 drivers/tty/serial/8250/8250_core.c uart->port.rs485 = up->port.rs485; up 1009 drivers/tty/serial/8250/8250_core.c uart->dma = up->dma; up 1015 drivers/tty/serial/8250/8250_core.c if (up->port.dev) up 1016 drivers/tty/serial/8250/8250_core.c uart->port.dev = up->port.dev; up 1018 drivers/tty/serial/8250/8250_core.c if (up->port.flags & UPF_FIXED_TYPE) up 1019 drivers/tty/serial/8250/8250_core.c uart->port.type = up->port.type; up 1038 drivers/tty/serial/8250/8250_core.c if (up->port.serial_in) up 1039 drivers/tty/serial/8250/8250_core.c uart->port.serial_in = up->port.serial_in; up 1040 drivers/tty/serial/8250/8250_core.c if (up->port.serial_out) up 1041 drivers/tty/serial/8250/8250_core.c uart->port.serial_out = up->port.serial_out; up 1042 drivers/tty/serial/8250/8250_core.c if (up->port.handle_irq) up 1043 drivers/tty/serial/8250/8250_core.c uart->port.handle_irq = up->port.handle_irq; up 1045 drivers/tty/serial/8250/8250_core.c if (up->port.set_termios) up 1046 drivers/tty/serial/8250/8250_core.c uart->port.set_termios = up->port.set_termios; up 1047 drivers/tty/serial/8250/8250_core.c if (up->port.set_ldisc) up 1048 drivers/tty/serial/8250/8250_core.c uart->port.set_ldisc = up->port.set_ldisc; up 1049 drivers/tty/serial/8250/8250_core.c if (up->port.get_mctrl) up 1050 drivers/tty/serial/8250/8250_core.c uart->port.get_mctrl = up->port.get_mctrl; up 1051 drivers/tty/serial/8250/8250_core.c if (up->port.set_mctrl) up 1052 drivers/tty/serial/8250/8250_core.c uart->port.set_mctrl = up->port.set_mctrl; up 1053 drivers/tty/serial/8250/8250_core.c if (up->port.get_divisor) up 1054 drivers/tty/serial/8250/8250_core.c uart->port.get_divisor = up->port.get_divisor; up 1055 drivers/tty/serial/8250/8250_core.c if (up->port.set_divisor) up 1056 drivers/tty/serial/8250/8250_core.c uart->port.set_divisor = up->port.set_divisor; up 1057 drivers/tty/serial/8250/8250_core.c if (up->port.startup) up 1058 drivers/tty/serial/8250/8250_core.c uart->port.startup = up->port.startup; up 1059 drivers/tty/serial/8250/8250_core.c if (up->port.shutdown) up 1060 drivers/tty/serial/8250/8250_core.c uart->port.shutdown = up->port.shutdown; up 1061 drivers/tty/serial/8250/8250_core.c if (up->port.pm) up 1062 drivers/tty/serial/8250/8250_core.c uart->port.pm = up->port.pm; up 1063 drivers/tty/serial/8250/8250_core.c if (up->port.handle_break) up 1064 drivers/tty/serial/8250/8250_core.c uart->port.handle_break = up->port.handle_break; up 1065 drivers/tty/serial/8250/8250_core.c if (up->dl_read) up 1066 drivers/tty/serial/8250/8250_core.c uart->dl_read = up->dl_read; up 1067 drivers/tty/serial/8250/8250_core.c if (up->dl_write) up 1068 drivers/tty/serial/8250/8250_core.c uart->dl_write = up->dl_write; up 1091 drivers/tty/serial/8250/8250_core.c if (up->overrun_backoff_time_ms > 0) { up 1093 drivers/tty/serial/8250/8250_core.c up->overrun_backoff_time_ms; up 72 drivers/tty/serial/8250/8250_dw.c struct uart_8250_port *up = up_to_u8250p(p); up 74 drivers/tty/serial/8250/8250_dw.c serial8250_clear_and_reinit_fifos(up); up 224 drivers/tty/serial/8250/8250_dw.c struct uart_8250_port *up = up_to_u8250p(p); up 240 drivers/tty/serial/8250/8250_dw.c if (!up->dma && ((iir & 0x3f) == UART_IIR_RX_TIMEOUT)) { up 309 drivers/tty/serial/8250/8250_dw.c struct uart_8250_port *up = up_to_u8250p(p); up 312 drivers/tty/serial/8250/8250_dw.c if (up->capabilities & UART_CAP_IRDA) { up 387 drivers/tty/serial/8250/8250_dw.c struct uart_8250_port uart = {}, *up = &uart; up 389 drivers/tty/serial/8250/8250_dw.c struct uart_port *p = &up->port; up 527 drivers/tty/serial/8250/8250_dw.c up->dma = &data->data.dma; up 530 drivers/tty/serial/8250/8250_dw.c data->data.line = serial8250_register_8250_port(up); up 82 drivers/tty/serial/8250/8250_dwlib.c struct uart_8250_port *up = up_to_u8250p(p); up 117 drivers/tty/serial/8250/8250_dwlib.c up->capabilities = UART_CAP_FIFO; up 121 drivers/tty/serial/8250/8250_dwlib.c up->capabilities |= UART_CAP_AFE; up 124 drivers/tty/serial/8250/8250_dwlib.c up->capabilities |= UART_CAP_IRDA; up 68 drivers/tty/serial/8250/8250_em.c static int serial8250_em_serial_dl_read(struct uart_8250_port *up) up 70 drivers/tty/serial/8250/8250_em.c return serial_in(up, UART_DLL_EM) | serial_in(up, UART_DLM_EM) << 8; up 73 drivers/tty/serial/8250/8250_em.c static void serial8250_em_serial_dl_write(struct uart_8250_port *up, int value) up 75 drivers/tty/serial/8250/8250_em.c serial_out(up, UART_DLL_EM, value & 0xff); up 76 drivers/tty/serial/8250/8250_em.c serial_out(up, UART_DLM_EM, value >> 8 & 0xff); up 84 drivers/tty/serial/8250/8250_em.c struct uart_8250_port up; up 102 drivers/tty/serial/8250/8250_em.c memset(&up, 0, sizeof(up)); up 103 drivers/tty/serial/8250/8250_em.c up.port.mapbase = regs->start; up 104 drivers/tty/serial/8250/8250_em.c up.port.irq = irq->start; up 105 drivers/tty/serial/8250/8250_em.c up.port.type = PORT_UNKNOWN; up 106 drivers/tty/serial/8250/8250_em.c up.port.flags = UPF_BOOT_AUTOCONF | UPF_FIXED_PORT | UPF_IOREMAP; up 107 drivers/tty/serial/8250/8250_em.c up.port.dev = &pdev->dev; up 108 drivers/tty/serial/8250/8250_em.c up.port.private_data = priv; up 111 drivers/tty/serial/8250/8250_em.c up.port.uartclk = clk_get_rate(priv->sclk); up 113 drivers/tty/serial/8250/8250_em.c up.port.iotype = UPIO_MEM32; up 114 drivers/tty/serial/8250/8250_em.c up.port.serial_in = serial8250_em_serial_in; up 115 drivers/tty/serial/8250/8250_em.c up.port.serial_out = serial8250_em_serial_out; up 116 drivers/tty/serial/8250/8250_em.c up.dl_read = serial8250_em_serial_dl_read; up 117 drivers/tty/serial/8250/8250_em.c up.dl_write = serial8250_em_serial_dl_write; up 119 drivers/tty/serial/8250/8250_em.c ret = serial8250_register_8250_port(&up); up 181 drivers/tty/serial/8250/8250_exar.c struct uart_8250_port *up = up_to_u8250p(port); up 186 drivers/tty/serial/8250/8250_exar.c lsr = serial_in(up, UART_LSR); up 32 drivers/tty/serial/8250/8250_fsl.c struct uart_8250_port *up = up_to_u8250p(port); up 34 drivers/tty/serial/8250/8250_fsl.c spin_lock_irqsave(&up->port.lock, flags); up 38 drivers/tty/serial/8250/8250_fsl.c spin_unlock_irqrestore(&up->port.lock, flags); up 43 drivers/tty/serial/8250/8250_fsl.c if (unlikely(up->lsr_saved_flags & UART_LSR_BI)) { up 44 drivers/tty/serial/8250/8250_fsl.c up->lsr_saved_flags &= ~UART_LSR_BI; up 46 drivers/tty/serial/8250/8250_fsl.c spin_unlock_irqrestore(&up->port.lock, flags); up 50 drivers/tty/serial/8250/8250_fsl.c lsr = orig_lsr = up->port.serial_in(&up->port, UART_LSR); up 54 drivers/tty/serial/8250/8250_fsl.c (up->ier & (UART_IER_RLSI | UART_IER_RDI))) { up 55 drivers/tty/serial/8250/8250_fsl.c lsr = serial8250_rx_chars(up, lsr); up 59 drivers/tty/serial/8250/8250_fsl.c if ((orig_lsr & UART_LSR_OE) && (up->overrun_backoff_time_ms > 0)) { up 62 drivers/tty/serial/8250/8250_fsl.c up->ier = port->serial_in(port, UART_IER); up 63 drivers/tty/serial/8250/8250_fsl.c if (up->ier & (UART_IER_RLSI | UART_IER_RDI)) { up 69 drivers/tty/serial/8250/8250_fsl.c cancel_delayed_work(&up->overrun_backoff); up 72 drivers/tty/serial/8250/8250_fsl.c delay = msecs_to_jiffies(up->overrun_backoff_time_ms); up 73 drivers/tty/serial/8250/8250_fsl.c schedule_delayed_work(&up->overrun_backoff, delay); up 76 drivers/tty/serial/8250/8250_fsl.c serial8250_modem_status(up); up 79 drivers/tty/serial/8250/8250_fsl.c serial8250_tx_chars(up); up 81 drivers/tty/serial/8250/8250_fsl.c up->lsr_saved_flags = orig_lsr; up 82 drivers/tty/serial/8250/8250_fsl.c uart_unlock_and_check_sysrq(&up->port, flags); up 38 drivers/tty/serial/8250/8250_lpc18xx.c struct uart_8250_port *up = up_to_u8250p(port); up 64 drivers/tty/serial/8250/8250_lpc18xx.c baud_clk = port->uartclk / up->dl_read(up); up 79 drivers/tty/serial/8250/8250_lpc18xx.c serial_out(up, LPC18XX_UART_RS485CTRL, rs485_ctrl_reg); up 80 drivers/tty/serial/8250/8250_lpc18xx.c serial_out(up, LPC18XX_UART_RS485DLY, rs485_dly_reg); up 79 drivers/tty/serial/8250/8250_mid.c struct uart_8250_port *up = up_to_u8250p(p); up 90 drivers/tty/serial/8250/8250_mid.c serial8250_rx_dma_flush(up); up 130 drivers/tty/serial/8250/8250_mid.c struct uart_8250_port *up = up_to_u8250p(p); up 139 drivers/tty/serial/8250/8250_mid.c serial8250_rx_dma_flush(up); up 84 drivers/tty/serial/8250/8250_mtk.c static void mtk8250_rx_dma(struct uart_8250_port *up); up 88 drivers/tty/serial/8250/8250_mtk.c struct uart_8250_port *up = param; up 89 drivers/tty/serial/8250/8250_mtk.c struct uart_8250_dma *dma = up->dma; up 90 drivers/tty/serial/8250/8250_mtk.c struct mtk8250_data *data = up->port.private_data; up 91 drivers/tty/serial/8250/8250_mtk.c struct tty_port *tty_port = &up->port.state->port; up 117 drivers/tty/serial/8250/8250_mtk.c up->port.icount.rx += copied; up 121 drivers/tty/serial/8250/8250_mtk.c mtk8250_rx_dma(up); up 124 drivers/tty/serial/8250/8250_mtk.c static void mtk8250_rx_dma(struct uart_8250_port *up) up 126 drivers/tty/serial/8250/8250_mtk.c struct uart_8250_dma *dma = up->dma; up 138 drivers/tty/serial/8250/8250_mtk.c desc->callback_param = up; up 145 drivers/tty/serial/8250/8250_mtk.c static void mtk8250_dma_enable(struct uart_8250_port *up) up 147 drivers/tty/serial/8250/8250_mtk.c struct uart_8250_dma *dma = up->dma; up 148 drivers/tty/serial/8250/8250_mtk.c struct mtk8250_data *data = up->port.private_data; up 149 drivers/tty/serial/8250/8250_mtk.c int lcr = serial_in(up, UART_LCR); up 160 drivers/tty/serial/8250/8250_mtk.c serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO | UART_FCR_CLEAR_RCVR | up 162 drivers/tty/serial/8250/8250_mtk.c serial_out(up, MTK_UART_DMA_EN, up 165 drivers/tty/serial/8250/8250_mtk.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 166 drivers/tty/serial/8250/8250_mtk.c serial_out(up, UART_EFR, UART_EFR_ECB); up 167 drivers/tty/serial/8250/8250_mtk.c serial_out(up, UART_LCR, lcr); up 176 drivers/tty/serial/8250/8250_mtk.c mtk8250_rx_dma(up); up 183 drivers/tty/serial/8250/8250_mtk.c struct uart_8250_port *up = up_to_u8250p(port); up 188 drivers/tty/serial/8250/8250_mtk.c up->dma = NULL; up 190 drivers/tty/serial/8250/8250_mtk.c if (up->dma) { up 203 drivers/tty/serial/8250/8250_mtk.c struct uart_8250_port *up = up_to_u8250p(port); up 206 drivers/tty/serial/8250/8250_mtk.c if (up->dma) up 213 drivers/tty/serial/8250/8250_mtk.c static void mtk8250_disable_intrs(struct uart_8250_port *up, int mask) up 215 drivers/tty/serial/8250/8250_mtk.c serial_out(up, UART_IER, serial_in(up, UART_IER) & (~mask)); up 218 drivers/tty/serial/8250/8250_mtk.c static void mtk8250_enable_intrs(struct uart_8250_port *up, int mask) up 220 drivers/tty/serial/8250/8250_mtk.c serial_out(up, UART_IER, serial_in(up, UART_IER) | mask); up 223 drivers/tty/serial/8250/8250_mtk.c static void mtk8250_set_flow_ctrl(struct uart_8250_port *up, int mode) up 225 drivers/tty/serial/8250/8250_mtk.c struct uart_port *port = &up->port; up 226 drivers/tty/serial/8250/8250_mtk.c int lcr = serial_in(up, UART_LCR); up 228 drivers/tty/serial/8250/8250_mtk.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 229 drivers/tty/serial/8250/8250_mtk.c serial_out(up, UART_EFR, UART_EFR_ECB); up 230 drivers/tty/serial/8250/8250_mtk.c serial_out(up, UART_LCR, lcr); up 231 drivers/tty/serial/8250/8250_mtk.c lcr = serial_in(up, UART_LCR); up 235 drivers/tty/serial/8250/8250_mtk.c serial_out(up, MTK_UART_ESCAPE_DAT, MTK_UART_ESCAPE_CHAR); up 236 drivers/tty/serial/8250/8250_mtk.c serial_out(up, MTK_UART_ESCAPE_EN, 0x00); up 237 drivers/tty/serial/8250/8250_mtk.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 238 drivers/tty/serial/8250/8250_mtk.c serial_out(up, UART_EFR, serial_in(up, UART_EFR) & up 240 drivers/tty/serial/8250/8250_mtk.c serial_out(up, UART_LCR, lcr); up 241 drivers/tty/serial/8250/8250_mtk.c mtk8250_disable_intrs(up, MTK_UART_IER_XOFFI | up 246 drivers/tty/serial/8250/8250_mtk.c serial_out(up, MTK_UART_ESCAPE_DAT, MTK_UART_ESCAPE_CHAR); up 247 drivers/tty/serial/8250/8250_mtk.c serial_out(up, MTK_UART_ESCAPE_EN, 0x00); up 248 drivers/tty/serial/8250/8250_mtk.c serial_out(up, UART_MCR, UART_MCR_RTS); up 249 drivers/tty/serial/8250/8250_mtk.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 252 drivers/tty/serial/8250/8250_mtk.c serial_out(up, UART_EFR, MTK_UART_EFR_HW_FC | up 253 drivers/tty/serial/8250/8250_mtk.c (serial_in(up, UART_EFR) & up 256 drivers/tty/serial/8250/8250_mtk.c serial_out(up, UART_LCR, lcr); up 257 drivers/tty/serial/8250/8250_mtk.c mtk8250_disable_intrs(up, MTK_UART_IER_XOFFI); up 258 drivers/tty/serial/8250/8250_mtk.c mtk8250_enable_intrs(up, MTK_UART_IER_CTSI | MTK_UART_IER_RTSI); up 262 drivers/tty/serial/8250/8250_mtk.c serial_out(up, MTK_UART_ESCAPE_DAT, MTK_UART_ESCAPE_CHAR); up 263 drivers/tty/serial/8250/8250_mtk.c serial_out(up, MTK_UART_ESCAPE_EN, 0x01); up 264 drivers/tty/serial/8250/8250_mtk.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 267 drivers/tty/serial/8250/8250_mtk.c serial_out(up, UART_EFR, MTK_UART_EFR_XON1_XOFF1 | up 268 drivers/tty/serial/8250/8250_mtk.c (serial_in(up, UART_EFR) & up 271 drivers/tty/serial/8250/8250_mtk.c serial_out(up, UART_XON1, START_CHAR(port->state->port.tty)); up 272 drivers/tty/serial/8250/8250_mtk.c serial_out(up, UART_XOFF1, STOP_CHAR(port->state->port.tty)); up 273 drivers/tty/serial/8250/8250_mtk.c serial_out(up, UART_LCR, lcr); up 274 drivers/tty/serial/8250/8250_mtk.c mtk8250_disable_intrs(up, MTK_UART_IER_CTSI|MTK_UART_IER_RTSI); up 275 drivers/tty/serial/8250/8250_mtk.c mtk8250_enable_intrs(up, MTK_UART_IER_XOFFI); up 292 drivers/tty/serial/8250/8250_mtk.c struct uart_8250_port *up = up_to_u8250p(port); up 298 drivers/tty/serial/8250/8250_mtk.c if (up->dma) { up 300 drivers/tty/serial/8250/8250_mtk.c devm_kfree(up->port.dev, up->dma); up 301 drivers/tty/serial/8250/8250_mtk.c up->dma = NULL; up 303 drivers/tty/serial/8250/8250_mtk.c mtk8250_dma_enable(up); up 342 drivers/tty/serial/8250/8250_mtk.c serial_port_out(port, UART_LCR, up->lcr | UART_LCR_DLAB); up 343 drivers/tty/serial/8250/8250_mtk.c serial_dl_write(up, quot); up 346 drivers/tty/serial/8250/8250_mtk.c serial_port_out(port, UART_LCR, up->lcr); up 377 drivers/tty/serial/8250/8250_mtk.c mtk8250_set_flow_ctrl(up, mode); up 380 drivers/tty/serial/8250/8250_mtk.c up->port.cons->cflag = termios->c_cflag; up 131 drivers/tty/serial/8250/8250_omap.c static u32 uart_read(struct uart_8250_port *up, u32 reg) up 133 drivers/tty/serial/8250/8250_omap.c return readl(up->port.membase + (reg << up->port.regshift)); up 138 drivers/tty/serial/8250/8250_omap.c struct uart_8250_port *up = up_to_u8250p(port); up 139 drivers/tty/serial/8250/8250_omap.c struct omap8250_priv *priv = up->port.private_data; up 144 drivers/tty/serial/8250/8250_omap.c if (!mctrl_gpio_to_gpiod(up->gpios, UART_GPIO_RTS)) { up 149 drivers/tty/serial/8250/8250_omap.c lcr = serial_in(up, UART_LCR); up 150 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 155 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_EFR, priv->efr); up 156 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_LCR, lcr); up 169 drivers/tty/serial/8250/8250_omap.c static void omap_8250_mdr1_errataset(struct uart_8250_port *up, up 175 drivers/tty/serial/8250/8250_omap.c old_mdr1 = serial_in(up, UART_OMAP_MDR1); up 179 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_OMAP_MDR1, priv->mdr1); up 181 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_FCR, up->fcr | UART_FCR_CLEAR_XMIT | up 187 drivers/tty/serial/8250/8250_omap.c while (UART_LSR_THRE != (serial_in(up, UART_LSR) & up 192 drivers/tty/serial/8250/8250_omap.c dev_crit(up->port.dev, "Errata i202: timedout %x\n", up 193 drivers/tty/serial/8250/8250_omap.c serial_in(up, UART_LSR)); up 243 drivers/tty/serial/8250/8250_omap.c static void omap8250_update_scr(struct uart_8250_port *up, up 248 drivers/tty/serial/8250/8250_omap.c old_scr = serial_in(up, UART_OMAP_SCR); up 258 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_OMAP_SCR, up 260 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_OMAP_SCR, priv->scr); up 263 drivers/tty/serial/8250/8250_omap.c static void omap8250_update_mdr1(struct uart_8250_port *up, up 267 drivers/tty/serial/8250/8250_omap.c omap_8250_mdr1_errataset(up, priv); up 269 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_OMAP_MDR1, priv->mdr1); up 272 drivers/tty/serial/8250/8250_omap.c static void omap8250_restore_regs(struct uart_8250_port *up) up 274 drivers/tty/serial/8250/8250_omap.c struct omap8250_priv *priv = up->port.private_data; up 275 drivers/tty/serial/8250/8250_omap.c struct uart_8250_dma *dma = up->dma; up 288 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 289 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_EFR, UART_EFR_ECB); up 291 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); up 292 drivers/tty/serial/8250/8250_omap.c serial8250_out_MCR(up, UART_MCR_TCRTLR); up 293 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_FCR, up->fcr); up 295 drivers/tty/serial/8250/8250_omap.c omap8250_update_scr(up, priv); up 297 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 299 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_TI752_TCR, OMAP_UART_TCR_RESTORE(16) | up 301 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_TI752_TLR, up 305 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_LCR, 0); up 308 drivers/tty/serial/8250/8250_omap.c serial8250_out_MCR(up, up->mcr); up 309 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_IER, up->ier); up 311 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 312 drivers/tty/serial/8250/8250_omap.c serial_dl_write(up, priv->quot); up 314 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_EFR, priv->efr); up 317 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 318 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_XON1, priv->xon); up 319 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_XOFF1, priv->xoff); up 321 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_LCR, up->lcr); up 323 drivers/tty/serial/8250/8250_omap.c omap8250_update_mdr1(up, priv); up 325 drivers/tty/serial/8250/8250_omap.c up->port.ops->set_mctrl(&up->port, up->port.mctrl); up 336 drivers/tty/serial/8250/8250_omap.c struct uart_8250_port *up = up_to_u8250p(port); up 337 drivers/tty/serial/8250/8250_omap.c struct omap8250_priv *priv = up->port.private_data; up 386 drivers/tty/serial/8250/8250_omap.c up->port.read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; up 388 drivers/tty/serial/8250/8250_omap.c up->port.read_status_mask |= UART_LSR_FE | UART_LSR_PE; up 390 drivers/tty/serial/8250/8250_omap.c up->port.read_status_mask |= UART_LSR_BI; up 395 drivers/tty/serial/8250/8250_omap.c up->port.ignore_status_mask = 0; up 397 drivers/tty/serial/8250/8250_omap.c up->port.ignore_status_mask |= UART_LSR_PE | UART_LSR_FE; up 399 drivers/tty/serial/8250/8250_omap.c up->port.ignore_status_mask |= UART_LSR_BI; up 405 drivers/tty/serial/8250/8250_omap.c up->port.ignore_status_mask |= UART_LSR_OE; up 412 drivers/tty/serial/8250/8250_omap.c up->port.ignore_status_mask |= UART_LSR_DR; up 417 drivers/tty/serial/8250/8250_omap.c up->ier &= ~UART_IER_MSI; up 418 drivers/tty/serial/8250/8250_omap.c if (UART_ENABLE_MS(&up->port, termios->c_cflag)) up 419 drivers/tty/serial/8250/8250_omap.c up->ier |= UART_IER_MSI; up 421 drivers/tty/serial/8250/8250_omap.c up->lcr = cval; up 441 drivers/tty/serial/8250/8250_omap.c up->fcr = UART_FCR_ENABLE_FIFO; up 442 drivers/tty/serial/8250/8250_omap.c up->fcr |= TRIGGER_FCR_MASK(TX_TRIGGER) << OMAP_UART_FCR_TX_TRIG; up 443 drivers/tty/serial/8250/8250_omap.c up->fcr |= TRIGGER_FCR_MASK(RX_TRIGGER) << OMAP_UART_FCR_RX_TRIG; up 448 drivers/tty/serial/8250/8250_omap.c if (up->dma) up 456 drivers/tty/serial/8250/8250_omap.c up->port.status &= ~(UPSTAT_AUTOCTS | UPSTAT_AUTORTS | UPSTAT_AUTOXOFF); up 458 drivers/tty/serial/8250/8250_omap.c if (termios->c_cflag & CRTSCTS && up->port.flags & UPF_HARD_FLOW && up 459 drivers/tty/serial/8250/8250_omap.c !mctrl_gpio_to_gpiod(up->gpios, UART_GPIO_RTS) && up 460 drivers/tty/serial/8250/8250_omap.c !mctrl_gpio_to_gpiod(up->gpios, UART_GPIO_CTS)) { up 462 drivers/tty/serial/8250/8250_omap.c up->port.status |= UPSTAT_AUTOCTS | UPSTAT_AUTORTS; up 464 drivers/tty/serial/8250/8250_omap.c } else if (up->port.flags & UPF_SOFT_FLOW) { up 476 drivers/tty/serial/8250/8250_omap.c up->port.status |= UPSTAT_AUTOXOFF; up 480 drivers/tty/serial/8250/8250_omap.c omap8250_restore_regs(up); up 482 drivers/tty/serial/8250/8250_omap.c spin_unlock_irq(&up->port.lock); up 501 drivers/tty/serial/8250/8250_omap.c struct uart_8250_port *up = up_to_u8250p(port); up 505 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 506 drivers/tty/serial/8250/8250_omap.c efr = serial_in(up, UART_EFR); up 507 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_EFR, efr | UART_EFR_ECB); up 508 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_LCR, 0); up 510 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_IER, (state != 0) ? UART_IERX_SLEEP : 0); up 511 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 512 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_EFR, efr); up 513 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_LCR, 0); up 519 drivers/tty/serial/8250/8250_omap.c static void omap_serial_fill_features_erratas(struct uart_8250_port *up, up 525 drivers/tty/serial/8250/8250_omap.c mvr = uart_read(up, UART_OMAP_MVER); up 545 drivers/tty/serial/8250/8250_omap.c dev_warn(up->port.dev, up 586 drivers/tty/serial/8250/8250_omap.c struct uart_8250_port *up = up_to_u8250p(port); up 591 drivers/tty/serial/8250/8250_omap.c if (up->dma) { up 597 drivers/tty/serial/8250/8250_omap.c serial8250_rpm_get(up); up 600 drivers/tty/serial/8250/8250_omap.c serial8250_rpm_put(up); up 607 drivers/tty/serial/8250/8250_omap.c struct uart_8250_port *up = up_to_u8250p(port); up 619 drivers/tty/serial/8250/8250_omap.c up->mcr = 0; up 620 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_FCR, UART_FCR_CLEAR_RCVR | UART_FCR_CLEAR_XMIT); up 622 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_LCR, UART_LCR_WLEN8); up 624 drivers/tty/serial/8250/8250_omap.c up->lsr_saved_flags = 0; up 625 drivers/tty/serial/8250/8250_omap.c up->msr_saved_flags = 0; up 629 drivers/tty/serial/8250/8250_omap.c up->dma = NULL; up 631 drivers/tty/serial/8250/8250_omap.c if (up->dma) { up 632 drivers/tty/serial/8250/8250_omap.c ret = serial8250_request_dma(up); up 636 drivers/tty/serial/8250/8250_omap.c up->dma = NULL; up 645 drivers/tty/serial/8250/8250_omap.c up->ier = UART_IER_RLSI | UART_IER_RDI; up 646 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_IER, up->ier); up 649 drivers/tty/serial/8250/8250_omap.c up->capabilities |= UART_CAP_RPM; up 656 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_OMAP_WER, priv->wer); up 658 drivers/tty/serial/8250/8250_omap.c if (up->dma) up 659 drivers/tty/serial/8250/8250_omap.c up->dma->rx_dma(up); up 673 drivers/tty/serial/8250/8250_omap.c struct uart_8250_port *up = up_to_u8250p(port); up 677 drivers/tty/serial/8250/8250_omap.c if (up->dma) up 678 drivers/tty/serial/8250/8250_omap.c omap_8250_rx_dma_flush(up); up 682 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_OMAP_WER, 0); up 684 drivers/tty/serial/8250/8250_omap.c up->ier = 0; up 685 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_IER, 0); up 687 drivers/tty/serial/8250/8250_omap.c if (up->dma) up 688 drivers/tty/serial/8250/8250_omap.c serial8250_release_dma(up); up 693 drivers/tty/serial/8250/8250_omap.c if (up->lcr & UART_LCR_SBC) up 694 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_LCR, up->lcr & ~UART_LCR_SBC); up 695 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_FCR, UART_FCR_CLEAR_RCVR | UART_FCR_CLEAR_XMIT); up 706 drivers/tty/serial/8250/8250_omap.c struct uart_8250_port *up = up_to_u8250p(port); up 712 drivers/tty/serial/8250/8250_omap.c up->ier &= ~(UART_IER_RLSI | UART_IER_RDI); up 713 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_IER, up->ier); up 724 drivers/tty/serial/8250/8250_omap.c struct uart_8250_port *up = up_to_u8250p(port); up 737 drivers/tty/serial/8250/8250_omap.c int ret = serial8250_em485_init(up); up 746 drivers/tty/serial/8250/8250_omap.c serial8250_em485_destroy(up); up 754 drivers/tty/serial/8250/8250_omap.c struct uart_8250_port *up = up_to_u8250p(port); up 761 drivers/tty/serial/8250/8250_omap.c if (up->dma) up 762 drivers/tty/serial/8250/8250_omap.c up->dma->rx_dma(up); up 763 drivers/tty/serial/8250/8250_omap.c up->ier |= UART_IER_RLSI | UART_IER_RDI; up 764 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_IER, up->ier); up 1031 drivers/tty/serial/8250/8250_omap.c static bool handle_rx_dma(struct uart_8250_port *up, unsigned int iir) up 1037 drivers/tty/serial/8250/8250_omap.c omap_8250_rx_dma_flush(up); up 1040 drivers/tty/serial/8250/8250_omap.c return omap_8250_rx_dma(up); up 1050 drivers/tty/serial/8250/8250_omap.c struct uart_8250_port *up = up_to_u8250p(port); up 1055 drivers/tty/serial/8250/8250_omap.c serial8250_rpm_get(up); up 1059 drivers/tty/serial/8250/8250_omap.c serial8250_rpm_put(up); up 1068 drivers/tty/serial/8250/8250_omap.c if (handle_rx_dma(up, iir)) { up 1069 drivers/tty/serial/8250/8250_omap.c status = serial8250_rx_chars(up, status); up 1070 drivers/tty/serial/8250/8250_omap.c omap_8250_rx_dma(up); up 1073 drivers/tty/serial/8250/8250_omap.c serial8250_modem_status(up); up 1074 drivers/tty/serial/8250/8250_omap.c if (status & UART_LSR_THRE && up->dma->tx_err) { up 1075 drivers/tty/serial/8250/8250_omap.c if (uart_tx_stopped(&up->port) || up 1076 drivers/tty/serial/8250/8250_omap.c uart_circ_empty(&up->port.state->xmit)) { up 1077 drivers/tty/serial/8250/8250_omap.c up->dma->tx_err = 0; up 1078 drivers/tty/serial/8250/8250_omap.c serial8250_tx_chars(up); up 1084 drivers/tty/serial/8250/8250_omap.c if (omap_8250_tx_dma(up)) up 1085 drivers/tty/serial/8250/8250_omap.c serial8250_tx_chars(up); up 1090 drivers/tty/serial/8250/8250_omap.c serial8250_rpm_put(up); up 1136 drivers/tty/serial/8250/8250_omap.c struct uart_8250_port up; up 1155 drivers/tty/serial/8250/8250_omap.c memset(&up, 0, sizeof(up)); up 1156 drivers/tty/serial/8250/8250_omap.c up.port.dev = &pdev->dev; up 1157 drivers/tty/serial/8250/8250_omap.c up.port.mapbase = regs->start; up 1158 drivers/tty/serial/8250/8250_omap.c up.port.membase = membase; up 1159 drivers/tty/serial/8250/8250_omap.c up.port.irq = irq->start; up 1168 drivers/tty/serial/8250/8250_omap.c up.port.type = PORT_8250; up 1169 drivers/tty/serial/8250/8250_omap.c up.port.iotype = UPIO_MEM; up 1170 drivers/tty/serial/8250/8250_omap.c up.port.flags = UPF_FIXED_PORT | UPF_FIXED_TYPE | UPF_SOFT_FLOW | up 1172 drivers/tty/serial/8250/8250_omap.c up.port.private_data = priv; up 1174 drivers/tty/serial/8250/8250_omap.c up.port.regshift = 2; up 1175 drivers/tty/serial/8250/8250_omap.c up.port.fifosize = 64; up 1176 drivers/tty/serial/8250/8250_omap.c up.tx_loadsz = 64; up 1177 drivers/tty/serial/8250/8250_omap.c up.capabilities = UART_CAP_FIFO; up 1185 drivers/tty/serial/8250/8250_omap.c up.capabilities |= UART_CAP_RPM; up 1187 drivers/tty/serial/8250/8250_omap.c up.port.set_termios = omap_8250_set_termios; up 1188 drivers/tty/serial/8250/8250_omap.c up.port.set_mctrl = omap8250_set_mctrl; up 1189 drivers/tty/serial/8250/8250_omap.c up.port.pm = omap_8250_pm; up 1190 drivers/tty/serial/8250/8250_omap.c up.port.startup = omap_8250_startup; up 1191 drivers/tty/serial/8250/8250_omap.c up.port.shutdown = omap_8250_shutdown; up 1192 drivers/tty/serial/8250/8250_omap.c up.port.throttle = omap_8250_throttle; up 1193 drivers/tty/serial/8250/8250_omap.c up.port.unthrottle = omap_8250_unthrottle; up 1194 drivers/tty/serial/8250/8250_omap.c up.port.rs485_config = omap_8250_rs485_config; up 1201 drivers/tty/serial/8250/8250_omap.c up.port.line = ret; up 1203 drivers/tty/serial/8250/8250_omap.c if (of_property_read_u32(np, "clock-frequency", &up.port.uartclk)) { up 1211 drivers/tty/serial/8250/8250_omap.c up.port.uartclk = clk_get_rate(clk); up 1221 drivers/tty/serial/8250/8250_omap.c if (!up.port.uartclk) { up 1222 drivers/tty/serial/8250/8250_omap.c up.port.uartclk = DEFAULT_CLK_SPEED; up 1254 drivers/tty/serial/8250/8250_omap.c omap_serial_fill_features_erratas(&up, priv); up 1255 drivers/tty/serial/8250/8250_omap.c up.port.handle_irq = omap8250_no_handle_irq; up 1267 drivers/tty/serial/8250/8250_omap.c up.dma = &priv->omap8250_dma; up 1276 drivers/tty/serial/8250/8250_omap.c ret = serial8250_register_8250_port(&up); up 1329 drivers/tty/serial/8250/8250_omap.c struct uart_8250_port *up = serial8250_get_port(priv->line); up 1336 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_OMAP_WER, priv->wer); up 1357 drivers/tty/serial/8250/8250_omap.c static int omap8250_lost_context(struct uart_8250_port *up) up 1361 drivers/tty/serial/8250/8250_omap.c val = serial_in(up, UART_OMAP_SCR); up 1376 drivers/tty/serial/8250/8250_omap.c struct uart_8250_port *up = serial8250_get_port(priv->line); up 1390 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_OMAP_SCR, OMAP_UART_SCR_DMAMODE_1); up 1391 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_OMAP_SCR, up 1394 drivers/tty/serial/8250/8250_omap.c sysc = serial_in(up, UART_OMAP_SYSC); up 1398 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_OMAP_SYSC, sysc); up 1403 drivers/tty/serial/8250/8250_omap.c syss = serial_in(up, UART_OMAP_SYSS); up 1417 drivers/tty/serial/8250/8250_omap.c struct uart_8250_port *up; up 1423 drivers/tty/serial/8250/8250_omap.c up = serial8250_get_port(priv->line); up 1431 drivers/tty/serial/8250/8250_omap.c if (uart_console(&up->port)) up 1443 drivers/tty/serial/8250/8250_omap.c omap8250_update_mdr1(up, priv); up 1445 drivers/tty/serial/8250/8250_omap.c serial_out(up, UART_OMAP_WER, priv->wer); up 1448 drivers/tty/serial/8250/8250_omap.c if (up->dma && up->dma->rxchan) up 1449 drivers/tty/serial/8250/8250_omap.c omap_8250_rx_dma_flush(up); up 1460 drivers/tty/serial/8250/8250_omap.c struct uart_8250_port *up; up 1466 drivers/tty/serial/8250/8250_omap.c up = serial8250_get_port(priv->line); up 1468 drivers/tty/serial/8250/8250_omap.c if (omap8250_lost_context(up)) up 1469 drivers/tty/serial/8250/8250_omap.c omap8250_restore_regs(up); up 1471 drivers/tty/serial/8250/8250_omap.c if (up->dma && up->dma->rxchan) up 1472 drivers/tty/serial/8250/8250_omap.c omap_8250_rx_dma(up); up 1700 drivers/tty/serial/8250/8250_pci.c struct uart_8250_port *up = up_to_u8250p(p); up 1706 drivers/tty/serial/8250/8250_pci.c serial8250_clear_and_reinit_fifos(up); up 1711 drivers/tty/serial/8250/8250_pci.c struct uart_8250_port *up = up_to_u8250p(p); up 1727 drivers/tty/serial/8250/8250_pci.c val = up->ier; up 315 drivers/tty/serial/8250/8250_port.c static int default_serial_dl_read(struct uart_8250_port *up) up 317 drivers/tty/serial/8250/8250_port.c return serial_in(up, UART_DLL) | serial_in(up, UART_DLM) << 8; up 321 drivers/tty/serial/8250/8250_port.c static void default_serial_dl_write(struct uart_8250_port *up, int value) up 323 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_DLL, value & 0xff); up 324 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_DLM, value >> 8 & 0xff); up 373 drivers/tty/serial/8250/8250_port.c static int au_serial_dl_read(struct uart_8250_port *up) up 375 drivers/tty/serial/8250/8250_port.c return __raw_readl(up->port.membase + 0x28); up 378 drivers/tty/serial/8250/8250_port.c static void au_serial_dl_write(struct uart_8250_port *up, int value) up 380 drivers/tty/serial/8250/8250_port.c __raw_writel(value, up->port.membase + 0x28); up 463 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(p); up 465 drivers/tty/serial/8250/8250_port.c up->dl_read = default_serial_dl_read; up 466 drivers/tty/serial/8250/8250_port.c up->dl_write = default_serial_dl_write; up 498 drivers/tty/serial/8250/8250_port.c up->dl_read = au_serial_dl_read; up 499 drivers/tty/serial/8250/8250_port.c up->dl_write = au_serial_dl_write; up 509 drivers/tty/serial/8250/8250_port.c up->cur_iotype = p->iotype; up 533 drivers/tty/serial/8250/8250_port.c static void serial_icr_write(struct uart_8250_port *up, int offset, int value) up 535 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_SCR, offset); up 536 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_ICR, value); up 539 drivers/tty/serial/8250/8250_port.c static unsigned int serial_icr_read(struct uart_8250_port *up, int offset) up 543 drivers/tty/serial/8250/8250_port.c serial_icr_write(up, UART_ACR, up->acr | UART_ACR_ICRRD); up 544 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_SCR, offset); up 545 drivers/tty/serial/8250/8250_port.c value = serial_in(up, UART_ICR); up 546 drivers/tty/serial/8250/8250_port.c serial_icr_write(up, UART_ACR, up->acr); up 740 drivers/tty/serial/8250/8250_port.c static int __enable_rsa(struct uart_8250_port *up) up 745 drivers/tty/serial/8250/8250_port.c mode = serial_in(up, UART_RSA_MSR); up 749 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_RSA_MSR, mode | UART_RSA_MSR_FIFO); up 750 drivers/tty/serial/8250/8250_port.c mode = serial_in(up, UART_RSA_MSR); up 755 drivers/tty/serial/8250/8250_port.c up->port.uartclk = SERIAL_RSA_BAUD_BASE * 16; up 760 drivers/tty/serial/8250/8250_port.c static void enable_rsa(struct uart_8250_port *up) up 762 drivers/tty/serial/8250/8250_port.c if (up->port.type == PORT_RSA) { up 763 drivers/tty/serial/8250/8250_port.c if (up->port.uartclk != SERIAL_RSA_BAUD_BASE * 16) { up 764 drivers/tty/serial/8250/8250_port.c spin_lock_irq(&up->port.lock); up 765 drivers/tty/serial/8250/8250_port.c __enable_rsa(up); up 766 drivers/tty/serial/8250/8250_port.c spin_unlock_irq(&up->port.lock); up 768 drivers/tty/serial/8250/8250_port.c if (up->port.uartclk == SERIAL_RSA_BAUD_BASE * 16) up 769 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_RSA_FRR, 0); up 779 drivers/tty/serial/8250/8250_port.c static void disable_rsa(struct uart_8250_port *up) up 784 drivers/tty/serial/8250/8250_port.c if (up->port.type == PORT_RSA && up 785 drivers/tty/serial/8250/8250_port.c up->port.uartclk == SERIAL_RSA_BAUD_BASE * 16) { up 786 drivers/tty/serial/8250/8250_port.c spin_lock_irq(&up->port.lock); up 788 drivers/tty/serial/8250/8250_port.c mode = serial_in(up, UART_RSA_MSR); up 792 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_RSA_MSR, mode & ~UART_RSA_MSR_FIFO); up 793 drivers/tty/serial/8250/8250_port.c mode = serial_in(up, UART_RSA_MSR); up 798 drivers/tty/serial/8250/8250_port.c up->port.uartclk = SERIAL_RSA_BAUD_BASE_LO * 16; up 799 drivers/tty/serial/8250/8250_port.c spin_unlock_irq(&up->port.lock); up 808 drivers/tty/serial/8250/8250_port.c static int size_fifo(struct uart_8250_port *up) up 814 drivers/tty/serial/8250/8250_port.c old_lcr = serial_in(up, UART_LCR); up 815 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, 0); up 816 drivers/tty/serial/8250/8250_port.c old_fcr = serial_in(up, UART_FCR); up 817 drivers/tty/serial/8250/8250_port.c old_mcr = serial8250_in_MCR(up); up 818 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO | up 820 drivers/tty/serial/8250/8250_port.c serial8250_out_MCR(up, UART_MCR_LOOP); up 821 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); up 822 drivers/tty/serial/8250/8250_port.c old_dl = serial_dl_read(up); up 823 drivers/tty/serial/8250/8250_port.c serial_dl_write(up, 0x0001); up 824 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, 0x03); up 826 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_TX, count); up 828 drivers/tty/serial/8250/8250_port.c for (count = 0; (serial_in(up, UART_LSR) & UART_LSR_DR) && up 830 drivers/tty/serial/8250/8250_port.c serial_in(up, UART_RX); up 831 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_FCR, old_fcr); up 832 drivers/tty/serial/8250/8250_port.c serial8250_out_MCR(up, old_mcr); up 833 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); up 834 drivers/tty/serial/8250/8250_port.c serial_dl_write(up, old_dl); up 835 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, old_lcr); up 872 drivers/tty/serial/8250/8250_port.c static void autoconfig_has_efr(struct uart_8250_port *up) up 879 drivers/tty/serial/8250/8250_port.c up->capabilities |= UART_CAP_EFR | UART_CAP_SLEEP; up 898 drivers/tty/serial/8250/8250_port.c up->acr = 0; up 899 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 900 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_EFR, UART_EFR_ECB); up 901 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, 0x00); up 902 drivers/tty/serial/8250/8250_port.c id1 = serial_icr_read(up, UART_ID1); up 903 drivers/tty/serial/8250/8250_port.c id2 = serial_icr_read(up, UART_ID2); up 904 drivers/tty/serial/8250/8250_port.c id3 = serial_icr_read(up, UART_ID3); up 905 drivers/tty/serial/8250/8250_port.c rev = serial_icr_read(up, UART_REV); up 911 drivers/tty/serial/8250/8250_port.c up->port.type = PORT_16C950; up 919 drivers/tty/serial/8250/8250_port.c up->bugs |= UART_BUG_QUOT; up 931 drivers/tty/serial/8250/8250_port.c id1 = autoconfig_read_divisor_id(up); up 936 drivers/tty/serial/8250/8250_port.c up->port.type = PORT_16850; up 949 drivers/tty/serial/8250/8250_port.c if (size_fifo(up) == 64) up 950 drivers/tty/serial/8250/8250_port.c up->port.type = PORT_16654; up 952 drivers/tty/serial/8250/8250_port.c up->port.type = PORT_16650V2; up 960 drivers/tty/serial/8250/8250_port.c static void autoconfig_8250(struct uart_8250_port *up) up 964 drivers/tty/serial/8250/8250_port.c up->port.type = PORT_8250; up 966 drivers/tty/serial/8250/8250_port.c scratch = serial_in(up, UART_SCR); up 967 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_SCR, 0xa5); up 968 drivers/tty/serial/8250/8250_port.c status1 = serial_in(up, UART_SCR); up 969 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_SCR, 0x5a); up 970 drivers/tty/serial/8250/8250_port.c status2 = serial_in(up, UART_SCR); up 971 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_SCR, scratch); up 974 drivers/tty/serial/8250/8250_port.c up->port.type = PORT_16450; up 977 drivers/tty/serial/8250/8250_port.c static int broken_efr(struct uart_8250_port *up) up 984 drivers/tty/serial/8250/8250_port.c if (autoconfig_read_divisor_id(up) == 0x0201 && size_fifo(up) == 16) up 996 drivers/tty/serial/8250/8250_port.c static void autoconfig_16550a(struct uart_8250_port *up) up 1001 drivers/tty/serial/8250/8250_port.c up->port.type = PORT_16550A; up 1002 drivers/tty/serial/8250/8250_port.c up->capabilities |= UART_CAP_FIFO; up 1008 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); up 1009 drivers/tty/serial/8250/8250_port.c if (serial_in(up, UART_EFR) == 0) { up 1010 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_EFR, 0xA8); up 1011 drivers/tty/serial/8250/8250_port.c if (serial_in(up, UART_EFR) != 0) { up 1013 drivers/tty/serial/8250/8250_port.c up->port.type = PORT_16650; up 1014 drivers/tty/serial/8250/8250_port.c up->capabilities |= UART_CAP_EFR | UART_CAP_SLEEP; up 1016 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, 0); up 1017 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO | up 1019 drivers/tty/serial/8250/8250_port.c status1 = serial_in(up, UART_IIR) >> 5; up 1020 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_FCR, 0); up 1021 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, 0); up 1024 drivers/tty/serial/8250/8250_port.c up->port.type = PORT_16550A_FSL64; up 1028 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_EFR, 0); up 1036 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 1037 drivers/tty/serial/8250/8250_port.c if (serial_in(up, UART_EFR) == 0 && !broken_efr(up)) { up 1039 drivers/tty/serial/8250/8250_port.c autoconfig_has_efr(up); up 1050 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, 0); up 1051 drivers/tty/serial/8250/8250_port.c status1 = serial8250_in_MCR(up); up 1052 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, 0xE0); up 1053 drivers/tty/serial/8250/8250_port.c status2 = serial_in(up, 0x02); /* EXCR1 */ up 1056 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, 0); up 1057 drivers/tty/serial/8250/8250_port.c serial8250_out_MCR(up, status1 ^ UART_MCR_LOOP); up 1058 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, 0xE0); up 1059 drivers/tty/serial/8250/8250_port.c status2 = serial_in(up, 0x02); /* EXCR1 */ up 1060 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, 0); up 1061 drivers/tty/serial/8250/8250_port.c serial8250_out_MCR(up, status1); up 1066 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, 0xE0); up 1068 drivers/tty/serial/8250/8250_port.c quot = serial_dl_read(up); up 1071 drivers/tty/serial/8250/8250_port.c if (ns16550a_goto_highspeed(up)) up 1072 drivers/tty/serial/8250/8250_port.c serial_dl_write(up, quot); up 1074 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, 0); up 1076 drivers/tty/serial/8250/8250_port.c up->port.uartclk = 921600*16; up 1077 drivers/tty/serial/8250/8250_port.c up->port.type = PORT_NS16550A; up 1078 drivers/tty/serial/8250/8250_port.c up->capabilities |= UART_NATSEMI; up 1089 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, 0); up 1090 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO | UART_FCR7_64BYTE); up 1091 drivers/tty/serial/8250/8250_port.c status1 = serial_in(up, UART_IIR) >> 5; up 1092 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO); up 1093 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); up 1094 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO | UART_FCR7_64BYTE); up 1095 drivers/tty/serial/8250/8250_port.c status2 = serial_in(up, UART_IIR) >> 5; up 1096 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO); up 1097 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, 0); up 1102 drivers/tty/serial/8250/8250_port.c up->port.type = PORT_16750; up 1103 drivers/tty/serial/8250/8250_port.c up->capabilities |= UART_CAP_AFE | UART_CAP_SLEEP; up 1115 drivers/tty/serial/8250/8250_port.c iersave = serial_in(up, UART_IER); up 1116 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_IER, iersave & ~UART_IER_UUE); up 1117 drivers/tty/serial/8250/8250_port.c if (!(serial_in(up, UART_IER) & UART_IER_UUE)) { up 1122 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_IER, iersave | UART_IER_UUE); up 1123 drivers/tty/serial/8250/8250_port.c if (serial_in(up, UART_IER) & UART_IER_UUE) { up 1129 drivers/tty/serial/8250/8250_port.c up->port.type = PORT_XSCALE; up 1130 drivers/tty/serial/8250/8250_port.c up->capabilities |= UART_CAP_UUE | UART_CAP_RTOIE; up 1140 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_IER, iersave); up 1146 drivers/tty/serial/8250/8250_port.c if (up->port.type == PORT_16550A && size_fifo(up) == 64) { up 1147 drivers/tty/serial/8250/8250_port.c up->port.type = PORT_U6_16550A; up 1148 drivers/tty/serial/8250/8250_port.c up->capabilities |= UART_CAP_AFE; up 1159 drivers/tty/serial/8250/8250_port.c static void autoconfig(struct uart_8250_port *up) up 1163 drivers/tty/serial/8250/8250_port.c struct uart_port *port = &up->port; up 1179 drivers/tty/serial/8250/8250_port.c up->capabilities = 0; up 1180 drivers/tty/serial/8250/8250_port.c up->bugs = 0; up 1196 drivers/tty/serial/8250/8250_port.c scratch = serial_in(up, UART_IER); up 1197 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_IER, 0); up 1205 drivers/tty/serial/8250/8250_port.c scratch2 = serial_in(up, UART_IER) & 0x0f; up 1206 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_IER, 0x0F); up 1210 drivers/tty/serial/8250/8250_port.c scratch3 = serial_in(up, UART_IER) & 0x0f; up 1211 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_IER, scratch); up 1223 drivers/tty/serial/8250/8250_port.c save_mcr = serial8250_in_MCR(up); up 1224 drivers/tty/serial/8250/8250_port.c save_lcr = serial_in(up, UART_LCR); up 1236 drivers/tty/serial/8250/8250_port.c serial8250_out_MCR(up, UART_MCR_LOOP | 0x0A); up 1237 drivers/tty/serial/8250/8250_port.c status1 = serial_in(up, UART_MSR) & 0xF0; up 1238 drivers/tty/serial/8250/8250_port.c serial8250_out_MCR(up, save_mcr); up 1256 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 1257 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_EFR, 0); up 1258 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, 0); up 1260 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO); up 1261 drivers/tty/serial/8250/8250_port.c scratch = serial_in(up, UART_IIR) >> 6; up 1265 drivers/tty/serial/8250/8250_port.c autoconfig_8250(up); up 1274 drivers/tty/serial/8250/8250_port.c autoconfig_16550a(up); up 1282 drivers/tty/serial/8250/8250_port.c if (port->type == PORT_16550A && up->probe & UART_PROBE_RSA && up 1283 drivers/tty/serial/8250/8250_port.c __enable_rsa(up)) up 1287 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, save_lcr); up 1289 drivers/tty/serial/8250/8250_port.c port->fifosize = uart_config[up->port.type].fifo_size; up 1290 drivers/tty/serial/8250/8250_port.c old_capabilities = up->capabilities; up 1291 drivers/tty/serial/8250/8250_port.c up->capabilities = uart_config[port->type].flags; up 1292 drivers/tty/serial/8250/8250_port.c up->tx_loadsz = uart_config[port->type].tx_loadsz; up 1302 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_RSA_FRR, 0); up 1304 drivers/tty/serial/8250/8250_port.c serial8250_out_MCR(up, save_mcr); up 1305 drivers/tty/serial/8250/8250_port.c serial8250_clear_fifos(up); up 1306 drivers/tty/serial/8250/8250_port.c serial_in(up, UART_RX); up 1307 drivers/tty/serial/8250/8250_port.c if (up->capabilities & UART_CAP_UUE) up 1308 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_IER, UART_IER_UUE); up 1310 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_IER, 0); up 1319 drivers/tty/serial/8250/8250_port.c fintek_8250_probe(up); up 1321 drivers/tty/serial/8250/8250_port.c if (up->capabilities != old_capabilities) { up 1323 drivers/tty/serial/8250/8250_port.c port->name, old_capabilities, up->capabilities); up 1330 drivers/tty/serial/8250/8250_port.c static void autoconfig_irq(struct uart_8250_port *up) up 1332 drivers/tty/serial/8250/8250_port.c struct uart_port *port = &up->port; up 1351 drivers/tty/serial/8250/8250_port.c save_mcr = serial8250_in_MCR(up); up 1352 drivers/tty/serial/8250/8250_port.c save_ier = serial_in(up, UART_IER); up 1353 drivers/tty/serial/8250/8250_port.c serial8250_out_MCR(up, UART_MCR_OUT1 | UART_MCR_OUT2); up 1356 drivers/tty/serial/8250/8250_port.c serial8250_out_MCR(up, 0); up 1359 drivers/tty/serial/8250/8250_port.c serial8250_out_MCR(up, UART_MCR_DTR | UART_MCR_RTS); up 1361 drivers/tty/serial/8250/8250_port.c serial8250_out_MCR(up, up 1364 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_IER, 0x0f); /* enable all intrs */ up 1365 drivers/tty/serial/8250/8250_port.c serial_in(up, UART_LSR); up 1366 drivers/tty/serial/8250/8250_port.c serial_in(up, UART_RX); up 1367 drivers/tty/serial/8250/8250_port.c serial_in(up, UART_IIR); up 1368 drivers/tty/serial/8250/8250_port.c serial_in(up, UART_MSR); up 1369 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_TX, 0xFF); up 1373 drivers/tty/serial/8250/8250_port.c serial8250_out_MCR(up, save_mcr); up 1374 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_IER, save_ier); up 1387 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 1389 drivers/tty/serial/8250/8250_port.c serial8250_rpm_get(up); up 1391 drivers/tty/serial/8250/8250_port.c up->ier &= ~(UART_IER_RLSI | UART_IER_RDI); up 1392 drivers/tty/serial/8250/8250_port.c up->port.read_status_mask &= ~UART_LSR_DR; up 1393 drivers/tty/serial/8250/8250_port.c serial_port_out(port, UART_IER, up->ier); up 1395 drivers/tty/serial/8250/8250_port.c serial8250_rpm_put(up); up 1490 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 1492 drivers/tty/serial/8250/8250_port.c serial8250_rpm_get(up); up 1493 drivers/tty/serial/8250/8250_port.c __stop_tx(up); up 1499 drivers/tty/serial/8250/8250_port.c up->acr |= UART_ACR_TXDIS; up 1500 drivers/tty/serial/8250/8250_port.c serial_icr_write(up, UART_ACR, up->acr); up 1502 drivers/tty/serial/8250/8250_port.c serial8250_rpm_put(up); up 1507 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 1509 drivers/tty/serial/8250/8250_port.c if (up->dma && !up->dma->tx_dma(up)) up 1512 drivers/tty/serial/8250/8250_port.c if (serial8250_set_THRI(up)) { up 1513 drivers/tty/serial/8250/8250_port.c if (up->bugs & UART_BUG_TXEN) { up 1516 drivers/tty/serial/8250/8250_port.c lsr = serial_in(up, UART_LSR); up 1517 drivers/tty/serial/8250/8250_port.c up->lsr_saved_flags |= lsr & LSR_SAVE_FLAGS; up 1519 drivers/tty/serial/8250/8250_port.c serial8250_tx_chars(up); up 1526 drivers/tty/serial/8250/8250_port.c if (port->type == PORT_16C950 && up->acr & UART_ACR_TXDIS) { up 1527 drivers/tty/serial/8250/8250_port.c up->acr &= ~UART_ACR_TXDIS; up 1528 drivers/tty/serial/8250/8250_port.c serial_icr_write(up, UART_ACR, up->acr); up 1534 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 1535 drivers/tty/serial/8250/8250_port.c struct uart_8250_em485 *em485 = up->em485; up 1538 drivers/tty/serial/8250/8250_port.c if (!(up->port.rs485.flags & SER_RS485_RX_DURING_TX)) up 1539 drivers/tty/serial/8250/8250_port.c serial8250_stop_rx(&up->port); up 1543 drivers/tty/serial/8250/8250_port.c mcr = serial8250_in_MCR(up); up 1544 drivers/tty/serial/8250/8250_port.c if (!!(up->port.rs485.flags & SER_RS485_RTS_ON_SEND) != up 1546 drivers/tty/serial/8250/8250_port.c if (up->port.rs485.flags & SER_RS485_RTS_ON_SEND) up 1550 drivers/tty/serial/8250/8250_port.c serial8250_out_MCR(up, mcr); up 1552 drivers/tty/serial/8250/8250_port.c if (up->port.rs485.delay_rts_before_send > 0) { up 1555 drivers/tty/serial/8250/8250_port.c up->port.rs485.delay_rts_before_send); up 1583 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 1584 drivers/tty/serial/8250/8250_port.c struct uart_8250_em485 *em485 = up->em485; up 1586 drivers/tty/serial/8250/8250_port.c serial8250_rpm_get_tx(up); up 1610 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 1613 drivers/tty/serial/8250/8250_port.c if (up->bugs & UART_BUG_NOMSR) up 1616 drivers/tty/serial/8250/8250_port.c mctrl_gpio_disable_ms(up->gpios); up 1618 drivers/tty/serial/8250/8250_port.c up->ier &= ~UART_IER_MSI; up 1619 drivers/tty/serial/8250/8250_port.c serial_port_out(port, UART_IER, up->ier); up 1624 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 1627 drivers/tty/serial/8250/8250_port.c if (up->bugs & UART_BUG_NOMSR) up 1630 drivers/tty/serial/8250/8250_port.c mctrl_gpio_enable_ms(up->gpios); up 1632 drivers/tty/serial/8250/8250_port.c up->ier |= UART_IER_MSI; up 1634 drivers/tty/serial/8250/8250_port.c serial8250_rpm_get(up); up 1635 drivers/tty/serial/8250/8250_port.c serial_port_out(port, UART_IER, up->ier); up 1636 drivers/tty/serial/8250/8250_port.c serial8250_rpm_put(up); up 1639 drivers/tty/serial/8250/8250_port.c void serial8250_read_char(struct uart_8250_port *up, unsigned char lsr) up 1641 drivers/tty/serial/8250/8250_port.c struct uart_port *port = &up->port; up 1646 drivers/tty/serial/8250/8250_port.c ch = serial_in(up, UART_RX); up 1659 drivers/tty/serial/8250/8250_port.c lsr |= up->lsr_saved_flags; up 1660 drivers/tty/serial/8250/8250_port.c up->lsr_saved_flags = 0; up 1706 drivers/tty/serial/8250/8250_port.c unsigned char serial8250_rx_chars(struct uart_8250_port *up, unsigned char lsr) up 1708 drivers/tty/serial/8250/8250_port.c struct uart_port *port = &up->port; up 1712 drivers/tty/serial/8250/8250_port.c serial8250_read_char(up, lsr); up 1715 drivers/tty/serial/8250/8250_port.c lsr = serial_in(up, UART_LSR); up 1723 drivers/tty/serial/8250/8250_port.c void serial8250_tx_chars(struct uart_8250_port *up) up 1725 drivers/tty/serial/8250/8250_port.c struct uart_port *port = &up->port; up 1730 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_TX, port->x_char); up 1740 drivers/tty/serial/8250/8250_port.c __stop_tx(up); up 1744 drivers/tty/serial/8250/8250_port.c count = up->tx_loadsz; up 1746 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_TX, xmit->buf[xmit->tail]); up 1751 drivers/tty/serial/8250/8250_port.c if ((up->capabilities & UART_CAP_HFIFO) && up 1752 drivers/tty/serial/8250/8250_port.c (serial_in(up, UART_LSR) & BOTH_EMPTY) != BOTH_EMPTY) up 1755 drivers/tty/serial/8250/8250_port.c if ((up->capabilities & UART_CAP_MINI) && up 1756 drivers/tty/serial/8250/8250_port.c !(serial_in(up, UART_LSR) & UART_LSR_THRE)) up 1768 drivers/tty/serial/8250/8250_port.c if (uart_circ_empty(xmit) && !(up->capabilities & UART_CAP_RPM)) up 1769 drivers/tty/serial/8250/8250_port.c __stop_tx(up); up 1774 drivers/tty/serial/8250/8250_port.c unsigned int serial8250_modem_status(struct uart_8250_port *up) up 1776 drivers/tty/serial/8250/8250_port.c struct uart_port *port = &up->port; up 1777 drivers/tty/serial/8250/8250_port.c unsigned int status = serial_in(up, UART_MSR); up 1779 drivers/tty/serial/8250/8250_port.c status |= up->msr_saved_flags; up 1780 drivers/tty/serial/8250/8250_port.c up->msr_saved_flags = 0; up 1781 drivers/tty/serial/8250/8250_port.c if (status & UART_MSR_ANY_DELTA && up->ier & UART_IER_MSI && up 1799 drivers/tty/serial/8250/8250_port.c static bool handle_rx_dma(struct uart_8250_port *up, unsigned int iir) up 1803 drivers/tty/serial/8250/8250_port.c serial8250_rx_dma_flush(up); up 1808 drivers/tty/serial/8250/8250_port.c return up->dma->rx_dma(up); up 1818 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 1828 drivers/tty/serial/8250/8250_port.c if (!up->dma || handle_rx_dma(up, iir)) up 1829 drivers/tty/serial/8250/8250_port.c status = serial8250_rx_chars(up, status); up 1831 drivers/tty/serial/8250/8250_port.c serial8250_modem_status(up); up 1832 drivers/tty/serial/8250/8250_port.c if ((!up->dma || up->dma->tx_err) && (status & UART_LSR_THRE) && up 1833 drivers/tty/serial/8250/8250_port.c (up->ier & UART_IER_THRI)) up 1834 drivers/tty/serial/8250/8250_port.c serial8250_tx_chars(up); up 1843 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 1847 drivers/tty/serial/8250/8250_port.c serial8250_rpm_get(up); up 1852 drivers/tty/serial/8250/8250_port.c serial8250_rpm_put(up); up 1869 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 1872 drivers/tty/serial/8250/8250_port.c serial8250_tx_chars(up); up 1882 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 1886 drivers/tty/serial/8250/8250_port.c serial8250_rpm_get(up); up 1890 drivers/tty/serial/8250/8250_port.c up->lsr_saved_flags |= lsr & LSR_SAVE_FLAGS; up 1893 drivers/tty/serial/8250/8250_port.c serial8250_rpm_put(up); up 1900 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 1904 drivers/tty/serial/8250/8250_port.c serial8250_rpm_get(up); up 1905 drivers/tty/serial/8250/8250_port.c status = serial8250_modem_status(up); up 1906 drivers/tty/serial/8250/8250_port.c serial8250_rpm_put(up); up 1909 drivers/tty/serial/8250/8250_port.c if (up->gpios) up 1910 drivers/tty/serial/8250/8250_port.c return mctrl_gpio_get(up->gpios, &val); up 1925 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 1930 drivers/tty/serial/8250/8250_port.c mcr = (mcr & up->mcr_mask) | up->mcr_force | up->mcr; up 1932 drivers/tty/serial/8250/8250_port.c serial8250_out_MCR(up, mcr); up 1946 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 1949 drivers/tty/serial/8250/8250_port.c serial8250_rpm_get(up); up 1952 drivers/tty/serial/8250/8250_port.c up->lcr |= UART_LCR_SBC; up 1954 drivers/tty/serial/8250/8250_port.c up->lcr &= ~UART_LCR_SBC; up 1955 drivers/tty/serial/8250/8250_port.c serial_port_out(port, UART_LCR, up->lcr); up 1957 drivers/tty/serial/8250/8250_port.c serial8250_rpm_put(up); up 1963 drivers/tty/serial/8250/8250_port.c static void wait_for_xmitr(struct uart_8250_port *up, int bits) up 1969 drivers/tty/serial/8250/8250_port.c status = serial_in(up, UART_LSR); up 1971 drivers/tty/serial/8250/8250_port.c up->lsr_saved_flags |= status & LSR_SAVE_FLAGS; up 1982 drivers/tty/serial/8250/8250_port.c if (up->port.flags & UPF_CONS_FLOW) { up 1984 drivers/tty/serial/8250/8250_port.c unsigned int msr = serial_in(up, UART_MSR); up 1985 drivers/tty/serial/8250/8250_port.c up->msr_saved_flags |= msr & MSR_SAVE_FLAGS; up 2002 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 2006 drivers/tty/serial/8250/8250_port.c serial8250_rpm_get(up); up 2017 drivers/tty/serial/8250/8250_port.c serial8250_rpm_put(up); up 2026 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 2028 drivers/tty/serial/8250/8250_port.c serial8250_rpm_get(up); up 2033 drivers/tty/serial/8250/8250_port.c if (up->capabilities & UART_CAP_UUE) up 2038 drivers/tty/serial/8250/8250_port.c wait_for_xmitr(up, BOTH_EMPTY); up 2048 drivers/tty/serial/8250/8250_port.c wait_for_xmitr(up, BOTH_EMPTY); up 2050 drivers/tty/serial/8250/8250_port.c serial8250_rpm_put(up); up 2057 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 2064 drivers/tty/serial/8250/8250_port.c if (!up->tx_loadsz) up 2065 drivers/tty/serial/8250/8250_port.c up->tx_loadsz = uart_config[port->type].tx_loadsz; up 2066 drivers/tty/serial/8250/8250_port.c if (!up->capabilities) up 2067 drivers/tty/serial/8250/8250_port.c up->capabilities = uart_config[port->type].flags; up 2068 drivers/tty/serial/8250/8250_port.c up->mcr = 0; up 2070 drivers/tty/serial/8250/8250_port.c if (port->iotype != up->cur_iotype) up 2073 drivers/tty/serial/8250/8250_port.c serial8250_rpm_get(up); up 2076 drivers/tty/serial/8250/8250_port.c up->acr = 0; up 2081 drivers/tty/serial/8250/8250_port.c serial_icr_write(up, UART_CSR, 0); /* Reset the UART */ up 2114 drivers/tty/serial/8250/8250_port.c enable_rsa(up); up 2135 drivers/tty/serial/8250/8250_port.c serial8250_clear_fifos(up); up 2163 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 2165 drivers/tty/serial/8250/8250_port.c fctr = serial_in(up, UART_FCTR) & ~(UART_FCTR_RX|UART_FCTR_TX); up 2183 drivers/tty/serial/8250/8250_port.c if ((up->tx_loadsz < 2) || (up->tx_loadsz > port->fifosize)) { up 2190 drivers/tty/serial/8250/8250_port.c port->fifosize - up->tx_loadsz); up 2196 drivers/tty/serial/8250/8250_port.c if (port->irq && (up->port.flags & UPF_SHARE_IRQ)) up 2197 drivers/tty/serial/8250/8250_port.c up->port.irqflags |= IRQF_SHARED; up 2199 drivers/tty/serial/8250/8250_port.c if (port->irq && !(up->port.flags & UPF_NO_THRE_TEST)) { up 2210 drivers/tty/serial/8250/8250_port.c if (up->port.irqflags & IRQF_SHARED) up 2213 drivers/tty/serial/8250/8250_port.c wait_for_xmitr(up, UART_LSR_THRE); up 2233 drivers/tty/serial/8250/8250_port.c up->port.flags & UPF_BUG_THRE) { up 2234 drivers/tty/serial/8250/8250_port.c up->bugs |= UART_BUG_THRE; up 2238 drivers/tty/serial/8250/8250_port.c retval = up->ops->setup_irq(up); up 2248 drivers/tty/serial/8250/8250_port.c if (up->port.flags & UPF_FOURPORT) { up 2249 drivers/tty/serial/8250/8250_port.c if (!up->port.irq) up 2250 drivers/tty/serial/8250/8250_port.c up->port.mctrl |= TIOCM_OUT1; up 2256 drivers/tty/serial/8250/8250_port.c up->port.mctrl |= TIOCM_OUT2; up 2271 drivers/tty/serial/8250/8250_port.c if (up->port.quirks & UPQ_NO_TXEN_TEST) up 2284 drivers/tty/serial/8250/8250_port.c if (!(up->bugs & UART_BUG_TXEN)) { up 2285 drivers/tty/serial/8250/8250_port.c up->bugs |= UART_BUG_TXEN; up 2290 drivers/tty/serial/8250/8250_port.c up->bugs &= ~UART_BUG_TXEN; up 2305 drivers/tty/serial/8250/8250_port.c up->lsr_saved_flags = 0; up 2306 drivers/tty/serial/8250/8250_port.c up->msr_saved_flags = 0; up 2311 drivers/tty/serial/8250/8250_port.c if (up->dma) { up 2312 drivers/tty/serial/8250/8250_port.c retval = serial8250_request_dma(up); up 2316 drivers/tty/serial/8250/8250_port.c up->dma = NULL; up 2325 drivers/tty/serial/8250/8250_port.c up->ier = UART_IER_RLSI | UART_IER_RDI; up 2338 drivers/tty/serial/8250/8250_port.c serial8250_rpm_put(up); up 2352 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 2355 drivers/tty/serial/8250/8250_port.c serial8250_rpm_get(up); up 2360 drivers/tty/serial/8250/8250_port.c up->ier = 0; up 2366 drivers/tty/serial/8250/8250_port.c if (up->dma) up 2367 drivers/tty/serial/8250/8250_port.c serial8250_release_dma(up); up 2385 drivers/tty/serial/8250/8250_port.c serial8250_clear_fifos(up); up 2391 drivers/tty/serial/8250/8250_port.c disable_rsa(up); up 2399 drivers/tty/serial/8250/8250_port.c serial8250_rpm_put(up); up 2401 drivers/tty/serial/8250/8250_port.c up->ops->release_irq(up); up 2414 drivers/tty/serial/8250/8250_port.c static unsigned int npcm_get_divisor(struct uart_8250_port *up, up 2417 drivers/tty/serial/8250/8250_port.c struct uart_port *port = &up->port; up 2426 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 2440 drivers/tty/serial/8250/8250_port.c else if (up->port.type == PORT_NPCM) up 2441 drivers/tty/serial/8250/8250_port.c quot = npcm_get_divisor(up, baud); up 2448 drivers/tty/serial/8250/8250_port.c if (up->bugs & UART_BUG_QUOT && (quot & 0xff) == 0) up 2464 drivers/tty/serial/8250/8250_port.c static unsigned char serial8250_compute_lcr(struct uart_8250_port *up, up 2489 drivers/tty/serial/8250/8250_port.c if (up->bugs & UART_BUG_PARITY) up 2490 drivers/tty/serial/8250/8250_port.c up->fifo_bug = true; up 2505 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 2508 drivers/tty/serial/8250/8250_port.c if (is_omap1510_8250(up)) { up 2520 drivers/tty/serial/8250/8250_port.c if (up->capabilities & UART_NATSEMI) up 2523 drivers/tty/serial/8250/8250_port.c serial_port_out(port, UART_LCR, up->lcr | UART_LCR_DLAB); up 2525 drivers/tty/serial/8250/8250_port.c serial_dl_write(up, quot); up 2557 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 2562 drivers/tty/serial/8250/8250_port.c if (up->capabilities & UART_CAP_MINI) { up 2568 drivers/tty/serial/8250/8250_port.c cval = serial8250_compute_lcr(up, termios->c_cflag); up 2577 drivers/tty/serial/8250/8250_port.c serial8250_rpm_get(up); up 2580 drivers/tty/serial/8250/8250_port.c up->lcr = cval; /* Save computed LCR */ up 2582 drivers/tty/serial/8250/8250_port.c if (up->capabilities & UART_CAP_FIFO && port->fifosize > 1) { up 2584 drivers/tty/serial/8250/8250_port.c if ((baud < 2400 && !up->dma) || up->fifo_bug) { up 2585 drivers/tty/serial/8250/8250_port.c up->fcr &= ~UART_FCR_TRIGGER_MASK; up 2586 drivers/tty/serial/8250/8250_port.c up->fcr |= UART_FCR_TRIGGER_1; up 2595 drivers/tty/serial/8250/8250_port.c if (up->capabilities & UART_CAP_AFE) { up 2596 drivers/tty/serial/8250/8250_port.c up->mcr &= ~UART_MCR_AFE; up 2598 drivers/tty/serial/8250/8250_port.c up->mcr |= UART_MCR_AFE; up 2637 drivers/tty/serial/8250/8250_port.c up->ier &= ~UART_IER_MSI; up 2638 drivers/tty/serial/8250/8250_port.c if (!(up->bugs & UART_BUG_NOMSR) && up 2639 drivers/tty/serial/8250/8250_port.c UART_ENABLE_MS(&up->port, termios->c_cflag)) up 2640 drivers/tty/serial/8250/8250_port.c up->ier |= UART_IER_MSI; up 2641 drivers/tty/serial/8250/8250_port.c if (up->capabilities & UART_CAP_UUE) up 2642 drivers/tty/serial/8250/8250_port.c up->ier |= UART_IER_UUE; up 2643 drivers/tty/serial/8250/8250_port.c if (up->capabilities & UART_CAP_RTOIE) up 2644 drivers/tty/serial/8250/8250_port.c up->ier |= UART_IER_RTOIE; up 2646 drivers/tty/serial/8250/8250_port.c serial_port_out(port, UART_IER, up->ier); up 2648 drivers/tty/serial/8250/8250_port.c if (up->capabilities & UART_CAP_EFR) { up 2672 drivers/tty/serial/8250/8250_port.c serial_port_out(port, UART_FCR, up->fcr); up 2674 drivers/tty/serial/8250/8250_port.c serial_port_out(port, UART_LCR, up->lcr); /* reset DLAB */ up 2677 drivers/tty/serial/8250/8250_port.c if (up->fcr & UART_FCR_ENABLE_FIFO) up 2679 drivers/tty/serial/8250/8250_port.c serial_port_out(port, UART_FCR, up->fcr); /* set fcr */ up 2683 drivers/tty/serial/8250/8250_port.c serial8250_rpm_put(up); up 2765 drivers/tty/serial/8250/8250_port.c static int serial8250_request_std_resource(struct uart_8250_port *up) up 2767 drivers/tty/serial/8250/8250_port.c unsigned int size = serial8250_port_size(up); up 2768 drivers/tty/serial/8250/8250_port.c struct uart_port *port = &up->port; up 2804 drivers/tty/serial/8250/8250_port.c static void serial8250_release_std_resource(struct uart_8250_port *up) up 2806 drivers/tty/serial/8250/8250_port.c unsigned int size = serial8250_port_size(up); up 2807 drivers/tty/serial/8250/8250_port.c struct uart_port *port = &up->port; up 2836 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 2838 drivers/tty/serial/8250/8250_port.c serial8250_release_std_resource(up); up 2843 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 2845 drivers/tty/serial/8250/8250_port.c return serial8250_request_std_resource(up); up 2848 drivers/tty/serial/8250/8250_port.c static int fcr_get_rxtrig_bytes(struct uart_8250_port *up) up 2850 drivers/tty/serial/8250/8250_port.c const struct serial8250_config *conf_type = &uart_config[up->port.type]; up 2853 drivers/tty/serial/8250/8250_port.c bytes = conf_type->rxtrig_bytes[UART_FCR_R_TRIG_BITS(up->fcr)]; up 2858 drivers/tty/serial/8250/8250_port.c static int bytes_to_fcr_rxtrig(struct uart_8250_port *up, unsigned char bytes) up 2860 drivers/tty/serial/8250/8250_port.c const struct serial8250_config *conf_type = &uart_config[up->port.type]; up 2879 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(uport); up 2881 drivers/tty/serial/8250/8250_port.c if (!(up->capabilities & UART_CAP_FIFO) || uport->fifosize <= 1) up 2884 drivers/tty/serial/8250/8250_port.c return fcr_get_rxtrig_bytes(up); up 2915 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(uport); up 2918 drivers/tty/serial/8250/8250_port.c if (!(up->capabilities & UART_CAP_FIFO) || uport->fifosize <= 1 || up 2919 drivers/tty/serial/8250/8250_port.c up->fifo_bug) up 2922 drivers/tty/serial/8250/8250_port.c rxtrig = bytes_to_fcr_rxtrig(up, bytes); up 2926 drivers/tty/serial/8250/8250_port.c serial8250_clear_fifos(up); up 2927 drivers/tty/serial/8250/8250_port.c up->fcr &= ~UART_FCR_TRIGGER_MASK; up 2928 drivers/tty/serial/8250/8250_port.c up->fcr |= (unsigned char)rxtrig; up 2929 drivers/tty/serial/8250/8250_port.c serial_out(up, UART_FCR, up->fcr); up 2978 drivers/tty/serial/8250/8250_port.c static void register_dev_spec_attr_grp(struct uart_8250_port *up) up 2980 drivers/tty/serial/8250/8250_port.c const struct serial8250_config *conf_type = &uart_config[up->port.type]; up 2983 drivers/tty/serial/8250/8250_port.c up->port.attr_group = &serial8250_dev_attr_group; up 2988 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 2995 drivers/tty/serial/8250/8250_port.c ret = serial8250_request_std_resource(up); up 2999 drivers/tty/serial/8250/8250_port.c if (port->iotype != up->cur_iotype) up 3003 drivers/tty/serial/8250/8250_port.c autoconfig(up); up 3007 drivers/tty/serial/8250/8250_port.c up->bugs |= UART_BUG_NOMSR; up 3011 drivers/tty/serial/8250/8250_port.c up->bugs |= UART_BUG_NOMSR; up 3014 drivers/tty/serial/8250/8250_port.c autoconfig_irq(up); up 3017 drivers/tty/serial/8250/8250_port.c serial8250_release_std_resource(up); up 3019 drivers/tty/serial/8250/8250_port.c register_dev_spec_attr_grp(up); up 3020 drivers/tty/serial/8250/8250_port.c up->fcr = uart_config[up->port.type].fcr; up 3070 drivers/tty/serial/8250/8250_port.c void serial8250_init_port(struct uart_8250_port *up) up 3072 drivers/tty/serial/8250/8250_port.c struct uart_port *port = &up->port; up 3077 drivers/tty/serial/8250/8250_port.c up->cur_iotype = 0xFF; up 3081 drivers/tty/serial/8250/8250_port.c void serial8250_set_defaults(struct uart_8250_port *up) up 3083 drivers/tty/serial/8250/8250_port.c struct uart_port *port = &up->port; up 3085 drivers/tty/serial/8250/8250_port.c if (up->port.flags & UPF_FIXED_TYPE) { up 3086 drivers/tty/serial/8250/8250_port.c unsigned int type = up->port.type; up 3088 drivers/tty/serial/8250/8250_port.c if (!up->port.fifosize) up 3089 drivers/tty/serial/8250/8250_port.c up->port.fifosize = uart_config[type].fifo_size; up 3090 drivers/tty/serial/8250/8250_port.c if (!up->tx_loadsz) up 3091 drivers/tty/serial/8250/8250_port.c up->tx_loadsz = uart_config[type].tx_loadsz; up 3092 drivers/tty/serial/8250/8250_port.c if (!up->capabilities) up 3093 drivers/tty/serial/8250/8250_port.c up->capabilities = uart_config[type].flags; up 3099 drivers/tty/serial/8250/8250_port.c if (up->dma) { up 3100 drivers/tty/serial/8250/8250_port.c if (!up->dma->tx_dma) up 3101 drivers/tty/serial/8250/8250_port.c up->dma->tx_dma = serial8250_tx_dma; up 3102 drivers/tty/serial/8250/8250_port.c if (!up->dma->rx_dma) up 3103 drivers/tty/serial/8250/8250_port.c up->dma->rx_dma = serial8250_rx_dma; up 3112 drivers/tty/serial/8250/8250_port.c struct uart_8250_port *up = up_to_u8250p(port); up 3114 drivers/tty/serial/8250/8250_port.c wait_for_xmitr(up, UART_LSR_THRE); up 3121 drivers/tty/serial/8250/8250_port.c static void serial8250_console_restore(struct uart_8250_port *up) up 3123 drivers/tty/serial/8250/8250_port.c struct uart_port *port = &up->port; up 3135 drivers/tty/serial/8250/8250_port.c serial_port_out(port, UART_LCR, up->lcr); up 3136 drivers/tty/serial/8250/8250_port.c serial8250_out_MCR(up, UART_MCR_DTR | UART_MCR_RTS); up 3145 drivers/tty/serial/8250/8250_port.c void serial8250_console_write(struct uart_8250_port *up, const char *s, up 3148 drivers/tty/serial/8250/8250_port.c struct uart_port *port = &up->port; up 3155 drivers/tty/serial/8250/8250_port.c serial8250_rpm_get(up); up 3167 drivers/tty/serial/8250/8250_port.c if (up->capabilities & UART_CAP_UUE) up 3173 drivers/tty/serial/8250/8250_port.c if (up->canary && (up->canary != serial_port_in(port, UART_SCR))) { up 3174 drivers/tty/serial/8250/8250_port.c serial8250_console_restore(up); up 3175 drivers/tty/serial/8250/8250_port.c up->canary = 0; up 3184 drivers/tty/serial/8250/8250_port.c wait_for_xmitr(up, BOTH_EMPTY); up 3194 drivers/tty/serial/8250/8250_port.c if (up->msr_saved_flags) up 3195 drivers/tty/serial/8250/8250_port.c serial8250_modem_status(up); up 3199 drivers/tty/serial/8250/8250_port.c serial8250_rpm_put(up); up 65 drivers/tty/serial/8250/8250_pxa.c static void serial_pxa_dl_write(struct uart_8250_port *up, int value) up 69 drivers/tty/serial/8250/8250_pxa.c serial_out(up, UART_DLL, value & 0xff); up 74 drivers/tty/serial/8250/8250_pxa.c dll = serial_in(up, UART_DLL); up 77 drivers/tty/serial/8250/8250_pxa.c serial_out(up, UART_DLM, value >> 8 & 0xff); up 148 drivers/tty/serial/8250/8250_uniphier.c static int uniphier_serial_dl_read(struct uart_8250_port *up) up 150 drivers/tty/serial/8250/8250_uniphier.c return readl(up->port.membase + UNIPHIER_UART_DLR); up 153 drivers/tty/serial/8250/8250_uniphier.c static void uniphier_serial_dl_write(struct uart_8250_port *up, int value) up 155 drivers/tty/serial/8250/8250_uniphier.c writel(value, up->port.membase + UNIPHIER_UART_DLR); up 161 drivers/tty/serial/8250/8250_uniphier.c struct uart_8250_port up; up 186 drivers/tty/serial/8250/8250_uniphier.c memset(&up, 0, sizeof(up)); up 193 drivers/tty/serial/8250/8250_uniphier.c up.port.line = ret; up 205 drivers/tty/serial/8250/8250_uniphier.c up.port.uartclk = clk_get_rate(priv->clk); up 209 drivers/tty/serial/8250/8250_uniphier.c up.port.dev = dev; up 210 drivers/tty/serial/8250/8250_uniphier.c up.port.private_data = priv; up 211 drivers/tty/serial/8250/8250_uniphier.c up.port.mapbase = regs->start; up 212 drivers/tty/serial/8250/8250_uniphier.c up.port.mapsize = resource_size(regs); up 213 drivers/tty/serial/8250/8250_uniphier.c up.port.membase = membase; up 214 drivers/tty/serial/8250/8250_uniphier.c up.port.irq = irq; up 216 drivers/tty/serial/8250/8250_uniphier.c up.port.type = PORT_16550A; up 217 drivers/tty/serial/8250/8250_uniphier.c up.port.iotype = UPIO_MEM32; up 218 drivers/tty/serial/8250/8250_uniphier.c up.port.fifosize = 64; up 219 drivers/tty/serial/8250/8250_uniphier.c up.port.regshift = UNIPHIER_UART_REGSHIFT; up 220 drivers/tty/serial/8250/8250_uniphier.c up.port.flags = UPF_FIXED_PORT | UPF_FIXED_TYPE; up 221 drivers/tty/serial/8250/8250_uniphier.c up.capabilities = UART_CAP_FIFO; up 224 drivers/tty/serial/8250/8250_uniphier.c up.capabilities |= UART_CAP_AFE; up 226 drivers/tty/serial/8250/8250_uniphier.c up.port.serial_in = uniphier_serial_in; up 227 drivers/tty/serial/8250/8250_uniphier.c up.port.serial_out = uniphier_serial_out; up 228 drivers/tty/serial/8250/8250_uniphier.c up.dl_read = uniphier_serial_dl_read; up 229 drivers/tty/serial/8250/8250_uniphier.c up.dl_write = uniphier_serial_dl_write; up 231 drivers/tty/serial/8250/8250_uniphier.c ret = serial8250_register_8250_port(&up); up 257 drivers/tty/serial/8250/8250_uniphier.c struct uart_8250_port *up = serial8250_get_port(priv->line); up 261 drivers/tty/serial/8250/8250_uniphier.c if (!uart_console(&up->port) || console_suspend_enabled) up 270 drivers/tty/serial/8250/8250_uniphier.c struct uart_8250_port *up = serial8250_get_port(priv->line); up 273 drivers/tty/serial/8250/8250_uniphier.c if (!uart_console(&up->port) || console_suspend_enabled) { up 52 drivers/tty/serial/ar933x_uart.c static inline unsigned int ar933x_uart_read(struct ar933x_uart_port *up, up 55 drivers/tty/serial/ar933x_uart.c return readl(up->port.membase + offset); up 58 drivers/tty/serial/ar933x_uart.c static inline void ar933x_uart_write(struct ar933x_uart_port *up, up 61 drivers/tty/serial/ar933x_uart.c writel(value, up->port.membase + offset); up 64 drivers/tty/serial/ar933x_uart.c static inline void ar933x_uart_rmw(struct ar933x_uart_port *up, up 71 drivers/tty/serial/ar933x_uart.c t = ar933x_uart_read(up, offset); up 74 drivers/tty/serial/ar933x_uart.c ar933x_uart_write(up, offset, t); up 77 drivers/tty/serial/ar933x_uart.c static inline void ar933x_uart_rmw_set(struct ar933x_uart_port *up, up 81 drivers/tty/serial/ar933x_uart.c ar933x_uart_rmw(up, offset, 0, val); up 84 drivers/tty/serial/ar933x_uart.c static inline void ar933x_uart_rmw_clear(struct ar933x_uart_port *up, up 88 drivers/tty/serial/ar933x_uart.c ar933x_uart_rmw(up, offset, val, 0); up 91 drivers/tty/serial/ar933x_uart.c static inline void ar933x_uart_start_tx_interrupt(struct ar933x_uart_port *up) up 93 drivers/tty/serial/ar933x_uart.c up->ier |= AR933X_UART_INT_TX_EMPTY; up 94 drivers/tty/serial/ar933x_uart.c ar933x_uart_write(up, AR933X_UART_INT_EN_REG, up->ier); up 97 drivers/tty/serial/ar933x_uart.c static inline void ar933x_uart_stop_tx_interrupt(struct ar933x_uart_port *up) up 99 drivers/tty/serial/ar933x_uart.c up->ier &= ~AR933X_UART_INT_TX_EMPTY; up 100 drivers/tty/serial/ar933x_uart.c ar933x_uart_write(up, AR933X_UART_INT_EN_REG, up->ier); up 103 drivers/tty/serial/ar933x_uart.c static inline void ar933x_uart_putc(struct ar933x_uart_port *up, int ch) up 109 drivers/tty/serial/ar933x_uart.c ar933x_uart_write(up, AR933X_UART_DATA_REG, rdata); up 114 drivers/tty/serial/ar933x_uart.c struct ar933x_uart_port *up = up 119 drivers/tty/serial/ar933x_uart.c spin_lock_irqsave(&up->port.lock, flags); up 120 drivers/tty/serial/ar933x_uart.c rdata = ar933x_uart_read(up, AR933X_UART_DATA_REG); up 121 drivers/tty/serial/ar933x_uart.c spin_unlock_irqrestore(&up->port.lock, flags); up 137 drivers/tty/serial/ar933x_uart.c struct ar933x_uart_port *up = up 140 drivers/tty/serial/ar933x_uart.c ar933x_uart_start_tx_interrupt(up); up 145 drivers/tty/serial/ar933x_uart.c struct ar933x_uart_port *up = up 148 drivers/tty/serial/ar933x_uart.c ar933x_uart_stop_tx_interrupt(up); up 153 drivers/tty/serial/ar933x_uart.c struct ar933x_uart_port *up = up 156 drivers/tty/serial/ar933x_uart.c up->ier &= ~AR933X_UART_INT_RX_VALID; up 157 drivers/tty/serial/ar933x_uart.c ar933x_uart_write(up, AR933X_UART_INT_EN_REG, up->ier); up 162 drivers/tty/serial/ar933x_uart.c struct ar933x_uart_port *up = up 166 drivers/tty/serial/ar933x_uart.c spin_lock_irqsave(&up->port.lock, flags); up 168 drivers/tty/serial/ar933x_uart.c ar933x_uart_rmw_set(up, AR933X_UART_CS_REG, up 171 drivers/tty/serial/ar933x_uart.c ar933x_uart_rmw_clear(up, AR933X_UART_CS_REG, up 173 drivers/tty/serial/ar933x_uart.c spin_unlock_irqrestore(&up->port.lock, flags); up 231 drivers/tty/serial/ar933x_uart.c struct ar933x_uart_port *up = up 257 drivers/tty/serial/ar933x_uart.c baud = uart_get_baud_rate(port, new, old, up->min_baud, up->max_baud); up 264 drivers/tty/serial/ar933x_uart.c spin_lock_irqsave(&up->port.lock, flags); up 267 drivers/tty/serial/ar933x_uart.c ar933x_uart_rmw_clear(up, AR933X_UART_CS_REG, up 273 drivers/tty/serial/ar933x_uart.c up->port.ignore_status_mask = 0; up 277 drivers/tty/serial/ar933x_uart.c up->port.ignore_status_mask |= AR933X_DUMMY_STATUS_RD; up 279 drivers/tty/serial/ar933x_uart.c ar933x_uart_write(up, AR933X_UART_CLOCK_REG, up 283 drivers/tty/serial/ar933x_uart.c ar933x_uart_rmw(up, AR933X_UART_CS_REG, AR933X_UART_CS_PARITY_M, cs); up 286 drivers/tty/serial/ar933x_uart.c ar933x_uart_rmw_set(up, AR933X_UART_CS_REG, up 290 drivers/tty/serial/ar933x_uart.c ar933x_uart_rmw_set(up, AR933X_UART_CS_REG, up 294 drivers/tty/serial/ar933x_uart.c ar933x_uart_rmw(up, AR933X_UART_CS_REG, up 298 drivers/tty/serial/ar933x_uart.c spin_unlock_irqrestore(&up->port.lock, flags); up 304 drivers/tty/serial/ar933x_uart.c static void ar933x_uart_rx_chars(struct ar933x_uart_port *up) up 306 drivers/tty/serial/ar933x_uart.c struct tty_port *port = &up->port.state->port; up 313 drivers/tty/serial/ar933x_uart.c rdata = ar933x_uart_read(up, AR933X_UART_DATA_REG); up 318 drivers/tty/serial/ar933x_uart.c ar933x_uart_write(up, AR933X_UART_DATA_REG, up 321 drivers/tty/serial/ar933x_uart.c up->port.icount.rx++; up 324 drivers/tty/serial/ar933x_uart.c if (uart_handle_sysrq_char(&up->port, ch)) up 327 drivers/tty/serial/ar933x_uart.c if ((up->port.ignore_status_mask & AR933X_DUMMY_STATUS_RD) == 0) up 331 drivers/tty/serial/ar933x_uart.c spin_unlock(&up->port.lock); up 333 drivers/tty/serial/ar933x_uart.c spin_lock(&up->port.lock); up 336 drivers/tty/serial/ar933x_uart.c static void ar933x_uart_tx_chars(struct ar933x_uart_port *up) up 338 drivers/tty/serial/ar933x_uart.c struct circ_buf *xmit = &up->port.state->xmit; up 341 drivers/tty/serial/ar933x_uart.c if (uart_tx_stopped(&up->port)) up 344 drivers/tty/serial/ar933x_uart.c count = up->port.fifosize; up 348 drivers/tty/serial/ar933x_uart.c rdata = ar933x_uart_read(up, AR933X_UART_DATA_REG); up 352 drivers/tty/serial/ar933x_uart.c if (up->port.x_char) { up 353 drivers/tty/serial/ar933x_uart.c ar933x_uart_putc(up, up->port.x_char); up 354 drivers/tty/serial/ar933x_uart.c up->port.icount.tx++; up 355 drivers/tty/serial/ar933x_uart.c up->port.x_char = 0; up 362 drivers/tty/serial/ar933x_uart.c ar933x_uart_putc(up, xmit->buf[xmit->tail]); up 365 drivers/tty/serial/ar933x_uart.c up->port.icount.tx++; up 369 drivers/tty/serial/ar933x_uart.c uart_write_wakeup(&up->port); up 372 drivers/tty/serial/ar933x_uart.c ar933x_uart_start_tx_interrupt(up); up 377 drivers/tty/serial/ar933x_uart.c struct ar933x_uart_port *up = dev_id; up 380 drivers/tty/serial/ar933x_uart.c status = ar933x_uart_read(up, AR933X_UART_CS_REG); up 384 drivers/tty/serial/ar933x_uart.c spin_lock(&up->port.lock); up 386 drivers/tty/serial/ar933x_uart.c status = ar933x_uart_read(up, AR933X_UART_INT_REG); up 387 drivers/tty/serial/ar933x_uart.c status &= ar933x_uart_read(up, AR933X_UART_INT_EN_REG); up 390 drivers/tty/serial/ar933x_uart.c ar933x_uart_write(up, AR933X_UART_INT_REG, up 392 drivers/tty/serial/ar933x_uart.c ar933x_uart_rx_chars(up); up 396 drivers/tty/serial/ar933x_uart.c ar933x_uart_write(up, AR933X_UART_INT_REG, up 398 drivers/tty/serial/ar933x_uart.c ar933x_uart_stop_tx_interrupt(up); up 399 drivers/tty/serial/ar933x_uart.c ar933x_uart_tx_chars(up); up 402 drivers/tty/serial/ar933x_uart.c spin_unlock(&up->port.lock); up 409 drivers/tty/serial/ar933x_uart.c struct ar933x_uart_port *up = up 414 drivers/tty/serial/ar933x_uart.c ret = request_irq(up->port.irq, ar933x_uart_interrupt, up 415 drivers/tty/serial/ar933x_uart.c up->port.irqflags, dev_name(up->port.dev), up); up 419 drivers/tty/serial/ar933x_uart.c spin_lock_irqsave(&up->port.lock, flags); up 422 drivers/tty/serial/ar933x_uart.c ar933x_uart_rmw_set(up, AR933X_UART_CS_REG, up 426 drivers/tty/serial/ar933x_uart.c ar933x_uart_rmw_set(up, AR933X_UART_CS_REG, up 430 drivers/tty/serial/ar933x_uart.c up->ier = AR933X_UART_INT_RX_VALID; up 431 drivers/tty/serial/ar933x_uart.c ar933x_uart_write(up, AR933X_UART_INT_EN_REG, up->ier); up 433 drivers/tty/serial/ar933x_uart.c spin_unlock_irqrestore(&up->port.lock, flags); up 440 drivers/tty/serial/ar933x_uart.c struct ar933x_uart_port *up = up 444 drivers/tty/serial/ar933x_uart.c up->ier = 0; up 445 drivers/tty/serial/ar933x_uart.c ar933x_uart_write(up, AR933X_UART_INT_EN_REG, up->ier); up 448 drivers/tty/serial/ar933x_uart.c ar933x_uart_rmw_clear(up, AR933X_UART_CS_REG, up 451 drivers/tty/serial/ar933x_uart.c free_irq(up->port.irq, up); up 479 drivers/tty/serial/ar933x_uart.c struct ar933x_uart_port *up = up 489 drivers/tty/serial/ar933x_uart.c if (ser->baud_base < up->min_baud || up 490 drivers/tty/serial/ar933x_uart.c ser->baud_base > up->max_baud) up 518 drivers/tty/serial/ar933x_uart.c static void ar933x_uart_wait_xmitr(struct ar933x_uart_port *up) up 525 drivers/tty/serial/ar933x_uart.c status = ar933x_uart_read(up, AR933X_UART_DATA_REG); up 534 drivers/tty/serial/ar933x_uart.c struct ar933x_uart_port *up = up 537 drivers/tty/serial/ar933x_uart.c ar933x_uart_wait_xmitr(up); up 538 drivers/tty/serial/ar933x_uart.c ar933x_uart_putc(up, ch); up 544 drivers/tty/serial/ar933x_uart.c struct ar933x_uart_port *up = ar933x_console_ports[co->index]; up 551 drivers/tty/serial/ar933x_uart.c if (up->port.sysrq) up 554 drivers/tty/serial/ar933x_uart.c locked = spin_trylock(&up->port.lock); up 556 drivers/tty/serial/ar933x_uart.c spin_lock(&up->port.lock); up 561 drivers/tty/serial/ar933x_uart.c int_en = ar933x_uart_read(up, AR933X_UART_INT_EN_REG); up 562 drivers/tty/serial/ar933x_uart.c ar933x_uart_write(up, AR933X_UART_INT_EN_REG, 0); up 564 drivers/tty/serial/ar933x_uart.c uart_console_write(&up->port, s, count, ar933x_uart_console_putchar); up 570 drivers/tty/serial/ar933x_uart.c ar933x_uart_wait_xmitr(up); up 571 drivers/tty/serial/ar933x_uart.c ar933x_uart_write(up, AR933X_UART_INT_EN_REG, int_en); up 573 drivers/tty/serial/ar933x_uart.c ar933x_uart_write(up, AR933X_UART_INT_REG, AR933X_UART_INT_ALLINTS); up 576 drivers/tty/serial/ar933x_uart.c spin_unlock(&up->port.lock); up 583 drivers/tty/serial/ar933x_uart.c struct ar933x_uart_port *up; up 592 drivers/tty/serial/ar933x_uart.c up = ar933x_console_ports[co->index]; up 593 drivers/tty/serial/ar933x_uart.c if (!up) up 599 drivers/tty/serial/ar933x_uart.c return uart_set_options(&up->port, co, baud, parity, bits, flow); up 623 drivers/tty/serial/ar933x_uart.c struct ar933x_uart_port *up; up 655 drivers/tty/serial/ar933x_uart.c up = devm_kzalloc(&pdev->dev, sizeof(struct ar933x_uart_port), up 657 drivers/tty/serial/ar933x_uart.c if (!up) up 660 drivers/tty/serial/ar933x_uart.c up->clk = devm_clk_get(&pdev->dev, "uart"); up 661 drivers/tty/serial/ar933x_uart.c if (IS_ERR(up->clk)) { up 663 drivers/tty/serial/ar933x_uart.c return PTR_ERR(up->clk); up 666 drivers/tty/serial/ar933x_uart.c port = &up->port; up 673 drivers/tty/serial/ar933x_uart.c ret = clk_prepare_enable(up->clk); up 677 drivers/tty/serial/ar933x_uart.c port->uartclk = clk_get_rate(up->clk); up 695 drivers/tty/serial/ar933x_uart.c up->min_baud = max_t(unsigned int, baud, AR933X_UART_MIN_BAUD); up 698 drivers/tty/serial/ar933x_uart.c up->max_baud = min_t(unsigned int, baud, AR933X_UART_MAX_BAUD); up 701 drivers/tty/serial/ar933x_uart.c ar933x_console_ports[up->port.line] = up; up 704 drivers/tty/serial/ar933x_uart.c ret = uart_add_one_port(&ar933x_uart_driver, &up->port); up 708 drivers/tty/serial/ar933x_uart.c platform_set_drvdata(pdev, up); up 712 drivers/tty/serial/ar933x_uart.c clk_disable_unprepare(up->clk); up 718 drivers/tty/serial/ar933x_uart.c struct ar933x_uart_port *up; up 720 drivers/tty/serial/ar933x_uart.c up = platform_get_drvdata(pdev); up 722 drivers/tty/serial/ar933x_uart.c if (up) { up 723 drivers/tty/serial/ar933x_uart.c uart_remove_one_port(&ar933x_uart_driver, &up->port); up 724 drivers/tty/serial/ar933x_uart.c clk_disable_unprepare(up->clk); up 857 drivers/tty/serial/cpm_uart/cpm_uart_core.c smc_uart_t __iomem *up; up 862 drivers/tty/serial/cpm_uart/cpm_uart_core.c up = pinfo->smcup; up 873 drivers/tty/serial/cpm_uart/cpm_uart_core.c out_be16(&up->smc_rbptr, in_be16(&pinfo->smcup->smc_rbase)); up 874 drivers/tty/serial/cpm_uart/cpm_uart_core.c out_be16(&up->smc_tbptr, in_be16(&pinfo->smcup->smc_tbase)); up 875 drivers/tty/serial/cpm_uart/cpm_uart_core.c out_be32(&up->smc_rstate, 0); up 876 drivers/tty/serial/cpm_uart/cpm_uart_core.c out_be32(&up->smc_tstate, 0); up 877 drivers/tty/serial/cpm_uart/cpm_uart_core.c out_be16(&up->smc_brkcr, 1); /* number of break chars */ up 878 drivers/tty/serial/cpm_uart/cpm_uart_core.c out_be16(&up->smc_brkec, 0); up 883 drivers/tty/serial/cpm_uart/cpm_uart_core.c cpm_set_smc_fcr(up); up 886 drivers/tty/serial/cpm_uart/cpm_uart_core.c out_be16(&up->smc_mrblr, pinfo->rx_fifosize); up 887 drivers/tty/serial/cpm_uart/cpm_uart_core.c out_be16(&up->smc_maxidl, 0x10); up 888 drivers/tty/serial/cpm_uart/cpm_uart_core.c out_be16(&up->smc_brklen, 0); up 889 drivers/tty/serial/cpm_uart/cpm_uart_core.c out_be16(&up->smc_brkec, 0); up 890 drivers/tty/serial/cpm_uart/cpm_uart_core.c out_be16(&up->smc_brkcr, 1); up 25 drivers/tty/serial/cpm_uart/cpm_uart_cpm1.h static inline void cpm_set_smc_fcr(smc_uart_t __iomem * up) up 27 drivers/tty/serial/cpm_uart/cpm_uart_cpm1.h out_8(&up->smc_rfcr, SMC_EB); up 28 drivers/tty/serial/cpm_uart/cpm_uart_cpm1.h out_8(&up->smc_tfcr, SMC_EB); up 25 drivers/tty/serial/cpm_uart/cpm_uart_cpm2.h static inline void cpm_set_smc_fcr(smc_uart_t __iomem *up) up 27 drivers/tty/serial/cpm_uart/cpm_uart_cpm2.h out_8(&up->smc_rfcr, CPMFCR_GBL | CPMFCR_EB); up 28 drivers/tty/serial/cpm_uart/cpm_uart_cpm2.h out_8(&up->smc_tfcr, CPMFCR_GBL | CPMFCR_EB); up 237 drivers/tty/serial/ip22zilog.c static void ip22zilog_maybe_update_regs(struct uart_ip22zilog_port *up, up 240 drivers/tty/serial/ip22zilog.c if (!ZS_REGS_HELD(up)) { up 241 drivers/tty/serial/ip22zilog.c if (ZS_TX_ACTIVE(up)) { up 242 drivers/tty/serial/ip22zilog.c up->flags |= IP22ZILOG_FLAG_REGS_HELD; up 244 drivers/tty/serial/ip22zilog.c __load_zsregs(channel, up->curregs); up 252 drivers/tty/serial/ip22zilog.c static bool ip22zilog_receive_chars(struct uart_ip22zilog_port *up, up 257 drivers/tty/serial/ip22zilog.c bool push = up->port.state != NULL; up 275 drivers/tty/serial/ip22zilog.c ch &= up->parity_mask; up 279 drivers/tty/serial/ip22zilog.c r1 |= up->tty_break; up 283 drivers/tty/serial/ip22zilog.c up->port.icount.rx++; up 285 drivers/tty/serial/ip22zilog.c up->tty_break = 0; up 288 drivers/tty/serial/ip22zilog.c up->port.icount.brk++; up 294 drivers/tty/serial/ip22zilog.c up->port.icount.parity++; up 296 drivers/tty/serial/ip22zilog.c up->port.icount.frame++; up 298 drivers/tty/serial/ip22zilog.c up->port.icount.overrun++; up 299 drivers/tty/serial/ip22zilog.c r1 &= up->port.read_status_mask; up 308 drivers/tty/serial/ip22zilog.c if (uart_handle_sysrq_char(&up->port, ch)) up 312 drivers/tty/serial/ip22zilog.c uart_insert_char(&up->port, r1, Rx_OVR, ch, flag); up 317 drivers/tty/serial/ip22zilog.c static void ip22zilog_status_handle(struct uart_ip22zilog_port *up, up 329 drivers/tty/serial/ip22zilog.c if (up->curregs[R15] & BRKIE) { up 330 drivers/tty/serial/ip22zilog.c if ((status & BRK_ABRT) && !(up->prev_status & BRK_ABRT)) { up 331 drivers/tty/serial/ip22zilog.c if (uart_handle_break(&up->port)) up 332 drivers/tty/serial/ip22zilog.c up->tty_break = Rx_SYS; up 334 drivers/tty/serial/ip22zilog.c up->tty_break = Rx_BRK; up 338 drivers/tty/serial/ip22zilog.c if (ZS_WANTS_MODEM_STATUS(up)) { up 340 drivers/tty/serial/ip22zilog.c up->port.icount.dsr++; up 346 drivers/tty/serial/ip22zilog.c if ((status ^ up->prev_status) ^ DCD) up 347 drivers/tty/serial/ip22zilog.c uart_handle_dcd_change(&up->port, up 349 drivers/tty/serial/ip22zilog.c if ((status ^ up->prev_status) ^ CTS) up 350 drivers/tty/serial/ip22zilog.c uart_handle_cts_change(&up->port, up 353 drivers/tty/serial/ip22zilog.c wake_up_interruptible(&up->port.state->port.delta_msr_wait); up 356 drivers/tty/serial/ip22zilog.c up->prev_status = status; up 359 drivers/tty/serial/ip22zilog.c static void ip22zilog_transmit_chars(struct uart_ip22zilog_port *up, up 364 drivers/tty/serial/ip22zilog.c if (ZS_IS_CONS(up)) { up 380 drivers/tty/serial/ip22zilog.c up->flags &= ~IP22ZILOG_FLAG_TX_ACTIVE; up 382 drivers/tty/serial/ip22zilog.c if (ZS_REGS_HELD(up)) { up 383 drivers/tty/serial/ip22zilog.c __load_zsregs(channel, up->curregs); up 384 drivers/tty/serial/ip22zilog.c up->flags &= ~IP22ZILOG_FLAG_REGS_HELD; up 387 drivers/tty/serial/ip22zilog.c if (ZS_TX_STOPPED(up)) { up 388 drivers/tty/serial/ip22zilog.c up->flags &= ~IP22ZILOG_FLAG_TX_STOPPED; up 392 drivers/tty/serial/ip22zilog.c if (up->port.x_char) { up 393 drivers/tty/serial/ip22zilog.c up->flags |= IP22ZILOG_FLAG_TX_ACTIVE; up 394 drivers/tty/serial/ip22zilog.c writeb(up->port.x_char, &channel->data); up 398 drivers/tty/serial/ip22zilog.c up->port.icount.tx++; up 399 drivers/tty/serial/ip22zilog.c up->port.x_char = 0; up 403 drivers/tty/serial/ip22zilog.c if (up->port.state == NULL) up 405 drivers/tty/serial/ip22zilog.c xmit = &up->port.state->xmit; up 408 drivers/tty/serial/ip22zilog.c if (uart_tx_stopped(&up->port)) up 411 drivers/tty/serial/ip22zilog.c up->flags |= IP22ZILOG_FLAG_TX_ACTIVE; up 417 drivers/tty/serial/ip22zilog.c up->port.icount.tx++; up 420 drivers/tty/serial/ip22zilog.c uart_write_wakeup(&up->port); up 432 drivers/tty/serial/ip22zilog.c struct uart_ip22zilog_port *up = dev_id; up 434 drivers/tty/serial/ip22zilog.c while (up) { up 436 drivers/tty/serial/ip22zilog.c = ZILOG_CHANNEL_FROM_PORT(&up->port); up 440 drivers/tty/serial/ip22zilog.c spin_lock(&up->port.lock); up 450 drivers/tty/serial/ip22zilog.c push = ip22zilog_receive_chars(up, channel); up 452 drivers/tty/serial/ip22zilog.c ip22zilog_status_handle(up, channel); up 454 drivers/tty/serial/ip22zilog.c ip22zilog_transmit_chars(up, channel); up 456 drivers/tty/serial/ip22zilog.c spin_unlock(&up->port.lock); up 459 drivers/tty/serial/ip22zilog.c tty_flip_buffer_push(&up->port.state->port); up 462 drivers/tty/serial/ip22zilog.c up = up->next; up 463 drivers/tty/serial/ip22zilog.c channel = ZILOG_CHANNEL_FROM_PORT(&up->port); up 466 drivers/tty/serial/ip22zilog.c spin_lock(&up->port.lock); up 473 drivers/tty/serial/ip22zilog.c push = ip22zilog_receive_chars(up, channel); up 475 drivers/tty/serial/ip22zilog.c ip22zilog_status_handle(up, channel); up 477 drivers/tty/serial/ip22zilog.c ip22zilog_transmit_chars(up, channel); up 479 drivers/tty/serial/ip22zilog.c spin_unlock(&up->port.lock); up 482 drivers/tty/serial/ip22zilog.c tty_flip_buffer_push(&up->port.state->port); up 484 drivers/tty/serial/ip22zilog.c up = up->next; up 548 drivers/tty/serial/ip22zilog.c struct uart_ip22zilog_port *up = up 565 drivers/tty/serial/ip22zilog.c up->curregs[R5] |= set_bits; up 566 drivers/tty/serial/ip22zilog.c up->curregs[R5] &= ~clear_bits; up 567 drivers/tty/serial/ip22zilog.c write_zsreg(channel, R5, up->curregs[R5]); up 573 drivers/tty/serial/ip22zilog.c struct uart_ip22zilog_port *up = up 576 drivers/tty/serial/ip22zilog.c up->flags |= IP22ZILOG_FLAG_TX_STOPPED; up 582 drivers/tty/serial/ip22zilog.c struct uart_ip22zilog_port *up = up 587 drivers/tty/serial/ip22zilog.c up->flags |= IP22ZILOG_FLAG_TX_ACTIVE; up 588 drivers/tty/serial/ip22zilog.c up->flags &= ~IP22ZILOG_FLAG_TX_STOPPED; up 620 drivers/tty/serial/ip22zilog.c uart_write_wakeup(&up->port); up 627 drivers/tty/serial/ip22zilog.c struct uart_ip22zilog_port *up = UART_ZILOG(port); up 630 drivers/tty/serial/ip22zilog.c if (ZS_IS_CONS(up)) up 636 drivers/tty/serial/ip22zilog.c up->curregs[R1] &= ~RxINT_MASK; up 637 drivers/tty/serial/ip22zilog.c ip22zilog_maybe_update_regs(up, channel); up 643 drivers/tty/serial/ip22zilog.c struct uart_ip22zilog_port *up = up 648 drivers/tty/serial/ip22zilog.c new_reg = up->curregs[R15] | (DCDIE | SYNCIE | CTSIE); up 649 drivers/tty/serial/ip22zilog.c if (new_reg != up->curregs[R15]) { up 650 drivers/tty/serial/ip22zilog.c up->curregs[R15] = new_reg; up 653 drivers/tty/serial/ip22zilog.c write_zsreg(channel, R15, up->curregs[R15]); up 660 drivers/tty/serial/ip22zilog.c struct uart_ip22zilog_port *up = up 675 drivers/tty/serial/ip22zilog.c new_reg = (up->curregs[R5] | set_bits) & ~clear_bits; up 676 drivers/tty/serial/ip22zilog.c if (new_reg != up->curregs[R5]) { up 677 drivers/tty/serial/ip22zilog.c up->curregs[R5] = new_reg; up 680 drivers/tty/serial/ip22zilog.c write_zsreg(channel, R5, up->curregs[R5]); up 686 drivers/tty/serial/ip22zilog.c static void __ip22zilog_reset(struct uart_ip22zilog_port *up) up 691 drivers/tty/serial/ip22zilog.c if (up->flags & IP22ZILOG_FLAG_RESET_DONE) up 695 drivers/tty/serial/ip22zilog.c channel = ZILOG_CHANNEL_FROM_PORT(&up->port); up 703 drivers/tty/serial/ip22zilog.c if (!ZS_IS_CHANNEL_A(up)) { up 704 drivers/tty/serial/ip22zilog.c up++; up 705 drivers/tty/serial/ip22zilog.c channel = ZILOG_CHANNEL_FROM_PORT(&up->port); up 711 drivers/tty/serial/ip22zilog.c up->flags |= IP22ZILOG_FLAG_RESET_DONE; up 712 drivers/tty/serial/ip22zilog.c up->next->flags |= IP22ZILOG_FLAG_RESET_DONE; up 715 drivers/tty/serial/ip22zilog.c static void __ip22zilog_startup(struct uart_ip22zilog_port *up) up 719 drivers/tty/serial/ip22zilog.c channel = ZILOG_CHANNEL_FROM_PORT(&up->port); up 721 drivers/tty/serial/ip22zilog.c __ip22zilog_reset(up); up 723 drivers/tty/serial/ip22zilog.c __load_zsregs(channel, up->curregs); up 725 drivers/tty/serial/ip22zilog.c write_zsreg(channel, R9, up->curregs[R9]); up 726 drivers/tty/serial/ip22zilog.c up->prev_status = readb(&channel->control); up 729 drivers/tty/serial/ip22zilog.c up->curregs[R3] |= RxENAB; up 730 drivers/tty/serial/ip22zilog.c up->curregs[R5] |= TxENAB; up 732 drivers/tty/serial/ip22zilog.c up->curregs[R1] |= EXT_INT_ENAB | INT_ALL_Rx | TxINT_ENAB; up 733 drivers/tty/serial/ip22zilog.c ip22zilog_maybe_update_regs(up, channel); up 738 drivers/tty/serial/ip22zilog.c struct uart_ip22zilog_port *up = UART_ZILOG(port); up 741 drivers/tty/serial/ip22zilog.c if (ZS_IS_CONS(up)) up 745 drivers/tty/serial/ip22zilog.c __ip22zilog_startup(up); up 777 drivers/tty/serial/ip22zilog.c struct uart_ip22zilog_port *up = UART_ZILOG(port); up 781 drivers/tty/serial/ip22zilog.c if (ZS_IS_CONS(up)) up 789 drivers/tty/serial/ip22zilog.c up->curregs[R3] &= ~RxENAB; up 790 drivers/tty/serial/ip22zilog.c up->curregs[R5] &= ~TxENAB; up 793 drivers/tty/serial/ip22zilog.c up->curregs[R1] &= ~(EXT_INT_ENAB | TxINT_ENAB | RxINT_MASK); up 794 drivers/tty/serial/ip22zilog.c up->curregs[R5] &= ~SND_BRK; up 795 drivers/tty/serial/ip22zilog.c ip22zilog_maybe_update_regs(up, channel); up 804 drivers/tty/serial/ip22zilog.c ip22zilog_convert_to_zs(struct uart_ip22zilog_port *up, unsigned int cflag, up 808 drivers/tty/serial/ip22zilog.c up->curregs[R10] = NRZ; up 809 drivers/tty/serial/ip22zilog.c up->curregs[R11] = TCBR | RCBR; up 812 drivers/tty/serial/ip22zilog.c up->curregs[R4] &= ~XCLK_MASK; up 813 drivers/tty/serial/ip22zilog.c up->curregs[R4] |= X16CLK; up 814 drivers/tty/serial/ip22zilog.c up->curregs[R12] = brg & 0xff; up 815 drivers/tty/serial/ip22zilog.c up->curregs[R13] = (brg >> 8) & 0xff; up 816 drivers/tty/serial/ip22zilog.c up->curregs[R14] = BRENAB; up 819 drivers/tty/serial/ip22zilog.c up->curregs[3] &= ~RxN_MASK; up 820 drivers/tty/serial/ip22zilog.c up->curregs[5] &= ~TxN_MASK; up 823 drivers/tty/serial/ip22zilog.c up->curregs[3] |= Rx5; up 824 drivers/tty/serial/ip22zilog.c up->curregs[5] |= Tx5; up 825 drivers/tty/serial/ip22zilog.c up->parity_mask = 0x1f; up 828 drivers/tty/serial/ip22zilog.c up->curregs[3] |= Rx6; up 829 drivers/tty/serial/ip22zilog.c up->curregs[5] |= Tx6; up 830 drivers/tty/serial/ip22zilog.c up->parity_mask = 0x3f; up 833 drivers/tty/serial/ip22zilog.c up->curregs[3] |= Rx7; up 834 drivers/tty/serial/ip22zilog.c up->curregs[5] |= Tx7; up 835 drivers/tty/serial/ip22zilog.c up->parity_mask = 0x7f; up 839 drivers/tty/serial/ip22zilog.c up->curregs[3] |= Rx8; up 840 drivers/tty/serial/ip22zilog.c up->curregs[5] |= Tx8; up 841 drivers/tty/serial/ip22zilog.c up->parity_mask = 0xff; up 844 drivers/tty/serial/ip22zilog.c up->curregs[4] &= ~0x0c; up 846 drivers/tty/serial/ip22zilog.c up->curregs[4] |= SB2; up 848 drivers/tty/serial/ip22zilog.c up->curregs[4] |= SB1; up 850 drivers/tty/serial/ip22zilog.c up->curregs[4] |= PAR_ENAB; up 852 drivers/tty/serial/ip22zilog.c up->curregs[4] &= ~PAR_ENAB; up 854 drivers/tty/serial/ip22zilog.c up->curregs[4] |= PAR_EVEN; up 856 drivers/tty/serial/ip22zilog.c up->curregs[4] &= ~PAR_EVEN; up 858 drivers/tty/serial/ip22zilog.c up->port.read_status_mask = Rx_OVR; up 860 drivers/tty/serial/ip22zilog.c up->port.read_status_mask |= CRC_ERR | PAR_ERR; up 862 drivers/tty/serial/ip22zilog.c up->port.read_status_mask |= BRK_ABRT; up 864 drivers/tty/serial/ip22zilog.c up->port.ignore_status_mask = 0; up 866 drivers/tty/serial/ip22zilog.c up->port.ignore_status_mask |= CRC_ERR | PAR_ERR; up 868 drivers/tty/serial/ip22zilog.c up->port.ignore_status_mask |= BRK_ABRT; up 870 drivers/tty/serial/ip22zilog.c up->port.ignore_status_mask |= Rx_OVR; up 874 drivers/tty/serial/ip22zilog.c up->port.ignore_status_mask = 0xff; up 882 drivers/tty/serial/ip22zilog.c struct uart_ip22zilog_port *up = up 889 drivers/tty/serial/ip22zilog.c spin_lock_irqsave(&up->port.lock, flags); up 893 drivers/tty/serial/ip22zilog.c ip22zilog_convert_to_zs(up, termios->c_cflag, termios->c_iflag, brg); up 895 drivers/tty/serial/ip22zilog.c if (UART_ENABLE_MS(&up->port, termios->c_cflag)) up 896 drivers/tty/serial/ip22zilog.c up->flags |= IP22ZILOG_FLAG_MODEM_STATUS; up 898 drivers/tty/serial/ip22zilog.c up->flags &= ~IP22ZILOG_FLAG_MODEM_STATUS; up 900 drivers/tty/serial/ip22zilog.c ip22zilog_maybe_update_regs(up, ZILOG_CHANNEL_FROM_PORT(port)); up 903 drivers/tty/serial/ip22zilog.c spin_unlock_irqrestore(&up->port.lock, flags); up 1022 drivers/tty/serial/ip22zilog.c struct uart_ip22zilog_port *up = &ip22zilog_port_table[con->index]; up 1025 drivers/tty/serial/ip22zilog.c spin_lock_irqsave(&up->port.lock, flags); up 1026 drivers/tty/serial/ip22zilog.c uart_console_write(&up->port, s, count, ip22zilog_put_char); up 1028 drivers/tty/serial/ip22zilog.c spin_unlock_irqrestore(&up->port.lock, flags); up 1033 drivers/tty/serial/ip22zilog.c struct uart_ip22zilog_port *up = &ip22zilog_port_table[con->index]; up 1039 drivers/tty/serial/ip22zilog.c up->flags |= IP22ZILOG_FLAG_IS_CONS; up 1043 drivers/tty/serial/ip22zilog.c spin_lock_irqsave(&up->port.lock, flags); up 1045 drivers/tty/serial/ip22zilog.c up->curregs[R15] |= BRKIE; up 1047 drivers/tty/serial/ip22zilog.c __ip22zilog_startup(up); up 1049 drivers/tty/serial/ip22zilog.c spin_unlock_irqrestore(&up->port.lock, flags); up 1053 drivers/tty/serial/ip22zilog.c return uart_set_options(&up->port, con, baud, parity, bits, flow); up 1083 drivers/tty/serial/ip22zilog.c struct uart_ip22zilog_port *up; up 1094 drivers/tty/serial/ip22zilog.c up = &ip22zilog_port_table[0]; up 1096 drivers/tty/serial/ip22zilog.c up[channel].next = &up[channel - 1]; up 1097 drivers/tty/serial/ip22zilog.c up[channel].next = NULL; up 1103 drivers/tty/serial/ip22zilog.c up[(chip * 2) + 0].port.membase = (char *) &rp->channelB; up 1104 drivers/tty/serial/ip22zilog.c up[(chip * 2) + 1].port.membase = (char *) &rp->channelA; up 1107 drivers/tty/serial/ip22zilog.c up[(chip * 2) + 0].port.mapbase = up 1109 drivers/tty/serial/ip22zilog.c up[(chip * 2) + 1].port.mapbase = up 1114 drivers/tty/serial/ip22zilog.c up[(chip * 2) + 0].port.iotype = UPIO_MEM; up 1115 drivers/tty/serial/ip22zilog.c up[(chip * 2) + 0].port.irq = zilog_irq; up 1116 drivers/tty/serial/ip22zilog.c up[(chip * 2) + 0].port.uartclk = ZS_CLOCK; up 1117 drivers/tty/serial/ip22zilog.c up[(chip * 2) + 0].port.fifosize = 1; up 1118 drivers/tty/serial/ip22zilog.c up[(chip * 2) + 0].port.ops = &ip22zilog_pops; up 1119 drivers/tty/serial/ip22zilog.c up[(chip * 2) + 0].port.type = PORT_IP22ZILOG; up 1120 drivers/tty/serial/ip22zilog.c up[(chip * 2) + 0].port.flags = 0; up 1121 drivers/tty/serial/ip22zilog.c up[(chip * 2) + 0].port.line = (chip * 2) + 0; up 1122 drivers/tty/serial/ip22zilog.c up[(chip * 2) + 0].flags = 0; up 1125 drivers/tty/serial/ip22zilog.c up[(chip * 2) + 1].port.iotype = UPIO_MEM; up 1126 drivers/tty/serial/ip22zilog.c up[(chip * 2) + 1].port.irq = zilog_irq; up 1127 drivers/tty/serial/ip22zilog.c up[(chip * 2) + 1].port.uartclk = ZS_CLOCK; up 1128 drivers/tty/serial/ip22zilog.c up[(chip * 2) + 1].port.fifosize = 1; up 1129 drivers/tty/serial/ip22zilog.c up[(chip * 2) + 1].port.ops = &ip22zilog_pops; up 1130 drivers/tty/serial/ip22zilog.c up[(chip * 2) + 1].port.type = PORT_IP22ZILOG; up 1131 drivers/tty/serial/ip22zilog.c up[(chip * 2) + 1].port.line = (chip * 2) + 1; up 1132 drivers/tty/serial/ip22zilog.c up[(chip * 2) + 1].flags |= IP22ZILOG_FLAG_IS_CHANNEL_A; up 1136 drivers/tty/serial/ip22zilog.c struct uart_ip22zilog_port *up = &ip22zilog_port_table[channel]; up 1140 drivers/tty/serial/ip22zilog.c up->parity_mask = 0xff; up 1141 drivers/tty/serial/ip22zilog.c up->curregs[R1] = EXT_INT_ENAB | INT_ALL_Rx | TxINT_ENAB; up 1142 drivers/tty/serial/ip22zilog.c up->curregs[R4] = PAR_EVEN | X16CLK | SB1; up 1143 drivers/tty/serial/ip22zilog.c up->curregs[R3] = RxENAB | Rx8; up 1144 drivers/tty/serial/ip22zilog.c up->curregs[R5] = TxENAB | Tx8; up 1145 drivers/tty/serial/ip22zilog.c up->curregs[R9] = NV | MIE; up 1146 drivers/tty/serial/ip22zilog.c up->curregs[R10] = NRZ; up 1147 drivers/tty/serial/ip22zilog.c up->curregs[R11] = TCBR | RCBR; up 1149 drivers/tty/serial/ip22zilog.c up->curregs[R12] = (brg & 0xff); up 1150 drivers/tty/serial/ip22zilog.c up->curregs[R13] = (brg >> 8) & 0xff; up 1151 drivers/tty/serial/ip22zilog.c up->curregs[R14] = BRENAB; up 1173 drivers/tty/serial/ip22zilog.c struct uart_ip22zilog_port *up = &ip22zilog_port_table[i]; up 1175 drivers/tty/serial/ip22zilog.c uart_add_one_port(&ip22zilog_reg, &up->port); up 1194 drivers/tty/serial/ip22zilog.c struct uart_ip22zilog_port *up; up 1197 drivers/tty/serial/ip22zilog.c up = &ip22zilog_port_table[i]; up 1199 drivers/tty/serial/ip22zilog.c uart_remove_one_port(&ip22zilog_reg, &up->port); up 1203 drivers/tty/serial/ip22zilog.c up = &ip22zilog_port_table[0]; up 1205 drivers/tty/serial/ip22zilog.c if (up[(i * 2) + 0].port.mapbase) { up 1206 drivers/tty/serial/ip22zilog.c iounmap((void*)up[(i * 2) + 0].port.mapbase); up 1207 drivers/tty/serial/ip22zilog.c up[(i * 2) + 0].port.mapbase = 0; up 1209 drivers/tty/serial/ip22zilog.c if (up[(i * 2) + 1].port.mapbase) { up 1210 drivers/tty/serial/ip22zilog.c iounmap((void*)up[(i * 2) + 1].port.mapbase); up 1211 drivers/tty/serial/ip22zilog.c up[(i * 2) + 1].port.mapbase = 0; up 135 drivers/tty/serial/lpc32xx_hs.c struct lpc32xx_hsuart_port *up = &lpc32xx_hs_ports[co->index]; up 141 drivers/tty/serial/lpc32xx_hs.c if (up->port.sysrq) up 144 drivers/tty/serial/lpc32xx_hs.c locked = spin_trylock(&up->port.lock); up 146 drivers/tty/serial/lpc32xx_hs.c spin_lock(&up->port.lock); up 148 drivers/tty/serial/lpc32xx_hs.c uart_console_write(&up->port, s, count, lpc32xx_hsuart_console_putchar); up 149 drivers/tty/serial/lpc32xx_hs.c wait_for_xmit_empty(&up->port); up 152 drivers/tty/serial/lpc32xx_hs.c spin_unlock(&up->port.lock); up 176 drivers/tty/serial/omap-serial.c static void serial_omap_mdr1_errataset(struct uart_omap_port *up, u8 mdr1); up 178 drivers/tty/serial/omap-serial.c static inline unsigned int serial_in(struct uart_omap_port *up, int offset) up 180 drivers/tty/serial/omap-serial.c offset <<= up->port.regshift; up 181 drivers/tty/serial/omap-serial.c return readw(up->port.membase + offset); up 184 drivers/tty/serial/omap-serial.c static inline void serial_out(struct uart_omap_port *up, int offset, int value) up 186 drivers/tty/serial/omap-serial.c offset <<= up->port.regshift; up 187 drivers/tty/serial/omap-serial.c writew(value, up->port.membase + offset); up 190 drivers/tty/serial/omap-serial.c static inline void serial_omap_clear_fifos(struct uart_omap_port *up) up 192 drivers/tty/serial/omap-serial.c serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO); up 193 drivers/tty/serial/omap-serial.c serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO | up 195 drivers/tty/serial/omap-serial.c serial_out(up, UART_FCR, 0); up 199 drivers/tty/serial/omap-serial.c static int serial_omap_get_context_loss_count(struct uart_omap_port *up) up 201 drivers/tty/serial/omap-serial.c struct omap_uart_port_info *pdata = dev_get_platdata(up->dev); up 206 drivers/tty/serial/omap-serial.c return pdata->get_context_loss_count(up->dev); up 210 drivers/tty/serial/omap-serial.c static void serial_omap_enable_wakeup(struct uart_omap_port *up, bool enable) up 212 drivers/tty/serial/omap-serial.c struct omap_uart_port_info *pdata = dev_get_platdata(up->dev); up 217 drivers/tty/serial/omap-serial.c pdata->enable_wakeup(up->dev, enable); up 280 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = to_uart_omap_port(port); up 282 drivers/tty/serial/omap-serial.c dev_dbg(up->port.dev, "serial_omap_enable_ms+%d\n", up->port.line); up 284 drivers/tty/serial/omap-serial.c pm_runtime_get_sync(up->dev); up 285 drivers/tty/serial/omap-serial.c up->ier |= UART_IER_MSI; up 286 drivers/tty/serial/omap-serial.c serial_out(up, UART_IER, up->ier); up 287 drivers/tty/serial/omap-serial.c pm_runtime_mark_last_busy(up->dev); up 288 drivers/tty/serial/omap-serial.c pm_runtime_put_autosuspend(up->dev); up 293 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = to_uart_omap_port(port); up 296 drivers/tty/serial/omap-serial.c pm_runtime_get_sync(up->dev); up 300 drivers/tty/serial/omap-serial.c if (up->scr & OMAP_UART_SCR_TX_EMPTY) { up 308 drivers/tty/serial/omap-serial.c up->scr &= ~OMAP_UART_SCR_TX_EMPTY; up 309 drivers/tty/serial/omap-serial.c serial_out(up, UART_OMAP_SCR, up->scr); up 312 drivers/tty/serial/omap-serial.c if (gpio_get_value(up->rts_gpio) != res) { up 316 drivers/tty/serial/omap-serial.c gpio_set_value(up->rts_gpio, res); up 327 drivers/tty/serial/omap-serial.c up->scr |= OMAP_UART_SCR_TX_EMPTY; up 328 drivers/tty/serial/omap-serial.c serial_out(up, UART_OMAP_SCR, up->scr); up 333 drivers/tty/serial/omap-serial.c if (up->ier & UART_IER_THRI) { up 334 drivers/tty/serial/omap-serial.c up->ier &= ~UART_IER_THRI; up 335 drivers/tty/serial/omap-serial.c serial_out(up, UART_IER, up->ier); up 344 drivers/tty/serial/omap-serial.c serial_out(up, UART_FCR, up->fcr | UART_FCR_CLEAR_RCVR); up 346 drivers/tty/serial/omap-serial.c up->ier |= UART_IER_RLSI | UART_IER_RDI; up 347 drivers/tty/serial/omap-serial.c up->port.read_status_mask |= UART_LSR_DR; up 348 drivers/tty/serial/omap-serial.c serial_out(up, UART_IER, up->ier); up 351 drivers/tty/serial/omap-serial.c pm_runtime_mark_last_busy(up->dev); up 352 drivers/tty/serial/omap-serial.c pm_runtime_put_autosuspend(up->dev); up 357 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = to_uart_omap_port(port); up 359 drivers/tty/serial/omap-serial.c pm_runtime_get_sync(up->dev); up 360 drivers/tty/serial/omap-serial.c up->ier &= ~(UART_IER_RLSI | UART_IER_RDI); up 361 drivers/tty/serial/omap-serial.c up->port.read_status_mask &= ~UART_LSR_DR; up 362 drivers/tty/serial/omap-serial.c serial_out(up, UART_IER, up->ier); up 363 drivers/tty/serial/omap-serial.c pm_runtime_mark_last_busy(up->dev); up 364 drivers/tty/serial/omap-serial.c pm_runtime_put_autosuspend(up->dev); up 367 drivers/tty/serial/omap-serial.c static void transmit_chars(struct uart_omap_port *up, unsigned int lsr) up 369 drivers/tty/serial/omap-serial.c struct circ_buf *xmit = &up->port.state->xmit; up 372 drivers/tty/serial/omap-serial.c if (up->port.x_char) { up 373 drivers/tty/serial/omap-serial.c serial_out(up, UART_TX, up->port.x_char); up 374 drivers/tty/serial/omap-serial.c up->port.icount.tx++; up 375 drivers/tty/serial/omap-serial.c up->port.x_char = 0; up 378 drivers/tty/serial/omap-serial.c if (uart_circ_empty(xmit) || uart_tx_stopped(&up->port)) { up 379 drivers/tty/serial/omap-serial.c serial_omap_stop_tx(&up->port); up 382 drivers/tty/serial/omap-serial.c count = up->port.fifosize / 4; up 384 drivers/tty/serial/omap-serial.c serial_out(up, UART_TX, xmit->buf[xmit->tail]); up 386 drivers/tty/serial/omap-serial.c up->port.icount.tx++; up 392 drivers/tty/serial/omap-serial.c uart_write_wakeup(&up->port); up 395 drivers/tty/serial/omap-serial.c serial_omap_stop_tx(&up->port); up 398 drivers/tty/serial/omap-serial.c static inline void serial_omap_enable_ier_thri(struct uart_omap_port *up) up 400 drivers/tty/serial/omap-serial.c if (!(up->ier & UART_IER_THRI)) { up 401 drivers/tty/serial/omap-serial.c up->ier |= UART_IER_THRI; up 402 drivers/tty/serial/omap-serial.c serial_out(up, UART_IER, up->ier); up 408 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = to_uart_omap_port(port); up 411 drivers/tty/serial/omap-serial.c pm_runtime_get_sync(up->dev); up 416 drivers/tty/serial/omap-serial.c up->scr &= ~OMAP_UART_SCR_TX_EMPTY; up 417 drivers/tty/serial/omap-serial.c serial_out(up, UART_OMAP_SCR, up->scr); up 421 drivers/tty/serial/omap-serial.c if (gpio_get_value(up->rts_gpio) != res) { up 422 drivers/tty/serial/omap-serial.c gpio_set_value(up->rts_gpio, res); up 432 drivers/tty/serial/omap-serial.c serial_omap_enable_ier_thri(up); up 433 drivers/tty/serial/omap-serial.c pm_runtime_mark_last_busy(up->dev); up 434 drivers/tty/serial/omap-serial.c pm_runtime_put_autosuspend(up->dev); up 439 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = to_uart_omap_port(port); up 442 drivers/tty/serial/omap-serial.c pm_runtime_get_sync(up->dev); up 443 drivers/tty/serial/omap-serial.c spin_lock_irqsave(&up->port.lock, flags); up 444 drivers/tty/serial/omap-serial.c up->ier &= ~(UART_IER_RLSI | UART_IER_RDI); up 445 drivers/tty/serial/omap-serial.c serial_out(up, UART_IER, up->ier); up 446 drivers/tty/serial/omap-serial.c spin_unlock_irqrestore(&up->port.lock, flags); up 447 drivers/tty/serial/omap-serial.c pm_runtime_mark_last_busy(up->dev); up 448 drivers/tty/serial/omap-serial.c pm_runtime_put_autosuspend(up->dev); up 453 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = to_uart_omap_port(port); up 456 drivers/tty/serial/omap-serial.c pm_runtime_get_sync(up->dev); up 457 drivers/tty/serial/omap-serial.c spin_lock_irqsave(&up->port.lock, flags); up 458 drivers/tty/serial/omap-serial.c up->ier |= UART_IER_RLSI | UART_IER_RDI; up 459 drivers/tty/serial/omap-serial.c serial_out(up, UART_IER, up->ier); up 460 drivers/tty/serial/omap-serial.c spin_unlock_irqrestore(&up->port.lock, flags); up 461 drivers/tty/serial/omap-serial.c pm_runtime_mark_last_busy(up->dev); up 462 drivers/tty/serial/omap-serial.c pm_runtime_put_autosuspend(up->dev); up 465 drivers/tty/serial/omap-serial.c static unsigned int check_modem_status(struct uart_omap_port *up) up 469 drivers/tty/serial/omap-serial.c status = serial_in(up, UART_MSR); up 470 drivers/tty/serial/omap-serial.c status |= up->msr_saved_flags; up 471 drivers/tty/serial/omap-serial.c up->msr_saved_flags = 0; up 475 drivers/tty/serial/omap-serial.c if (status & UART_MSR_ANY_DELTA && up->ier & UART_IER_MSI && up 476 drivers/tty/serial/omap-serial.c up->port.state != NULL) { up 478 drivers/tty/serial/omap-serial.c up->port.icount.rng++; up 480 drivers/tty/serial/omap-serial.c up->port.icount.dsr++; up 483 drivers/tty/serial/omap-serial.c (&up->port, status & UART_MSR_DCD); up 486 drivers/tty/serial/omap-serial.c (&up->port, status & UART_MSR_CTS); up 487 drivers/tty/serial/omap-serial.c wake_up_interruptible(&up->port.state->port.delta_msr_wait); up 493 drivers/tty/serial/omap-serial.c static void serial_omap_rlsi(struct uart_omap_port *up, unsigned int lsr) up 499 drivers/tty/serial/omap-serial.c ch = serial_in(up, UART_RX); up 501 drivers/tty/serial/omap-serial.c up->port.icount.rx++; up 507 drivers/tty/serial/omap-serial.c up->port.icount.brk++; up 514 drivers/tty/serial/omap-serial.c if (uart_handle_break(&up->port)) up 521 drivers/tty/serial/omap-serial.c up->port.icount.parity++; up 526 drivers/tty/serial/omap-serial.c up->port.icount.frame++; up 530 drivers/tty/serial/omap-serial.c up->port.icount.overrun++; up 533 drivers/tty/serial/omap-serial.c if (up->port.line == up->port.cons->index) { up 535 drivers/tty/serial/omap-serial.c lsr |= up->lsr_break_flag; up 538 drivers/tty/serial/omap-serial.c uart_insert_char(&up->port, lsr, UART_LSR_OE, 0, flag); up 541 drivers/tty/serial/omap-serial.c static void serial_omap_rdi(struct uart_omap_port *up, unsigned int lsr) up 549 drivers/tty/serial/omap-serial.c ch = serial_in(up, UART_RX); up 551 drivers/tty/serial/omap-serial.c up->port.icount.rx++; up 553 drivers/tty/serial/omap-serial.c if (uart_handle_sysrq_char(&up->port, ch)) up 556 drivers/tty/serial/omap-serial.c uart_insert_char(&up->port, lsr, UART_LSR_OE, ch, flag); up 566 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = dev_id; up 572 drivers/tty/serial/omap-serial.c spin_lock(&up->port.lock); up 573 drivers/tty/serial/omap-serial.c pm_runtime_get_sync(up->dev); up 576 drivers/tty/serial/omap-serial.c iir = serial_in(up, UART_IIR); up 581 drivers/tty/serial/omap-serial.c lsr = serial_in(up, UART_LSR); up 588 drivers/tty/serial/omap-serial.c check_modem_status(up); up 591 drivers/tty/serial/omap-serial.c transmit_chars(up, lsr); up 596 drivers/tty/serial/omap-serial.c serial_omap_rdi(up, lsr); up 599 drivers/tty/serial/omap-serial.c serial_omap_rlsi(up, lsr); up 611 drivers/tty/serial/omap-serial.c spin_unlock(&up->port.lock); up 613 drivers/tty/serial/omap-serial.c tty_flip_buffer_push(&up->port.state->port); up 615 drivers/tty/serial/omap-serial.c pm_runtime_mark_last_busy(up->dev); up 616 drivers/tty/serial/omap-serial.c pm_runtime_put_autosuspend(up->dev); up 617 drivers/tty/serial/omap-serial.c up->port_activity = jiffies; up 624 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = to_uart_omap_port(port); up 628 drivers/tty/serial/omap-serial.c pm_runtime_get_sync(up->dev); up 629 drivers/tty/serial/omap-serial.c dev_dbg(up->port.dev, "serial_omap_tx_empty+%d\n", up->port.line); up 630 drivers/tty/serial/omap-serial.c spin_lock_irqsave(&up->port.lock, flags); up 631 drivers/tty/serial/omap-serial.c ret = serial_in(up, UART_LSR) & UART_LSR_TEMT ? TIOCSER_TEMT : 0; up 632 drivers/tty/serial/omap-serial.c spin_unlock_irqrestore(&up->port.lock, flags); up 633 drivers/tty/serial/omap-serial.c pm_runtime_mark_last_busy(up->dev); up 634 drivers/tty/serial/omap-serial.c pm_runtime_put_autosuspend(up->dev); up 640 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = to_uart_omap_port(port); up 644 drivers/tty/serial/omap-serial.c pm_runtime_get_sync(up->dev); up 645 drivers/tty/serial/omap-serial.c status = check_modem_status(up); up 646 drivers/tty/serial/omap-serial.c pm_runtime_mark_last_busy(up->dev); up 647 drivers/tty/serial/omap-serial.c pm_runtime_put_autosuspend(up->dev); up 649 drivers/tty/serial/omap-serial.c dev_dbg(up->port.dev, "serial_omap_get_mctrl+%d\n", up->port.line); up 664 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = to_uart_omap_port(port); up 667 drivers/tty/serial/omap-serial.c dev_dbg(up->port.dev, "serial_omap_set_mctrl+%d\n", up->port.line); up 679 drivers/tty/serial/omap-serial.c pm_runtime_get_sync(up->dev); up 680 drivers/tty/serial/omap-serial.c old_mcr = serial_in(up, UART_MCR); up 683 drivers/tty/serial/omap-serial.c up->mcr = old_mcr | mcr; up 684 drivers/tty/serial/omap-serial.c serial_out(up, UART_MCR, up->mcr); up 687 drivers/tty/serial/omap-serial.c lcr = serial_in(up, UART_LCR); up 688 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 690 drivers/tty/serial/omap-serial.c up->efr |= UART_EFR_RTS; up 692 drivers/tty/serial/omap-serial.c up->efr &= ~UART_EFR_RTS; up 693 drivers/tty/serial/omap-serial.c serial_out(up, UART_EFR, up->efr); up 694 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, lcr); up 696 drivers/tty/serial/omap-serial.c pm_runtime_mark_last_busy(up->dev); up 697 drivers/tty/serial/omap-serial.c pm_runtime_put_autosuspend(up->dev); up 702 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = to_uart_omap_port(port); up 705 drivers/tty/serial/omap-serial.c dev_dbg(up->port.dev, "serial_omap_break_ctl+%d\n", up->port.line); up 706 drivers/tty/serial/omap-serial.c pm_runtime_get_sync(up->dev); up 707 drivers/tty/serial/omap-serial.c spin_lock_irqsave(&up->port.lock, flags); up 709 drivers/tty/serial/omap-serial.c up->lcr |= UART_LCR_SBC; up 711 drivers/tty/serial/omap-serial.c up->lcr &= ~UART_LCR_SBC; up 712 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, up->lcr); up 713 drivers/tty/serial/omap-serial.c spin_unlock_irqrestore(&up->port.lock, flags); up 714 drivers/tty/serial/omap-serial.c pm_runtime_mark_last_busy(up->dev); up 715 drivers/tty/serial/omap-serial.c pm_runtime_put_autosuspend(up->dev); up 720 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = to_uart_omap_port(port); up 727 drivers/tty/serial/omap-serial.c retval = request_irq(up->port.irq, serial_omap_irq, up->port.irqflags, up 728 drivers/tty/serial/omap-serial.c up->name, up); up 733 drivers/tty/serial/omap-serial.c if (up->wakeirq) { up 734 drivers/tty/serial/omap-serial.c retval = dev_pm_set_dedicated_wake_irq(up->dev, up->wakeirq); up 736 drivers/tty/serial/omap-serial.c free_irq(up->port.irq, up); up 741 drivers/tty/serial/omap-serial.c dev_dbg(up->port.dev, "serial_omap_startup+%d\n", up->port.line); up 743 drivers/tty/serial/omap-serial.c pm_runtime_get_sync(up->dev); up 748 drivers/tty/serial/omap-serial.c serial_omap_clear_fifos(up); up 753 drivers/tty/serial/omap-serial.c (void) serial_in(up, UART_LSR); up 754 drivers/tty/serial/omap-serial.c if (serial_in(up, UART_LSR) & UART_LSR_DR) up 755 drivers/tty/serial/omap-serial.c (void) serial_in(up, UART_RX); up 756 drivers/tty/serial/omap-serial.c (void) serial_in(up, UART_IIR); up 757 drivers/tty/serial/omap-serial.c (void) serial_in(up, UART_MSR); up 762 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, UART_LCR_WLEN8); up 763 drivers/tty/serial/omap-serial.c spin_lock_irqsave(&up->port.lock, flags); up 767 drivers/tty/serial/omap-serial.c up->port.mctrl |= TIOCM_OUT2; up 768 drivers/tty/serial/omap-serial.c serial_omap_set_mctrl(&up->port, up->port.mctrl); up 769 drivers/tty/serial/omap-serial.c spin_unlock_irqrestore(&up->port.lock, flags); up 771 drivers/tty/serial/omap-serial.c up->msr_saved_flags = 0; up 777 drivers/tty/serial/omap-serial.c up->ier = UART_IER_RLSI | UART_IER_RDI; up 778 drivers/tty/serial/omap-serial.c serial_out(up, UART_IER, up->ier); up 781 drivers/tty/serial/omap-serial.c up->wer = OMAP_UART_WER_MOD_WKUP; up 782 drivers/tty/serial/omap-serial.c if (up->features & OMAP_UART_WER_HAS_TX_WAKEUP) up 783 drivers/tty/serial/omap-serial.c up->wer |= OMAP_UART_TX_WAKEUP_EN; up 785 drivers/tty/serial/omap-serial.c serial_out(up, UART_OMAP_WER, up->wer); up 787 drivers/tty/serial/omap-serial.c pm_runtime_mark_last_busy(up->dev); up 788 drivers/tty/serial/omap-serial.c pm_runtime_put_autosuspend(up->dev); up 789 drivers/tty/serial/omap-serial.c up->port_activity = jiffies; up 795 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = to_uart_omap_port(port); up 798 drivers/tty/serial/omap-serial.c dev_dbg(up->port.dev, "serial_omap_shutdown+%d\n", up->port.line); up 800 drivers/tty/serial/omap-serial.c pm_runtime_get_sync(up->dev); up 804 drivers/tty/serial/omap-serial.c up->ier = 0; up 805 drivers/tty/serial/omap-serial.c serial_out(up, UART_IER, 0); up 807 drivers/tty/serial/omap-serial.c spin_lock_irqsave(&up->port.lock, flags); up 808 drivers/tty/serial/omap-serial.c up->port.mctrl &= ~TIOCM_OUT2; up 809 drivers/tty/serial/omap-serial.c serial_omap_set_mctrl(&up->port, up->port.mctrl); up 810 drivers/tty/serial/omap-serial.c spin_unlock_irqrestore(&up->port.lock, flags); up 815 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, serial_in(up, UART_LCR) & ~UART_LCR_SBC); up 816 drivers/tty/serial/omap-serial.c serial_omap_clear_fifos(up); up 821 drivers/tty/serial/omap-serial.c if (serial_in(up, UART_LSR) & UART_LSR_DR) up 822 drivers/tty/serial/omap-serial.c (void) serial_in(up, UART_RX); up 824 drivers/tty/serial/omap-serial.c pm_runtime_mark_last_busy(up->dev); up 825 drivers/tty/serial/omap-serial.c pm_runtime_put_autosuspend(up->dev); up 826 drivers/tty/serial/omap-serial.c free_irq(up->port.irq, up); up 827 drivers/tty/serial/omap-serial.c dev_pm_clear_wake_irq(up->dev); up 832 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = container_of(work, struct uart_omap_port, up 835 drivers/tty/serial/omap-serial.c pm_qos_update_request(&up->pm_qos_request, up->latency); up 842 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = to_uart_omap_port(port); up 880 drivers/tty/serial/omap-serial.c up->calc_latency = (USEC_PER_SEC * up->port.fifosize) / (baud / 8); up 881 drivers/tty/serial/omap-serial.c up->latency = up->calc_latency; up 882 drivers/tty/serial/omap-serial.c schedule_work(&up->qos_work); up 884 drivers/tty/serial/omap-serial.c up->dll = quot & 0xff; up 885 drivers/tty/serial/omap-serial.c up->dlh = quot >> 8; up 886 drivers/tty/serial/omap-serial.c up->mdr1 = UART_OMAP_MDR1_DISABLE; up 888 drivers/tty/serial/omap-serial.c up->fcr = UART_FCR_R_TRIG_01 | UART_FCR_T_TRIG_01 | up 895 drivers/tty/serial/omap-serial.c pm_runtime_get_sync(up->dev); up 896 drivers/tty/serial/omap-serial.c spin_lock_irqsave(&up->port.lock, flags); up 903 drivers/tty/serial/omap-serial.c up->port.read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; up 905 drivers/tty/serial/omap-serial.c up->port.read_status_mask |= UART_LSR_FE | UART_LSR_PE; up 907 drivers/tty/serial/omap-serial.c up->port.read_status_mask |= UART_LSR_BI; up 912 drivers/tty/serial/omap-serial.c up->port.ignore_status_mask = 0; up 914 drivers/tty/serial/omap-serial.c up->port.ignore_status_mask |= UART_LSR_PE | UART_LSR_FE; up 916 drivers/tty/serial/omap-serial.c up->port.ignore_status_mask |= UART_LSR_BI; up 922 drivers/tty/serial/omap-serial.c up->port.ignore_status_mask |= UART_LSR_OE; up 929 drivers/tty/serial/omap-serial.c up->port.ignore_status_mask |= UART_LSR_DR; up 934 drivers/tty/serial/omap-serial.c up->ier &= ~UART_IER_MSI; up 935 drivers/tty/serial/omap-serial.c if (UART_ENABLE_MS(&up->port, termios->c_cflag)) up 936 drivers/tty/serial/omap-serial.c up->ier |= UART_IER_MSI; up 937 drivers/tty/serial/omap-serial.c serial_out(up, UART_IER, up->ier); up 938 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, cval); /* reset DLAB */ up 939 drivers/tty/serial/omap-serial.c up->lcr = cval; up 940 drivers/tty/serial/omap-serial.c up->scr = 0; up 948 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); up 949 drivers/tty/serial/omap-serial.c serial_out(up, UART_DLL, 0); up 950 drivers/tty/serial/omap-serial.c serial_out(up, UART_DLM, 0); up 951 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, 0); up 953 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 955 drivers/tty/serial/omap-serial.c up->efr = serial_in(up, UART_EFR) & ~UART_EFR_ECB; up 956 drivers/tty/serial/omap-serial.c up->efr &= ~UART_EFR_SCD; up 957 drivers/tty/serial/omap-serial.c serial_out(up, UART_EFR, up->efr | UART_EFR_ECB); up 959 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); up 960 drivers/tty/serial/omap-serial.c up->mcr = serial_in(up, UART_MCR) & ~UART_MCR_TCRTLR; up 961 drivers/tty/serial/omap-serial.c serial_out(up, UART_MCR, up->mcr | UART_MCR_TCRTLR); up 964 drivers/tty/serial/omap-serial.c up->scr |= OMAP_UART_SCR_RX_TRIG_GRANU1_MASK; up 978 drivers/tty/serial/omap-serial.c up->fcr &= ~OMAP_UART_FCR_RX_FIFO_TRIG_MASK; up 979 drivers/tty/serial/omap-serial.c up->fcr &= ~OMAP_UART_FCR_TX_FIFO_TRIG_MASK; up 980 drivers/tty/serial/omap-serial.c up->fcr |= UART_FCR6_R_TRIGGER_16 | UART_FCR6_T_TRIGGER_24 | up 983 drivers/tty/serial/omap-serial.c serial_out(up, UART_FCR, up->fcr); up 984 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 986 drivers/tty/serial/omap-serial.c serial_out(up, UART_OMAP_SCR, up->scr); up 989 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); up 990 drivers/tty/serial/omap-serial.c serial_out(up, UART_MCR, up->mcr); up 991 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 992 drivers/tty/serial/omap-serial.c serial_out(up, UART_EFR, up->efr); up 993 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); up 997 drivers/tty/serial/omap-serial.c if (up->errata & UART_ERRATA_i202_MDR1_ACCESS) up 998 drivers/tty/serial/omap-serial.c serial_omap_mdr1_errataset(up, up->mdr1); up 1000 drivers/tty/serial/omap-serial.c serial_out(up, UART_OMAP_MDR1, up->mdr1); up 1002 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 1003 drivers/tty/serial/omap-serial.c serial_out(up, UART_EFR, up->efr | UART_EFR_ECB); up 1005 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, 0); up 1006 drivers/tty/serial/omap-serial.c serial_out(up, UART_IER, 0); up 1007 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 1009 drivers/tty/serial/omap-serial.c serial_out(up, UART_DLL, up->dll); /* LS of divisor */ up 1010 drivers/tty/serial/omap-serial.c serial_out(up, UART_DLM, up->dlh); /* MS of divisor */ up 1012 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, 0); up 1013 drivers/tty/serial/omap-serial.c serial_out(up, UART_IER, up->ier); up 1014 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 1016 drivers/tty/serial/omap-serial.c serial_out(up, UART_EFR, up->efr); up 1017 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, cval); up 1020 drivers/tty/serial/omap-serial.c up->mdr1 = UART_OMAP_MDR1_13X_MODE; up 1022 drivers/tty/serial/omap-serial.c up->mdr1 = UART_OMAP_MDR1_16X_MODE; up 1024 drivers/tty/serial/omap-serial.c if (up->errata & UART_ERRATA_i202_MDR1_ACCESS) up 1025 drivers/tty/serial/omap-serial.c serial_omap_mdr1_errataset(up, up->mdr1); up 1027 drivers/tty/serial/omap-serial.c serial_out(up, UART_OMAP_MDR1, up->mdr1); up 1030 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 1033 drivers/tty/serial/omap-serial.c serial_out(up, UART_XON1, termios->c_cc[VSTART]); up 1034 drivers/tty/serial/omap-serial.c serial_out(up, UART_XOFF1, termios->c_cc[VSTOP]); up 1037 drivers/tty/serial/omap-serial.c serial_out(up, UART_EFR, up->efr | UART_EFR_ECB); up 1038 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); up 1039 drivers/tty/serial/omap-serial.c serial_out(up, UART_MCR, up->mcr | UART_MCR_TCRTLR); up 1041 drivers/tty/serial/omap-serial.c serial_out(up, UART_TI752_TCR, OMAP_UART_TCR_TRIG); up 1043 drivers/tty/serial/omap-serial.c up->port.status &= ~(UPSTAT_AUTOCTS | UPSTAT_AUTORTS | UPSTAT_AUTOXOFF); up 1045 drivers/tty/serial/omap-serial.c if (termios->c_cflag & CRTSCTS && up->port.flags & UPF_HARD_FLOW) { up 1047 drivers/tty/serial/omap-serial.c up->port.status |= UPSTAT_AUTOCTS | UPSTAT_AUTORTS; up 1048 drivers/tty/serial/omap-serial.c up->efr |= UART_EFR_CTS; up 1051 drivers/tty/serial/omap-serial.c up->efr &= ~(UART_EFR_CTS | UART_EFR_RTS); up 1054 drivers/tty/serial/omap-serial.c if (up->port.flags & UPF_SOFT_FLOW) { up 1056 drivers/tty/serial/omap-serial.c up->efr &= OMAP_UART_SW_CLR; up 1064 drivers/tty/serial/omap-serial.c up->efr |= OMAP_UART_SW_RX; up 1072 drivers/tty/serial/omap-serial.c up->port.status |= UPSTAT_AUTOXOFF; up 1073 drivers/tty/serial/omap-serial.c up->efr |= OMAP_UART_SW_TX; up 1083 drivers/tty/serial/omap-serial.c up->mcr |= UART_MCR_XONANY; up 1085 drivers/tty/serial/omap-serial.c up->mcr &= ~UART_MCR_XONANY; up 1087 drivers/tty/serial/omap-serial.c serial_out(up, UART_MCR, up->mcr); up 1088 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 1089 drivers/tty/serial/omap-serial.c serial_out(up, UART_EFR, up->efr); up 1090 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, up->lcr); up 1092 drivers/tty/serial/omap-serial.c serial_omap_set_mctrl(&up->port, up->port.mctrl); up 1094 drivers/tty/serial/omap-serial.c spin_unlock_irqrestore(&up->port.lock, flags); up 1095 drivers/tty/serial/omap-serial.c pm_runtime_mark_last_busy(up->dev); up 1096 drivers/tty/serial/omap-serial.c pm_runtime_put_autosuspend(up->dev); up 1097 drivers/tty/serial/omap-serial.c dev_dbg(up->port.dev, "serial_omap_set_termios+%d\n", up->port.line); up 1104 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = to_uart_omap_port(port); up 1107 drivers/tty/serial/omap-serial.c dev_dbg(up->port.dev, "serial_omap_pm+%d\n", up->port.line); up 1109 drivers/tty/serial/omap-serial.c pm_runtime_get_sync(up->dev); up 1110 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 1111 drivers/tty/serial/omap-serial.c efr = serial_in(up, UART_EFR); up 1112 drivers/tty/serial/omap-serial.c serial_out(up, UART_EFR, efr | UART_EFR_ECB); up 1113 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, 0); up 1115 drivers/tty/serial/omap-serial.c serial_out(up, UART_IER, (state != 0) ? UART_IERX_SLEEP : 0); up 1116 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); up 1117 drivers/tty/serial/omap-serial.c serial_out(up, UART_EFR, efr); up 1118 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, 0); up 1120 drivers/tty/serial/omap-serial.c pm_runtime_mark_last_busy(up->dev); up 1121 drivers/tty/serial/omap-serial.c pm_runtime_put_autosuspend(up->dev); up 1137 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = to_uart_omap_port(port); up 1139 drivers/tty/serial/omap-serial.c dev_dbg(up->port.dev, "serial_omap_config_port+%d\n", up 1140 drivers/tty/serial/omap-serial.c up->port.line); up 1141 drivers/tty/serial/omap-serial.c up->port.type = PORT_OMAP; up 1142 drivers/tty/serial/omap-serial.c up->port.flags |= UPF_SOFT_FLOW | UPF_HARD_FLOW; up 1156 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = to_uart_omap_port(port); up 1158 drivers/tty/serial/omap-serial.c dev_dbg(up->port.dev, "serial_omap_type+%d\n", up->port.line); up 1159 drivers/tty/serial/omap-serial.c return up->name; up 1164 drivers/tty/serial/omap-serial.c static void __maybe_unused wait_for_xmitr(struct uart_omap_port *up) up 1170 drivers/tty/serial/omap-serial.c status = serial_in(up, UART_LSR); up 1173 drivers/tty/serial/omap-serial.c up->lsr_break_flag = UART_LSR_BI; up 1181 drivers/tty/serial/omap-serial.c if (up->port.flags & UPF_CONS_FLOW) { up 1184 drivers/tty/serial/omap-serial.c unsigned int msr = serial_in(up, UART_MSR); up 1186 drivers/tty/serial/omap-serial.c up->msr_saved_flags |= msr & MSR_SAVE_FLAGS; up 1199 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = to_uart_omap_port(port); up 1201 drivers/tty/serial/omap-serial.c pm_runtime_get_sync(up->dev); up 1202 drivers/tty/serial/omap-serial.c wait_for_xmitr(up); up 1203 drivers/tty/serial/omap-serial.c serial_out(up, UART_TX, ch); up 1204 drivers/tty/serial/omap-serial.c pm_runtime_mark_last_busy(up->dev); up 1205 drivers/tty/serial/omap-serial.c pm_runtime_put_autosuspend(up->dev); up 1210 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = to_uart_omap_port(port); up 1213 drivers/tty/serial/omap-serial.c pm_runtime_get_sync(up->dev); up 1214 drivers/tty/serial/omap-serial.c status = serial_in(up, UART_LSR); up 1220 drivers/tty/serial/omap-serial.c status = serial_in(up, UART_RX); up 1223 drivers/tty/serial/omap-serial.c pm_runtime_mark_last_busy(up->dev); up 1224 drivers/tty/serial/omap-serial.c pm_runtime_put_autosuspend(up->dev); up 1293 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = to_uart_omap_port(port); up 1295 drivers/tty/serial/omap-serial.c wait_for_xmitr(up); up 1296 drivers/tty/serial/omap-serial.c serial_out(up, UART_TX, ch); up 1303 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = serial_omap_console_ports[co->index]; up 1308 drivers/tty/serial/omap-serial.c pm_runtime_get_sync(up->dev); up 1311 drivers/tty/serial/omap-serial.c if (up->port.sysrq) up 1314 drivers/tty/serial/omap-serial.c locked = spin_trylock(&up->port.lock); up 1316 drivers/tty/serial/omap-serial.c spin_lock(&up->port.lock); up 1321 drivers/tty/serial/omap-serial.c ier = serial_in(up, UART_IER); up 1322 drivers/tty/serial/omap-serial.c serial_out(up, UART_IER, 0); up 1324 drivers/tty/serial/omap-serial.c uart_console_write(&up->port, s, count, serial_omap_console_putchar); up 1330 drivers/tty/serial/omap-serial.c wait_for_xmitr(up); up 1331 drivers/tty/serial/omap-serial.c serial_out(up, UART_IER, ier); up 1339 drivers/tty/serial/omap-serial.c if (up->msr_saved_flags) up 1340 drivers/tty/serial/omap-serial.c check_modem_status(up); up 1342 drivers/tty/serial/omap-serial.c pm_runtime_mark_last_busy(up->dev); up 1343 drivers/tty/serial/omap-serial.c pm_runtime_put_autosuspend(up->dev); up 1345 drivers/tty/serial/omap-serial.c spin_unlock(&up->port.lock); up 1352 drivers/tty/serial/omap-serial.c struct uart_omap_port *up; up 1360 drivers/tty/serial/omap-serial.c up = serial_omap_console_ports[co->index]; up 1365 drivers/tty/serial/omap-serial.c return uart_set_options(&up->port, co, baud, parity, bits, flow); up 1378 drivers/tty/serial/omap-serial.c static void serial_omap_add_console_port(struct uart_omap_port *up) up 1380 drivers/tty/serial/omap-serial.c serial_omap_console_ports[up->port.line] = up; up 1389 drivers/tty/serial/omap-serial.c static inline void serial_omap_add_console_port(struct uart_omap_port *up) up 1398 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = to_uart_omap_port(port); up 1402 drivers/tty/serial/omap-serial.c pm_runtime_get_sync(up->dev); up 1405 drivers/tty/serial/omap-serial.c mode = up->ier; up 1406 drivers/tty/serial/omap-serial.c up->ier = 0; up 1407 drivers/tty/serial/omap-serial.c serial_out(up, UART_IER, 0); up 1420 drivers/tty/serial/omap-serial.c if (gpio_is_valid(up->rts_gpio)) { up 1425 drivers/tty/serial/omap-serial.c gpio_set_value(up->rts_gpio, val); up 1430 drivers/tty/serial/omap-serial.c up->ier = mode; up 1431 drivers/tty/serial/omap-serial.c serial_out(up, UART_IER, up->ier); up 1437 drivers/tty/serial/omap-serial.c (up->scr & OMAP_UART_SCR_TX_EMPTY)) { up 1438 drivers/tty/serial/omap-serial.c up->scr &= ~OMAP_UART_SCR_TX_EMPTY; up 1439 drivers/tty/serial/omap-serial.c serial_out(up, UART_OMAP_SCR, up->scr); up 1442 drivers/tty/serial/omap-serial.c pm_runtime_mark_last_busy(up->dev); up 1443 drivers/tty/serial/omap-serial.c pm_runtime_put_autosuspend(up->dev); up 1485 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = dev_get_drvdata(dev); up 1487 drivers/tty/serial/omap-serial.c up->is_suspending = true; up 1494 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = dev_get_drvdata(dev); up 1496 drivers/tty/serial/omap-serial.c up->is_suspending = false; up 1501 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = dev_get_drvdata(dev); up 1503 drivers/tty/serial/omap-serial.c uart_suspend_port(&serial_omap_reg, &up->port); up 1504 drivers/tty/serial/omap-serial.c flush_work(&up->qos_work); up 1507 drivers/tty/serial/omap-serial.c serial_omap_enable_wakeup(up, true); up 1509 drivers/tty/serial/omap-serial.c serial_omap_enable_wakeup(up, false); up 1516 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = dev_get_drvdata(dev); up 1519 drivers/tty/serial/omap-serial.c serial_omap_enable_wakeup(up, false); up 1521 drivers/tty/serial/omap-serial.c uart_resume_port(&serial_omap_reg, &up->port); up 1530 drivers/tty/serial/omap-serial.c static void omap_serial_fill_features_erratas(struct uart_omap_port *up) up 1535 drivers/tty/serial/omap-serial.c mvr = readl(up->port.membase + (UART_OMAP_MVER << up->port.regshift)); up 1555 drivers/tty/serial/omap-serial.c dev_warn(up->dev, up 1557 drivers/tty/serial/omap-serial.c up->name); up 1568 drivers/tty/serial/omap-serial.c up->errata |= (UART_ERRATA_i202_MDR1_ACCESS | up 1572 drivers/tty/serial/omap-serial.c up->errata |= (UART_ERRATA_i202_MDR1_ACCESS | up 1574 drivers/tty/serial/omap-serial.c up->features |= OMAP_UART_WER_HAS_TX_WAKEUP; up 1577 drivers/tty/serial/omap-serial.c up->errata |= UART_ERRATA_i202_MDR1_ACCESS; up 1578 drivers/tty/serial/omap-serial.c up->features |= OMAP_UART_WER_HAS_TX_WAKEUP; up 1601 drivers/tty/serial/omap-serial.c static int serial_omap_probe_rs485(struct uart_omap_port *up, up 1604 drivers/tty/serial/omap-serial.c struct serial_rs485 *rs485conf = &up->port.rs485; up 1608 drivers/tty/serial/omap-serial.c up->rts_gpio = -EINVAL; up 1613 drivers/tty/serial/omap-serial.c uart_get_rs485_mode(up->dev, rs485conf); up 1624 drivers/tty/serial/omap-serial.c up->rts_gpio = of_get_named_gpio(np, "rts-gpio", 0); up 1625 drivers/tty/serial/omap-serial.c if (gpio_is_valid(up->rts_gpio)) { up 1626 drivers/tty/serial/omap-serial.c ret = devm_gpio_request(up->dev, up->rts_gpio, "omap-serial"); up 1630 drivers/tty/serial/omap-serial.c ret = gpio_direction_output(up->rts_gpio, ret); up 1633 drivers/tty/serial/omap-serial.c } else if (up->rts_gpio == -EPROBE_DEFER) { up 1636 drivers/tty/serial/omap-serial.c up->rts_gpio = -EINVAL; up 1645 drivers/tty/serial/omap-serial.c struct uart_omap_port *up; up 1666 drivers/tty/serial/omap-serial.c up = devm_kzalloc(&pdev->dev, sizeof(*up), GFP_KERNEL); up 1667 drivers/tty/serial/omap-serial.c if (!up) up 1675 drivers/tty/serial/omap-serial.c up->dev = &pdev->dev; up 1676 drivers/tty/serial/omap-serial.c up->port.dev = &pdev->dev; up 1677 drivers/tty/serial/omap-serial.c up->port.type = PORT_OMAP; up 1678 drivers/tty/serial/omap-serial.c up->port.iotype = UPIO_MEM; up 1679 drivers/tty/serial/omap-serial.c up->port.irq = uartirq; up 1680 drivers/tty/serial/omap-serial.c up->port.regshift = 2; up 1681 drivers/tty/serial/omap-serial.c up->port.fifosize = 64; up 1682 drivers/tty/serial/omap-serial.c up->port.ops = &serial_omap_pops; up 1694 drivers/tty/serial/omap-serial.c up->port.line = ret; up 1696 drivers/tty/serial/omap-serial.c if (up->port.line >= OMAP_MAX_HSUART_PORTS) { up 1697 drivers/tty/serial/omap-serial.c dev_err(&pdev->dev, "uart ID %d > MAX %d.\n", up->port.line, up 1703 drivers/tty/serial/omap-serial.c up->wakeirq = wakeirq; up 1704 drivers/tty/serial/omap-serial.c if (!up->wakeirq) up 1705 drivers/tty/serial/omap-serial.c dev_info(up->port.dev, "no wakeirq for uart%d\n", up 1706 drivers/tty/serial/omap-serial.c up->port.line); up 1708 drivers/tty/serial/omap-serial.c ret = serial_omap_probe_rs485(up, pdev->dev.of_node); up 1712 drivers/tty/serial/omap-serial.c sprintf(up->name, "OMAP UART%d", up->port.line); up 1713 drivers/tty/serial/omap-serial.c up->port.mapbase = mem->start; up 1714 drivers/tty/serial/omap-serial.c up->port.membase = base; up 1715 drivers/tty/serial/omap-serial.c up->port.flags = omap_up_info->flags; up 1716 drivers/tty/serial/omap-serial.c up->port.uartclk = omap_up_info->uartclk; up 1717 drivers/tty/serial/omap-serial.c up->port.rs485_config = serial_omap_config_rs485; up 1718 drivers/tty/serial/omap-serial.c if (!up->port.uartclk) { up 1719 drivers/tty/serial/omap-serial.c up->port.uartclk = DEFAULT_CLK_SPEED; up 1725 drivers/tty/serial/omap-serial.c up->latency = PM_QOS_CPU_DMA_LAT_DEFAULT_VALUE; up 1726 drivers/tty/serial/omap-serial.c up->calc_latency = PM_QOS_CPU_DMA_LAT_DEFAULT_VALUE; up 1727 drivers/tty/serial/omap-serial.c pm_qos_add_request(&up->pm_qos_request, up 1728 drivers/tty/serial/omap-serial.c PM_QOS_CPU_DMA_LATENCY, up->latency); up 1729 drivers/tty/serial/omap-serial.c INIT_WORK(&up->qos_work, serial_omap_uart_qos_work); up 1731 drivers/tty/serial/omap-serial.c platform_set_drvdata(pdev, up); up 1735 drivers/tty/serial/omap-serial.c device_init_wakeup(up->dev, true); up 1745 drivers/tty/serial/omap-serial.c omap_serial_fill_features_erratas(up); up 1747 drivers/tty/serial/omap-serial.c ui[up->port.line] = up; up 1748 drivers/tty/serial/omap-serial.c serial_omap_add_console_port(up); up 1750 drivers/tty/serial/omap-serial.c ret = uart_add_one_port(&serial_omap_reg, &up->port); up 1754 drivers/tty/serial/omap-serial.c pm_runtime_mark_last_busy(up->dev); up 1755 drivers/tty/serial/omap-serial.c pm_runtime_put_autosuspend(up->dev); up 1762 drivers/tty/serial/omap-serial.c pm_qos_remove_request(&up->pm_qos_request); up 1763 drivers/tty/serial/omap-serial.c device_init_wakeup(up->dev, false); up 1771 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = platform_get_drvdata(dev); up 1773 drivers/tty/serial/omap-serial.c pm_runtime_get_sync(up->dev); up 1775 drivers/tty/serial/omap-serial.c uart_remove_one_port(&serial_omap_reg, &up->port); up 1777 drivers/tty/serial/omap-serial.c pm_runtime_dont_use_autosuspend(up->dev); up 1778 drivers/tty/serial/omap-serial.c pm_runtime_put_sync(up->dev); up 1779 drivers/tty/serial/omap-serial.c pm_runtime_disable(up->dev); up 1780 drivers/tty/serial/omap-serial.c pm_qos_remove_request(&up->pm_qos_request); up 1795 drivers/tty/serial/omap-serial.c static void serial_omap_mdr1_errataset(struct uart_omap_port *up, u8 mdr1) up 1799 drivers/tty/serial/omap-serial.c serial_out(up, UART_OMAP_MDR1, mdr1); up 1801 drivers/tty/serial/omap-serial.c serial_out(up, UART_FCR, up->fcr | UART_FCR_CLEAR_XMIT | up 1807 drivers/tty/serial/omap-serial.c while (UART_LSR_THRE != (serial_in(up, UART_LSR) & up 1812 drivers/tty/serial/omap-serial.c dev_crit(up->dev, "Errata i202: timedout %x\n", up 1813 drivers/tty/serial/omap-serial.c serial_in(up, UART_LSR)); up 1821 drivers/tty/serial/omap-serial.c static void serial_omap_restore_context(struct uart_omap_port *up) up 1823 drivers/tty/serial/omap-serial.c if (up->errata & UART_ERRATA_i202_MDR1_ACCESS) up 1824 drivers/tty/serial/omap-serial.c serial_omap_mdr1_errataset(up, UART_OMAP_MDR1_DISABLE); up 1826 drivers/tty/serial/omap-serial.c serial_out(up, UART_OMAP_MDR1, UART_OMAP_MDR1_DISABLE); up 1828 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); /* Config B mode */ up 1829 drivers/tty/serial/omap-serial.c serial_out(up, UART_EFR, UART_EFR_ECB); up 1830 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, 0x0); /* Operational mode */ up 1831 drivers/tty/serial/omap-serial.c serial_out(up, UART_IER, 0x0); up 1832 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); /* Config B mode */ up 1833 drivers/tty/serial/omap-serial.c serial_out(up, UART_DLL, up->dll); up 1834 drivers/tty/serial/omap-serial.c serial_out(up, UART_DLM, up->dlh); up 1835 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, 0x0); /* Operational mode */ up 1836 drivers/tty/serial/omap-serial.c serial_out(up, UART_IER, up->ier); up 1837 drivers/tty/serial/omap-serial.c serial_out(up, UART_FCR, up->fcr); up 1838 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A); up 1839 drivers/tty/serial/omap-serial.c serial_out(up, UART_MCR, up->mcr); up 1840 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); /* Config B mode */ up 1841 drivers/tty/serial/omap-serial.c serial_out(up, UART_OMAP_SCR, up->scr); up 1842 drivers/tty/serial/omap-serial.c serial_out(up, UART_EFR, up->efr); up 1843 drivers/tty/serial/omap-serial.c serial_out(up, UART_LCR, up->lcr); up 1844 drivers/tty/serial/omap-serial.c if (up->errata & UART_ERRATA_i202_MDR1_ACCESS) up 1845 drivers/tty/serial/omap-serial.c serial_omap_mdr1_errataset(up, up->mdr1); up 1847 drivers/tty/serial/omap-serial.c serial_out(up, UART_OMAP_MDR1, up->mdr1); up 1848 drivers/tty/serial/omap-serial.c serial_out(up, UART_OMAP_WER, up->wer); up 1853 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = dev_get_drvdata(dev); up 1855 drivers/tty/serial/omap-serial.c if (!up) up 1864 drivers/tty/serial/omap-serial.c if (up->is_suspending && !console_suspend_enabled && up 1865 drivers/tty/serial/omap-serial.c uart_console(&up->port)) up 1868 drivers/tty/serial/omap-serial.c up->context_loss_cnt = serial_omap_get_context_loss_count(up); up 1870 drivers/tty/serial/omap-serial.c serial_omap_enable_wakeup(up, true); up 1872 drivers/tty/serial/omap-serial.c up->latency = PM_QOS_CPU_DMA_LAT_DEFAULT_VALUE; up 1873 drivers/tty/serial/omap-serial.c schedule_work(&up->qos_work); up 1880 drivers/tty/serial/omap-serial.c struct uart_omap_port *up = dev_get_drvdata(dev); up 1882 drivers/tty/serial/omap-serial.c int loss_cnt = serial_omap_get_context_loss_count(up); up 1884 drivers/tty/serial/omap-serial.c serial_omap_enable_wakeup(up, false); up 1889 drivers/tty/serial/omap-serial.c serial_omap_restore_context(up); up 1890 drivers/tty/serial/omap-serial.c } else if (up->context_loss_cnt != loss_cnt) { up 1891 drivers/tty/serial/omap-serial.c serial_omap_restore_context(up); up 1893 drivers/tty/serial/omap-serial.c up->latency = up->calc_latency; up 1894 drivers/tty/serial/omap-serial.c schedule_work(&up->qos_work); up 1513 drivers/tty/serial/pch_uart.c static void wait_for_xmitr(struct eg20t_port *up, int bits) up 1519 drivers/tty/serial/pch_uart.c status = ioread8(up->membase + UART_LSR); up 1529 drivers/tty/serial/pch_uart.c if (up->port.flags & UPF_CONS_FLOW) { up 1532 drivers/tty/serial/pch_uart.c unsigned int msr = ioread8(up->membase + UART_MSR); up 55 drivers/tty/serial/pxa.c static inline unsigned int serial_in(struct uart_pxa_port *up, int offset) up 58 drivers/tty/serial/pxa.c return readl(up->port.membase + offset); up 61 drivers/tty/serial/pxa.c static inline void serial_out(struct uart_pxa_port *up, int offset, int value) up 64 drivers/tty/serial/pxa.c writel(value, up->port.membase + offset); up 69 drivers/tty/serial/pxa.c struct uart_pxa_port *up = (struct uart_pxa_port *)port; up 71 drivers/tty/serial/pxa.c up->ier |= UART_IER_MSI; up 72 drivers/tty/serial/pxa.c serial_out(up, UART_IER, up->ier); up 77 drivers/tty/serial/pxa.c struct uart_pxa_port *up = (struct uart_pxa_port *)port; up 79 drivers/tty/serial/pxa.c if (up->ier & UART_IER_THRI) { up 80 drivers/tty/serial/pxa.c up->ier &= ~UART_IER_THRI; up 81 drivers/tty/serial/pxa.c serial_out(up, UART_IER, up->ier); up 87 drivers/tty/serial/pxa.c struct uart_pxa_port *up = (struct uart_pxa_port *)port; up 89 drivers/tty/serial/pxa.c up->ier &= ~UART_IER_RLSI; up 90 drivers/tty/serial/pxa.c up->port.read_status_mask &= ~UART_LSR_DR; up 91 drivers/tty/serial/pxa.c serial_out(up, UART_IER, up->ier); up 94 drivers/tty/serial/pxa.c static inline void receive_chars(struct uart_pxa_port *up, int *status) up 107 drivers/tty/serial/pxa.c up->ier &= ~UART_IER_RTOIE; up 108 drivers/tty/serial/pxa.c serial_out(up, UART_IER, up->ier); up 110 drivers/tty/serial/pxa.c ch = serial_in(up, UART_RX); up 112 drivers/tty/serial/pxa.c up->port.icount.rx++; up 121 drivers/tty/serial/pxa.c up->port.icount.brk++; up 128 drivers/tty/serial/pxa.c if (uart_handle_break(&up->port)) up 131 drivers/tty/serial/pxa.c up->port.icount.parity++; up 133 drivers/tty/serial/pxa.c up->port.icount.frame++; up 135 drivers/tty/serial/pxa.c up->port.icount.overrun++; up 140 drivers/tty/serial/pxa.c *status &= up->port.read_status_mask; up 143 drivers/tty/serial/pxa.c if (up->port.line == up->port.cons->index) { up 145 drivers/tty/serial/pxa.c *status |= up->lsr_break_flag; up 146 drivers/tty/serial/pxa.c up->lsr_break_flag = 0; up 157 drivers/tty/serial/pxa.c if (uart_handle_sysrq_char(&up->port, ch)) up 160 drivers/tty/serial/pxa.c uart_insert_char(&up->port, *status, UART_LSR_OE, ch, flag); up 163 drivers/tty/serial/pxa.c *status = serial_in(up, UART_LSR); up 165 drivers/tty/serial/pxa.c tty_flip_buffer_push(&up->port.state->port); up 174 drivers/tty/serial/pxa.c up->ier |= UART_IER_RTOIE; up 175 drivers/tty/serial/pxa.c serial_out(up, UART_IER, up->ier); up 178 drivers/tty/serial/pxa.c static void transmit_chars(struct uart_pxa_port *up) up 180 drivers/tty/serial/pxa.c struct circ_buf *xmit = &up->port.state->xmit; up 183 drivers/tty/serial/pxa.c if (up->port.x_char) { up 184 drivers/tty/serial/pxa.c serial_out(up, UART_TX, up->port.x_char); up 185 drivers/tty/serial/pxa.c up->port.icount.tx++; up 186 drivers/tty/serial/pxa.c up->port.x_char = 0; up 189 drivers/tty/serial/pxa.c if (uart_circ_empty(xmit) || uart_tx_stopped(&up->port)) { up 190 drivers/tty/serial/pxa.c serial_pxa_stop_tx(&up->port); up 194 drivers/tty/serial/pxa.c count = up->port.fifosize / 2; up 196 drivers/tty/serial/pxa.c serial_out(up, UART_TX, xmit->buf[xmit->tail]); up 198 drivers/tty/serial/pxa.c up->port.icount.tx++; up 204 drivers/tty/serial/pxa.c uart_write_wakeup(&up->port); up 208 drivers/tty/serial/pxa.c serial_pxa_stop_tx(&up->port); up 213 drivers/tty/serial/pxa.c struct uart_pxa_port *up = (struct uart_pxa_port *)port; up 215 drivers/tty/serial/pxa.c if (!(up->ier & UART_IER_THRI)) { up 216 drivers/tty/serial/pxa.c up->ier |= UART_IER_THRI; up 217 drivers/tty/serial/pxa.c serial_out(up, UART_IER, up->ier); up 222 drivers/tty/serial/pxa.c static inline void check_modem_status(struct uart_pxa_port *up) up 226 drivers/tty/serial/pxa.c status = serial_in(up, UART_MSR); up 232 drivers/tty/serial/pxa.c up->port.icount.rng++; up 234 drivers/tty/serial/pxa.c up->port.icount.dsr++; up 236 drivers/tty/serial/pxa.c uart_handle_dcd_change(&up->port, status & UART_MSR_DCD); up 238 drivers/tty/serial/pxa.c uart_handle_cts_change(&up->port, status & UART_MSR_CTS); up 240 drivers/tty/serial/pxa.c wake_up_interruptible(&up->port.state->port.delta_msr_wait); up 248 drivers/tty/serial/pxa.c struct uart_pxa_port *up = dev_id; up 251 drivers/tty/serial/pxa.c iir = serial_in(up, UART_IIR); up 254 drivers/tty/serial/pxa.c spin_lock(&up->port.lock); up 255 drivers/tty/serial/pxa.c lsr = serial_in(up, UART_LSR); up 257 drivers/tty/serial/pxa.c receive_chars(up, &lsr); up 258 drivers/tty/serial/pxa.c check_modem_status(up); up 260 drivers/tty/serial/pxa.c transmit_chars(up); up 261 drivers/tty/serial/pxa.c spin_unlock(&up->port.lock); up 267 drivers/tty/serial/pxa.c struct uart_pxa_port *up = (struct uart_pxa_port *)port; up 271 drivers/tty/serial/pxa.c spin_lock_irqsave(&up->port.lock, flags); up 272 drivers/tty/serial/pxa.c ret = serial_in(up, UART_LSR) & UART_LSR_TEMT ? TIOCSER_TEMT : 0; up 273 drivers/tty/serial/pxa.c spin_unlock_irqrestore(&up->port.lock, flags); up 280 drivers/tty/serial/pxa.c struct uart_pxa_port *up = (struct uart_pxa_port *)port; up 284 drivers/tty/serial/pxa.c status = serial_in(up, UART_MSR); up 300 drivers/tty/serial/pxa.c struct uart_pxa_port *up = (struct uart_pxa_port *)port; up 314 drivers/tty/serial/pxa.c mcr |= up->mcr; up 316 drivers/tty/serial/pxa.c serial_out(up, UART_MCR, mcr); up 321 drivers/tty/serial/pxa.c struct uart_pxa_port *up = (struct uart_pxa_port *)port; up 324 drivers/tty/serial/pxa.c spin_lock_irqsave(&up->port.lock, flags); up 326 drivers/tty/serial/pxa.c up->lcr |= UART_LCR_SBC; up 328 drivers/tty/serial/pxa.c up->lcr &= ~UART_LCR_SBC; up 329 drivers/tty/serial/pxa.c serial_out(up, UART_LCR, up->lcr); up 330 drivers/tty/serial/pxa.c spin_unlock_irqrestore(&up->port.lock, flags); up 335 drivers/tty/serial/pxa.c struct uart_pxa_port *up = (struct uart_pxa_port *)port; up 340 drivers/tty/serial/pxa.c up->mcr |= UART_MCR_AFE; up 342 drivers/tty/serial/pxa.c up->mcr = 0; up 344 drivers/tty/serial/pxa.c up->port.uartclk = clk_get_rate(up->clk); up 349 drivers/tty/serial/pxa.c retval = request_irq(up->port.irq, serial_pxa_irq, 0, up->name, up); up 357 drivers/tty/serial/pxa.c serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO); up 358 drivers/tty/serial/pxa.c serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO | up 360 drivers/tty/serial/pxa.c serial_out(up, UART_FCR, 0); up 365 drivers/tty/serial/pxa.c (void) serial_in(up, UART_LSR); up 366 drivers/tty/serial/pxa.c (void) serial_in(up, UART_RX); up 367 drivers/tty/serial/pxa.c (void) serial_in(up, UART_IIR); up 368 drivers/tty/serial/pxa.c (void) serial_in(up, UART_MSR); up 373 drivers/tty/serial/pxa.c serial_out(up, UART_LCR, UART_LCR_WLEN8); up 375 drivers/tty/serial/pxa.c spin_lock_irqsave(&up->port.lock, flags); up 376 drivers/tty/serial/pxa.c up->port.mctrl |= TIOCM_OUT2; up 377 drivers/tty/serial/pxa.c serial_pxa_set_mctrl(&up->port, up->port.mctrl); up 378 drivers/tty/serial/pxa.c spin_unlock_irqrestore(&up->port.lock, flags); up 385 drivers/tty/serial/pxa.c up->ier = UART_IER_RLSI | UART_IER_RDI | UART_IER_RTOIE | UART_IER_UUE; up 386 drivers/tty/serial/pxa.c serial_out(up, UART_IER, up->ier); up 391 drivers/tty/serial/pxa.c (void) serial_in(up, UART_LSR); up 392 drivers/tty/serial/pxa.c (void) serial_in(up, UART_RX); up 393 drivers/tty/serial/pxa.c (void) serial_in(up, UART_IIR); up 394 drivers/tty/serial/pxa.c (void) serial_in(up, UART_MSR); up 401 drivers/tty/serial/pxa.c struct uart_pxa_port *up = (struct uart_pxa_port *)port; up 404 drivers/tty/serial/pxa.c free_irq(up->port.irq, up); up 409 drivers/tty/serial/pxa.c up->ier = 0; up 410 drivers/tty/serial/pxa.c serial_out(up, UART_IER, 0); up 412 drivers/tty/serial/pxa.c spin_lock_irqsave(&up->port.lock, flags); up 413 drivers/tty/serial/pxa.c up->port.mctrl &= ~TIOCM_OUT2; up 414 drivers/tty/serial/pxa.c serial_pxa_set_mctrl(&up->port, up->port.mctrl); up 415 drivers/tty/serial/pxa.c spin_unlock_irqrestore(&up->port.lock, flags); up 420 drivers/tty/serial/pxa.c serial_out(up, UART_LCR, serial_in(up, UART_LCR) & ~UART_LCR_SBC); up 421 drivers/tty/serial/pxa.c serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO | up 424 drivers/tty/serial/pxa.c serial_out(up, UART_FCR, 0); up 431 drivers/tty/serial/pxa.c struct uart_pxa_port *up = (struct uart_pxa_port *)port; up 466 drivers/tty/serial/pxa.c if ((up->port.uartclk / quot) < (2400 * 16)) up 468 drivers/tty/serial/pxa.c else if ((up->port.uartclk / quot) < (230400 * 16)) up 477 drivers/tty/serial/pxa.c spin_lock_irqsave(&up->port.lock, flags); up 483 drivers/tty/serial/pxa.c up->ier |= UART_IER_UUE; up 490 drivers/tty/serial/pxa.c up->port.read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; up 492 drivers/tty/serial/pxa.c up->port.read_status_mask |= UART_LSR_FE | UART_LSR_PE; up 494 drivers/tty/serial/pxa.c up->port.read_status_mask |= UART_LSR_BI; up 499 drivers/tty/serial/pxa.c up->port.ignore_status_mask = 0; up 501 drivers/tty/serial/pxa.c up->port.ignore_status_mask |= UART_LSR_PE | UART_LSR_FE; up 503 drivers/tty/serial/pxa.c up->port.ignore_status_mask |= UART_LSR_BI; up 509 drivers/tty/serial/pxa.c up->port.ignore_status_mask |= UART_LSR_OE; up 516 drivers/tty/serial/pxa.c up->port.ignore_status_mask |= UART_LSR_DR; up 521 drivers/tty/serial/pxa.c up->ier &= ~UART_IER_MSI; up 522 drivers/tty/serial/pxa.c if (UART_ENABLE_MS(&up->port, termios->c_cflag)) up 523 drivers/tty/serial/pxa.c up->ier |= UART_IER_MSI; up 525 drivers/tty/serial/pxa.c serial_out(up, UART_IER, up->ier); up 528 drivers/tty/serial/pxa.c up->mcr |= UART_MCR_AFE; up 530 drivers/tty/serial/pxa.c up->mcr &= ~UART_MCR_AFE; up 532 drivers/tty/serial/pxa.c serial_out(up, UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */ up 533 drivers/tty/serial/pxa.c serial_out(up, UART_DLL, quot & 0xff); /* LS of divisor */ up 539 drivers/tty/serial/pxa.c dll = serial_in(up, UART_DLL); up 542 drivers/tty/serial/pxa.c serial_out(up, UART_DLM, quot >> 8); /* MS of divisor */ up 543 drivers/tty/serial/pxa.c serial_out(up, UART_LCR, cval); /* reset DLAB */ up 544 drivers/tty/serial/pxa.c up->lcr = cval; /* Save LCR */ up 545 drivers/tty/serial/pxa.c serial_pxa_set_mctrl(&up->port, up->port.mctrl); up 546 drivers/tty/serial/pxa.c serial_out(up, UART_FCR, fcr); up 547 drivers/tty/serial/pxa.c spin_unlock_irqrestore(&up->port.lock, flags); up 554 drivers/tty/serial/pxa.c struct uart_pxa_port *up = (struct uart_pxa_port *)port; up 557 drivers/tty/serial/pxa.c clk_prepare_enable(up->clk); up 559 drivers/tty/serial/pxa.c clk_disable_unprepare(up->clk); up 573 drivers/tty/serial/pxa.c struct uart_pxa_port *up = (struct uart_pxa_port *)port; up 574 drivers/tty/serial/pxa.c up->port.type = PORT_PXA; up 587 drivers/tty/serial/pxa.c struct uart_pxa_port *up = (struct uart_pxa_port *)port; up 588 drivers/tty/serial/pxa.c return up->name; up 601 drivers/tty/serial/pxa.c static void wait_for_xmitr(struct uart_pxa_port *up) up 607 drivers/tty/serial/pxa.c status = serial_in(up, UART_LSR); up 610 drivers/tty/serial/pxa.c up->lsr_break_flag = UART_LSR_BI; up 618 drivers/tty/serial/pxa.c if (up->port.flags & UPF_CONS_FLOW) { up 621 drivers/tty/serial/pxa.c ((serial_in(up, UART_MSR) & UART_MSR_CTS) == 0)) up 628 drivers/tty/serial/pxa.c struct uart_pxa_port *up = (struct uart_pxa_port *)port; up 630 drivers/tty/serial/pxa.c wait_for_xmitr(up); up 631 drivers/tty/serial/pxa.c serial_out(up, UART_TX, ch); up 643 drivers/tty/serial/pxa.c struct uart_pxa_port *up = serial_pxa_ports[co->index]; up 648 drivers/tty/serial/pxa.c clk_enable(up->clk); up 650 drivers/tty/serial/pxa.c if (up->port.sysrq) up 653 drivers/tty/serial/pxa.c locked = spin_trylock(&up->port.lock); up 655 drivers/tty/serial/pxa.c spin_lock(&up->port.lock); up 660 drivers/tty/serial/pxa.c ier = serial_in(up, UART_IER); up 661 drivers/tty/serial/pxa.c serial_out(up, UART_IER, UART_IER_UUE); up 663 drivers/tty/serial/pxa.c uart_console_write(&up->port, s, count, serial_pxa_console_putchar); up 669 drivers/tty/serial/pxa.c wait_for_xmitr(up); up 670 drivers/tty/serial/pxa.c serial_out(up, UART_IER, ier); up 673 drivers/tty/serial/pxa.c spin_unlock(&up->port.lock); up 675 drivers/tty/serial/pxa.c clk_disable(up->clk); up 687 drivers/tty/serial/pxa.c struct uart_pxa_port *up = (struct uart_pxa_port *)port; up 688 drivers/tty/serial/pxa.c unsigned char lsr = serial_in(up, UART_LSR); up 691 drivers/tty/serial/pxa.c lsr = serial_in(up, UART_LSR); up 693 drivers/tty/serial/pxa.c return serial_in(up, UART_RX); up 701 drivers/tty/serial/pxa.c struct uart_pxa_port *up = (struct uart_pxa_port *)port; up 706 drivers/tty/serial/pxa.c ier = serial_in(up, UART_IER); up 707 drivers/tty/serial/pxa.c serial_out(up, UART_IER, UART_IER_UUE); up 709 drivers/tty/serial/pxa.c wait_for_xmitr(up); up 713 drivers/tty/serial/pxa.c serial_out(up, UART_TX, c); up 719 drivers/tty/serial/pxa.c wait_for_xmitr(up); up 720 drivers/tty/serial/pxa.c serial_out(up, UART_IER, ier); up 728 drivers/tty/serial/pxa.c struct uart_pxa_port *up; up 736 drivers/tty/serial/pxa.c up = serial_pxa_ports[co->index]; up 737 drivers/tty/serial/pxa.c if (!up) up 743 drivers/tty/serial/pxa.c return uart_set_options(&up->port, co, baud, parity, bits, flow); up 234 drivers/tty/serial/rp2.c static void rp2_rmw(struct rp2_uart_port *up, int reg, up 237 drivers/tty/serial/rp2.c u32 tmp = readl(up->base + reg); up 240 drivers/tty/serial/rp2.c writel(tmp, up->base + reg); up 243 drivers/tty/serial/rp2.c static void rp2_rmw_clr(struct rp2_uart_port *up, int reg, u32 val) up 245 drivers/tty/serial/rp2.c rp2_rmw(up, reg, val, 0); up 248 drivers/tty/serial/rp2.c static void rp2_rmw_set(struct rp2_uart_port *up, int reg, u32 val) up 250 drivers/tty/serial/rp2.c rp2_rmw(up, reg, 0, val); up 253 drivers/tty/serial/rp2.c static void rp2_mask_ch_irq(struct rp2_uart_port *up, int ch_num, up 258 drivers/tty/serial/rp2.c spin_lock_irqsave(&up->card->card_lock, flags); up 260 drivers/tty/serial/rp2.c irq_mask = readl(up->asic_base + RP2_CH_IRQ_MASK); up 265 drivers/tty/serial/rp2.c writel(irq_mask, up->asic_base + RP2_CH_IRQ_MASK); up 267 drivers/tty/serial/rp2.c spin_unlock_irqrestore(&up->card->card_lock, flags); up 272 drivers/tty/serial/rp2.c struct rp2_uart_port *up = port_to_up(port); up 280 drivers/tty/serial/rp2.c spin_lock_irqsave(&up->port.lock, flags); up 281 drivers/tty/serial/rp2.c tx_fifo_bytes = readw(up->base + RP2_TX_FIFO_COUNT); up 282 drivers/tty/serial/rp2.c spin_unlock_irqrestore(&up->port.lock, flags); up 289 drivers/tty/serial/rp2.c struct rp2_uart_port *up = port_to_up(port); up 292 drivers/tty/serial/rp2.c status = readl(up->base + RP2_CHAN_STAT); up 338 drivers/tty/serial/rp2.c static void __rp2_uart_set_termios(struct rp2_uart_port *up, up 344 drivers/tty/serial/rp2.c writew(baud_div - 1, up->base + RP2_BAUD); up 347 drivers/tty/serial/rp2.c rp2_rmw(up, RP2_UART_CTL, up 356 drivers/tty/serial/rp2.c rp2_rmw(up, RP2_TXRX_CTL, up 369 drivers/tty/serial/rp2.c up->ucode + RP2_TX_SWFLOW); up 371 drivers/tty/serial/rp2.c up->ucode + RP2_RX_SWFLOW); up 378 drivers/tty/serial/rp2.c struct rp2_uart_port *up = port_to_up(port); up 393 drivers/tty/serial/rp2.c __rp2_uart_set_termios(up, new->c_cflag, new->c_iflag, baud_div); up 399 drivers/tty/serial/rp2.c static void rp2_rx_chars(struct rp2_uart_port *up) up 401 drivers/tty/serial/rp2.c u16 bytes = readw(up->base + RP2_RX_FIFO_COUNT); up 402 drivers/tty/serial/rp2.c struct tty_port *port = &up->port.state->port; up 405 drivers/tty/serial/rp2.c u32 byte = readw(up->base + RP2_DATA_BYTE) | RP2_DUMMY_READ; up 409 drivers/tty/serial/rp2.c if (!uart_handle_sysrq_char(&up->port, ch)) up 410 drivers/tty/serial/rp2.c uart_insert_char(&up->port, byte, 0, ch, up 421 drivers/tty/serial/rp2.c uart_insert_char(&up->port, byte, up 424 drivers/tty/serial/rp2.c up->port.icount.rx++; up 427 drivers/tty/serial/rp2.c spin_unlock(&up->port.lock); up 429 drivers/tty/serial/rp2.c spin_lock(&up->port.lock); up 432 drivers/tty/serial/rp2.c static void rp2_tx_chars(struct rp2_uart_port *up) up 434 drivers/tty/serial/rp2.c u16 max_tx = FIFO_SIZE - readw(up->base + RP2_TX_FIFO_COUNT); up 435 drivers/tty/serial/rp2.c struct circ_buf *xmit = &up->port.state->xmit; up 437 drivers/tty/serial/rp2.c if (uart_tx_stopped(&up->port)) { up 438 drivers/tty/serial/rp2.c rp2_uart_stop_tx(&up->port); up 443 drivers/tty/serial/rp2.c if (up->port.x_char) { up 444 drivers/tty/serial/rp2.c writeb(up->port.x_char, up->base + RP2_DATA_BYTE); up 445 drivers/tty/serial/rp2.c up->port.x_char = 0; up 446 drivers/tty/serial/rp2.c up->port.icount.tx++; up 450 drivers/tty/serial/rp2.c rp2_uart_stop_tx(&up->port); up 453 drivers/tty/serial/rp2.c writeb(xmit->buf[xmit->tail], up->base + RP2_DATA_BYTE); up 455 drivers/tty/serial/rp2.c up->port.icount.tx++; up 459 drivers/tty/serial/rp2.c uart_write_wakeup(&up->port); up 462 drivers/tty/serial/rp2.c static void rp2_ch_interrupt(struct rp2_uart_port *up) up 466 drivers/tty/serial/rp2.c spin_lock(&up->port.lock); up 472 drivers/tty/serial/rp2.c status = readl(up->base + RP2_CHAN_STAT); up 473 drivers/tty/serial/rp2.c writel(status, up->base + RP2_CHAN_STAT); up 476 drivers/tty/serial/rp2.c rp2_rx_chars(up); up 478 drivers/tty/serial/rp2.c rp2_tx_chars(up); up 480 drivers/tty/serial/rp2.c wake_up_interruptible(&up->port.state->port.delta_msr_wait); up 482 drivers/tty/serial/rp2.c spin_unlock(&up->port.lock); up 511 drivers/tty/serial/rp2.c static inline void rp2_flush_fifos(struct rp2_uart_port *up) up 513 drivers/tty/serial/rp2.c rp2_rmw_set(up, RP2_UART_CTL, up 515 drivers/tty/serial/rp2.c readl(up->base + RP2_UART_CTL); up 517 drivers/tty/serial/rp2.c rp2_rmw_clr(up, RP2_UART_CTL, up 523 drivers/tty/serial/rp2.c struct rp2_uart_port *up = port_to_up(port); up 525 drivers/tty/serial/rp2.c rp2_flush_fifos(up); up 526 drivers/tty/serial/rp2.c rp2_rmw(up, RP2_TXRX_CTL, RP2_TXRX_CTL_MSRIRQ_m, RP2_TXRX_CTL_RXIRQ_m); up 527 drivers/tty/serial/rp2.c rp2_rmw(up, RP2_TXRX_CTL, RP2_TXRX_CTL_RX_TRIG_m, up 529 drivers/tty/serial/rp2.c rp2_rmw(up, RP2_CHAN_STAT, 0, 0); up 530 drivers/tty/serial/rp2.c rp2_mask_ch_irq(up, up->idx, 1); up 537 drivers/tty/serial/rp2.c struct rp2_uart_port *up = port_to_up(port); up 543 drivers/tty/serial/rp2.c rp2_mask_ch_irq(up, up->idx, 0); up 544 drivers/tty/serial/rp2.c rp2_rmw(up, RP2_CHAN_STAT, 0, 0); up 630 drivers/tty/serial/rp2.c static void rp2_init_port(struct rp2_uart_port *up, const struct firmware *fw) up 634 drivers/tty/serial/rp2.c writel(RP2_UART_CTL_RESET_CH_m, up->base + RP2_UART_CTL); up 635 drivers/tty/serial/rp2.c readl(up->base + RP2_UART_CTL); up 638 drivers/tty/serial/rp2.c writel(0, up->base + RP2_TXRX_CTL); up 639 drivers/tty/serial/rp2.c writel(0, up->base + RP2_UART_CTL); up 640 drivers/tty/serial/rp2.c readl(up->base + RP2_UART_CTL); up 643 drivers/tty/serial/rp2.c rp2_flush_fifos(up); up 646 drivers/tty/serial/rp2.c writeb(fw->data[i], up->ucode + i); up 648 drivers/tty/serial/rp2.c __rp2_uart_set_termios(up, CS8 | CREAD | CLOCAL, 0, DEFAULT_BAUD_DIV); up 649 drivers/tty/serial/rp2.c rp2_uart_set_mctrl(&up->port, 0); up 651 drivers/tty/serial/rp2.c writeb(RP2_RX_FIFO_ena, up->ucode + RP2_RX_FIFO); up 652 drivers/tty/serial/rp2.c rp2_rmw(up, RP2_UART_CTL, RP2_UART_CTL_MODE_m, up 654 drivers/tty/serial/rp2.c rp2_rmw_set(up, RP2_TXRX_CTL, up 170 drivers/tty/serial/serial_txx9.c static inline unsigned int sio_in(struct uart_txx9_port *up, int offset) up 172 drivers/tty/serial/serial_txx9.c switch (up->port.iotype) { up 174 drivers/tty/serial/serial_txx9.c return __raw_readl(up->port.membase + offset); up 176 drivers/tty/serial/serial_txx9.c return inl(up->port.iobase + offset); up 181 drivers/tty/serial/serial_txx9.c sio_out(struct uart_txx9_port *up, int offset, int value) up 183 drivers/tty/serial/serial_txx9.c switch (up->port.iotype) { up 185 drivers/tty/serial/serial_txx9.c __raw_writel(value, up->port.membase + offset); up 188 drivers/tty/serial/serial_txx9.c outl(value, up->port.iobase + offset); up 194 drivers/tty/serial/serial_txx9.c sio_mask(struct uart_txx9_port *up, int offset, unsigned int value) up 196 drivers/tty/serial/serial_txx9.c sio_out(up, offset, sio_in(up, offset) & ~value); up 199 drivers/tty/serial/serial_txx9.c sio_set(struct uart_txx9_port *up, int offset, unsigned int value) up 201 drivers/tty/serial/serial_txx9.c sio_out(up, offset, sio_in(up, offset) | value); up 205 drivers/tty/serial/serial_txx9.c sio_quot_set(struct uart_txx9_port *up, int quot) up 209 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SIBGR, quot | TXX9_SIBGR_BCLK_T0); up 211 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SIBGR, (quot >> 2) | TXX9_SIBGR_BCLK_T2); up 213 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SIBGR, (quot >> 4) | TXX9_SIBGR_BCLK_T4); up 215 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SIBGR, (quot >> 6) | TXX9_SIBGR_BCLK_T6); up 217 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SIBGR, 0xff | TXX9_SIBGR_BCLK_T6); up 227 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = to_uart_txx9_port(port); up 228 drivers/tty/serial/serial_txx9.c sio_mask(up, TXX9_SIDICR, TXX9_SIDICR_TIE); up 233 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = to_uart_txx9_port(port); up 234 drivers/tty/serial/serial_txx9.c sio_set(up, TXX9_SIDICR, TXX9_SIDICR_TIE); up 239 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = to_uart_txx9_port(port); up 240 drivers/tty/serial/serial_txx9.c up->port.read_status_mask &= ~TXX9_SIDISR_RDIS; up 245 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = to_uart_txx9_port(port); up 248 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SIFCR, TXX9_SIFCR_SWRST); up 252 drivers/tty/serial/serial_txx9.c while ((sio_in(up, TXX9_SIFCR) & TXX9_SIFCR_SWRST) && --tmout) up 255 drivers/tty/serial/serial_txx9.c sio_set(up, TXX9_SIFCR, up 258 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SILCR, up 260 drivers/tty/serial/serial_txx9.c ((up->port.flags & UPF_TXX9_USE_SCLK) ? up 262 drivers/tty/serial/serial_txx9.c sio_quot_set(up, uart_get_divisor(port, 9600)); up 263 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SIFLCR, TXX9_SIFLCR_RTSTL_MAX /* 15 */); up 264 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SIDICR, 0); up 268 drivers/tty/serial/serial_txx9.c receive_chars(struct uart_txx9_port *up, unsigned int *status) up 277 drivers/tty/serial/serial_txx9.c ch = sio_in(up, TXX9_SIRFIFO); up 279 drivers/tty/serial/serial_txx9.c up->port.icount.rx++; up 283 drivers/tty/serial/serial_txx9.c up->port.ignore_status_mask & ~TXX9_SIDISR_RFDN_MASK; up 291 drivers/tty/serial/serial_txx9.c up->port.icount.brk++; up 298 drivers/tty/serial/serial_txx9.c if (uart_handle_break(&up->port)) up 301 drivers/tty/serial/serial_txx9.c up->port.icount.parity++; up 303 drivers/tty/serial/serial_txx9.c up->port.icount.frame++; up 305 drivers/tty/serial/serial_txx9.c up->port.icount.overrun++; up 319 drivers/tty/serial/serial_txx9.c disr &= up->port.read_status_mask; up 328 drivers/tty/serial/serial_txx9.c if (uart_handle_sysrq_char(&up->port, ch)) up 331 drivers/tty/serial/serial_txx9.c uart_insert_char(&up->port, disr, TXX9_SIDISR_UOER, ch, flag); up 334 drivers/tty/serial/serial_txx9.c up->port.ignore_status_mask = next_ignore_status_mask; up 335 drivers/tty/serial/serial_txx9.c disr = sio_in(up, TXX9_SIDISR); up 337 drivers/tty/serial/serial_txx9.c spin_unlock(&up->port.lock); up 338 drivers/tty/serial/serial_txx9.c tty_flip_buffer_push(&up->port.state->port); up 339 drivers/tty/serial/serial_txx9.c spin_lock(&up->port.lock); up 343 drivers/tty/serial/serial_txx9.c static inline void transmit_chars(struct uart_txx9_port *up) up 345 drivers/tty/serial/serial_txx9.c struct circ_buf *xmit = &up->port.state->xmit; up 348 drivers/tty/serial/serial_txx9.c if (up->port.x_char) { up 349 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SITFIFO, up->port.x_char); up 350 drivers/tty/serial/serial_txx9.c up->port.icount.tx++; up 351 drivers/tty/serial/serial_txx9.c up->port.x_char = 0; up 354 drivers/tty/serial/serial_txx9.c if (uart_circ_empty(xmit) || uart_tx_stopped(&up->port)) { up 355 drivers/tty/serial/serial_txx9.c serial_txx9_stop_tx(&up->port); up 361 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SITFIFO, xmit->buf[xmit->tail]); up 363 drivers/tty/serial/serial_txx9.c up->port.icount.tx++; up 369 drivers/tty/serial/serial_txx9.c uart_write_wakeup(&up->port); up 372 drivers/tty/serial/serial_txx9.c serial_txx9_stop_tx(&up->port); up 378 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = dev_id; up 382 drivers/tty/serial/serial_txx9.c spin_lock(&up->port.lock); up 383 drivers/tty/serial/serial_txx9.c status = sio_in(up, TXX9_SIDISR); up 384 drivers/tty/serial/serial_txx9.c if (!(sio_in(up, TXX9_SIDICR) & TXX9_SIDICR_TIE)) up 388 drivers/tty/serial/serial_txx9.c spin_unlock(&up->port.lock); up 393 drivers/tty/serial/serial_txx9.c receive_chars(up, &status); up 395 drivers/tty/serial/serial_txx9.c transmit_chars(up); up 397 drivers/tty/serial/serial_txx9.c sio_mask(up, TXX9_SIDISR, up 400 drivers/tty/serial/serial_txx9.c spin_unlock(&up->port.lock); up 411 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = to_uart_txx9_port(port); up 415 drivers/tty/serial/serial_txx9.c spin_lock_irqsave(&up->port.lock, flags); up 416 drivers/tty/serial/serial_txx9.c ret = (sio_in(up, TXX9_SICISR) & TXX9_SICISR_TXALS) ? TIOCSER_TEMT : 0; up 417 drivers/tty/serial/serial_txx9.c spin_unlock_irqrestore(&up->port.lock, flags); up 424 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = to_uart_txx9_port(port); up 429 drivers/tty/serial/serial_txx9.c ret |= (sio_in(up, TXX9_SIFLCR) & TXX9_SIFLCR_RTSSC) ? 0 : TIOCM_RTS; up 430 drivers/tty/serial/serial_txx9.c ret |= (sio_in(up, TXX9_SICISR) & TXX9_SICISR_CTSS) ? 0 : TIOCM_CTS; up 437 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = to_uart_txx9_port(port); up 440 drivers/tty/serial/serial_txx9.c sio_mask(up, TXX9_SIFLCR, TXX9_SIFLCR_RTSSC); up 442 drivers/tty/serial/serial_txx9.c sio_set(up, TXX9_SIFLCR, TXX9_SIFLCR_RTSSC); up 447 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = to_uart_txx9_port(port); up 450 drivers/tty/serial/serial_txx9.c spin_lock_irqsave(&up->port.lock, flags); up 452 drivers/tty/serial/serial_txx9.c sio_set(up, TXX9_SIFLCR, TXX9_SIFLCR_TBRK); up 454 drivers/tty/serial/serial_txx9.c sio_mask(up, TXX9_SIFLCR, TXX9_SIFLCR_TBRK); up 455 drivers/tty/serial/serial_txx9.c spin_unlock_irqrestore(&up->port.lock, flags); up 462 drivers/tty/serial/serial_txx9.c static void wait_for_xmitr(struct uart_txx9_port *up) up 468 drivers/tty/serial/serial_txx9.c !(sio_in(up, TXX9_SICISR) & TXX9_SICISR_TXALS)) up 472 drivers/tty/serial/serial_txx9.c if (up->port.flags & UPF_CONS_FLOW) { up 475 drivers/tty/serial/serial_txx9.c (sio_in(up, TXX9_SICISR) & TXX9_SICISR_CTSS)) up 491 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = to_uart_txx9_port(port); up 496 drivers/tty/serial/serial_txx9.c ier = sio_in(up, TXX9_SIDICR); up 497 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SIDICR, 0); up 499 drivers/tty/serial/serial_txx9.c while (sio_in(up, TXX9_SIDISR) & TXX9_SIDISR_UVALID) up 502 drivers/tty/serial/serial_txx9.c c = sio_in(up, TXX9_SIRFIFO); up 508 drivers/tty/serial/serial_txx9.c sio_mask(up, TXX9_SIDISR, TXX9_SIDISR_RDIS); up 509 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SIDICR, ier); up 517 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = to_uart_txx9_port(port); up 522 drivers/tty/serial/serial_txx9.c ier = sio_in(up, TXX9_SIDICR); up 523 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SIDICR, 0); up 525 drivers/tty/serial/serial_txx9.c wait_for_xmitr(up); up 529 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SITFIFO, c); up 535 drivers/tty/serial/serial_txx9.c wait_for_xmitr(up); up 536 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SIDICR, ier); up 543 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = to_uart_txx9_port(port); up 551 drivers/tty/serial/serial_txx9.c sio_set(up, TXX9_SIFCR, up 554 drivers/tty/serial/serial_txx9.c sio_mask(up, TXX9_SIFCR, up 556 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SIDICR, 0); up 561 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SIDISR, 0); up 563 drivers/tty/serial/serial_txx9.c retval = request_irq(up->port.irq, serial_txx9_interrupt, up 564 drivers/tty/serial/serial_txx9.c IRQF_SHARED, "serial_txx9", up); up 571 drivers/tty/serial/serial_txx9.c spin_lock_irqsave(&up->port.lock, flags); up 572 drivers/tty/serial/serial_txx9.c serial_txx9_set_mctrl(&up->port, up->port.mctrl); up 573 drivers/tty/serial/serial_txx9.c spin_unlock_irqrestore(&up->port.lock, flags); up 576 drivers/tty/serial/serial_txx9.c sio_mask(up, TXX9_SIFLCR, TXX9_SIFLCR_RSDE | TXX9_SIFLCR_TSDE); up 581 drivers/tty/serial/serial_txx9.c sio_set(up, TXX9_SIDICR, TXX9_SIDICR_RIE); up 588 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = to_uart_txx9_port(port); up 594 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SIDICR, 0); /* disable all intrs */ up 596 drivers/tty/serial/serial_txx9.c spin_lock_irqsave(&up->port.lock, flags); up 597 drivers/tty/serial/serial_txx9.c serial_txx9_set_mctrl(&up->port, up->port.mctrl); up 598 drivers/tty/serial/serial_txx9.c spin_unlock_irqrestore(&up->port.lock, flags); up 603 drivers/tty/serial/serial_txx9.c sio_mask(up, TXX9_SIFLCR, TXX9_SIFLCR_TBRK); up 606 drivers/tty/serial/serial_txx9.c if (up->port.cons && up->port.line == up->port.cons->index) { up 607 drivers/tty/serial/serial_txx9.c free_irq(up->port.irq, up); up 612 drivers/tty/serial/serial_txx9.c sio_set(up, TXX9_SIFCR, up 615 drivers/tty/serial/serial_txx9.c sio_mask(up, TXX9_SIFCR, up 619 drivers/tty/serial/serial_txx9.c sio_set(up, TXX9_SIFLCR, TXX9_SIFLCR_RSDE | TXX9_SIFLCR_TSDE); up 621 drivers/tty/serial/serial_txx9.c free_irq(up->port.irq, up); up 628 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = to_uart_txx9_port(port); up 639 drivers/tty/serial/serial_txx9.c cval = sio_in(up, TXX9_SILCR); up 679 drivers/tty/serial/serial_txx9.c spin_lock_irqsave(&up->port.lock, flags); up 686 drivers/tty/serial/serial_txx9.c up->port.read_status_mask = TXX9_SIDISR_UOER | up 689 drivers/tty/serial/serial_txx9.c up->port.read_status_mask |= TXX9_SIDISR_UFER | TXX9_SIDISR_UPER; up 691 drivers/tty/serial/serial_txx9.c up->port.read_status_mask |= TXX9_SIDISR_UBRK; up 696 drivers/tty/serial/serial_txx9.c up->port.ignore_status_mask = 0; up 698 drivers/tty/serial/serial_txx9.c up->port.ignore_status_mask |= TXX9_SIDISR_UPER | TXX9_SIDISR_UFER; up 700 drivers/tty/serial/serial_txx9.c up->port.ignore_status_mask |= TXX9_SIDISR_UBRK; up 706 drivers/tty/serial/serial_txx9.c up->port.ignore_status_mask |= TXX9_SIDISR_UOER; up 713 drivers/tty/serial/serial_txx9.c up->port.ignore_status_mask |= TXX9_SIDISR_RDIS; up 717 drivers/tty/serial/serial_txx9.c (up->port.flags & UPF_TXX9_HAVE_CTS_LINE)) { up 718 drivers/tty/serial/serial_txx9.c sio_set(up, TXX9_SIFLCR, up 721 drivers/tty/serial/serial_txx9.c sio_mask(up, TXX9_SIFLCR, up 725 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SILCR, cval); up 726 drivers/tty/serial/serial_txx9.c sio_quot_set(up, quot); up 727 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SIFCR, fcr); up 729 drivers/tty/serial/serial_txx9.c serial_txx9_set_mctrl(&up->port, up->port.mctrl); up 730 drivers/tty/serial/serial_txx9.c spin_unlock_irqrestore(&up->port.lock, flags); up 749 drivers/tty/serial/serial_txx9.c static int serial_txx9_request_resource(struct uart_txx9_port *up) up 754 drivers/tty/serial/serial_txx9.c switch (up->port.iotype) { up 756 drivers/tty/serial/serial_txx9.c if (!up->port.mapbase) up 759 drivers/tty/serial/serial_txx9.c if (!request_mem_region(up->port.mapbase, size, "serial_txx9")) { up 764 drivers/tty/serial/serial_txx9.c if (up->port.flags & UPF_IOREMAP) { up 765 drivers/tty/serial/serial_txx9.c up->port.membase = ioremap(up->port.mapbase, size); up 766 drivers/tty/serial/serial_txx9.c if (!up->port.membase) { up 767 drivers/tty/serial/serial_txx9.c release_mem_region(up->port.mapbase, size); up 774 drivers/tty/serial/serial_txx9.c if (!request_region(up->port.iobase, size, "serial_txx9")) up 781 drivers/tty/serial/serial_txx9.c static void serial_txx9_release_resource(struct uart_txx9_port *up) up 785 drivers/tty/serial/serial_txx9.c switch (up->port.iotype) { up 787 drivers/tty/serial/serial_txx9.c if (!up->port.mapbase) up 790 drivers/tty/serial/serial_txx9.c if (up->port.flags & UPF_IOREMAP) { up 791 drivers/tty/serial/serial_txx9.c iounmap(up->port.membase); up 792 drivers/tty/serial/serial_txx9.c up->port.membase = NULL; up 795 drivers/tty/serial/serial_txx9.c release_mem_region(up->port.mapbase, size); up 799 drivers/tty/serial/serial_txx9.c release_region(up->port.iobase, size); up 806 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = to_uart_txx9_port(port); up 807 drivers/tty/serial/serial_txx9.c serial_txx9_release_resource(up); up 812 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = to_uart_txx9_port(port); up 813 drivers/tty/serial/serial_txx9.c return serial_txx9_request_resource(up); up 818 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = to_uart_txx9_port(port); up 825 drivers/tty/serial/serial_txx9.c ret = serial_txx9_request_resource(up); up 829 drivers/tty/serial/serial_txx9.c up->port.fifosize = TXX9_SIO_TX_FIFO; up 832 drivers/tty/serial/serial_txx9.c if (up->port.line == up->port.cons->index) up 874 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = &serial_txx9_ports[i]; up 876 drivers/tty/serial/serial_txx9.c up->port.line = i; up 877 drivers/tty/serial/serial_txx9.c up->port.ops = &serial_txx9_pops; up 878 drivers/tty/serial/serial_txx9.c up->port.dev = dev; up 879 drivers/tty/serial/serial_txx9.c if (up->port.iobase || up->port.mapbase) up 880 drivers/tty/serial/serial_txx9.c uart_add_one_port(drv, &up->port); up 888 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = to_uart_txx9_port(port); up 890 drivers/tty/serial/serial_txx9.c wait_for_xmitr(up); up 891 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SITFIFO, ch); up 903 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = &serial_txx9_ports[co->index]; up 909 drivers/tty/serial/serial_txx9.c ier = sio_in(up, TXX9_SIDICR); up 910 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SIDICR, 0); up 914 drivers/tty/serial/serial_txx9.c flcr = sio_in(up, TXX9_SIFLCR); up 915 drivers/tty/serial/serial_txx9.c if (!(up->port.flags & UPF_CONS_FLOW) && (flcr & TXX9_SIFLCR_TES)) up 916 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SIFLCR, flcr & ~TXX9_SIFLCR_TES); up 918 drivers/tty/serial/serial_txx9.c uart_console_write(&up->port, s, count, serial_txx9_console_putchar); up 924 drivers/tty/serial/serial_txx9.c wait_for_xmitr(up); up 925 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SIFLCR, flcr); up 926 drivers/tty/serial/serial_txx9.c sio_out(up, TXX9_SIDICR, ier); up 932 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up; up 945 drivers/tty/serial/serial_txx9.c up = &serial_txx9_ports[co->index]; up 946 drivers/tty/serial/serial_txx9.c port = &up->port; up 950 drivers/tty/serial/serial_txx9.c serial_txx9_initialize(&up->port); up 1117 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = &serial_txx9_ports[i]; up 1119 drivers/tty/serial/serial_txx9.c if (up->port.dev == &dev->dev) up 1131 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = &serial_txx9_ports[i]; up 1133 drivers/tty/serial/serial_txx9.c if (up->port.type != PORT_UNKNOWN && up->port.dev == &dev->dev) up 1134 drivers/tty/serial/serial_txx9.c uart_suspend_port(&serial_txx9_reg, &up->port); up 1145 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = &serial_txx9_ports[i]; up 1147 drivers/tty/serial/serial_txx9.c if (up->port.type != PORT_UNKNOWN && up->port.dev == &dev->dev) up 1148 drivers/tty/serial/serial_txx9.c uart_resume_port(&serial_txx9_reg, &up->port); up 1204 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = pci_get_drvdata(dev); up 1206 drivers/tty/serial/serial_txx9.c if (up) { up 1207 drivers/tty/serial/serial_txx9.c serial_txx9_unregister_port(up->port.line); up 1215 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = pci_get_drvdata(dev); up 1217 drivers/tty/serial/serial_txx9.c if (up) up 1218 drivers/tty/serial/serial_txx9.c uart_suspend_port(&serial_txx9_reg, &up->port); up 1226 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = pci_get_drvdata(dev); up 1230 drivers/tty/serial/serial_txx9.c if (up) up 1231 drivers/tty/serial/serial_txx9.c uart_resume_port(&serial_txx9_reg, &up->port); up 1310 drivers/tty/serial/serial_txx9.c struct uart_txx9_port *up = &serial_txx9_ports[i]; up 1311 drivers/tty/serial/serial_txx9.c if (up->port.iobase || up->port.mapbase) up 1312 drivers/tty/serial/serial_txx9.c uart_remove_one_port(&serial_txx9_reg, &up->port); up 498 drivers/tty/serial/sh-sci.c #define sci_getreg(up, offset) (&to_sci_port(up)->params->regs[offset]) up 1897 drivers/tty/serial/sh-sci.c struct uart_port *up = &port->port; up 1913 drivers/tty/serial/sh-sci.c irq = up->irq; up 1927 drivers/tty/serial/sh-sci.c dev_name(up->dev), desc->desc); up 1933 drivers/tty/serial/sh-sci.c ret = request_irq(irq, desc->handler, up->irqflags, up 1936 drivers/tty/serial/sh-sci.c dev_err(up->dev, "Can't allocate %s IRQ\n", desc->desc); up 1171 drivers/tty/serial/sprd_serial.c struct uart_port *up; up 1190 drivers/tty/serial/sprd_serial.c up = &sprd_port[index]->port; up 1191 drivers/tty/serial/sprd_serial.c up->dev = &pdev->dev; up 1192 drivers/tty/serial/sprd_serial.c up->line = index; up 1193 drivers/tty/serial/sprd_serial.c up->type = PORT_SPRD; up 1194 drivers/tty/serial/sprd_serial.c up->iotype = UPIO_MEM; up 1195 drivers/tty/serial/sprd_serial.c up->uartclk = SPRD_DEF_RATE; up 1196 drivers/tty/serial/sprd_serial.c up->fifosize = SPRD_FIFO_SIZE; up 1197 drivers/tty/serial/sprd_serial.c up->ops = &serial_sprd_ops; up 1198 drivers/tty/serial/sprd_serial.c up->flags = UPF_BOOT_AUTOCONF; up 1200 drivers/tty/serial/sprd_serial.c ret = sprd_clk_init(up); up 1205 drivers/tty/serial/sprd_serial.c up->membase = devm_ioremap_resource(&pdev->dev, res); up 1206 drivers/tty/serial/sprd_serial.c if (IS_ERR(up->membase)) up 1207 drivers/tty/serial/sprd_serial.c return PTR_ERR(up->membase); up 1209 drivers/tty/serial/sprd_serial.c up->mapbase = res->start; up 1214 drivers/tty/serial/sprd_serial.c up->irq = irq; up 1233 drivers/tty/serial/sprd_serial.c ret = uart_add_one_port(&sprd_uart_driver, up); up 1239 drivers/tty/serial/sprd_serial.c platform_set_drvdata(pdev, up); up 95 drivers/tty/serial/sunsab.c static __inline__ void sunsab_tec_wait(struct uart_sunsab_port *up) up 97 drivers/tty/serial/sunsab.c int timeout = up->tec_timeout; up 99 drivers/tty/serial/sunsab.c while ((readb(&up->regs->r.star) & SAB82532_STAR_TEC) && --timeout) up 103 drivers/tty/serial/sunsab.c static __inline__ void sunsab_cec_wait(struct uart_sunsab_port *up) up 105 drivers/tty/serial/sunsab.c int timeout = up->cec_timeout; up 107 drivers/tty/serial/sunsab.c while ((readb(&up->regs->r.star) & SAB82532_STAR_CEC) && --timeout) up 112 drivers/tty/serial/sunsab.c receive_chars(struct uart_sunsab_port *up, up 122 drivers/tty/serial/sunsab.c if (up->port.state != NULL) /* Unopened serial console */ up 123 drivers/tty/serial/sunsab.c port = &up->port.state->port; up 132 drivers/tty/serial/sunsab.c count = readb(&up->regs->r.rbcl) & (SAB82532_RECV_FIFO_SIZE - 1); up 138 drivers/tty/serial/sunsab.c sunsab_cec_wait(up); up 139 drivers/tty/serial/sunsab.c writeb(SAB82532_CMDR_RFRD, &up->regs->w.cmdr); up 148 drivers/tty/serial/sunsab.c buf[i] = readb(&up->regs->r.rfifo[i]); up 152 drivers/tty/serial/sunsab.c sunsab_cec_wait(up); up 153 drivers/tty/serial/sunsab.c writeb(SAB82532_CMDR_RMC, &up->regs->w.cmdr); up 158 drivers/tty/serial/sunsab.c (up->port.line == up->port.cons->index)) up 165 drivers/tty/serial/sunsab.c up->port.icount.brk++; up 166 drivers/tty/serial/sunsab.c uart_handle_break(&up->port); up 174 drivers/tty/serial/sunsab.c up->port.icount.rx++; up 186 drivers/tty/serial/sunsab.c up->port.icount.brk++; up 193 drivers/tty/serial/sunsab.c if (uart_handle_break(&up->port)) up 196 drivers/tty/serial/sunsab.c up->port.icount.parity++; up 198 drivers/tty/serial/sunsab.c up->port.icount.frame++; up 200 drivers/tty/serial/sunsab.c up->port.icount.overrun++; up 205 drivers/tty/serial/sunsab.c stat->sreg.isr0 &= (up->port.read_status_mask & 0xff); up 206 drivers/tty/serial/sunsab.c stat->sreg.isr1 &= ((up->port.read_status_mask >> 8) & 0xff); up 216 drivers/tty/serial/sunsab.c if (uart_handle_sysrq_char(&up->port, ch) || !port) up 219 drivers/tty/serial/sunsab.c if ((stat->sreg.isr0 & (up->port.ignore_status_mask & 0xff)) == 0 && up 220 drivers/tty/serial/sunsab.c (stat->sreg.isr1 & ((up->port.ignore_status_mask >> 8) & 0xff)) == 0) up 235 drivers/tty/serial/sunsab.c static void transmit_chars(struct uart_sunsab_port *up, up 238 drivers/tty/serial/sunsab.c struct circ_buf *xmit = &up->port.state->xmit; up 242 drivers/tty/serial/sunsab.c up->interrupt_mask1 |= SAB82532_IMR1_ALLS; up 243 drivers/tty/serial/sunsab.c writeb(up->interrupt_mask1, &up->regs->w.imr1); up 244 drivers/tty/serial/sunsab.c set_bit(SAB82532_ALLS, &up->irqflags); up 252 drivers/tty/serial/sunsab.c if (!(readb(&up->regs->r.star) & SAB82532_STAR_XFW)) up 255 drivers/tty/serial/sunsab.c set_bit(SAB82532_XPR, &up->irqflags); up 256 drivers/tty/serial/sunsab.c sunsab_tx_idle(up); up 258 drivers/tty/serial/sunsab.c if (uart_circ_empty(xmit) || uart_tx_stopped(&up->port)) { up 259 drivers/tty/serial/sunsab.c up->interrupt_mask1 |= SAB82532_IMR1_XPR; up 260 drivers/tty/serial/sunsab.c writeb(up->interrupt_mask1, &up->regs->w.imr1); up 264 drivers/tty/serial/sunsab.c up->interrupt_mask1 &= ~(SAB82532_IMR1_ALLS|SAB82532_IMR1_XPR); up 265 drivers/tty/serial/sunsab.c writeb(up->interrupt_mask1, &up->regs->w.imr1); up 266 drivers/tty/serial/sunsab.c clear_bit(SAB82532_ALLS, &up->irqflags); up 269 drivers/tty/serial/sunsab.c clear_bit(SAB82532_XPR, &up->irqflags); up 270 drivers/tty/serial/sunsab.c for (i = 0; i < up->port.fifosize; i++) { up 272 drivers/tty/serial/sunsab.c &up->regs->w.xfifo[i]); up 274 drivers/tty/serial/sunsab.c up->port.icount.tx++; up 280 drivers/tty/serial/sunsab.c sunsab_cec_wait(up); up 281 drivers/tty/serial/sunsab.c writeb(SAB82532_CMDR_XF, &up->regs->w.cmdr); up 284 drivers/tty/serial/sunsab.c uart_write_wakeup(&up->port); up 287 drivers/tty/serial/sunsab.c sunsab_stop_tx(&up->port); up 290 drivers/tty/serial/sunsab.c static void check_status(struct uart_sunsab_port *up, up 294 drivers/tty/serial/sunsab.c uart_handle_dcd_change(&up->port, up 295 drivers/tty/serial/sunsab.c !(readb(&up->regs->r.vstr) & SAB82532_VSTR_CD)); up 298 drivers/tty/serial/sunsab.c uart_handle_cts_change(&up->port, up 299 drivers/tty/serial/sunsab.c (readb(&up->regs->r.star) & SAB82532_STAR_CTS)); up 301 drivers/tty/serial/sunsab.c if ((readb(&up->regs->r.pvr) & up->pvr_dsr_bit) ^ up->dsr) { up 302 drivers/tty/serial/sunsab.c up->dsr = (readb(&up->regs->r.pvr) & up->pvr_dsr_bit) ? 0 : 1; up 303 drivers/tty/serial/sunsab.c up->port.icount.dsr++; up 306 drivers/tty/serial/sunsab.c wake_up_interruptible(&up->port.state->port.delta_msr_wait); up 311 drivers/tty/serial/sunsab.c struct uart_sunsab_port *up = dev_id; up 317 drivers/tty/serial/sunsab.c spin_lock_irqsave(&up->port.lock, flags); up 320 drivers/tty/serial/sunsab.c gis = readb(&up->regs->r.gis) >> up->gis_shift; up 322 drivers/tty/serial/sunsab.c status.sreg.isr0 = readb(&up->regs->r.isr0); up 324 drivers/tty/serial/sunsab.c status.sreg.isr1 = readb(&up->regs->r.isr1); up 330 drivers/tty/serial/sunsab.c port = receive_chars(up, &status); up 333 drivers/tty/serial/sunsab.c check_status(up, &status); up 335 drivers/tty/serial/sunsab.c transmit_chars(up, &status); up 338 drivers/tty/serial/sunsab.c spin_unlock_irqrestore(&up->port.lock, flags); up 349 drivers/tty/serial/sunsab.c struct uart_sunsab_port *up = up 354 drivers/tty/serial/sunsab.c if (test_bit(SAB82532_ALLS, &up->irqflags)) up 365 drivers/tty/serial/sunsab.c struct uart_sunsab_port *up = up 369 drivers/tty/serial/sunsab.c up->cached_mode &= ~SAB82532_MODE_FRTS; up 370 drivers/tty/serial/sunsab.c up->cached_mode |= SAB82532_MODE_RTS; up 372 drivers/tty/serial/sunsab.c up->cached_mode |= (SAB82532_MODE_FRTS | up 376 drivers/tty/serial/sunsab.c up->cached_pvr &= ~(up->pvr_dtr_bit); up 378 drivers/tty/serial/sunsab.c up->cached_pvr |= up->pvr_dtr_bit; up 381 drivers/tty/serial/sunsab.c set_bit(SAB82532_REGS_PENDING, &up->irqflags); up 382 drivers/tty/serial/sunsab.c if (test_bit(SAB82532_XPR, &up->irqflags)) up 383 drivers/tty/serial/sunsab.c sunsab_tx_idle(up); up 389 drivers/tty/serial/sunsab.c struct uart_sunsab_port *up = up 396 drivers/tty/serial/sunsab.c val = readb(&up->regs->r.pvr); up 397 drivers/tty/serial/sunsab.c result |= (val & up->pvr_dsr_bit) ? 0 : TIOCM_DSR; up 399 drivers/tty/serial/sunsab.c val = readb(&up->regs->r.vstr); up 402 drivers/tty/serial/sunsab.c val = readb(&up->regs->r.star); up 411 drivers/tty/serial/sunsab.c struct uart_sunsab_port *up = up 414 drivers/tty/serial/sunsab.c up->interrupt_mask1 |= SAB82532_IMR1_XPR; up 415 drivers/tty/serial/sunsab.c writeb(up->interrupt_mask1, &up->regs->w.imr1); up 419 drivers/tty/serial/sunsab.c static void sunsab_tx_idle(struct uart_sunsab_port *up) up 421 drivers/tty/serial/sunsab.c if (test_bit(SAB82532_REGS_PENDING, &up->irqflags)) { up 424 drivers/tty/serial/sunsab.c clear_bit(SAB82532_REGS_PENDING, &up->irqflags); up 425 drivers/tty/serial/sunsab.c writeb(up->cached_mode, &up->regs->rw.mode); up 426 drivers/tty/serial/sunsab.c writeb(up->cached_pvr, &up->regs->rw.pvr); up 427 drivers/tty/serial/sunsab.c writeb(up->cached_dafo, &up->regs->w.dafo); up 429 drivers/tty/serial/sunsab.c writeb(up->cached_ebrg & 0xff, &up->regs->w.bgr); up 430 drivers/tty/serial/sunsab.c tmp = readb(&up->regs->rw.ccr2); up 432 drivers/tty/serial/sunsab.c tmp |= (up->cached_ebrg >> 2) & 0xc0; up 433 drivers/tty/serial/sunsab.c writeb(tmp, &up->regs->rw.ccr2); up 440 drivers/tty/serial/sunsab.c struct uart_sunsab_port *up = up 442 drivers/tty/serial/sunsab.c struct circ_buf *xmit = &up->port.state->xmit; up 448 drivers/tty/serial/sunsab.c up->interrupt_mask1 &= ~(SAB82532_IMR1_ALLS|SAB82532_IMR1_XPR); up 449 drivers/tty/serial/sunsab.c writeb(up->interrupt_mask1, &up->regs->w.imr1); up 451 drivers/tty/serial/sunsab.c if (!test_bit(SAB82532_XPR, &up->irqflags)) up 454 drivers/tty/serial/sunsab.c clear_bit(SAB82532_ALLS, &up->irqflags); up 455 drivers/tty/serial/sunsab.c clear_bit(SAB82532_XPR, &up->irqflags); up 457 drivers/tty/serial/sunsab.c for (i = 0; i < up->port.fifosize; i++) { up 459 drivers/tty/serial/sunsab.c &up->regs->w.xfifo[i]); up 461 drivers/tty/serial/sunsab.c up->port.icount.tx++; up 467 drivers/tty/serial/sunsab.c sunsab_cec_wait(up); up 468 drivers/tty/serial/sunsab.c writeb(SAB82532_CMDR_XF, &up->regs->w.cmdr); up 474 drivers/tty/serial/sunsab.c struct uart_sunsab_port *up = up 481 drivers/tty/serial/sunsab.c spin_lock_irqsave(&up->port.lock, flags); up 483 drivers/tty/serial/sunsab.c sunsab_tec_wait(up); up 484 drivers/tty/serial/sunsab.c writeb(ch, &up->regs->w.tic); up 486 drivers/tty/serial/sunsab.c spin_unlock_irqrestore(&up->port.lock, flags); up 492 drivers/tty/serial/sunsab.c struct uart_sunsab_port *up = up 495 drivers/tty/serial/sunsab.c up->interrupt_mask0 |= SAB82532_IMR0_TCD; up 496 drivers/tty/serial/sunsab.c writeb(up->interrupt_mask1, &up->regs->w.imr0); up 502 drivers/tty/serial/sunsab.c struct uart_sunsab_port *up = up 507 drivers/tty/serial/sunsab.c spin_lock_irqsave(&up->port.lock, flags); up 509 drivers/tty/serial/sunsab.c val = up->cached_dafo; up 514 drivers/tty/serial/sunsab.c up->cached_dafo = val; up 516 drivers/tty/serial/sunsab.c set_bit(SAB82532_REGS_PENDING, &up->irqflags); up 517 drivers/tty/serial/sunsab.c if (test_bit(SAB82532_XPR, &up->irqflags)) up 518 drivers/tty/serial/sunsab.c sunsab_tx_idle(up); up 520 drivers/tty/serial/sunsab.c spin_unlock_irqrestore(&up->port.lock, flags); up 526 drivers/tty/serial/sunsab.c struct uart_sunsab_port *up = up 530 drivers/tty/serial/sunsab.c int err = request_irq(up->port.irq, sunsab_interrupt, up 531 drivers/tty/serial/sunsab.c IRQF_SHARED, "sab", up); up 535 drivers/tty/serial/sunsab.c spin_lock_irqsave(&up->port.lock, flags); up 540 drivers/tty/serial/sunsab.c sunsab_cec_wait(up); up 541 drivers/tty/serial/sunsab.c sunsab_tec_wait(up); up 546 drivers/tty/serial/sunsab.c writeb(SAB82532_CMDR_RRES, &up->regs->w.cmdr); up 547 drivers/tty/serial/sunsab.c sunsab_cec_wait(up); up 548 drivers/tty/serial/sunsab.c writeb(SAB82532_CMDR_XRES, &up->regs->w.cmdr); up 553 drivers/tty/serial/sunsab.c (void) readb(&up->regs->r.isr0); up 554 drivers/tty/serial/sunsab.c (void) readb(&up->regs->r.isr1); up 559 drivers/tty/serial/sunsab.c writeb(0, &up->regs->w.ccr0); /* power-down */ up 561 drivers/tty/serial/sunsab.c SAB82532_CCR0_SM_ASYNC, &up->regs->w.ccr0); up 562 drivers/tty/serial/sunsab.c writeb(SAB82532_CCR1_ODS | SAB82532_CCR1_BCR | 7, &up->regs->w.ccr1); up 564 drivers/tty/serial/sunsab.c SAB82532_CCR2_TOE, &up->regs->w.ccr2); up 565 drivers/tty/serial/sunsab.c writeb(0, &up->regs->w.ccr3); up 566 drivers/tty/serial/sunsab.c writeb(SAB82532_CCR4_MCK4 | SAB82532_CCR4_EBRG, &up->regs->w.ccr4); up 567 drivers/tty/serial/sunsab.c up->cached_mode = (SAB82532_MODE_RTS | SAB82532_MODE_FCTS | up 569 drivers/tty/serial/sunsab.c writeb(up->cached_mode, &up->regs->w.mode); up 570 drivers/tty/serial/sunsab.c writeb(SAB82532_RFC_DPS|SAB82532_RFC_RFTH_32, &up->regs->w.rfc); up 572 drivers/tty/serial/sunsab.c tmp = readb(&up->regs->rw.ccr0); up 574 drivers/tty/serial/sunsab.c writeb(tmp, &up->regs->rw.ccr0); up 579 drivers/tty/serial/sunsab.c up->interrupt_mask0 = (SAB82532_IMR0_PERR | SAB82532_IMR0_FERR | up 581 drivers/tty/serial/sunsab.c writeb(up->interrupt_mask0, &up->regs->w.imr0); up 582 drivers/tty/serial/sunsab.c up->interrupt_mask1 = (SAB82532_IMR1_BRKT | SAB82532_IMR1_ALLS | up 586 drivers/tty/serial/sunsab.c writeb(up->interrupt_mask1, &up->regs->w.imr1); up 587 drivers/tty/serial/sunsab.c set_bit(SAB82532_ALLS, &up->irqflags); up 588 drivers/tty/serial/sunsab.c set_bit(SAB82532_XPR, &up->irqflags); up 590 drivers/tty/serial/sunsab.c spin_unlock_irqrestore(&up->port.lock, flags); up 598 drivers/tty/serial/sunsab.c struct uart_sunsab_port *up = up 602 drivers/tty/serial/sunsab.c spin_lock_irqsave(&up->port.lock, flags); up 605 drivers/tty/serial/sunsab.c up->interrupt_mask0 = 0xff; up 606 drivers/tty/serial/sunsab.c writeb(up->interrupt_mask0, &up->regs->w.imr0); up 607 drivers/tty/serial/sunsab.c up->interrupt_mask1 = 0xff; up 608 drivers/tty/serial/sunsab.c writeb(up->interrupt_mask1, &up->regs->w.imr1); up 611 drivers/tty/serial/sunsab.c up->cached_dafo = readb(&up->regs->rw.dafo); up 612 drivers/tty/serial/sunsab.c up->cached_dafo &= ~SAB82532_DAFO_XBRK; up 613 drivers/tty/serial/sunsab.c writeb(up->cached_dafo, &up->regs->rw.dafo); up 616 drivers/tty/serial/sunsab.c up->cached_mode &= ~SAB82532_MODE_RAC; up 617 drivers/tty/serial/sunsab.c writeb(up->cached_mode, &up->regs->rw.mode); up 631 drivers/tty/serial/sunsab.c tmp = readb(&up->regs->rw.ccr0); up 633 drivers/tty/serial/sunsab.c writeb(tmp, &up->regs->rw.ccr0); up 636 drivers/tty/serial/sunsab.c spin_unlock_irqrestore(&up->port.lock, flags); up 637 drivers/tty/serial/sunsab.c free_irq(up->port.irq, up); up 683 drivers/tty/serial/sunsab.c static void sunsab_convert_to_sab(struct uart_sunsab_port *up, unsigned int cflag, up 715 drivers/tty/serial/sunsab.c up->cached_dafo = dafo; up 719 drivers/tty/serial/sunsab.c up->cached_ebrg = n | (m << 6); up 721 drivers/tty/serial/sunsab.c up->tec_timeout = (10 * 1000000) / baud; up 722 drivers/tty/serial/sunsab.c up->cec_timeout = up->tec_timeout >> 2; up 733 drivers/tty/serial/sunsab.c up->port.read_status_mask = (SAB82532_ISR0_TCD | SAB82532_ISR0_TIME | up 736 drivers/tty/serial/sunsab.c up->port.read_status_mask |= (SAB82532_ISR1_CSC | up 740 drivers/tty/serial/sunsab.c up->port.read_status_mask |= (SAB82532_ISR0_PERR | up 743 drivers/tty/serial/sunsab.c up->port.read_status_mask |= (SAB82532_ISR1_BRK << 8); up 748 drivers/tty/serial/sunsab.c up->port.ignore_status_mask = 0; up 750 drivers/tty/serial/sunsab.c up->port.ignore_status_mask |= (SAB82532_ISR0_PERR | up 753 drivers/tty/serial/sunsab.c up->port.ignore_status_mask |= (SAB82532_ISR1_BRK << 8); up 759 drivers/tty/serial/sunsab.c up->port.ignore_status_mask |= SAB82532_ISR0_RFO; up 766 drivers/tty/serial/sunsab.c up->port.ignore_status_mask |= (SAB82532_ISR0_RPF | up 769 drivers/tty/serial/sunsab.c uart_update_timeout(&up->port, cflag, up 770 drivers/tty/serial/sunsab.c (up->port.uartclk / (16 * quot))); up 775 drivers/tty/serial/sunsab.c up->cached_mode |= SAB82532_MODE_RAC; up 776 drivers/tty/serial/sunsab.c set_bit(SAB82532_REGS_PENDING, &up->irqflags); up 777 drivers/tty/serial/sunsab.c if (test_bit(SAB82532_XPR, &up->irqflags)) up 778 drivers/tty/serial/sunsab.c sunsab_tx_idle(up); up 785 drivers/tty/serial/sunsab.c struct uart_sunsab_port *up = up 791 drivers/tty/serial/sunsab.c spin_lock_irqsave(&up->port.lock, flags); up 792 drivers/tty/serial/sunsab.c sunsab_convert_to_sab(up, termios->c_cflag, termios->c_iflag, baud, quot); up 793 drivers/tty/serial/sunsab.c spin_unlock_irqrestore(&up->port.lock, flags); up 798 drivers/tty/serial/sunsab.c struct uart_sunsab_port *up = (void *)port; up 801 drivers/tty/serial/sunsab.c sprintf(buf, "SAB82532 %s", sab82532_version[up->type]); up 855 drivers/tty/serial/sunsab.c struct uart_sunsab_port *up = up 858 drivers/tty/serial/sunsab.c sunsab_tec_wait(up); up 859 drivers/tty/serial/sunsab.c writeb(c, &up->regs->w.tic); up 864 drivers/tty/serial/sunsab.c struct uart_sunsab_port *up = &sunsab_ports[con->index]; up 868 drivers/tty/serial/sunsab.c if (up->port.sysrq || oops_in_progress) up 869 drivers/tty/serial/sunsab.c locked = spin_trylock_irqsave(&up->port.lock, flags); up 871 drivers/tty/serial/sunsab.c spin_lock_irqsave(&up->port.lock, flags); up 873 drivers/tty/serial/sunsab.c uart_console_write(&up->port, s, n, sunsab_console_putchar); up 874 drivers/tty/serial/sunsab.c sunsab_tec_wait(up); up 877 drivers/tty/serial/sunsab.c spin_unlock_irqrestore(&up->port.lock, flags); up 882 drivers/tty/serial/sunsab.c struct uart_sunsab_port *up = &sunsab_ports[con->index]; up 892 drivers/tty/serial/sunsab.c if (up->port.type != PORT_SUNSAB) up 898 drivers/tty/serial/sunsab.c sunserial_console_termios(con, up->port.dev->of_node); up 919 drivers/tty/serial/sunsab.c spin_lock_init(&up->port.lock); up 924 drivers/tty/serial/sunsab.c sunsab_startup(&up->port); up 926 drivers/tty/serial/sunsab.c spin_lock_irqsave(&up->port.lock, flags); up 931 drivers/tty/serial/sunsab.c up->interrupt_mask0 = SAB82532_IMR0_PERR | SAB82532_IMR0_FERR | up 933 drivers/tty/serial/sunsab.c writeb(up->interrupt_mask0, &up->regs->w.imr0); up 934 drivers/tty/serial/sunsab.c up->interrupt_mask1 = SAB82532_IMR1_BRKT | SAB82532_IMR1_ALLS | up 938 drivers/tty/serial/sunsab.c writeb(up->interrupt_mask1, &up->regs->w.imr1); up 940 drivers/tty/serial/sunsab.c quot = uart_get_divisor(&up->port, baud); up 941 drivers/tty/serial/sunsab.c sunsab_convert_to_sab(up, con->cflag, 0, baud, quot); up 942 drivers/tty/serial/sunsab.c sunsab_set_mctrl(&up->port, TIOCM_DTR | TIOCM_RTS); up 944 drivers/tty/serial/sunsab.c spin_unlock_irqrestore(&up->port.lock, flags); up 968 drivers/tty/serial/sunsab.c static int sunsab_init_one(struct uart_sunsab_port *up, up 973 drivers/tty/serial/sunsab.c up->port.line = line; up 974 drivers/tty/serial/sunsab.c up->port.dev = &op->dev; up 976 drivers/tty/serial/sunsab.c up->port.mapbase = op->resource[0].start + offset; up 977 drivers/tty/serial/sunsab.c up->port.membase = of_ioremap(&op->resource[0], offset, up 980 drivers/tty/serial/sunsab.c if (!up->port.membase) up 982 drivers/tty/serial/sunsab.c up->regs = (union sab82532_async_regs __iomem *) up->port.membase; up 984 drivers/tty/serial/sunsab.c up->port.irq = op->archdata.irqs[0]; up 986 drivers/tty/serial/sunsab.c up->port.fifosize = SAB82532_XMIT_FIFO_SIZE; up 987 drivers/tty/serial/sunsab.c up->port.iotype = UPIO_MEM; up 989 drivers/tty/serial/sunsab.c writeb(SAB82532_IPC_IC_ACT_LOW, &up->regs->w.ipc); up 991 drivers/tty/serial/sunsab.c up->port.ops = &sunsab_pops; up 992 drivers/tty/serial/sunsab.c up->port.type = PORT_SUNSAB; up 993 drivers/tty/serial/sunsab.c up->port.uartclk = SAB_BASE_BAUD; up 995 drivers/tty/serial/sunsab.c up->type = readb(&up->regs->r.vstr) & 0x0f; up 996 drivers/tty/serial/sunsab.c writeb(~((1 << 1) | (1 << 2) | (1 << 4)), &up->regs->w.pcr); up 997 drivers/tty/serial/sunsab.c writeb(0xff, &up->regs->w.pim); up 998 drivers/tty/serial/sunsab.c if ((up->port.line & 0x1) == 0) { up 999 drivers/tty/serial/sunsab.c up->pvr_dsr_bit = (1 << 0); up 1000 drivers/tty/serial/sunsab.c up->pvr_dtr_bit = (1 << 1); up 1001 drivers/tty/serial/sunsab.c up->gis_shift = 2; up 1003 drivers/tty/serial/sunsab.c up->pvr_dsr_bit = (1 << 3); up 1004 drivers/tty/serial/sunsab.c up->pvr_dtr_bit = (1 << 2); up 1005 drivers/tty/serial/sunsab.c up->gis_shift = 0; up 1007 drivers/tty/serial/sunsab.c up->cached_pvr = (1 << 1) | (1 << 2) | (1 << 4); up 1008 drivers/tty/serial/sunsab.c writeb(up->cached_pvr, &up->regs->w.pvr); up 1009 drivers/tty/serial/sunsab.c up->cached_mode = readb(&up->regs->rw.mode); up 1010 drivers/tty/serial/sunsab.c up->cached_mode |= SAB82532_MODE_FRTS; up 1011 drivers/tty/serial/sunsab.c writeb(up->cached_mode, &up->regs->rw.mode); up 1012 drivers/tty/serial/sunsab.c up->cached_mode |= SAB82532_MODE_RTS; up 1013 drivers/tty/serial/sunsab.c writeb(up->cached_mode, &up->regs->rw.mode); up 1015 drivers/tty/serial/sunsab.c up->tec_timeout = SAB82532_MAX_TEC_TIMEOUT; up 1016 drivers/tty/serial/sunsab.c up->cec_timeout = SAB82532_MAX_CEC_TIMEOUT; up 1024 drivers/tty/serial/sunsab.c struct uart_sunsab_port *up; up 1027 drivers/tty/serial/sunsab.c up = &sunsab_ports[inst * 2]; up 1029 drivers/tty/serial/sunsab.c err = sunsab_init_one(&up[0], op, up 1035 drivers/tty/serial/sunsab.c err = sunsab_init_one(&up[1], op, up 1042 drivers/tty/serial/sunsab.c &sunsab_reg, up[0].port.line, up 1046 drivers/tty/serial/sunsab.c &sunsab_reg, up[1].port.line, up 1049 drivers/tty/serial/sunsab.c err = uart_add_one_port(&sunsab_reg, &up[0].port); up 1053 drivers/tty/serial/sunsab.c err = uart_add_one_port(&sunsab_reg, &up[1].port); up 1057 drivers/tty/serial/sunsab.c platform_set_drvdata(op, &up[0]); up 1064 drivers/tty/serial/sunsab.c uart_remove_one_port(&sunsab_reg, &up[0].port); up 1067 drivers/tty/serial/sunsab.c up[1].port.membase, up 1071 drivers/tty/serial/sunsab.c up[0].port.membase, up 1079 drivers/tty/serial/sunsab.c struct uart_sunsab_port *up = platform_get_drvdata(op); up 1081 drivers/tty/serial/sunsab.c uart_remove_one_port(&sunsab_reg, &up[1].port); up 1082 drivers/tty/serial/sunsab.c uart_remove_one_port(&sunsab_reg, &up[0].port); up 1084 drivers/tty/serial/sunsab.c up[1].port.membase, up 1087 drivers/tty/serial/sunsab.c up[0].port.membase, up 108 drivers/tty/serial/sunsu.c static unsigned int serial_in(struct uart_sunsu_port *up, int offset) up 110 drivers/tty/serial/sunsu.c offset <<= up->port.regshift; up 112 drivers/tty/serial/sunsu.c switch (up->port.iotype) { up 114 drivers/tty/serial/sunsu.c outb(up->port.hub6 - 1 + offset, up->port.iobase); up 115 drivers/tty/serial/sunsu.c return inb(up->port.iobase + 1); up 118 drivers/tty/serial/sunsu.c return readb(up->port.membase + offset); up 121 drivers/tty/serial/sunsu.c return inb(up->port.iobase + offset); up 125 drivers/tty/serial/sunsu.c static void serial_out(struct uart_sunsu_port *up, int offset, int value) up 139 drivers/tty/serial/sunsu.c offset <<= up->port.regshift; up 141 drivers/tty/serial/sunsu.c switch (up->port.iotype) { up 143 drivers/tty/serial/sunsu.c outb(up->port.hub6 - 1 + offset, up->port.iobase); up 144 drivers/tty/serial/sunsu.c outb(value, up->port.iobase + 1); up 148 drivers/tty/serial/sunsu.c writeb(value, up->port.membase + offset); up 152 drivers/tty/serial/sunsu.c outb(value, up->port.iobase + offset); up 162 drivers/tty/serial/sunsu.c #define serial_inp(up, offset) serial_in(up, offset) up 163 drivers/tty/serial/sunsu.c #define serial_outp(up, offset, value) serial_out(up, offset, value) up 169 drivers/tty/serial/sunsu.c static void serial_icr_write(struct uart_sunsu_port *up, int offset, int value) up 171 drivers/tty/serial/sunsu.c serial_out(up, UART_SCR, offset); up 172 drivers/tty/serial/sunsu.c serial_out(up, UART_ICR, value); up 176 drivers/tty/serial/sunsu.c static unsigned int serial_icr_read(struct uart_sunsu_port *up, int offset) up 180 drivers/tty/serial/sunsu.c serial_icr_write(up, UART_ACR, up->acr | UART_ACR_ICRRD); up 181 drivers/tty/serial/sunsu.c serial_out(up, UART_SCR, offset); up 182 drivers/tty/serial/sunsu.c value = serial_in(up, UART_ICR); up 183 drivers/tty/serial/sunsu.c serial_icr_write(up, UART_ACR, up->acr); up 194 drivers/tty/serial/sunsu.c static int __enable_rsa(struct uart_sunsu_port *up) up 199 drivers/tty/serial/sunsu.c mode = serial_inp(up, UART_RSA_MSR); up 203 drivers/tty/serial/sunsu.c serial_outp(up, UART_RSA_MSR, mode | UART_RSA_MSR_FIFO); up 204 drivers/tty/serial/sunsu.c mode = serial_inp(up, UART_RSA_MSR); up 209 drivers/tty/serial/sunsu.c up->port.uartclk = SERIAL_RSA_BAUD_BASE * 16; up 214 drivers/tty/serial/sunsu.c static void enable_rsa(struct uart_sunsu_port *up) up 216 drivers/tty/serial/sunsu.c if (up->port.type == PORT_RSA) { up 217 drivers/tty/serial/sunsu.c if (up->port.uartclk != SERIAL_RSA_BAUD_BASE * 16) { up 218 drivers/tty/serial/sunsu.c spin_lock_irq(&up->port.lock); up 219 drivers/tty/serial/sunsu.c __enable_rsa(up); up 220 drivers/tty/serial/sunsu.c spin_unlock_irq(&up->port.lock); up 222 drivers/tty/serial/sunsu.c if (up->port.uartclk == SERIAL_RSA_BAUD_BASE * 16) up 223 drivers/tty/serial/sunsu.c serial_outp(up, UART_RSA_FRR, 0); up 233 drivers/tty/serial/sunsu.c static void disable_rsa(struct uart_sunsu_port *up) up 238 drivers/tty/serial/sunsu.c if (up->port.type == PORT_RSA && up 239 drivers/tty/serial/sunsu.c up->port.uartclk == SERIAL_RSA_BAUD_BASE * 16) { up 240 drivers/tty/serial/sunsu.c spin_lock_irq(&up->port.lock); up 242 drivers/tty/serial/sunsu.c mode = serial_inp(up, UART_RSA_MSR); up 246 drivers/tty/serial/sunsu.c serial_outp(up, UART_RSA_MSR, mode & ~UART_RSA_MSR_FIFO); up 247 drivers/tty/serial/sunsu.c mode = serial_inp(up, UART_RSA_MSR); up 252 drivers/tty/serial/sunsu.c up->port.uartclk = SERIAL_RSA_BAUD_BASE_LO * 16; up 253 drivers/tty/serial/sunsu.c spin_unlock_irq(&up->port.lock); up 268 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = up 271 drivers/tty/serial/sunsu.c __stop_tx(up); up 276 drivers/tty/serial/sunsu.c if (up->port.type == PORT_16C950) { up 277 drivers/tty/serial/sunsu.c up->acr |= UART_ACR_TXDIS; up 278 drivers/tty/serial/sunsu.c serial_icr_write(up, UART_ACR, up->acr); up 284 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = up 287 drivers/tty/serial/sunsu.c if (!(up->ier & UART_IER_THRI)) { up 288 drivers/tty/serial/sunsu.c up->ier |= UART_IER_THRI; up 289 drivers/tty/serial/sunsu.c serial_out(up, UART_IER, up->ier); up 295 drivers/tty/serial/sunsu.c if (up->port.type == PORT_16C950 && up->acr & UART_ACR_TXDIS) { up 296 drivers/tty/serial/sunsu.c up->acr &= ~UART_ACR_TXDIS; up 297 drivers/tty/serial/sunsu.c serial_icr_write(up, UART_ACR, up->acr); up 303 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = up 306 drivers/tty/serial/sunsu.c up->ier &= ~UART_IER_RLSI; up 307 drivers/tty/serial/sunsu.c up->port.read_status_mask &= ~UART_LSR_DR; up 308 drivers/tty/serial/sunsu.c serial_out(up, UART_IER, up->ier); up 313 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = up 317 drivers/tty/serial/sunsu.c spin_lock_irqsave(&up->port.lock, flags); up 318 drivers/tty/serial/sunsu.c up->ier |= UART_IER_MSI; up 319 drivers/tty/serial/sunsu.c serial_out(up, UART_IER, up->ier); up 320 drivers/tty/serial/sunsu.c spin_unlock_irqrestore(&up->port.lock, flags); up 324 drivers/tty/serial/sunsu.c receive_chars(struct uart_sunsu_port *up, unsigned char *status) up 326 drivers/tty/serial/sunsu.c struct tty_port *port = &up->port.state->port; up 332 drivers/tty/serial/sunsu.c ch = serial_inp(up, UART_RX); up 334 drivers/tty/serial/sunsu.c up->port.icount.rx++; up 343 drivers/tty/serial/sunsu.c up->port.icount.brk++; up 344 drivers/tty/serial/sunsu.c if (up->port.cons != NULL && up 345 drivers/tty/serial/sunsu.c up->port.line == up->port.cons->index) up 353 drivers/tty/serial/sunsu.c if (uart_handle_break(&up->port)) up 356 drivers/tty/serial/sunsu.c up->port.icount.parity++; up 358 drivers/tty/serial/sunsu.c up->port.icount.frame++; up 360 drivers/tty/serial/sunsu.c up->port.icount.overrun++; up 365 drivers/tty/serial/sunsu.c *status &= up->port.read_status_mask; up 367 drivers/tty/serial/sunsu.c if (up->port.cons != NULL && up 368 drivers/tty/serial/sunsu.c up->port.line == up->port.cons->index) { up 370 drivers/tty/serial/sunsu.c *status |= up->lsr_break_flag; up 371 drivers/tty/serial/sunsu.c up->lsr_break_flag = 0; up 381 drivers/tty/serial/sunsu.c if (uart_handle_sysrq_char(&up->port, ch)) up 383 drivers/tty/serial/sunsu.c if ((*status & up->port.ignore_status_mask) == 0) up 393 drivers/tty/serial/sunsu.c *status = serial_inp(up, UART_LSR); up 400 drivers/tty/serial/sunsu.c static void transmit_chars(struct uart_sunsu_port *up) up 402 drivers/tty/serial/sunsu.c struct circ_buf *xmit = &up->port.state->xmit; up 405 drivers/tty/serial/sunsu.c if (up->port.x_char) { up 406 drivers/tty/serial/sunsu.c serial_outp(up, UART_TX, up->port.x_char); up 407 drivers/tty/serial/sunsu.c up->port.icount.tx++; up 408 drivers/tty/serial/sunsu.c up->port.x_char = 0; up 411 drivers/tty/serial/sunsu.c if (uart_tx_stopped(&up->port)) { up 412 drivers/tty/serial/sunsu.c sunsu_stop_tx(&up->port); up 416 drivers/tty/serial/sunsu.c __stop_tx(up); up 420 drivers/tty/serial/sunsu.c count = up->port.fifosize; up 422 drivers/tty/serial/sunsu.c serial_out(up, UART_TX, xmit->buf[xmit->tail]); up 424 drivers/tty/serial/sunsu.c up->port.icount.tx++; up 430 drivers/tty/serial/sunsu.c uart_write_wakeup(&up->port); up 433 drivers/tty/serial/sunsu.c __stop_tx(up); up 436 drivers/tty/serial/sunsu.c static void check_modem_status(struct uart_sunsu_port *up) up 440 drivers/tty/serial/sunsu.c status = serial_in(up, UART_MSR); up 446 drivers/tty/serial/sunsu.c up->port.icount.rng++; up 448 drivers/tty/serial/sunsu.c up->port.icount.dsr++; up 450 drivers/tty/serial/sunsu.c uart_handle_dcd_change(&up->port, status & UART_MSR_DCD); up 452 drivers/tty/serial/sunsu.c uart_handle_cts_change(&up->port, status & UART_MSR_CTS); up 454 drivers/tty/serial/sunsu.c wake_up_interruptible(&up->port.state->port.delta_msr_wait); up 459 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = dev_id; up 463 drivers/tty/serial/sunsu.c spin_lock_irqsave(&up->port.lock, flags); up 466 drivers/tty/serial/sunsu.c status = serial_inp(up, UART_LSR); up 468 drivers/tty/serial/sunsu.c receive_chars(up, &status); up 469 drivers/tty/serial/sunsu.c check_modem_status(up); up 471 drivers/tty/serial/sunsu.c transmit_chars(up); up 473 drivers/tty/serial/sunsu.c spin_unlock_irqrestore(&up->port.lock, flags); up 475 drivers/tty/serial/sunsu.c tty_flip_buffer_push(&up->port.state->port); up 477 drivers/tty/serial/sunsu.c spin_lock_irqsave(&up->port.lock, flags); up 479 drivers/tty/serial/sunsu.c } while (!(serial_in(up, UART_IIR) & UART_IIR_NO_INT)); up 481 drivers/tty/serial/sunsu.c spin_unlock_irqrestore(&up->port.lock, flags); up 492 drivers/tty/serial/sunsu.c static void sunsu_change_mouse_baud(struct uart_sunsu_port *up) up 494 drivers/tty/serial/sunsu.c unsigned int cur_cflag = up->cflag; up 497 drivers/tty/serial/sunsu.c up->cflag &= ~CBAUD; up 498 drivers/tty/serial/sunsu.c up->cflag |= suncore_mouse_baud_cflag_next(cur_cflag, &new_baud); up 500 drivers/tty/serial/sunsu.c quot = up->port.uartclk / (16 * new_baud); up 502 drivers/tty/serial/sunsu.c sunsu_change_speed(&up->port, up->cflag, 0, quot); up 505 drivers/tty/serial/sunsu.c static void receive_kbd_ms_chars(struct uart_sunsu_port *up, int is_break) up 508 drivers/tty/serial/sunsu.c unsigned char ch = serial_inp(up, UART_RX); up 511 drivers/tty/serial/sunsu.c if (up->su_type == SU_PORT_KBD) { up 513 drivers/tty/serial/sunsu.c serio_interrupt(&up->serio, ch, 0); up 515 drivers/tty/serial/sunsu.c } else if (up->su_type == SU_PORT_MS) { up 520 drivers/tty/serial/sunsu.c sunsu_change_mouse_baud(up); up 527 drivers/tty/serial/sunsu.c serio_interrupt(&up->serio, ch, 0); up 532 drivers/tty/serial/sunsu.c } while (serial_in(up, UART_LSR) & UART_LSR_DR); up 537 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = dev_id; up 539 drivers/tty/serial/sunsu.c if (!(serial_in(up, UART_IIR) & UART_IIR_NO_INT)) { up 540 drivers/tty/serial/sunsu.c unsigned char status = serial_inp(up, UART_LSR); up 543 drivers/tty/serial/sunsu.c receive_kbd_ms_chars(up, (status & UART_LSR_BI) != 0); up 551 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = up 556 drivers/tty/serial/sunsu.c spin_lock_irqsave(&up->port.lock, flags); up 557 drivers/tty/serial/sunsu.c ret = serial_in(up, UART_LSR) & UART_LSR_TEMT ? TIOCSER_TEMT : 0; up 558 drivers/tty/serial/sunsu.c spin_unlock_irqrestore(&up->port.lock, flags); up 565 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = up 570 drivers/tty/serial/sunsu.c status = serial_in(up, UART_MSR); up 586 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = up 601 drivers/tty/serial/sunsu.c serial_out(up, UART_MCR, mcr); up 606 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = up 610 drivers/tty/serial/sunsu.c spin_lock_irqsave(&up->port.lock, flags); up 612 drivers/tty/serial/sunsu.c up->lcr |= UART_LCR_SBC; up 614 drivers/tty/serial/sunsu.c up->lcr &= ~UART_LCR_SBC; up 615 drivers/tty/serial/sunsu.c serial_out(up, UART_LCR, up->lcr); up 616 drivers/tty/serial/sunsu.c spin_unlock_irqrestore(&up->port.lock, flags); up 621 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = up 626 drivers/tty/serial/sunsu.c if (up->port.type == PORT_16C950) { up 628 drivers/tty/serial/sunsu.c up->acr = 0; up 629 drivers/tty/serial/sunsu.c serial_outp(up, UART_LCR, 0xBF); up 630 drivers/tty/serial/sunsu.c serial_outp(up, UART_EFR, UART_EFR_ECB); up 631 drivers/tty/serial/sunsu.c serial_outp(up, UART_IER, 0); up 632 drivers/tty/serial/sunsu.c serial_outp(up, UART_LCR, 0); up 633 drivers/tty/serial/sunsu.c serial_icr_write(up, UART_CSR, 0); /* Reset the UART */ up 634 drivers/tty/serial/sunsu.c serial_outp(up, UART_LCR, 0xBF); up 635 drivers/tty/serial/sunsu.c serial_outp(up, UART_EFR, UART_EFR_ECB); up 636 drivers/tty/serial/sunsu.c serial_outp(up, UART_LCR, 0); up 644 drivers/tty/serial/sunsu.c enable_rsa(up); up 651 drivers/tty/serial/sunsu.c if (uart_config[up->port.type].flags & UART_CLEAR_FIFO) { up 652 drivers/tty/serial/sunsu.c serial_outp(up, UART_FCR, UART_FCR_ENABLE_FIFO); up 653 drivers/tty/serial/sunsu.c serial_outp(up, UART_FCR, UART_FCR_ENABLE_FIFO | up 655 drivers/tty/serial/sunsu.c serial_outp(up, UART_FCR, 0); up 661 drivers/tty/serial/sunsu.c (void) serial_inp(up, UART_LSR); up 662 drivers/tty/serial/sunsu.c (void) serial_inp(up, UART_RX); up 663 drivers/tty/serial/sunsu.c (void) serial_inp(up, UART_IIR); up 664 drivers/tty/serial/sunsu.c (void) serial_inp(up, UART_MSR); up 671 drivers/tty/serial/sunsu.c if (!(up->port.flags & UPF_BUGGY_UART) && up 672 drivers/tty/serial/sunsu.c (serial_inp(up, UART_LSR) == 0xff)) { up 673 drivers/tty/serial/sunsu.c printk("ttyS%d: LSR safety check engaged!\n", up->port.line); up 677 drivers/tty/serial/sunsu.c if (up->su_type != SU_PORT_PORT) { up 678 drivers/tty/serial/sunsu.c retval = request_irq(up->port.irq, sunsu_kbd_ms_interrupt, up 679 drivers/tty/serial/sunsu.c IRQF_SHARED, su_typev[up->su_type], up); up 681 drivers/tty/serial/sunsu.c retval = request_irq(up->port.irq, sunsu_serial_interrupt, up 682 drivers/tty/serial/sunsu.c IRQF_SHARED, su_typev[up->su_type], up); up 685 drivers/tty/serial/sunsu.c printk("su: Cannot register IRQ %d\n", up->port.irq); up 692 drivers/tty/serial/sunsu.c serial_outp(up, UART_LCR, UART_LCR_WLEN8); up 694 drivers/tty/serial/sunsu.c spin_lock_irqsave(&up->port.lock, flags); up 696 drivers/tty/serial/sunsu.c up->port.mctrl |= TIOCM_OUT2; up 698 drivers/tty/serial/sunsu.c sunsu_set_mctrl(&up->port, up->port.mctrl); up 699 drivers/tty/serial/sunsu.c spin_unlock_irqrestore(&up->port.lock, flags); up 706 drivers/tty/serial/sunsu.c up->ier = UART_IER_RLSI | UART_IER_RDI; up 707 drivers/tty/serial/sunsu.c serial_outp(up, UART_IER, up->ier); up 709 drivers/tty/serial/sunsu.c if (up->port.flags & UPF_FOURPORT) { up 714 drivers/tty/serial/sunsu.c icp = (up->port.iobase & 0xfe0) | 0x01f; up 722 drivers/tty/serial/sunsu.c (void) serial_inp(up, UART_LSR); up 723 drivers/tty/serial/sunsu.c (void) serial_inp(up, UART_RX); up 724 drivers/tty/serial/sunsu.c (void) serial_inp(up, UART_IIR); up 725 drivers/tty/serial/sunsu.c (void) serial_inp(up, UART_MSR); up 732 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = up 739 drivers/tty/serial/sunsu.c up->ier = 0; up 740 drivers/tty/serial/sunsu.c serial_outp(up, UART_IER, 0); up 742 drivers/tty/serial/sunsu.c spin_lock_irqsave(&up->port.lock, flags); up 743 drivers/tty/serial/sunsu.c if (up->port.flags & UPF_FOURPORT) { up 745 drivers/tty/serial/sunsu.c inb((up->port.iobase & 0xfe0) | 0x1f); up 746 drivers/tty/serial/sunsu.c up->port.mctrl |= TIOCM_OUT1; up 748 drivers/tty/serial/sunsu.c up->port.mctrl &= ~TIOCM_OUT2; up 750 drivers/tty/serial/sunsu.c sunsu_set_mctrl(&up->port, up->port.mctrl); up 751 drivers/tty/serial/sunsu.c spin_unlock_irqrestore(&up->port.lock, flags); up 756 drivers/tty/serial/sunsu.c serial_out(up, UART_LCR, serial_inp(up, UART_LCR) & ~UART_LCR_SBC); up 757 drivers/tty/serial/sunsu.c serial_outp(up, UART_FCR, UART_FCR_ENABLE_FIFO | up 760 drivers/tty/serial/sunsu.c serial_outp(up, UART_FCR, 0); up 766 drivers/tty/serial/sunsu.c disable_rsa(up); up 772 drivers/tty/serial/sunsu.c (void) serial_in(up, UART_RX); up 774 drivers/tty/serial/sunsu.c free_irq(up->port.irq, up); up 781 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = up 818 drivers/tty/serial/sunsu.c if ((quot & 0xff) == 0 && up->port.type == PORT_16C950 && up 819 drivers/tty/serial/sunsu.c up->rev == 0x5201) up 822 drivers/tty/serial/sunsu.c if (uart_config[up->port.type].flags & UART_USE_FIFO) { up 823 drivers/tty/serial/sunsu.c if ((up->port.uartclk / quot) < (2400 * 16)) up 826 drivers/tty/serial/sunsu.c else if (up->port.type == PORT_RSA) up 832 drivers/tty/serial/sunsu.c if (up->port.type == PORT_16750) up 839 drivers/tty/serial/sunsu.c spin_lock_irqsave(&up->port.lock, flags); up 846 drivers/tty/serial/sunsu.c up->port.read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; up 848 drivers/tty/serial/sunsu.c up->port.read_status_mask |= UART_LSR_FE | UART_LSR_PE; up 850 drivers/tty/serial/sunsu.c up->port.read_status_mask |= UART_LSR_BI; up 855 drivers/tty/serial/sunsu.c up->port.ignore_status_mask = 0; up 857 drivers/tty/serial/sunsu.c up->port.ignore_status_mask |= UART_LSR_PE | UART_LSR_FE; up 859 drivers/tty/serial/sunsu.c up->port.ignore_status_mask |= UART_LSR_BI; up 865 drivers/tty/serial/sunsu.c up->port.ignore_status_mask |= UART_LSR_OE; up 872 drivers/tty/serial/sunsu.c up->port.ignore_status_mask |= UART_LSR_DR; up 877 drivers/tty/serial/sunsu.c up->ier &= ~UART_IER_MSI; up 878 drivers/tty/serial/sunsu.c if (UART_ENABLE_MS(&up->port, cflag)) up 879 drivers/tty/serial/sunsu.c up->ier |= UART_IER_MSI; up 881 drivers/tty/serial/sunsu.c serial_out(up, UART_IER, up->ier); up 883 drivers/tty/serial/sunsu.c if (uart_config[up->port.type].flags & UART_STARTECH) { up 884 drivers/tty/serial/sunsu.c serial_outp(up, UART_LCR, 0xBF); up 885 drivers/tty/serial/sunsu.c serial_outp(up, UART_EFR, cflag & CRTSCTS ? UART_EFR_CTS :0); up 887 drivers/tty/serial/sunsu.c serial_outp(up, UART_LCR, cval | UART_LCR_DLAB);/* set DLAB */ up 888 drivers/tty/serial/sunsu.c serial_outp(up, UART_DLL, quot & 0xff); /* LS of divisor */ up 889 drivers/tty/serial/sunsu.c serial_outp(up, UART_DLM, quot >> 8); /* MS of divisor */ up 890 drivers/tty/serial/sunsu.c if (up->port.type == PORT_16750) up 891 drivers/tty/serial/sunsu.c serial_outp(up, UART_FCR, fcr); /* set fcr */ up 892 drivers/tty/serial/sunsu.c serial_outp(up, UART_LCR, cval); /* reset DLAB */ up 893 drivers/tty/serial/sunsu.c up->lcr = cval; /* Save LCR */ up 894 drivers/tty/serial/sunsu.c if (up->port.type != PORT_16750) { up 897 drivers/tty/serial/sunsu.c serial_outp(up, UART_FCR, UART_FCR_ENABLE_FIFO); up 899 drivers/tty/serial/sunsu.c serial_outp(up, UART_FCR, fcr); /* set fcr */ up 902 drivers/tty/serial/sunsu.c up->cflag = cflag; up 904 drivers/tty/serial/sunsu.c spin_unlock_irqrestore(&up->port.lock, flags); up 933 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = up 942 drivers/tty/serial/sunsu.c port->type = up->type_probed; /* XXX */ up 992 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = serio->port_data; up 999 drivers/tty/serial/sunsu.c lsr = serial_in(up, UART_LSR); up 1003 drivers/tty/serial/sunsu.c serial_out(up, UART_TX, ch); up 1012 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = serio->port_data; up 1017 drivers/tty/serial/sunsu.c if (!up->serio_open) { up 1018 drivers/tty/serial/sunsu.c up->serio_open = 1; up 1029 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = serio->port_data; up 1033 drivers/tty/serial/sunsu.c up->serio_open = 0; up 1039 drivers/tty/serial/sunsu.c static void sunsu_autoconfig(struct uart_sunsu_port *up) up 1045 drivers/tty/serial/sunsu.c if (up->su_type == SU_PORT_NONE) up 1048 drivers/tty/serial/sunsu.c up->type_probed = PORT_UNKNOWN; up 1049 drivers/tty/serial/sunsu.c up->port.iotype = UPIO_MEM; up 1051 drivers/tty/serial/sunsu.c spin_lock_irqsave(&up->port.lock, flags); up 1053 drivers/tty/serial/sunsu.c if (!(up->port.flags & UPF_BUGGY_UART)) { up 1063 drivers/tty/serial/sunsu.c scratch = serial_inp(up, UART_IER); up 1064 drivers/tty/serial/sunsu.c serial_outp(up, UART_IER, 0); up 1068 drivers/tty/serial/sunsu.c scratch2 = serial_inp(up, UART_IER); up 1069 drivers/tty/serial/sunsu.c serial_outp(up, UART_IER, 0x0f); up 1073 drivers/tty/serial/sunsu.c scratch3 = serial_inp(up, UART_IER); up 1074 drivers/tty/serial/sunsu.c serial_outp(up, UART_IER, scratch); up 1079 drivers/tty/serial/sunsu.c save_mcr = serial_in(up, UART_MCR); up 1080 drivers/tty/serial/sunsu.c save_lcr = serial_in(up, UART_LCR); up 1091 drivers/tty/serial/sunsu.c if (!(up->port.flags & UPF_SKIP_TEST)) { up 1092 drivers/tty/serial/sunsu.c serial_outp(up, UART_MCR, UART_MCR_LOOP | 0x0A); up 1093 drivers/tty/serial/sunsu.c status1 = serial_inp(up, UART_MSR) & 0xF0; up 1094 drivers/tty/serial/sunsu.c serial_outp(up, UART_MCR, save_mcr); up 1098 drivers/tty/serial/sunsu.c serial_outp(up, UART_LCR, 0xBF); /* set up for StarTech test */ up 1099 drivers/tty/serial/sunsu.c serial_outp(up, UART_EFR, 0); /* EFR is the same as FCR */ up 1100 drivers/tty/serial/sunsu.c serial_outp(up, UART_LCR, 0); up 1101 drivers/tty/serial/sunsu.c serial_outp(up, UART_FCR, UART_FCR_ENABLE_FIFO); up 1102 drivers/tty/serial/sunsu.c scratch = serial_in(up, UART_IIR) >> 6; up 1105 drivers/tty/serial/sunsu.c up->port.type = PORT_16450; up 1108 drivers/tty/serial/sunsu.c up->port.type = PORT_UNKNOWN; up 1111 drivers/tty/serial/sunsu.c up->port.type = PORT_16550; up 1114 drivers/tty/serial/sunsu.c up->port.type = PORT_16550A; up 1117 drivers/tty/serial/sunsu.c if (up->port.type == PORT_16550A) { up 1119 drivers/tty/serial/sunsu.c serial_outp(up, UART_LCR, UART_LCR_DLAB); up 1120 drivers/tty/serial/sunsu.c if (serial_in(up, UART_EFR) == 0) { up 1121 drivers/tty/serial/sunsu.c up->port.type = PORT_16650; up 1123 drivers/tty/serial/sunsu.c serial_outp(up, UART_LCR, 0xBF); up 1124 drivers/tty/serial/sunsu.c if (serial_in(up, UART_EFR) == 0) up 1125 drivers/tty/serial/sunsu.c up->port.type = PORT_16650V2; up 1128 drivers/tty/serial/sunsu.c if (up->port.type == PORT_16550A) { up 1130 drivers/tty/serial/sunsu.c serial_outp(up, UART_LCR, save_lcr | UART_LCR_DLAB); up 1131 drivers/tty/serial/sunsu.c serial_outp(up, UART_FCR, up 1133 drivers/tty/serial/sunsu.c scratch = serial_in(up, UART_IIR) >> 5; up 1141 drivers/tty/serial/sunsu.c serial_outp(up, UART_FCR, UART_FCR_ENABLE_FIFO); up 1142 drivers/tty/serial/sunsu.c serial_outp(up, UART_LCR, 0); up 1143 drivers/tty/serial/sunsu.c serial_outp(up, UART_FCR, up 1145 drivers/tty/serial/sunsu.c scratch = serial_in(up, UART_IIR) >> 5; up 1147 drivers/tty/serial/sunsu.c up->port.type = PORT_16750; up 1149 drivers/tty/serial/sunsu.c serial_outp(up, UART_FCR, UART_FCR_ENABLE_FIFO); up 1151 drivers/tty/serial/sunsu.c serial_outp(up, UART_LCR, save_lcr); up 1152 drivers/tty/serial/sunsu.c if (up->port.type == PORT_16450) { up 1153 drivers/tty/serial/sunsu.c scratch = serial_in(up, UART_SCR); up 1154 drivers/tty/serial/sunsu.c serial_outp(up, UART_SCR, 0xa5); up 1155 drivers/tty/serial/sunsu.c status1 = serial_in(up, UART_SCR); up 1156 drivers/tty/serial/sunsu.c serial_outp(up, UART_SCR, 0x5a); up 1157 drivers/tty/serial/sunsu.c status2 = serial_in(up, UART_SCR); up 1158 drivers/tty/serial/sunsu.c serial_outp(up, UART_SCR, scratch); up 1161 drivers/tty/serial/sunsu.c up->port.type = PORT_8250; up 1164 drivers/tty/serial/sunsu.c up->port.fifosize = uart_config[up->port.type].dfl_xmit_fifo_size; up 1166 drivers/tty/serial/sunsu.c if (up->port.type == PORT_UNKNOWN) up 1168 drivers/tty/serial/sunsu.c up->type_probed = up->port.type; /* XXX */ up 1174 drivers/tty/serial/sunsu.c if (up->port.type == PORT_RSA) up 1175 drivers/tty/serial/sunsu.c serial_outp(up, UART_RSA_FRR, 0); up 1177 drivers/tty/serial/sunsu.c serial_outp(up, UART_MCR, save_mcr); up 1178 drivers/tty/serial/sunsu.c serial_outp(up, UART_FCR, (UART_FCR_ENABLE_FIFO | up 1181 drivers/tty/serial/sunsu.c serial_outp(up, UART_FCR, 0); up 1182 drivers/tty/serial/sunsu.c (void)serial_in(up, UART_RX); up 1183 drivers/tty/serial/sunsu.c serial_outp(up, UART_IER, 0); up 1186 drivers/tty/serial/sunsu.c spin_unlock_irqrestore(&up->port.lock, flags); up 1196 drivers/tty/serial/sunsu.c static int sunsu_kbd_ms_init(struct uart_sunsu_port *up) up 1203 drivers/tty/serial/sunsu.c if (up->su_type == SU_PORT_KBD) { up 1204 drivers/tty/serial/sunsu.c up->cflag = B1200 | CS8 | CLOCAL | CREAD; up 1207 drivers/tty/serial/sunsu.c up->cflag = B4800 | CS8 | CLOCAL | CREAD; up 1210 drivers/tty/serial/sunsu.c quot = up->port.uartclk / (16 * baud); up 1212 drivers/tty/serial/sunsu.c sunsu_autoconfig(up); up 1213 drivers/tty/serial/sunsu.c if (up->port.type == PORT_UNKNOWN) up 1217 drivers/tty/serial/sunsu.c up->port.dev->of_node, up 1218 drivers/tty/serial/sunsu.c (up->su_type == SU_PORT_KBD) ? "Keyboard" : "Mouse", up 1219 drivers/tty/serial/sunsu.c (unsigned long long) up->port.mapbase, up 1220 drivers/tty/serial/sunsu.c up->port.irq); up 1223 drivers/tty/serial/sunsu.c serio = &up->serio; up 1224 drivers/tty/serial/sunsu.c serio->port_data = up; up 1227 drivers/tty/serial/sunsu.c if (up->su_type == SU_PORT_KBD) { up 1236 drivers/tty/serial/sunsu.c (!(up->port.line & 1) ? "su/serio0" : "su/serio1"), up 1242 drivers/tty/serial/sunsu.c serio->dev.parent = up->port.dev; up 1247 drivers/tty/serial/sunsu.c sunsu_change_speed(&up->port, up->cflag, 0, quot); up 1249 drivers/tty/serial/sunsu.c sunsu_startup(&up->port); up 1266 drivers/tty/serial/sunsu.c static void wait_for_xmitr(struct uart_sunsu_port *up) up 1272 drivers/tty/serial/sunsu.c status = serial_in(up, UART_LSR); up 1275 drivers/tty/serial/sunsu.c up->lsr_break_flag = UART_LSR_BI; up 1283 drivers/tty/serial/sunsu.c if (up->port.flags & UPF_CONS_FLOW) { up 1286 drivers/tty/serial/sunsu.c ((serial_in(up, UART_MSR) & UART_MSR_CTS) == 0)) up 1293 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = up 1296 drivers/tty/serial/sunsu.c wait_for_xmitr(up); up 1297 drivers/tty/serial/sunsu.c serial_out(up, UART_TX, ch); up 1307 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = &sunsu_ports[co->index]; up 1312 drivers/tty/serial/sunsu.c if (up->port.sysrq || oops_in_progress) up 1313 drivers/tty/serial/sunsu.c locked = spin_trylock_irqsave(&up->port.lock, flags); up 1315 drivers/tty/serial/sunsu.c spin_lock_irqsave(&up->port.lock, flags); up 1320 drivers/tty/serial/sunsu.c ier = serial_in(up, UART_IER); up 1321 drivers/tty/serial/sunsu.c serial_out(up, UART_IER, 0); up 1323 drivers/tty/serial/sunsu.c uart_console_write(&up->port, s, count, sunsu_console_putchar); up 1329 drivers/tty/serial/sunsu.c wait_for_xmitr(up); up 1330 drivers/tty/serial/sunsu.c serial_out(up, UART_IER, ier); up 1333 drivers/tty/serial/sunsu.c spin_unlock_irqrestore(&up->port.lock, flags); up 1439 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up; up 1449 drivers/tty/serial/sunsu.c up = &sunsu_ports[nr_inst]; up 1451 drivers/tty/serial/sunsu.c up = kzalloc(sizeof(*up), GFP_KERNEL); up 1452 drivers/tty/serial/sunsu.c if (!up) up 1456 drivers/tty/serial/sunsu.c up->port.line = nr_inst; up 1458 drivers/tty/serial/sunsu.c spin_lock_init(&up->port.lock); up 1460 drivers/tty/serial/sunsu.c up->su_type = type; up 1463 drivers/tty/serial/sunsu.c up->port.mapbase = rp->start; up 1464 drivers/tty/serial/sunsu.c up->reg_size = resource_size(rp); up 1465 drivers/tty/serial/sunsu.c up->port.membase = of_ioremap(rp, 0, up->reg_size, "su"); up 1466 drivers/tty/serial/sunsu.c if (!up->port.membase) { up 1468 drivers/tty/serial/sunsu.c kfree(up); up 1472 drivers/tty/serial/sunsu.c up->port.irq = op->archdata.irqs[0]; up 1474 drivers/tty/serial/sunsu.c up->port.dev = &op->dev; up 1476 drivers/tty/serial/sunsu.c up->port.type = PORT_UNKNOWN; up 1477 drivers/tty/serial/sunsu.c up->port.uartclk = (SU_BASE_BAUD * 16); up 1480 drivers/tty/serial/sunsu.c if (up->su_type == SU_PORT_KBD || up->su_type == SU_PORT_MS) { up 1481 drivers/tty/serial/sunsu.c err = sunsu_kbd_ms_init(up); up 1484 drivers/tty/serial/sunsu.c up->port.membase, up->reg_size); up 1485 drivers/tty/serial/sunsu.c kfree(up); up 1488 drivers/tty/serial/sunsu.c platform_set_drvdata(op, up); up 1495 drivers/tty/serial/sunsu.c up->port.flags |= UPF_BOOT_AUTOCONF; up 1497 drivers/tty/serial/sunsu.c sunsu_autoconfig(up); up 1500 drivers/tty/serial/sunsu.c if (up->port.type == PORT_UNKNOWN) up 1503 drivers/tty/serial/sunsu.c up->port.ops = &sunsu_pops; up 1511 drivers/tty/serial/sunsu.c &sunsu_reg, up->port.line, up 1513 drivers/tty/serial/sunsu.c err = uart_add_one_port(&sunsu_reg, &up->port); up 1517 drivers/tty/serial/sunsu.c platform_set_drvdata(op, up); up 1524 drivers/tty/serial/sunsu.c of_iounmap(&op->resource[0], up->port.membase, up->reg_size); up 1525 drivers/tty/serial/sunsu.c kfree(up); up 1531 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = platform_get_drvdata(op); up 1534 drivers/tty/serial/sunsu.c if (up->su_type == SU_PORT_MS || up 1535 drivers/tty/serial/sunsu.c up->su_type == SU_PORT_KBD) up 1540 drivers/tty/serial/sunsu.c serio_unregister_port(&up->serio); up 1542 drivers/tty/serial/sunsu.c } else if (up->port.type != PORT_UNKNOWN) up 1543 drivers/tty/serial/sunsu.c uart_remove_one_port(&sunsu_reg, &up->port); up 1545 drivers/tty/serial/sunsu.c if (up->port.membase) up 1546 drivers/tty/serial/sunsu.c of_iounmap(&op->resource[0], up->port.membase, up->reg_size); up 1549 drivers/tty/serial/sunsu.c kfree(up); up 272 drivers/tty/serial/sunzilog.c static void sunzilog_maybe_update_regs(struct uart_sunzilog_port *up, up 275 drivers/tty/serial/sunzilog.c if (!ZS_REGS_HELD(up)) { up 276 drivers/tty/serial/sunzilog.c if (ZS_TX_ACTIVE(up)) { up 277 drivers/tty/serial/sunzilog.c up->flags |= SUNZILOG_FLAG_REGS_HELD; up 279 drivers/tty/serial/sunzilog.c __load_zsregs(channel, up->curregs); up 284 drivers/tty/serial/sunzilog.c static void sunzilog_change_mouse_baud(struct uart_sunzilog_port *up) up 286 drivers/tty/serial/sunzilog.c unsigned int cur_cflag = up->cflag; up 289 drivers/tty/serial/sunzilog.c up->cflag &= ~CBAUD; up 290 drivers/tty/serial/sunzilog.c up->cflag |= suncore_mouse_baud_cflag_next(cur_cflag, &new_baud); up 293 drivers/tty/serial/sunzilog.c up->curregs[R12] = (brg & 0xff); up 294 drivers/tty/serial/sunzilog.c up->curregs[R13] = (brg >> 8) & 0xff; up 295 drivers/tty/serial/sunzilog.c sunzilog_maybe_update_regs(up, ZILOG_CHANNEL_FROM_PORT(&up->port)); up 298 drivers/tty/serial/sunzilog.c static void sunzilog_kbdms_receive_chars(struct uart_sunzilog_port *up, up 301 drivers/tty/serial/sunzilog.c if (ZS_IS_KEYB(up)) { up 304 drivers/tty/serial/sunzilog.c if (up->serio_open) up 305 drivers/tty/serial/sunzilog.c serio_interrupt(&up->serio, ch, 0); up 307 drivers/tty/serial/sunzilog.c } else if (ZS_IS_MOUSE(up)) { up 312 drivers/tty/serial/sunzilog.c sunzilog_change_mouse_baud(up); up 319 drivers/tty/serial/sunzilog.c if (up->serio_open) up 320 drivers/tty/serial/sunzilog.c serio_interrupt(&up->serio, ch, 0); up 328 drivers/tty/serial/sunzilog.c sunzilog_receive_chars(struct uart_sunzilog_port *up, up 334 drivers/tty/serial/sunzilog.c if (up->port.state != NULL) /* Unopened serial console */ up 335 drivers/tty/serial/sunzilog.c port = &up->port.state->port; up 361 drivers/tty/serial/sunzilog.c ch &= up->parity_mask; up 363 drivers/tty/serial/sunzilog.c if (unlikely(ZS_IS_KEYB(up)) || unlikely(ZS_IS_MOUSE(up))) { up 364 drivers/tty/serial/sunzilog.c sunzilog_kbdms_receive_chars(up, ch, 0); up 370 drivers/tty/serial/sunzilog.c up->port.icount.rx++; up 374 drivers/tty/serial/sunzilog.c up->port.icount.brk++; up 375 drivers/tty/serial/sunzilog.c if (uart_handle_break(&up->port)) up 379 drivers/tty/serial/sunzilog.c up->port.icount.parity++; up 381 drivers/tty/serial/sunzilog.c up->port.icount.frame++; up 383 drivers/tty/serial/sunzilog.c up->port.icount.overrun++; up 384 drivers/tty/serial/sunzilog.c r1 &= up->port.read_status_mask; up 392 drivers/tty/serial/sunzilog.c if (uart_handle_sysrq_char(&up->port, ch) || !port) up 395 drivers/tty/serial/sunzilog.c if (up->port.ignore_status_mask == 0xff || up 396 drivers/tty/serial/sunzilog.c (r1 & up->port.ignore_status_mask) == 0) { up 406 drivers/tty/serial/sunzilog.c static void sunzilog_status_handle(struct uart_sunzilog_port *up, up 419 drivers/tty/serial/sunzilog.c if (ZS_IS_MOUSE(up)) up 420 drivers/tty/serial/sunzilog.c sunzilog_kbdms_receive_chars(up, 0, 1); up 421 drivers/tty/serial/sunzilog.c if (ZS_IS_CONS(up)) { up 436 drivers/tty/serial/sunzilog.c if (ZS_WANTS_MODEM_STATUS(up)) { up 438 drivers/tty/serial/sunzilog.c up->port.icount.dsr++; up 444 drivers/tty/serial/sunzilog.c if ((status ^ up->prev_status) ^ DCD) up 445 drivers/tty/serial/sunzilog.c uart_handle_dcd_change(&up->port, up 447 drivers/tty/serial/sunzilog.c if ((status ^ up->prev_status) ^ CTS) up 448 drivers/tty/serial/sunzilog.c uart_handle_cts_change(&up->port, up 451 drivers/tty/serial/sunzilog.c wake_up_interruptible(&up->port.state->port.delta_msr_wait); up 454 drivers/tty/serial/sunzilog.c up->prev_status = status; up 457 drivers/tty/serial/sunzilog.c static void sunzilog_transmit_chars(struct uart_sunzilog_port *up, up 462 drivers/tty/serial/sunzilog.c if (ZS_IS_CONS(up)) { up 478 drivers/tty/serial/sunzilog.c up->flags &= ~SUNZILOG_FLAG_TX_ACTIVE; up 480 drivers/tty/serial/sunzilog.c if (ZS_REGS_HELD(up)) { up 481 drivers/tty/serial/sunzilog.c __load_zsregs(channel, up->curregs); up 482 drivers/tty/serial/sunzilog.c up->flags &= ~SUNZILOG_FLAG_REGS_HELD; up 485 drivers/tty/serial/sunzilog.c if (ZS_TX_STOPPED(up)) { up 486 drivers/tty/serial/sunzilog.c up->flags &= ~SUNZILOG_FLAG_TX_STOPPED; up 490 drivers/tty/serial/sunzilog.c if (up->port.x_char) { up 491 drivers/tty/serial/sunzilog.c up->flags |= SUNZILOG_FLAG_TX_ACTIVE; up 492 drivers/tty/serial/sunzilog.c writeb(up->port.x_char, &channel->data); up 496 drivers/tty/serial/sunzilog.c up->port.icount.tx++; up 497 drivers/tty/serial/sunzilog.c up->port.x_char = 0; up 501 drivers/tty/serial/sunzilog.c if (up->port.state == NULL) up 503 drivers/tty/serial/sunzilog.c xmit = &up->port.state->xmit; up 507 drivers/tty/serial/sunzilog.c if (uart_tx_stopped(&up->port)) up 510 drivers/tty/serial/sunzilog.c up->flags |= SUNZILOG_FLAG_TX_ACTIVE; up 516 drivers/tty/serial/sunzilog.c up->port.icount.tx++; up 519 drivers/tty/serial/sunzilog.c uart_write_wakeup(&up->port); up 531 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = dev_id; up 533 drivers/tty/serial/sunzilog.c while (up) { up 535 drivers/tty/serial/sunzilog.c = ZILOG_CHANNEL_FROM_PORT(&up->port); up 539 drivers/tty/serial/sunzilog.c spin_lock(&up->port.lock); up 550 drivers/tty/serial/sunzilog.c port = sunzilog_receive_chars(up, channel); up 552 drivers/tty/serial/sunzilog.c sunzilog_status_handle(up, channel); up 554 drivers/tty/serial/sunzilog.c sunzilog_transmit_chars(up, channel); up 556 drivers/tty/serial/sunzilog.c spin_unlock(&up->port.lock); up 562 drivers/tty/serial/sunzilog.c up = up->next; up 563 drivers/tty/serial/sunzilog.c channel = ZILOG_CHANNEL_FROM_PORT(&up->port); up 565 drivers/tty/serial/sunzilog.c spin_lock(&up->port.lock); up 573 drivers/tty/serial/sunzilog.c port = sunzilog_receive_chars(up, channel); up 575 drivers/tty/serial/sunzilog.c sunzilog_status_handle(up, channel); up 577 drivers/tty/serial/sunzilog.c sunzilog_transmit_chars(up, channel); up 579 drivers/tty/serial/sunzilog.c spin_unlock(&up->port.lock); up 584 drivers/tty/serial/sunzilog.c up = up->next; up 648 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = up 665 drivers/tty/serial/sunzilog.c up->curregs[R5] |= set_bits; up 666 drivers/tty/serial/sunzilog.c up->curregs[R5] &= ~clear_bits; up 667 drivers/tty/serial/sunzilog.c write_zsreg(channel, R5, up->curregs[R5]); up 673 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = up 676 drivers/tty/serial/sunzilog.c up->flags |= SUNZILOG_FLAG_TX_STOPPED; up 682 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = up 687 drivers/tty/serial/sunzilog.c up->flags |= SUNZILOG_FLAG_TX_ACTIVE; up 688 drivers/tty/serial/sunzilog.c up->flags &= ~SUNZILOG_FLAG_TX_STOPPED; up 720 drivers/tty/serial/sunzilog.c uart_write_wakeup(&up->port); up 727 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = UART_ZILOG(port); up 730 drivers/tty/serial/sunzilog.c if (ZS_IS_CONS(up)) up 736 drivers/tty/serial/sunzilog.c up->curregs[R1] &= ~RxINT_MASK; up 737 drivers/tty/serial/sunzilog.c sunzilog_maybe_update_regs(up, channel); up 743 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = up 748 drivers/tty/serial/sunzilog.c new_reg = up->curregs[R15] | (DCDIE | SYNCIE | CTSIE); up 749 drivers/tty/serial/sunzilog.c if (new_reg != up->curregs[R15]) { up 750 drivers/tty/serial/sunzilog.c up->curregs[R15] = new_reg; up 753 drivers/tty/serial/sunzilog.c write_zsreg(channel, R15, up->curregs[R15] & ~WR7pEN); up 760 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = up 775 drivers/tty/serial/sunzilog.c new_reg = (up->curregs[R5] | set_bits) & ~clear_bits; up 776 drivers/tty/serial/sunzilog.c if (new_reg != up->curregs[R5]) { up 777 drivers/tty/serial/sunzilog.c up->curregs[R5] = new_reg; up 780 drivers/tty/serial/sunzilog.c write_zsreg(channel, R5, up->curregs[R5]); up 786 drivers/tty/serial/sunzilog.c static void __sunzilog_startup(struct uart_sunzilog_port *up) up 790 drivers/tty/serial/sunzilog.c channel = ZILOG_CHANNEL_FROM_PORT(&up->port); up 791 drivers/tty/serial/sunzilog.c up->prev_status = readb(&channel->control); up 794 drivers/tty/serial/sunzilog.c up->curregs[R3] |= RxENAB; up 795 drivers/tty/serial/sunzilog.c up->curregs[R5] |= TxENAB; up 797 drivers/tty/serial/sunzilog.c up->curregs[R1] |= EXT_INT_ENAB | INT_ALL_Rx | TxINT_ENAB; up 798 drivers/tty/serial/sunzilog.c sunzilog_maybe_update_regs(up, channel); up 803 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = UART_ZILOG(port); up 806 drivers/tty/serial/sunzilog.c if (ZS_IS_CONS(up)) up 810 drivers/tty/serial/sunzilog.c __sunzilog_startup(up); up 842 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = UART_ZILOG(port); up 846 drivers/tty/serial/sunzilog.c if (ZS_IS_CONS(up)) up 854 drivers/tty/serial/sunzilog.c up->curregs[R3] &= ~RxENAB; up 855 drivers/tty/serial/sunzilog.c up->curregs[R5] &= ~TxENAB; up 858 drivers/tty/serial/sunzilog.c up->curregs[R1] &= ~(EXT_INT_ENAB | TxINT_ENAB | RxINT_MASK); up 859 drivers/tty/serial/sunzilog.c up->curregs[R5] &= ~SND_BRK; up 860 drivers/tty/serial/sunzilog.c sunzilog_maybe_update_regs(up, channel); up 869 drivers/tty/serial/sunzilog.c sunzilog_convert_to_zs(struct uart_sunzilog_port *up, unsigned int cflag, up 873 drivers/tty/serial/sunzilog.c up->curregs[R10] = NRZ; up 874 drivers/tty/serial/sunzilog.c up->curregs[R11] = TCBR | RCBR; up 877 drivers/tty/serial/sunzilog.c up->curregs[R4] &= ~XCLK_MASK; up 878 drivers/tty/serial/sunzilog.c up->curregs[R4] |= X16CLK; up 879 drivers/tty/serial/sunzilog.c up->curregs[R12] = brg & 0xff; up 880 drivers/tty/serial/sunzilog.c up->curregs[R13] = (brg >> 8) & 0xff; up 881 drivers/tty/serial/sunzilog.c up->curregs[R14] = BRSRC | BRENAB; up 884 drivers/tty/serial/sunzilog.c up->curregs[R3] &= ~RxN_MASK; up 885 drivers/tty/serial/sunzilog.c up->curregs[R5] &= ~TxN_MASK; up 888 drivers/tty/serial/sunzilog.c up->curregs[R3] |= Rx5; up 889 drivers/tty/serial/sunzilog.c up->curregs[R5] |= Tx5; up 890 drivers/tty/serial/sunzilog.c up->parity_mask = 0x1f; up 893 drivers/tty/serial/sunzilog.c up->curregs[R3] |= Rx6; up 894 drivers/tty/serial/sunzilog.c up->curregs[R5] |= Tx6; up 895 drivers/tty/serial/sunzilog.c up->parity_mask = 0x3f; up 898 drivers/tty/serial/sunzilog.c up->curregs[R3] |= Rx7; up 899 drivers/tty/serial/sunzilog.c up->curregs[R5] |= Tx7; up 900 drivers/tty/serial/sunzilog.c up->parity_mask = 0x7f; up 904 drivers/tty/serial/sunzilog.c up->curregs[R3] |= Rx8; up 905 drivers/tty/serial/sunzilog.c up->curregs[R5] |= Tx8; up 906 drivers/tty/serial/sunzilog.c up->parity_mask = 0xff; up 909 drivers/tty/serial/sunzilog.c up->curregs[R4] &= ~0x0c; up 911 drivers/tty/serial/sunzilog.c up->curregs[R4] |= SB2; up 913 drivers/tty/serial/sunzilog.c up->curregs[R4] |= SB1; up 915 drivers/tty/serial/sunzilog.c up->curregs[R4] |= PAR_ENAB; up 917 drivers/tty/serial/sunzilog.c up->curregs[R4] &= ~PAR_ENAB; up 919 drivers/tty/serial/sunzilog.c up->curregs[R4] |= PAR_EVEN; up 921 drivers/tty/serial/sunzilog.c up->curregs[R4] &= ~PAR_EVEN; up 923 drivers/tty/serial/sunzilog.c up->port.read_status_mask = Rx_OVR; up 925 drivers/tty/serial/sunzilog.c up->port.read_status_mask |= CRC_ERR | PAR_ERR; up 927 drivers/tty/serial/sunzilog.c up->port.read_status_mask |= BRK_ABRT; up 929 drivers/tty/serial/sunzilog.c up->port.ignore_status_mask = 0; up 931 drivers/tty/serial/sunzilog.c up->port.ignore_status_mask |= CRC_ERR | PAR_ERR; up 933 drivers/tty/serial/sunzilog.c up->port.ignore_status_mask |= BRK_ABRT; up 935 drivers/tty/serial/sunzilog.c up->port.ignore_status_mask |= Rx_OVR; up 939 drivers/tty/serial/sunzilog.c up->port.ignore_status_mask = 0xff; up 947 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = up 954 drivers/tty/serial/sunzilog.c spin_lock_irqsave(&up->port.lock, flags); up 958 drivers/tty/serial/sunzilog.c sunzilog_convert_to_zs(up, termios->c_cflag, termios->c_iflag, brg); up 960 drivers/tty/serial/sunzilog.c if (UART_ENABLE_MS(&up->port, termios->c_cflag)) up 961 drivers/tty/serial/sunzilog.c up->flags |= SUNZILOG_FLAG_MODEM_STATUS; up 963 drivers/tty/serial/sunzilog.c up->flags &= ~SUNZILOG_FLAG_MODEM_STATUS; up 965 drivers/tty/serial/sunzilog.c up->cflag = termios->c_cflag; up 967 drivers/tty/serial/sunzilog.c sunzilog_maybe_update_regs(up, ZILOG_CHANNEL_FROM_PORT(port)); up 971 drivers/tty/serial/sunzilog.c spin_unlock_irqrestore(&up->port.lock, flags); up 976 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = UART_ZILOG(port); up 978 drivers/tty/serial/sunzilog.c return (up->flags & SUNZILOG_FLAG_ESCC) ? "zs (ESCC)" : "zs"; up 1008 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = up 1011 drivers/tty/serial/sunzilog.c = ZILOG_CHANNEL_FROM_PORT(&up->port); up 1036 drivers/tty/serial/sunzilog.c ch &= up->parity_mask; up 1043 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = up 1046 drivers/tty/serial/sunzilog.c sunzilog_putchar(&up->port, ch); up 1088 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up; up 1099 drivers/tty/serial/sunzilog.c up = &sunzilog_port_table[i]; up 1101 drivers/tty/serial/sunzilog.c spin_lock_init(&up->port.lock); up 1104 drivers/tty/serial/sunzilog.c sunzilog_irq_chain = up; up 1107 drivers/tty/serial/sunzilog.c up->next = up + 1; up 1109 drivers/tty/serial/sunzilog.c up->next = NULL; up 1160 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = serio->port_data; up 1165 drivers/tty/serial/sunzilog.c sunzilog_putchar(&up->port, ch); up 1174 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = serio->port_data; up 1179 drivers/tty/serial/sunzilog.c if (!up->serio_open) { up 1180 drivers/tty/serial/sunzilog.c up->serio_open = 1; up 1191 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = serio->port_data; up 1195 drivers/tty/serial/sunzilog.c up->serio_open = 0; up 1205 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = &sunzilog_port_table[con->index]; up 1209 drivers/tty/serial/sunzilog.c if (up->port.sysrq || oops_in_progress) up 1210 drivers/tty/serial/sunzilog.c locked = spin_trylock_irqsave(&up->port.lock, flags); up 1212 drivers/tty/serial/sunzilog.c spin_lock_irqsave(&up->port.lock, flags); up 1214 drivers/tty/serial/sunzilog.c uart_console_write(&up->port, s, count, sunzilog_putchar); up 1218 drivers/tty/serial/sunzilog.c spin_unlock_irqrestore(&up->port.lock, flags); up 1223 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = &sunzilog_port_table[con->index]; up 1227 drivers/tty/serial/sunzilog.c if (up->port.type != PORT_SUNZILOG) up 1234 drivers/tty/serial/sunzilog.c sunserial_console_termios(con, up->port.dev->of_node); up 1253 drivers/tty/serial/sunzilog.c spin_lock_irqsave(&up->port.lock, flags); up 1255 drivers/tty/serial/sunzilog.c up->curregs[R15] |= BRKIE; up 1256 drivers/tty/serial/sunzilog.c sunzilog_convert_to_zs(up, con->cflag, 0, brg); up 1258 drivers/tty/serial/sunzilog.c sunzilog_set_mctrl(&up->port, TIOCM_DTR | TIOCM_RTS); up 1259 drivers/tty/serial/sunzilog.c __sunzilog_startup(up); up 1261 drivers/tty/serial/sunzilog.c spin_unlock_irqrestore(&up->port.lock, flags); up 1285 drivers/tty/serial/sunzilog.c static void sunzilog_init_kbdms(struct uart_sunzilog_port *up) up 1289 drivers/tty/serial/sunzilog.c if (up->flags & SUNZILOG_FLAG_CONS_KEYB) { up 1290 drivers/tty/serial/sunzilog.c up->cflag = B1200 | CS8 | CLOCAL | CREAD; up 1293 drivers/tty/serial/sunzilog.c up->cflag = B4800 | CS8 | CLOCAL | CREAD; up 1297 drivers/tty/serial/sunzilog.c up->curregs[R15] |= BRKIE; up 1299 drivers/tty/serial/sunzilog.c sunzilog_convert_to_zs(up, up->cflag, 0, brg); up 1300 drivers/tty/serial/sunzilog.c sunzilog_set_mctrl(&up->port, TIOCM_DTR | TIOCM_RTS); up 1301 drivers/tty/serial/sunzilog.c __sunzilog_startup(up); up 1305 drivers/tty/serial/sunzilog.c static void sunzilog_register_serio(struct uart_sunzilog_port *up) up 1307 drivers/tty/serial/sunzilog.c struct serio *serio = &up->serio; up 1309 drivers/tty/serial/sunzilog.c serio->port_data = up; up 1312 drivers/tty/serial/sunzilog.c if (up->flags & SUNZILOG_FLAG_CONS_KEYB) { up 1321 drivers/tty/serial/sunzilog.c ((up->flags & SUNZILOG_FLAG_CONS_KEYB) ? up 1328 drivers/tty/serial/sunzilog.c serio->dev.parent = up->port.dev; up 1334 drivers/tty/serial/sunzilog.c static void sunzilog_init_hw(struct uart_sunzilog_port *up) up 1340 drivers/tty/serial/sunzilog.c channel = ZILOG_CHANNEL_FROM_PORT(&up->port); up 1342 drivers/tty/serial/sunzilog.c spin_lock_irqsave(&up->port.lock, flags); up 1343 drivers/tty/serial/sunzilog.c if (ZS_IS_CHANNEL_A(up)) { up 1349 drivers/tty/serial/sunzilog.c if (up->flags & (SUNZILOG_FLAG_CONS_KEYB | up 1351 drivers/tty/serial/sunzilog.c up->curregs[R1] = EXT_INT_ENAB | INT_ALL_Rx | TxINT_ENAB; up 1352 drivers/tty/serial/sunzilog.c up->curregs[R4] = PAR_EVEN | X16CLK | SB1; up 1353 drivers/tty/serial/sunzilog.c up->curregs[R3] = RxENAB | Rx8; up 1354 drivers/tty/serial/sunzilog.c up->curregs[R5] = TxENAB | Tx8; up 1355 drivers/tty/serial/sunzilog.c up->curregs[R6] = 0x00; /* SDLC Address */ up 1356 drivers/tty/serial/sunzilog.c up->curregs[R7] = 0x7E; /* SDLC Flag */ up 1357 drivers/tty/serial/sunzilog.c up->curregs[R9] = NV; up 1358 drivers/tty/serial/sunzilog.c up->curregs[R7p] = 0x00; up 1359 drivers/tty/serial/sunzilog.c sunzilog_init_kbdms(up); up 1361 drivers/tty/serial/sunzilog.c if (up->flags & SUNZILOG_FLAG_ISR_HANDLER) up 1362 drivers/tty/serial/sunzilog.c up->curregs[R9] |= MIE; up 1363 drivers/tty/serial/sunzilog.c write_zsreg(channel, R9, up->curregs[R9]); up 1366 drivers/tty/serial/sunzilog.c up->parity_mask = 0xff; up 1367 drivers/tty/serial/sunzilog.c up->curregs[R1] = EXT_INT_ENAB | INT_ALL_Rx | TxINT_ENAB; up 1368 drivers/tty/serial/sunzilog.c up->curregs[R4] = PAR_EVEN | X16CLK | SB1; up 1369 drivers/tty/serial/sunzilog.c up->curregs[R3] = RxENAB | Rx8; up 1370 drivers/tty/serial/sunzilog.c up->curregs[R5] = TxENAB | Tx8; up 1371 drivers/tty/serial/sunzilog.c up->curregs[R6] = 0x00; /* SDLC Address */ up 1372 drivers/tty/serial/sunzilog.c up->curregs[R7] = 0x7E; /* SDLC Flag */ up 1373 drivers/tty/serial/sunzilog.c up->curregs[R9] = NV; up 1374 drivers/tty/serial/sunzilog.c up->curregs[R10] = NRZ; up 1375 drivers/tty/serial/sunzilog.c up->curregs[R11] = TCBR | RCBR; up 1378 drivers/tty/serial/sunzilog.c up->curregs[R12] = (brg & 0xff); up 1379 drivers/tty/serial/sunzilog.c up->curregs[R13] = (brg >> 8) & 0xff; up 1380 drivers/tty/serial/sunzilog.c up->curregs[R14] = BRSRC | BRENAB; up 1381 drivers/tty/serial/sunzilog.c up->curregs[R15] = FIFOEN; /* Use FIFO if on ESCC */ up 1382 drivers/tty/serial/sunzilog.c up->curregs[R7p] = TxFIFO_LVL | RxFIFO_LVL; up 1383 drivers/tty/serial/sunzilog.c if (__load_zsregs(channel, up->curregs)) { up 1384 drivers/tty/serial/sunzilog.c up->flags |= SUNZILOG_FLAG_ESCC; up 1387 drivers/tty/serial/sunzilog.c if (up->flags & SUNZILOG_FLAG_ISR_HANDLER) up 1388 drivers/tty/serial/sunzilog.c up->curregs[R9] |= MIE; up 1389 drivers/tty/serial/sunzilog.c write_zsreg(channel, R9, up->curregs[R9]); up 1392 drivers/tty/serial/sunzilog.c spin_unlock_irqrestore(&up->port.lock, flags); up 1395 drivers/tty/serial/sunzilog.c if (up->flags & (SUNZILOG_FLAG_CONS_KEYB | up 1397 drivers/tty/serial/sunzilog.c sunzilog_register_serio(up); up 1407 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up; up 1432 drivers/tty/serial/sunzilog.c up = &sunzilog_port_table[inst * 2]; up 1435 drivers/tty/serial/sunzilog.c up[0].port.mapbase = op->resource[0].start + 0x00; up 1436 drivers/tty/serial/sunzilog.c up[0].port.membase = (void __iomem *) &rp->channelA; up 1437 drivers/tty/serial/sunzilog.c up[0].port.iotype = UPIO_MEM; up 1438 drivers/tty/serial/sunzilog.c up[0].port.irq = op->archdata.irqs[0]; up 1439 drivers/tty/serial/sunzilog.c up[0].port.uartclk = ZS_CLOCK; up 1440 drivers/tty/serial/sunzilog.c up[0].port.fifosize = 1; up 1441 drivers/tty/serial/sunzilog.c up[0].port.ops = &sunzilog_pops; up 1442 drivers/tty/serial/sunzilog.c up[0].port.type = PORT_SUNZILOG; up 1443 drivers/tty/serial/sunzilog.c up[0].port.flags = 0; up 1444 drivers/tty/serial/sunzilog.c up[0].port.line = (inst * 2) + 0; up 1445 drivers/tty/serial/sunzilog.c up[0].port.dev = &op->dev; up 1446 drivers/tty/serial/sunzilog.c up[0].flags |= SUNZILOG_FLAG_IS_CHANNEL_A; up 1448 drivers/tty/serial/sunzilog.c up[0].flags |= SUNZILOG_FLAG_CONS_KEYB; up 1449 drivers/tty/serial/sunzilog.c sunzilog_init_hw(&up[0]); up 1452 drivers/tty/serial/sunzilog.c up[1].port.mapbase = op->resource[0].start + 0x04; up 1453 drivers/tty/serial/sunzilog.c up[1].port.membase = (void __iomem *) &rp->channelB; up 1454 drivers/tty/serial/sunzilog.c up[1].port.iotype = UPIO_MEM; up 1455 drivers/tty/serial/sunzilog.c up[1].port.irq = op->archdata.irqs[0]; up 1456 drivers/tty/serial/sunzilog.c up[1].port.uartclk = ZS_CLOCK; up 1457 drivers/tty/serial/sunzilog.c up[1].port.fifosize = 1; up 1458 drivers/tty/serial/sunzilog.c up[1].port.ops = &sunzilog_pops; up 1459 drivers/tty/serial/sunzilog.c up[1].port.type = PORT_SUNZILOG; up 1460 drivers/tty/serial/sunzilog.c up[1].port.flags = 0; up 1461 drivers/tty/serial/sunzilog.c up[1].port.line = (inst * 2) + 1; up 1462 drivers/tty/serial/sunzilog.c up[1].port.dev = &op->dev; up 1463 drivers/tty/serial/sunzilog.c up[1].flags |= 0; up 1465 drivers/tty/serial/sunzilog.c up[1].flags |= SUNZILOG_FLAG_CONS_MOUSE; up 1466 drivers/tty/serial/sunzilog.c sunzilog_init_hw(&up[1]); up 1470 drivers/tty/serial/sunzilog.c &sunzilog_reg, up[0].port.line, up 1472 drivers/tty/serial/sunzilog.c up->flags |= SUNZILOG_FLAG_IS_CONS; up 1473 drivers/tty/serial/sunzilog.c err = uart_add_one_port(&sunzilog_reg, &up[0].port); up 1480 drivers/tty/serial/sunzilog.c &sunzilog_reg, up[1].port.line, up 1482 drivers/tty/serial/sunzilog.c up->flags |= SUNZILOG_FLAG_IS_CONS; up 1483 drivers/tty/serial/sunzilog.c err = uart_add_one_port(&sunzilog_reg, &up[1].port); up 1485 drivers/tty/serial/sunzilog.c uart_remove_one_port(&sunzilog_reg, &up[0].port); up 1495 drivers/tty/serial/sunzilog.c (unsigned long long) up[0].port.mapbase, up 1496 drivers/tty/serial/sunzilog.c op->archdata.irqs[0], sunzilog_type(&up[0].port)); up 1500 drivers/tty/serial/sunzilog.c (unsigned long long) up[1].port.mapbase, up 1501 drivers/tty/serial/sunzilog.c op->archdata.irqs[0], sunzilog_type(&up[1].port)); up 1505 drivers/tty/serial/sunzilog.c platform_set_drvdata(op, &up[0]); up 1510 drivers/tty/serial/sunzilog.c static void zs_remove_one(struct uart_sunzilog_port *up) up 1512 drivers/tty/serial/sunzilog.c if (ZS_IS_KEYB(up) || ZS_IS_MOUSE(up)) { up 1514 drivers/tty/serial/sunzilog.c serio_unregister_port(&up->serio); up 1517 drivers/tty/serial/sunzilog.c uart_remove_one_port(&sunzilog_reg, &up->port); up 1522 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = platform_get_drvdata(op); up 1525 drivers/tty/serial/sunzilog.c zs_remove_one(&up[0]); up 1526 drivers/tty/serial/sunzilog.c zs_remove_one(&up[1]); up 1528 drivers/tty/serial/sunzilog.c regs = sunzilog_chip_regs[up[0].port.line / 2]; up 1582 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = sunzilog_irq_chain; up 1589 drivers/tty/serial/sunzilog.c while (up) { up 1593 drivers/tty/serial/sunzilog.c channel = ZILOG_CHANNEL_FROM_PORT(&up->port); up 1594 drivers/tty/serial/sunzilog.c up->flags |= SUNZILOG_FLAG_ISR_HANDLER; up 1595 drivers/tty/serial/sunzilog.c up->curregs[R9] |= MIE; up 1596 drivers/tty/serial/sunzilog.c write_zsreg(channel, R9, up->curregs[R9]); up 1597 drivers/tty/serial/sunzilog.c up = up->next; up 1623 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = sunzilog_irq_chain; up 1626 drivers/tty/serial/sunzilog.c while (up) { up 1630 drivers/tty/serial/sunzilog.c channel = ZILOG_CHANNEL_FROM_PORT(&up->port); up 1631 drivers/tty/serial/sunzilog.c up->flags &= ~SUNZILOG_FLAG_ISR_HANDLER; up 1632 drivers/tty/serial/sunzilog.c up->curregs[R9] &= ~MIE; up 1633 drivers/tty/serial/sunzilog.c write_zsreg(channel, R9, up->curregs[R9]); up 1634 drivers/tty/serial/sunzilog.c up = up->next; up 1999 drivers/tty/vt/keyboard.c u_char __user *up; up 2028 drivers/tty/vt/keyboard.c up = user_kdgkb->kb_string; up 2032 drivers/tty/vt/keyboard.c if (put_user(*p, up++)) { up 2036 drivers/tty/vt/keyboard.c if (put_user('\0', up)) { up 358 drivers/tty/vt/vt_ioctl.c void __user *up = (void __user *)arg; up 452 drivers/tty/vt/vt_ioctl.c if (copy_from_user(&kbrep, up, sizeof(struct kbd_repeat))) { up 459 drivers/tty/vt/vt_ioctl.c if (copy_to_user(up, &kbrep, sizeof(struct kbd_repeat))) up 547 drivers/tty/vt/vt_ioctl.c ret = vt_do_kbkeycode_ioctl(cmd, up, perm); up 552 drivers/tty/vt/vt_ioctl.c ret = vt_do_kdsk_ioctl(cmd, up, perm, console); up 557 drivers/tty/vt/vt_ioctl.c ret = vt_do_kdgkb_ioctl(cmd, up, perm); up 566 drivers/tty/vt/vt_ioctl.c ret = vt_do_diacrit(cmd, up, perm); up 607 drivers/tty/vt/vt_ioctl.c if (copy_from_user(&tmp, up, sizeof(struct vt_mode))) { up 636 drivers/tty/vt/vt_ioctl.c rc = copy_to_user(up, &tmp, sizeof(struct vt_mode)); up 649 drivers/tty/vt/vt_ioctl.c struct vt_stat __user *vtstat = up; up 833 drivers/tty/vt/vt_ioctl.c struct vt_sizes __user *vtsizes = up; up 863 drivers/tty/vt/vt_ioctl.c if (copy_from_user(&v, up, sizeof(struct vt_consize))) up 916 drivers/tty/vt/vt_ioctl.c op.data = up; up 927 drivers/tty/vt/vt_ioctl.c op.data = up; up 936 drivers/tty/vt/vt_ioctl.c ret = con_set_cmap(up); up 940 drivers/tty/vt/vt_ioctl.c ret = con_get_cmap(up); up 945 drivers/tty/vt/vt_ioctl.c ret = do_fontx_ioctl(cmd, up, perm, &op); up 974 drivers/tty/vt/vt_ioctl.c if (copy_from_user(&op, up, sizeof(op))) { up 983 drivers/tty/vt/vt_ioctl.c if (copy_to_user(up, &op, sizeof(op))) up 992 drivers/tty/vt/vt_ioctl.c ret = con_set_trans_old(up); up 996 drivers/tty/vt/vt_ioctl.c ret = con_get_trans_old(up); up 1003 drivers/tty/vt/vt_ioctl.c ret = con_set_trans_new(up); up 1007 drivers/tty/vt/vt_ioctl.c ret = con_get_trans_new(up); up 1018 drivers/tty/vt/vt_ioctl.c ret = do_unimap_ioctl(cmd, up, perm, vc); up 1193 drivers/tty/vt/vt_ioctl.c void __user *up = compat_ptr(arg); up 1210 drivers/tty/vt/vt_ioctl.c return compat_fontx_ioctl(cmd, up, perm, &op); up 1213 drivers/tty/vt/vt_ioctl.c return compat_kdfontop_ioctl(up, perm, &op, vc); up 1217 drivers/tty/vt/vt_ioctl.c return compat_unimap_ioctl(cmd, up, perm, vc); up 1249 drivers/tty/vt/vt_ioctl.c return vt_ioctl(tty, cmd, (unsigned long)up); up 1069 drivers/usb/class/usbtmc.c up(&file_data->limit_write_sem); up 1141 drivers/usb/class/usbtmc.c up(&file_data->limit_write_sem); up 1149 drivers/usb/class/usbtmc.c up(&file_data->limit_write_sem); up 1161 drivers/usb/class/usbtmc.c up(&file_data->limit_write_sem); up 1186 drivers/usb/class/usbtmc.c up(&file_data->limit_write_sem); up 1520 drivers/usb/class/usbtmc.c up(&file_data->limit_write_sem); up 1560 drivers/usb/class/usbtmc.c up(&file_data->limit_write_sem); up 1579 drivers/usb/class/usbtmc.c up(&file_data->limit_write_sem); up 730 drivers/usb/gadget/function/f_midi.c static void f_midi_in_trigger(struct snd_rawmidi_substream *substream, int up) up 737 drivers/usb/gadget/function/f_midi.c VDBG(midi, "%s() %d\n", __func__, up); up 738 drivers/usb/gadget/function/f_midi.c midi->in_ports_array[substream->number].active = up; up 739 drivers/usb/gadget/function/f_midi.c if (up) up 763 drivers/usb/gadget/function/f_midi.c static void f_midi_out_trigger(struct snd_rawmidi_substream *substream, int up) up 769 drivers/usb/gadget/function/f_midi.c if (up) up 561 drivers/usb/host/uhci-debug.c struct uhci_debug *up; up 564 drivers/usb/host/uhci-debug.c up = kmalloc(sizeof(*up), GFP_KERNEL); up 565 drivers/usb/host/uhci-debug.c if (!up) up 568 drivers/usb/host/uhci-debug.c up->data = kmalloc(MAX_OUTPUT, GFP_KERNEL); up 569 drivers/usb/host/uhci-debug.c if (!up->data) { up 570 drivers/usb/host/uhci-debug.c kfree(up); up 574 drivers/usb/host/uhci-debug.c up->size = 0; up 577 drivers/usb/host/uhci-debug.c up->size = uhci_sprint_schedule(uhci, up->data, up 581 drivers/usb/host/uhci-debug.c file->private_data = up; up 588 drivers/usb/host/uhci-debug.c struct uhci_debug *up = file->private_data; up 589 drivers/usb/host/uhci-debug.c return no_seek_end_llseek_size(file, off, whence, up->size); up 595 drivers/usb/host/uhci-debug.c struct uhci_debug *up = file->private_data; up 596 drivers/usb/host/uhci-debug.c return simple_read_from_buffer(buf, nbytes, ppos, up->data, up->size); up 601 drivers/usb/host/uhci-debug.c struct uhci_debug *up = file->private_data; up 603 drivers/usb/host/uhci-debug.c kfree(up->data); up 604 drivers/usb/host/uhci-debug.c kfree(up); up 532 drivers/usb/misc/ftdi-elan.c up(&ftdi->sw_lock); up 536 drivers/usb/misc/ftdi-elan.c up(&ftdi->sw_lock); up 645 drivers/usb/misc/ftdi-elan.c up(&ftdi->sw_lock); /* decrement the count on our device */ up 215 drivers/usb/misc/usblcd.c up(&dev->limit_sem); up 294 drivers/usb/misc/usblcd.c up(&dev->limit_sem); up 356 drivers/usb/usb-skeleton.c up(&dev->limit_sem); up 462 drivers/usb/usb-skeleton.c up(&dev->limit_sem); up 1661 drivers/video/fbdev/atafb.c var->xoffset = up(var->xoffset, 32); up 1666 drivers/video/fbdev/atafb.c var->xoffset = up(var->xoffset, 2); up 2280 drivers/video/fbdev/atafb.c var->xoffset = up(var->xoffset, 16); up 545 drivers/video/fbdev/offb.c const __be32 *pp, *addrp, *up; up 595 drivers/video/fbdev/offb.c up = of_get_property(dp, "linux,bootx-addr", &len); up 596 drivers/video/fbdev/offb.c if (up == NULL) up 597 drivers/video/fbdev/offb.c up = of_get_property(dp, "address", &len); up 598 drivers/video/fbdev/offb.c if (up && len == sizeof(u32)) up 599 drivers/video/fbdev/offb.c addr_prop = *up; up 259 drivers/video/fbdev/omap/hwa742.c up(&hwa742.req_sema); up 476 drivers/video/fbdev/omap2/omapfb/dss/dsi.c up(&dsi->bus_lock); up 1125 drivers/video/fbdev/smscufx.c up(&unode->dev->urbs.limit_sem); up 1805 drivers/video/fbdev/smscufx.c up(&dev->urbs.limit_sem); up 1841 drivers/video/fbdev/udlfb.c up(&dlfb->urbs.limit_sem); up 1925 drivers/video/fbdev/udlfb.c up(&dlfb->urbs.limit_sem); up 1376 drivers/video/fbdev/via/hw.c struct via_pll_config cur, up, down, best = {0, 1, 0}; up 1385 drivers/video/fbdev/via/hw.c up = down = cur; up 1386 drivers/video/fbdev/via/hw.c up.multiplier++; up 1388 drivers/video/fbdev/via/hw.c if (abs(get_pll_output_frequency(f0, up) - clk) < f) up 1389 drivers/video/fbdev/via/hw.c cur = up; up 358 drivers/xen/pvcalls-back.c up(&fedata->socket_lock); up 372 drivers/xen/pvcalls-back.c up(&fedata->socket_lock); up 480 drivers/xen/pvcalls-back.c up(&fedata->socket_lock); up 489 drivers/xen/pvcalls-back.c up(&fedata->socket_lock); up 492 drivers/xen/pvcalls-back.c up(&fedata->socket_lock); up 646 drivers/xen/pvcalls-back.c up(&fedata->socket_lock); up 684 drivers/xen/pvcalls-back.c up(&fedata->socket_lock); up 713 drivers/xen/pvcalls-back.c up(&fedata->socket_lock); up 761 drivers/xen/pvcalls-back.c up(&fedata->socket_lock); up 959 drivers/xen/pvcalls-back.c up(&pvcalls_back_global.frontends_lock); up 1002 drivers/xen/pvcalls-back.c up(&fedata->socket_lock); up 1109 drivers/xen/pvcalls-back.c up(&pvcalls_back_global.frontends_lock); up 1218 drivers/xen/pvcalls-back.c up(&pvcalls_back_global.frontends_lock); up 301 fs/affs/affs.h up(&AFFS_I(inode)->i_link_lock); up 311 fs/affs/affs.h up(&AFFS_I(inode)->i_hash_lock); up 321 fs/affs/affs.h up(&AFFS_I(inode)->i_ext_lock); up 3995 fs/btrfs/disk-io.c up(&fs_info->uuid_tree_rescan_sem); up 2103 fs/btrfs/ioctl.c char __user *up = ubuf + *sk_offset; up 2105 fs/btrfs/ioctl.c if (read_extent_buffer_to_user(leaf, up, up 1767 fs/btrfs/super.c up(&fs_info->uuid_tree_rescan_sem); up 4584 fs/btrfs/volumes.c up(&fs_info->uuid_tree_rescan_sem); up 4646 fs/btrfs/volumes.c up(&fs_info->uuid_tree_rescan_sem); up 4687 fs/btrfs/volumes.c up(&fs_info->uuid_tree_rescan_sem); up 4703 fs/btrfs/volumes.c up(&fs_info->uuid_tree_rescan_sem); up 350 fs/cifs/cifs_unicode.h register __le16 *up; up 352 fs/cifs/cifs_unicode.h up = upin; up 353 fs/cifs/cifs_unicode.h while (*up) { /* For all characters */ up 354 fs/cifs/cifs_unicode.h *up = cpu_to_le16(UniToupper(le16_to_cpu(*up))); up 355 fs/cifs/cifs_unicode.h up++; up 392 fs/cifs/cifs_unicode.h register wchar_t *up; up 394 fs/cifs/cifs_unicode.h up = upin; up 395 fs/cifs/cifs_unicode.h while (*up) { /* For all characters */ up 396 fs/cifs/cifs_unicode.h *up = UniTolower(*up); up 397 fs/cifs/cifs_unicode.h up++; up 66 fs/hpfs/anode.c anode_secno a, na = -1, ra, up = -1; up 125 fs/hpfs/anode.c up = a != node ? le32_to_cpu(anode->up) : -1; up 132 fs/hpfs/anode.c anode->up = cpu_to_le32(node); up 165 fs/hpfs/anode.c while (up != (anode_secno)-1) { up 168 fs/hpfs/anode.c if (hpfs_stop_cycles(s, up, &c1, &c2, "hpfs_add_sector_to_btree #2")) return -1; up 169 fs/hpfs/anode.c if (up != node || !fnod) { up 170 fs/hpfs/anode.c if (!(anode = hpfs_map_anode(s, up, &bh))) return -1; up 173 fs/hpfs/anode.c if (!(fnode = hpfs_map_fnode(s, up, &bh))) return -1; up 187 fs/hpfs/anode.c anode->up = cpu_to_le32(up); up 188 fs/hpfs/anode.c if (up == node && fnod) up 197 fs/hpfs/anode.c up = up != node ? le32_to_cpu(anode->up) : -1; up 214 fs/hpfs/anode.c anode->up = cpu_to_le32(na); up 221 fs/hpfs/anode.c anode->up = cpu_to_le32(node); up 240 fs/hpfs/anode.c ranode->up = cpu_to_le32(node); up 248 fs/hpfs/anode.c unode->up = cpu_to_le32(ra); up 307 fs/hpfs/anode.c ano = le32_to_cpu(anode->up); up 225 fs/hpfs/dnode.c if (le32_to_cpu(dd->up) != dno || dd->root_dnode) { up 226 fs/hpfs/dnode.c dd->up = cpu_to_le32(dno); up 304 fs/hpfs/dnode.c if (!(ad = hpfs_alloc_dnode(i->i_sb, le32_to_cpu(d->up), &adno, &qbh1))) { up 333 fs/hpfs/dnode.c ad->up = d->up; up 334 fs/hpfs/dnode.c dno = le32_to_cpu(ad->up); up 341 fs/hpfs/dnode.c if (!(rd = hpfs_alloc_dnode(i->i_sb, le32_to_cpu(d->up), &rdno, &qbh2))) { up 352 fs/hpfs/dnode.c rd->up = d->up; up 353 fs/hpfs/dnode.c if (!(fnode = hpfs_map_fnode(i->i_sb, le32_to_cpu(d->up), &bh))) { up 366 fs/hpfs/dnode.c d->up = ad->up = cpu_to_le32(rdno); up 450 fs/hpfs/dnode.c if (le32_to_cpu(dnode->up) != chk_up) { up 452 fs/hpfs/dnode.c dno, chk_up, le32_to_cpu(dnode->up)); up 468 fs/hpfs/dnode.c dnode_secno up = le32_to_cpu(dnode->up); up 474 fs/hpfs/dnode.c if (up == to) return to; up 475 fs/hpfs/dnode.c if (!(dnode = hpfs_map_dnode(i->i_sb, up, &qbh))) return 0; up 483 fs/hpfs/dnode.c hpfs_error(i->i_sb, "move_to_top: dnode %08x doesn't point down to %08x", up, dno); up 491 fs/hpfs/dnode.c dno = up; up 523 fs/hpfs/dnode.c dnode_secno down, up, ndown; up 534 fs/hpfs/dnode.c up = le32_to_cpu(dnode->up); up 551 fs/hpfs/dnode.c if (up != i->i_ino) { up 554 fs/hpfs/dnode.c dno, up, up 559 fs/hpfs/dnode.c d1->up = cpu_to_le32(up); up 564 fs/hpfs/dnode.c if ((fnode = hpfs_map_fnode(i->i_sb, up, &bh))) { up 573 fs/hpfs/dnode.c if (!(dnode = hpfs_map_dnode(i->i_sb, up, &qbh))) return; up 578 fs/hpfs/dnode.c hpfs_error(i->i_sb, "delete_empty_dnode: pointer to dnode %08x not found in dnode %08x", dno, up); up 581 fs/hpfs/dnode.c for_all_poss(i, hpfs_pos_subst, ((loff_t)dno << 4) | 1, ((loff_t)up << 4) | p); up 593 fs/hpfs/dnode.c d1->up = cpu_to_le32(up); up 618 fs/hpfs/dnode.c for_all_poss(i, hpfs_pos_subst, ((loff_t)up << 4) | p, 4); up 619 fs/hpfs/dnode.c for_all_poss(i, hpfs_pos_del, ((loff_t)up << 4) | p, 1); up 621 fs/hpfs/dnode.c d1->up = cpu_to_le32(ndown); up 628 fs/hpfs/dnode.c dno = up; up 638 fs/hpfs/dnode.c hpfs_error(i->i_sb, "delete_empty_dnode: empty dnode %08x", up); up 641 fs/hpfs/dnode.c dno = up; up 690 fs/hpfs/dnode.c for_all_poss(i, hpfs_pos_subst, ((loff_t)up << 4) | (p - 1), 4); up 691 fs/hpfs/dnode.c for_all_poss(i, hpfs_pos_subst, ((loff_t)up << 4) | p, ((loff_t)up << 4) | (p - 1)); up 693 fs/hpfs/dnode.c d1->up = cpu_to_le32(ndown); up 698 fs/hpfs/dnode.c dno = up; up 759 fs/hpfs/dnode.c if (hpfs_sb(s)->sb_chk) if (odno && odno != -1 && le32_to_cpu(dnode->up) != odno) up 760 fs/hpfs/dnode.c hpfs_error(s, "hpfs_count_dnodes: bad up pointer; dnode %08x, down %08x points to %08x", odno, dno, le32_to_cpu(dnode->up)); up 784 fs/hpfs/dnode.c dno = le32_to_cpu(dnode->up); up 822 fs/hpfs/dnode.c dnode_secno up = 0; up 832 fs/hpfs/dnode.c if (up && le32_to_cpu(((struct dnode *)qbh.data)->up) != up) up 833 fs/hpfs/dnode.c hpfs_error(s, "hpfs_de_as_down_as_possible: bad up pointer; dnode %08x, down %08x points to %08x", up, d, le32_to_cpu(((struct dnode *)qbh.data)->up)); up 838 fs/hpfs/dnode.c up = d; up 882 fs/hpfs/dnode.c if (!(up_dnode = hpfs_map_dnode(inode->i_sb, le32_to_cpu(dnode->up), &qbh0))) up 890 fs/hpfs/dnode.c "map_pos_dirent: pos crossed dnode boundary; dnode = %08x", le32_to_cpu(dnode->up)); up 892 fs/hpfs/dnode.c *posp = ((loff_t) le32_to_cpu(dnode->up) << 4) + c; up 899 fs/hpfs/dnode.c dno, le32_to_cpu(dnode->up)); up 1025 fs/hpfs/dnode.c if (!(upf = hpfs_map_fnode(s, le32_to_cpu(f->up), &bh))) { up 1031 fs/hpfs/dnode.c hpfs_error(s, "fnode %08x has non-directory parent %08x", fno, le32_to_cpu(f->up)); up 1082 fs/hpfs/dnode.c dno = le32_to_cpu(d->up); up 297 fs/hpfs/hpfs.h __le32 up; /* (root dnode) directory's fnode up 442 fs/hpfs/hpfs.h __le32 up; /* pointer to file's directory fnode */ up 495 fs/hpfs/hpfs.h __le32 up; /* parent anode or fnode */ up 121 fs/hpfs/inode.c hpfs_inode->i_parent_dir = le32_to_cpu(fnode->up); up 84 fs/hpfs/namei.c fnode->up = cpu_to_le32(dir->i_ino); up 92 fs/hpfs/namei.c dnode->up = cpu_to_le32(fno); up 189 fs/hpfs/namei.c fnode->up = cpu_to_le32(dir->i_ino); up 271 fs/hpfs/namei.c fnode->up = cpu_to_le32(dir->i_ino); up 349 fs/hpfs/namei.c fnode->up = cpu_to_le32(dir->i_ino); up 601 fs/hpfs/namei.c fnode->up = cpu_to_le32(new_dir->i_ino); up 133 fs/jfs/jfs_unicode.h wchar_t *up; up 135 fs/jfs/jfs_unicode.h up = upin; up 136 fs/jfs/jfs_unicode.h while (*up) { /* For all characters */ up 137 fs/jfs/jfs_unicode.h *up = UniToupper(*up); up 138 fs/jfs/jfs_unicode.h up++; up 92 fs/nfsd/nfsfh.h u32 *up; up 115 fs/nfsd/nfsfh.h up = (u32*)uuid; up 117 fs/nfsd/nfsfh.h fsidv[1] = up[0] ^ up[1] ^ up[2] ^ up[3]; up 122 fs/nfsd/nfsfh.h up = (u32*)uuid; up 123 fs/nfsd/nfsfh.h fsidv[0] = up[0] ^ up[2]; up 124 fs/nfsd/nfsfh.h fsidv[1] = up[1] ^ up[3]; up 469 fs/pstore/platform.c up(&psinfo->buf_lock); up 774 fs/select.c sigset_t __user *up = NULL; up 778 fs/select.c || __get_user(up, (sigset_t __user * __user *)sig) up 784 fs/select.c return do_pselect(n, inp, outp, exp, tsp, up, sigsetsize, PT_TIMESPEC); up 794 fs/select.c sigset_t __user *up = NULL; up 798 fs/select.c || __get_user(up, (sigset_t __user * __user *)sig) up 804 fs/select.c return do_pselect(n, inp, outp, exp, tsp, up, sigsetsize, PT_OLD_TIMESPEC); up 1333 fs/select.c compat_uptr_t up = 0; up 1338 fs/select.c __get_user(up, (compat_uptr_t __user *)sig) || up 1340 fs/select.c (compat_size_t __user *)(sig+sizeof(up)))) up 1344 fs/select.c return do_compat_pselect(n, inp, outp, exp, tsp, compat_ptr(up), up 1355 fs/select.c compat_uptr_t up = 0; up 1360 fs/select.c __get_user(up, (compat_uptr_t __user *)sig) || up 1362 fs/select.c (compat_size_t __user *)(sig+sizeof(up)))) up 1366 fs/select.c return do_compat_pselect(n, inp, outp, exp, tsp, compat_ptr(up), up 1114 fs/xfs/xfs_buf.c up(&bp->b_sema); up 1270 fs/xfs/xfs_log.c up(&iclog->ic_sema); up 1741 fs/xfs/xfs_log.c up(&iclog->ic_sema); up 1954 fs/xfs/xfs_log.c up(&iclog->ic_sema); up 243 include/linux/bcma/bcma_driver_pci.h extern void bcma_core_pci_power_save(struct bcma_bus *bus, bool up); up 245 include/linux/bcma/bcma_driver_pci.h static inline void bcma_core_pci_power_save(struct bcma_bus *bus, bool up) up 160 include/linux/ceph/osd_client.h struct ceph_osds up; up 296 include/linux/ceph/osdmap.h struct ceph_osds *up, up 930 include/linux/hid.h up(&hid->driver_input_lock); up 425 include/linux/mlx5/driver.h struct mlx5_uars_page *up; up 1091 include/linux/mlx5/driver.h void mlx5_put_uars_page(struct mlx5_core_dev *mdev, struct mlx5_uars_page *up); up 443 include/linux/phy.h void (*phy_link_change)(struct phy_device *, bool up, bool do_carrier); up 247 include/linux/phylink.h void phylink_mac_change(struct phylink *, bool up); up 268 include/linux/qed/qed_eth_if.h int (*setapp)(struct qed_dev *cdev, u8 idtype, u16 idval, u8 up); up 43 include/linux/semaphore.h extern void up(struct semaphore *sem); up 140 include/linux/serial_8250.h static inline struct uart_8250_port *up_to_u8250p(struct uart_port *up) up 142 include/linux/serial_8250.h return container_of(up, struct uart_8250_port, port); up 169 include/linux/serial_8250.h unsigned char serial8250_rx_chars(struct uart_8250_port *up, unsigned char lsr); up 170 include/linux/serial_8250.h void serial8250_read_char(struct uart_8250_port *up, unsigned char lsr); up 171 include/linux/serial_8250.h void serial8250_tx_chars(struct uart_8250_port *up); up 172 include/linux/serial_8250.h unsigned int serial8250_modem_status(struct uart_8250_port *up); up 173 include/linux/serial_8250.h void serial8250_init_port(struct uart_8250_port *up); up 174 include/linux/serial_8250.h void serial8250_set_defaults(struct uart_8250_port *up); up 175 include/linux/serial_8250.h void serial8250_console_write(struct uart_8250_port *up, const char *s, up 180 include/linux/serial_8250.h (int port, struct uart_port *up, up 258 include/linux/serial_core.h static inline int serial_port_in(struct uart_port *up, int offset) up 260 include/linux/serial_core.h return up->serial_in(up, offset); up 263 include/linux/serial_core.h static inline void serial_port_out(struct uart_port *up, int offset, int value) up 265 include/linux/serial_core.h up->serial_out(up, offset, value); up 164 include/linux/vt_kern.h extern int vt_do_diacrit(unsigned int cmd, void __user *up, int eperm); up 149 include/net/caif/caif_layer.h struct cflayer *up; up 240 include/net/caif/caif_layer.h #define layer_set_up(layr, above) ((layr)->up = (struct cflayer *)(above)) up 88 include/net/caif/cfcnfg.h bool up); up 15 include/net/caif/cffrml.h void cffrml_set_uplayer(struct cflayer *this, struct cflayer *up); up 15 include/net/caif/cfmuxl.h int cfmuxl_set_uplayer(struct cflayer *layr, struct cflayer *up, u8 linkid); up 17 include/net/caif/cfmuxl.h int cfmuxl_set_dnlayer(struct cflayer *layr, struct cflayer *up, u8 phyid); up 51 include/net/caif/cfsrvl.h if (layr == NULL || layr->up == NULL || s->hold == NULL) up 54 include/net/caif/cfsrvl.h s->hold(layr->up); up 60 include/net/caif/cfsrvl.h if (layr == NULL || layr->up == NULL || s->hold == NULL) up 63 include/net/caif/cfsrvl.h s->put(layr->up); up 2864 include/net/cfg80211.h u8 up; up 2897 include/net/cfg80211.h struct cfg80211_dscp_range up[8]; up 80 include/net/dn_dev.h int (*up)(struct net_device *); up 645 include/net/dsa.h void dsa_port_phylink_mac_change(struct dsa_switch *ds, int port, bool up); up 172 include/net/udp_tunnel.h struct udp_sock *up = udp_sk(sock->sk); up 174 include/net/udp_tunnel.h if (up->encap_enabled) up 177 include/net/udp_tunnel.h up->encap_enabled = 1; up 76 include/net/udplite.h const struct udp_sock *up = udp_sk(skb->sk); up 77 include/net/udplite.h int cscov = up->len; up 80 include/net/udplite.h if (up->pcflag & UDPLITE_SEND_CC) { up 85 include/net/udplite.h if (up->pcslen < up->len) { up 86 include/net/udplite.h if (0 < up->pcslen) up 87 include/net/udplite.h cscov = up->pcslen; up 88 include/net/udplite.h udp_hdr(skb)->len = htons(up->pcslen); up 119 include/net/udplite.h const struct udp_sock *up = udp_sk(skb->sk); up 123 include/net/udplite.h if ((up->pcflag & UDPLITE_SEND_CC) && up->pcslen < len) { up 124 include/net/udplite.h if (0 < up->pcslen) up 125 include/net/udplite.h len = up->pcslen; up 126 include/net/udplite.h udp_hdr(skb)->len = htons(up->pcslen); up 41 include/sound/rawmidi.h void (*trigger) (struct snd_rawmidi_substream * substream, int up); up 21 include/sound/wavefront.h All other wavefront_* types end up aligned to 32 bit values and up 196 include/uapi/linux/tipc_config.h __be32 up; /* 0=down, 1= up */ up 201 include/uapi/linux/tipc_config.h __be32 up; /* 0=down, 1=up */ up 956 ipc/msg.c struct compat_msgbuf __user *up = compat_ptr(msgp); up 959 ipc/msg.c if (get_user(mtype, &up->mtype)) up 961 ipc/msg.c return do_msgsnd(msqid, mtype, up->mtext, (ssize_t)msgsz, msgflg); up 2664 kernel/fork.c up: up 2673 kernel/fork.c goto up; up 189 kernel/locking/semaphore.c EXPORT_SYMBOL(up); up 196 kernel/locking/semaphore.c bool up; up 211 kernel/locking/semaphore.c waiter.up = false; up 222 kernel/locking/semaphore.c if (waiter.up) up 260 kernel/locking/semaphore.c waiter->up = true; up 254 kernel/printk/printk.c up(&console_sem); up 711 kernel/sched/core.c tg_visitor down, tg_visitor up, void *data) up 726 kernel/sched/core.c up: up 729 kernel/sched/core.c ret = (*up)(parent, data); up 736 kernel/sched/core.c goto up; up 430 kernel/sched/sched.h tg_visitor down, tg_visitor up, void *data); up 438 kernel/sched/sched.h static inline int walk_tg_tree(tg_visitor down, tg_visitor up, void *data) up 440 kernel/sched/sched.h return walk_tg_tree_from(&root_task_group, down, up, data); up 755 kernel/seccomp.c up(&match->notif->request); up 1079 kernel/seccomp.c up(&filter->notif->request); up 2739 kernel/sysctl.c unsigned int *up = write ? &tmp : valp; up 2741 kernel/sysctl.c ret = do_proc_douintvec_conv(lvalp, up, write, data); up 111 kernel/user.c static void uid_hash_insert(struct user_struct *up, struct hlist_head *hashent) up 113 kernel/user.c hlist_add_head(&up->uidhash_node, hashent); up 116 kernel/user.c static void uid_hash_remove(struct user_struct *up) up 118 kernel/user.c hlist_del_init(&up->uidhash_node); up 139 kernel/user.c static void free_user(struct user_struct *up, unsigned long flags) up 142 kernel/user.c uid_hash_remove(up); up 144 kernel/user.c kmem_cache_free(uid_cachep, up); up 164 kernel/user.c void free_uid(struct user_struct *up) up 168 kernel/user.c if (!up) up 171 kernel/user.c if (refcount_dec_and_lock_irqsave(&up->__count, &uidhash_lock, &flags)) up 172 kernel/user.c free_user(up, flags); up 178 kernel/user.c struct user_struct *up, *new; up 181 kernel/user.c up = uid_hash_find(uid, hashent); up 184 kernel/user.c if (!up) { up 199 kernel/user.c up = uid_hash_find(uid, hashent); up 200 kernel/user.c if (up) { up 204 kernel/user.c up = new; up 209 kernel/user.c return up; up 28 lib/mpi/generic_mpih-lshift.c mpihelp_lshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, unsigned int cnt) up 39 lib/mpi/generic_mpih-lshift.c low_limb = up[i]; up 43 lib/mpi/generic_mpih-lshift.c low_limb = up[i]; up 29 lib/mpi/generic_mpih-rshift.c mpihelp_rshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, unsigned cnt) up 39 lib/mpi/generic_mpih-rshift.c high_limb = up[0]; up 43 lib/mpi/generic_mpih-rshift.c high_limb = up[i]; up 87 lib/mpi/mpi-internal.h #define MPN_MUL_N_RECURSE(prodp, up, vp, size, tspace) \ up 90 lib/mpi/mpi-internal.h mul_n_basecase(prodp, up, vp, size); \ up 92 lib/mpi/mpi-internal.h mul_n(prodp, up, vp, size, tspace); \ up 133 lib/mpi/mpi-internal.h int mpihelp_mul(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t usize, up 135 lib/mpi/mpi-internal.h void mpih_sqr_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size); up 136 lib/mpi/mpi-internal.h void mpih_sqr_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size, up 140 lib/mpi/mpi-internal.h mpi_ptr_t up, mpi_size_t usize, up 154 lib/mpi/mpi-internal.h mpi_limb_t mpihelp_lshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, up 156 lib/mpi/mpi-internal.h mpi_limb_t mpihelp_rshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, up 21 lib/mpi/mpih-mul.c #define MPN_MUL_N_RECURSE(prodp, up, vp, size, tspace) \ up 24 lib/mpi/mpih-mul.c mul_n_basecase(prodp, up, vp, size); \ up 26 lib/mpi/mpih-mul.c mul_n(prodp, up, vp, size, tspace); \ up 29 lib/mpi/mpih-mul.c #define MPN_SQR_N_RECURSE(prodp, up, size, tspace) \ up 32 lib/mpi/mpih-mul.c mpih_sqr_n_basecase(prodp, up, size); \ up 34 lib/mpi/mpih-mul.c mpih_sqr_n(prodp, up, size, tspace); \ up 55 lib/mpi/mpih-mul.c mul_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, mpi_size_t size) up 66 lib/mpi/mpih-mul.c MPN_COPY(prodp, up, size); up 71 lib/mpi/mpih-mul.c cy = mpihelp_mul_1(prodp, up, size, v_limb); up 83 lib/mpi/mpih-mul.c cy = mpihelp_add_n(prodp, prodp, up, size); up 85 lib/mpi/mpih-mul.c cy = mpihelp_addmul_1(prodp, up, size, v_limb); up 95 lib/mpi/mpih-mul.c mul_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, up 112 lib/mpi/mpih-mul.c MPN_MUL_N_RECURSE(prodp, up, vp, esize, tspace); up 113 lib/mpi/mpih-mul.c cy_limb = mpihelp_addmul_1(prodp + esize, up, esize, vp[esize]); up 115 lib/mpi/mpih-mul.c cy_limb = mpihelp_addmul_1(prodp + esize, vp, size, up[esize]); up 142 lib/mpi/mpih-mul.c MPN_MUL_N_RECURSE(prodp + size, up + hsize, vp + hsize, hsize, up 148 lib/mpi/mpih-mul.c if (mpihelp_cmp(up + hsize, up, hsize) >= 0) { up 149 lib/mpi/mpih-mul.c mpihelp_sub_n(prodp, up + hsize, up, hsize); up 152 lib/mpi/mpih-mul.c mpihelp_sub_n(prodp, up, up + hsize, hsize); up 190 lib/mpi/mpih-mul.c MPN_MUL_N_RECURSE(tspace, up, vp, hsize, tspace + size); up 207 lib/mpi/mpih-mul.c void mpih_sqr_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size) up 215 lib/mpi/mpih-mul.c v_limb = up[0]; up 218 lib/mpi/mpih-mul.c MPN_COPY(prodp, up, size); up 223 lib/mpi/mpih-mul.c cy_limb = mpihelp_mul_1(prodp, up, size, v_limb); up 231 lib/mpi/mpih-mul.c v_limb = up[i]; up 235 lib/mpi/mpih-mul.c cy_limb = mpihelp_add_n(prodp, prodp, up, size); up 237 lib/mpi/mpih-mul.c cy_limb = mpihelp_addmul_1(prodp, up, size, v_limb); up 245 lib/mpi/mpih-mul.c mpih_sqr_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size, mpi_ptr_t tspace) up 261 lib/mpi/mpih-mul.c MPN_SQR_N_RECURSE(prodp, up, esize, tspace); up 262 lib/mpi/mpih-mul.c cy_limb = mpihelp_addmul_1(prodp + esize, up, esize, up[esize]); up 264 lib/mpi/mpih-mul.c cy_limb = mpihelp_addmul_1(prodp + esize, up, size, up[esize]); up 276 lib/mpi/mpih-mul.c MPN_SQR_N_RECURSE(prodp + size, up + hsize, hsize, tspace); up 281 lib/mpi/mpih-mul.c if (mpihelp_cmp(up + hsize, up, hsize) >= 0) up 282 lib/mpi/mpih-mul.c mpihelp_sub_n(prodp, up + hsize, up, hsize); up 284 lib/mpi/mpih-mul.c mpihelp_sub_n(prodp, up, up + hsize, hsize); up 304 lib/mpi/mpih-mul.c MPN_SQR_N_RECURSE(tspace, up, hsize, tspace + size); up 322 lib/mpi/mpih-mul.c mpi_ptr_t up, mpi_size_t usize, up 337 lib/mpi/mpih-mul.c MPN_MUL_N_RECURSE(prodp, up, vp, vsize, ctx->tspace); up 340 lib/mpi/mpih-mul.c up += vsize; up 357 lib/mpi/mpih-mul.c MPN_MUL_N_RECURSE(ctx->tp, up, vp, vsize, ctx->tspace); up 362 lib/mpi/mpih-mul.c up += vsize; up 370 lib/mpi/mpih-mul.c if (mpihelp_mul(ctx->tspace, vp, vsize, up, usize, &tmp) up 381 lib/mpi/mpih-mul.c up, usize, up 427 lib/mpi/mpih-mul.c mpihelp_mul(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t usize, up 448 lib/mpi/mpih-mul.c MPN_COPY(prodp, up, usize); up 453 lib/mpi/mpih-mul.c cy = mpihelp_mul_1(prodp, up, usize, v_limb); up 465 lib/mpi/mpih-mul.c cy = mpihelp_add_n(prodp, prodp, up, up 468 lib/mpi/mpih-mul.c cy = mpihelp_addmul_1(prodp, up, usize, v_limb); up 479 lib/mpi/mpih-mul.c if (mpihelp_mul_karatsuba_case(prodp, up, usize, vp, vsize, &ctx) < 0) up 328 net/9p/trans_rdma.c up(&rdma->rq_sem); up 351 net/9p/trans_rdma.c up(&rdma->sq_sem); up 104 net/batman-adv/gateway_common.c u32 *down, u32 *up) up 121 net/batman-adv/gateway_common.c "upload gateway speed", up); up 137 net/batman-adv/gateway_common.c u32 down, up; up 149 net/batman-adv/gateway_common.c up = atomic_read(&bat_priv->gw.bandwidth_up); up 151 net/batman-adv/gateway_common.c gw.bandwidth_up = htonl(up); up 623 net/batman-adv/sysfs.c u32 down, up; up 628 net/batman-adv/sysfs.c up = atomic_read(&bat_priv->gw.bandwidth_up); up 631 net/batman-adv/sysfs.c down % 10, up / 10, up % 10); up 159 net/caif/caif_dev.c caifd->layer.up-> up 160 net/caif/caif_dev.c ctrlcmd(caifd->layer.up, up 228 net/caif/caif_dev.c caifd->layer.up->ctrlcmd(caifd->layer.up, up 257 net/caif/caif_dev.c if (!caifd || !caifd->layer.up || !caifd->layer.up->receive || up 268 net/caif/caif_dev.c err = caifd->layer.up->receive(caifd->layer.up, pkt); up 294 net/caif/caif_dev.c if (!caifd || !caifd->layer.up || !caifd->layer.up->ctrlcmd) { up 302 net/caif/caif_dev.c caifd->layer.up->ctrlcmd(caifd->layer.up, up 419 net/caif/caif_dev.c if (!caifd || !caifd->layer.up || !caifd->layer.up->ctrlcmd) { up 428 net/caif/caif_dev.c caifd->layer.up->ctrlcmd(caifd->layer.up, up 45 net/caif/caif_usb.c return layr->up->receive(layr->up, pkt); up 80 net/caif/caif_usb.c if (layr->up && layr->up->ctrlcmd) up 81 net/caif/caif_usb.c layr->up->ctrlcmd(layr->up, ctrl, layr->id); up 31 net/caif/cfcnfg.c bool up; up 155 net/caif/cfcnfg.c if (phy->up && phy->pref == phy_pref && up 163 net/caif/cfcnfg.c if (phy->up) up 174 net/caif/cfcnfg.c if (phy->ifindex == ifi && phy->up) up 523 net/caif/cfcnfg.c bool up) up 534 net/caif/cfcnfg.c if (phyinfo->up == up) { up 538 net/caif/cfcnfg.c phyinfo->up = up; up 540 net/caif/cfcnfg.c if (up) { up 501 net/caif/cfctrl.c cfctrl->res.reject_rsp(cfctrl->serv.layer.up, up 507 net/caif/cfctrl.c layer.up, linkid, up 520 net/caif/cfctrl.c cfctrl->res.linkdestroy_rsp(cfctrl->serv.layer.up, linkid); up 35 net/caif/cfdbgl.c return layr->up->receive(layr->up, pkt); up 45 net/caif/cfdgml.c caif_assert(layr->up != NULL); up 61 net/caif/cfdgml.c ret = layr->up->receive(layr->up, pkt); up 64 net/caif/cffrml.c void cffrml_set_uplayer(struct cflayer *this, struct cflayer *up) up 66 net/caif/cffrml.c this->up = up; up 128 net/caif/cffrml.c if (layr->up == NULL) { up 134 net/caif/cffrml.c return layr->up->receive(layr->up, pkt); up 172 net/caif/cffrml.c if (layr->up && layr->up->ctrlcmd) up 173 net/caif/cffrml.c layr->up->ctrlcmd(layr->up, ctrl, layr->id); up 86 net/caif/cfmuxl.c int cfmuxl_set_uplayer(struct cflayer *layr, struct cflayer *up, u8 linkid) up 98 net/caif/cfmuxl.c list_add_rcu(&up->node, &muxl->srvl_list); up 125 net/caif/cfmuxl.c struct cflayer *up; up 127 net/caif/cfmuxl.c up = rcu_dereference(muxl->up_cache[idx]); up 128 net/caif/cfmuxl.c if (up == NULL || up->id != id) { up 130 net/caif/cfmuxl.c up = get_from_id(&muxl->srvl_list, id); up 131 net/caif/cfmuxl.c rcu_assign_pointer(muxl->up_cache[idx], up); up 134 net/caif/cfmuxl.c return up; up 153 net/caif/cfmuxl.c struct cflayer *up; up 163 net/caif/cfmuxl.c up = get_from_id(&muxl->srvl_list, id); up 164 net/caif/cfmuxl.c if (up == NULL) up 168 net/caif/cfmuxl.c list_del_rcu(&up->node); up 171 net/caif/cfmuxl.c return up; up 179 net/caif/cfmuxl.c struct cflayer *up; up 186 net/caif/cfmuxl.c up = get_up(muxl, id); up 188 net/caif/cfmuxl.c if (up == NULL) { up 202 net/caif/cfmuxl.c cfsrvl_get(up); up 205 net/caif/cfmuxl.c ret = up->receive(up, pkt); up 207 net/caif/cfmuxl.c cfsrvl_put(up); up 106 net/caif/cfrfml.c caif_assert(layr->up != NULL); up 167 net/caif/cfrfml.c err = rfml->serv.layer.up->receive(rfml->serv.layer.up, pkt); up 183 net/caif/cfrfml.c layr->up->ctrlcmd(layr->up, CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND, up 288 net/caif/cfrfml.c layr->up->ctrlcmd(layr->up, CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND, up 153 net/caif/cfserl.c ret = layr->layer.up->receive(layr->layer.up, pkt); up 187 net/caif/cfserl.c layr->up->ctrlcmd(layr->up, ctrl, phyid); up 33 net/caif/cfsrvl.c if (layr->up == NULL || layr->up->ctrlcmd == NULL) up 39 net/caif/cfsrvl.c layr->up->ctrlcmd(layr->up, ctrl, phyid); up 44 net/caif/cfsrvl.c layr->up->ctrlcmd(layr->up, ctrl, phyid); up 50 net/caif/cfsrvl.c layr->up->ctrlcmd(layr->up, up 58 net/caif/cfsrvl.c layr->up->ctrlcmd(layr->up, up 66 net/caif/cfsrvl.c layr->up->ctrlcmd(layr->up, up 73 net/caif/cfsrvl.c layr->up->ctrlcmd(layr->up, up 80 net/caif/cfsrvl.c layr->up->ctrlcmd(layr->up, up 84 net/caif/cfsrvl.c layr->up->ctrlcmd(layr->up, ctrl, phyid); up 89 net/caif/cfsrvl.c layr->up->ctrlcmd(layr->up, ctrl, phyid); up 45 net/caif/cfutill.c caif_assert(layr->up != NULL); up 46 net/caif/cfutill.c caif_assert(layr->up->receive != NULL); up 47 net/caif/cfutill.c caif_assert(layr->up->ctrlcmd != NULL); up 56 net/caif/cfutill.c return layr->up->receive(layr->up, pkt); up 43 net/caif/cfveil.c caif_assert(layr->up != NULL); up 55 net/caif/cfveil.c ret = layr->up->receive(layr->up, pkt); up 44 net/caif/cfvidl.c return layr->up->receive(layr->up, pkt); up 188 net/ceph/debugfs.c for (i = 0; i < t->up.size; i++) up 189 net/ceph/debugfs.c seq_printf(s, "%s%d", (!i ? "" : ","), t->up.osds[i]); up 190 net/ceph/debugfs.c seq_printf(s, "]/%d\t[", t->up.primary); up 424 net/ceph/osd_client.c ceph_osds_init(&t->up); up 444 net/ceph/osd_client.c ceph_osds_copy(&dest->up, &src->up); up 1512 net/ceph/osd_client.c struct ceph_osds up, acting; up 1560 net/ceph/osd_client.c ceph_pg_to_up_acting_osds(osdc->osdmap, pi, &pgid, &up, &acting); up 1564 net/ceph/osd_client.c &t->up, up 1565 net/ceph/osd_client.c &up, up 1592 net/ceph/osd_client.c ceph_osds_copy(&t->up, &up); up 2483 net/ceph/osdmap.c struct ceph_osds *up) up 2495 net/ceph/osdmap.c for (i = 0; i < up->size; i++) { up 2496 net/ceph/osdmap.c int osd = up->osds[i]; up 2504 net/ceph/osdmap.c if (i == up->size) up 2512 net/ceph/osdmap.c for (i = 0; i < up->size; i++) { up 2513 net/ceph/osdmap.c int osd = up->osds[i]; up 2538 net/ceph/osdmap.c up->primary = up->osds[pos]; up 2543 net/ceph/osdmap.c up->osds[i] = up->osds[i - 1]; up 2544 net/ceph/osdmap.c up->osds[0] = up->primary; up 2605 net/ceph/osdmap.c struct ceph_osds *up, up 2614 net/ceph/osdmap.c pg_to_raw_osds(osdmap, pi, raw_pgid, up, &pps); up 2615 net/ceph/osdmap.c apply_upmap(osdmap, &pgid, up); up 2616 net/ceph/osdmap.c raw_to_up_osds(osdmap, pi, up); up 2617 net/ceph/osdmap.c apply_primary_affinity(osdmap, pi, pps, up); up 2620 net/ceph/osdmap.c memcpy(acting->osds, up->osds, up->size * sizeof(up->osds[0])); up 2621 net/ceph/osdmap.c acting->size = up->size; up 2623 net/ceph/osdmap.c acting->primary = up->primary; up 2625 net/ceph/osdmap.c WARN_ON(!osds_valid(up) || !osds_valid(acting)); up 2634 net/ceph/osdmap.c struct ceph_osds up, acting; up 2646 net/ceph/osdmap.c ceph_pg_to_up_acting_osds(osdmap, pi, &pgid, &up, &acting); up 2665 net/ceph/osdmap.c struct ceph_osds up, acting; up 2671 net/ceph/osdmap.c ceph_pg_to_up_acting_osds(osdmap, pi, raw_pgid, &up, &acting); up 185 net/core/netpoll.c up(&ni->dev_lock); up 195 net/core/netpoll.c up(&ni->dev_lock); up 220 net/core/netpoll.c up(&ni->dev_lock); up 437 net/dcb/dcbnl.c u8 up, idtype; up 467 net/dcb/dcbnl.c up = ret; up 473 net/dcb/dcbnl.c up = dcb_getapp(netdev, &app); up 488 net/dcb/dcbnl.c ret = nla_put_u8(skb, DCB_APP_ATTR_PRIORITY, up); up 506 net/dcb/dcbnl.c u8 up, idtype; up 531 net/dcb/dcbnl.c up = nla_get_u8(app_tb[DCB_APP_ATTR_PRIORITY]); up 534 net/dcb/dcbnl.c ret = netdev->dcbnl_ops->setapp(netdev, idtype, id, up); up 541 net/dcb/dcbnl.c app.priority = up; up 94 net/decnet/dn_dev.c .up = dn_eth_up, up 281 net/decnet/dn_dev.c if (dn_db->parms.up) up 282 net/decnet/dn_dev.c dn_db->parms.up(dev); up 1113 net/decnet/dn_dev.c if (dn_db->parms.up) { up 1114 net/decnet/dn_dev.c if (dn_db->parms.up(dev) < 0) { up 1254 net/dsa/slave.c void dsa_port_phylink_mac_change(struct dsa_switch *ds, int port, bool up) up 1258 net/dsa/slave.c phylink_mac_change(dp->pl, up); up 605 net/ipv4/udp.c struct udp_sock *up = udp_sk(sk); up 607 net/ipv4/udp.c lookup = READ_ONCE(up->encap_err_lookup); up 732 net/ipv4/udp.c struct udp_sock *up = udp_sk(sk); up 734 net/ipv4/udp.c if (up->pending) { up 735 net/ipv4/udp.c up->len = 0; up 736 net/ipv4/udp.c up->pending = 0; up 909 net/ipv4/udp.c struct udp_sock *up = udp_sk(sk); up 922 net/ipv4/udp.c up->len = 0; up 923 net/ipv4/udp.c up->pending = 0; up 968 net/ipv4/udp.c struct udp_sock *up = udp_sk(sk); up 981 net/ipv4/udp.c int corkreq = up->corkflag || msg->msg_flags&MSG_MORE; up 999 net/ipv4/udp.c if (up->pending) { up 1005 net/ipv4/udp.c if (likely(up->pending)) { up 1006 net/ipv4/udp.c if (unlikely(up->pending != AF_INET)) { up 1043 net/ipv4/udp.c ipc.gso_size = up->gso_size; up 1183 net/ipv4/udp.c if (unlikely(up->pending)) { up 1200 net/ipv4/udp.c up->pending = AF_INET; up 1203 net/ipv4/udp.c up->len += ulen; up 1212 net/ipv4/udp.c up->pending = 0; up 1249 net/ipv4/udp.c struct udp_sock *up = udp_sk(sk); up 1255 net/ipv4/udp.c if (!up->pending) { up 1269 net/ipv4/udp.c if (unlikely(!up->pending)) { up 1288 net/ipv4/udp.c up->len += size; up 1289 net/ipv4/udp.c if (!(up->corkflag || (flags&MSG_MORE))) up 1364 net/ipv4/udp.c struct udp_sock *up = udp_sk(sk); up 1369 net/ipv4/udp.c up->forward_deficit += size; up 1370 net/ipv4/udp.c size = up->forward_deficit; up 1372 net/ipv4/udp.c !skb_queue_empty(&up->reader_queue)) up 1375 net/ipv4/udp.c size += up->forward_deficit; up 1377 net/ipv4/udp.c up->forward_deficit = 0; up 1397 net/ipv4/udp.c skb_queue_splice_tail_init(sk_queue, &up->reader_queue); up 1524 net/ipv4/udp.c struct udp_sock *up = udp_sk(sk); up 1528 net/ipv4/udp.c skb_queue_splice_tail_init(&sk->sk_receive_queue, &up->reader_queue); up 1529 net/ipv4/udp.c while ((skb = __skb_dequeue(&up->reader_queue)) != NULL) { up 2000 net/ipv4/udp.c struct udp_sock *up = udp_sk(sk); up 2010 net/ipv4/udp.c if (static_branch_unlikely(&udp_encap_needed_key) && up->encap_type) { up 2025 net/ipv4/udp.c encap_rcv = READ_ONCE(up->encap_rcv); up 2061 net/ipv4/udp.c if (up->pcrlen == 0) { /* full coverage was set */ up 2072 net/ipv4/udp.c if (UDP_SKB_CB(skb)->cscov < up->pcrlen) { up 2074 net/ipv4/udp.c UDP_SKB_CB(skb)->cscov, up->pcrlen); up 2508 net/ipv4/udp.c struct udp_sock *up = udp_sk(sk); up 2513 net/ipv4/udp.c if (up->encap_type) { up 2515 net/ipv4/udp.c encap_destroy = READ_ONCE(up->encap_destroy); up 2519 net/ipv4/udp.c if (up->encap_enabled) up 2531 net/ipv4/udp.c struct udp_sock *up = udp_sk(sk); up 2547 net/ipv4/udp.c up->corkflag = 1; up 2549 net/ipv4/udp.c up->corkflag = 0; up 2561 net/ipv4/udp.c up->encap_rcv = xfrm4_udp_encap_rcv; up 2564 net/ipv4/udp.c up->encap_type = val; up 2576 net/ipv4/udp.c up->no_check6_tx = valbool; up 2580 net/ipv4/udp.c up->no_check6_rx = valbool; up 2586 net/ipv4/udp.c up->gso_size = val; up 2593 net/ipv4/udp.c up->gro_enabled = valbool; up 2609 net/ipv4/udp.c up->pcslen = val; up 2610 net/ipv4/udp.c up->pcflag |= UDPLITE_SEND_CC; up 2623 net/ipv4/udp.c up->pcrlen = val; up 2624 net/ipv4/udp.c up->pcflag |= UDPLITE_RECV_CC; up 2659 net/ipv4/udp.c struct udp_sock *up = udp_sk(sk); up 2672 net/ipv4/udp.c val = up->corkflag; up 2676 net/ipv4/udp.c val = up->encap_type; up 2680 net/ipv4/udp.c val = up->no_check6_tx; up 2684 net/ipv4/udp.c val = up->no_check6_rx; up 2688 net/ipv4/udp.c val = up->gso_size; up 2694 net/ipv4/udp.c val = up->pcslen; up 2698 net/ipv4/udp.c val = up->pcrlen; up 89 net/ipv4/xfrm4_input.c struct udp_sock *up = udp_sk(sk); up 96 net/ipv4/xfrm4_input.c __u16 encap_type = up->encap_type; up 181 net/ipv6/ipv6_sockglue.c struct udp_sock *up = udp_sk(sk); up 182 net/ipv6/ipv6_sockglue.c if (up->pending == AF_INET6) { up 473 net/ipv6/udp.c struct udp_sock *up = udp_sk(sk); up 475 net/ipv6/udp.c lookup = READ_ONCE(up->encap_err_lookup); up 602 net/ipv6/udp.c struct udp_sock *up = udp_sk(sk); up 608 net/ipv6/udp.c if (static_branch_unlikely(&udpv6_encap_needed_key) && up->encap_type) { up 623 net/ipv6/udp.c encap_rcv = READ_ONCE(up->encap_rcv); up 648 net/ipv6/udp.c if (up->pcrlen == 0) { /* full coverage was set */ up 653 net/ipv6/udp.c if (UDP_SKB_CB(skb)->cscov < up->pcrlen) { up 655 net/ipv6/udp.c UDP_SKB_CB(skb)->cscov, up->pcrlen); up 1023 net/ipv6/udp.c struct udp_sock *up = udp_sk(sk); up 1025 net/ipv6/udp.c if (up->pending == AF_INET) up 1027 net/ipv6/udp.c else if (up->pending) { up 1028 net/ipv6/udp.c up->len = 0; up 1029 net/ipv6/udp.c up->pending = 0; up 1190 net/ipv6/udp.c struct udp_sock *up = udp_sk(sk); up 1194 net/ipv6/udp.c if (up->pending == AF_INET) up 1209 net/ipv6/udp.c up->len = 0; up 1210 net/ipv6/udp.c up->pending = 0; up 1217 net/ipv6/udp.c struct udp_sock *up = udp_sk(sk); up 1231 net/ipv6/udp.c int corkreq = up->corkflag || msg->msg_flags&MSG_MORE; up 1237 net/ipv6/udp.c ipc6.gso_size = up->gso_size; up 1266 net/ipv6/udp.c } else if (!up->pending) { up 1288 net/ipv6/udp.c if (up->pending == AF_INET) up 1298 net/ipv6/udp.c if (up->pending) { up 1304 net/ipv6/udp.c if (likely(up->pending)) { up 1305 net/ipv6/udp.c if (unlikely(up->pending != AF_INET6)) { up 1476 net/ipv6/udp.c if (unlikely(up->pending)) { up 1486 net/ipv6/udp.c up->pending = AF_INET6; up 1491 net/ipv6/udp.c up->len += ulen; up 1500 net/ipv6/udp.c up->pending = 0; up 1537 net/ipv6/udp.c struct udp_sock *up = udp_sk(sk); up 1543 net/ipv6/udp.c if (up->encap_type) { up 1545 net/ipv6/udp.c encap_destroy = READ_ONCE(up->encap_destroy); up 1549 net/ipv6/udp.c if (up->encap_enabled) up 3706 net/mac80211/cfg.c u8 tsid, const u8 *peer, u8 up, up 3711 net/mac80211/cfg.c int ac = ieee802_1d_to_ac[up]; up 3716 net/mac80211/cfg.c if (!(sdata->wmm_acm & BIT(up))) up 3725 net/mac80211/cfg.c ifmgd->tx_tspec[ac].up = up; up 3750 net/mac80211/cfg.c tx_tspec->up = -1; up 420 net/mac80211/ieee80211_i.h s8 up; /* signed to be able to invalidate with -1 during teardown */ up 93 net/mac80211/wme.c skb->priority == ifmgd->tx_tspec[ac].up) up 453 net/sched/sch_cake.c bool up = false; up 456 net/sched/sch_cake.c up = !vars->p_drop; up 467 net/sched/sch_cake.c return up; up 1251 net/sched/sch_generic.c bool up = dev->flags & IFF_UP; up 1255 net/sched/sch_generic.c if (up) up 1266 net/sched/sch_generic.c if (up) up 317 net/tipc/bearer.c test_and_set_bit_lock(0, &b->up); up 365 net/tipc/bearer.c clear_bit_unlock(0, &b->up); up 507 net/tipc/bearer.c if (likely(b && (test_bit(0, &b->up) || msg_is_reset(hdr)))) up 532 net/tipc/bearer.c if (likely(test_bit(0, &b->up) || msg_is_reset(buf_msg(skb)))) up 553 net/tipc/bearer.c if (unlikely(!b || !test_bit(0, &b->up))) up 584 net/tipc/bearer.c if (likely(b && test_bit(0, &b->up) && up 620 net/tipc/bearer.c test_and_set_bit_lock(0, &b->up); up 625 net/tipc/bearer.c clear_bit_unlock(0, &b->up); up 629 net/tipc/bearer.c test_and_set_bit_lock(0, &b->up); up 167 net/tipc/bearer.h unsigned long up; up 667 net/tipc/netlink_compat.c link_info.up = htonl(nla_get_flag(link[TIPC_NLA_LINK_UP])); up 1098 net/tipc/netlink_compat.c node_info.up = htonl(nla_get_flag(node[TIPC_NLA_NODE_UP])); up 412 net/tipc/trace.h __entry->b_up = test_bit(0, &b->up); up 381 net/tipc/udp_media.c if (b && test_bit(0, &b->up)) { up 13257 net/wireless/nl80211.c if (qos_map->dscp_exception[des].up > 7) { up 13264 net/wireless/nl80211.c memcpy(qos_map->up, pos, IEEE80211_QOS_MAP_LEN_MIN); up 13283 net/wireless/nl80211.c u8 tsid, up; up 13295 net/wireless/nl80211.c up = nla_get_u8(info->attrs[NL80211_ATTR_USER_PRIO]); up 13328 net/wireless/nl80211.c err = rdev_add_tx_ts(rdev, dev, tsid, peer, up, admitted_time); up 194 net/wireless/trace.h __array(u8, up, IEEE80211_QOS_MAP_LEN_MIN) up 202 net/wireless/trace.h memcpy(__entry->up, &(qos_map)->up, \ up 208 net/wireless/trace.h memset(__entry->up, 0, \ up 795 net/wireless/util.c ret = qos_map->dscp_exception[i].up; up 801 net/wireless/util.c if (tmp_dscp >= qos_map->up[i].low && up 802 net/wireless/util.c tmp_dscp <= qos_map->up[i].high) { up 428 net/xfrm/xfrm_user.c struct xfrm_replay_state_esn *up; up 434 net/xfrm/xfrm_user.c up = nla_data(rp); up 435 net/xfrm/xfrm_user.c ulen = xfrm_replay_state_esn_len(up); up 441 net/xfrm/xfrm_user.c replay_esn->bmp_len != up->bmp_len) up 444 net/xfrm/xfrm_user.c if (up->replay_window > up->bmp_len * sizeof(__u32) * 8) up 454 net/xfrm/xfrm_user.c struct xfrm_replay_state_esn *p, *pp, *up; up 460 net/xfrm/xfrm_user.c up = nla_data(rta); up 461 net/xfrm/xfrm_user.c klen = xfrm_replay_state_esn_len(up); up 462 net/xfrm/xfrm_user.c ulen = nla_len(rta) >= (int)klen ? klen : sizeof(*up); up 474 net/xfrm/xfrm_user.c memcpy(p, up, ulen); up 475 net/xfrm/xfrm_user.c memcpy(pp, up, ulen); up 1699 net/xfrm/xfrm_user.c struct xfrm_user_tmpl *up = &vec[i]; up 1702 net/xfrm/xfrm_user.c memset(up, 0, sizeof(*up)); up 1703 net/xfrm/xfrm_user.c memcpy(&up->id, &kp->id, sizeof(up->id)); up 1704 net/xfrm/xfrm_user.c up->family = kp->encap_family; up 1705 net/xfrm/xfrm_user.c memcpy(&up->saddr, &kp->saddr, sizeof(up->saddr)); up 1706 net/xfrm/xfrm_user.c up->reqid = kp->reqid; up 1707 net/xfrm/xfrm_user.c up->mode = kp->mode; up 1708 net/xfrm/xfrm_user.c up->share = kp->share; up 1709 net/xfrm/xfrm_user.c up->optional = kp->optional; up 1710 net/xfrm/xfrm_user.c up->aalgos = kp->aalgos; up 1711 net/xfrm/xfrm_user.c up->ealgos = kp->ealgos; up 1712 net/xfrm/xfrm_user.c up->calgos = kp->calgos; up 2164 net/xfrm/xfrm_user.c struct xfrm_user_polexpire *up = nlmsg_data(nlh); up 2165 net/xfrm/xfrm_user.c struct xfrm_userpolicy_info *p = &up->pol; up 2212 net/xfrm/xfrm_user.c if (up->hard) { up 2216 net/xfrm/xfrm_user.c km_policy_expired(xp, p->dir, up->hard, nlh->nlmsg_pid); up 149 sound/core/rawmidi.c static inline void snd_rawmidi_output_trigger(struct snd_rawmidi_substream *substream, int up) up 153 sound/core/rawmidi.c substream->ops->trigger(substream, up); up 156 sound/core/rawmidi.c static void snd_rawmidi_input_trigger(struct snd_rawmidi_substream *substream, int up) up 160 sound/core/rawmidi.c substream->ops->trigger(substream, up); up 161 sound/core/rawmidi.c if (!up) up 116 sound/core/seq/seq_virmidi.c static void snd_virmidi_input_trigger(struct snd_rawmidi_substream *substream, int up) up 120 sound/core/seq/seq_virmidi.c WRITE_ONCE(vmidi->trigger, !!up); up 165 sound/core/seq/seq_virmidi.c static void snd_virmidi_output_trigger(struct snd_rawmidi_substream *substream, int up) up 169 sound/core/seq/seq_virmidi.c WRITE_ONCE(vmidi->trigger, !!up); up 170 sound/core/seq/seq_virmidi.c if (up) up 350 sound/drivers/mpu401/mpu401_uart.c snd_mpu401_uart_input_trigger(struct snd_rawmidi_substream *substream, int up) up 357 sound/drivers/mpu401/mpu401_uart.c if (up) { up 437 sound/drivers/mpu401/mpu401_uart.c snd_mpu401_uart_output_trigger(struct snd_rawmidi_substream *substream, int up) up 443 sound/drivers/mpu401/mpu401_uart.c if (up) { up 373 sound/drivers/mtpav.c static void snd_mtpav_input_trigger(struct snd_rawmidi_substream *substream, int up) up 380 sound/drivers/mtpav.c if (up) up 458 sound/drivers/mtpav.c static void snd_mtpav_output_trigger(struct snd_rawmidi_substream *substream, int up) up 465 sound/drivers/mtpav.c if (up) { up 478 sound/drivers/mtpav.c if (up) up 709 sound/drivers/mts64.c int up) up 724 sound/drivers/mts64.c int up) up 730 sound/drivers/mts64.c if (up) up 508 sound/drivers/portman2x4.c int up) up 514 sound/drivers/portman2x4.c if (up) up 522 sound/drivers/portman2x4.c int up) up 529 sound/drivers/portman2x4.c if (up) { up 531 sound/drivers/serial-u16550.c int up) up 537 sound/drivers/serial-u16550.c if (up) up 727 sound/drivers/serial-u16550.c int up) up 733 sound/drivers/serial-u16550.c if (up) up 738 sound/drivers/serial-u16550.c if (up) up 47 sound/firewire/bebob/bebob_midi.c static void midi_capture_trigger(struct snd_rawmidi_substream *substrm, int up) up 54 sound/firewire/bebob/bebob_midi.c if (up) up 64 sound/firewire/bebob/bebob_midi.c static void midi_playback_trigger(struct snd_rawmidi_substream *substrm, int up) up 71 sound/firewire/bebob/bebob_midi.c if (up) up 51 sound/firewire/dice/dice-midi.c static void midi_capture_trigger(struct snd_rawmidi_substream *substrm, int up) up 58 sound/firewire/dice/dice-midi.c if (up) up 68 sound/firewire/dice/dice-midi.c static void midi_playback_trigger(struct snd_rawmidi_substream *substrm, int up) up 75 sound/firewire/dice/dice-midi.c if (up) up 48 sound/firewire/digi00x/digi00x-midi.c int up) up 61 sound/firewire/digi00x/digi00x-midi.c if (up) up 70 sound/firewire/digi00x/digi00x-midi.c int up) up 83 sound/firewire/digi00x/digi00x-midi.c if (up) up 46 sound/firewire/fireface/ff-midi.c int up) up 53 sound/firewire/fireface/ff-midi.c if (up) up 63 sound/firewire/fireface/ff-midi.c int up) up 70 sound/firewire/fireface/ff-midi.c if (up || !ff->rx_midi_error[substream->number]) up 47 sound/firewire/fireworks/fireworks_midi.c static void midi_capture_trigger(struct snd_rawmidi_substream *substrm, int up) up 54 sound/firewire/fireworks/fireworks_midi.c if (up) up 64 sound/firewire/fireworks/fireworks_midi.c static void midi_playback_trigger(struct snd_rawmidi_substream *substrm, int up) up 71 sound/firewire/fireworks/fireworks_midi.c if (up) up 51 sound/firewire/motu/motu-midi.c static void midi_capture_trigger(struct snd_rawmidi_substream *substrm, int up) up 58 sound/firewire/motu/motu-midi.c if (up) up 68 sound/firewire/motu/motu-midi.c static void midi_playback_trigger(struct snd_rawmidi_substream *substrm, int up) up 75 sound/firewire/motu/motu-midi.c if (up) up 92 sound/firewire/oxfw/oxfw-midi.c static void midi_capture_trigger(struct snd_rawmidi_substream *substrm, int up) up 99 sound/firewire/oxfw/oxfw-midi.c if (up) up 109 sound/firewire/oxfw/oxfw-midi.c static void midi_playback_trigger(struct snd_rawmidi_substream *substrm, int up) up 116 sound/firewire/oxfw/oxfw-midi.c if (up) up 287 sound/firewire/oxfw/oxfw-scs1x.c static void midi_capture_trigger(struct snd_rawmidi_substream *stream, int up) up 291 sound/firewire/oxfw/oxfw-scs1x.c if (up) { up 309 sound/firewire/oxfw/oxfw-scs1x.c static void midi_playback_trigger(struct snd_rawmidi_substream *stream, int up) up 313 sound/firewire/oxfw/oxfw-scs1x.c if (up) { up 43 sound/firewire/tascam/tascam-midi.c static void midi_capture_trigger(struct snd_rawmidi_substream *substrm, int up) up 50 sound/firewire/tascam/tascam-midi.c if (up) up 58 sound/firewire/tascam/tascam-midi.c static void midi_playback_trigger(struct snd_rawmidi_substream *substrm, int up) up 65 sound/firewire/tascam/tascam-midi.c if (up) up 159 sound/isa/gus/gus_uart.c static void snd_gf1_uart_input_trigger(struct snd_rawmidi_substream *substream, int up) up 167 sound/isa/gus/gus_uart.c if (up) { up 177 sound/isa/gus/gus_uart.c static void snd_gf1_uart_output_trigger(struct snd_rawmidi_substream *substream, int up) up 187 sound/isa/gus/gus_uart.c if (up) { up 82 sound/isa/msnd/msnd_midi.c int up) up 87 sound/isa/msnd/msnd_midi.c snd_printdd("snd_msndmidi_input_trigger(, %i)\n", up); up 91 sound/isa/msnd/msnd_midi.c if (up) { up 99 sound/isa/msnd/msnd_midi.c if (up) up 141 sound/isa/sb/sb8_midi.c static void snd_sb8dsp_midi_input_trigger(struct snd_rawmidi_substream *substream, int up) up 148 sound/isa/sb/sb8_midi.c if (up) { up 212 sound/isa/sb/sb8_midi.c static void snd_sb8dsp_midi_output_trigger(struct snd_rawmidi_substream *substream, int up) up 219 sound/isa/sb/sb8_midi.c if (up) { up 231 sound/isa/sb/sb8_midi.c if (up) up 322 sound/isa/wavefront/wavefront_midi.c static void snd_wavefront_midi_input_trigger(struct snd_rawmidi_substream *substream, int up) up 341 sound/isa/wavefront/wavefront_midi.c if (up) { up 361 sound/isa/wavefront/wavefront_midi.c static void snd_wavefront_midi_output_trigger(struct snd_rawmidi_substream *substream, int up) up 380 sound/isa/wavefront/wavefront_midi.c if (up) { up 396 sound/isa/wavefront/wavefront_midi.c if (up) up 191 sound/pci/ca0106/ca_midi.c static void ca_midi_input_trigger(struct snd_rawmidi_substream *substream, int up) up 198 sound/pci/ca0106/ca_midi.c if (up) { up 205 sound/pci/ca0106/ca_midi.c static void ca_midi_output_trigger(struct snd_rawmidi_substream *substream, int up) up 213 sound/pci/ca0106/ca_midi.c if (up) { up 1237 sound/pci/cmipci.c static int setup_spdif_playback(struct cmipci *cm, struct snd_pcm_substream *subs, int up, int do_ac3) up 1243 sound/pci/cmipci.c if (up && do_ac3) up 1248 sound/pci/cmipci.c cm->spdif_playback_avail = up; up 1249 sound/pci/cmipci.c if (up) { up 1703 sound/pci/cs4281.c static void snd_cs4281_midi_input_trigger(struct snd_rawmidi_substream *substream, int up) up 1709 sound/pci/cs4281.c if (up) { up 1723 sound/pci/cs4281.c static void snd_cs4281_midi_output_trigger(struct snd_rawmidi_substream *substream, int up) up 1730 sound/pci/cs4281.c if (up) { up 2624 sound/pci/cs46xx/cs46xx_lib.c static void snd_cs46xx_midi_input_trigger(struct snd_rawmidi_substream *substream, int up) up 2630 sound/pci/cs46xx/cs46xx_lib.c if (up) { up 2644 sound/pci/cs46xx/cs46xx_lib.c static void snd_cs46xx_midi_output_trigger(struct snd_rawmidi_substream *substream, int up) up 2651 sound/pci/cs46xx/cs46xx_lib.c if (up) { up 446 sound/pci/echoaudio/echoaudio.h struct snd_rawmidi_substream *substream, int up); up 166 sound/pci/echoaudio/midi.c int up) up 170 sound/pci/echoaudio/midi.c if (up != chip->midi_input_enabled) { up 172 sound/pci/echoaudio/midi.c enable_midi_input(chip, up); up 174 sound/pci/echoaudio/midi.c chip->midi_input_enabled = up; up 252 sound/pci/echoaudio/midi.c int up) up 256 sound/pci/echoaudio/midi.c dev_dbg(chip->card->dev, "snd_echo_midi_output_trigger(%d)\n", up); up 258 sound/pci/echoaudio/midi.c if (up) { up 275 sound/pci/echoaudio/midi.c if (up && !chip->midi_full) up 1413 sound/pci/emu10k1/emu10k1x.c static void snd_emu10k1x_midi_input_trigger(struct snd_rawmidi_substream *substream, int up) up 1421 sound/pci/emu10k1/emu10k1x.c if (up) up 1427 sound/pci/emu10k1/emu10k1x.c static void snd_emu10k1x_midi_output_trigger(struct snd_rawmidi_substream *substream, int up) up 1437 sound/pci/emu10k1/emu10k1x.c if (up) { up 241 sound/pci/emu10k1/emumpu401.c static void snd_emu10k1_midi_input_trigger(struct snd_rawmidi_substream *substream, int up) up 249 sound/pci/emu10k1/emumpu401.c if (up) up 255 sound/pci/emu10k1/emumpu401.c static void snd_emu10k1_midi_output_trigger(struct snd_rawmidi_substream *substream, int up) up 265 sound/pci/emu10k1/emumpu401.c if (up) { up 2246 sound/pci/ens1370.c static void snd_ensoniq_midi_input_trigger(struct snd_rawmidi_substream *substream, int up) up 2253 sound/pci/ens1370.c if (up) { up 2270 sound/pci/ens1370.c static void snd_ensoniq_midi_output_trigger(struct snd_rawmidi_substream *substream, int up) up 2277 sound/pci/ens1370.c if (up) { up 325 sound/pci/ice1712/ice1724.c static void vt1724_midi_output_trigger(struct snd_rawmidi_substream *s, int up) up 331 sound/pci/ice1712/ice1724.c if (up) { up 376 sound/pci/ice1712/ice1724.c static void vt1724_midi_input_trigger(struct snd_rawmidi_substream *s, int up) up 382 sound/pci/ice1712/ice1724.c if (up) { up 1375 sound/pci/rme9652/hdsp.c static void snd_hdsp_midi_input_trigger(struct snd_rawmidi_substream *substream, int up) up 1386 sound/pci/rme9652/hdsp.c if (up) { up 1420 sound/pci/rme9652/hdsp.c static void snd_hdsp_midi_output_trigger(struct snd_rawmidi_substream *substream, int up) up 1427 sound/pci/rme9652/hdsp.c if (up) { up 1439 sound/pci/rme9652/hdsp.c if (up) up 1916 sound/pci/rme9652/hdspm.c snd_hdspm_midi_input_trigger(struct snd_rawmidi_substream *substream, int up) up 1926 sound/pci/rme9652/hdspm.c if (up) { up 1960 sound/pci/rme9652/hdspm.c snd_hdspm_midi_output_trigger(struct snd_rawmidi_substream *substream, int up) up 1967 sound/pci/rme9652/hdspm.c if (up) { up 1979 sound/pci/rme9652/hdspm.c if (up) up 328 sound/soc/codecs/mt6358.c static void hp_main_output_ramp(struct mt6358_priv *priv, bool up) up 335 sound/soc/codecs/mt6358.c stage = up ? i : target - i; up 344 sound/soc/codecs/mt6358.c static void hp_aux_feedback_loop_gain_ramp(struct mt6358_priv *priv, bool up) up 350 sound/soc/codecs/mt6358.c stage = up ? i : 0xf - i; up 217 sound/soc/codecs/nau8824.c up(&nau8824->jd_sem); up 282 sound/soc/codecs/nau8825.c up(&nau8825->xtalk_sem); up 71 sound/usb/6fire/midi.c struct snd_rawmidi_substream *alsa_sub, int up) up 79 sound/usb/6fire/midi.c if (up) { /* start transfer */ up 125 sound/usb/6fire/midi.c struct snd_rawmidi_substream *alsa_sub, int up) up 131 sound/usb/6fire/midi.c if (up) up 90 sound/usb/bcd2000/bcd2000.c int up) up 93 sound/usb/bcd2000/bcd2000.c bcd2k->midi_receive_substream = up ? substream : NULL; up 191 sound/usb/bcd2000/bcd2000.c int up) up 195 sound/usb/bcd2000/bcd2000.c if (up) { up 26 sound/usb/caiaq/midi.c static void snd_usb_caiaq_midi_input_trigger(struct snd_rawmidi_substream *substream, int up) up 33 sound/usb/caiaq/midi.c cdev->midi_receive_substream = up ? substream : NULL; up 78 sound/usb/caiaq/midi.c static void snd_usb_caiaq_midi_output_trigger(struct snd_rawmidi_substream *substream, int up) up 82 sound/usb/caiaq/midi.c if (up) { up 157 sound/usb/line6/midi.c int up) up 193 sound/usb/line6/midi.c int up) up 198 sound/usb/line6/midi.c if (up) up 1168 sound/usb/midi.c int up) up 1173 sound/usb/midi.c port->active = up; up 1174 sound/usb/midi.c if (up) { up 1227 sound/usb/midi.c int up) up 1231 sound/usb/midi.c if (up) up 2760 tools/perf/util/probe-event.c int i, fd[2] = {-1, -1}, up, ret; up 2766 tools/perf/util/probe-event.c up = pev->uprobes ? 1 : 0; up 2767 tools/perf/util/probe-event.c fd[up] = __open_probe_file_and_namelist(up, &namelist[up]); up 2768 tools/perf/util/probe-event.c if (fd[up] < 0) up 2769 tools/perf/util/probe-event.c return fd[up]; up 2774 tools/perf/util/probe-event.c up = tev->uprobes ? 1 : 0; up 2775 tools/perf/util/probe-event.c if (fd[up] == -1) { /* Open the kprobe/uprobe_events */ up 2776 tools/perf/util/probe-event.c fd[up] = __open_probe_file_and_namelist(up, up 2777 tools/perf/util/probe-event.c &namelist[up]); up 2778 tools/perf/util/probe-event.c if (fd[up] < 0) up 2786 tools/perf/util/probe-event.c ret = probe_trace_event__set_name(tev, pev, namelist[up], up 2792 tools/perf/util/probe-event.c ret = probe_file__add_event(fd[up], tev); up 2817 tools/perf/util/probe-event.c for (up = 0; up < 2; up++) { up 2818 tools/perf/util/probe-event.c strlist__delete(namelist[up]); up 2819 tools/perf/util/probe-event.c if (fd[up] >= 0) up 2820 tools/perf/util/probe-event.c close(fd[up]); up 15 tools/testing/radix-tree/main.c void __gang_check(unsigned long middle, long down, long up, int chunk, int hop) up 22 tools/testing/radix-tree/main.c for (idx = -down; idx < up; idx++) up 26 tools/testing/radix-tree/main.c for (idx = -down; idx < up; idx++) up 28 tools/testing/radix-tree/main.c item_check_absent(&tree, middle + up); up 31 tools/testing/radix-tree/main.c item_gang_check_present(&tree, middle - down, up + down, up 33 tools/testing/radix-tree/main.c item_full_scan(&tree, middle - down, down + up, chunk);