arch/arm/include/asm/processor.h
102
#define __ALT_SMP_ASM(smp, up) up
arch/arm/include/asm/processor.h
94
#define __ALT_SMP_ASM(smp, up) \
arch/arm/include/asm/processor.h
99
" " up "\n" \
arch/arm/mach-omap1/serial.c
33
static inline unsigned int omap_serial_in(struct plat_serial8250_port *up,
arch/arm/mach-omap1/serial.c
36
offset <<= up->regshift;
arch/arm/mach-omap1/serial.c
37
return (unsigned int)__raw_readb(up->membase + offset);
arch/arm/mach-versatile/spc.c
342
up(&info->sem);
arch/arm/mach-versatile/spc.c
365
up(&info->sem);
arch/arm64/kvm/at.c
1125
u8 up, pp, idx;
arch/arm64/kvm/at.c
1132
up = perm_idx(vcpu, PIRE0_EL1, idx);
arch/arm64/kvm/at.c
1136
up = perm_idx(vcpu, PIRE0_EL2, idx);
arch/arm64/kvm/at.c
1140
up = 0;
arch/arm64/kvm/at.c
1147
set_perms(unpriv, wr, up);
arch/arm64/kvm/at.c
1152
wr->uov = wi->e0poe && !(up & BIT(3));
arch/m68k/math-emu/fp_decode.h
331
| all other indirect addressing modes will finally end up here
arch/mips/cavium-octeon/flash_setup.c
37
up(&octeon_bootbus_sem);
arch/mips/cavium-octeon/flash_setup.c
47
up(&octeon_bootbus_sem);
arch/mips/cavium-octeon/flash_setup.c
55
up(&octeon_bootbus_sem);
arch/mips/cavium-octeon/flash_setup.c
63
up(&octeon_bootbus_sem);
arch/powerpc/lib/sstep.c
274
unsigned long *up = (unsigned long *)ptr;
arch/powerpc/lib/sstep.c
276
tmp = byterev_8(up[0]);
arch/powerpc/lib/sstep.c
277
up[0] = byterev_8(up[1]);
arch/powerpc/lib/sstep.c
278
up[1] = tmp;
arch/powerpc/lib/sstep.c
282
unsigned long *up = (unsigned long *)ptr;
arch/powerpc/lib/sstep.c
285
tmp = byterev_8(up[0]);
arch/powerpc/lib/sstep.c
286
up[0] = byterev_8(up[3]);
arch/powerpc/lib/sstep.c
287
up[3] = tmp;
arch/powerpc/lib/sstep.c
288
tmp = byterev_8(up[2]);
arch/powerpc/lib/sstep.c
289
up[2] = byterev_8(up[1]);
arch/powerpc/lib/sstep.c
290
up[1] = tmp;
arch/powerpc/platforms/powernv/opal-async.c
122
up(&opal_async_sem);
arch/powerpc/platforms/powernv/opal-async.c
76
up(&opal_async_sem);
arch/sh/drivers/heartbeat.c
62
static unsigned bit = 0, up = 1;
arch/sh/drivers/heartbeat.c
66
bit += up;
arch/sh/drivers/heartbeat.c
68
up = -up;
arch/x86/kernel/cpu/bus_lock.c
188
up(&buslock_sem);
arch/x86/kernel/jailhouse.c
157
static void jailhouse_serial_fixup(int port, struct uart_port *up,
arch/x86/kernel/jailhouse.c
164
if (pcuart_base[n] != up->iobase)
arch/x86/kernel/jailhouse.c
169
up->iobase);
arch/x86/kernel/jailhouse.c
170
jailhouse_setup_irq(up->irq);
arch/x86/kernel/jailhouse.c
173
up->iobase = 0;
arch/x86/platform/uv/bios_uv.c
49
up(&__efi_uv_runtime_lock);
arch/x86/platform/uv/bios_uv.c
67
up(&__efi_uv_runtime_lock);
block/bfq-wf2q.c
453
up:
block/bfq-wf2q.c
466
goto up;
block/blk-iolatency.c
315
static inline unsigned long scale_amount(unsigned long qd, bool up)
block/blk-iolatency.c
317
return max(up ? qd >> SCALE_UP_FACTOR : qd >> SCALE_DOWN_FACTOR, 1UL);
block/blk-iolatency.c
331
bool up)
block/blk-iolatency.c
334
unsigned long scale = scale_amount(qd, up);
block/blk-iolatency.c
342
if (up) {
block/blk-iolatency.c
373
static void scale_change(struct iolatency_grp *iolat, bool up)
block/blk-iolatency.c
376
unsigned long scale = scale_amount(qd, up);
block/blk-iolatency.c
382
if (up) {
drivers/accel/amdxdna/aie2_ctx.c
1046
up(&hwctx->priv->job_sem);
drivers/accel/amdxdna/aie2_ctx.c
171
up(&job->hwctx->priv->job_sem);
drivers/accel/amdxdna/aie2_ctx.c
344
up(&hwctx->priv->job_sem);
drivers/accel/habanalabs/gaudi/gaudi_coresight.c
367
int position, bool up)
drivers/accel/habanalabs/gaudi/gaudi_coresight.c
376
up ? val & BIT(position) : !(val & BIT(position)),
drivers/accel/habanalabs/gaudi/gaudi_coresight.c
383
addr, position, up);
drivers/accel/habanalabs/gaudi2/gaudi2_coresight.c
1928
int position, bool up)
drivers/accel/habanalabs/gaudi2/gaudi2_coresight.c
1942
up ? val & BIT(position) : !(val & BIT(position)),
drivers/accel/habanalabs/gaudi2/gaudi2_coresight.c
1949
addr, position, up);
drivers/accel/habanalabs/goya/goya_coresight.c
200
int position, bool up)
drivers/accel/habanalabs/goya/goya_coresight.c
214
up ? val & BIT(position) : !(val & BIT(position)),
drivers/accel/habanalabs/goya/goya_coresight.c
221
addr, position, up);
drivers/accessibility/speakup/main.c
2231
int up = !param->down;
drivers/accessibility/speakup/main.c
2264
if (speakup_key(vc, param->shift, keycode, param->value, up))
drivers/accessibility/speakup/main.c
2267
ret = pre_handle_cursor(vc, KVAL(param->value), up);
drivers/accessibility/speakup/main.c
2275
do_handle_shift(vc, val, up);
drivers/accessibility/speakup/main.c
2279
do_handle_latin(vc, val, up);
drivers/accessibility/speakup/main.c
2282
do_handle_cursor(vc, val, up);
drivers/accessibility/speakup/main.c
2285
do_handle_spec(vc, val, up);
drivers/acpi/osl.c
1331
up(sem);
drivers/bcma/driver_pci.c
259
void bcma_core_pci_power_save(struct bcma_bus *bus, bool up)
drivers/bcma/driver_pci.c
270
data = up ? 0x74 : 0x7C;
drivers/bcma/driver_pci.c
276
data = up ? 0x75 : 0x7D;
drivers/char/hw_random/n2-drv.c
370
struct n2rng_unit *up = &np->units[i];
drivers/char/hw_random/n2-drv.c
372
up->control[0] = n2rng_control_default(np, 0);
drivers/char/hw_random/n2-drv.c
373
up->control[1] = n2rng_control_default(np, 1);
drivers/char/hw_random/n2-drv.c
374
up->control[2] = n2rng_control_default(np, 2);
drivers/char/hw_random/n2-drv.c
375
up->control[3] = n2rng_control_default(np, 3);
drivers/char/hw_random/n2-drv.c
621
struct n2rng_unit *up = &np->units[unit];
drivers/char/hw_random/n2-drv.c
622
unsigned long ctl_ra = __pa(&up->control[0]);
drivers/char/hw_random/n2-drv.c
644
up->control[esrc] = base |
drivers/char/hw_random/n2-drv.c
648
up->control[3] = base |
drivers/char/ipmi/ipmi_ipmb.c
169
up(&iidev->got_rsp);
drivers/char/ipmi/ipmi_ipmb.c
399
up(&iidev->wake_thread);
drivers/char/ipmi/ipmi_ipmb.c
400
up(&iidev->got_rsp);
drivers/char/ipmi/ipmi_ipmb.c
423
up(&iidev->wake_thread);
drivers/clk/clk-divider.c
192
int up = INT_MAX;
drivers/clk/clk-divider.c
200
if ((clkt->div - div) < (up - div))
drivers/clk/clk-divider.c
201
up = clkt->div;
drivers/clk/clk-divider.c
204
return up;
drivers/clk/clk-divider.c
243
int up, down;
drivers/clk/clk-divider.c
246
up = DIV_ROUND_UP_ULL((u64)parent_rate, rate);
drivers/clk/clk-divider.c
250
up = __roundup_pow_of_two(up);
drivers/clk/clk-divider.c
253
up = _round_up_table(table, up);
drivers/clk/clk-divider.c
257
up_rate = DIV_ROUND_UP_ULL((u64)parent_rate, up);
drivers/clk/clk-divider.c
260
return (rate - up_rate) <= (down_rate - rate) ? up : down;
drivers/clk/tegra/cvb.c
43
static int round_voltage(int mv, const struct rail_alignment *align, int up)
drivers/clk/tegra/cvb.c
49
uv = (uv + (up ? align->step_uv - 1 : 0)) / align->step_uv;
drivers/clk/ti/divider.c
143
int up = INT_MAX;
drivers/clk/ti/divider.c
152
if ((clkt->div - div) < (up - div))
drivers/clk/ti/divider.c
153
up = clkt->div;
drivers/clk/ti/divider.c
156
return up;
drivers/clk/zynqmp/divider.c
52
int up, down;
drivers/clk/zynqmp/divider.c
56
up = DIV_ROUND_UP_ULL((u64)parent_rate, rate);
drivers/clk/zynqmp/divider.c
59
up = __roundup_pow_of_two(up);
drivers/clk/zynqmp/divider.c
62
up_rate = DIV_ROUND_UP_ULL((u64)parent_rate, up);
drivers/clk/zynqmp/divider.c
65
return (rate - up_rate) <= (down_rate - rate) ? up : down;
drivers/comedi/drivers/vmk80xx.c
277
up(&devpriv->limit_sem);
drivers/comedi/drivers/vmk80xx.c
318
up(&devpriv->limit_sem);
drivers/comedi/drivers/vmk80xx.c
347
up(&devpriv->limit_sem);
drivers/comedi/drivers/vmk80xx.c
386
up(&devpriv->limit_sem);
drivers/comedi/drivers/vmk80xx.c
430
up(&devpriv->limit_sem);
drivers/comedi/drivers/vmk80xx.c
474
up(&devpriv->limit_sem);
drivers/comedi/drivers/vmk80xx.c
511
up(&devpriv->limit_sem);
drivers/comedi/drivers/vmk80xx.c
555
up(&devpriv->limit_sem);
drivers/comedi/drivers/vmk80xx.c
588
up(&devpriv->limit_sem);
drivers/comedi/drivers/vmk80xx.c
634
up(&devpriv->limit_sem);
drivers/comedi/drivers/vmk80xx.c
700
up(&devpriv->limit_sem);
drivers/comedi/drivers/vmk80xx.c
768
up(&devpriv->limit_sem);
drivers/comedi/drivers/vmk80xx.c
827
up(&devpriv->limit_sem);
drivers/cpufreq/brcmstb-avs-cpufreq.c
311
up(&priv->sem);
drivers/firmware/efi/runtime-wrappers.c
359
up(&efi_runtime_lock);
drivers/firmware/efi/runtime-wrappers.c
370
up(&efi_runtime_lock);
drivers/firmware/efi/runtime-wrappers.c
383
up(&efi_runtime_lock);
drivers/firmware/efi/runtime-wrappers.c
394
up(&efi_runtime_lock);
drivers/firmware/efi/runtime-wrappers.c
410
up(&efi_runtime_lock);
drivers/firmware/efi/runtime-wrappers.c
423
up(&efi_runtime_lock);
drivers/firmware/efi/runtime-wrappers.c
439
up(&efi_runtime_lock);
drivers/firmware/efi/runtime-wrappers.c
456
up(&efi_runtime_lock);
drivers/firmware/efi/runtime-wrappers.c
475
up(&efi_runtime_lock);
drivers/firmware/efi/runtime-wrappers.c
496
up(&efi_runtime_lock);
drivers/firmware/efi/runtime-wrappers.c
507
up(&efi_runtime_lock);
drivers/firmware/efi/runtime-wrappers.c
528
up(&efi_runtime_lock);
drivers/firmware/efi/runtime-wrappers.c
543
up(&efi_runtime_lock);
drivers/firmware/efi/runtime-wrappers.c
561
up(&efi_runtime_lock);
drivers/firmware/efi/runtime-wrappers.c
595
up(&efi_runtime_lock);
drivers/firmware/efi/vars.c
127
up(&efivars_lock);
drivers/firmware/efi/vars.c
147
up(&efivars_lock);
drivers/firmware/efi/vars.c
163
up(&efivars_lock);
drivers/firmware/efi/vars.c
175
up(&efivars_lock);
drivers/firmware/efi/vars.c
91
up(&efivars_lock);
drivers/firmware/tegra/bpmp.c
228
up(&bpmp->threaded.lock);
drivers/firmware/tegra/bpmp.c
292
up(&bpmp->threaded.lock);
drivers/firmware/ti_sci.c
386
up(&minfo->sem_xfer_count);
drivers/fsi/fsi-sbefifo.c
450
static int sbefifo_wait(struct sbefifo *sbefifo, bool up,
drivers/fsi/fsi-sbefifo.c
459
dev_vdbg(dev, "Wait on %s fifo...\n", up ? "up" : "down");
drivers/fsi/fsi-sbefifo.c
461
addr = (up ? SBEFIFO_UP : SBEFIFO_DOWN) | SBEFIFO_STS;
drivers/fsi/fsi-sbefifo.c
471
if (!up && sbefifo_parity_err(sts)) {
drivers/fsi/fsi-sbefifo.c
475
ready = !(up ? sbefifo_full(sts) : sbefifo_empty(sts));
drivers/fsi/fsi-sbefifo.c
483
up ? "UP" : "DOWN", jiffies_to_msecs(timeout), sts);
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
1583
up(&dev->limit_sem);
drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
1685
up(&dev->limit_sem);
drivers/gpu/drm/amd/amdkfd/kfd_debug.c
289
up(&p->runtime_enable_sema);
drivers/gpu/drm/amd/display/dc/dml/dml_inline_defs.h
135
unsigned char up)
drivers/gpu/drm/amd/display/dc/dml/dml_inline_defs.h
147
if (up)
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_util.c
201
dml_uint_t dml_round_to_multiple(dml_uint_t num, dml_uint_t multiple, dml_bool_t up)
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_util.c
212
if (up)
drivers/gpu/drm/amd/display/dc/dml2_0/display_mode_util.h
50
__DML_DLL_EXPORT__ dml_uint_t dml_round_to_multiple(dml_uint_t num, dml_uint_t multiple, dml_bool_t up);
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
188
static unsigned int dml_round_to_multiple(unsigned int num, unsigned int multiple, bool up)
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
199
if (up)
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_utils.c
370
unsigned int dml2_core_utils_round_to_multiple(unsigned int num, unsigned int multiple, bool up)
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_utils.c
381
if (up)
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_utils.h
19
unsigned int dml2_core_utils_round_to_multiple(unsigned int num, unsigned int multiple, bool up);
drivers/gpu/drm/display/drm_dp_mst_topology.c
2731
bool up, u8 *msg, int len)
drivers/gpu/drm/display/drm_dp_mst_topology.c
2734
int regbase = up ? DP_SIDEBAND_MSG_UP_REP_BASE : DP_SIDEBAND_MSG_DOWN_REQ_BASE;
drivers/gpu/drm/display/drm_dp_mst_topology.c
2792
bool up)
drivers/gpu/drm/display/drm_dp_mst_topology.c
2832
ret = drm_dp_send_sideband_msg(mgr, up, chunk, idx);
drivers/gpu/drm/display/drm_dp_mst_topology.c
3864
drm_dp_get_one_sb_msg(struct drm_dp_mst_topology_mgr *mgr, bool up,
drivers/gpu/drm/display/drm_dp_mst_topology.c
3874
up ? &mgr->up_req_recv : &mgr->down_rep_recv;
drivers/gpu/drm/display/drm_dp_mst_topology.c
3875
int basereg = up ? DP_SIDEBAND_MSG_UP_REQ_BASE :
drivers/gpu/drm/display/drm_dp_mst_topology.c
3878
if (!up)
drivers/gpu/drm/display/drm_dp_mst_topology.c
3896
if (!up) {
drivers/gpu/drm/omapdrm/dss/dsi.c
122
up(&dsi->bus_lock);
drivers/gpu/ipu-v3/ipu-di.c
144
int set, int up, int down)
drivers/gpu/ipu-v3/ipu-di.c
153
ipu_di_write(di, (down << 16) | up, DI_DW_SET(wave_gen, set));
drivers/hid/bpf/hid_bpf_dispatch.c
561
up(&ctx->hid->driver_input_lock);
drivers/hid/hid-core.c
2103
up(&hid->driver_input_lock);
drivers/hid/hid-core.c
2149
up(&hid->driver_input_lock);
drivers/hid/hid-core.c
2816
up(&hdev->driver_input_lock);
drivers/hid/hid-core.c
2844
up(&hdev->driver_input_lock);
drivers/hid/hid-debug.c
3679
up(&hdev->driver_input_lock);
drivers/hid/hid-prodikeys.c
580
static void pcmidi_in_trigger(struct snd_rawmidi_substream *substream, int up)
drivers/hid/hid-prodikeys.c
584
dbg_hid("pcmidi in trigger %d\n", up);
drivers/hid/hid-prodikeys.c
586
pm->in_triggered = up;
drivers/iio/accel/bma220_core.c
390
static int bma220_reset(struct bma220_data *data, bool up)
drivers/iio/accel/bma220_core.c
405
if (up && val == BMA220_RESET_MODE)
drivers/iio/accel/bma220_core.c
408
if (!up && val == BMA220_NONRESET_MODE)
drivers/iio/accel/bma220_core.c
415
static int bma220_power(struct bma220_data *data, bool up)
drivers/iio/accel/bma220_core.c
430
if (up && val == BMA220_SUSPEND_SLEEP)
drivers/iio/accel/bma220_core.c
433
if (!up && val == BMA220_SUSPEND_WAKE)
drivers/iio/common/inv_sensors/inv_sensors_timestamp.c
148
it->lo = it->up;
drivers/iio/common/inv_sensors/inv_sensors_timestamp.c
149
it->up = timestamp;
drivers/iio/common/inv_sensors/inv_sensors_timestamp.c
150
delta = it->up - it->lo;
drivers/iio/common/inv_sensors/inv_sensors_timestamp.c
161
ts->timestamp = it->up - interval;
drivers/iio/common/inv_sensors/inv_sensors_timestamp.c
198
ts->timestamp = ts->it.up - interval;
drivers/iio/temperature/tmp006.c
230
static int tmp006_power(struct device *dev, bool up)
drivers/iio/temperature/tmp006.c
235
if (up)
drivers/infiniband/core/iwpm_msg.c
437
up(&nlmsg_request->sem);
drivers/infiniband/core/iwpm_msg.c
509
up(&nlmsg_request->sem);
drivers/infiniband/core/iwpm_msg.c
607
up(&nlmsg_request->sem);
drivers/infiniband/core/iwpm_msg.c
806
up(&nlmsg_request->sem);
drivers/infiniband/core/user_mad.c
1128
up(&port->sm_sem);
drivers/infiniband/core/user_mad.c
1147
up(&port->sm_sem);
drivers/infiniband/hw/bnxt_re/qplib_rcfw.c
567
up(&rcfw->rcfw_inflight);
drivers/infiniband/hw/efa/efa_com.c
632
up(&aq->avail_cmds);
drivers/infiniband/hw/efa/efa_com.c
645
up(&aq->avail_cmds);
drivers/infiniband/hw/efa/efa_com.c
661
up(&aq->avail_cmds);
drivers/infiniband/hw/erdma/erdma_cmdq.c
418
up(&cmdq->credits);
drivers/infiniband/hw/erdma/erdma_cmdq.c
449
up(&cmdq->credits);
drivers/infiniband/hw/hfi1/aspm.c
26
u32 up, dn;
drivers/infiniband/hw/hfi1/aspm.c
38
pcie_capability_read_dword(parent, PCI_EXP_LNKCAP, &up);
drivers/infiniband/hw/hfi1/aspm.c
39
up = ASPM_L1_SUPPORTED(up);
drivers/infiniband/hw/hfi1/aspm.c
42
return (!!dn || is_ax(dd)) && !!up;
drivers/infiniband/hw/hns/hns_roce_cmd.c
165
up(&hr_dev->cmd.event_sem);
drivers/infiniband/hw/hns/hns_roce_cmd.c
85
up(&hr_dev->cmd.poll_sem);
drivers/infiniband/hw/mlx5/cq.c
651
void __iomem *uar_page = mdev->priv.bfreg.up->map;
drivers/infiniband/hw/mlx5/cq.c
926
*index = dev->mdev->priv.bfreg.up->index;
drivers/infiniband/hw/mlx5/umr.c
409
up(&umrc->sem);
drivers/infiniband/hw/mthca/mthca_cmd.c
383
up(&dev->cmd.poll_sem);
drivers/infiniband/hw/mthca/mthca_cmd.c
464
up(&dev->cmd.event_sem);
drivers/infiniband/hw/mthca/mthca_cmd.c
605
up(&dev->cmd.poll_sem);
drivers/infiniband/hw/vmw_pvrdma/pvrdma_cmd.c
116
up(&dev->cmd_sema);
drivers/infiniband/ulp/ipoib/ipoib_main.c
140
bool up;
drivers/infiniband/ulp/ipoib/ipoib_main.c
152
if (pwork->up)
drivers/infiniband/ulp/ipoib/ipoib_main.c
164
static void ipoib_schedule_ifupdown_task(struct net_device *dev, bool up)
drivers/infiniband/ulp/ipoib/ipoib_main.c
168
if ((up && (dev->flags & IFF_UP)) ||
drivers/infiniband/ulp/ipoib/ipoib_main.c
169
(!up && !(dev->flags & IFF_UP)))
drivers/infiniband/ulp/ipoib/ipoib_main.c
177
work->up = up;
drivers/infiniband/ulp/isert/ib_isert.c
528
up(&isert_np->sem);
drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c
112
static void opa_vnic_update_state(struct opa_vnic_adapter *adapter, bool up)
drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c
118
if ((info->vport.config_state == OPA_VNIC_STATE_FORWARDING) && up) {
drivers/infiniband/ulp/rtrs/rtrs-clt.c
2134
int up;
drivers/infiniband/ulp/rtrs/rtrs-clt.c
2144
up = ++clt->paths_up;
drivers/infiniband/ulp/rtrs/rtrs-clt.c
2150
if (up > MAX_PATHS_NUM && up == MAX_PATHS_NUM + clt->paths_num)
drivers/infiniband/ulp/rtrs/rtrs-clt.c
2152
else if (up == 1)
drivers/infiniband/ulp/rtrs/rtrs-srv.c
741
int up, ret = 0;
drivers/infiniband/ulp/rtrs/rtrs-srv.c
744
up = ++srv->paths_up;
drivers/infiniband/ulp/rtrs/rtrs-srv.c
745
if (up == 1)
drivers/input/joystick/n64joy.c
161
input_report_key(dev, BTN_DPAD_UP, data[i].up);
drivers/input/joystick/n64joy.c
68
unsigned int up: 1;
drivers/input/keyboard/hil_kbd.c
171
int up = key & HIL_KBD_SET1_UPBIT;
drivers/input/keyboard/hil_kbd.c
175
input_report_key(dev, key, !up);
drivers/input/keyboard/hil_kbd.c
182
int up = key & HIL_KBD_SET2_UPBIT;
drivers/input/keyboard/hil_kbd.c
186
input_report_key(dev, key, !up);
drivers/input/keyboard/hil_kbd.c
193
int up = key & HIL_KBD_SET3_UPBIT;
drivers/input/keyboard/hil_kbd.c
197
input_report_key(dev, key, !up);
drivers/input/keyboard/hil_kbd.c
252
int up = btn & 1;
drivers/input/keyboard/hil_kbd.c
261
input_report_key(dev, btn, !up);
drivers/input/keyboard/lm8323.c
443
int div512, perstep, steps, hz, up, kill;
drivers/input/keyboard/lm8323.c
459
up = (pwm->desired_brightness > pwm->brightness);
drivers/input/keyboard/lm8323.c
485
pwm_cmds[num_cmds++] = PWM_RAMP(div512, perstep, s, up);
drivers/input/keyboard/stmpe-keypad.c
181
bool up = data & STMPE_KPC_DATA_UP;
drivers/input/keyboard/stmpe-keypad.c
188
input_report_key(input, keypad->keymap[code], !up);
drivers/input/keyboard/tc3589x-keypad.c
193
u8 i, row_index, col_index, kbd_code, up;
drivers/input/keyboard/tc3589x-keypad.c
209
up = kbd_code & KP_RELEASE_EVT_MASK;
drivers/input/keyboard/tc3589x-keypad.c
212
input_report_key(keypad->input, keypad->keymap[code], !up);
drivers/input/misc/hp_sdc_rtc.c
166
up(&i8042tregs);
drivers/input/misc/hp_sdc_rtc.c
174
up(&i8042tregs);
drivers/input/mouse/gpio_mouse.c
33
struct gpio_desc *up;
drivers/input/mouse/gpio_mouse.c
62
y = gpiod_get_value(gpio->down) - gpiod_get_value(gpio->up);
drivers/input/mouse/gpio_mouse.c
88
gmouse->up = devm_gpiod_get(dev, "up", GPIOD_IN);
drivers/input/mouse/gpio_mouse.c
89
if (IS_ERR(gmouse->up))
drivers/input/mouse/gpio_mouse.c
90
return PTR_ERR(gmouse->up);
drivers/input/mouse/synaptics.c
1016
input_report_key(dev, BTN_FORWARD, hw->up);
drivers/input/mouse/synaptics.c
1127
input_report_key(dev, BTN_FORWARD, !hw.up);
drivers/input/mouse/synaptics.c
1129
input_report_key(dev, BTN_FORWARD, hw.up);
drivers/input/mouse/synaptics.c
889
hw->up = ((buf[0] ^ buf[3]) & 0x01) ? 1 : 0;
drivers/input/mouse/synaptics.h
159
unsigned int up:1;
drivers/input/serio/hil_mlc.c
700
up(&mlc->osem);
drivers/input/serio/hp_sdc.c
1052
up(&tq_init_sem);
drivers/input/serio/hp_sdc.c
1069
up(&tq_init_sem);
drivers/input/serio/hp_sdc.c
1094
up(&tq_init_sem);
drivers/input/serio/hp_sdc.c
203
up(curr->act.semaphore);
drivers/input/serio/hp_sdc.c
330
up(curr->act.semaphore);
drivers/input/serio/hp_sdc.c
567
up(curr->act.semaphore);
drivers/input/serio/hp_sdc_mlc.c
135
up(&mlc->isem);
drivers/input/serio/hp_sdc_mlc.c
168
up(&mlc->isem);
drivers/input/serio/hp_sdc_mlc.c
173
up(&mlc->isem);
drivers/input/serio/hp_sdc_mlc.c
189
up(&mlc->isem);
drivers/input/serio/hp_sdc_mlc.c
190
up(&mlc->osem);
drivers/input/serio/hp_sdc_mlc.c
218
up(&mlc->csem);
drivers/input/serio/hp_sdc_mlc.c
236
up(&mlc->osem);
drivers/input/serio/hp_sdc_mlc.c
241
up(&mlc->csem);
drivers/input/serio/hp_sdc_mlc.c
70
up(&mlc->isem);
drivers/input/touchscreen/mainstone-wm97xx.c
153
goto up;
drivers/input/touchscreen/mainstone-wm97xx.c
164
up:
drivers/irqchip/irq-renesas-rzv2h.c
122
#define ICU_DMAC_DMAREQ_SHIFT(up) ((up) * 16)
drivers/irqchip/irq-renesas-rzv2h.c
123
#define ICU_DMAC_DMAREQ_MASK(up) (ICU_DMAC_DkRQ_SEL_MASK \
drivers/irqchip/irq-renesas-rzv2h.c
124
<< ICU_DMAC_DMAREQ_SHIFT(up))
drivers/irqchip/irq-renesas-rzv2h.c
125
#define ICU_DMAC_PREP_DMAREQ(sel, up) (FIELD_PREP(ICU_DMAC_DkRQ_SEL_MASK, (sel)) \
drivers/irqchip/irq-renesas-rzv2h.c
126
<< ICU_DMAC_DMAREQ_SHIFT(up))
drivers/isdn/mISDN/dsp.h
173
struct mISDNchannel *up;
drivers/isdn/mISDN/dsp_core.c
1028
if (dsp->up) {
drivers/isdn/mISDN/dsp_core.c
1029
if (dsp->up->send(dsp->up, skb))
drivers/isdn/mISDN/dsp_core.c
1069
ndsp->up = crq->ch;
drivers/isdn/mISDN/dsp_core.c
1083
ndsp->up->st->dev->id + 1, ndsp);
drivers/isdn/mISDN/dsp_core.c
593
if (dsp->up) {
drivers/isdn/mISDN/dsp_core.c
594
if (dsp->up->send(dsp->up, nskb))
drivers/isdn/mISDN/dsp_core.c
708
if (dsp->up)
drivers/isdn/mISDN/dsp_core.c
709
return dsp->up->send(dsp->up, skb);
drivers/isdn/mISDN/dsp_core.c
752
if (dsp->up) {
drivers/isdn/mISDN/dsp_core.c
753
if (dsp->up->send(
drivers/isdn/mISDN/dsp_core.c
754
dsp->up, nskb))
drivers/isdn/mISDN/dsp_core.c
767
if (dsp->up)
drivers/isdn/mISDN/dsp_core.c
768
return dsp->up->send(dsp->up, skb);
drivers/isdn/mISDN/dsp_core.c
798
if (dsp->up) {
drivers/isdn/mISDN/dsp_core.c
799
if (dsp->up->send(
drivers/isdn/mISDN/dsp_core.c
800
dsp->up, nskb))
drivers/isdn/mISDN/dsp_core.c
854
if (dsp->up)
drivers/isdn/mISDN/dsp_core.c
855
return dsp->up->send(dsp->up, skb);
drivers/isdn/mISDN/dsp_core.c
870
if (dsp->up)
drivers/isdn/mISDN/dsp_core.c
871
return dsp->up->send(dsp->up, skb);
drivers/isdn/mISDN/layer2.c
142
if (!l2->up)
drivers/isdn/mISDN/layer2.c
146
err = l2->up->send(l2->up, skb);
drivers/isdn/mISDN/layer2.c
161
if (!l2->up)
drivers/isdn/mISDN/layer2.c
171
err = l2->up->send(l2->up, skb);
drivers/isdn/mISDN/layer2.c
1980
if (!l2->up)
drivers/isdn/mISDN/layer2.c
1982
ret = l2->up->send(l2->up, skb);
drivers/isdn/mISDN/layer2.c
2121
l2->up = ch;
drivers/isdn/mISDN/layer2.h
23
struct mISDNchannel *up;
drivers/isdn/mISDN/layer2.h
48
struct mISDNchannel *up;
drivers/isdn/mISDN/tei.c
1007
if (mgr->up) {
drivers/isdn/mISDN/tei.c
1029
mgr->up = crq->ch;
drivers/isdn/mISDN/tei.c
1038
l2->up = mgr->up;
drivers/isdn/mISDN/tei.c
1084
l2->up->nr = id;
drivers/isdn/mISDN/tei.c
1117
if (mgr->up)
drivers/isdn/mISDN/tei.c
1125
if (mgr->up)
drivers/isdn/mISDN/tei.c
1146
mgr->up = NULL;
drivers/isdn/mISDN/tei.c
1158
l2->up = NULL;
drivers/isdn/mISDN/tei.c
307
err = mgr->up->send(mgr->up, skb);
drivers/isdn/mISDN/tei.c
790
if (!mgr->up)
drivers/isdn/mISDN/tei.c
801
l2 = create_l2(mgr->up, ISDN_P_LAPD_NT, opt, tei, sapi);
drivers/isdn/mISDN/tei.c
855
if (!mgr->up)
drivers/macintosh/adb.c
233
up(&adb_probe_mutex);
drivers/macintosh/adb.c
297
up(&adb_probe_mutex);
drivers/macintosh/adb.c
810
up(&adb_probe_mutex);
drivers/macintosh/adb.c
817
up(&adb_probe_mutex);
drivers/macintosh/adb.c
828
up(&adb_probe_mutex);
drivers/md/bcache/btree.c
300
up(&b->io_mutex);
drivers/md/bcache/btree.c
627
up(&b->io_mutex);
drivers/md/bcache/btree.c
657
up(&b->io_mutex);
drivers/md/bcache/debug.c
105
up(&b->io_mutex);
drivers/md/bcache/movinggc.c
57
up(&io->op.c->moving_in_flight);
drivers/md/bcache/super.c
333
up(&dc->sb_write_mutex);
drivers/md/bcache/super.c
369
up(&c->sb_write_mutex);
drivers/md/bcache/super.c
413
up(&c->uuid_write_mutex);
drivers/md/bcache/writeback.c
385
up(&dc->in_flight);
drivers/md/dm-region-hash.c
385
up(&rh->recovery_count);
drivers/md/dm-region-hash.c
634
up(&rh->recovery_count);
drivers/md/dm-region-hash.c
719
up(&rh->recovery_count);
drivers/md/dm-vdo/indexer/sparse-cache.c
207
up(&barrier->wait);
drivers/md/dm-vdo/indexer/sparse-cache.c
210
up(&barrier->lock);
drivers/md/dm-vdo/indexer/sparse-cache.c
212
up(&barrier->lock);
drivers/md/dm.c
1136
up(&md->swap_bios_semaphore);
drivers/md/dm.c
1391
up(&md->swap_bios_semaphore);
drivers/md/dm.c
1441
up(&md->swap_bios_semaphore);
drivers/media/dvb-core/dvb_frontend.c
2075
up(&fepriv->sem);
drivers/media/dvb-core/dvb_frontend.c
2096
up(&fepriv->sem);
drivers/media/dvb-core/dvb_frontend.c
2102
up(&fepriv->sem);
drivers/media/dvb-core/dvb_frontend.c
2250
up(&fepriv->sem);
drivers/media/dvb-core/dvb_frontend.c
275
up(&fepriv->sem);
drivers/media/dvb-core/dvb_frontend.c
681
up(&fepriv->sem); /* is locked when we enter the thread... */
drivers/media/dvb-core/dvb_frontend.c
804
up(&fepriv->sem);
drivers/media/dvb-core/dvb_frontend.c
888
up(&fepriv->sem);
drivers/media/pci/ngene/ngene-cards.c
176
up(&chan->dev->pll_mutex);
drivers/media/pci/ngene/ngene-cards.c
433
up(&chan->dev->pll_mutex);
drivers/media/platform/chips-media/wave5/wave5-vpu.c
105
up(&dev->irq_sem);
drivers/media/platform/chips-media/wave5/wave5-vpu.c
416
up(&dev->irq_sem);
drivers/media/platform/chips-media/wave5/wave5-vpu.c
439
up(&dev->irq_sem);
drivers/media/rc/img-ir/img-ir-hw.c
1000
up = img_ir_read(priv, IMG_IR_DATA_UP);
drivers/media/rc/img-ir/img-ir-hw.c
1001
img_ir_handle_data(priv, len, (u64)up << 32 | lw);
drivers/media/rc/img-ir/img-ir-hw.c
957
u32 ir_status, len, lw, up;
drivers/media/usb/em28xx/em28xx-dvb.c
462
up(&dvb->pll_mutex);
drivers/media/usb/uvc/uvc_v4l2.c
1078
const struct uvc_xu_control_mapping32 __user *up)
drivers/media/usb/uvc/uvc_v4l2.c
1084
if (copy_from_user(p, up, sizeof(*p)))
drivers/media/usb/uvc/uvc_v4l2.c
1097
struct uvc_xu_control_mapping32 __user *up)
drivers/media/usb/uvc/uvc_v4l2.c
1099
if (copy_to_user(up, kp, offsetof(typeof(*up), menu_info)) ||
drivers/media/usb/uvc/uvc_v4l2.c
1100
put_user(kp->menu_count, &up->menu_count))
drivers/media/usb/uvc/uvc_v4l2.c
1103
if (clear_user(up->reserved, sizeof(up->reserved)))
drivers/media/usb/uvc/uvc_v4l2.c
1118
const struct uvc_xu_control_query32 __user *up)
drivers/media/usb/uvc/uvc_v4l2.c
1122
if (copy_from_user(&v, up, sizeof(v)))
drivers/media/usb/uvc/uvc_v4l2.c
1136
struct uvc_xu_control_query32 __user *up)
drivers/media/usb/uvc/uvc_v4l2.c
1138
if (copy_to_user(up, kp, offsetof(typeof(*up), data)))
drivers/media/usb/uvc/uvc_v4l2.c
1154
void __user *up = compat_ptr(arg);
drivers/media/usb/uvc/uvc_v4l2.c
1163
ret = uvc_v4l2_get_xu_mapping(&karg.xmap, up);
drivers/media/usb/uvc/uvc_v4l2.c
1169
ret = uvc_v4l2_put_xu_mapping(&karg.xmap, up);
drivers/media/usb/uvc/uvc_v4l2.c
1175
ret = uvc_v4l2_get_xu_query(&karg.xqry, up);
drivers/media/usb/uvc/uvc_v4l2.c
1181
ret = uvc_v4l2_put_xu_query(&karg.xqry, up);
drivers/mfd/wm8350-gpio.c
138
static int gpio_set_pull_up(struct wm8350 *wm8350, int gpio, int up)
drivers/mfd/wm8350-gpio.c
140
if (up)
drivers/mmc/host/cavium-octeon.c
105
up(&octeon_bootbus_sem);
drivers/mmc/host/cavium-octeon.c
107
up(&host->mmc_serializer);
drivers/mmc/host/cavium-thunderx.c
28
up(&host->mmc_serializer);
drivers/mtd/maps/sun_uflash.c
101
mtd_device_register(up->mtd, NULL, 0);
drivers/mtd/maps/sun_uflash.c
103
dev_set_drvdata(&op->dev, up);
drivers/mtd/maps/sun_uflash.c
123
struct uflash_dev *up = dev_get_drvdata(&op->dev);
drivers/mtd/maps/sun_uflash.c
125
if (up->mtd) {
drivers/mtd/maps/sun_uflash.c
126
mtd_device_unregister(up->mtd);
drivers/mtd/maps/sun_uflash.c
127
map_destroy(up->mtd);
drivers/mtd/maps/sun_uflash.c
129
if (up->map.virt) {
drivers/mtd/maps/sun_uflash.c
130
of_iounmap(&op->resource[0], up->map.virt, up->map.size);
drivers/mtd/maps/sun_uflash.c
131
up->map.virt = NULL;
drivers/mtd/maps/sun_uflash.c
134
kfree(up);
drivers/mtd/maps/sun_uflash.c
52
struct uflash_dev *up;
drivers/mtd/maps/sun_uflash.c
64
up = kzalloc_obj(struct uflash_dev);
drivers/mtd/maps/sun_uflash.c
65
if (!up)
drivers/mtd/maps/sun_uflash.c
69
memcpy(&up->map, &uflash_map_templ, sizeof(uflash_map_templ));
drivers/mtd/maps/sun_uflash.c
71
up->map.size = resource_size(&op->resource[0]);
drivers/mtd/maps/sun_uflash.c
73
up->name = of_get_property(dp, "model", NULL);
drivers/mtd/maps/sun_uflash.c
74
if (up->name && 0 < strlen(up->name))
drivers/mtd/maps/sun_uflash.c
75
up->map.name = up->name;
drivers/mtd/maps/sun_uflash.c
77
up->map.phys = op->resource[0].start;
drivers/mtd/maps/sun_uflash.c
79
up->map.virt = of_ioremap(&op->resource[0], 0, up->map.size,
drivers/mtd/maps/sun_uflash.c
81
if (!up->map.virt) {
drivers/mtd/maps/sun_uflash.c
83
kfree(up);
drivers/mtd/maps/sun_uflash.c
88
simple_map_init(&up->map);
drivers/mtd/maps/sun_uflash.c
91
up->mtd = do_map_probe("cfi_probe", &up->map);
drivers/mtd/maps/sun_uflash.c
92
if (!up->mtd) {
drivers/mtd/maps/sun_uflash.c
93
of_iounmap(&op->resource[0], up->map.virt, up->map.size);
drivers/mtd/maps/sun_uflash.c
94
kfree(up);
drivers/mtd/maps/sun_uflash.c
99
up->mtd->owner = THIS_MODULE;
drivers/mux/core.c
379
up(&mux->lock);
drivers/mux/core.c
438
up(&mux->lock);
drivers/mux/core.c
485
up(&mux->lock);
drivers/net/can/softing/softing.h
47
int up;
drivers/net/can/softing/softing.h
98
int softing_startstop(struct net_device *netdev, int up);
drivers/net/can/softing/softing_fw.c
417
int softing_startstop(struct net_device *dev, int up)
drivers/net/can/softing/softing_fw.c
431
if (!card->fw.up)
drivers/net/can/softing/softing_fw.c
439
if (up)
drivers/net/can/softing/softing_main.c
454
fw_up = card->fw.up;
drivers/net/can/softing/softing_main.c
455
card->fw.up = 0;
drivers/net/can/softing/softing_main.c
480
if (card->fw.up) {
drivers/net/can/softing/softing_main.c
534
card->fw.up = 1;
drivers/net/can/softing/softing_main.c
538
card->fw.up = 0;
drivers/net/can/softing/softing_main.c
69
if (!card->fw.up ||
drivers/net/can/usb/ucan.c
1001
netdev_err(up->netdev,
drivers/net/can/usb/ucan.c
1013
ret = ucan_submit_rx_urbs(up, urbs);
drivers/net/can/usb/ucan.c
1017
up->can.state = CAN_STATE_ERROR_ACTIVE;
drivers/net/can/usb/ucan.c
1026
ret_cleanup = ucan_ctrl_command_out(up, UCAN_COMMAND_STOP, 0, 0);
drivers/net/can/usb/ucan.c
1028
netdev_err(up->netdev,
drivers/net/can/usb/ucan.c
1036
ret_cleanup = ucan_ctrl_command_out(up, UCAN_COMMAND_RESET, 0, 0);
drivers/net/can/usb/ucan.c
1038
netdev_err(up->netdev,
drivers/net/can/usb/ucan.c
1043
ucan_cleanup_rx_urbs(up, urbs);
drivers/net/can/usb/ucan.c
1046
ucan_release_context_array(up);
drivers/net/can/usb/ucan.c
1050
static struct urb *ucan_prepare_tx_urb(struct ucan_priv *up,
drivers/net/can/usb/ucan.c
1062
netdev_err(up->netdev, "no memory left for URBs\n");
drivers/net/can/usb/ucan.c
1066
m = usb_alloc_coherent(up->udev,
drivers/net/can/usb/ucan.c
1071
netdev_err(up->netdev, "no memory left for USB buffer\n");
drivers/net/can/usb/ucan.c
1095
usb_fill_bulk_urb(urb, up->udev,
drivers/net/can/usb/ucan.c
1096
usb_sndbulkpipe(up->udev,
drivers/net/can/usb/ucan.c
1097
up->out_ep_addr),
drivers/net/can/usb/ucan.c
1104
static void ucan_clean_up_tx_urb(struct ucan_priv *up, struct urb *urb)
drivers/net/can/usb/ucan.c
1106
usb_free_coherent(up->udev, sizeof(struct ucan_message_out),
drivers/net/can/usb/ucan.c
1120
struct ucan_priv *up = netdev_priv(netdev);
drivers/net/can/usb/ucan.c
1128
context = ucan_alloc_context(up);
drivers/net/can/usb/ucan.c
1129
echo_index = context - up->context_array;
drivers/net/can/usb/ucan.c
1135
urb = ucan_prepare_tx_urb(up, context, cf, echo_index);
drivers/net/can/usb/ucan.c
1140
spin_lock_irqsave(&up->echo_skb_lock, flags);
drivers/net/can/usb/ucan.c
1141
can_put_echo_skb(skb, up->netdev, echo_index, 0);
drivers/net/can/usb/ucan.c
1142
spin_unlock_irqrestore(&up->echo_skb_lock, flags);
drivers/net/can/usb/ucan.c
1145
usb_anchor_urb(urb, &up->tx_urbs);
drivers/net/can/usb/ucan.c
1152
ucan_clean_up_tx_urb(up, urb);
drivers/net/can/usb/ucan.c
1153
if (!ucan_release_context(up, context))
drivers/net/can/usb/ucan.c
1154
netdev_err(up->netdev,
drivers/net/can/usb/ucan.c
1160
spin_lock_irqsave(&up->echo_skb_lock, flags);
drivers/net/can/usb/ucan.c
1161
can_free_echo_skb(up->netdev, echo_index, NULL);
drivers/net/can/usb/ucan.c
1162
spin_unlock_irqrestore(&up->echo_skb_lock, flags);
drivers/net/can/usb/ucan.c
1165
netif_device_detach(up->netdev);
drivers/net/can/usb/ucan.c
1167
netdev_warn(up->netdev,
drivers/net/can/usb/ucan.c
1170
up->netdev->stats.tx_dropped++;
drivers/net/can/usb/ucan.c
1183
if (!ucan_release_context(up, context))
drivers/net/can/usb/ucan.c
1184
netdev_err(up->netdev,
drivers/net/can/usb/ucan.c
1187
up->netdev->stats.tx_dropped++;
drivers/net/can/usb/ucan.c
1199
struct ucan_priv *up = netdev_priv(netdev);
drivers/net/can/usb/ucan.c
1201
up->can.state = CAN_STATE_STOPPED;
drivers/net/can/usb/ucan.c
1204
usb_kill_anchored_urbs(&up->tx_urbs);
drivers/net/can/usb/ucan.c
1207
usb_kill_anchored_urbs(&up->rx_urbs);
drivers/net/can/usb/ucan.c
1210
ret = ucan_ctrl_command_out(up, UCAN_COMMAND_STOP, 0, 0);
drivers/net/can/usb/ucan.c
1212
netdev_err(up->netdev,
drivers/net/can/usb/ucan.c
1216
ret = ucan_ctrl_command_out(up, UCAN_COMMAND_RESET, 0, 0);
drivers/net/can/usb/ucan.c
1218
netdev_err(up->netdev,
drivers/net/can/usb/ucan.c
1224
ucan_release_context_array(up);
drivers/net/can/usb/ucan.c
1226
close_candev(up->netdev);
drivers/net/can/usb/ucan.c
1249
struct ucan_priv *up = netdev_priv(netdev);
drivers/net/can/usb/ucan.c
1252
cmd_set_bittiming = &up->ctl_msg_buffer->cmd_set_bittiming;
drivers/net/can/usb/ucan.c
1253
cmd_set_bittiming->tq = cpu_to_le32(up->can.bittiming.tq);
drivers/net/can/usb/ucan.c
1254
cmd_set_bittiming->brp = cpu_to_le16(up->can.bittiming.brp);
drivers/net/can/usb/ucan.c
1256
cpu_to_le16(up->can.bittiming.sample_point);
drivers/net/can/usb/ucan.c
1257
cmd_set_bittiming->prop_seg = up->can.bittiming.prop_seg;
drivers/net/can/usb/ucan.c
1258
cmd_set_bittiming->phase_seg1 = up->can.bittiming.phase_seg1;
drivers/net/can/usb/ucan.c
1259
cmd_set_bittiming->phase_seg2 = up->can.bittiming.phase_seg2;
drivers/net/can/usb/ucan.c
1260
cmd_set_bittiming->sjw = up->can.bittiming.sjw;
drivers/net/can/usb/ucan.c
1262
ret = ucan_ctrl_command_out(up, UCAN_COMMAND_SET_BITTIMING, 0,
drivers/net/can/usb/ucan.c
1274
struct ucan_priv *up = netdev_priv(netdev);
drivers/net/can/usb/ucan.c
1278
netdev_dbg(up->netdev, "restarting device\n");
drivers/net/can/usb/ucan.c
1280
ret = ucan_ctrl_command_out(up, UCAN_COMMAND_RESTART, 0, 0);
drivers/net/can/usb/ucan.c
1281
up->can.state = CAN_STATE_ERROR_ACTIVE;
drivers/net/can/usb/ucan.c
1287
spin_lock_irqsave(&up->context_lock, flags);
drivers/net/can/usb/ucan.c
1289
if (up->available_tx_urbs > 0)
drivers/net/can/usb/ucan.c
1290
netif_wake_queue(up->netdev);
drivers/net/can/usb/ucan.c
1292
spin_unlock_irqrestore(&up->context_lock, flags);
drivers/net/can/usb/ucan.c
1310
struct ucan_priv *up;
drivers/net/can/usb/ucan.c
1498
up = netdev_priv(netdev);
drivers/net/can/usb/ucan.c
1501
up->udev = udev;
drivers/net/can/usb/ucan.c
1502
up->netdev = netdev;
drivers/net/can/usb/ucan.c
1503
up->intf_index = iface_desc->desc.bInterfaceNumber;
drivers/net/can/usb/ucan.c
1504
up->in_ep_addr = in_ep_addr;
drivers/net/can/usb/ucan.c
1505
up->out_ep_addr = out_ep_addr;
drivers/net/can/usb/ucan.c
1506
up->in_ep_size = in_ep_size;
drivers/net/can/usb/ucan.c
1507
up->ctl_msg_buffer = ctl_msg_buffer;
drivers/net/can/usb/ucan.c
1508
up->context_array = NULL;
drivers/net/can/usb/ucan.c
1509
up->available_tx_urbs = 0;
drivers/net/can/usb/ucan.c
1511
up->can.state = CAN_STATE_STOPPED;
drivers/net/can/usb/ucan.c
1512
up->can.bittiming_const = &up->device_info.bittiming_const;
drivers/net/can/usb/ucan.c
1513
up->can.do_set_bittiming = ucan_set_bittiming;
drivers/net/can/usb/ucan.c
1514
up->can.do_set_mode = &ucan_set_mode;
drivers/net/can/usb/ucan.c
1515
spin_lock_init(&up->context_lock);
drivers/net/can/usb/ucan.c
1516
spin_lock_init(&up->echo_skb_lock);
drivers/net/can/usb/ucan.c
1520
usb_set_intfdata(intf, up);
drivers/net/can/usb/ucan.c
1527
ucan_parse_device_info(up, &ctl_msg_buffer->cmd_get_device_info);
drivers/net/can/usb/ucan.c
1530
ret = ucan_ctrl_command_out(up, UCAN_COMMAND_RESET, 0, 0);
drivers/net/can/usb/ucan.c
1534
init_usb_anchor(&up->rx_urbs);
drivers/net/can/usb/ucan.c
1535
init_usb_anchor(&up->tx_urbs);
drivers/net/can/usb/ucan.c
1537
up->can.state = CAN_STATE_STOPPED;
drivers/net/can/usb/ucan.c
1545
netdev_info(up->netdev, "registered device\n");
drivers/net/can/usb/ucan.c
1546
ucan_get_fw_str(up, up->ctl_msg_buffer->fw_str,
drivers/net/can/usb/ucan.c
1547
sizeof(up->ctl_msg_buffer->fw_str));
drivers/net/can/usb/ucan.c
1548
netdev_info(up->netdev, "firmware string: %s\n",
drivers/net/can/usb/ucan.c
1549
up->ctl_msg_buffer->fw_str);
drivers/net/can/usb/ucan.c
1568
struct ucan_priv *up = usb_get_intfdata(intf);
drivers/net/can/usb/ucan.c
1572
if (up) {
drivers/net/can/usb/ucan.c
1573
unregister_candev(up->netdev);
drivers/net/can/usb/ucan.c
1574
free_candev(up->netdev);
drivers/net/can/usb/ucan.c
263
struct ucan_priv *up;
drivers/net/can/usb/ucan.c
314
static void ucan_release_context_array(struct ucan_priv *up)
drivers/net/can/usb/ucan.c
316
if (!up->context_array)
drivers/net/can/usb/ucan.c
320
up->available_tx_urbs = 0;
drivers/net/can/usb/ucan.c
322
kfree(up->context_array);
drivers/net/can/usb/ucan.c
323
up->context_array = NULL;
drivers/net/can/usb/ucan.c
326
static int ucan_alloc_context_array(struct ucan_priv *up)
drivers/net/can/usb/ucan.c
331
ucan_release_context_array(up);
drivers/net/can/usb/ucan.c
333
up->context_array = kzalloc_objs(*up->context_array,
drivers/net/can/usb/ucan.c
334
up->device_info.tx_fifo);
drivers/net/can/usb/ucan.c
335
if (!up->context_array) {
drivers/net/can/usb/ucan.c
336
netdev_err(up->netdev,
drivers/net/can/usb/ucan.c
341
for (i = 0; i < up->device_info.tx_fifo; i++) {
drivers/net/can/usb/ucan.c
342
up->context_array[i].allocated = false;
drivers/net/can/usb/ucan.c
343
up->context_array[i].up = up;
drivers/net/can/usb/ucan.c
347
up->available_tx_urbs = up->device_info.tx_fifo;
drivers/net/can/usb/ucan.c
352
static struct ucan_urb_context *ucan_alloc_context(struct ucan_priv *up)
drivers/net/can/usb/ucan.c
358
if (WARN_ON_ONCE(!up->context_array))
drivers/net/can/usb/ucan.c
362
spin_lock_irqsave(&up->context_lock, flags);
drivers/net/can/usb/ucan.c
364
for (i = 0; i < up->device_info.tx_fifo; i++) {
drivers/net/can/usb/ucan.c
365
if (!up->context_array[i].allocated) {
drivers/net/can/usb/ucan.c
367
ret = &up->context_array[i];
drivers/net/can/usb/ucan.c
368
up->context_array[i].allocated = true;
drivers/net/can/usb/ucan.c
371
up->available_tx_urbs--;
drivers/net/can/usb/ucan.c
372
if (!up->available_tx_urbs)
drivers/net/can/usb/ucan.c
373
netif_stop_queue(up->netdev);
drivers/net/can/usb/ucan.c
379
spin_unlock_irqrestore(&up->context_lock, flags);
drivers/net/can/usb/ucan.c
383
static bool ucan_release_context(struct ucan_priv *up,
drivers/net/can/usb/ucan.c
389
if (WARN_ON_ONCE(!up->context_array))
drivers/net/can/usb/ucan.c
393
spin_lock_irqsave(&up->context_lock, flags);
drivers/net/can/usb/ucan.c
400
if (!up->available_tx_urbs)
drivers/net/can/usb/ucan.c
401
netif_wake_queue(up->netdev);
drivers/net/can/usb/ucan.c
402
up->available_tx_urbs++;
drivers/net/can/usb/ucan.c
407
spin_unlock_irqrestore(&up->context_lock, flags);
drivers/net/can/usb/ucan.c
411
static int ucan_ctrl_command_out(struct ucan_priv *up,
drivers/net/can/usb/ucan.c
414
return usb_control_msg(up->udev,
drivers/net/can/usb/ucan.c
415
usb_sndctrlpipe(up->udev, 0),
drivers/net/can/usb/ucan.c
420
up->intf_index,
drivers/net/can/usb/ucan.c
421
up->ctl_msg_buffer,
drivers/net/can/usb/ucan.c
426
static void ucan_get_fw_str(struct ucan_priv *up, char *fw_str, size_t size)
drivers/net/can/usb/ucan.c
430
ret = usb_control_msg(up->udev, usb_rcvctrlpipe(up->udev, 0),
drivers/net/can/usb/ucan.c
445
static void ucan_parse_device_info(struct ucan_priv *up,
drivers/net/can/usb/ucan.c
449
&up->device_info.bittiming_const;
drivers/net/can/usb/ucan.c
453
up->can.clock.freq = le32_to_cpu(device_info->freq);
drivers/net/can/usb/ucan.c
454
up->device_info.tx_fifo = device_info->tx_fifo;
drivers/net/can/usb/ucan.c
467
up->can.ctrlmode_supported = 0;
drivers/net/can/usb/ucan.c
470
up->can.ctrlmode_supported |= CAN_CTRLMODE_LOOPBACK;
drivers/net/can/usb/ucan.c
472
up->can.ctrlmode_supported |= CAN_CTRLMODE_LISTENONLY;
drivers/net/can/usb/ucan.c
474
up->can.ctrlmode_supported |= CAN_CTRLMODE_3_SAMPLES;
drivers/net/can/usb/ucan.c
476
up->can.ctrlmode_supported |= CAN_CTRLMODE_ONE_SHOT;
drivers/net/can/usb/ucan.c
478
up->can.ctrlmode_supported |= CAN_CTRLMODE_BERR_REPORTING;
drivers/net/can/usb/ucan.c
484
static bool ucan_handle_error_frame(struct ucan_priv *up,
drivers/net/can/usb/ucan.c
488
enum can_state new_state = up->can.state;
drivers/net/can/usb/ucan.c
489
struct net_device_stats *net_stats = &up->netdev->stats;
drivers/net/can/usb/ucan.c
490
struct can_device_stats *can_stats = &up->can.can_stats;
drivers/net/can/usb/ucan.c
533
if (up->can.state == new_state)
drivers/net/can/usb/ucan.c
537
if (up->can.state > new_state) {
drivers/net/can/usb/ucan.c
538
up->can.state = new_state;
drivers/net/can/usb/ucan.c
543
up->can.state = new_state;
drivers/net/can/usb/ucan.c
547
can_bus_off(up->netdev);
drivers/net/can/usb/ucan.c
566
static void ucan_rx_can_msg(struct ucan_priv *up, struct ucan_message_in *m)
drivers/net/can/usb/ucan.c
572
struct net_device_stats *stats = &up->netdev->stats;
drivers/net/can/usb/ucan.c
579
netdev_warn(up->netdev, "invalid input message len: %d\n", len);
drivers/net/can/usb/ucan.c
586
bool busstate_changed = ucan_handle_error_frame(up, m, canid);
drivers/net/can/usb/ucan.c
589
if (!(up->can.ctrlmode & CAN_CTRLMODE_BERR_REPORTING) &&
drivers/net/can/usb/ucan.c
602
netdev_warn(up->netdev,
drivers/net/can/usb/ucan.c
610
skb = alloc_can_skb(up->netdev, &cf);
drivers/net/can/usb/ucan.c
636
static void ucan_tx_complete_msg(struct ucan_priv *up,
drivers/net/can/usb/ucan.c
647
netdev_err(up->netdev, "invalid tx complete length\n");
drivers/net/can/usb/ucan.c
655
if (echo_index >= up->device_info.tx_fifo) {
drivers/net/can/usb/ucan.c
656
up->netdev->stats.tx_errors++;
drivers/net/can/usb/ucan.c
657
netdev_err(up->netdev,
drivers/net/can/usb/ucan.c
664
context = &up->context_array[echo_index];
drivers/net/can/usb/ucan.c
669
if (!ucan_release_context(up, context))
drivers/net/can/usb/ucan.c
672
spin_lock_irqsave(&up->echo_skb_lock, flags);
drivers/net/can/usb/ucan.c
676
up->netdev->stats.tx_packets++;
drivers/net/can/usb/ucan.c
677
up->netdev->stats.tx_bytes +=
drivers/net/can/usb/ucan.c
678
can_get_echo_skb(up->netdev, echo_index, NULL);
drivers/net/can/usb/ucan.c
680
up->netdev->stats.tx_dropped++;
drivers/net/can/usb/ucan.c
681
can_free_echo_skb(up->netdev, echo_index, NULL);
drivers/net/can/usb/ucan.c
683
spin_unlock_irqrestore(&up->echo_skb_lock, flags);
drivers/net/can/usb/ucan.c
692
struct ucan_priv *up = urb->context;
drivers/net/can/usb/ucan.c
693
struct net_device *netdev = up->netdev;
drivers/net/can/usb/ucan.c
699
if (WARN_ON(!up->context_array)) {
drivers/net/can/usb/ucan.c
700
usb_free_coherent(up->udev,
drivers/net/can/usb/ucan.c
701
up->in_ep_size,
drivers/net/can/usb/ucan.c
717
usb_free_coherent(up->udev,
drivers/net/can/usb/ucan.c
718
up->in_ep_size,
drivers/net/can/usb/ucan.c
721
netdev_dbg(up->netdev, "not resubmitting urb; status: %d\n",
drivers/net/can/usb/ucan.c
739
netdev_warn(up->netdev,
drivers/net/can/usb/ucan.c
752
netdev_warn(up->netdev,
drivers/net/can/usb/ucan.c
769
ucan_rx_can_msg(up, m);
drivers/net/can/usb/ucan.c
772
ucan_tx_complete_msg(up, m);
drivers/net/can/usb/ucan.c
775
netdev_warn(up->netdev,
drivers/net/can/usb/ucan.c
789
usb_fill_bulk_urb(urb, up->udev,
drivers/net/can/usb/ucan.c
790
usb_rcvbulkpipe(up->udev,
drivers/net/can/usb/ucan.c
791
up->in_ep_addr),
drivers/net/can/usb/ucan.c
793
up->in_ep_size,
drivers/net/can/usb/ucan.c
795
up);
drivers/net/can/usb/ucan.c
797
usb_anchor_urb(urb, &up->rx_urbs);
drivers/net/can/usb/ucan.c
801
netdev_err(up->netdev,
drivers/net/can/usb/ucan.c
806
usb_free_coherent(up->udev,
drivers/net/can/usb/ucan.c
807
up->in_ep_size,
drivers/net/can/usb/ucan.c
820
struct ucan_priv *up;
drivers/net/can/usb/ucan.c
833
up = context->up;
drivers/net/can/usb/ucan.c
834
if (WARN_ON_ONCE(!up))
drivers/net/can/usb/ucan.c
838
if (!netif_device_present(up->netdev))
drivers/net/can/usb/ucan.c
843
netdev_warn(up->netdev,
drivers/net/can/usb/ucan.c
848
spin_lock_irqsave(&up->echo_skb_lock, flags);
drivers/net/can/usb/ucan.c
849
can_free_echo_skb(up->netdev, context - up->context_array, NULL);
drivers/net/can/usb/ucan.c
850
spin_unlock_irqrestore(&up->echo_skb_lock, flags);
drivers/net/can/usb/ucan.c
852
up->netdev->stats.tx_dropped++;
drivers/net/can/usb/ucan.c
855
if (!ucan_release_context(up, context))
drivers/net/can/usb/ucan.c
856
netdev_err(up->netdev,
drivers/net/can/usb/ucan.c
861
static void ucan_cleanup_rx_urbs(struct ucan_priv *up, struct urb **urbs)
drivers/net/can/usb/ucan.c
868
usb_free_coherent(up->udev,
drivers/net/can/usb/ucan.c
869
up->in_ep_size,
drivers/net/can/usb/ucan.c
879
static int ucan_prepare_and_anchor_rx_urbs(struct ucan_priv *up,
drivers/net/can/usb/ucan.c
893
buf = usb_alloc_coherent(up->udev,
drivers/net/can/usb/ucan.c
894
up->in_ep_size,
drivers/net/can/usb/ucan.c
903
usb_fill_bulk_urb(urbs[i], up->udev,
drivers/net/can/usb/ucan.c
904
usb_rcvbulkpipe(up->udev,
drivers/net/can/usb/ucan.c
905
up->in_ep_addr),
drivers/net/can/usb/ucan.c
907
up->in_ep_size,
drivers/net/can/usb/ucan.c
909
up);
drivers/net/can/usb/ucan.c
913
usb_anchor_urb(urbs[i], &up->rx_urbs);
drivers/net/can/usb/ucan.c
919
ucan_cleanup_rx_urbs(up, urbs);
drivers/net/can/usb/ucan.c
928
static int ucan_submit_rx_urbs(struct ucan_priv *up, struct urb **urbs)
drivers/net/can/usb/ucan.c
938
netdev_err(up->netdev,
drivers/net/can/usb/ucan.c
954
ucan_cleanup_rx_urbs(up, urbs);
drivers/net/can/usb/ucan.c
957
usb_kill_anchored_urbs(&up->rx_urbs);
drivers/net/can/usb/ucan.c
968
struct ucan_priv *up = netdev_priv(netdev);
drivers/net/can/usb/ucan.c
970
ret = ucan_alloc_context_array(up);
drivers/net/can/usb/ucan.c
977
ret = ucan_prepare_and_anchor_rx_urbs(up, urbs);
drivers/net/can/usb/ucan.c
983
if (up->can.ctrlmode & CAN_CTRLMODE_LOOPBACK)
drivers/net/can/usb/ucan.c
985
if (up->can.ctrlmode & CAN_CTRLMODE_LISTENONLY)
drivers/net/can/usb/ucan.c
987
if (up->can.ctrlmode & CAN_CTRLMODE_3_SAMPLES)
drivers/net/can/usb/ucan.c
989
if (up->can.ctrlmode & CAN_CTRLMODE_ONE_SHOT)
drivers/net/can/usb/ucan.c
996
up->ctl_msg_buffer->cmd_start.mode = cpu_to_le16(ctrlmode);
drivers/net/can/usb/ucan.c
999
ret = ucan_ctrl_command_out(up, UCAN_COMMAND_START, 0, 2);
drivers/net/ethernet/3com/3c574_cs.c
953
u8 up;
drivers/net/ethernet/3com/3c574_cs.c
970
up = inb(ioaddr + 9);
drivers/net/ethernet/3com/3c574_cs.c
971
dev->stats.tx_packets += (up&0x30) << 4;
drivers/net/ethernet/3com/3c574_cs.c
979
up = inb(ioaddr + 13);
drivers/net/ethernet/3com/3c59x.c
2875
u8 up = window_read8(vp, 4, 13);
drivers/net/ethernet/3com/3c59x.c
2876
dev->stats.rx_bytes += (up & 0x0f) << 16;
drivers/net/ethernet/3com/3c59x.c
2877
dev->stats.tx_bytes += (up & 0xf0) << 12;
drivers/net/ethernet/broadcom/bcm63xx_enet.c
2008
int val, j, up, advertise, lpa, speed, duplex, media;
drivers/net/ethernet/broadcom/bcm63xx_enet.c
2027
up = (val & BMSR_LSTATUS) ? 1 : 0;
drivers/net/ethernet/broadcom/bcm63xx_enet.c
2028
if (!(up ^ priv->sw_port_link[i]))
drivers/net/ethernet/broadcom/bcm63xx_enet.c
2031
priv->sw_port_link[i] = up;
drivers/net/ethernet/broadcom/bcm63xx_enet.c
2034
if (!up) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
2256
u8 idtype, u16 idval, u8 up)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
2271
app_ent->priority = up;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
2299
static int bnx2x_set_admin_app_up(struct bnx2x *bp, u8 idtype, u16 idval, u8 up)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
2316
admin_priority_app_table[i].priority = up;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
2321
idtype, idval, up);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
2329
if (up)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
2336
u16 idval, u8 up)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
2341
idtype, idval, up);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
2357
return bnx2x_set_admin_app_up(bp, idtype, idval, up);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
710
u8 up = bnx2x_dcbx_dcbnl_app_up(ent);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
713
if (up) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
717
app.priority = delall ? 0 : up;
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
10590
up(&bnx2x_prev_sem);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
10615
up(&bnx2x_prev_sem);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
10630
up(&bnx2x_prev_sem);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
10656
up(&bnx2x_prev_sem);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
10659
up(&bnx2x_prev_sem);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
10682
up(&bnx2x_prev_sem);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
10907
up(&bnx2x_prev_sem);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
14147
up(&bp->stats_lock);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c
1394
up(&bp->stats_lock);
drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c
2002
up(&bp->stats_lock);
drivers/net/ethernet/broadcom/bnxt/bnxt.c
12586
static int bnxt_hwrm_if_change(struct bnxt *bp, bool up)
drivers/net/ethernet/broadcom/bnxt/bnxt.c
12606
if (up)
drivers/net/ethernet/broadcom/bnxt/bnxt.c
12625
} else if (up) {
drivers/net/ethernet/broadcom/bnxt/bnxt.c
12633
if (!up) {
drivers/net/ethernet/brocade/bna/bna_enet.c
502
bfa_fsm_state_decl(bna_ethport, up, struct bna_ethport,
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
3031
bool up;
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
3039
up = netif_running(net_dev);
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
3041
if (up)
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
3048
if (up) {
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
2162
if (priv->link_state.up == state.up)
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
2165
if (state.up) {
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
2174
state.up ? "up" : "down");
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
2744
bool up, need_update;
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
2753
up = netif_running(dev);
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
2756
if (up)
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
2784
if (up) {
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
2795
if (up)
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c
203
dpmac_state->up = 1;
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c
237
dpmac_state->up = 0;
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c
223
WARN_ONCE(state.up > 1, "Garbage read into link_state");
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c
225
return state.up ? true : false;
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c
233
bool up;
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c
246
up = dpaa2_switch_port_is_up(port_priv);
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c
247
if (up) {
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c
270
if (up) {
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c
626
WARN_ONCE(state.up > 1, "Garbage read into link_state");
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c
628
if (state.up != port_priv->link_state) {
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c
629
if (state.up) {
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c
636
port_priv->link_state = state.up;
drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c
180
bool up;
drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c
186
up = netif_running(dev);
drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c
187
if (up)
drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c
211
if (up) {
drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c
228
bool up;
drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c
240
up = netif_running(dev);
drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c
241
if (up)
drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c
277
if (up) {
drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c
297
if (up)
drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c
314
if (!priv->link_state.up)
drivers/net/ethernet/freescale/dpaa2/dpmac.c
141
dpmac_set_field(cmd_params->state, STATE, link_state->up);
drivers/net/ethernet/freescale/dpaa2/dpmac.h
115
int up;
drivers/net/ethernet/freescale/dpaa2/dpni.c
928
state->up = dpni_get_field(rsp_params->flags, LINK_STATE);
drivers/net/ethernet/freescale/dpaa2/dpni.h
543
int up;
drivers/net/ethernet/freescale/dpaa2/dpsw-cmd.h
326
u8 up;
drivers/net/ethernet/freescale/dpaa2/dpsw.c
396
state->up = dpsw_get_field(rsp_params->up, UP);
drivers/net/ethernet/freescale/dpaa2/dpsw.h
281
u8 up;
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
11528
up(&hdev->reset_sem);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
11553
up(&hdev->reset_sem);
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
4626
up(&hdev->reset_sem);
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
1762
up(&hdev->reset_sem);
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
1787
up(&hdev->reset_sem);
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
1903
up(&hdev->reset_sem);
drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c
388
up(&chain->sem);
drivers/net/ethernet/huawei/hinic/hinic_hw_api_cmd.c
405
up(&chain->sem);
drivers/net/ethernet/huawei/hinic/hinic_hw_io.c
102
up(&free_db_area->idx_lock);
drivers/net/ethernet/huawei/hinic/hinic_hw_io.c
71
up(&free_db_area->idx_lock);
drivers/net/ethernet/huawei/hinic/hinic_hw_io.c
82
up(&free_db_area->idx_lock);
drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c
1045
up(&func_to_func->mbox_send_sem);
drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c
897
up(&func_to_func->msg_send_sem);
drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c
303
up(&pf_to_mgmt->sync_msg_lock);
drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c
333
up(&pf_to_mgmt->sync_msg_lock);
drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c
242
up(&wqs->alloc_blocks_lock);
drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c
255
up(&wqs->alloc_blocks_lock);
drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c
274
up(&wqs->alloc_blocks_lock);
drivers/net/ethernet/huawei/hinic/hinic_main.c
1001
up(&nic_dev->mgmt_lock);
drivers/net/ethernet/huawei/hinic/hinic_main.c
501
up(&nic_dev->mgmt_lock);
drivers/net/ethernet/huawei/hinic/hinic_main.c
507
up(&nic_dev->mgmt_lock);
drivers/net/ethernet/huawei/hinic/hinic_main.c
551
up(&nic_dev->mgmt_lock);
drivers/net/ethernet/huawei/hinic/hinic_main.c
629
up(&nic_dev->mgmt_lock);
drivers/net/ethernet/huawei/hinic/hinic_main.c
676
up(&nic_dev->mgmt_lock);
drivers/net/ethernet/huawei/hinic/hinic_main.c
712
up(&nic_dev->mgmt_lock);
drivers/net/ethernet/huawei/hinic/hinic_main.c
740
up(&nic_dev->mgmt_lock);
drivers/net/ethernet/huawei/hinic/hinic_main.c
750
up(&nic_dev->mgmt_lock);
drivers/net/ethernet/huawei/hinic/hinic_main.c
772
up(&nic_dev->mgmt_lock);
drivers/net/ethernet/huawei/hinic/hinic_main.c
776
up(&nic_dev->mgmt_lock);
drivers/net/ethernet/huawei/hinic/hinic_main.c
987
up(&nic_dev->mgmt_lock);
drivers/net/ethernet/intel/i40e/i40e_dcb.c
358
u8 up, selector;
drivers/net/ethernet/intel/i40e/i40e_dcb.c
361
for (up = 0; up < I40E_MAX_USER_PRIORITY; up++) {
drivers/net/ethernet/intel/i40e/i40e_dcb.c
362
if (app->prio_map & BIT(up))
drivers/net/ethernet/intel/i40e/i40e_dcb.c
365
dcbcfg->app[i].priority = up;
drivers/net/ethernet/intel/ice/ice_dcb.c
465
u8 up, selector;
drivers/net/ethernet/intel/ice/ice_dcb.c
468
for (up = 0; up < ICE_MAX_USER_PRIORITY; up++)
drivers/net/ethernet/intel/ice/ice_dcb.c
469
if (app->prio_map & BIT(up))
drivers/net/ethernet/intel/ice/ice_dcb.c
472
dcbcfg->app[i].priority = up;
drivers/net/ethernet/intel/idpf/idpf_idc.c
344
int idpf_idc_vport_dev_ctrl(struct iidc_rdma_core_dev_info *cdev_info, bool up)
drivers/net/ethernet/intel/idpf/idpf_idc.c
348
if (up)
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
212
u8 ixgbe_dcb_get_tc_from_up(struct ixgbe_dcb_config *cfg, int direction, u8 up)
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
215
u8 prio_mask = BIT(up);
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
237
u8 up;
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
239
for (up = 0; up < MAX_USER_PRIORITY; up++)
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c
240
map[up] = ixgbe_dcb_get_tc_from_up(cfg, direction, up);
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
36
u8 up = dcb_getapp(adapter->netdev, &app);
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
372
u8 up = dcb_getapp(netdev, &app);
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
374
adapter->fcoe.up = ffs(up) - 1;
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
38
if (up && !(up & BIT(adapter->fcoe.up)))
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
632
if (app_mask & BIT(adapter->fcoe.up))
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
635
adapter->fcoe.up = app->priority;
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
675
if (app_mask & BIT(adapter->fcoe.up))
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c
678
adapter->fcoe.up = app_mask ?
drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c
1043
return netdev_get_prio_tc_map(adapter->netdev, adapter->fcoe.up);
drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.h
60
u8 up;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
5626
(pb == netdev_get_prio_tc_map(dev, adapter->fcoe.up)))
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
6893
adapter->fcoe.up = IXGBE_FCOE_DEFTC;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
6934
adapter->fcoe.up = 0;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
6964
adapter->fcoe.up = 0;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
8056
u8 up = 0;
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
8059
up = dcb_ieee_getapp_mask(netdev, &app);
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
8061
adapter->default_up = (up > 1) ? (ffs(up) - 1) : 0;
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
143
int octep_ctrl_net_set_link_status(struct octep_device *oct, int vfid, bool up,
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
152
req->link.state = (up) ? OCTEP_CTRL_NET_STATE_UP :
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
158
int octep_ctrl_net_set_rx_state(struct octep_device *oct, int vfid, bool up,
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c
167
req->link.state = (up) ? OCTEP_CTRL_NET_STATE_UP :
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.h
274
int octep_ctrl_net_set_link_status(struct octep_device *oct, int vfid, bool up,
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.h
287
int octep_ctrl_net_set_rx_state(struct octep_device *oct, int vfid, bool up,
drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c
428
static void octep_vf_set_rx_state(struct octep_vf_device *oct, bool up)
drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c
432
err = octep_vf_mbox_set_rx_state(oct, up);
drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c
434
netdev_err(oct->netdev, "Set Rx state to %d failed with err:%d\n", up, err);
drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c
447
static void octep_vf_set_link_status(struct octep_vf_device *oct, bool up)
drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c
451
err = octep_vf_mbox_set_link_status(oct, up);
drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c
453
netdev_err(oct->netdev, "Set link status to %d failed with err:%d\n", up, err);
drivers/net/ethernet/marvell/octeon_ep_vf/octep_vf_main.c
456
oct->link_info.oper_up = up;
drivers/net/ethernet/mellanox/mlx4/cmd.c
2679
up(&priv->cmd.poll_sem);
drivers/net/ethernet/mellanox/mlx4/cmd.c
334
up(&priv->cmd.poll_sem);
drivers/net/ethernet/mellanox/mlx4/cmd.c
403
up(&cmd->event_sem);
drivers/net/ethernet/mellanox/mlx4/cmd.c
656
up(&priv->cmd.poll_sem);
drivers/net/ethernet/mellanox/mlx4/cmd.c
770
up(&cmd->event_sem);
drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
271
u16 id, u8 up)
drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
282
app.priority = up;
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
1831
u8 up;
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
1870
up = (priv->prof->num_up == MLX4_EN_NUM_UP_LOW) ?
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
1872
mlx4_en_setup_tc(dev, up);
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
1571
bool up;
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
1576
up = port_state->link_state == MLX4_PORT_STATE_DEV_EVENT_PORT_UP;
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
1577
if (up == netif_carrier_ok(dev))
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
1579
if (!up) {
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
60
int mlx4_en_setup_tc(struct net_device *dev, u8 up)
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
66
if (up && up != MLX4_EN_NUM_UP_HIGH)
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
69
netdev_set_num_tc(dev, up);
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
72
for (i = 0; i < up; i++) {
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
79
if (up) {
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
767
int mlx4_en_setup_tc(struct net_device *dev, u8 up);
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
1024
up(&cmd->vars.sem);
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
1667
up(&cmd->vars.pages_sem);
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
1669
up(&cmd->vars.sem);
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
1683
up(&cmd->vars.pages_sem);
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
1685
up(&cmd->vars.sem);
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
1889
up(&cmd->vars.pages_sem);
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
1891
up(&cmd->vars.sem);
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
2026
up(&dev->cmd.vars.throttle_sem);
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
2028
up(&dev->cmd.vars.unprivileged_sem);
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
204
up(ent->page_queue ? &cmd->vars.pages_sem : &cmd->vars.sem);
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
2204
up(&dev->cmd.vars.throttle_sem);
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
2206
up(&dev->cmd.vars.unprivileged_sem);
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
2256
up(&dev->cmd.vars.throttle_sem);
drivers/net/ethernet/mellanox/mlx5/core/cmd.c
2258
up(&dev->cmd.vars.unprivileged_sem);
drivers/net/ethernet/mellanox/mlx5/core/en/params.c
615
.uar = c->bfreg->up,
drivers/net/ethernet/mellanox/mlx5/core/en/params.c
815
MLX5_SET(cqc, cqc, uar_page, mdev->priv.bfreg.up->index);
drivers/net/ethernet/mellanox/mlx5/core/en/ptp.c
576
ccp.uar = c->bfreg->up;
drivers/net/ethernet/mellanox/mlx5/core/en/ptp.c
626
ccp.uar = c->bfreg->up;
drivers/net/ethernet/mellanox/mlx5/core/en/selq.c
169
int up;
drivers/net/ethernet/mellanox/mlx5/core/en/selq.c
171
up = selq->num_tcs > 1 ? mlx5e_get_up(priv, skb) : 0;
drivers/net/ethernet/mellanox/mlx5/core/en/selq.c
173
return selq->num_regular_queues + up;
drivers/net/ethernet/mellanox/mlx5/core/en/selq.c
198
int txq_ix, up;
drivers/net/ethernet/mellanox/mlx5/core/en/selq.c
217
up = mlx5e_get_up(priv, skb);
drivers/net/ethernet/mellanox/mlx5/core/en/selq.c
224
up * selq->num_channels;
drivers/net/ethernet/mellanox/mlx5/core/en/selq.c
265
up = mlx5e_get_up(priv, skb);
drivers/net/ethernet/mellanox/mlx5/core/en/selq.c
267
return txq_ix + up * selq->num_channels;
drivers/net/ethernet/mellanox/mlx5/core/en/trap.c
79
ccp.uar = mdev->priv.bfreg.up;
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
130
bool up;
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
136
up = port_state == VPORT_STATE_UP;
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
137
if (up == netif_carrier_ok(priv->netdev))
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
139
if (up) {
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
3611
mdev->priv.bfreg.up, param, cq);
drivers/net/ethernet/mellanox/mlx5/core/eq.c
310
MLX5_SET(eqc, eqc, uar_page, priv->bfreg.up->index);
drivers/net/ethernet/mellanox/mlx5/core/eq.c
323
eq->doorbell = priv->bfreg.up->map + MLX5_EQ_DOORBELL_OFFSET;
drivers/net/ethernet/mellanox/mlx5/core/lib/aso.c
103
MLX5_SET(cqc, cqc, uar_page, mdev->priv.bfreg.up->index);
drivers/net/ethernet/mellanox/mlx5/core/lib/aso.c
132
MLX5_SET(cqc, cqc_data, uar_page, mdev->priv.bfreg.up->index);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/send.c
936
MLX5_SET(cqc, cqc, uar_page, mdev->priv.bfreg.up->index);
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/send.c
959
MLX5_SET(cqc, cqc_data, uar_page, mdev->priv.bfreg.up->index);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
106
up = kzalloc_node(sizeof(*up), GFP_KERNEL, node);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
107
if (!up)
drivers/net/ethernet/mellanox/mlx5/core/uar.c
110
up->mdev = mdev;
drivers/net/ethernet/mellanox/mlx5/core/uar.c
111
up->reg_bitmap = bitmap_zalloc_node(bfregs, GFP_KERNEL, node);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
112
if (!up->reg_bitmap)
drivers/net/ethernet/mellanox/mlx5/core/uar.c
115
up->fp_bitmap = bitmap_zalloc_node(bfregs, GFP_KERNEL, node);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
116
if (!up->fp_bitmap)
drivers/net/ethernet/mellanox/mlx5/core/uar.c
121
set_bit(i, up->reg_bitmap);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
123
set_bit(i, up->fp_bitmap);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
125
up->bfregs = bfregs;
drivers/net/ethernet/mellanox/mlx5/core/uar.c
126
up->fp_avail = bfregs * MLX5_FP_BFREGS_PER_UAR / MLX5_BFREGS_PER_UAR;
drivers/net/ethernet/mellanox/mlx5/core/uar.c
127
up->reg_avail = bfregs * MLX5_NON_FP_BFREGS_PER_UAR / MLX5_BFREGS_PER_UAR;
drivers/net/ethernet/mellanox/mlx5/core/uar.c
129
err = mlx5_cmd_alloc_uar(mdev, &up->index);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
135
pfn = uar2pfn(mdev, up->index);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
137
up->map = ioremap_wc(pfn << PAGE_SHIFT, PAGE_SIZE);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
138
if (!up->map) {
drivers/net/ethernet/mellanox/mlx5/core/uar.c
143
up->map = ioremap(pfn << PAGE_SHIFT, PAGE_SIZE);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
144
if (!up->map) {
drivers/net/ethernet/mellanox/mlx5/core/uar.c
149
kref_init(&up->ref_count);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
151
up->index, up->bfregs);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
152
return up;
drivers/net/ethernet/mellanox/mlx5/core/uar.c
155
if (mlx5_cmd_free_uar(mdev, up->index))
drivers/net/ethernet/mellanox/mlx5/core/uar.c
156
mlx5_core_warn(mdev, "failed to free uar index %d\n", up->index);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
158
bitmap_free(up->fp_bitmap);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
159
bitmap_free(up->reg_bitmap);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
160
kfree(up);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
186
void mlx5_put_uars_page(struct mlx5_core_dev *mdev, struct mlx5_uars_page *up)
drivers/net/ethernet/mellanox/mlx5/core/uar.c
189
kref_put(&up->ref_count, up_rel_func);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
208
struct mlx5_uars_page *up;
drivers/net/ethernet/mellanox/mlx5/core/uar.c
225
up = alloc_uars_page(mdev, map_wc);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
226
if (IS_ERR(up)) {
drivers/net/ethernet/mellanox/mlx5/core/uar.c
228
return PTR_ERR(up);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
230
list_add(&up->list, head);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
232
up = list_entry(head->next, struct mlx5_uars_page, list);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
233
kref_get(&up->ref_count);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
236
bitmap = up->fp_bitmap;
drivers/net/ethernet/mellanox/mlx5/core/uar.c
237
avail = &up->fp_avail;
drivers/net/ethernet/mellanox/mlx5/core/uar.c
239
bitmap = up->reg_bitmap;
drivers/net/ethernet/mellanox/mlx5/core/uar.c
240
avail = &up->reg_avail;
drivers/net/ethernet/mellanox/mlx5/core/uar.c
242
dbi = find_first_bit(bitmap, up->bfregs);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
246
list_del(&up->list);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
248
bfreg->map = up->map + map_offset(mdev, dbi);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
249
bfreg->up = up;
drivers/net/ethernet/mellanox/mlx5/core/uar.c
251
bfreg->index = up->index + dbi / MLX5_BFREGS_PER_UAR;
drivers/net/ethernet/mellanox/mlx5/core/uar.c
274
struct mlx5_uars_page *up,
drivers/net/ethernet/mellanox/mlx5/core/uar.c
283
uar_idx = (bfreg->map - up->map) >> MLX5_ADAPTER_PAGE_SHIFT;
drivers/net/ethernet/mellanox/mlx5/core/uar.c
292
struct mlx5_uars_page *up;
drivers/net/ethernet/mellanox/mlx5/core/uar.c
308
up = bfreg->up;
drivers/net/ethernet/mellanox/mlx5/core/uar.c
309
dbi = addr_to_dbi_in_syspage(mdev, up, bfreg);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
312
avail = &up->fp_avail;
drivers/net/ethernet/mellanox/mlx5/core/uar.c
313
bitmap = up->fp_bitmap;
drivers/net/ethernet/mellanox/mlx5/core/uar.c
315
avail = &up->reg_avail;
drivers/net/ethernet/mellanox/mlx5/core/uar.c
316
bitmap = up->reg_bitmap;
drivers/net/ethernet/mellanox/mlx5/core/uar.c
322
list_add_tail(&up->list, head);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
324
kref_put(&up->ref_count, up_rel_func);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
83
struct mlx5_uars_page *up = container_of(kref, struct mlx5_uars_page, ref_count);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
85
list_del(&up->list);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
86
iounmap(up->map);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
87
if (mlx5_cmd_free_uar(up->mdev, up->index))
drivers/net/ethernet/mellanox/mlx5/core/uar.c
88
mlx5_core_warn(up->mdev, "failed to free uar index %d\n", up->index);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
89
bitmap_free(up->reg_bitmap);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
90
bitmap_free(up->fp_bitmap);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
91
kfree(up);
drivers/net/ethernet/mellanox/mlx5/core/uar.c
97
struct mlx5_uars_page *up;
drivers/net/ethernet/mellanox/mlx5/core/wc.c
103
MLX5_SET(cqc, cqc, uar_page, mdev->priv.bfreg.up->index);
drivers/net/ethernet/mellanox/mlx5/core/wc.c
125
MLX5_SET(cqc, cqc, uar_page, mdev->priv.bfreg.up->index);
drivers/net/ethernet/micrel/ksz884x.c
5487
up(&priv->proc_sem);
drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.c
273
static int sparx5_port_add_addr(struct net_device *dev, bool up)
drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.c
279
if (up)
drivers/net/ethernet/microsoft/mana/hw_channel.c
40
up(&hwc->sema);
drivers/net/ethernet/natsemi/ns83820.c
1446
if ((ISR_RXRCMP & isr) && dev->rx_info.up)
drivers/net/ethernet/natsemi/ns83820.c
1533
dev->rx_info.up = 0;
drivers/net/ethernet/natsemi/ns83820.c
398
int up;
drivers/net/ethernet/natsemi/ns83820.c
589
if (dev->rx_info.up)
drivers/net/ethernet/natsemi/ns83820.c
737
dev->rx_info.up = 1;
drivers/net/ethernet/natsemi/ns83820.c
779
dev->rx_info.up = 0;
drivers/net/ethernet/natsemi/ns83820.c
801
if (dev->rx_info.up) {
drivers/net/ethernet/natsemi/ns83820.c
807
if (dev->rx_info.up && nr_rx_empty(dev) > NR_RX_DESC*3/4)
drivers/net/ethernet/natsemi/ns83820.c
840
if (!info->up)
drivers/net/ethernet/netronome/nfp/nfp_net.h
954
up(&nn->bar_lock);
drivers/net/ethernet/qlogic/qede/qede_dcbnl.c
176
u8 up)
drivers/net/ethernet/qlogic/qede/qede_dcbnl.c
180
return edev->ops->dcb->setapp(edev->cdev, idtype, idval, up);
drivers/net/ethernet/sfc/efx.c
170
efx->link_state.up = false;
drivers/net/ethernet/sfc/efx_common.c
250
if (link_state->up != netif_carrier_ok(efx->net_dev)) {
drivers/net/ethernet/sfc/efx_common.c
253
if (link_state->up)
drivers/net/ethernet/sfc/efx_common.c
260
if (link_state->up)
drivers/net/ethernet/sfc/falcon/efx.c
1123
efx->link_state.up = false;
drivers/net/ethernet/sfc/falcon/efx.c
906
if (link_state->up != netif_carrier_ok(efx->net_dev)) {
drivers/net/ethernet/sfc/falcon/efx.c
909
if (link_state->up)
drivers/net/ethernet/sfc/falcon/efx.c
916
if (link_state->up)
drivers/net/ethernet/sfc/falcon/falcon.c
1050
if (!efx->link_state.up)
drivers/net/ethernet/sfc/falcon/falcon.c
1246
if (!efx->link_state.up || !nic_data->xmac_poll_required)
drivers/net/ethernet/sfc/falcon/falcon.c
1395
!link_state->up || isolate);
drivers/net/ethernet/sfc/falcon/falcon.c
1478
efx->link_state.up = true;
drivers/net/ethernet/sfc/falcon/falcon_boards.c
129
if (EF4_WORKAROUND_7884(efx) && efx->link_state.up)
drivers/net/ethernet/sfc/falcon/net_driver.h
537
bool up;
drivers/net/ethernet/sfc/falcon/net_driver.h
546
return left->up == right->up && left->fd == right->fd &&
drivers/net/ethernet/sfc/falcon/qt202x_phy.c
190
if (efx->link_state.up ||
drivers/net/ethernet/sfc/falcon/qt202x_phy.c
387
bool was_up = efx->link_state.up;
drivers/net/ethernet/sfc/falcon/qt202x_phy.c
389
efx->link_state.up = qt202x_link_ok(efx);
drivers/net/ethernet/sfc/falcon/qt202x_phy.c
397
return efx->link_state.up != was_up;
drivers/net/ethernet/sfc/falcon/selftest.c
608
link_up = link_state->up;
drivers/net/ethernet/sfc/falcon/tenxpress.c
356
efx->link_state.up = sfx7101_link_ok(efx);
drivers/net/ethernet/sfc/falcon/tenxpress.c
361
sfx7101_check_bad_lp(efx, efx->link_state.up);
drivers/net/ethernet/sfc/falcon/txc43128_phy.c
492
bool was_up = efx->link_state.up;
drivers/net/ethernet/sfc/falcon/txc43128_phy.c
494
efx->link_state.up = txc43128_phy_read_link(efx);
drivers/net/ethernet/sfc/falcon/txc43128_phy.c
499
if (efx->link_state.up || (efx->loopback_mode != LOOPBACK_NONE)) {
drivers/net/ethernet/sfc/falcon/txc43128_phy.c
509
return efx->link_state.up != was_up;
drivers/net/ethernet/sfc/mcdi_port_common.c
304
link_state->up = !!(flags & (1 << MC_CMD_GET_LINK_OUT_LINK_UP_LBN));
drivers/net/ethernet/sfc/mcdi_port_common.c
413
efx->link_state.up = false;
drivers/net/ethernet/sfc/net_driver.h
725
bool up;
drivers/net/ethernet/sfc/net_driver.h
734
return left->up == right->up && left->fd == right->fd &&
drivers/net/ethernet/sfc/selftest.c
601
link_up = link_state->up;
drivers/net/ethernet/sfc/siena/efx.c
179
efx->link_state.up = false;
drivers/net/ethernet/sfc/siena/efx_common.c
254
if (link_state->up != netif_carrier_ok(efx->net_dev)) {
drivers/net/ethernet/sfc/siena/efx_common.c
257
if (link_state->up)
drivers/net/ethernet/sfc/siena/efx_common.c
264
if (link_state->up)
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
305
link_state->up = !!(flags & (1 << MC_CMD_GET_LINK_OUT_LINK_UP_LBN));
drivers/net/ethernet/sfc/siena/mcdi_port_common.c
414
efx->link_state.up = false;
drivers/net/ethernet/sfc/siena/net_driver.h
644
bool up;
drivers/net/ethernet/sfc/siena/net_driver.h
653
return left->up == right->up && left->fd == right->fd &&
drivers/net/ethernet/sfc/siena/selftest.c
606
link_up = link_state->up;
drivers/net/ethernet/sfc/tc.c
2088
if (WARN_ON(!efx->tc->up))
drivers/net/ethernet/sfc/tc.c
2898
efx->tc->up = true;
drivers/net/ethernet/sfc/tc.c
2910
if (efx->tc->up)
drivers/net/ethernet/sfc/tc.c
2917
efx->tc->up = false;
drivers/net/ethernet/sfc/tc.h
335
bool up;
drivers/net/ethernet/sfc/tc_bindings.c
129
!efx->tc->up, warn,
drivers/net/ethernet/sfc/tc_conntrack.c
365
if (WARN_ON(!efx->tc->up))
drivers/net/ethernet/ti/netcp_ethss.c
2071
int up)
drivers/net/ethernet/ti/netcp_ethss.c
2076
if (up) {
drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c
317
bool up;
drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c
320
up = !!(status & TXGBE_CFG_PORT_ST_LINK_UP);
drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c
323
phylink_pcs_change(txgbe->pcs, up);
drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c
325
phylink_mac_change(wx->phylink, up);
drivers/net/fddi/skfp/fplustm.c
645
static void mac_ring_up(struct s_smc *smc, int up)
drivers/net/fddi/skfp/fplustm.c
647
if (up) {
drivers/net/phy/phy_device.c
262
static void phy_link_change(struct phy_device *phydev, bool up)
drivers/net/phy/phy_device.c
266
if (up)
drivers/net/phy/phylink.c
1969
static void phylink_phy_change(struct phy_device *phydev, bool up)
drivers/net/phy/phylink.c
1986
pl->phy_state.link = up;
drivers/net/phy/phylink.c
1987
if (!up)
drivers/net/phy/phylink.c
1998
up ? "up" : "down",
drivers/net/phy/phylink.c
2366
static void phylink_link_changed(struct phylink *pl, bool up, const char *what)
drivers/net/phy/phylink.c
2368
if (!up)
drivers/net/phy/phylink.c
2371
phylink_dbg(pl, "%s link %s\n", what, up ? "up" : "down");
drivers/net/phy/phylink.c
2382
void phylink_mac_change(struct phylink *pl, bool up)
drivers/net/phy/phylink.c
2384
phylink_link_changed(pl, up, "mac");
drivers/net/phy/phylink.c
2399
void phylink_pcs_change(struct phylink_pcs *pcs, bool up)
drivers/net/phy/phylink.c
2404
phylink_link_changed(pl, up, "pcs");
drivers/net/tap.c
923
unsigned int __user *up = argp;
drivers/net/tap.c
970
if (put_user(IFF_TAP | IFF_NO_PI | TAP_IFFEATURES, up))
drivers/net/usb/r8152.c
6937
tp->rtl_ops.up(tp);
drivers/net/usb/r8152.c
8528
tp->rtl_ops.up(tp);
drivers/net/usb/r8152.c
887
void (*up)(struct r8152 *tp);
drivers/net/usb/r8152.c
9456
ops->up = rtl8152_up;
drivers/net/usb/r8152.c
9476
ops->up = rtl8153_up;
drivers/net/usb/r8152.c
9498
ops->up = rtl8153b_up;
drivers/net/usb/r8152.c
9520
ops->up = rtl8156_up;
drivers/net/usb/r8152.c
9543
ops->up = rtl8156_up;
drivers/net/usb/r8152.c
9559
ops->up = rtl8153c_up;
drivers/net/wan/hdlc_cisco.c
215
if (!st->up) {
drivers/net/wan/hdlc_cisco.c
225
st->up = 1;
drivers/net/wan/hdlc_cisco.c
251
if (st->up &&
drivers/net/wan/hdlc_cisco.c
253
st->up = 0;
drivers/net/wan/hdlc_cisco.c
273
st->up = st->txseq = st->rxseq = 0;
drivers/net/wan/hdlc_cisco.c
292
st->up = st->txseq = 0;
drivers/net/wan/hdlc_cisco.c
54
int up;
drivers/net/wan/hdlc_x25.c
131
if (!x25st->up) {
drivers/net/wan/hdlc_x25.c
218
x25st->up = true;
drivers/net/wan/hdlc_x25.c
230
x25st->up = false;
drivers/net/wan/hdlc_x25.c
250
if (!x25st->up) {
drivers/net/wan/hdlc_x25.c
26
bool up;
drivers/net/wan/hdlc_x25.c
346
state(hdlc)->up = false;
drivers/net/wan/lapbether.c
132
if (!lapbeth->up)
drivers/net/wan/lapbether.c
192
if (!lapbeth->up)
drivers/net/wan/lapbether.c
335
lapbeth->up = true;
drivers/net/wan/lapbether.c
347
lapbeth->up = false;
drivers/net/wan/lapbether.c
413
lapbeth->up = false;
drivers/net/wan/lapbether.c
56
bool up;
drivers/net/wireless/ath/ath6kl/cfg80211.c
1800
up(&ar->sem);
drivers/net/wireless/ath/ath6kl/cfg80211.c
1809
up(&ar->sem);
drivers/net/wireless/ath/ath6kl/cfg80211.c
489
up(&ar->sem);
drivers/net/wireless/ath/ath6kl/cfg80211.c
502
up(&ar->sem);
drivers/net/wireless/ath/ath6kl/cfg80211.c
509
up(&ar->sem);
drivers/net/wireless/ath/ath6kl/cfg80211.c
524
up(&ar->sem);
drivers/net/wireless/ath/ath6kl/cfg80211.c
550
up(&ar->sem);
drivers/net/wireless/ath/ath6kl/cfg80211.c
572
up(&ar->sem);
drivers/net/wireless/ath/ath6kl/cfg80211.c
596
up(&ar->sem);
drivers/net/wireless/ath/ath6kl/cfg80211.c
628
up(&ar->sem);
drivers/net/wireless/ath/ath6kl/cfg80211.c
653
up(&ar->sem);
drivers/net/wireless/ath/ath6kl/cfg80211.c
853
up(&ar->sem);
drivers/net/wireless/ath/ath6kl/debug.c
112
up(&ar->sem);
drivers/net/wireless/ath/ath6kl/debug.c
1180
up(&ar->sem);
drivers/net/wireless/ath/ath6kl/debug.c
1186
up(&ar->sem);
drivers/net/wireless/ath/ath6kl/debug.c
120
up(&ar->sem);
drivers/net/wireless/ath/ath6kl/init.c
1943
up(&ar->sem);
drivers/net/wireless/ath/ath6kl/txrx.c
110
u8 up = 0, traffic_class, *ip_hdr;
drivers/net/wireless/ath/ath6kl/txrx.c
146
up = ath6kl_wmi_determine_user_priority(
drivers/net/wireless/ath/ath6kl/txrx.c
150
traffic_class = ath6kl_wmi_get_traffic_class(up);
drivers/net/wireless/ath/wcn36xx/hal.h
3776
u8 up;
drivers/net/wireless/ath/wil6210/netdev.c
13
struct net_device *ndev, bool up, bool ok)
drivers/net/wireless/ath/wil6210/netdev.c
24
if ((up && (ndev_i->flags & IFF_UP)) ||
drivers/net/wireless/ath/wil6210/netdev.c
33
bool wil_has_active_ifaces(struct wil6210_priv *wil, bool up, bool ok)
drivers/net/wireless/ath/wil6210/netdev.c
36
return wil_has_other_active_ifaces(wil, NULL, up, ok);
drivers/net/wireless/ath/wil6210/wil6210.h
1210
struct net_device *ndev, bool up, bool ok);
drivers/net/wireless/ath/wil6210/wil6210.h
1211
bool wil_has_active_ifaces(struct wil6210_priv *wil, bool up, bool ok);
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c
1011
if (!wl->pub->up)
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c
1378
wl->pub->up = false;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c
1431
if (wl->pub->up)
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c
410
if (!wl->pub->up) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c
444
if (!wl->pub->up)
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c
998
if (wl->pub->up) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
1817
if (!wlc_hw->up)
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
2294
if (!wlc_hw->up)
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
2599
if (!wlc_hw->up || !wlc->macintmask)
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
3006
if (wlc_hw->up) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
3069
if (!wlc->pub->up)
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
3785
if (wlc_hw->band->bandtype == BRCM_BAND_2G && wlc_hw->up) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
3838
if (wlc_hw->up) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
3851
if (!wlc_hw->up) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
3871
if (!wlc->pub->up)
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
4011
if (wlc->pub->up) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
4021
if (wlc->pub->up) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
4190
if (!wlc_hw->up)
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
4210
if (!wlc->pub->up)
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
4957
wlc_hw->up = true;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
5051
wlc->pub->up = true;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
5083
if (!wlc_hw->up)
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
5109
if (!wlc_hw->up)
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
5112
wlc_hw->up = false;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
5165
if (!wlc->pub->up)
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
5188
wlc->pub->up = false;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
5377
if (!wlc->pub->up && brcms_is_mband_unlocked(wlc)) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
5387
if (wlc->pub->up && (wlc_phy_chanspec_get(wlc->band->pi) != chspec)) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
5516
if (wlc->pub->up && wlc->pub->associated) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
5518
} else if (wlc->pub->up) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
7336
if (wlc->pub->up && (bsscfg->type == BRCMS_TYPE_AP ||
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
7446
if (wlc->pub->up && (bsscfg->type == BRCMS_TYPE_AP ||
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
7531
if (wlc->pub->up)
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c
7808
if (wlc->pub->associated && wlc->pub->up) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.h
346
bool up; /* d11 hardware up and running */
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c
1195
if (pi->sh->up) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c
1796
} else if (pi->hwpwrctrl && pi->sh->up) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c
370
if (!pi->sh->up) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c
697
pi->sh->up = newstate;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h
476
bool up;
drivers/net/wireless/broadcom/brcm80211/brcmsmac/pub.h
152
bool up; /* interface up and running */
drivers/net/wireless/broadcom/brcm80211/brcmsmac/stf.c
55
if (wlc->pub->up) {
drivers/net/wireless/broadcom/brcm80211/brcmsmac/stf.c
96
if (!wlc->pub->up) {
drivers/net/wireless/intel/ipw2x00/ipw2200.c
10610
INIT_WORK(&priv->up, ipw_bg_up);
drivers/net/wireless/intel/ipw2x00/ipw2200.c
11188
container_of(work, struct ipw_priv, up);
drivers/net/wireless/intel/ipw2x00/ipw2200.c
11760
cancel_work_sync(&priv->up);
drivers/net/wireless/intel/ipw2x00/ipw2200.c
11848
schedule_work(&priv->up);
drivers/net/wireless/intel/ipw2x00/ipw2200.c
1767
schedule_work(&priv->up);
drivers/net/wireless/intel/ipw2x00/ipw2200.h
1292
struct work_struct up;
drivers/net/wireless/intel/iwlwifi/mei/iwl-mei.h
464
void iwl_mei_device_state(bool up);
drivers/net/wireless/intel/iwlwifi/mei/iwl-mei.h
531
static inline void iwl_mei_device_state(bool up)
drivers/net/wireless/intel/iwlwifi/mei/main.c
1767
void iwl_mei_device_state(bool up)
drivers/net/wireless/intel/iwlwifi/mei/main.c
1781
mei->device_down = !up;
drivers/net/wireless/intel/iwlwifi/mei/main.c
1783
if (up || !mei->csme_taking_ownership)
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
2643
static inline void iwl_mvm_mei_device_state(struct iwl_mvm *mvm, bool up)
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
2646
iwl_mei_device_state(up);
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
1245
void qtnf_netdev_updown(struct net_device *ndev, bool up)
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
1249
if (qtnf_cmd_send_updown_intf(vif, up))
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
1251
up ? "UP" : "DOWN", vif->mac->macid, vif->vifid);
drivers/net/wireless/quantenna/qtnfmac/commands.c
2213
int qtnf_cmd_send_updown_intf(struct qtnf_vif *vif, bool up)
drivers/net/wireless/quantenna/qtnfmac/commands.c
2226
cmd->if_up = !!up;
drivers/net/wireless/quantenna/qtnfmac/commands.h
59
bool up);
drivers/net/wireless/quantenna/qtnfmac/core.h
142
void qtnf_netdev_updown(struct net_device *ndev, bool up);
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c
1580
static int up, dn, m, n, wait_cnt;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c
1664
up = 0;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c
1676
up, dn, m, n, wait_cnt);
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c
1680
up++;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c
1686
if (up >= n) {
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c
1689
up = 0;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c
1695
up--;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c
1698
if (up <= 0)
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c
1699
up = 0;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c
1711
up = 0;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c
1727
up = 0;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c
1422
static s32 up, dn, m, n, wait_count;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c
1442
up = 0;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c
1460
up = 0;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c
1478
up++;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c
1484
if (up >= n) {
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c
1490
up = 0;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c
1498
up--;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c
1501
if (up <= 0)
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c
1502
up = 0;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c
1522
up = 0;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c
1547
up = 0;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c
1784
static s32 up, dn, m, n, wait_count;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c
1890
up = 0;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c
1908
up, dn, m, n, wait_count);
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c
1913
up++;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c
1919
if (up >= n) {
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c
1925
up = 0;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c
1932
up--;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c
1935
if (up <= 0)
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c
1936
up = 0;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c
1956
up = 0;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c
1981
up = 0;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c
1699
static long up, dn, m, n, wait_count;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c
1776
up = 0;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c
1789
(int)up, (int)dn, (int)m, (int)n, (int)wait_count);
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c
1795
up++;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c
1801
if (up >= n) {
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c
1807
up = 0;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c
1815
up--;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c
1818
if (up <= 0)
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c
1819
up = 0;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c
1836
up = 0;
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c
1858
up = 0;
drivers/net/wireless/realtek/rtw88/phy.c
514
bool up;
drivers/net/wireless/realtek/rtw88/phy.c
520
up = igi > igi_history[0];
drivers/net/wireless/realtek/rtw88/phy.c
521
igi_bitmap |= up;
drivers/net/wireless/st/cw1200/pm.c
298
up(&priv->scan.lock);
drivers/net/wireless/st/cw1200/pm.c
320
up(&priv->scan.lock);
drivers/net/wireless/st/cw1200/scan.c
191
up(&priv->scan.lock);
drivers/net/wireless/st/cw1200/scan.c
291
up(&priv->scan.lock);
drivers/net/wireless/st/cw1200/scan.c
395
up(&priv->scan.lock);
drivers/net/wireless/st/cw1200/scan.c
455
up(&priv->scan.lock);
drivers/net/wireless/st/cw1200/scan.c
97
up(&priv->scan.lock);
drivers/net/wireless/st/cw1200/sta.c
106
up(&priv->scan.lock);
drivers/net/wireless/st/cw1200/sta.c
435
up(&priv->scan.lock);
drivers/net/wireless/st/cw1200/sta.c
605
up(&priv->scan.lock);
drivers/net/wireless/st/cw1200/sta.c
986
up(&priv->scan.lock);
drivers/nfc/nfcsim.c
190
if (!dev->up) {
drivers/nfc/nfcsim.c
207
if (!dev->up) {
drivers/nfc/nfcsim.c
251
dev->up = on;
drivers/nfc/nfcsim.c
263
dev->up = true;
drivers/nfc/nfcsim.c
293
dev->up = true;
drivers/nfc/nfcsim.c
40
bool up;
drivers/nfc/nfcsim.c
416
dev->up = false;
drivers/nfc/st95hf/core.c
793
up(&stcontext->exchange_lock);
drivers/nfc/st95hf/core.c
850
up(&stcontext->exchange_lock);
drivers/nfc/st95hf/core.c
863
up(&stcontext->exchange_lock);
drivers/nfc/st95hf/core.c
975
up(&stcontext->exchange_lock);
drivers/ntb/test/ntb_tool.c
294
int up;
drivers/ntb/test/ntb_tool.c
296
up = ntb_link_is_up(tc->ntb, &speed, &width);
drivers/ntb/test/ntb_tool.c
299
up ? "up" : "down", speed, width);
drivers/nvme/target/pr.c
253
up(&pr->pr_sem);
drivers/nvme/target/pr.c
308
up(&pr->pr_sem);
drivers/nvme/target/pr.c
371
up(&pr->pr_sem);
drivers/nvme/target/pr.c
610
up(&ns->pr.pr_sem);
drivers/nvme/target/pr.c
693
up(&pr->pr_sem);
drivers/nvme/target/pr.c
796
up(&pr->pr_sem);
drivers/nvmem/lan9662-otpc.c
47
static int lan9662_otp_power(struct lan9662_otp *otp, bool up)
drivers/nvmem/lan9662-otpc.c
51
if (up) {
drivers/opp/core.c
1201
struct dev_pm_opp *opp, bool up)
drivers/opp/core.c
1215
if (up) {
drivers/parport/ieee1284.c
38
up (&port->physport->ieee1284.irq);
drivers/pci/controller/pci-tegra.c
2507
bool up = false, active = false;
drivers/pci/controller/pci-tegra.c
2516
up = true;
drivers/pci/controller/pci-tegra.c
2525
if (up)
drivers/pci/controller/pci-tegra.c
2529
if (up)
drivers/pci/switch/switchtec.c
1118
struct switchtec_ioctl_pff_port __user *up)
drivers/pci/switch/switchtec.c
1125
if (copy_from_user(&p, up, sizeof(p)))
drivers/pci/switch/switchtec.c
1158
if (copy_to_user(up, &p, sizeof(p)))
drivers/pci/switch/switchtec.c
1165
struct switchtec_ioctl_pff_port __user *up)
drivers/pci/switch/switchtec.c
1170
if (copy_from_user(&p, up, sizeof(p)))
drivers/pci/switch/switchtec.c
1196
if (copy_to_user(up, &p, sizeof(p)))
drivers/pinctrl/intel/pinctrl-intel.c
768
u32 term = 0, up = 0, value;
drivers/pinctrl/intel/pinctrl-intel.c
797
up = PADCFG1_TERM_UP;
drivers/pinctrl/intel/pinctrl-intel.c
841
value = (value & ~PADCFG1_TERM_UP) | up;
drivers/platform/raspberrypi/vchiq-interface/vchiq_core.c
1677
up(&drv_mgmt->free_fragments_mutex);
drivers/platform/raspberrypi/vchiq-interface/vchiq_core.c
1738
up(&drv_mgmt->free_fragments_mutex);
drivers/platform/raspberrypi/vchiq-interface/vchiq_core.c
1739
up(&drv_mgmt->free_fragments_sema);
drivers/platform/x86/amd/hsmp/hsmp.c
223
up(&sock->hsmp_sem);
drivers/platform/x86/intel/ifs/sysfs.c
105
up(&ifs_sem);
drivers/platform/x86/intel/ifs/sysfs.c
79
up(&ifs_sem);
drivers/power/supply/cw2015_battery.c
250
#define HYSTERESIS(current, previous, up, down) \
drivers/power/supply/cw2015_battery.c
251
(((current) < (previous) + (up)) && ((current) > (previous) - (down)))
drivers/scsi/aha1542.h
73
#define scsi2int(up) ( (((long)*(up)) << 16) + (((long)(up)[1]) << 8) + ((long)(up)[2]) )
drivers/scsi/aha1542.h
75
#define xscsi2int(up) ( (((long)(up)[0]) << 24) + (((long)(up)[1]) << 16) \
drivers/scsi/aha1542.h
76
+ (((long)(up)[2]) << 8) + ((long)(up)[3]) )
drivers/scsi/aha1740.h
85
#define any2scsi(up, p) \
drivers/scsi/aha1740.h
86
(up)[0] = (((unsigned long)(p)) >> 16) ; \
drivers/scsi/aha1740.h
87
(up)[1] = (((unsigned long)(p)) >> 8); \
drivers/scsi/aha1740.h
88
(up)[2] = ((unsigned long)(p));
drivers/scsi/aha1740.h
90
#define scsi2int(up) ( (((long)*(up)) << 16) + (((long)(up)[1]) << 8) + ((long)(up)[2]) )
drivers/scsi/aha1740.h
92
#define xany2scsi(up, p) \
drivers/scsi/aha1740.h
93
(up)[0] = ((long)(p)) >> 24; \
drivers/scsi/aha1740.h
94
(up)[1] = ((long)(p)) >> 16; \
drivers/scsi/aha1740.h
95
(up)[2] = ((long)(p)) >> 8; \
drivers/scsi/aha1740.h
96
(up)[3] = ((long)(p));
drivers/scsi/aha1740.h
98
#define xscsi2int(up) ( (((long)(up)[0]) << 24) + (((long)(up)[1]) << 16) \
drivers/scsi/aha1740.h
99
+ (((long)(up)[2]) << 8) + ((long)(up)[3]) )
drivers/scsi/esas2r/esas2r_flash.c
1200
up(&a->nvram_semaphore);
drivers/scsi/esas2r/esas2r_flash.c
1206
up(&a->nvram_semaphore);
drivers/scsi/esas2r/esas2r_flash.c
1250
up(&a->nvram_semaphore);
drivers/scsi/esas2r/esas2r_flash.c
1277
up(&a->nvram_semaphore);
drivers/scsi/esas2r/esas2r_flash.c
1288
up(&a->nvram_semaphore);
drivers/scsi/esas2r/esas2r_ioctl.c
290
up(&buffered_ioctl_semaphore);
drivers/scsi/fcoe/fcoe.c
2114
u8 fup, up;
drivers/scsi/fcoe/fcoe.c
2127
up = dcb_ieee_getapp_mask(netdev, &app);
drivers/scsi/fcoe/fcoe.c
2132
up = dcb_getapp(netdev, &app);
drivers/scsi/fcoe/fcoe.c
2137
fcoe_prio = ffs(up) ? ffs(up) - 1 : 0;
drivers/scsi/hisi_sas/hisi_sas_main.c
1242
up(&hisi_hba->sem);
drivers/scsi/hisi_sas/hisi_sas_main.c
1338
up(&hisi_hba->sem);
drivers/scsi/hisi_sas/hisi_sas_main.c
1636
up(&hisi_hba->sem);
drivers/scsi/hisi_sas/hisi_sas_main.c
1649
up(&hisi_hba->sem);
drivers/scsi/hisi_sas/hisi_sas_main.c
1672
up(&hisi_hba->sem);
drivers/scsi/hisi_sas/hisi_sas_main.c
2030
up(&hisi_hba->sem);
drivers/scsi/hisi_sas/hisi_sas_main.c
536
up(&hisi_hba->sem);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
4001
up(&hisi_hba->sem);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
4004
up(&hisi_hba->sem);
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
5143
up(&hisi_hba->sem);
drivers/scsi/megaraid/megaraid_mm.c
601
up(&adp->kioc_semaphore);
drivers/scsi/megaraid/megaraid_mm.c
667
up(&adp->kioc_semaphore);
drivers/scsi/megaraid/megaraid_sas_base.c
8569
up(&instance->ioctl_sem);
drivers/scsi/scsi_debug.c
5085
u8 *up;
drivers/scsi/scsi_debug.c
5160
for (k = 0, up = lrdp + lrd_size; k < num_lrd; ++k, up += lrd_size) {
drivers/scsi/scsi_debug.c
5161
lba = get_unaligned_be64(up + 0);
drivers/scsi/scsi_debug.c
5162
num = get_unaligned_be32(up + 8);
drivers/scsi/scsi_debug.c
5173
ei_lba = is_16 ? 0 : get_unaligned_be32(up + 12);
drivers/scsi/smartpqi/smartpqi_init.c
4703
up(&ctrl_info->sync_request_sem);
drivers/staging/rtl8723bs/core/rtw_xmit.c
1790
struct tx_servq *rtw_get_sta_pending(struct adapter *padapter, struct sta_info *psta, signed int up, u8 *ac)
drivers/staging/rtl8723bs/core/rtw_xmit.c
1794
switch (up) {
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
1356
static s32 up, dn, m, n, WaitCount;
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
1374
up = 0;
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
1390
up = 0;
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
1408
up++;
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
1414
if (up >= n) { /* if 連續 n 個2秒 retry count為0, 則調寬WiFi duration */
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
1417
up = 0;
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
1422
up--;
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
1425
if (up <= 0)
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
1426
up = 0;
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
1438
up = 0;
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
1453
up = 0;
drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c
1174
static s32 up, dn, m, n, WaitCount;
drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c
1216
up = 0;
drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c
1229
up++;
drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c
1235
if (up >= n) { /* if 連續 n 個2秒 retry count為0, 則調寬WiFi duration */
drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c
1238
up = 0;
drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c
1243
up--;
drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c
1246
if (up <= 0)
drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c
1247
up = 0;
drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c
1259
up = 0;
drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c
1274
up = 0;
drivers/staging/rtl8723bs/include/rtw_xmit.h
440
struct tx_servq *rtw_get_sta_pending(struct adapter *padapter, struct sta_info *psta, signed int up, u8 *ac);
drivers/target/iscsi/iscsi_target.c
233
up(&tpg->np_login_sem);
drivers/target/iscsi/iscsi_target.c
254
up(&tpg->np_login_sem);
drivers/target/target_core_sbc.c
369
up(&dev->caw_sem);
drivers/target/target_core_sbc.c
562
up(&dev->caw_sem);
drivers/target/target_core_sbc.c
594
up(&dev->caw_sem);
drivers/tee/tee_core.c
499
struct tee_ioctl_param __user *up = uparams + n;
drivers/tee/tee_core.c
505
if (put_user(p->u.value.a, &up->a) ||
drivers/tee/tee_core.c
506
put_user(p->u.value.b, &up->b) ||
drivers/tee/tee_core.c
507
put_user(p->u.value.c, &up->c))
drivers/tee/tee_core.c
512
if (put_user((u64)p->u.ubuf.size, &up->b))
drivers/tee/tee_core.c
517
if (put_user(p->u.objref.id, &up->a) ||
drivers/tee/tee_core.c
518
put_user(p->u.objref.flags, &up->b))
drivers/tee/tee_core.c
523
if (put_user((u64)p->u.memref.size, &up->b))
drivers/thunderbolt/clx.c
213
struct tb_port *up, *down;
drivers/thunderbolt/clx.c
225
up = tb_upstream_port(sw);
drivers/thunderbolt/clx.c
228
clx = tb_port_clx(up);
drivers/thunderbolt/clx.c
242
struct tb_port *up, *down;
drivers/thunderbolt/clx.c
248
up = tb_upstream_port(sw);
drivers/thunderbolt/clx.c
250
ret = tb_port_pm_secondary_enable(up);
drivers/thunderbolt/clx.c
325
struct tb_port *up, *down;
drivers/thunderbolt/clx.c
352
up = tb_upstream_port(sw);
drivers/thunderbolt/clx.c
355
up_clx_support = tb_port_clx_supported(up, clx);
drivers/thunderbolt/clx.c
358
tb_port_dbg(up, "CLx: %s %ssupported\n", clx_name(clx),
drivers/thunderbolt/clx.c
366
ret = tb_port_clx_enable(up, clx);
drivers/thunderbolt/clx.c
372
tb_port_clx_disable(up, clx);
drivers/thunderbolt/clx.c
378
tb_port_clx_disable(up, clx);
drivers/thunderbolt/clx.c
401
struct tb_port *up, *down;
drivers/thunderbolt/clx.c
413
up = tb_upstream_port(sw);
drivers/thunderbolt/clx.c
416
ret = tb_port_clx_disable(up, clx);
drivers/thunderbolt/lc.c
517
struct tb_port *up;
drivers/thunderbolt/lc.c
524
up = tb_upstream_port(sw);
drivers/thunderbolt/lc.c
525
cap = find_port_lc_cap(up);
drivers/thunderbolt/switch.c
2852
const struct tb_port *up = tb_upstream_port(sw);
drivers/thunderbolt/switch.c
2854
if (!up->dual_link_port || !up->dual_link_port->remote)
drivers/thunderbolt/switch.c
2864
struct tb_port *up;
drivers/thunderbolt/switch.c
2871
up = tb_upstream_port(sw);
drivers/thunderbolt/switch.c
2873
ret = tb_port_get_link_speed(up);
drivers/thunderbolt/switch.c
2880
ret = tb_port_get_link_width(up);
drivers/thunderbolt/switch.c
2897
struct tb_port *up, *down;
drivers/thunderbolt/switch.c
2912
up = tb_upstream_port(sw);
drivers/thunderbolt/switch.c
2915
up->bonded = bonded;
drivers/thunderbolt/switch.c
2916
if (up->dual_link_port)
drivers/thunderbolt/switch.c
2917
up->dual_link_port->bonded = bonded;
drivers/thunderbolt/switch.c
2918
tb_port_update_credits(up);
drivers/thunderbolt/switch.c
2925
if (tb_port_get_link_generation(up) < 4)
drivers/thunderbolt/switch.c
2951
struct tb_port *up, *down;
drivers/thunderbolt/switch.c
2958
up = tb_upstream_port(sw);
drivers/thunderbolt/switch.c
2961
if (!tb_port_width_supported(up, TB_LINK_WIDTH_DUAL) ||
drivers/thunderbolt/switch.c
2972
ret = tb_port_lane_bonding_enable(up);
drivers/thunderbolt/switch.c
2974
tb_port_warn(up, "failed to enable lane bonding\n");
drivers/thunderbolt/switch.c
2981
tb_port_lane_bonding_disable(up);
drivers/thunderbolt/switch.c
3003
struct tb_port *up, *down;
drivers/thunderbolt/switch.c
3006
up = tb_upstream_port(sw);
drivers/thunderbolt/switch.c
3007
if (!up->bonded)
drivers/thunderbolt/switch.c
3015
ret = tb_port_get_link_generation(up);
drivers/thunderbolt/switch.c
3022
tb_port_lane_bonding_disable(up);
drivers/thunderbolt/switch.c
3035
struct tb_port *up, *down, *port;
drivers/thunderbolt/switch.c
3039
up = tb_upstream_port(sw);
drivers/thunderbolt/switch.c
3047
port = up;
drivers/thunderbolt/switch.c
3050
ret = tb_port_set_link_width(up, width);
drivers/thunderbolt/switch.c
3067
ret = tb_port_wait_for_link_width(up, width, 100);
drivers/thunderbolt/switch.c
3078
struct tb_port *up, *down;
drivers/thunderbolt/switch.c
3081
up = tb_upstream_port(sw);
drivers/thunderbolt/switch.c
3084
ret = tb_port_set_link_width(up, TB_LINK_WIDTH_DUAL);
drivers/thunderbolt/switch.c
3099
ret = usb4_port_asym_start(up);
drivers/thunderbolt/switch.c
3105
ret = tb_port_wait_for_link_width(up, TB_LINK_WIDTH_DUAL, 100);
drivers/thunderbolt/switch.c
3128
struct tb_port *up, *down;
drivers/thunderbolt/switch.c
3134
up = tb_upstream_port(sw);
drivers/thunderbolt/switch.c
3177
tb_port_update_credits(up);
drivers/thunderbolt/switch.c
3199
struct tb_port *up, *down;
drivers/thunderbolt/switch.c
3205
up = tb_upstream_port(sw);
drivers/thunderbolt/switch.c
3206
if (tb_switch_is_usb4(up->sw))
drivers/thunderbolt/switch.c
3207
ret = usb4_port_configure(up);
drivers/thunderbolt/switch.c
3209
ret = tb_lc_configure_port(up);
drivers/thunderbolt/switch.c
3213
down = up->remote;
drivers/thunderbolt/switch.c
3228
struct tb_port *up, *down;
drivers/thunderbolt/switch.c
3238
up = tb_upstream_port(sw);
drivers/thunderbolt/switch.c
3239
down = up->remote;
drivers/thunderbolt/switch.c
3248
up = tb_upstream_port(sw);
drivers/thunderbolt/switch.c
3249
if (tb_switch_is_usb4(up->sw))
drivers/thunderbolt/switch.c
3250
usb4_port_unconfigure(up);
drivers/thunderbolt/switch.c
3252
tb_lc_unconfigure_port(up);
drivers/thunderbolt/tb.c
1045
struct tb_port *up;
drivers/thunderbolt/tb.c
1058
tb_for_each_upstream_port_on_path(src_port, dst_port, up) {
drivers/thunderbolt/tb.c
1059
struct tb_port *down = tb_switch_downstream_port(up->sw);
drivers/thunderbolt/tb.c
1063
ret = tb_consumed_dp_bandwidth(tb, src_port, dst_port, up,
drivers/thunderbolt/tb.c
1097
if (up->sw->link_width == width_up)
drivers/thunderbolt/tb.c
1100
if (!tb_port_width_supported(up, width_up) ||
drivers/thunderbolt/tb.c
1114
tb_sw_dbg(up->sw, "configuring asymmetric link\n");
drivers/thunderbolt/tb.c
1120
ret = tb_switch_set_link_width(up->sw, width_up);
drivers/thunderbolt/tb.c
1122
tb_sw_warn(up->sw, "failed to set link width\n");
drivers/thunderbolt/tb.c
1152
struct tb_port *up;
drivers/thunderbolt/tb.c
1165
tb_for_each_upstream_port_on_path(src_port, dst_port, up) {
drivers/thunderbolt/tb.c
1169
if (up->sw->link_width <= TB_LINK_WIDTH_DUAL)
drivers/thunderbolt/tb.c
1172
if (up->sw->is_unplugged)
drivers/thunderbolt/tb.c
1175
ret = tb_consumed_dp_bandwidth(tb, src_port, dst_port, up,
drivers/thunderbolt/tb.c
1194
if (up->sw->link_width == TB_LINK_WIDTH_DUAL)
drivers/thunderbolt/tb.c
1205
up->sw->preferred_link_width > TB_LINK_WIDTH_DUAL) {
drivers/thunderbolt/tb.c
1206
tb_sw_dbg(up->sw, "keeping preferred asymmetric link\n");
drivers/thunderbolt/tb.c
1216
tb_sw_dbg(up->sw, "configuring symmetric link\n");
drivers/thunderbolt/tb.c
1218
ret = tb_switch_set_link_width(up->sw, TB_LINK_WIDTH_DUAL);
drivers/thunderbolt/tb.c
1220
tb_sw_warn(up->sw, "failed to set link width\n");
drivers/thunderbolt/tb.c
1232
static void tb_configure_link(struct tb_port *down, struct tb_port *up,
drivers/thunderbolt/tb.c
1238
down->remote = up;
drivers/thunderbolt/tb.c
1239
up->remote = down;
drivers/thunderbolt/tb.c
1240
if (down->dual_link_port && up->dual_link_port) {
drivers/thunderbolt/tb.c
1241
down->dual_link_port->remote = up->dual_link_port;
drivers/thunderbolt/tb.c
1242
up->dual_link_port->remote = down->dual_link_port;
drivers/thunderbolt/tb.c
1258
tb_port_get_link_generation(up) >= 4 &&
drivers/thunderbolt/tb.c
1259
up->sw->link_width == TB_LINK_WIDTH_DUAL) {
drivers/thunderbolt/tb.c
1263
tb_configure_sym(tb, host_port, up, false);
drivers/thunderbolt/tb.c
2257
struct tb_port *up;
drivers/thunderbolt/tb.c
2259
up = tb_switch_find_port(sw, TB_TYPE_PCIE_UP);
drivers/thunderbolt/tb.c
2260
if (WARN_ON(!up))
drivers/thunderbolt/tb.c
2263
tunnel = tb_find_tunnel(tb, TB_TUNNEL_PCI, NULL, up);
drivers/thunderbolt/tb.c
2277
struct tb_port *up, *down, *port;
drivers/thunderbolt/tb.c
2281
up = tb_switch_find_port(sw, TB_TYPE_PCIE_UP);
drivers/thunderbolt/tb.c
2282
if (!up)
drivers/thunderbolt/tb.c
2294
tunnel = tb_tunnel_alloc_pci(tb, up, down);
drivers/thunderbolt/tb.c
2299
tb_port_info(up,
drivers/thunderbolt/tb.c
909
struct tb_port *up, *down, *port;
drivers/thunderbolt/tb.c
918
up = tb_switch_find_port(sw, TB_TYPE_USB3_UP);
drivers/thunderbolt/tb.c
919
if (!up)
drivers/thunderbolt/tb.c
946
ret = tb_release_unused_usb3_bandwidth(tb, down, up);
drivers/thunderbolt/tb.c
951
ret = tb_available_bandwidth(tb, down, up, &available_up, &available_down,
drivers/thunderbolt/tb.c
956
tb_port_dbg(up, "available bandwidth for new USB3 tunnel %d/%d Mb/s\n",
drivers/thunderbolt/tb.c
966
down, up);
drivers/thunderbolt/tb.c
968
tunnel = tb_tunnel_alloc_usb3(tb, up, down, available_up,
drivers/thunderbolt/tb.c
976
tb_port_info(up,
drivers/thunderbolt/tb.c
984
tb_reclaim_usb3_bandwidth(tb, down, up);
drivers/thunderbolt/tb.c
992
tb_reclaim_usb3_bandwidth(tb, down, up);
drivers/thunderbolt/test.c
1338
struct tb_port *down, *up;
drivers/thunderbolt/test.c
1356
up = &dev1->ports[9];
drivers/thunderbolt/test.c
1357
tunnel1 = tb_tunnel_alloc_pci(NULL, up, down);
drivers/thunderbolt/test.c
1361
KUNIT_EXPECT_PTR_EQ(test, tunnel1->dst_port, up);
drivers/thunderbolt/test.c
1365
KUNIT_EXPECT_PTR_EQ(test, tunnel1->paths[0]->hops[1].out_port, up);
drivers/thunderbolt/test.c
1367
KUNIT_EXPECT_PTR_EQ(test, tunnel1->paths[1]->hops[0].in_port, up);
drivers/thunderbolt/test.c
1371
up = &dev2->ports[9];
drivers/thunderbolt/test.c
1372
tunnel2 = tb_tunnel_alloc_pci(NULL, up, down);
drivers/thunderbolt/test.c
1376
KUNIT_EXPECT_PTR_EQ(test, tunnel2->dst_port, up);
drivers/thunderbolt/test.c
1380
KUNIT_EXPECT_PTR_EQ(test, tunnel2->paths[0]->hops[1].out_port, up);
drivers/thunderbolt/test.c
1382
KUNIT_EXPECT_PTR_EQ(test, tunnel2->paths[1]->hops[0].in_port, up);
drivers/thunderbolt/test.c
1672
struct tb_port *down, *up;
drivers/thunderbolt/test.c
1690
up = &dev1->ports[16];
drivers/thunderbolt/test.c
1691
tunnel1 = tb_tunnel_alloc_usb3(NULL, up, down, 0, 0);
drivers/thunderbolt/test.c
1695
KUNIT_EXPECT_PTR_EQ(test, tunnel1->dst_port, up);
drivers/thunderbolt/test.c
1699
KUNIT_EXPECT_PTR_EQ(test, tunnel1->paths[0]->hops[1].out_port, up);
drivers/thunderbolt/test.c
1701
KUNIT_EXPECT_PTR_EQ(test, tunnel1->paths[1]->hops[0].in_port, up);
drivers/thunderbolt/test.c
1705
up = &dev2->ports[16];
drivers/thunderbolt/test.c
1706
tunnel2 = tb_tunnel_alloc_usb3(NULL, up, down, 0, 0);
drivers/thunderbolt/test.c
1710
KUNIT_EXPECT_PTR_EQ(test, tunnel2->dst_port, up);
drivers/thunderbolt/test.c
1714
KUNIT_EXPECT_PTR_EQ(test, tunnel2->paths[0]->hops[1].out_port, up);
drivers/thunderbolt/test.c
1716
KUNIT_EXPECT_PTR_EQ(test, tunnel2->paths[1]->hops[0].in_port, up);
drivers/thunderbolt/test.c
2026
struct tb_port *up, *down;
drivers/thunderbolt/test.c
2034
up = &dev->ports[9];
drivers/thunderbolt/test.c
2035
tunnel = tb_tunnel_alloc_pci(NULL, up, down);
drivers/thunderbolt/test.c
2059
struct tb_port *up, *down;
drivers/thunderbolt/test.c
2067
up = &dev->ports[9];
drivers/thunderbolt/test.c
2068
tunnel = tb_tunnel_alloc_pci(NULL, up, down);
drivers/thunderbolt/test.c
2092
struct tb_port *up, *down;
drivers/thunderbolt/test.c
2100
up = &dev->ports[9];
drivers/thunderbolt/test.c
2101
tunnel = tb_tunnel_alloc_pci(NULL, up, down);
drivers/thunderbolt/test.c
2125
struct tb_port *up, *down;
drivers/thunderbolt/test.c
2148
up = &dev->ports[9];
drivers/thunderbolt/test.c
2149
tunnel = tb_tunnel_alloc_pci(NULL, up, down);
drivers/thunderbolt/test.c
2219
struct tb_port *up, *down;
drivers/thunderbolt/test.c
2227
up = &dev->ports[16];
drivers/thunderbolt/test.c
2228
tunnel = tb_tunnel_alloc_usb3(NULL, up, down, 0, 0);
drivers/thunderbolt/test.c
2385
struct tb_port *up, *down;
drivers/thunderbolt/test.c
2390
up = &dev->ports[9];
drivers/thunderbolt/test.c
2391
pcie_tunnel = tb_tunnel_alloc_pci(NULL, up, down);
drivers/thunderbolt/test.c
2489
struct tb_port *up, *down;
drivers/thunderbolt/test.c
2494
up = &dev->ports[16];
drivers/thunderbolt/test.c
2495
usb3_tunnel = tb_tunnel_alloc_usb3(NULL, up, down, 0, 0);
drivers/thunderbolt/test.c
845
struct tb_port *down, *up;
drivers/thunderbolt/test.c
854
up = &dev2->ports[9];
drivers/thunderbolt/test.c
856
path = tb_path_alloc(NULL, down, 8, up, 8, 0, "PCIe Down");
drivers/thunderbolt/test.c
858
path = tb_path_alloc(NULL, down, 8, up, 8, 1, "PCIe Down");
drivers/thunderbolt/test.c
897
struct tb_port *down, *up;
drivers/thunderbolt/test.c
905
up = &dev->ports[9];
drivers/thunderbolt/test.c
907
path = tb_path_alloc(NULL, down, 8, up, 8, 0, "PCIe Down");
drivers/thunderbolt/tmu.c
378
struct tb_port *up = tb_upstream_port(sw);
drivers/thunderbolt/tmu.c
380
if (enhanced && tb_port_tmu_is_enhanced(up)) {
drivers/thunderbolt/tmu.c
382
} else if (ucap && tb_port_tmu_is_unidirectional(up)) {
drivers/thunderbolt/tmu.c
540
static int disable_enhanced(struct tb_port *up, struct tb_port *down)
drivers/thunderbolt/tmu.c
548
tb_port_tmu_rate_write(up, 0);
drivers/thunderbolt/tmu.c
549
tb_port_tmu_enhanced_enable(up, false);
drivers/thunderbolt/tmu.c
572
struct tb_port *down, *up;
drivers/thunderbolt/tmu.c
576
up = tb_upstream_port(sw);
drivers/thunderbolt/tmu.c
592
tb_port_tmu_time_sync_disable(up);
drivers/thunderbolt/tmu.c
601
tb_port_tmu_unidirectional_disable(up);
drivers/thunderbolt/tmu.c
608
ret = disable_enhanced(up, down);
drivers/thunderbolt/tmu.c
630
struct tb_port *down, *up;
drivers/thunderbolt/tmu.c
633
up = tb_upstream_port(sw);
drivers/thunderbolt/tmu.c
642
tb_port_tmu_time_sync_disable(up);
drivers/thunderbolt/tmu.c
650
disable_enhanced(up, down);
drivers/thunderbolt/tmu.c
661
tb_port_tmu_unidirectional_disable(up);
drivers/thunderbolt/tmu.c
670
struct tb_port *up, *down;
drivers/thunderbolt/tmu.c
673
up = tb_upstream_port(sw);
drivers/thunderbolt/tmu.c
676
ret = tb_port_tmu_unidirectional_disable(up);
drivers/thunderbolt/tmu.c
688
ret = tb_port_tmu_time_sync_enable(up);
drivers/thunderbolt/tmu.c
706
struct tb_port *up = tb_upstream_port(sw);
drivers/thunderbolt/tmu.c
722
return tb_port_tmu_write(up, TMU_ADP_CS_6,
drivers/thunderbolt/tmu.c
734
struct tb_port *up, *down;
drivers/thunderbolt/tmu.c
737
up = tb_upstream_port(sw);
drivers/thunderbolt/tmu.c
748
ret = tb_port_tmu_unidirectional_enable(up);
drivers/thunderbolt/tmu.c
752
ret = tb_port_tmu_time_sync_enable(up);
drivers/thunderbolt/tmu.c
778
struct tb_port *up, *down;
drivers/thunderbolt/tmu.c
786
up = tb_upstream_port(sw);
drivers/thunderbolt/tmu.c
789
ret = tb_port_set_tmu_mode_params(up, sw->tmu.mode_request);
drivers/thunderbolt/tmu.c
793
ret = tb_port_tmu_rate_write(up, rate);
drivers/thunderbolt/tmu.c
797
ret = tb_port_tmu_enhanced_enable(up, true);
drivers/thunderbolt/tmu.c
823
struct tb_port *down, *up;
drivers/thunderbolt/tmu.c
826
up = tb_upstream_port(sw);
drivers/thunderbolt/tmu.c
854
tb_port_tmu_set_unidirectional(up, true);
drivers/thunderbolt/tmu.c
858
tb_port_tmu_set_unidirectional(up, false);
drivers/thunderbolt/tmu.c
869
struct tb_port *up, *down;
drivers/thunderbolt/tmu.c
872
up = tb_upstream_port(sw);
drivers/thunderbolt/tmu.c
909
ret = tb_port_tmu_set_unidirectional(up, true);
drivers/thunderbolt/tmu.c
915
ret = tb_port_tmu_set_unidirectional(up, false);
drivers/thunderbolt/tmu.c
929
ret = tb_port_tmu_time_sync_enable(up);
drivers/thunderbolt/tunnel.c
1998
static int tb_usb3_max_link_rate(struct tb_port *up, struct tb_port *down)
drivers/thunderbolt/tunnel.c
2002
ret = usb4_usb3_port_max_link_rate(up);
drivers/thunderbolt/tunnel.c
2281
struct tb_tunnel *tb_tunnel_alloc_usb3(struct tb *tb, struct tb_port *up,
drivers/thunderbolt/tunnel.c
2295
max_rate = tb_usb3_max_link_rate(down, up);
drivers/thunderbolt/tunnel.c
2300
tb_port_dbg(up, "maximum required bandwidth for USB3 tunnel %d Mb/s\n",
drivers/thunderbolt/tunnel.c
2310
tunnel->dst_port = up;
drivers/thunderbolt/tunnel.c
2314
path = tb_path_alloc(tb, down, TB_USB3_HOPID, up, TB_USB3_HOPID, 0,
drivers/thunderbolt/tunnel.c
2321
path = tb_path_alloc(tb, up, TB_USB3_HOPID, down, TB_USB3_HOPID, 0,
drivers/thunderbolt/tunnel.c
504
struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up,
drivers/thunderbolt/tunnel.c
516
tunnel->dst_port = up;
drivers/thunderbolt/tunnel.c
518
path = tb_path_alloc(tb, down, TB_PCI_HOPID, up, TB_PCI_HOPID, 0,
drivers/thunderbolt/tunnel.c
526
path = tb_path_alloc(tb, up, TB_PCI_HOPID, down, TB_PCI_HOPID, 0,
drivers/thunderbolt/tunnel.h
114
struct tb_tunnel *tb_tunnel_alloc_pci(struct tb *tb, struct tb_port *up,
drivers/thunderbolt/tunnel.h
133
struct tb_tunnel *tb_tunnel_alloc_usb3(struct tb *tb, struct tb_port *up,
drivers/thunderbolt/usb4.c
399
struct tb_port *up;
drivers/thunderbolt/usb4.c
403
up = tb_upstream_port(sw);
drivers/thunderbolt/usb4.c
404
ret = tb_port_read(up, &val, TB_CFG_PORT, up->cap_usb4 + PORT_CS_18, 1);
drivers/tty/serial/8250/8250.h
126
static inline int serial_in(struct uart_8250_port *up, int offset)
drivers/tty/serial/8250/8250.h
128
return up->port.serial_in(&up->port, offset);
drivers/tty/serial/8250/8250.h
131
static inline void serial_out(struct uart_8250_port *up, int offset, int value)
drivers/tty/serial/8250/8250.h
133
up->port.serial_out(&up->port, offset, value);
drivers/tty/serial/8250/8250.h
146
static inline u16 serial_lsr_in(struct uart_8250_port *up)
drivers/tty/serial/8250/8250.h
148
u16 lsr = up->lsr_saved_flags;
drivers/tty/serial/8250/8250.h
150
lsr |= serial_in(up, UART_LSR);
drivers/tty/serial/8250/8250.h
151
up->lsr_saved_flags = lsr & up->lsr_save_mask;
drivers/tty/serial/8250/8250.h
159
static void serial_icr_write(struct uart_8250_port *up, int offset, int value)
drivers/tty/serial/8250/8250.h
161
serial_out(up, UART_SCR, offset);
drivers/tty/serial/8250/8250.h
162
serial_out(up, UART_ICR, value);
drivers/tty/serial/8250/8250.h
165
static unsigned int __maybe_unused serial_icr_read(struct uart_8250_port *up,
drivers/tty/serial/8250/8250.h
170
serial_icr_write(up, UART_ACR, up->acr | UART_ACR_ICRRD);
drivers/tty/serial/8250/8250.h
171
serial_out(up, UART_SCR, offset);
drivers/tty/serial/8250/8250.h
172
value = serial_in(up, UART_ICR);
drivers/tty/serial/8250/8250.h
173
serial_icr_write(up, UART_ACR, up->acr);
drivers/tty/serial/8250/8250.h
180
void serial8250_fifo_wait_for_lsr_thre(struct uart_8250_port *up, unsigned int count);
drivers/tty/serial/8250/8250.h
187
static inline u32 serial_dl_read(struct uart_8250_port *up)
drivers/tty/serial/8250/8250.h
189
return up->dl_read(up);
drivers/tty/serial/8250/8250.h
192
static inline void serial_dl_write(struct uart_8250_port *up, u32 value)
drivers/tty/serial/8250/8250.h
194
up->dl_write(up, value);
drivers/tty/serial/8250/8250.h
197
static inline bool serial8250_set_THRI(struct uart_8250_port *up)
drivers/tty/serial/8250/8250.h
200
lockdep_assert_held_once(&up->port.lock);
drivers/tty/serial/8250/8250.h
202
if (up->ier & UART_IER_THRI)
drivers/tty/serial/8250/8250.h
204
up->ier |= UART_IER_THRI;
drivers/tty/serial/8250/8250.h
205
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/8250/8250.h
209
static inline bool serial8250_clear_THRI(struct uart_8250_port *up)
drivers/tty/serial/8250/8250.h
212
lockdep_assert_held_once(&up->port.lock);
drivers/tty/serial/8250/8250.h
214
if (!(up->ier & UART_IER_THRI))
drivers/tty/serial/8250/8250.h
216
up->ier &= ~UART_IER_THRI;
drivers/tty/serial/8250/8250.h
217
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/8250/8250.h
285
static inline void serial8250_out_MCR(struct uart_8250_port *up, int value)
drivers/tty/serial/8250/8250.h
287
serial_out(up, UART_MCR, value);
drivers/tty/serial/8250/8250.h
289
if (up->gpios)
drivers/tty/serial/8250/8250.h
290
mctrl_gpio_set(up->gpios, serial8250_MCR_to_TIOCM(value));
drivers/tty/serial/8250/8250.h
293
static inline int serial8250_in_MCR(struct uart_8250_port *up)
drivers/tty/serial/8250/8250.h
297
mctrl = serial_in(up, UART_MCR);
drivers/tty/serial/8250/8250.h
299
if (up->gpios) {
drivers/tty/serial/8250/8250.h
302
mctrl_gpio = mctrl_gpio_get_outputs(up->gpios, &mctrl_gpio);
drivers/tty/serial/8250/8250.h
319
void rsa_enable(struct uart_8250_port *up);
drivers/tty/serial/8250/8250.h
320
void rsa_disable(struct uart_8250_port *up);
drivers/tty/serial/8250/8250.h
321
void rsa_autoconfig(struct uart_8250_port *up);
drivers/tty/serial/8250/8250.h
322
void rsa_reset(struct uart_8250_port *up);
drivers/tty/serial/8250/8250.h
325
static inline void rsa_enable(struct uart_8250_port *up) {}
drivers/tty/serial/8250/8250.h
326
static inline void rsa_disable(struct uart_8250_port *up) {}
drivers/tty/serial/8250/8250.h
327
static inline void rsa_autoconfig(struct uart_8250_port *up) {}
drivers/tty/serial/8250/8250.h
328
static inline void rsa_reset(struct uart_8250_port *up) {}
drivers/tty/serial/8250/8250.h
451
static inline int ns16550a_goto_highspeed(struct uart_8250_port *up)
drivers/tty/serial/8250/8250.h
455
status = serial_in(up, 0x04); /* EXCR2 */
drivers/tty/serial/8250/8250.h
463
serial_out(up, 0x04, status);
drivers/tty/serial/8250/8250_aspeed_vuart.c
272
static void __aspeed_vuart_set_throttle(struct uart_8250_port *up,
drivers/tty/serial/8250/8250_aspeed_vuart.c
278
lockdep_assert_held_once(&up->port.lock);
drivers/tty/serial/8250/8250_aspeed_vuart.c
280
up->ier &= ~irqs;
drivers/tty/serial/8250/8250_aspeed_vuart.c
282
up->ier |= irqs;
drivers/tty/serial/8250/8250_aspeed_vuart.c
283
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/8250/8250_aspeed_vuart.c
287
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_aspeed_vuart.c
291
__aspeed_vuart_set_throttle(up, throttle);
drivers/tty/serial/8250/8250_aspeed_vuart.c
309
struct uart_8250_port *up = vuart->port;
drivers/tty/serial/8250/8250_aspeed_vuart.c
311
if (!tty_buffer_space_avail(&up->port.state->port)) {
drivers/tty/serial/8250/8250_aspeed_vuart.c
317
aspeed_vuart_unthrottle(&up->port);
drivers/tty/serial/8250/8250_aspeed_vuart.c
333
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_aspeed_vuart.c
353
__aspeed_vuart_set_throttle(up, true);
drivers/tty/serial/8250/8250_aspeed_vuart.c
363
serial8250_read_char(up, lsr);
drivers/tty/serial/8250/8250_aspeed_vuart.c
364
lsr = serial_in(up, UART_LSR);
drivers/tty/serial/8250/8250_aspeed_vuart.c
373
serial8250_modem_status(up);
drivers/tty/serial/8250/8250_aspeed_vuart.c
375
serial8250_tx_chars(up);
drivers/tty/serial/8250/8250_bcm2835aux.c
100
up.port.type = PORT_16550;
drivers/tty/serial/8250/8250_bcm2835aux.c
101
up.port.flags = UPF_FIXED_PORT | UPF_FIXED_TYPE | UPF_SKIP_TEST | UPF_IOREMAP;
drivers/tty/serial/8250/8250_bcm2835aux.c
102
up.port.rs485_config = serial8250_em485_config;
drivers/tty/serial/8250/8250_bcm2835aux.c
103
up.port.rs485_supported = serial8250_em485_supported;
drivers/tty/serial/8250/8250_bcm2835aux.c
104
up.rs485_start_tx = bcm2835aux_rs485_start_tx;
drivers/tty/serial/8250/8250_bcm2835aux.c
105
up.rs485_stop_tx = bcm2835aux_rs485_stop_tx;
drivers/tty/serial/8250/8250_bcm2835aux.c
124
up.port.mapbase = res->start;
drivers/tty/serial/8250/8250_bcm2835aux.c
125
up.port.mapsize = resource_size(res);
drivers/tty/serial/8250/8250_bcm2835aux.c
134
ret = uart_read_port_properties(&up.port);
drivers/tty/serial/8250/8250_bcm2835aux.c
138
up.port.regshift = 2;
drivers/tty/serial/8250/8250_bcm2835aux.c
139
up.port.fifosize = 8;
drivers/tty/serial/8250/8250_bcm2835aux.c
150
up.port.uartclk = uartclk;
drivers/tty/serial/8250/8250_bcm2835aux.c
157
up.port.uartclk *= 2;
drivers/tty/serial/8250/8250_bcm2835aux.c
160
ret = serial8250_register_8250_port(&up);
drivers/tty/serial/8250/8250_bcm2835aux.c
220
struct uart_8250_port *up = serial8250_get_port(data->line);
drivers/tty/serial/8250/8250_bcm2835aux.c
225
if (uart_console(&up->port) && !console_suspend_enabled)
drivers/tty/serial/8250/8250_bcm2835aux.c
49
static void bcm2835aux_rs485_start_tx(struct uart_8250_port *up, bool toggle_ier)
drivers/tty/serial/8250/8250_bcm2835aux.c
51
if (!(up->port.rs485.flags & SER_RS485_RX_DURING_TX)) {
drivers/tty/serial/8250/8250_bcm2835aux.c
52
struct bcm2835aux_data *data = dev_get_drvdata(up->port.dev);
drivers/tty/serial/8250/8250_bcm2835aux.c
55
serial_out(up, BCM2835_AUX_UART_CNTL, data->cntl);
drivers/tty/serial/8250/8250_bcm2835aux.c
62
if (up->port.rs485.flags & SER_RS485_RTS_ON_SEND)
drivers/tty/serial/8250/8250_bcm2835aux.c
63
serial8250_out_MCR(up, 0);
drivers/tty/serial/8250/8250_bcm2835aux.c
65
serial8250_out_MCR(up, UART_MCR_RTS);
drivers/tty/serial/8250/8250_bcm2835aux.c
68
static void bcm2835aux_rs485_stop_tx(struct uart_8250_port *up, bool toggle_ier)
drivers/tty/serial/8250/8250_bcm2835aux.c
70
if (up->port.rs485.flags & SER_RS485_RTS_AFTER_SEND)
drivers/tty/serial/8250/8250_bcm2835aux.c
71
serial8250_out_MCR(up, 0);
drivers/tty/serial/8250/8250_bcm2835aux.c
73
serial8250_out_MCR(up, UART_MCR_RTS);
drivers/tty/serial/8250/8250_bcm2835aux.c
75
if (!(up->port.rs485.flags & SER_RS485_RX_DURING_TX)) {
drivers/tty/serial/8250/8250_bcm2835aux.c
76
struct bcm2835aux_data *data = dev_get_drvdata(up->port.dev);
drivers/tty/serial/8250/8250_bcm2835aux.c
79
serial_out(up, BCM2835_AUX_UART_CNTL, data->cntl);
drivers/tty/serial/8250/8250_bcm2835aux.c
86
struct uart_8250_port up = { };
drivers/tty/serial/8250/8250_bcm2835aux.c
98
up.capabilities = UART_CAP_FIFO | UART_CAP_MINI;
drivers/tty/serial/8250/8250_bcm2835aux.c
99
up.port.dev = &pdev->dev;
drivers/tty/serial/8250/8250_bcm7271.c
1027
memset(&up, 0, sizeof(up));
drivers/tty/serial/8250/8250_bcm7271.c
1028
up.port.type = PORT_BCM7271;
drivers/tty/serial/8250/8250_bcm7271.c
1029
up.port.dev = dev;
drivers/tty/serial/8250/8250_bcm7271.c
1030
up.port.mapbase = mapbase;
drivers/tty/serial/8250/8250_bcm7271.c
1031
up.port.membase = membase;
drivers/tty/serial/8250/8250_bcm7271.c
1032
up.port.handle_irq = brcmuart_handle_irq;
drivers/tty/serial/8250/8250_bcm7271.c
1033
up.port.flags = UPF_BOOT_AUTOCONF | UPF_FIXED_PORT | UPF_FIXED_TYPE;
drivers/tty/serial/8250/8250_bcm7271.c
1034
up.port.private_data = priv;
drivers/tty/serial/8250/8250_bcm7271.c
1036
ret = uart_read_port_properties(&up.port);
drivers/tty/serial/8250/8250_bcm7271.c
1040
up.port.regshift = 2;
drivers/tty/serial/8250/8250_bcm7271.c
1041
up.port.iotype = device_is_big_endian(dev) ? UPIO_MEM32BE : UPIO_MEM32;
drivers/tty/serial/8250/8250_bcm7271.c
1053
up.port.uartclk = priv->default_mux_rate;
drivers/tty/serial/8250/8250_bcm7271.c
1061
up.port.shutdown = brcmuart_shutdown;
drivers/tty/serial/8250/8250_bcm7271.c
1062
up.port.startup = brcmuart_startup;
drivers/tty/serial/8250/8250_bcm7271.c
1063
up.port.throttle = brcmuart_throttle;
drivers/tty/serial/8250/8250_bcm7271.c
1064
up.port.unthrottle = brcmuart_unthrottle;
drivers/tty/serial/8250/8250_bcm7271.c
1065
up.port.set_termios = brcmstb_set_termios;
drivers/tty/serial/8250/8250_bcm7271.c
1086
ret = serial8250_register_8250_port(&up);
drivers/tty/serial/8250/8250_bcm7271.c
1093
priv->up = &new_port->port;
drivers/tty/serial/8250/8250_bcm7271.c
1136
struct uart_8250_port *up = serial8250_get_port(priv->line);
drivers/tty/serial/8250/8250_bcm7271.c
1137
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_bcm7271.c
1158
struct uart_8250_port *up = serial8250_get_port(priv->line);
drivers/tty/serial/8250/8250_bcm7271.c
1159
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_bcm7271.c
213
struct uart_port *up;
drivers/tty/serial/8250/8250_bcm7271.c
439
static void brcmuart_rx_buf_done_isr(struct uart_port *up, int index)
drivers/tty/serial/8250/8250_bcm7271.c
441
struct brcmuart_priv *priv = up->private_data;
drivers/tty/serial/8250/8250_bcm7271.c
442
struct tty_port *tty_port = &up->state->port;
drivers/tty/serial/8250/8250_bcm7271.c
452
dev_err(up->dev, "RX done interrupt but DATA_RDY not found\n");
drivers/tty/serial/8250/8250_bcm7271.c
459
up->icount.overrun++;
drivers/tty/serial/8250/8250_bcm7271.c
460
dev_warn(up->dev, "RX OVERRUN Error\n");
drivers/tty/serial/8250/8250_bcm7271.c
463
up->icount.frame++;
drivers/tty/serial/8250/8250_bcm7271.c
464
dev_warn(up->dev, "RX FRAMING Error\n");
drivers/tty/serial/8250/8250_bcm7271.c
467
up->icount.parity++;
drivers/tty/serial/8250/8250_bcm7271.c
468
dev_warn(up->dev, "RX PARITY Error\n");
drivers/tty/serial/8250/8250_bcm7271.c
476
dev_warn(up->dev, "Flip buffer overrun of %d bytes\n",
drivers/tty/serial/8250/8250_bcm7271.c
478
up->icount.overrun += length - copied;
drivers/tty/serial/8250/8250_bcm7271.c
480
up->icount.rx += length;
drivers/tty/serial/8250/8250_bcm7271.c
495
static void brcmuart_rx_isr(struct uart_port *up, u32 rx_isr)
drivers/tty/serial/8250/8250_bcm7271.c
497
struct brcmuart_priv *priv = up->private_data;
drivers/tty/serial/8250/8250_bcm7271.c
498
struct device *dev = up->dev;
drivers/tty/serial/8250/8250_bcm7271.c
506
brcmuart_rx_buf_done_isr(up, priv->rx_next_buf);
drivers/tty/serial/8250/8250_bcm7271.c
510
start_rx_dma(up_to_u8250p(up));
drivers/tty/serial/8250/8250_bcm7271.c
536
static void brcmuart_tx_isr(struct uart_port *up, u32 isr)
drivers/tty/serial/8250/8250_bcm7271.c
538
struct brcmuart_priv *priv = up->private_data;
drivers/tty/serial/8250/8250_bcm7271.c
539
struct device *dev = up->dev;
drivers/tty/serial/8250/8250_bcm7271.c
540
struct uart_8250_port *port_8250 = up_to_u8250p(up);
drivers/tty/serial/8250/8250_bcm7271.c
549
if (!kfifo_is_empty(&tport->xmit_fifo) && !uart_tx_stopped(up))
drivers/tty/serial/8250/8250_bcm7271.c
555
struct uart_port *up = dev_id;
drivers/tty/serial/8250/8250_bcm7271.c
556
struct device *dev = up->dev;
drivers/tty/serial/8250/8250_bcm7271.c
557
struct brcmuart_priv *priv = up->private_data;
drivers/tty/serial/8250/8250_bcm7271.c
567
uart_port_lock_irqsave(up, &flags);
drivers/tty/serial/8250/8250_bcm7271.c
574
brcmuart_rx_isr(up, rval);
drivers/tty/serial/8250/8250_bcm7271.c
577
brcmuart_tx_isr(up, tval);
drivers/tty/serial/8250/8250_bcm7271.c
581
uart_port_unlock_irqrestore(up, flags);
drivers/tty/serial/8250/8250_bcm7271.c
588
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_bcm7271.c
589
struct brcmuart_priv *priv = up->port.private_data;
drivers/tty/serial/8250/8250_bcm7271.c
597
up->dma = NULL;
drivers/tty/serial/8250/8250_bcm7271.c
609
up->ier &= ~UART_IER_RDI;
drivers/tty/serial/8250/8250_bcm7271.c
610
serial_port_out(port, UART_IER, up->ier);
drivers/tty/serial/8250/8250_bcm7271.c
616
up->dma = &priv->dma;
drivers/tty/serial/8250/8250_bcm7271.c
619
start_rx_dma(up);
drivers/tty/serial/8250/8250_bcm7271.c
625
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_bcm7271.c
626
struct brcmuart_priv *priv = up->port.private_data;
drivers/tty/serial/8250/8250_bcm7271.c
632
stop_rx_dma(up);
drivers/tty/serial/8250/8250_bcm7271.c
633
stop_tx_dma(up);
drivers/tty/serial/8250/8250_bcm7271.c
643
up->dma = NULL;
drivers/tty/serial/8250/8250_bcm7271.c
707
static void set_clock_mux(struct uart_port *up, struct brcmuart_priv *priv,
drivers/tty/serial/8250/8250_bcm7271.c
725
quot = find_quot(up->dev, priv->default_mux_rate, baud, &percent);
drivers/tty/serial/8250/8250_bcm7271.c
737
quot = find_quot(up->dev, freq, baud, &percent);
drivers/tty/serial/8250/8250_bcm7271.c
749
dev_err(up->dev, "Error, %d BAUD rate is too fast.\n", baud);
drivers/tty/serial/8250/8250_bcm7271.c
754
dev_err(up->dev, "Error selecting BAUD MUX clock\n");
drivers/tty/serial/8250/8250_bcm7271.c
758
dev_err(up->dev, "Error, baud: %d has %u.%u%% error\n",
drivers/tty/serial/8250/8250_bcm7271.c
762
dev_dbg(up->dev, "Selecting BAUD MUX rate: %u\n", best_freq);
drivers/tty/serial/8250/8250_bcm7271.c
763
dev_dbg(up->dev, "Requested baud: %u, Actual baud: %u\n",
drivers/tty/serial/8250/8250_bcm7271.c
771
up->uartclk = best_freq;
drivers/tty/serial/8250/8250_bcm7271.c
774
static void brcmstb_set_termios(struct uart_port *up,
drivers/tty/serial/8250/8250_bcm7271.c
778
struct uart_8250_port *p8250 = up_to_u8250p(up);
drivers/tty/serial/8250/8250_bcm7271.c
779
struct brcmuart_priv *priv = up->private_data;
drivers/tty/serial/8250/8250_bcm7271.c
783
set_clock_mux(up, priv, tty_termios_baud_rate(termios));
drivers/tty/serial/8250/8250_bcm7271.c
784
serial8250_do_set_termios(up, termios, old);
drivers/tty/serial/8250/8250_bcm7271.c
795
struct uart_8250_port *up = up_to_u8250p(p);
drivers/tty/serial/8250/8250_bcm7271.c
818
if ((ier & UART_IER_RDI) && (up->mcr & UART_MCR_AFE)) {
drivers/tty/serial/8250/8250_bcm7271.c
842
struct uart_port *p = priv->up;
drivers/tty/serial/8250/8250_bcm7271.c
843
struct uart_8250_port *up = up_to_u8250p(p);
drivers/tty/serial/8250/8250_bcm7271.c
865
if ((up->ier & (UART_IER_RLSI | UART_IER_RDI)) ==
drivers/tty/serial/8250/8250_bcm7271.c
960
struct uart_8250_port up;
drivers/tty/serial/8250/8250_ce4100.c
62
static void ce4100_serial_fixup(int port, struct uart_port *up, u32 *capabilities)
drivers/tty/serial/8250/8250_ce4100.c
70
if (up->iotype != UPIO_MEM32) {
drivers/tty/serial/8250/8250_ce4100.c
71
up->uartclk = 14745600;
drivers/tty/serial/8250/8250_ce4100.c
72
up->mapbase = 0xdffe0200;
drivers/tty/serial/8250/8250_ce4100.c
73
set_fixmap_nocache(FIX_EARLYCON_MEM_BASE, up->mapbase & PAGE_MASK);
drivers/tty/serial/8250/8250_ce4100.c
74
up->membase = (void __iomem *)__fix_to_virt(FIX_EARLYCON_MEM_BASE);
drivers/tty/serial/8250/8250_ce4100.c
75
up->membase += up->mapbase & ~PAGE_MASK;
drivers/tty/serial/8250/8250_ce4100.c
76
up->mapbase += port * 0x100;
drivers/tty/serial/8250/8250_ce4100.c
77
up->membase += port * 0x100;
drivers/tty/serial/8250/8250_ce4100.c
78
up->iotype = UPIO_MEM32;
drivers/tty/serial/8250/8250_ce4100.c
79
up->regshift = 2;
drivers/tty/serial/8250/8250_ce4100.c
80
up->irq = 4;
drivers/tty/serial/8250/8250_ce4100.c
83
up->iobase = 0;
drivers/tty/serial/8250/8250_ce4100.c
84
up->serial_in = ce4100_mem_serial_in;
drivers/tty/serial/8250/8250_ce4100.c
85
up->serial_out = ce4100_mem_serial_out;
drivers/tty/serial/8250/8250_core.c
108
static void serial_do_unlink(struct irq_info *i, struct uart_8250_port *up)
drivers/tty/serial/8250/8250_core.c
113
if (i->head == &up->list)
drivers/tty/serial/8250/8250_core.c
115
list_del(&up->list);
drivers/tty/serial/8250/8250_core.c
117
BUG_ON(i->head != &up->list);
drivers/tty/serial/8250/8250_core.c
133
static struct irq_info *serial_get_or_create_irq_info(const struct uart_8250_port *up)
drivers/tty/serial/8250/8250_core.c
139
hash_for_each_possible(irq_lists, i, node, up->port.irq)
drivers/tty/serial/8250/8250_core.c
140
if (i->irq == up->port.irq)
drivers/tty/serial/8250/8250_core.c
148
i->irq = up->port.irq;
drivers/tty/serial/8250/8250_core.c
154
static int serial_link_irq_chain(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_core.c
159
i = serial_get_or_create_irq_info(up);
drivers/tty/serial/8250/8250_core.c
165
list_add(&up->list, i->head);
drivers/tty/serial/8250/8250_core.c
170
INIT_LIST_HEAD(&up->list);
drivers/tty/serial/8250/8250_core.c
171
i->head = &up->list;
drivers/tty/serial/8250/8250_core.c
174
ret = request_irq(up->port.irq, serial8250_interrupt, up->port.irqflags, up->port.name, i);
drivers/tty/serial/8250/8250_core.c
176
serial_do_unlink(i, up);
drivers/tty/serial/8250/8250_core.c
181
static void serial_unlink_irq_chain(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_core.c
187
hash_for_each_possible(irq_lists, i, node, up->port.irq)
drivers/tty/serial/8250/8250_core.c
188
if (i->irq == up->port.irq) {
drivers/tty/serial/8250/8250_core.c
193
free_irq(up->port.irq, i);
drivers/tty/serial/8250/8250_core.c
195
serial_do_unlink(i, up);
drivers/tty/serial/8250/8250_core.c
211
struct uart_8250_port *up = timer_container_of(up, t, timer);
drivers/tty/serial/8250/8250_core.c
213
up->port.handle_irq(&up->port);
drivers/tty/serial/8250/8250_core.c
214
mod_timer(&up->timer, jiffies + uart_poll_timeout(&up->port));
drivers/tty/serial/8250/8250_core.c
219
struct uart_8250_port *up = timer_container_of(up, t, timer);
drivers/tty/serial/8250/8250_core.c
223
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/8250/8250_core.c
229
if (up->port.irq) {
drivers/tty/serial/8250/8250_core.c
230
ier = serial_in(up, UART_IER);
drivers/tty/serial/8250/8250_core.c
231
serial_out(up, UART_IER, 0);
drivers/tty/serial/8250/8250_core.c
234
iir = serial_in(up, UART_IIR);
drivers/tty/serial/8250/8250_core.c
242
lsr = serial_lsr_in(up);
drivers/tty/serial/8250/8250_core.c
243
if ((iir & UART_IIR_NO_INT) && (up->ier & UART_IER_THRI) &&
drivers/tty/serial/8250/8250_core.c
244
(!kfifo_is_empty(&up->port.state->port.xmit_fifo) ||
drivers/tty/serial/8250/8250_core.c
245
up->port.x_char) &&
drivers/tty/serial/8250/8250_core.c
252
serial8250_tx_chars(up);
drivers/tty/serial/8250/8250_core.c
254
if (up->port.irq)
drivers/tty/serial/8250/8250_core.c
255
serial_out(up, UART_IER, ier);
drivers/tty/serial/8250/8250_core.c
257
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/8250/8250_core.c
260
mod_timer(&up->timer,
drivers/tty/serial/8250/8250_core.c
261
jiffies + uart_poll_timeout(&up->port) + HZ / 5);
drivers/tty/serial/8250/8250_core.c
264
static void univ8250_setup_timer(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_core.c
266
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_core.c
272
if (up->bugs & UART_BUG_THRE) {
drivers/tty/serial/8250/8250_core.c
275
up->timer.function = serial8250_backup_timeout;
drivers/tty/serial/8250/8250_core.c
276
mod_timer(&up->timer, jiffies +
drivers/tty/serial/8250/8250_core.c
286
mod_timer(&up->timer, jiffies + uart_poll_timeout(port));
drivers/tty/serial/8250/8250_core.c
289
static int univ8250_setup_irq(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_core.c
291
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_core.c
294
return serial_link_irq_chain(up);
drivers/tty/serial/8250/8250_core.c
299
static void univ8250_release_irq(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_core.c
301
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_core.c
303
timer_delete_sync(&up->timer);
drivers/tty/serial/8250/8250_core.c
304
up->timer.function = serial8250_timeout;
drivers/tty/serial/8250/8250_core.c
306
serial_unlink_irq_chain(up);
drivers/tty/serial/8250/8250_core.c
338
static inline void serial8250_apply_quirks(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_core.c
340
up->port.quirks |= skip_txen_test ? UPQ_NO_TXEN_TEST : 0;
drivers/tty/serial/8250/8250_core.c
345
struct uart_8250_port *up;
drivers/tty/serial/8250/8250_core.c
350
up = &serial8250_ports[index];
drivers/tty/serial/8250/8250_core.c
351
up->port.line = index;
drivers/tty/serial/8250/8250_core.c
352
up->port.port_id = index;
drivers/tty/serial/8250/8250_core.c
354
serial8250_init_port(up);
drivers/tty/serial/8250/8250_core.c
356
univ8250_port_base_ops = up->port.ops;
drivers/tty/serial/8250/8250_core.c
357
up->port.ops = &univ8250_port_ops;
drivers/tty/serial/8250/8250_core.c
359
timer_setup(&up->timer, serial8250_timeout, 0);
drivers/tty/serial/8250/8250_core.c
361
up->ops = &univ8250_driver_ops;
drivers/tty/serial/8250/8250_core.c
363
serial8250_set_defaults(up);
drivers/tty/serial/8250/8250_core.c
365
return up;
drivers/tty/serial/8250/8250_core.c
373
struct uart_8250_port *up = &serial8250_ports[i];
drivers/tty/serial/8250/8250_core.c
375
if (up->port.type == PORT_8250_CIR)
drivers/tty/serial/8250/8250_core.c
378
if (up->port.dev)
drivers/tty/serial/8250/8250_core.c
381
up->port.dev = dev;
drivers/tty/serial/8250/8250_core.c
383
if (uart_console_registered(&up->port))
drivers/tty/serial/8250/8250_core.c
384
pm_runtime_get_sync(up->port.dev);
drivers/tty/serial/8250/8250_core.c
386
serial8250_apply_quirks(up);
drivers/tty/serial/8250/8250_core.c
387
uart_add_one_port(drv, &up->port);
drivers/tty/serial/8250/8250_core.c
396
struct uart_8250_port *up = &serial8250_ports[co->index];
drivers/tty/serial/8250/8250_core.c
398
serial8250_console_write(up, s, count);
drivers/tty/serial/8250/8250_core.c
403
struct uart_8250_port *up;
drivers/tty/serial/8250/8250_core.c
420
up = serial8250_setup_port(i);
drivers/tty/serial/8250/8250_core.c
421
if (!up)
drivers/tty/serial/8250/8250_core.c
584
struct uart_8250_port *up = &serial8250_ports[line];
drivers/tty/serial/8250/8250_core.c
585
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_core.c
591
serial_out(up, UART_SCR, canary);
drivers/tty/serial/8250/8250_core.c
592
if (serial_in(up, UART_SCR) == canary)
drivers/tty/serial/8250/8250_core.c
593
up->canary = canary;
drivers/tty/serial/8250/8250_core.c
608
struct uart_8250_port *up = &serial8250_ports[line];
drivers/tty/serial/8250/8250_core.c
609
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_core.c
611
up->canary = 0;
drivers/tty/serial/8250/8250_core.c
613
if (up->capabilities & UART_NATSEMI) {
drivers/tty/serial/8250/8250_core.c
617
ns16550a_goto_highspeed(up);
drivers/tty/serial/8250/8250_core.c
672
struct uart_8250_port *up = container_of(to_delayed_work(work), struct uart_8250_port,
drivers/tty/serial/8250/8250_core.c
675
guard(uart_port_lock_irqsave)(&up->port);
drivers/tty/serial/8250/8250_core.c
676
up->ier |= UART_IER_RLSI | UART_IER_RDI;
drivers/tty/serial/8250/8250_core.c
677
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/8250/8250_core.c
693
int serial8250_register_8250_port(const struct uart_8250_port *up)
drivers/tty/serial/8250/8250_core.c
698
if (up->port.uartclk == 0)
drivers/tty/serial/8250/8250_core.c
703
uart = serial8250_find_match_or_unused(&up->port);
drivers/tty/serial/8250/8250_core.c
722
uart->port.ctrl_id = up->port.ctrl_id;
drivers/tty/serial/8250/8250_core.c
723
uart->port.port_id = up->port.port_id;
drivers/tty/serial/8250/8250_core.c
724
uart->port.iobase = up->port.iobase;
drivers/tty/serial/8250/8250_core.c
725
uart->port.membase = up->port.membase;
drivers/tty/serial/8250/8250_core.c
726
uart->port.irq = up->port.irq;
drivers/tty/serial/8250/8250_core.c
727
uart->port.irqflags = up->port.irqflags;
drivers/tty/serial/8250/8250_core.c
728
uart->port.uartclk = up->port.uartclk;
drivers/tty/serial/8250/8250_core.c
729
uart->port.fifosize = up->port.fifosize;
drivers/tty/serial/8250/8250_core.c
730
uart->port.regshift = up->port.regshift;
drivers/tty/serial/8250/8250_core.c
731
uart->port.iotype = up->port.iotype;
drivers/tty/serial/8250/8250_core.c
732
uart->port.flags = up->port.flags | UPF_BOOT_AUTOCONF;
drivers/tty/serial/8250/8250_core.c
733
uart->bugs = up->bugs;
drivers/tty/serial/8250/8250_core.c
734
uart->port.mapbase = up->port.mapbase;
drivers/tty/serial/8250/8250_core.c
735
uart->port.mapsize = up->port.mapsize;
drivers/tty/serial/8250/8250_core.c
736
uart->port.private_data = up->port.private_data;
drivers/tty/serial/8250/8250_core.c
737
uart->tx_loadsz = up->tx_loadsz;
drivers/tty/serial/8250/8250_core.c
738
uart->capabilities = up->capabilities;
drivers/tty/serial/8250/8250_core.c
739
uart->port.throttle = up->port.throttle;
drivers/tty/serial/8250/8250_core.c
740
uart->port.unthrottle = up->port.unthrottle;
drivers/tty/serial/8250/8250_core.c
741
uart->port.rs485_config = up->port.rs485_config;
drivers/tty/serial/8250/8250_core.c
742
uart->port.rs485_supported = up->port.rs485_supported;
drivers/tty/serial/8250/8250_core.c
743
uart->port.rs485 = up->port.rs485;
drivers/tty/serial/8250/8250_core.c
744
uart->rs485_start_tx = up->rs485_start_tx;
drivers/tty/serial/8250/8250_core.c
745
uart->rs485_stop_tx = up->rs485_stop_tx;
drivers/tty/serial/8250/8250_core.c
746
uart->lsr_save_mask = up->lsr_save_mask;
drivers/tty/serial/8250/8250_core.c
747
uart->dma = up->dma;
drivers/tty/serial/8250/8250_core.c
753
if (up->port.dev) {
drivers/tty/serial/8250/8250_core.c
754
uart->port.dev = up->port.dev;
drivers/tty/serial/8250/8250_core.c
760
if (up->port.flags & UPF_FIXED_TYPE)
drivers/tty/serial/8250/8250_core.c
761
uart->port.type = up->port.type;
drivers/tty/serial/8250/8250_core.c
780
if (up->port.serial_in)
drivers/tty/serial/8250/8250_core.c
781
uart->port.serial_in = up->port.serial_in;
drivers/tty/serial/8250/8250_core.c
782
if (up->port.serial_out)
drivers/tty/serial/8250/8250_core.c
783
uart->port.serial_out = up->port.serial_out;
drivers/tty/serial/8250/8250_core.c
784
if (up->port.handle_irq)
drivers/tty/serial/8250/8250_core.c
785
uart->port.handle_irq = up->port.handle_irq;
drivers/tty/serial/8250/8250_core.c
787
if (up->port.set_termios)
drivers/tty/serial/8250/8250_core.c
788
uart->port.set_termios = up->port.set_termios;
drivers/tty/serial/8250/8250_core.c
789
if (up->port.set_ldisc)
drivers/tty/serial/8250/8250_core.c
790
uart->port.set_ldisc = up->port.set_ldisc;
drivers/tty/serial/8250/8250_core.c
791
if (up->port.get_mctrl)
drivers/tty/serial/8250/8250_core.c
792
uart->port.get_mctrl = up->port.get_mctrl;
drivers/tty/serial/8250/8250_core.c
793
if (up->port.set_mctrl)
drivers/tty/serial/8250/8250_core.c
794
uart->port.set_mctrl = up->port.set_mctrl;
drivers/tty/serial/8250/8250_core.c
795
if (up->port.get_divisor)
drivers/tty/serial/8250/8250_core.c
796
uart->port.get_divisor = up->port.get_divisor;
drivers/tty/serial/8250/8250_core.c
797
if (up->port.set_divisor)
drivers/tty/serial/8250/8250_core.c
798
uart->port.set_divisor = up->port.set_divisor;
drivers/tty/serial/8250/8250_core.c
799
if (up->port.startup)
drivers/tty/serial/8250/8250_core.c
800
uart->port.startup = up->port.startup;
drivers/tty/serial/8250/8250_core.c
801
if (up->port.shutdown)
drivers/tty/serial/8250/8250_core.c
802
uart->port.shutdown = up->port.shutdown;
drivers/tty/serial/8250/8250_core.c
803
if (up->port.pm)
drivers/tty/serial/8250/8250_core.c
804
uart->port.pm = up->port.pm;
drivers/tty/serial/8250/8250_core.c
805
if (up->port.handle_break)
drivers/tty/serial/8250/8250_core.c
806
uart->port.handle_break = up->port.handle_break;
drivers/tty/serial/8250/8250_core.c
807
if (up->dl_read)
drivers/tty/serial/8250/8250_core.c
808
uart->dl_read = up->dl_read;
drivers/tty/serial/8250/8250_core.c
809
if (up->dl_write)
drivers/tty/serial/8250/8250_core.c
810
uart->dl_write = up->dl_write;
drivers/tty/serial/8250/8250_core.c
83
struct uart_8250_port *up = list_entry(l, struct uart_8250_port, list);
drivers/tty/serial/8250/8250_core.c
84
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_core.c
842
if (up->overrun_backoff_time_ms > 0) {
drivers/tty/serial/8250/8250_core.c
844
up->overrun_backoff_time_ms;
drivers/tty/serial/8250/8250_dma.c
100
uart_xchar_out(up, UART_TX);
drivers/tty/serial/8250/8250_dma.c
104
} else if (up->x_char) {
drivers/tty/serial/8250/8250_dma.c
105
uart_xchar_out(up, UART_TX);
drivers/tty/serial/8250/8250_dma.c
91
struct uart_port *up = &p->port;
drivers/tty/serial/8250/8250_dma.c
98
if (up->x_char) {
drivers/tty/serial/8250/8250_dw.c
131
struct uart_8250_port *up = up_to_u8250p(p);
drivers/tty/serial/8250/8250_dw.c
136
if (up->capabilities & UART_CAP_FIFO)
drivers/tty/serial/8250/8250_dw.c
137
serial_port_out(p, UART_FCR, up->fcr);
drivers/tty/serial/8250/8250_dw.c
138
serial_port_out(p, UART_MCR, up->mcr);
drivers/tty/serial/8250/8250_dw.c
139
serial_port_out(p, UART_IER, up->ier);
drivers/tty/serial/8250/8250_dw.c
142
if (up->dma)
drivers/tty/serial/8250/8250_dw.c
143
serial8250_tx_dma_resume(up);
drivers/tty/serial/8250/8250_dw.c
159
struct uart_8250_port *up = up_to_u8250p(p);
drivers/tty/serial/8250/8250_dw.c
173
if (up->dma) {
drivers/tty/serial/8250/8250_dw.c
174
serial8250_rx_dma_flush(up);
drivers/tty/serial/8250/8250_dw.c
175
if (serial8250_tx_dma_running(up))
drivers/tty/serial/8250/8250_dw.c
176
serial8250_tx_dma_pause(up);
drivers/tty/serial/8250/8250_dw.c
185
serial8250_fifo_wait_for_lsr_thre(up, p->fifosize);
drivers/tty/serial/8250/8250_dw.c
188
serial_port_out(p, UART_MCR, up->mcr | UART_MCR_LOOP);
drivers/tty/serial/8250/8250_dw.c
192
serial8250_clear_fifos(up);
drivers/tty/serial/8250/8250_dw.c
199
lsr = serial_lsr_in(up);
drivers/tty/serial/8250/8250_dw.c
202
up->lsr_saved_flags = 0;
drivers/tty/serial/8250/8250_dw.c
217
struct uart_8250_port *up = up_to_u8250p(p);
drivers/tty/serial/8250/8250_dw.c
224
serial_port_out(p, UART_LCR, up->lcr | UART_LCR_DLAB);
drivers/tty/serial/8250/8250_dw.c
228
serial_dl_write(up, quot);
drivers/tty/serial/8250/8250_dw.c
229
serial_port_out(p, UART_LCR, up->lcr);
drivers/tty/serial/8250/8250_dw.c
294
struct uart_8250_port *up = up_to_u8250p(p);
drivers/tty/serial/8250/8250_dw.c
301
up->lsr_saved_flags |= lsr & up->lsr_save_mask;
drivers/tty/serial/8250/8250_dw.c
406
struct uart_8250_port *up = up_to_u8250p(p);
drivers/tty/serial/8250/8250_dw.c
409
if (up->ier & UART_IER_THRI)
drivers/tty/serial/8250/8250_dw.c
412
lsr = serial_lsr_in(up);
drivers/tty/serial/8250/8250_dw.c
416
serial_port_out(p, UART_IER, up->ier | UART_IER_THRI);
drivers/tty/serial/8250/8250_dw.c
418
serial_port_out(p, UART_IER, up->ier);
drivers/tty/serial/8250/8250_dw.c
423
struct uart_8250_port *up = up_to_u8250p(p);
drivers/tty/serial/8250/8250_dw.c
434
if (d->uart_16550_compatible || up->dma)
drivers/tty/serial/8250/8250_dw.c
465
if (!up->dma && rx_timeout) {
drivers/tty/serial/8250/8250_dw.c
466
status = serial_lsr_in(up);
drivers/tty/serial/8250/8250_dw.c
473
if (quirks & DW_UART_QUIRK_IS_DMA_FC && up->dma && up->dma->rx_running && rx_timeout) {
drivers/tty/serial/8250/8250_dw.c
474
status = serial_lsr_in(up);
drivers/tty/serial/8250/8250_dw.c
490
struct uart_8250_port *up;
drivers/tty/serial/8250/8250_dw.c
497
up = serial8250_get_port(d->data.line);
drivers/tty/serial/8250/8250_dw.c
499
serial8250_update_uartclk(&up->port, rate);
drivers/tty/serial/8250/8250_dw.c
565
struct uart_8250_port *up = up_to_u8250p(p);
drivers/tty/serial/8250/8250_dw.c
568
if (up->capabilities & UART_CAP_IRDA) {
drivers/tty/serial/8250/8250_dw.c
621
struct uart_port *up = &p->port;
drivers/tty/serial/8250/8250_dw.c
625
dw8250_writel_ext(up, RZN1_UART_TDMACR, 0);
drivers/tty/serial/8250/8250_dw.c
629
dw8250_writel_ext(up, RZN1_UART_TDMACR, val);
drivers/tty/serial/8250/8250_dw.c
634
struct uart_port *up = &p->port;
drivers/tty/serial/8250/8250_dw.c
638
dw8250_writel_ext(up, RZN1_UART_RDMACR, 0);
drivers/tty/serial/8250/8250_dw.c
642
dw8250_writel_ext(up, RZN1_UART_RDMACR, val);
drivers/tty/serial/8250/8250_dw.c
696
struct uart_8250_port uart = {}, *up = &uart;
drivers/tty/serial/8250/8250_dw.c
697
struct uart_port *p = &up->port;
drivers/tty/serial/8250/8250_dw.c
839
up->dma = &data->data.dma;
drivers/tty/serial/8250/8250_dw.c
842
data->data.line = serial8250_register_8250_port(up);
drivers/tty/serial/8250/8250_dwlib.c
245
struct uart_8250_port *up = up_to_u8250p(p);
drivers/tty/serial/8250/8250_dwlib.c
251
up->lsr_save_mask = LSR_SAVE_FLAGS | DW_UART_LSR_ADDR_RCVD;
drivers/tty/serial/8250/8250_dwlib.c
256
up->rs485_start_tx = serial8250_em485_start_tx;
drivers/tty/serial/8250/8250_dwlib.c
257
up->rs485_stop_tx = serial8250_em485_stop_tx;
drivers/tty/serial/8250/8250_dwlib.c
259
up->capabilities |= UART_CAP_NOTEMT;
drivers/tty/serial/8250/8250_dwlib.c
291
up->capabilities = UART_CAP_FIFO | UART_CAP_NOTEMT;
drivers/tty/serial/8250/8250_dwlib.c
295
up->capabilities |= UART_CAP_AFE;
drivers/tty/serial/8250/8250_dwlib.c
298
up->capabilities |= UART_CAP_IRDA;
drivers/tty/serial/8250/8250_em.c
142
static u32 serial8250_em_serial_dl_read(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_em.c
144
return serial_in(up, UART_DLL_EM) | serial_in(up, UART_DLM_EM) << 8;
drivers/tty/serial/8250/8250_em.c
147
static void serial8250_em_serial_dl_write(struct uart_8250_port *up, u32 value)
drivers/tty/serial/8250/8250_em.c
149
serial_out(up, UART_DLL_EM, value & 0xff);
drivers/tty/serial/8250/8250_em.c
150
serial_out(up, UART_DLM_EM, value >> 8 & 0xff);
drivers/tty/serial/8250/8250_em.c
157
struct uart_8250_port up;
drivers/tty/serial/8250/8250_em.c
178
memset(&up, 0, sizeof(up));
drivers/tty/serial/8250/8250_em.c
179
up.port.mapbase = regs->start;
drivers/tty/serial/8250/8250_em.c
180
up.port.irq = irq;
drivers/tty/serial/8250/8250_em.c
181
up.port.type = PORT_16750;
drivers/tty/serial/8250/8250_em.c
182
up.port.flags = UPF_FIXED_PORT | UPF_IOREMAP | UPF_FIXED_TYPE;
drivers/tty/serial/8250/8250_em.c
183
up.port.dev = dev;
drivers/tty/serial/8250/8250_em.c
184
up.port.private_data = priv;
drivers/tty/serial/8250/8250_em.c
186
up.port.uartclk = clk_get_rate(sclk);
drivers/tty/serial/8250/8250_em.c
188
up.port.iotype = UPIO_MEM32;
drivers/tty/serial/8250/8250_em.c
189
up.port.serial_in = serial8250_em_serial_in;
drivers/tty/serial/8250/8250_em.c
190
up.port.serial_out = serial8250_em_serial_out;
drivers/tty/serial/8250/8250_em.c
191
up.dl_read = serial8250_em_serial_dl_read;
drivers/tty/serial/8250/8250_em.c
192
up.dl_write = serial8250_em_serial_dl_write;
drivers/tty/serial/8250/8250_em.c
194
ret = serial8250_register_8250_port(&up);
drivers/tty/serial/8250/8250_exar.c
482
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_exar.c
488
lsr = serial_in(up, UART_LSR);
drivers/tty/serial/8250/8250_fsl.c
31
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_fsl.c
33
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/8250/8250_fsl.c
37
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/8250/8250_fsl.c
55
(up->lsr_saved_flags & UART_LSR_BI))) {
drivers/tty/serial/8250/8250_fsl.c
56
up->lsr_saved_flags &= ~UART_LSR_BI;
drivers/tty/serial/8250/8250_fsl.c
58
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/8250/8250_fsl.c
66
(up->ier & (UART_IER_RLSI | UART_IER_RDI))) {
drivers/tty/serial/8250/8250_fsl.c
67
lsr = serial8250_rx_chars(up, lsr);
drivers/tty/serial/8250/8250_fsl.c
71
if ((orig_lsr & UART_LSR_OE) && (up->overrun_backoff_time_ms > 0)) {
drivers/tty/serial/8250/8250_fsl.c
74
up->ier = serial_port_in(port, UART_IER);
drivers/tty/serial/8250/8250_fsl.c
75
if (up->ier & (UART_IER_RLSI | UART_IER_RDI)) {
drivers/tty/serial/8250/8250_fsl.c
81
cancel_delayed_work(&up->overrun_backoff);
drivers/tty/serial/8250/8250_fsl.c
84
delay = msecs_to_jiffies(up->overrun_backoff_time_ms);
drivers/tty/serial/8250/8250_fsl.c
85
schedule_delayed_work(&up->overrun_backoff, delay);
drivers/tty/serial/8250/8250_fsl.c
88
serial8250_modem_status(up);
drivers/tty/serial/8250/8250_fsl.c
90
if ((lsr & UART_LSR_THRE) && (up->ier & UART_IER_THRI))
drivers/tty/serial/8250/8250_fsl.c
91
serial8250_tx_chars(up);
drivers/tty/serial/8250/8250_fsl.c
93
up->lsr_saved_flags |= orig_lsr & UART_LSR_BI;
drivers/tty/serial/8250/8250_fsl.c
95
uart_unlock_and_check_sysrq_irqrestore(&up->port, flags);
drivers/tty/serial/8250/8250_ioc3.c
37
struct uart_8250_port up;
drivers/tty/serial/8250/8250_ioc3.c
59
memset(&up, 0, sizeof(struct uart_8250_port));
drivers/tty/serial/8250/8250_ioc3.c
60
up.port.iotype = UPIO_MEM;
drivers/tty/serial/8250/8250_ioc3.c
61
up.port.uartclk = IOC3_UARTCLK;
drivers/tty/serial/8250/8250_ioc3.c
62
up.port.type = PORT_16550A;
drivers/tty/serial/8250/8250_ioc3.c
63
up.port.irq = irq;
drivers/tty/serial/8250/8250_ioc3.c
64
up.port.flags = (UPF_BOOT_AUTOCONF | UPF_SHARE_IRQ);
drivers/tty/serial/8250/8250_ioc3.c
65
up.port.dev = &pdev->dev;
drivers/tty/serial/8250/8250_ioc3.c
66
up.port.membase = membase;
drivers/tty/serial/8250/8250_ioc3.c
67
up.port.mapbase = r->start;
drivers/tty/serial/8250/8250_ioc3.c
68
up.port.serial_in = ioc3_serial_in;
drivers/tty/serial/8250/8250_ioc3.c
69
up.port.serial_out = ioc3_serial_out;
drivers/tty/serial/8250/8250_ioc3.c
70
line = serial8250_register_8250_port(&up);
drivers/tty/serial/8250/8250_keba.c
100
static void kuart_dtr_line_config(struct uart_8250_port *up, u8 dtrlc)
drivers/tty/serial/8250/8250_keba.c
105
serial_out(up, KUART_EMODE_ICR_OFFSET, UART_ACR);
drivers/tty/serial/8250/8250_keba.c
108
acr = serial_in(up, KUART_EMODE_ICR_VALUE);
drivers/tty/serial/8250/8250_keba.c
111
serial_out(up, KUART_EMODE_ICR_VALUE, acr);
drivers/tty/serial/8250/8250_keba.c
117
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_keba.c
157
kuart_enhanced_mode(up, true);
drivers/tty/serial/8250/8250_keba.c
158
kuart_dtr_line_config(up, dtrlc);
drivers/tty/serial/8250/8250_keba.c
159
kuart_enhanced_mode(up, false);
drivers/tty/serial/8250/8250_keba.c
78
static void kuart_enhanced_mode(struct uart_8250_port *up, bool enable)
drivers/tty/serial/8250/8250_keba.c
83
lcr = serial_in(up, UART_LCR);
drivers/tty/serial/8250/8250_keba.c
86
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/8250/8250_keba.c
89
efr = serial_in(up, UART_EFR);
drivers/tty/serial/8250/8250_keba.c
94
serial_out(up, UART_EFR, efr);
drivers/tty/serial/8250/8250_keba.c
97
serial_out(up, UART_LCR, lcr);
drivers/tty/serial/8250/8250_loongson.c
100
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_loongson.c
102
serial_port_out(port, UART_LCR, up->lcr | UART_LCR_DLAB);
drivers/tty/serial/8250/8250_loongson.c
103
serial_dl_write(up, quot);
drivers/tty/serial/8250/8250_loongson.c
187
struct uart_8250_port *up = serial8250_get_port(priv->line);
drivers/tty/serial/8250/8250_loongson.c
191
if (!uart_console(&up->port) || console_suspend_enabled)
drivers/tty/serial/8250/8250_loongson.c
200
struct uart_8250_port *up = serial8250_get_port(priv->line);
drivers/tty/serial/8250/8250_loongson.c
203
if (!uart_console(&up->port) || console_suspend_enabled) {
drivers/tty/serial/8250/8250_lpc18xx.c
38
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_lpc18xx.c
52
baud_clk = port->uartclk / up->dl_read(up);
drivers/tty/serial/8250/8250_lpc18xx.c
64
serial_out(up, LPC18XX_UART_RS485CTRL, rs485_ctrl_reg);
drivers/tty/serial/8250/8250_lpc18xx.c
65
serial_out(up, LPC18XX_UART_RS485DLY, rs485_dly_reg);
drivers/tty/serial/8250/8250_lpss.c
167
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_lpss.c
175
up->dma = dma;
drivers/tty/serial/8250/8250_lpss.c
186
struct uart_8250_port *up = serial8250_get_port(lpss->data.line);
drivers/tty/serial/8250/8250_lpss.c
188
up->dma = NULL;
drivers/tty/serial/8250/8250_mid.c
139
struct uart_8250_port *up = up_to_u8250p(p);
drivers/tty/serial/8250/8250_mid.c
148
serial8250_rx_dma_flush(up);
drivers/tty/serial/8250/8250_mid.c
83
struct uart_8250_port *up = up_to_u8250p(p);
drivers/tty/serial/8250/8250_mid.c
94
serial8250_rx_dma_flush(up);
drivers/tty/serial/8250/8250_mtk.c
105
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/8250/8250_mtk.c
125
up->port.icount.rx += copied;
drivers/tty/serial/8250/8250_mtk.c
129
mtk8250_rx_dma(up);
drivers/tty/serial/8250/8250_mtk.c
131
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/8250/8250_mtk.c
134
static void mtk8250_rx_dma(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_mtk.c
136
struct uart_8250_dma *dma = up->dma;
drivers/tty/serial/8250/8250_mtk.c
148
desc->callback_param = up;
drivers/tty/serial/8250/8250_mtk.c
155
static void mtk8250_dma_enable(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_mtk.c
157
struct uart_8250_dma *dma = up->dma;
drivers/tty/serial/8250/8250_mtk.c
158
struct mtk8250_data *data = up->port.private_data;
drivers/tty/serial/8250/8250_mtk.c
159
int lcr = serial_in(up, UART_LCR);
drivers/tty/serial/8250/8250_mtk.c
170
serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO | UART_FCR_CLEAR_RCVR |
drivers/tty/serial/8250/8250_mtk.c
172
serial_out(up, MTK_UART_DMA_EN,
drivers/tty/serial/8250/8250_mtk.c
175
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/8250/8250_mtk.c
176
serial_out(up, MTK_UART_EFR, UART_EFR_ECB);
drivers/tty/serial/8250/8250_mtk.c
177
serial_out(up, UART_LCR, lcr);
drivers/tty/serial/8250/8250_mtk.c
186
mtk8250_rx_dma(up);
drivers/tty/serial/8250/8250_mtk.c
193
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_mtk.c
198
up->dma = NULL;
drivers/tty/serial/8250/8250_mtk.c
200
if (up->dma) {
drivers/tty/serial/8250/8250_mtk.c
212
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_mtk.c
217
if (up->dma)
drivers/tty/serial/8250/8250_mtk.c
224
serial8250_do_set_mctrl(&up->port, TIOCM_RTS);
drivers/tty/serial/8250/8250_mtk.c
227
static void mtk8250_disable_intrs(struct uart_8250_port *up, int mask)
drivers/tty/serial/8250/8250_mtk.c
230
lockdep_assert_held_once(&up->port.lock);
drivers/tty/serial/8250/8250_mtk.c
232
serial_out(up, UART_IER, serial_in(up, UART_IER) & (~mask));
drivers/tty/serial/8250/8250_mtk.c
235
static void mtk8250_enable_intrs(struct uart_8250_port *up, int mask)
drivers/tty/serial/8250/8250_mtk.c
238
lockdep_assert_held_once(&up->port.lock);
drivers/tty/serial/8250/8250_mtk.c
240
serial_out(up, UART_IER, serial_in(up, UART_IER) | mask);
drivers/tty/serial/8250/8250_mtk.c
243
static void mtk8250_set_flow_ctrl(struct uart_8250_port *up, int mode)
drivers/tty/serial/8250/8250_mtk.c
245
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_mtk.c
246
int lcr = serial_in(up, UART_LCR);
drivers/tty/serial/8250/8250_mtk.c
251
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/8250/8250_mtk.c
252
serial_out(up, MTK_UART_EFR, UART_EFR_ECB);
drivers/tty/serial/8250/8250_mtk.c
253
serial_out(up, UART_LCR, lcr);
drivers/tty/serial/8250/8250_mtk.c
254
lcr = serial_in(up, UART_LCR);
drivers/tty/serial/8250/8250_mtk.c
258
serial_out(up, MTK_UART_ESCAPE_DAT, MTK_UART_ESCAPE_CHAR);
drivers/tty/serial/8250/8250_mtk.c
259
serial_out(up, MTK_UART_ESCAPE_EN, 0x00);
drivers/tty/serial/8250/8250_mtk.c
260
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/8250/8250_mtk.c
261
serial_out(up, MTK_UART_EFR, serial_in(up, MTK_UART_EFR) &
drivers/tty/serial/8250/8250_mtk.c
263
serial_out(up, UART_LCR, lcr);
drivers/tty/serial/8250/8250_mtk.c
264
mtk8250_disable_intrs(up, MTK_UART_IER_XOFFI |
drivers/tty/serial/8250/8250_mtk.c
269
serial_out(up, MTK_UART_ESCAPE_DAT, MTK_UART_ESCAPE_CHAR);
drivers/tty/serial/8250/8250_mtk.c
270
serial_out(up, MTK_UART_ESCAPE_EN, 0x00);
drivers/tty/serial/8250/8250_mtk.c
271
serial_out(up, UART_MCR, UART_MCR_RTS);
drivers/tty/serial/8250/8250_mtk.c
272
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/8250/8250_mtk.c
275
serial_out(up, MTK_UART_EFR, MTK_UART_EFR_HW_FC |
drivers/tty/serial/8250/8250_mtk.c
276
(serial_in(up, MTK_UART_EFR) &
drivers/tty/serial/8250/8250_mtk.c
279
serial_out(up, UART_LCR, lcr);
drivers/tty/serial/8250/8250_mtk.c
280
mtk8250_disable_intrs(up, MTK_UART_IER_XOFFI);
drivers/tty/serial/8250/8250_mtk.c
281
mtk8250_enable_intrs(up, MTK_UART_IER_CTSI | MTK_UART_IER_RTSI);
drivers/tty/serial/8250/8250_mtk.c
285
serial_out(up, MTK_UART_ESCAPE_DAT, MTK_UART_ESCAPE_CHAR);
drivers/tty/serial/8250/8250_mtk.c
286
serial_out(up, MTK_UART_ESCAPE_EN, 0x01);
drivers/tty/serial/8250/8250_mtk.c
287
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/8250/8250_mtk.c
290
serial_out(up, MTK_UART_EFR, MTK_UART_EFR_XON1_XOFF1 |
drivers/tty/serial/8250/8250_mtk.c
291
(serial_in(up, MTK_UART_EFR) &
drivers/tty/serial/8250/8250_mtk.c
294
serial_out(up, MTK_UART_XON1, START_CHAR(port->state->port.tty));
drivers/tty/serial/8250/8250_mtk.c
295
serial_out(up, MTK_UART_XOFF1, STOP_CHAR(port->state->port.tty));
drivers/tty/serial/8250/8250_mtk.c
296
serial_out(up, UART_LCR, lcr);
drivers/tty/serial/8250/8250_mtk.c
297
mtk8250_disable_intrs(up, MTK_UART_IER_CTSI|MTK_UART_IER_RTSI);
drivers/tty/serial/8250/8250_mtk.c
298
mtk8250_enable_intrs(up, MTK_UART_IER_XOFFI);
drivers/tty/serial/8250/8250_mtk.c
315
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_mtk.c
321
if (up->dma) {
drivers/tty/serial/8250/8250_mtk.c
323
devm_kfree(up->port.dev, up->dma);
drivers/tty/serial/8250/8250_mtk.c
324
up->dma = NULL;
drivers/tty/serial/8250/8250_mtk.c
326
mtk8250_dma_enable(up);
drivers/tty/serial/8250/8250_mtk.c
383
serial_port_out(port, UART_LCR, up->lcr | UART_LCR_DLAB);
drivers/tty/serial/8250/8250_mtk.c
384
serial_dl_write(up, quot);
drivers/tty/serial/8250/8250_mtk.c
387
serial_port_out(port, UART_LCR, up->lcr);
drivers/tty/serial/8250/8250_mtk.c
418
mtk8250_set_flow_ctrl(up, mode);
drivers/tty/serial/8250/8250_mtk.c
421
up->port.cons->cflag = termios->c_cflag;
drivers/tty/serial/8250/8250_mtk.c
432
struct uart_8250_port *up = serial8250_get_port(data->line);
drivers/tty/serial/8250/8250_mtk.c
436
(serial_in(up, MTK_UART_DEBUG0));
drivers/tty/serial/8250/8250_mtk.c
89
static void mtk8250_rx_dma(struct uart_8250_port *up);
drivers/tty/serial/8250/8250_mtk.c
93
struct uart_8250_port *up = param;
drivers/tty/serial/8250/8250_mtk.c
94
struct uart_8250_dma *dma = up->dma;
drivers/tty/serial/8250/8250_mtk.c
95
struct mtk8250_data *data = up->port.private_data;
drivers/tty/serial/8250/8250_mtk.c
96
struct tty_port *tty_port = &up->port.state->port;
drivers/tty/serial/8250/8250_ni.c
109
struct uart_8250_port *up = container_of(port, struct uart_8250_port, port);
drivers/tty/serial/8250/8250_ni.c
119
up->acr &= ~NI16550_ACR_AUTO_DTR_EN;
drivers/tty/serial/8250/8250_ni.c
123
up->acr |= NI16550_ACR_AUTO_DTR_EN;
drivers/tty/serial/8250/8250_ni.c
126
dev_dbg(port->dev, "config rs485: write pcr: 0x%02x, acr: %02x\n", pcr, up->acr);
drivers/tty/serial/8250/8250_ni.c
128
serial_icr_write(up, UART_ACR, up->acr);
drivers/tty/serial/8250/8250_ni.c
133
static bool is_pmr_rs232_mode(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_ni.c
135
u8 pmr = serial_in(up, NI16550_PMR_OFFSET);
drivers/tty/serial/8250/8250_ni.c
159
static void ni16550_config_prescaler(struct uart_8250_port *up,
drivers/tty/serial/8250/8250_ni.c
169
lcr_value = serial_in(up, UART_LCR);
drivers/tty/serial/8250/8250_ni.c
170
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/8250/8250_ni.c
172
efr_value = serial_in(up, UART_EFR);
drivers/tty/serial/8250/8250_ni.c
175
serial_out(up, UART_EFR, efr_value);
drivers/tty/serial/8250/8250_ni.c
178
serial_out(up, UART_LCR, lcr_value);
drivers/tty/serial/8250/8250_ni.c
181
serial_out(up, UART_SCR, UART_CPR);
drivers/tty/serial/8250/8250_ni.c
182
serial_out(up, UART_ICR, prescaler);
drivers/tty/serial/8250/8250_ni.c
270
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_ni.c
272
up->mcr |= UART_MCR_CLKSEL;
drivers/tty/serial/8250/8250_of.c
166
up->rs485_start_tx = serial8250_em485_start_tx;
drivers/tty/serial/8250/8250_of.c
167
up->rs485_stop_tx = serial8250_em485_stop_tx;
drivers/tty/serial/8250/8250_of.c
88
int type, struct uart_8250_port *up,
drivers/tty/serial/8250/8250_of.c
94
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_omap.c
1220
static bool handle_rx_dma(struct uart_8250_port *up, unsigned int iir)
drivers/tty/serial/8250/8250_omap.c
1226
omap_8250_rx_dma_flush(up);
drivers/tty/serial/8250/8250_omap.c
1229
return omap_8250_rx_dma(up);
drivers/tty/serial/8250/8250_omap.c
1232
static u16 omap_8250_handle_rx_dma(struct uart_8250_port *up, u8 iir, u16 status)
drivers/tty/serial/8250/8250_omap.c
1236
if (handle_rx_dma(up, iir)) {
drivers/tty/serial/8250/8250_omap.c
1237
status = serial8250_rx_chars(up, status);
drivers/tty/serial/8250/8250_omap.c
1238
omap_8250_rx_dma(up);
drivers/tty/serial/8250/8250_omap.c
1245
static void am654_8250_handle_uart_errors(struct uart_8250_port *up, u8 iir, u16 status)
drivers/tty/serial/8250/8250_omap.c
1248
serial8250_clear_and_reinit_fifos(up);
drivers/tty/serial/8250/8250_omap.c
1249
serial_in(up, UART_LSR);
drivers/tty/serial/8250/8250_omap.c
1250
serial_in(up, UART_OMAP_RESUME);
drivers/tty/serial/8250/8250_omap.c
1253
serial_in(up, UART_RX);
drivers/tty/serial/8250/8250_omap.c
1255
serial_in(up, UART_IIR);
drivers/tty/serial/8250/8250_omap.c
1259
static void am654_8250_handle_rx_dma(struct uart_8250_port *up, u8 iir,
drivers/tty/serial/8250/8250_omap.c
1263
lockdep_assert_held_once(&up->port.lock);
drivers/tty/serial/8250/8250_omap.c
1269
(up->ier & UART_IER_RDI) && !(status & UART_LSR_OE)) {
drivers/tty/serial/8250/8250_omap.c
1270
am654_8250_handle_uart_errors(up, iir, status);
drivers/tty/serial/8250/8250_omap.c
1271
omap_8250_rx_dma(up);
drivers/tty/serial/8250/8250_omap.c
1272
serial_out(up, UART_OMAP_EFR2, UART_OMAP_EFR2_TIMEOUT_BEHAVE);
drivers/tty/serial/8250/8250_omap.c
1279
up->ier &= ~(UART_IER_RLSI | UART_IER_RDI);
drivers/tty/serial/8250/8250_omap.c
1280
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/8250/8250_omap.c
1281
omap_8250_rx_dma_flush(up);
drivers/tty/serial/8250/8250_omap.c
1282
serial_in(up, UART_IIR);
drivers/tty/serial/8250/8250_omap.c
1283
serial_out(up, UART_OMAP_EFR2, 0x0);
drivers/tty/serial/8250/8250_omap.c
1284
up->ier |= UART_IER_RLSI | UART_IER_RDI;
drivers/tty/serial/8250/8250_omap.c
1285
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/8250/8250_omap.c
1287
am654_8250_handle_uart_errors(up, iir, status);
drivers/tty/serial/8250/8250_omap.c
1298
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_omap.c
1314
am654_8250_handle_rx_dma(up, iir, status);
drivers/tty/serial/8250/8250_omap.c
1316
status = omap_8250_handle_rx_dma(up, iir, status);
drivers/tty/serial/8250/8250_omap.c
1319
serial8250_modem_status(up);
drivers/tty/serial/8250/8250_omap.c
1320
if (status & UART_LSR_THRE && up->dma->tx_err) {
drivers/tty/serial/8250/8250_omap.c
1323
up->dma->tx_err = 0;
drivers/tty/serial/8250/8250_omap.c
1324
serial8250_tx_chars(up);
drivers/tty/serial/8250/8250_omap.c
1330
if (omap_8250_tx_dma(up))
drivers/tty/serial/8250/8250_omap.c
1331
serial8250_tx_chars(up);
drivers/tty/serial/8250/8250_omap.c
1419
struct uart_8250_port up;
drivers/tty/serial/8250/8250_omap.c
1439
memset(&up, 0, sizeof(up));
drivers/tty/serial/8250/8250_omap.c
1440
up.port.dev = &pdev->dev;
drivers/tty/serial/8250/8250_omap.c
1441
up.port.mapbase = regs->start;
drivers/tty/serial/8250/8250_omap.c
1442
up.port.membase = membase;
drivers/tty/serial/8250/8250_omap.c
1451
up.port.type = PORT_8250;
drivers/tty/serial/8250/8250_omap.c
1452
up.port.flags = UPF_FIXED_PORT | UPF_FIXED_TYPE | UPF_SOFT_FLOW | UPF_HARD_FLOW;
drivers/tty/serial/8250/8250_omap.c
1453
up.port.private_data = priv;
drivers/tty/serial/8250/8250_omap.c
1455
up.tx_loadsz = 64;
drivers/tty/serial/8250/8250_omap.c
1456
up.capabilities = UART_CAP_FIFO;
drivers/tty/serial/8250/8250_omap.c
1464
up.capabilities |= UART_CAP_RPM;
drivers/tty/serial/8250/8250_omap.c
1466
up.port.set_termios = omap_8250_set_termios;
drivers/tty/serial/8250/8250_omap.c
1467
up.port.set_mctrl = omap8250_set_mctrl;
drivers/tty/serial/8250/8250_omap.c
1468
up.port.pm = omap_8250_pm;
drivers/tty/serial/8250/8250_omap.c
1469
up.port.startup = omap_8250_startup;
drivers/tty/serial/8250/8250_omap.c
1470
up.port.shutdown = omap_8250_shutdown;
drivers/tty/serial/8250/8250_omap.c
1471
up.port.throttle = omap_8250_throttle;
drivers/tty/serial/8250/8250_omap.c
1472
up.port.unthrottle = omap_8250_unthrottle;
drivers/tty/serial/8250/8250_omap.c
1473
up.port.rs485_config = omap8250_rs485_config;
drivers/tty/serial/8250/8250_omap.c
1475
up.port.rs485_supported = serial8250_em485_supported;
drivers/tty/serial/8250/8250_omap.c
1476
up.rs485_start_tx = serial8250_em485_start_tx;
drivers/tty/serial/8250/8250_omap.c
1477
up.rs485_stop_tx = serial8250_em485_stop_tx;
drivers/tty/serial/8250/8250_omap.c
1478
up.port.has_sysrq = IS_ENABLED(CONFIG_SERIAL_8250_CONSOLE);
drivers/tty/serial/8250/8250_omap.c
1480
ret = uart_read_port_properties(&up.port);
drivers/tty/serial/8250/8250_omap.c
1484
up.port.regshift = OMAP_UART_REGSHIFT;
drivers/tty/serial/8250/8250_omap.c
1485
up.port.fifosize = 64;
drivers/tty/serial/8250/8250_omap.c
1487
if (!up.port.uartclk) {
drivers/tty/serial/8250/8250_omap.c
1495
up.port.uartclk = clk_get_rate(clk);
drivers/tty/serial/8250/8250_omap.c
1500
&up.overrun_backoff_time_ms) != 0)
drivers/tty/serial/8250/8250_omap.c
1501
up.overrun_backoff_time_ms = 0;
drivers/tty/serial/8250/8250_omap.c
1507
if (!up.port.uartclk) {
drivers/tty/serial/8250/8250_omap.c
1508
up.port.uartclk = DEFAULT_CLK_SPEED;
drivers/tty/serial/8250/8250_omap.c
1544
omap_serial_fill_features_erratas(&up, priv);
drivers/tty/serial/8250/8250_omap.c
1545
up.port.handle_irq = omap8250_no_handle_irq;
drivers/tty/serial/8250/8250_omap.c
1582
irq_set_status_flags(up.port.irq, IRQ_NOAUTOEN);
drivers/tty/serial/8250/8250_omap.c
1583
ret = devm_request_irq(&pdev->dev, up.port.irq, omap8250_irq, 0,
drivers/tty/serial/8250/8250_omap.c
1590
ret = serial8250_register_8250_port(&up);
drivers/tty/serial/8250/8250_omap.c
1616
struct uart_8250_port *up;
drivers/tty/serial/8250/8250_omap.c
1623
up = serial8250_get_port(priv->line);
drivers/tty/serial/8250/8250_omap.c
1624
omap_8250_shutdown(&up->port);
drivers/tty/serial/8250/8250_omap.c
1657
struct uart_8250_port *up = serial8250_get_port(priv->line);
drivers/tty/serial/8250/8250_omap.c
1674
serial_out(up, UART_OMAP_WER, priv->wer);
drivers/tty/serial/8250/8250_omap.c
1675
if (uart_console(&up->port) && console_suspend_enabled)
drivers/tty/serial/8250/8250_omap.c
1685
struct uart_8250_port *up = serial8250_get_port(priv->line);
drivers/tty/serial/8250/8250_omap.c
1695
if (uart_console(&up->port) && console_suspend_enabled) {
drivers/tty/serial/8250/8250_omap.c
1709
static int omap8250_lost_context(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_omap.c
1713
val = serial_in(up, UART_OMAP_SCR);
drivers/tty/serial/8250/8250_omap.c
1773
struct uart_8250_port *up = NULL;
drivers/tty/serial/8250/8250_omap.c
1776
up = serial8250_get_port(priv->line);
drivers/tty/serial/8250/8250_omap.c
1785
if (up) {
drivers/tty/serial/8250/8250_omap.c
1787
omap8250_update_mdr1(up, priv);
drivers/tty/serial/8250/8250_omap.c
1789
serial_out(up, UART_OMAP_WER, priv->wer);
drivers/tty/serial/8250/8250_omap.c
1793
if (up && up->dma && up->dma->rxchan)
drivers/tty/serial/8250/8250_omap.c
1794
omap_8250_rx_dma_flush(up);
drivers/tty/serial/8250/8250_omap.c
1806
struct uart_8250_port *up = NULL;
drivers/tty/serial/8250/8250_omap.c
1813
up = serial8250_get_port(priv->line);
drivers/tty/serial/8250/8250_omap.c
1815
if (up && omap8250_lost_context(up)) {
drivers/tty/serial/8250/8250_omap.c
1816
guard(uart_port_lock_irq)(&up->port);
drivers/tty/serial/8250/8250_omap.c
1817
omap8250_restore_regs(up);
drivers/tty/serial/8250/8250_omap.c
1820
if (up && up->dma && up->dma->rxchan && !(priv->habit & UART_HAS_EFR2)) {
drivers/tty/serial/8250/8250_omap.c
1821
guard(uart_port_lock_irq)(&up->port);
drivers/tty/serial/8250/8250_omap.c
1822
omap_8250_rx_dma(up);
drivers/tty/serial/8250/8250_omap.c
185
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_omap.c
191
if (!mctrl_gpio_to_gpiod(up->gpios, UART_GPIO_RTS)) {
drivers/tty/serial/8250/8250_omap.c
196
lcr = serial_in(up, UART_LCR);
drivers/tty/serial/8250/8250_omap.c
197
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/8250/8250_omap.c
202
serial_out(up, UART_EFR, priv->efr);
drivers/tty/serial/8250/8250_omap.c
203
serial_out(up, UART_LCR, lcr);
drivers/tty/serial/8250/8250_omap.c
230
static void omap_8250_mdr1_errataset(struct uart_8250_port *up,
drivers/tty/serial/8250/8250_omap.c
233
serial_out(up, UART_OMAP_MDR1, priv->mdr1);
drivers/tty/serial/8250/8250_omap.c
235
serial_out(up, UART_FCR, up->fcr | UART_FCR_CLEAR_XMIT |
drivers/tty/serial/8250/8250_omap.c
266
static void omap8250_update_scr(struct uart_8250_port *up,
drivers/tty/serial/8250/8250_omap.c
271
old_scr = serial_in(up, UART_OMAP_SCR);
drivers/tty/serial/8250/8250_omap.c
281
serial_out(up, UART_OMAP_SCR,
drivers/tty/serial/8250/8250_omap.c
283
serial_out(up, UART_OMAP_SCR, priv->scr);
drivers/tty/serial/8250/8250_omap.c
286
static void omap8250_update_mdr1(struct uart_8250_port *up,
drivers/tty/serial/8250/8250_omap.c
290
omap_8250_mdr1_errataset(up, priv);
drivers/tty/serial/8250/8250_omap.c
292
serial_out(up, UART_OMAP_MDR1, priv->mdr1);
drivers/tty/serial/8250/8250_omap.c
295
static void omap8250_restore_regs(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_omap.c
297
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_omap.c
299
struct uart_8250_dma *dma = up->dma;
drivers/tty/serial/8250/8250_omap.c
300
u8 mcr = serial8250_in_MCR(up);
drivers/tty/serial/8250/8250_omap.c
316
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/8250/8250_omap.c
317
serial_out(up, UART_EFR, UART_EFR_ECB);
drivers/tty/serial/8250/8250_omap.c
319
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A);
drivers/tty/serial/8250/8250_omap.c
320
serial8250_out_MCR(up, mcr | UART_MCR_TCRTLR);
drivers/tty/serial/8250/8250_omap.c
321
serial_out(up, UART_FCR, up->fcr);
drivers/tty/serial/8250/8250_omap.c
323
omap8250_update_scr(up, priv);
drivers/tty/serial/8250/8250_omap.c
325
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/8250/8250_omap.c
327
serial_out(up, UART_TI752_TCR, OMAP_UART_TCR_RESTORE(16) |
drivers/tty/serial/8250/8250_omap.c
329
serial_out(up, UART_TI752_TLR,
drivers/tty/serial/8250/8250_omap.c
333
serial_out(up, UART_LCR, 0);
drivers/tty/serial/8250/8250_omap.c
336
serial8250_out_MCR(up, mcr);
drivers/tty/serial/8250/8250_omap.c
338
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/8250/8250_omap.c
340
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/8250/8250_omap.c
341
serial_dl_write(up, priv->quot);
drivers/tty/serial/8250/8250_omap.c
343
serial_out(up, UART_EFR, priv->efr);
drivers/tty/serial/8250/8250_omap.c
346
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/8250/8250_omap.c
347
serial_out(up, UART_XON1, priv->xon);
drivers/tty/serial/8250/8250_omap.c
348
serial_out(up, UART_XOFF1, priv->xoff);
drivers/tty/serial/8250/8250_omap.c
350
serial_out(up, UART_LCR, up->lcr);
drivers/tty/serial/8250/8250_omap.c
352
omap8250_update_mdr1(up, priv);
drivers/tty/serial/8250/8250_omap.c
356
serial_out(up, UART_OMAP_MDR3, priv->mdr3);
drivers/tty/serial/8250/8250_omap.c
360
serial8250_em485_stop_tx(up, true);
drivers/tty/serial/8250/8250_omap.c
366
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_omap.c
387
guard(serial8250_rpm)(up);
drivers/tty/serial/8250/8250_omap.c
432
up->ier &= ~UART_IER_MSI;
drivers/tty/serial/8250/8250_omap.c
434
up->ier |= UART_IER_MSI;
drivers/tty/serial/8250/8250_omap.c
436
up->lcr = cval;
drivers/tty/serial/8250/8250_omap.c
456
up->fcr = UART_FCR_ENABLE_FIFO;
drivers/tty/serial/8250/8250_omap.c
457
up->fcr |= TRIGGER_FCR_MASK(priv->tx_trigger) << OMAP_UART_FCR_TX_TRIG;
drivers/tty/serial/8250/8250_omap.c
458
up->fcr |= TRIGGER_FCR_MASK(priv->rx_trigger) << OMAP_UART_FCR_RX_TRIG;
drivers/tty/serial/8250/8250_omap.c
463
if (up->dma)
drivers/tty/serial/8250/8250_omap.c
474
!mctrl_gpio_to_gpiod(up->gpios, UART_GPIO_RTS) &&
drivers/tty/serial/8250/8250_omap.c
475
!mctrl_gpio_to_gpiod(up->gpios, UART_GPIO_CTS)) {
drivers/tty/serial/8250/8250_omap.c
495
omap8250_restore_regs(up);
drivers/tty/serial/8250/8250_omap.c
533
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_omap.c
536
guard(serial8250_rpm)(up);
drivers/tty/serial/8250/8250_omap.c
540
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/8250/8250_omap.c
541
efr = serial_in(up, UART_EFR);
drivers/tty/serial/8250/8250_omap.c
542
serial_out(up, UART_EFR, efr | UART_EFR_ECB);
drivers/tty/serial/8250/8250_omap.c
543
serial_out(up, UART_LCR, 0);
drivers/tty/serial/8250/8250_omap.c
545
serial_out(up, UART_IER, (state != 0) ? UART_IERX_SLEEP : 0);
drivers/tty/serial/8250/8250_omap.c
546
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/8250/8250_omap.c
547
serial_out(up, UART_EFR, efr);
drivers/tty/serial/8250/8250_omap.c
548
serial_out(up, UART_LCR, 0);
drivers/tty/serial/8250/8250_omap.c
551
static void omap_serial_fill_features_erratas(struct uart_8250_port *up,
drivers/tty/serial/8250/8250_omap.c
582
dev_warn(up->port.dev,
drivers/tty/serial/8250/8250_omap.c
631
struct uart_8250_port *up = serial8250_get_port(priv->line);
drivers/tty/serial/8250/8250_omap.c
632
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_omap.c
645
if (up->dma) {
drivers/tty/serial/8250/8250_omap.c
668
efr2 = serial_in(up, UART_OMAP_EFR2);
drivers/tty/serial/8250/8250_omap.c
669
timeout_h = serial_in(up, UART_OMAP_TO_H);
drivers/tty/serial/8250/8250_omap.c
670
timeout_l = serial_in(up, UART_OMAP_TO_L);
drivers/tty/serial/8250/8250_omap.c
671
serial_out(up, UART_OMAP_TO_H, 0xFF);
drivers/tty/serial/8250/8250_omap.c
672
serial_out(up, UART_OMAP_TO_L, 0xFF);
drivers/tty/serial/8250/8250_omap.c
673
serial_out(up, UART_OMAP_EFR2, UART_OMAP_EFR2_TIMEOUT_BEHAVE);
drivers/tty/serial/8250/8250_omap.c
674
serial_in(up, UART_IIR);
drivers/tty/serial/8250/8250_omap.c
675
serial_out(up, UART_OMAP_EFR2, efr2);
drivers/tty/serial/8250/8250_omap.c
676
serial_out(up, UART_OMAP_TO_H, timeout_h);
drivers/tty/serial/8250/8250_omap.c
677
serial_out(up, UART_OMAP_TO_L, timeout_l);
drivers/tty/serial/8250/8250_omap.c
681
if ((lsr & UART_LSR_OE) && up->overrun_backoff_time_ms > 0) {
drivers/tty/serial/8250/8250_omap.c
686
up->ier = serial_port_in(port, UART_IER);
drivers/tty/serial/8250/8250_omap.c
687
if (up->ier & (UART_IER_RLSI | UART_IER_RDI)) {
drivers/tty/serial/8250/8250_omap.c
693
cancel_delayed_work(&up->overrun_backoff);
drivers/tty/serial/8250/8250_omap.c
697
delay = msecs_to_jiffies(up->overrun_backoff_time_ms);
drivers/tty/serial/8250/8250_omap.c
698
schedule_delayed_work(&up->overrun_backoff, delay);
drivers/tty/serial/8250/8250_omap.c
709
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_omap.c
721
up->capabilities |= UART_CAP_RPM;
drivers/tty/serial/8250/8250_omap.c
724
guard(serial8250_rpm)(up);
drivers/tty/serial/8250/8250_omap.c
726
serial_out(up, UART_FCR, UART_FCR_CLEAR_RCVR | UART_FCR_CLEAR_XMIT);
drivers/tty/serial/8250/8250_omap.c
728
serial_out(up, UART_LCR, UART_LCR_WLEN8);
drivers/tty/serial/8250/8250_omap.c
730
up->lsr_saved_flags = 0;
drivers/tty/serial/8250/8250_omap.c
731
up->msr_saved_flags = 0;
drivers/tty/serial/8250/8250_omap.c
735
up->dma = &priv->omap8250_dma;
drivers/tty/serial/8250/8250_omap.c
736
ret = serial8250_request_dma(up);
drivers/tty/serial/8250/8250_omap.c
740
up->dma = NULL;
drivers/tty/serial/8250/8250_omap.c
743
up->dma = NULL;
drivers/tty/serial/8250/8250_omap.c
748
up->ier = UART_IER_RLSI | UART_IER_RDI;
drivers/tty/serial/8250/8250_omap.c
749
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/8250/8250_omap.c
756
serial_out(up, UART_OMAP_WER, priv->wer);
drivers/tty/serial/8250/8250_omap.c
758
if (up->dma && !(priv->habit & UART_HAS_EFR2)) {
drivers/tty/serial/8250/8250_omap.c
760
up->dma->rx_dma(up);
drivers/tty/serial/8250/8250_omap.c
770
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_omap.c
773
guard(serial8250_rpm)(up);
drivers/tty/serial/8250/8250_omap.c
776
if (up->dma)
drivers/tty/serial/8250/8250_omap.c
777
omap_8250_rx_dma_flush(up);
drivers/tty/serial/8250/8250_omap.c
779
serial_out(up, UART_OMAP_WER, 0);
drivers/tty/serial/8250/8250_omap.c
781
serial_out(up, UART_OMAP_EFR2, 0x0);
drivers/tty/serial/8250/8250_omap.c
785
up->ier = 0;
drivers/tty/serial/8250/8250_omap.c
786
serial_out(up, UART_IER, 0);
drivers/tty/serial/8250/8250_omap.c
792
serial8250_release_dma(up);
drivers/tty/serial/8250/8250_omap.c
793
up->dma = NULL;
drivers/tty/serial/8250/8250_omap.c
798
if (up->lcr & UART_LCR_SBC)
drivers/tty/serial/8250/8250_omap.c
799
serial_out(up, UART_LCR, up->lcr & ~UART_LCR_SBC);
drivers/tty/serial/8250/8250_omap.c
800
serial_out(up, UART_FCR, UART_FCR_CLEAR_RCVR | UART_FCR_CLEAR_XMIT);
drivers/tty/serial/8250/8250_omap.c
817
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_omap.c
819
guard(serial8250_rpm)(up);
drivers/tty/serial/8250/8250_omap.c
824
if (up->dma)
drivers/tty/serial/8250/8250_omap.c
825
up->dma->rx_dma(up);
drivers/tty/serial/8250/8250_omap.c
826
up->ier |= UART_IER_RLSI | UART_IER_RDI;
drivers/tty/serial/8250/8250_omap.c
827
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/8250/8250_omap.c
835
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_omap.c
866
mctrl_gpio_to_gpiod(up->gpios, UART_GPIO_RTS) ||
drivers/tty/serial/8250/8250_omap.c
870
serial_out(up, UART_OMAP_MDR3, priv->mdr3);
drivers/tty/serial/8250/8250_omap.c
893
serial_out(up, UART_OMAP_MDR3, priv->mdr3);
drivers/tty/serial/8250/8250_pci.c
1276
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_pci.c
1281
serial_icr_write(up, UART_TCR, tcr);
drivers/tty/serial/8250/8250_pci.c
1282
serial_icr_write(up, UART_CPR, cpr);
drivers/tty/serial/8250/8250_pci.c
1283
serial_icr_write(up, UART_CKS, cpr2);
drivers/tty/serial/8250/8250_pci.c
1294
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_pci.c
1296
up->mcr |= UART_MCR_CLKSEL;
drivers/tty/serial/8250/8250_pci.c
1306
struct uart_8250_port *up, int idx)
drivers/tty/serial/8250/8250_pci.c
1311
up->port.flags |= UPF_FULL_PROBE;
drivers/tty/serial/8250/8250_pci.c
1312
up->port.get_divisor = pci_oxsemi_tornado_get_divisor;
drivers/tty/serial/8250/8250_pci.c
1313
up->port.set_divisor = pci_oxsemi_tornado_set_divisor;
drivers/tty/serial/8250/8250_pci.c
1314
up->port.set_mctrl = pci_oxsemi_tornado_set_mctrl;
drivers/tty/serial/8250/8250_pci.c
1317
return pci_default_setup(priv, board, up, idx);
drivers/tty/serial/8250/8250_pci.c
1847
struct uart_8250_port *up = up_to_u8250p(p);
drivers/tty/serial/8250/8250_pci.c
1853
serial8250_clear_and_reinit_fifos(up);
drivers/tty/serial/8250/8250_pci.c
1858
struct uart_8250_port *up = up_to_u8250p(p);
drivers/tty/serial/8250/8250_pci.c
1874
val = up->ier;
drivers/tty/serial/8250/8250_pci1xxxx.c
488
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_pci1xxxx.c
527
!(up->capabilities & UART_CAP_RPM))
drivers/tty/serial/8250/8250_pci1xxxx.c
556
struct uart_8250_port *up = serial8250_get_port(line);
drivers/tty/serial/8250/8250_pci1xxxx.c
557
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_pci1xxxx.c
565
wakeup_mask = readb(up->port.membase + UART_WAKE_MASK_REG);
drivers/tty/serial/8250/8250_pci1xxxx.c
583
struct uart_8250_port *up = serial8250_get_port(line);
drivers/tty/serial/8250/8250_pci1xxxx.c
584
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_pericom.c
73
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_pericom.c
77
serial_dl_write(up, divisor);
drivers/tty/serial/8250/8250_platform.c
238
struct uart_8250_port *up = serial8250_get_port(i);
drivers/tty/serial/8250/8250_platform.c
240
if (up->port.dev == &dev->dev)
drivers/tty/serial/8250/8250_platform.c
250
struct uart_8250_port *up = serial8250_get_port(i);
drivers/tty/serial/8250/8250_platform.c
252
if (up->port.type != PORT_UNKNOWN && up->port.dev == &dev->dev)
drivers/tty/serial/8250/8250_platform.c
253
uart_suspend_port(&serial8250_reg, &up->port);
drivers/tty/serial/8250/8250_platform.c
264
struct uart_8250_port *up = serial8250_get_port(i);
drivers/tty/serial/8250/8250_platform.c
266
if (up->port.type != PORT_UNKNOWN && up->port.dev == &dev->dev)
drivers/tty/serial/8250/8250_platform.c
79
struct uart_8250_port *up = serial8250_get_port(i);
drivers/tty/serial/8250/8250_platform.c
80
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_platform.c
96
serial8250_isa_config(i, &up->port, &up->capabilities);
drivers/tty/serial/8250/8250_port.c
1004
serial_out(up, UART_LCR, 0);
drivers/tty/serial/8250/8250_port.c
1005
serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO | UART_FCR7_64BYTE);
drivers/tty/serial/8250/8250_port.c
1006
status1 = serial_in(up, UART_IIR) & UART_IIR_FIFO_ENABLED_16750;
drivers/tty/serial/8250/8250_port.c
1007
serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO);
drivers/tty/serial/8250/8250_port.c
1009
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A);
drivers/tty/serial/8250/8250_port.c
1010
serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO | UART_FCR7_64BYTE);
drivers/tty/serial/8250/8250_port.c
1011
status2 = serial_in(up, UART_IIR) & UART_IIR_FIFO_ENABLED_16750;
drivers/tty/serial/8250/8250_port.c
1012
serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO);
drivers/tty/serial/8250/8250_port.c
1014
serial_out(up, UART_LCR, 0);
drivers/tty/serial/8250/8250_port.c
1018
up->port.type = PORT_16750;
drivers/tty/serial/8250/8250_port.c
1019
up->capabilities |= UART_CAP_AFE | UART_CAP_SLEEP;
drivers/tty/serial/8250/8250_port.c
1031
iersave = serial_in(up, UART_IER);
drivers/tty/serial/8250/8250_port.c
1032
serial_out(up, UART_IER, iersave & ~UART_IER_UUE);
drivers/tty/serial/8250/8250_port.c
1033
if (!(serial_in(up, UART_IER) & UART_IER_UUE)) {
drivers/tty/serial/8250/8250_port.c
1038
serial_out(up, UART_IER, iersave | UART_IER_UUE);
drivers/tty/serial/8250/8250_port.c
1039
if (serial_in(up, UART_IER) & UART_IER_UUE) {
drivers/tty/serial/8250/8250_port.c
1044
up->port.type = PORT_XSCALE;
drivers/tty/serial/8250/8250_port.c
1045
up->capabilities |= UART_CAP_UUE | UART_CAP_RTOIE;
drivers/tty/serial/8250/8250_port.c
1049
serial_out(up, UART_IER, iersave);
drivers/tty/serial/8250/8250_port.c
1055
if (up->port.type == PORT_16550A && size_fifo(up) == 64) {
drivers/tty/serial/8250/8250_port.c
1056
up->port.type = PORT_U6_16550A;
drivers/tty/serial/8250/8250_port.c
1057
up->capabilities |= UART_CAP_AFE;
drivers/tty/serial/8250/8250_port.c
1068
static void autoconfig(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_port.c
1072
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_port.c
1087
up->capabilities = 0;
drivers/tty/serial/8250/8250_port.c
1088
up->bugs = 0;
drivers/tty/serial/8250/8250_port.c
1104
scratch = serial_in(up, UART_IER);
drivers/tty/serial/8250/8250_port.c
1105
serial_out(up, UART_IER, 0);
drivers/tty/serial/8250/8250_port.c
1113
scratch2 = serial_in(up, UART_IER) & UART_IER_ALL_INTR;
drivers/tty/serial/8250/8250_port.c
1114
serial_out(up, UART_IER, UART_IER_ALL_INTR);
drivers/tty/serial/8250/8250_port.c
1118
scratch3 = serial_in(up, UART_IER) & UART_IER_ALL_INTR;
drivers/tty/serial/8250/8250_port.c
1119
serial_out(up, UART_IER, scratch);
drivers/tty/serial/8250/8250_port.c
1129
save_mcr = serial8250_in_MCR(up);
drivers/tty/serial/8250/8250_port.c
1130
save_lcr = serial_in(up, UART_LCR);
drivers/tty/serial/8250/8250_port.c
1142
serial8250_out_MCR(up, UART_MCR_LOOP | UART_MCR_OUT2 | UART_MCR_RTS);
drivers/tty/serial/8250/8250_port.c
1143
status1 = serial_in(up, UART_MSR) & UART_MSR_STATUS_BITS;
drivers/tty/serial/8250/8250_port.c
1144
serial8250_out_MCR(up, save_mcr);
drivers/tty/serial/8250/8250_port.c
1160
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/8250/8250_port.c
1161
serial_out(up, UART_EFR, 0);
drivers/tty/serial/8250/8250_port.c
1162
serial_out(up, UART_LCR, 0);
drivers/tty/serial/8250/8250_port.c
1164
serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO);
drivers/tty/serial/8250/8250_port.c
1166
switch (serial_in(up, UART_IIR) & UART_IIR_FIFO_ENABLED) {
drivers/tty/serial/8250/8250_port.c
1168
autoconfig_8250(up);
drivers/tty/serial/8250/8250_port.c
1174
autoconfig_16550a(up);
drivers/tty/serial/8250/8250_port.c
1181
rsa_autoconfig(up);
drivers/tty/serial/8250/8250_port.c
1183
serial_out(up, UART_LCR, save_lcr);
drivers/tty/serial/8250/8250_port.c
1185
port->fifosize = uart_config[up->port.type].fifo_size;
drivers/tty/serial/8250/8250_port.c
1186
old_capabilities = up->capabilities;
drivers/tty/serial/8250/8250_port.c
1187
up->capabilities = uart_config[port->type].flags;
drivers/tty/serial/8250/8250_port.c
1188
up->tx_loadsz = uart_config[port->type].tx_loadsz;
drivers/tty/serial/8250/8250_port.c
1194
rsa_reset(up);
drivers/tty/serial/8250/8250_port.c
1195
serial8250_out_MCR(up, save_mcr);
drivers/tty/serial/8250/8250_port.c
1196
serial8250_clear_fifos(up);
drivers/tty/serial/8250/8250_port.c
1197
serial_in(up, UART_RX);
drivers/tty/serial/8250/8250_port.c
1198
serial8250_clear_IER(up);
drivers/tty/serial/8250/8250_port.c
1207
fintek_8250_probe(up);
drivers/tty/serial/8250/8250_port.c
1209
if (up->capabilities != old_capabilities) {
drivers/tty/serial/8250/8250_port.c
1211
old_capabilities, up->capabilities);
drivers/tty/serial/8250/8250_port.c
1215
static void autoconfig_irq(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_port.c
1217
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_port.c
1233
save_mcr = serial8250_in_MCR(up);
drivers/tty/serial/8250/8250_port.c
1236
save_ier = serial_in(up, UART_IER);
drivers/tty/serial/8250/8250_port.c
1237
serial8250_out_MCR(up, UART_MCR_OUT1 | UART_MCR_OUT2);
drivers/tty/serial/8250/8250_port.c
1240
serial8250_out_MCR(up, 0);
drivers/tty/serial/8250/8250_port.c
1243
serial8250_out_MCR(up, UART_MCR_DTR | UART_MCR_RTS);
drivers/tty/serial/8250/8250_port.c
1245
serial8250_out_MCR(up,
drivers/tty/serial/8250/8250_port.c
1250
serial_out(up, UART_IER, UART_IER_ALL_INTR);
drivers/tty/serial/8250/8250_port.c
1252
serial_out(up, UART_TX, 0xFF);
drivers/tty/serial/8250/8250_port.c
1256
serial8250_out_MCR(up, save_mcr);
drivers/tty/serial/8250/8250_port.c
1259
serial_out(up, UART_IER, save_ier);
drivers/tty/serial/8250/8250_port.c
1269
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
1274
guard(serial8250_rpm)(up);
drivers/tty/serial/8250/8250_port.c
1276
up->ier &= ~(UART_IER_RLSI | UART_IER_RDI);
drivers/tty/serial/8250/8250_port.c
1277
serial_port_out(port, UART_IER, up->ier);
drivers/tty/serial/8250/8250_port.c
1402
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
1404
guard(serial8250_rpm)(up);
drivers/tty/serial/8250/8250_port.c
1405
__stop_tx(up);
drivers/tty/serial/8250/8250_port.c
1411
up->acr |= UART_ACR_TXDIS;
drivers/tty/serial/8250/8250_port.c
1412
serial_icr_write(up, UART_ACR, up->acr);
drivers/tty/serial/8250/8250_port.c
1418
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
1420
if (up->dma && !up->dma->tx_dma(up))
drivers/tty/serial/8250/8250_port.c
1423
if (serial8250_set_THRI(up)) {
drivers/tty/serial/8250/8250_port.c
1424
if (up->bugs & UART_BUG_TXEN) {
drivers/tty/serial/8250/8250_port.c
1425
u16 lsr = serial_lsr_in(up);
drivers/tty/serial/8250/8250_port.c
1428
serial8250_tx_chars(up);
drivers/tty/serial/8250/8250_port.c
1435
if (port->type == PORT_16C950 && up->acr & UART_ACR_TXDIS) {
drivers/tty/serial/8250/8250_port.c
1436
up->acr &= ~UART_ACR_TXDIS;
drivers/tty/serial/8250/8250_port.c
1437
serial_icr_write(up, UART_ACR, up->acr);
drivers/tty/serial/8250/8250_port.c
1452
void serial8250_em485_start_tx(struct uart_8250_port *up, bool toggle_ier)
drivers/tty/serial/8250/8250_port.c
1454
unsigned char mcr = serial8250_in_MCR(up);
drivers/tty/serial/8250/8250_port.c
1456
if (!(up->port.rs485.flags & SER_RS485_RX_DURING_TX) && toggle_ier)
drivers/tty/serial/8250/8250_port.c
1457
serial8250_stop_rx(&up->port);
drivers/tty/serial/8250/8250_port.c
1459
if (up->port.rs485.flags & SER_RS485_RTS_ON_SEND)
drivers/tty/serial/8250/8250_port.c
1463
serial8250_out_MCR(up, mcr);
drivers/tty/serial/8250/8250_port.c
1470
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
1471
struct uart_8250_em485 *em485 = up->em485;
drivers/tty/serial/8250/8250_port.c
1490
up->rs485_start_tx(up, true);
drivers/tty/serial/8250/8250_port.c
1492
if (up->port.rs485.delay_rts_before_send > 0) {
drivers/tty/serial/8250/8250_port.c
1495
up->port.rs485.delay_rts_before_send);
drivers/tty/serial/8250/8250_port.c
1521
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
1522
struct uart_8250_em485 *em485 = up->em485;
drivers/tty/serial/8250/8250_port.c
1530
serial8250_rpm_get_tx(up);
drivers/tty/serial/8250/8250_port.c
1552
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
1558
if (up->bugs & UART_BUG_NOMSR)
drivers/tty/serial/8250/8250_port.c
1561
mctrl_gpio_disable_ms_no_sync(up->gpios);
drivers/tty/serial/8250/8250_port.c
1563
up->ier &= ~UART_IER_MSI;
drivers/tty/serial/8250/8250_port.c
1564
serial_port_out(port, UART_IER, up->ier);
drivers/tty/serial/8250/8250_port.c
1569
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
1575
if (up->bugs & UART_BUG_NOMSR)
drivers/tty/serial/8250/8250_port.c
1578
mctrl_gpio_enable_ms(up->gpios);
drivers/tty/serial/8250/8250_port.c
1580
up->ier |= UART_IER_MSI;
drivers/tty/serial/8250/8250_port.c
1582
guard(serial8250_rpm)(up);
drivers/tty/serial/8250/8250_port.c
1583
serial_port_out(port, UART_IER, up->ier);
drivers/tty/serial/8250/8250_port.c
1586
void serial8250_read_char(struct uart_8250_port *up, u16 lsr)
drivers/tty/serial/8250/8250_port.c
1588
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_port.c
1592
ch = serial_in(up, UART_RX);
drivers/tty/serial/8250/8250_port.c
1605
lsr |= up->lsr_saved_flags;
drivers/tty/serial/8250/8250_port.c
1606
up->lsr_saved_flags = 0;
drivers/tty/serial/8250/8250_port.c
1654
u16 serial8250_rx_chars(struct uart_8250_port *up, u16 lsr)
drivers/tty/serial/8250/8250_port.c
1656
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_port.c
1660
serial8250_read_char(up, lsr);
drivers/tty/serial/8250/8250_port.c
1663
lsr = serial_in(up, UART_LSR);
drivers/tty/serial/8250/8250_port.c
1671
void serial8250_tx_chars(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_port.c
1673
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_port.c
1686
__stop_tx(up);
drivers/tty/serial/8250/8250_port.c
1690
count = up->tx_loadsz;
drivers/tty/serial/8250/8250_port.c
1697
serial_out(up, UART_TX, c);
drivers/tty/serial/8250/8250_port.c
1698
if (up->bugs & UART_BUG_TXRACE) {
drivers/tty/serial/8250/8250_port.c
1708
serial_in(up, UART_SCR);
drivers/tty/serial/8250/8250_port.c
1711
if ((up->capabilities & UART_CAP_HFIFO) &&
drivers/tty/serial/8250/8250_port.c
1712
!uart_lsr_tx_empty(serial_in(up, UART_LSR)))
drivers/tty/serial/8250/8250_port.c
1715
if ((up->capabilities & UART_CAP_MINI) &&
drivers/tty/serial/8250/8250_port.c
1716
!(serial_in(up, UART_LSR) & UART_LSR_THRE))
drivers/tty/serial/8250/8250_port.c
1729
!(up->capabilities & UART_CAP_RPM))
drivers/tty/serial/8250/8250_port.c
1730
__stop_tx(up);
drivers/tty/serial/8250/8250_port.c
1735
unsigned int serial8250_modem_status(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_port.c
1737
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_port.c
1738
unsigned int status = serial_in(up, UART_MSR);
drivers/tty/serial/8250/8250_port.c
1740
status |= up->msr_saved_flags;
drivers/tty/serial/8250/8250_port.c
1741
up->msr_saved_flags = 0;
drivers/tty/serial/8250/8250_port.c
1742
if (status & UART_MSR_ANY_DELTA && up->ier & UART_IER_MSI &&
drivers/tty/serial/8250/8250_port.c
1760
static bool handle_rx_dma(struct uart_8250_port *up, unsigned int iir)
drivers/tty/serial/8250/8250_port.c
1775
if (!up->dma->rx_running)
drivers/tty/serial/8250/8250_port.c
1780
serial8250_rx_dma_flush(up);
drivers/tty/serial/8250/8250_port.c
1783
return up->dma->rx_dma(up);
drivers/tty/serial/8250/8250_port.c
1791
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
1798
status = serial_lsr_in(up);
drivers/tty/serial/8250/8250_port.c
1810
!(up->ier & (UART_IER_RLSI | UART_IER_RDI)))
drivers/tty/serial/8250/8250_port.c
1819
if (!up->dma || handle_rx_dma(up, iir))
drivers/tty/serial/8250/8250_port.c
1820
status = serial8250_rx_chars(up, status);
drivers/tty/serial/8250/8250_port.c
1822
serial8250_modem_status(up);
drivers/tty/serial/8250/8250_port.c
1823
if ((status & UART_LSR_THRE) && (up->ier & UART_IER_THRI)) {
drivers/tty/serial/8250/8250_port.c
1824
if (!up->dma || up->dma->tx_err)
drivers/tty/serial/8250/8250_port.c
1825
serial8250_tx_chars(up);
drivers/tty/serial/8250/8250_port.c
1826
else if (!up->dma->tx_running)
drivers/tty/serial/8250/8250_port.c
1827
__stop_tx(up);
drivers/tty/serial/8250/8250_port.c
1849
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
1852
guard(serial8250_rpm)(up);
drivers/tty/serial/8250/8250_port.c
1870
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
1873
serial8250_tx_chars(up);
drivers/tty/serial/8250/8250_port.c
1882
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
1884
guard(serial8250_rpm)(up);
drivers/tty/serial/8250/8250_port.c
1887
if (!serial8250_tx_dma_running(up) && uart_lsr_tx_empty(serial_lsr_in(up)))
drivers/tty/serial/8250/8250_port.c
1895
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
1899
scoped_guard(serial8250_rpm, up)
drivers/tty/serial/8250/8250_port.c
1900
status = serial8250_modem_status(up);
drivers/tty/serial/8250/8250_port.c
1903
if (up->gpios)
drivers/tty/serial/8250/8250_port.c
1904
return mctrl_gpio_get(up->gpios, &val);
drivers/tty/serial/8250/8250_port.c
1919
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
1924
mcr |= up->mcr;
drivers/tty/serial/8250/8250_port.c
1926
serial8250_out_MCR(up, mcr);
drivers/tty/serial/8250/8250_port.c
1943
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
1945
guard(serial8250_rpm)(up);
drivers/tty/serial/8250/8250_port.c
1949
up->lcr |= UART_LCR_SBC;
drivers/tty/serial/8250/8250_port.c
1951
up->lcr &= ~UART_LCR_SBC;
drivers/tty/serial/8250/8250_port.c
1952
serial_port_out(port, UART_LCR, up->lcr);
drivers/tty/serial/8250/8250_port.c
1956
static bool wait_for_lsr(struct uart_8250_port *up, int bits)
drivers/tty/serial/8250/8250_port.c
1964
if (up->port.frame_time)
drivers/tty/serial/8250/8250_port.c
1965
tmout = up->port.frame_time * 2 / NSEC_PER_USEC;
drivers/tty/serial/8250/8250_port.c
1970
status = serial_lsr_in(up);
drivers/tty/serial/8250/8250_port.c
1984
static void wait_for_xmitr(struct uart_8250_port *up, int bits)
drivers/tty/serial/8250/8250_port.c
1988
wait_for_lsr(up, bits);
drivers/tty/serial/8250/8250_port.c
1991
if (up->port.flags & UPF_CONS_FLOW) {
drivers/tty/serial/8250/8250_port.c
1993
unsigned int msr = serial_in(up, UART_MSR);
drivers/tty/serial/8250/8250_port.c
1994
up->msr_saved_flags |= msr & MSR_SAVE_FLAGS;
drivers/tty/serial/8250/8250_port.c
2011
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
2014
guard(serial8250_rpm)(up);
drivers/tty/serial/8250/8250_port.c
2028
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
2038
guard(serial8250_rpm)(up);
drivers/tty/serial/8250/8250_port.c
2043
serial8250_clear_IER(up);
drivers/tty/serial/8250/8250_port.c
2045
wait_for_xmitr(up, UART_LSR_BOTH_EMPTY);
drivers/tty/serial/8250/8250_port.c
2055
wait_for_xmitr(up, UART_LSR_BOTH_EMPTY);
drivers/tty/serial/8250/8250_port.c
2063
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
2073
up->acr = 0;
drivers/tty/serial/8250/8250_port.c
2078
serial_icr_write(up, UART_CSR, 0); /* Reset the UART */
drivers/tty/serial/8250/8250_port.c
2103
rsa_enable(up);
drivers/tty/serial/8250/8250_port.c
2110
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
2117
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/8250/8250_port.c
2119
fctr = serial_in(up, UART_FCTR) & ~(UART_FCTR_RX|UART_FCTR_TX);
drivers/tty/serial/8250/8250_port.c
2137
if (up->tx_loadsz < 2 || up->tx_loadsz > port->fifosize) {
drivers/tty/serial/8250/8250_port.c
2142
serial_port_out(port, UART_ALTR_TX_LOW, port->fifosize - up->tx_loadsz);
drivers/tty/serial/8250/8250_port.c
2150
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
2156
if (up->port.flags & UPF_NO_THRE_TEST)
drivers/tty/serial/8250/8250_port.c
2170
wait_for_xmitr(up, UART_LSR_THRE);
drivers/tty/serial/8250/8250_port.c
2187
if ((!iir_noint1 && iir_noint2) || up->port.flags & UPF_BUG_THRE)
drivers/tty/serial/8250/8250_port.c
2188
up->bugs |= UART_BUG_THRE;
drivers/tty/serial/8250/8250_port.c
2207
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
2229
if (!(up->bugs & UART_BUG_TXEN)) {
drivers/tty/serial/8250/8250_port.c
2230
up->bugs |= UART_BUG_TXEN;
drivers/tty/serial/8250/8250_port.c
2237
up->bugs &= ~UART_BUG_TXEN;
drivers/tty/serial/8250/8250_port.c
2251
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
2256
if (!up->tx_loadsz)
drivers/tty/serial/8250/8250_port.c
2257
up->tx_loadsz = uart_config[port->type].tx_loadsz;
drivers/tty/serial/8250/8250_port.c
2258
if (!up->capabilities)
drivers/tty/serial/8250/8250_port.c
2259
up->capabilities = uart_config[port->type].flags;
drivers/tty/serial/8250/8250_port.c
2260
up->mcr = 0;
drivers/tty/serial/8250/8250_port.c
2262
if (port->iotype != up->cur_iotype)
drivers/tty/serial/8250/8250_port.c
2265
guard(serial8250_rpm)(up);
drivers/tty/serial/8250/8250_port.c
2273
serial8250_clear_fifos(up);
drivers/tty/serial/8250/8250_port.c
2291
if (port->irq && (up->port.flags & UPF_SHARE_IRQ))
drivers/tty/serial/8250/8250_port.c
2292
up->port.irqflags |= IRQF_SHARED;
drivers/tty/serial/8250/8250_port.c
2294
retval = up->ops->setup_irq(up);
drivers/tty/serial/8250/8250_port.c
2300
up->ops->setup_timer(up);
drivers/tty/serial/8250/8250_port.c
2310
up->lsr_saved_flags = 0;
drivers/tty/serial/8250/8250_port.c
2311
up->msr_saved_flags = 0;
drivers/tty/serial/8250/8250_port.c
2316
if (up->dma) {
drivers/tty/serial/8250/8250_port.c
2321
else if (serial8250_request_dma(up))
drivers/tty/serial/8250/8250_port.c
2325
up->dma = NULL;
drivers/tty/serial/8250/8250_port.c
2334
up->ier = UART_IER_RLSI | UART_IER_RDI;
drivers/tty/serial/8250/8250_port.c
2359
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
2362
serial8250_rpm_get(up);
drivers/tty/serial/8250/8250_port.c
2369
up->ier = 0;
drivers/tty/serial/8250/8250_port.c
2375
if (up->dma)
drivers/tty/serial/8250/8250_port.c
2376
serial8250_release_dma(up);
drivers/tty/serial/8250/8250_port.c
2394
serial8250_clear_fifos(up);
drivers/tty/serial/8250/8250_port.c
2396
rsa_disable(up);
drivers/tty/serial/8250/8250_port.c
2409
serial8250_rpm_put(up);
drivers/tty/serial/8250/8250_port.c
2411
up->ops->release_irq(up);
drivers/tty/serial/8250/8250_port.c
2425
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
2427
if (up->dma)
drivers/tty/serial/8250/8250_port.c
2428
serial8250_tx_dma_flush(up);
drivers/tty/serial/8250/8250_port.c
2434
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
2479
if (up->bugs & UART_BUG_QUOT && (quot & 0xff) == 0)
drivers/tty/serial/8250/8250_port.c
2495
static unsigned char serial8250_compute_lcr(struct uart_8250_port *up, tcflag_t c_cflag)
drivers/tty/serial/8250/8250_port.c
2514
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
2517
if (is_omap1510_8250(up)) {
drivers/tty/serial/8250/8250_port.c
2529
if (up->capabilities & UART_NATSEMI)
drivers/tty/serial/8250/8250_port.c
2532
serial_port_out(port, UART_LCR, up->lcr | UART_LCR_DLAB);
drivers/tty/serial/8250/8250_port.c
2534
serial_dl_write(up, quot);
drivers/tty/serial/8250/8250_port.c
2611
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
2613
if (!(up->capabilities & UART_CAP_MINI))
drivers/tty/serial/8250/8250_port.c
2628
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
2630
if (!(up->capabilities & UART_CAP_FIFO))
drivers/tty/serial/8250/8250_port.c
2636
if (up->dma)
drivers/tty/serial/8250/8250_port.c
2639
up->fcr &= ~UART_FCR_TRIGGER_MASK;
drivers/tty/serial/8250/8250_port.c
2640
up->fcr |= UART_FCR_TRIGGER_1;
drivers/tty/serial/8250/8250_port.c
2649
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
2651
if (!(up->capabilities & UART_CAP_AFE))
drivers/tty/serial/8250/8250_port.c
2654
up->mcr &= ~UART_MCR_AFE;
drivers/tty/serial/8250/8250_port.c
2656
up->mcr |= UART_MCR_AFE;
drivers/tty/serial/8250/8250_port.c
2693
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
2696
up->ier &= ~UART_IER_MSI;
drivers/tty/serial/8250/8250_port.c
2697
if (!(up->bugs & UART_BUG_NOMSR) && UART_ENABLE_MS(&up->port, termios->c_cflag))
drivers/tty/serial/8250/8250_port.c
2698
up->ier |= UART_IER_MSI;
drivers/tty/serial/8250/8250_port.c
2699
if (up->capabilities & UART_CAP_UUE)
drivers/tty/serial/8250/8250_port.c
2700
up->ier |= UART_IER_UUE;
drivers/tty/serial/8250/8250_port.c
2701
if (up->capabilities & UART_CAP_RTOIE)
drivers/tty/serial/8250/8250_port.c
2702
up->ier |= UART_IER_RTOIE;
drivers/tty/serial/8250/8250_port.c
2704
serial_port_out(port, UART_IER, up->ier);
drivers/tty/serial/8250/8250_port.c
2709
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
2713
if (!(up->capabilities & UART_CAP_EFR))
drivers/tty/serial/8250/8250_port.c
2733
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
2737
serial_port_out(port, UART_FCR, up->fcr);
drivers/tty/serial/8250/8250_port.c
2743
serial_port_out(port, UART_LCR, up->lcr);
drivers/tty/serial/8250/8250_port.c
2749
if (up->fcr & UART_FCR_ENABLE_FIFO)
drivers/tty/serial/8250/8250_port.c
2752
serial_port_out(port, UART_FCR, up->fcr);
drivers/tty/serial/8250/8250_port.c
2759
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
2764
lcr = serial8250_compute_lcr(up, termios->c_cflag);
drivers/tty/serial/8250/8250_port.c
2773
scoped_guard(serial8250_rpm, up) {
drivers/tty/serial/8250/8250_port.c
2776
up->lcr = lcr;
drivers/tty/serial/8250/8250_port.c
2861
static int serial8250_request_std_resource(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_port.c
2863
unsigned int size = serial8250_port_size(up);
drivers/tty/serial/8250/8250_port.c
2864
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_port.c
2899
static void serial8250_release_std_resource(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_port.c
2901
unsigned int size = serial8250_port_size(up);
drivers/tty/serial/8250/8250_port.c
2902
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_port.c
2933
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
2935
serial8250_release_std_resource(up);
drivers/tty/serial/8250/8250_port.c
2940
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
2942
return serial8250_request_std_resource(up);
drivers/tty/serial/8250/8250_port.c
2945
static int fcr_get_rxtrig_bytes(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_port.c
2947
const struct serial8250_config *conf_type = &uart_config[up->port.type];
drivers/tty/serial/8250/8250_port.c
2950
bytes = conf_type->rxtrig_bytes[UART_FCR_R_TRIG_BITS(up->fcr)];
drivers/tty/serial/8250/8250_port.c
2955
static int bytes_to_fcr_rxtrig(struct uart_8250_port *up, unsigned char bytes)
drivers/tty/serial/8250/8250_port.c
2957
const struct serial8250_config *conf_type = &uart_config[up->port.type];
drivers/tty/serial/8250/8250_port.c
2976
struct uart_8250_port *up = up_to_u8250p(uport);
drivers/tty/serial/8250/8250_port.c
2978
if (!(up->capabilities & UART_CAP_FIFO) || uport->fifosize <= 1)
drivers/tty/serial/8250/8250_port.c
2981
return fcr_get_rxtrig_bytes(up);
drivers/tty/serial/8250/8250_port.c
3012
struct uart_8250_port *up = up_to_u8250p(uport);
drivers/tty/serial/8250/8250_port.c
3015
if (!(up->capabilities & UART_CAP_FIFO) || uport->fifosize <= 1)
drivers/tty/serial/8250/8250_port.c
3018
rxtrig = bytes_to_fcr_rxtrig(up, bytes);
drivers/tty/serial/8250/8250_port.c
3022
serial8250_clear_fifos(up);
drivers/tty/serial/8250/8250_port.c
3023
up->fcr &= ~UART_FCR_TRIGGER_MASK;
drivers/tty/serial/8250/8250_port.c
3024
up->fcr |= (unsigned char)rxtrig;
drivers/tty/serial/8250/8250_port.c
3025
serial_out(up, UART_FCR, up->fcr);
drivers/tty/serial/8250/8250_port.c
3072
static void register_dev_spec_attr_grp(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_port.c
3074
const struct serial8250_config *conf_type = &uart_config[up->port.type];
drivers/tty/serial/8250/8250_port.c
3077
up->port.attr_group = &serial8250_dev_attr_group;
drivers/tty/serial/8250/8250_port.c
3082
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
3089
ret = serial8250_request_std_resource(up);
drivers/tty/serial/8250/8250_port.c
3093
if (port->iotype != up->cur_iotype)
drivers/tty/serial/8250/8250_port.c
3097
autoconfig(up);
drivers/tty/serial/8250/8250_port.c
3101
up->bugs |= UART_BUG_NOMSR;
drivers/tty/serial/8250/8250_port.c
3104
autoconfig_irq(up);
drivers/tty/serial/8250/8250_port.c
3107
serial8250_release_std_resource(up);
drivers/tty/serial/8250/8250_port.c
3109
register_dev_spec_attr_grp(up);
drivers/tty/serial/8250/8250_port.c
3110
up->fcr = uart_config[up->port.type].fcr;
drivers/tty/serial/8250/8250_port.c
3161
void serial8250_init_port(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_port.c
3163
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_port.c
317
static u32 default_serial_dl_read(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_port.c
3171
up->cur_iotype = UPIO_UNKNOWN;
drivers/tty/serial/8250/8250_port.c
3175
void serial8250_set_defaults(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_port.c
3177
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_port.c
3179
if (up->port.flags & UPF_FIXED_TYPE) {
drivers/tty/serial/8250/8250_port.c
3180
unsigned int type = up->port.type;
drivers/tty/serial/8250/8250_port.c
3182
if (!up->port.fifosize)
drivers/tty/serial/8250/8250_port.c
3183
up->port.fifosize = uart_config[type].fifo_size;
drivers/tty/serial/8250/8250_port.c
3184
if (!up->tx_loadsz)
drivers/tty/serial/8250/8250_port.c
3185
up->tx_loadsz = uart_config[type].tx_loadsz;
drivers/tty/serial/8250/8250_port.c
3186
if (!up->capabilities)
drivers/tty/serial/8250/8250_port.c
3187
up->capabilities = uart_config[type].flags;
drivers/tty/serial/8250/8250_port.c
3193
if (up->dma) {
drivers/tty/serial/8250/8250_port.c
3194
if (!up->dma->tx_dma)
drivers/tty/serial/8250/8250_port.c
3195
up->dma->tx_dma = serial8250_tx_dma;
drivers/tty/serial/8250/8250_port.c
3196
if (!up->dma->rx_dma)
drivers/tty/serial/8250/8250_port.c
3197
up->dma->rx_dma = serial8250_rx_dma;
drivers/tty/serial/8250/8250_port.c
320
unsigned char dll = serial_in(up, UART_DLL);
drivers/tty/serial/8250/8250_port.c
3202
void serial8250_fifo_wait_for_lsr_thre(struct uart_8250_port *up, unsigned int count)
drivers/tty/serial/8250/8250_port.c
3207
if (wait_for_lsr(up, UART_LSR_THRE))
drivers/tty/serial/8250/8250_port.c
321
unsigned char dlm = serial_in(up, UART_DLM);
drivers/tty/serial/8250/8250_port.c
3222
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
3224
wait_for_xmitr(up, UART_LSR_THRE);
drivers/tty/serial/8250/8250_port.c
3231
static void serial8250_console_restore(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_port.c
3233
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_port.c
3250
serial_port_out(port, UART_LCR, up->lcr);
drivers/tty/serial/8250/8250_port.c
3251
serial8250_out_MCR(up, up->mcr | UART_MCR_DTR | UART_MCR_RTS);
drivers/tty/serial/8250/8250_port.c
3260
static void serial8250_console_fifo_write(struct uart_8250_port *up,
drivers/tty/serial/8250/8250_port.c
3264
unsigned int fifosize = up->tx_loadsz;
drivers/tty/serial/8250/8250_port.c
3265
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_port.c
327
static void default_serial_dl_write(struct uart_8250_port *up, u32 value)
drivers/tty/serial/8250/8250_port.c
3272
serial8250_fifo_wait_for_lsr_thre(up, fifosize);
drivers/tty/serial/8250/8250_port.c
329
serial_out(up, UART_DLL, value & 0xff);
drivers/tty/serial/8250/8250_port.c
3290
serial8250_fifo_wait_for_lsr_thre(up, tx_count);
drivers/tty/serial/8250/8250_port.c
330
serial_out(up, UART_DLM, value >> 8 & 0xff);
drivers/tty/serial/8250/8250_port.c
3302
void serial8250_console_write(struct uart_8250_port *up, const char *s,
drivers/tty/serial/8250/8250_port.c
3305
struct uart_8250_em485 *em485 = up->em485;
drivers/tty/serial/8250/8250_port.c
3306
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_port.c
3322
serial8250_clear_IER(up);
drivers/tty/serial/8250/8250_port.c
3325
if (up->canary && (up->canary != serial_port_in(port, UART_SCR))) {
drivers/tty/serial/8250/8250_port.c
3326
serial8250_console_restore(up);
drivers/tty/serial/8250/8250_port.c
3327
up->canary = 0;
drivers/tty/serial/8250/8250_port.c
3332
up->rs485_start_tx(up, false);
drivers/tty/serial/8250/8250_port.c
3336
use_fifo = (up->capabilities & UART_CAP_FIFO) &&
drivers/tty/serial/8250/8250_port.c
3341
!(up->capabilities & UART_CAP_MINI) &&
drivers/tty/serial/8250/8250_port.c
3345
up->tx_loadsz > 1 &&
drivers/tty/serial/8250/8250_port.c
3346
(up->fcr & UART_FCR_ENABLE_FIFO) &&
drivers/tty/serial/8250/8250_port.c
3354
!(up->port.flags & UPF_CONS_FLOW);
drivers/tty/serial/8250/8250_port.c
3357
serial8250_console_fifo_write(up, s, count);
drivers/tty/serial/8250/8250_port.c
3365
wait_for_xmitr(up, UART_LSR_BOTH_EMPTY);
drivers/tty/serial/8250/8250_port.c
3370
up->rs485_stop_tx(up, false);
drivers/tty/serial/8250/8250_port.c
3382
if (up->msr_saved_flags)
drivers/tty/serial/8250/8250_port.c
3383
serial8250_modem_status(up);
drivers/tty/serial/8250/8250_port.c
423
struct uart_8250_port *up = up_to_u8250p(p);
drivers/tty/serial/8250/8250_port.c
425
up->dl_read = default_serial_dl_read;
drivers/tty/serial/8250/8250_port.c
426
up->dl_write = default_serial_dl_write;
drivers/tty/serial/8250/8250_port.c
468
up->cur_iotype = p->iotype;
drivers/tty/serial/8250/8250_port.c
624
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_port.c
631
return serial8250_em485_init(up);
drivers/tty/serial/8250/8250_port.c
633
serial8250_em485_destroy(up);
drivers/tty/serial/8250/8250_port.c
711
static void serial8250_clear_IER(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_port.c
713
if (up->capabilities & UART_CAP_UUE)
drivers/tty/serial/8250/8250_port.c
714
serial_out(up, UART_IER, UART_IER_UUE);
drivers/tty/serial/8250/8250_port.c
716
serial_out(up, UART_IER, 0);
drivers/tty/serial/8250/8250_port.c
723
static int size_fifo(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_port.c
729
old_lcr = serial_in(up, UART_LCR);
drivers/tty/serial/8250/8250_port.c
730
serial_out(up, UART_LCR, 0);
drivers/tty/serial/8250/8250_port.c
731
old_fcr = serial_in(up, UART_FCR);
drivers/tty/serial/8250/8250_port.c
732
old_mcr = serial8250_in_MCR(up);
drivers/tty/serial/8250/8250_port.c
733
serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO |
drivers/tty/serial/8250/8250_port.c
735
serial8250_out_MCR(up, UART_MCR_LOOP);
drivers/tty/serial/8250/8250_port.c
736
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A);
drivers/tty/serial/8250/8250_port.c
737
old_dl = serial_dl_read(up);
drivers/tty/serial/8250/8250_port.c
738
serial_dl_write(up, 0x0001);
drivers/tty/serial/8250/8250_port.c
739
serial_out(up, UART_LCR, UART_LCR_WLEN8);
drivers/tty/serial/8250/8250_port.c
741
serial_out(up, UART_TX, count);
drivers/tty/serial/8250/8250_port.c
743
for (count = 0; (serial_in(up, UART_LSR) & UART_LSR_DR) &&
drivers/tty/serial/8250/8250_port.c
745
serial_in(up, UART_RX);
drivers/tty/serial/8250/8250_port.c
746
serial_out(up, UART_FCR, old_fcr);
drivers/tty/serial/8250/8250_port.c
747
serial8250_out_MCR(up, old_mcr);
drivers/tty/serial/8250/8250_port.c
748
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A);
drivers/tty/serial/8250/8250_port.c
749
serial_dl_write(up, old_dl);
drivers/tty/serial/8250/8250_port.c
750
serial_out(up, UART_LCR, old_lcr);
drivers/tty/serial/8250/8250_port.c
787
static void autoconfig_has_efr(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_port.c
794
up->capabilities |= UART_CAP_EFR | UART_CAP_SLEEP;
drivers/tty/serial/8250/8250_port.c
813
up->acr = 0;
drivers/tty/serial/8250/8250_port.c
814
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/8250/8250_port.c
815
serial_out(up, UART_EFR, UART_EFR_ECB);
drivers/tty/serial/8250/8250_port.c
816
serial_out(up, UART_LCR, 0x00);
drivers/tty/serial/8250/8250_port.c
817
id1 = serial_icr_read(up, UART_ID1);
drivers/tty/serial/8250/8250_port.c
818
id2 = serial_icr_read(up, UART_ID2);
drivers/tty/serial/8250/8250_port.c
819
id3 = serial_icr_read(up, UART_ID3);
drivers/tty/serial/8250/8250_port.c
820
rev = serial_icr_read(up, UART_REV);
drivers/tty/serial/8250/8250_port.c
824
up->port.type = PORT_16C950;
drivers/tty/serial/8250/8250_port.c
832
up->bugs |= UART_BUG_QUOT;
drivers/tty/serial/8250/8250_port.c
844
id1 = autoconfig_read_divisor_id(up);
drivers/tty/serial/8250/8250_port.c
848
up->port.type = PORT_16850;
drivers/tty/serial/8250/8250_port.c
861
if (size_fifo(up) == 64)
drivers/tty/serial/8250/8250_port.c
862
up->port.type = PORT_16654;
drivers/tty/serial/8250/8250_port.c
864
up->port.type = PORT_16650V2;
drivers/tty/serial/8250/8250_port.c
872
static void autoconfig_8250(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_port.c
876
up->port.type = PORT_8250;
drivers/tty/serial/8250/8250_port.c
878
scratch = serial_in(up, UART_SCR);
drivers/tty/serial/8250/8250_port.c
879
serial_out(up, UART_SCR, 0xa5);
drivers/tty/serial/8250/8250_port.c
880
status1 = serial_in(up, UART_SCR);
drivers/tty/serial/8250/8250_port.c
881
serial_out(up, UART_SCR, 0x5a);
drivers/tty/serial/8250/8250_port.c
882
status2 = serial_in(up, UART_SCR);
drivers/tty/serial/8250/8250_port.c
883
serial_out(up, UART_SCR, scratch);
drivers/tty/serial/8250/8250_port.c
886
up->port.type = PORT_16450;
drivers/tty/serial/8250/8250_port.c
889
static int broken_efr(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_port.c
896
if (autoconfig_read_divisor_id(up) == 0x0201 && size_fifo(up) == 16)
drivers/tty/serial/8250/8250_port.c
908
static void autoconfig_16550a(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_port.c
914
lockdep_assert_held_once(&up->port.lock);
drivers/tty/serial/8250/8250_port.c
916
up->port.type = PORT_16550A;
drivers/tty/serial/8250/8250_port.c
917
up->capabilities |= UART_CAP_FIFO;
drivers/tty/serial/8250/8250_port.c
920
!(up->port.flags & UPF_FULL_PROBE))
drivers/tty/serial/8250/8250_port.c
927
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A);
drivers/tty/serial/8250/8250_port.c
928
if (serial_in(up, UART_EFR) == 0) {
drivers/tty/serial/8250/8250_port.c
929
serial_out(up, UART_EFR, 0xA8);
drivers/tty/serial/8250/8250_port.c
930
if (serial_in(up, UART_EFR) != 0) {
drivers/tty/serial/8250/8250_port.c
931
up->port.type = PORT_16650;
drivers/tty/serial/8250/8250_port.c
932
up->capabilities |= UART_CAP_EFR | UART_CAP_SLEEP;
drivers/tty/serial/8250/8250_port.c
934
serial_out(up, UART_LCR, 0);
drivers/tty/serial/8250/8250_port.c
935
serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO |
drivers/tty/serial/8250/8250_port.c
937
status1 = serial_in(up, UART_IIR) & UART_IIR_FIFO_ENABLED_16750;
drivers/tty/serial/8250/8250_port.c
938
serial_out(up, UART_FCR, 0);
drivers/tty/serial/8250/8250_port.c
939
serial_out(up, UART_LCR, 0);
drivers/tty/serial/8250/8250_port.c
942
up->port.type = PORT_16550A_FSL64;
drivers/tty/serial/8250/8250_port.c
944
serial_out(up, UART_EFR, 0);
drivers/tty/serial/8250/8250_port.c
952
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/8250/8250_port.c
953
if (serial_in(up, UART_EFR) == 0 && !broken_efr(up)) {
drivers/tty/serial/8250/8250_port.c
954
autoconfig_has_efr(up);
drivers/tty/serial/8250/8250_port.c
965
serial_out(up, UART_LCR, 0);
drivers/tty/serial/8250/8250_port.c
966
status1 = serial8250_in_MCR(up);
drivers/tty/serial/8250/8250_port.c
967
serial_out(up, UART_LCR, 0xE0);
drivers/tty/serial/8250/8250_port.c
968
status2 = serial_in(up, 0x02); /* EXCR1 */
drivers/tty/serial/8250/8250_port.c
971
serial_out(up, UART_LCR, 0);
drivers/tty/serial/8250/8250_port.c
972
serial8250_out_MCR(up, status1 ^ UART_MCR_LOOP);
drivers/tty/serial/8250/8250_port.c
973
serial_out(up, UART_LCR, 0xE0);
drivers/tty/serial/8250/8250_port.c
974
status2 = serial_in(up, 0x02); /* EXCR1 */
drivers/tty/serial/8250/8250_port.c
975
serial_out(up, UART_LCR, 0);
drivers/tty/serial/8250/8250_port.c
976
serial8250_out_MCR(up, status1);
drivers/tty/serial/8250/8250_port.c
981
serial_out(up, UART_LCR, 0xE0);
drivers/tty/serial/8250/8250_port.c
983
quot = serial_dl_read(up);
drivers/tty/serial/8250/8250_port.c
986
if (ns16550a_goto_highspeed(up))
drivers/tty/serial/8250/8250_port.c
987
serial_dl_write(up, quot);
drivers/tty/serial/8250/8250_port.c
989
serial_out(up, UART_LCR, 0);
drivers/tty/serial/8250/8250_port.c
991
up->port.uartclk = 921600*16;
drivers/tty/serial/8250/8250_port.c
992
up->port.type = PORT_NS16550A;
drivers/tty/serial/8250/8250_port.c
993
up->capabilities |= UART_NATSEMI;
drivers/tty/serial/8250/8250_pxa.c
63
static void serial_pxa_dl_write(struct uart_8250_port *up, u32 value)
drivers/tty/serial/8250/8250_pxa.c
67
serial_out(up, UART_DLL, value & 0xff);
drivers/tty/serial/8250/8250_pxa.c
72
dll = serial_in(up, UART_DLL);
drivers/tty/serial/8250/8250_pxa.c
75
serial_out(up, UART_DLM, value >> 8 & 0xff);
drivers/tty/serial/8250/8250_rsa.c
126
static int __rsa_enable(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_rsa.c
131
mode = serial_in(up, UART_RSA_MSR);
drivers/tty/serial/8250/8250_rsa.c
135
serial_out(up, UART_RSA_MSR, mode | UART_RSA_MSR_FIFO);
drivers/tty/serial/8250/8250_rsa.c
136
mode = serial_in(up, UART_RSA_MSR);
drivers/tty/serial/8250/8250_rsa.c
141
up->port.uartclk = SERIAL_RSA_BAUD_BASE * 16;
drivers/tty/serial/8250/8250_rsa.c
149
void rsa_enable(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_rsa.c
151
if (up->port.type != PORT_RSA)
drivers/tty/serial/8250/8250_rsa.c
154
if (up->port.uartclk != SERIAL_RSA_BAUD_BASE * 16) {
drivers/tty/serial/8250/8250_rsa.c
155
guard(uart_port_lock_irq)(&up->port);
drivers/tty/serial/8250/8250_rsa.c
156
__rsa_enable(up);
drivers/tty/serial/8250/8250_rsa.c
158
if (up->port.uartclk == SERIAL_RSA_BAUD_BASE * 16)
drivers/tty/serial/8250/8250_rsa.c
159
serial_out(up, UART_RSA_FRR, 0);
drivers/tty/serial/8250/8250_rsa.c
167
void rsa_disable(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_rsa.c
172
if (up->port.type != PORT_RSA)
drivers/tty/serial/8250/8250_rsa.c
175
if (up->port.uartclk != SERIAL_RSA_BAUD_BASE * 16)
drivers/tty/serial/8250/8250_rsa.c
178
guard(uart_port_lock_irq)(&up->port);
drivers/tty/serial/8250/8250_rsa.c
180
mode = serial_in(up, UART_RSA_MSR);
drivers/tty/serial/8250/8250_rsa.c
184
serial_out(up, UART_RSA_MSR, mode & ~UART_RSA_MSR_FIFO);
drivers/tty/serial/8250/8250_rsa.c
185
mode = serial_in(up, UART_RSA_MSR);
drivers/tty/serial/8250/8250_rsa.c
19
static int rsa8250_request_resource(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_rsa.c
190
up->port.uartclk = SERIAL_RSA_BAUD_BASE_LO * 16;
drivers/tty/serial/8250/8250_rsa.c
193
void rsa_autoconfig(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_rsa.c
196
if (up->port.type != PORT_16550A)
drivers/tty/serial/8250/8250_rsa.c
198
if (!(up->probe & UART_PROBE_RSA))
drivers/tty/serial/8250/8250_rsa.c
201
if (__rsa_enable(up))
drivers/tty/serial/8250/8250_rsa.c
202
up->port.type = PORT_RSA;
drivers/tty/serial/8250/8250_rsa.c
205
void rsa_reset(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_rsa.c
207
if (up->port.type != PORT_RSA)
drivers/tty/serial/8250/8250_rsa.c
21
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_rsa.c
210
serial_out(up, UART_RSA_FRR, 0);
drivers/tty/serial/8250/8250_rsa.c
37
static void rsa8250_release_resource(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_rsa.c
39
struct uart_port *port = &up->port;
drivers/tty/serial/8250/8250_rsa.c
55
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_rsa.c
58
up->probe &= ~UART_PROBE_RSA;
drivers/tty/serial/8250/8250_rsa.c
60
if (rsa8250_request_resource(up) == 0)
drivers/tty/serial/8250/8250_rsa.c
61
up->probe |= UART_PROBE_RSA;
drivers/tty/serial/8250/8250_rsa.c
64
if (probe_rsa[i] == up->port.iobase) {
drivers/tty/serial/8250/8250_rsa.c
65
if (rsa8250_request_resource(up) == 0)
drivers/tty/serial/8250/8250_rsa.c
66
up->probe |= UART_PROBE_RSA;
drivers/tty/serial/8250/8250_rsa.c
74
if (port->type != PORT_RSA && up->probe & UART_PROBE_RSA)
drivers/tty/serial/8250/8250_rsa.c
75
rsa8250_release_resource(up);
drivers/tty/serial/8250/8250_rsa.c
80
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_rsa.c
85
ret = rsa8250_request_resource(up);
drivers/tty/serial/8250/8250_rsa.c
95
struct uart_8250_port *up = up_to_u8250p(port);
drivers/tty/serial/8250/8250_rsa.c
98
rsa8250_release_resource(up);
drivers/tty/serial/8250/8250_rt288x.c
55
static u32 au_serial_dl_read(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_rt288x.c
57
return __raw_readl(up->port.membase + RT288X_DL);
drivers/tty/serial/8250/8250_rt288x.c
60
static void au_serial_dl_write(struct uart_8250_port *up, u32 value)
drivers/tty/serial/8250/8250_rt288x.c
62
__raw_writel(value, up->port.membase + RT288X_DL);
drivers/tty/serial/8250/8250_rt288x.c
84
struct uart_8250_port *up = up_to_u8250p(p);
drivers/tty/serial/8250/8250_rt288x.c
90
up->dl_read = au_serial_dl_read;
drivers/tty/serial/8250/8250_rt288x.c
91
up->dl_write = au_serial_dl_write;
drivers/tty/serial/8250/8250_rt288x.c
95
up->bugs |= UART_BUG_NOMSR;
drivers/tty/serial/8250/8250_uniphier.c
148
static u32 uniphier_serial_dl_read(struct uart_8250_port *up)
drivers/tty/serial/8250/8250_uniphier.c
150
return readl(up->port.membase + UNIPHIER_UART_DLR);
drivers/tty/serial/8250/8250_uniphier.c
153
static void uniphier_serial_dl_write(struct uart_8250_port *up, u32 value)
drivers/tty/serial/8250/8250_uniphier.c
155
writel(value, up->port.membase + UNIPHIER_UART_DLR);
drivers/tty/serial/8250/8250_uniphier.c
161
struct uart_8250_port up;
drivers/tty/serial/8250/8250_uniphier.c
181
memset(&up, 0, sizeof(up));
drivers/tty/serial/8250/8250_uniphier.c
193
up.port.uartclk = clk_get_rate(priv->clk);
drivers/tty/serial/8250/8250_uniphier.c
197
up.port.dev = dev;
drivers/tty/serial/8250/8250_uniphier.c
198
up.port.private_data = priv;
drivers/tty/serial/8250/8250_uniphier.c
199
up.port.mapbase = regs->start;
drivers/tty/serial/8250/8250_uniphier.c
200
up.port.mapsize = resource_size(regs);
drivers/tty/serial/8250/8250_uniphier.c
201
up.port.membase = membase;
drivers/tty/serial/8250/8250_uniphier.c
203
ret = uart_read_port_properties(&up.port);
drivers/tty/serial/8250/8250_uniphier.c
207
up.port.type = PORT_16550A;
drivers/tty/serial/8250/8250_uniphier.c
208
up.port.iotype = UPIO_MEM32;
drivers/tty/serial/8250/8250_uniphier.c
209
up.port.fifosize = 64;
drivers/tty/serial/8250/8250_uniphier.c
210
up.port.regshift = UNIPHIER_UART_REGSHIFT;
drivers/tty/serial/8250/8250_uniphier.c
211
up.port.flags = UPF_FIXED_PORT | UPF_FIXED_TYPE;
drivers/tty/serial/8250/8250_uniphier.c
212
up.capabilities = UART_CAP_FIFO;
drivers/tty/serial/8250/8250_uniphier.c
215
up.capabilities |= UART_CAP_AFE;
drivers/tty/serial/8250/8250_uniphier.c
217
up.port.serial_in = uniphier_serial_in;
drivers/tty/serial/8250/8250_uniphier.c
218
up.port.serial_out = uniphier_serial_out;
drivers/tty/serial/8250/8250_uniphier.c
219
up.dl_read = uniphier_serial_dl_read;
drivers/tty/serial/8250/8250_uniphier.c
220
up.dl_write = uniphier_serial_dl_write;
drivers/tty/serial/8250/8250_uniphier.c
222
ret = serial8250_register_8250_port(&up);
drivers/tty/serial/8250/8250_uniphier.c
246
struct uart_8250_port *up = serial8250_get_port(priv->line);
drivers/tty/serial/8250/8250_uniphier.c
250
if (!uart_console(&up->port) || console_suspend_enabled)
drivers/tty/serial/8250/8250_uniphier.c
259
struct uart_8250_port *up = serial8250_get_port(priv->line);
drivers/tty/serial/8250/8250_uniphier.c
262
if (!uart_console(&up->port) || console_suspend_enabled) {
drivers/tty/serial/ar933x_uart.c
102
static inline void ar933x_uart_stop_tx_interrupt(struct ar933x_uart_port *up)
drivers/tty/serial/ar933x_uart.c
104
up->ier &= ~AR933X_UART_INT_TX_EMPTY;
drivers/tty/serial/ar933x_uart.c
105
ar933x_uart_write(up, AR933X_UART_INT_EN_REG, up->ier);
drivers/tty/serial/ar933x_uart.c
108
static inline void ar933x_uart_start_rx_interrupt(struct ar933x_uart_port *up)
drivers/tty/serial/ar933x_uart.c
110
up->ier |= AR933X_UART_INT_RX_VALID;
drivers/tty/serial/ar933x_uart.c
111
ar933x_uart_write(up, AR933X_UART_INT_EN_REG, up->ier);
drivers/tty/serial/ar933x_uart.c
114
static inline void ar933x_uart_stop_rx_interrupt(struct ar933x_uart_port *up)
drivers/tty/serial/ar933x_uart.c
116
up->ier &= ~AR933X_UART_INT_RX_VALID;
drivers/tty/serial/ar933x_uart.c
117
ar933x_uart_write(up, AR933X_UART_INT_EN_REG, up->ier);
drivers/tty/serial/ar933x_uart.c
120
static inline void ar933x_uart_putc(struct ar933x_uart_port *up, int ch)
drivers/tty/serial/ar933x_uart.c
126
ar933x_uart_write(up, AR933X_UART_DATA_REG, rdata);
drivers/tty/serial/ar933x_uart.c
131
struct ar933x_uart_port *up =
drivers/tty/serial/ar933x_uart.c
136
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/ar933x_uart.c
137
rdata = ar933x_uart_read(up, AR933X_UART_DATA_REG);
drivers/tty/serial/ar933x_uart.c
138
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/ar933x_uart.c
145
struct ar933x_uart_port *up =
drivers/tty/serial/ar933x_uart.c
149
mctrl_gpio_get(up->gpios, &ret);
drivers/tty/serial/ar933x_uart.c
156
struct ar933x_uart_port *up =
drivers/tty/serial/ar933x_uart.c
159
mctrl_gpio_set(up->gpios, mctrl);
drivers/tty/serial/ar933x_uart.c
164
struct ar933x_uart_port *up =
drivers/tty/serial/ar933x_uart.c
167
ar933x_uart_start_tx_interrupt(up);
drivers/tty/serial/ar933x_uart.c
170
static void ar933x_uart_wait_tx_complete(struct ar933x_uart_port *up)
drivers/tty/serial/ar933x_uart.c
177
status = ar933x_uart_read(up, AR933X_UART_CS_REG);
drivers/tty/serial/ar933x_uart.c
184
dev_err(up->port.dev, "waiting for TX timed out\n");
drivers/tty/serial/ar933x_uart.c
187
static void ar933x_uart_rx_flush(struct ar933x_uart_port *up)
drivers/tty/serial/ar933x_uart.c
192
ar933x_uart_write(up, AR933X_UART_INT_REG, AR933X_UART_INT_RX_VALID);
drivers/tty/serial/ar933x_uart.c
196
ar933x_uart_write(up, AR933X_UART_DATA_REG, AR933X_UART_DATA_RX_CSR);
drivers/tty/serial/ar933x_uart.c
197
status = ar933x_uart_read(up, AR933X_UART_DATA_REG);
drivers/tty/serial/ar933x_uart.c
203
struct ar933x_uart_port *up =
drivers/tty/serial/ar933x_uart.c
206
ar933x_uart_stop_tx_interrupt(up);
drivers/tty/serial/ar933x_uart.c
211
struct ar933x_uart_port *up =
drivers/tty/serial/ar933x_uart.c
214
ar933x_uart_stop_rx_interrupt(up);
drivers/tty/serial/ar933x_uart.c
219
struct ar933x_uart_port *up =
drivers/tty/serial/ar933x_uart.c
223
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/ar933x_uart.c
225
ar933x_uart_rmw_set(up, AR933X_UART_CS_REG,
drivers/tty/serial/ar933x_uart.c
228
ar933x_uart_rmw_clear(up, AR933X_UART_CS_REG,
drivers/tty/serial/ar933x_uart.c
230
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/ar933x_uart.c
288
struct ar933x_uart_port *up =
drivers/tty/serial/ar933x_uart.c
314
baud = uart_get_baud_rate(port, new, old, up->min_baud, up->max_baud);
drivers/tty/serial/ar933x_uart.c
321
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/ar933x_uart.c
324
ar933x_uart_rmw_clear(up, AR933X_UART_CS_REG,
drivers/tty/serial/ar933x_uart.c
330
up->port.ignore_status_mask = 0;
drivers/tty/serial/ar933x_uart.c
334
up->port.ignore_status_mask |= AR933X_DUMMY_STATUS_RD;
drivers/tty/serial/ar933x_uart.c
336
ar933x_uart_write(up, AR933X_UART_CLOCK_REG,
drivers/tty/serial/ar933x_uart.c
340
ar933x_uart_rmw(up, AR933X_UART_CS_REG, AR933X_UART_CS_PARITY_M, cs);
drivers/tty/serial/ar933x_uart.c
343
ar933x_uart_rmw_set(up, AR933X_UART_CS_REG,
drivers/tty/serial/ar933x_uart.c
347
ar933x_uart_rmw_set(up, AR933X_UART_CS_REG,
drivers/tty/serial/ar933x_uart.c
351
ar933x_uart_rmw(up, AR933X_UART_CS_REG,
drivers/tty/serial/ar933x_uart.c
355
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/ar933x_uart.c
361
static void ar933x_uart_rx_chars(struct ar933x_uart_port *up)
drivers/tty/serial/ar933x_uart.c
363
struct tty_port *port = &up->port.state->port;
drivers/tty/serial/ar933x_uart.c
370
rdata = ar933x_uart_read(up, AR933X_UART_DATA_REG);
drivers/tty/serial/ar933x_uart.c
375
ar933x_uart_write(up, AR933X_UART_DATA_REG,
drivers/tty/serial/ar933x_uart.c
378
up->port.icount.rx++;
drivers/tty/serial/ar933x_uart.c
381
if (uart_prepare_sysrq_char(&up->port, ch))
drivers/tty/serial/ar933x_uart.c
384
if ((up->port.ignore_status_mask & AR933X_DUMMY_STATUS_RD) == 0)
drivers/tty/serial/ar933x_uart.c
391
static void ar933x_uart_tx_chars(struct ar933x_uart_port *up)
drivers/tty/serial/ar933x_uart.c
393
struct tty_port *tport = &up->port.state->port;
drivers/tty/serial/ar933x_uart.c
394
struct serial_rs485 *rs485conf = &up->port.rs485;
drivers/tty/serial/ar933x_uart.c
398
if (uart_tx_stopped(&up->port))
drivers/tty/serial/ar933x_uart.c
402
(up->port.x_char || !kfifo_is_empty(&tport->xmit_fifo))) {
drivers/tty/serial/ar933x_uart.c
403
ar933x_uart_stop_rx_interrupt(up);
drivers/tty/serial/ar933x_uart.c
404
gpiod_set_value(up->rts_gpiod, !!(rs485conf->flags & SER_RS485_RTS_ON_SEND));
drivers/tty/serial/ar933x_uart.c
408
count = up->port.fifosize;
drivers/tty/serial/ar933x_uart.c
413
rdata = ar933x_uart_read(up, AR933X_UART_DATA_REG);
drivers/tty/serial/ar933x_uart.c
417
if (up->port.x_char) {
drivers/tty/serial/ar933x_uart.c
418
ar933x_uart_putc(up, up->port.x_char);
drivers/tty/serial/ar933x_uart.c
419
up->port.icount.tx++;
drivers/tty/serial/ar933x_uart.c
420
up->port.x_char = 0;
drivers/tty/serial/ar933x_uart.c
424
if (!uart_fifo_get(&up->port, &c))
drivers/tty/serial/ar933x_uart.c
427
ar933x_uart_putc(up, c);
drivers/tty/serial/ar933x_uart.c
431
uart_write_wakeup(&up->port);
drivers/tty/serial/ar933x_uart.c
434
ar933x_uart_start_tx_interrupt(up);
drivers/tty/serial/ar933x_uart.c
436
ar933x_uart_wait_tx_complete(up);
drivers/tty/serial/ar933x_uart.c
437
ar933x_uart_rx_flush(up);
drivers/tty/serial/ar933x_uart.c
438
ar933x_uart_start_rx_interrupt(up);
drivers/tty/serial/ar933x_uart.c
439
gpiod_set_value(up->rts_gpiod, !!(rs485conf->flags & SER_RS485_RTS_AFTER_SEND));
drivers/tty/serial/ar933x_uart.c
445
struct ar933x_uart_port *up = dev_id;
drivers/tty/serial/ar933x_uart.c
448
status = ar933x_uart_read(up, AR933X_UART_CS_REG);
drivers/tty/serial/ar933x_uart.c
452
uart_port_lock(&up->port);
drivers/tty/serial/ar933x_uart.c
454
status = ar933x_uart_read(up, AR933X_UART_INT_REG);
drivers/tty/serial/ar933x_uart.c
455
status &= ar933x_uart_read(up, AR933X_UART_INT_EN_REG);
drivers/tty/serial/ar933x_uart.c
458
ar933x_uart_write(up, AR933X_UART_INT_REG,
drivers/tty/serial/ar933x_uart.c
460
ar933x_uart_rx_chars(up);
drivers/tty/serial/ar933x_uart.c
464
ar933x_uart_write(up, AR933X_UART_INT_REG,
drivers/tty/serial/ar933x_uart.c
466
ar933x_uart_stop_tx_interrupt(up);
drivers/tty/serial/ar933x_uart.c
467
ar933x_uart_tx_chars(up);
drivers/tty/serial/ar933x_uart.c
470
uart_unlock_and_check_sysrq(&up->port);
drivers/tty/serial/ar933x_uart.c
477
struct ar933x_uart_port *up =
drivers/tty/serial/ar933x_uart.c
482
ret = request_irq(up->port.irq, ar933x_uart_interrupt,
drivers/tty/serial/ar933x_uart.c
483
up->port.irqflags, dev_name(up->port.dev), up);
drivers/tty/serial/ar933x_uart.c
487
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/ar933x_uart.c
490
ar933x_uart_rmw_set(up, AR933X_UART_CS_REG,
drivers/tty/serial/ar933x_uart.c
494
ar933x_uart_rmw_set(up, AR933X_UART_CS_REG,
drivers/tty/serial/ar933x_uart.c
498
ar933x_uart_start_rx_interrupt(up);
drivers/tty/serial/ar933x_uart.c
500
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/ar933x_uart.c
507
struct ar933x_uart_port *up =
drivers/tty/serial/ar933x_uart.c
511
up->ier = 0;
drivers/tty/serial/ar933x_uart.c
512
ar933x_uart_write(up, AR933X_UART_INT_EN_REG, up->ier);
drivers/tty/serial/ar933x_uart.c
515
ar933x_uart_rmw_clear(up, AR933X_UART_CS_REG,
drivers/tty/serial/ar933x_uart.c
518
free_irq(up->port.irq, up);
drivers/tty/serial/ar933x_uart.c
546
struct ar933x_uart_port *up =
drivers/tty/serial/ar933x_uart.c
556
if (ser->baud_base < up->min_baud ||
drivers/tty/serial/ar933x_uart.c
557
ser->baud_base > up->max_baud)
drivers/tty/serial/ar933x_uart.c
566
struct ar933x_uart_port *up =
drivers/tty/serial/ar933x_uart.c
57
static inline unsigned int ar933x_uart_read(struct ar933x_uart_port *up,
drivers/tty/serial/ar933x_uart.c
573
imr = ar933x_uart_read(up, AR933X_UART_INT_EN_REG);
drivers/tty/serial/ar933x_uart.c
574
ar933x_uart_write(up, AR933X_UART_INT_EN_REG, 0);
drivers/tty/serial/ar933x_uart.c
576
rdata = ar933x_uart_read(up, AR933X_UART_DATA_REG);
drivers/tty/serial/ar933x_uart.c
579
ar933x_uart_write(up, AR933X_UART_INT_EN_REG, imr);
drivers/tty/serial/ar933x_uart.c
584
ar933x_uart_write(up, AR933X_UART_DATA_REG,
drivers/tty/serial/ar933x_uart.c
590
ar933x_uart_write(up, AR933X_UART_INT_EN_REG, imr);
drivers/tty/serial/ar933x_uart.c
597
struct ar933x_uart_port *up =
drivers/tty/serial/ar933x_uart.c
60
return readl(up->port.membase + offset);
drivers/tty/serial/ar933x_uart.c
602
imr = ar933x_uart_read(up, AR933X_UART_INT_EN_REG);
drivers/tty/serial/ar933x_uart.c
603
ar933x_uart_write(up, AR933X_UART_INT_EN_REG, 0);
drivers/tty/serial/ar933x_uart.c
606
while (!(ar933x_uart_read(up, AR933X_UART_DATA_REG) & AR933X_UART_DATA_TX_CSR))
drivers/tty/serial/ar933x_uart.c
610
ar933x_uart_putc(up, c);
drivers/tty/serial/ar933x_uart.c
613
while (!(ar933x_uart_read(up, AR933X_UART_DATA_REG) & AR933X_UART_DATA_TX_CSR))
drivers/tty/serial/ar933x_uart.c
617
ar933x_uart_write(up, AR933X_UART_INT_EN_REG, imr);
drivers/tty/serial/ar933x_uart.c
63
static inline void ar933x_uart_write(struct ar933x_uart_port *up,
drivers/tty/serial/ar933x_uart.c
646
struct ar933x_uart_port *up =
drivers/tty/serial/ar933x_uart.c
650
gpiod_set_value(up->rts_gpiod,
drivers/tty/serial/ar933x_uart.c
66
writel(value, up->port.membase + offset);
drivers/tty/serial/ar933x_uart.c
660
static void ar933x_uart_wait_xmitr(struct ar933x_uart_port *up)
drivers/tty/serial/ar933x_uart.c
667
status = ar933x_uart_read(up, AR933X_UART_DATA_REG);
drivers/tty/serial/ar933x_uart.c
676
struct ar933x_uart_port *up =
drivers/tty/serial/ar933x_uart.c
679
ar933x_uart_wait_xmitr(up);
drivers/tty/serial/ar933x_uart.c
680
ar933x_uart_putc(up, ch);
drivers/tty/serial/ar933x_uart.c
686
struct ar933x_uart_port *up = ar933x_console_ports[co->index];
drivers/tty/serial/ar933x_uart.c
69
static inline void ar933x_uart_rmw(struct ar933x_uart_port *up,
drivers/tty/serial/ar933x_uart.c
692
locked = uart_port_trylock_irqsave(&up->port, &flags);
drivers/tty/serial/ar933x_uart.c
694
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/ar933x_uart.c
699
int_en = ar933x_uart_read(up, AR933X_UART_INT_EN_REG);
drivers/tty/serial/ar933x_uart.c
700
ar933x_uart_write(up, AR933X_UART_INT_EN_REG, 0);
drivers/tty/serial/ar933x_uart.c
702
uart_console_write(&up->port, s, count, ar933x_uart_console_putchar);
drivers/tty/serial/ar933x_uart.c
708
ar933x_uart_wait_xmitr(up);
drivers/tty/serial/ar933x_uart.c
709
ar933x_uart_write(up, AR933X_UART_INT_EN_REG, int_en);
drivers/tty/serial/ar933x_uart.c
711
ar933x_uart_write(up, AR933X_UART_INT_REG, AR933X_UART_INT_ALLINTS);
drivers/tty/serial/ar933x_uart.c
714
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/ar933x_uart.c
719
struct ar933x_uart_port *up;
drivers/tty/serial/ar933x_uart.c
728
up = ar933x_console_ports[co->index];
drivers/tty/serial/ar933x_uart.c
729
if (!up)
drivers/tty/serial/ar933x_uart.c
735
return uart_set_options(&up->port, co, baud, parity, bits, flow);
drivers/tty/serial/ar933x_uart.c
76
t = ar933x_uart_read(up, offset);
drivers/tty/serial/ar933x_uart.c
763
struct ar933x_uart_port *up;
drivers/tty/serial/ar933x_uart.c
79
ar933x_uart_write(up, offset, t);
drivers/tty/serial/ar933x_uart.c
793
up = devm_kzalloc(&pdev->dev, sizeof(struct ar933x_uart_port),
drivers/tty/serial/ar933x_uart.c
795
if (!up)
drivers/tty/serial/ar933x_uart.c
798
up->clk = devm_clk_get(&pdev->dev, "uart");
drivers/tty/serial/ar933x_uart.c
799
if (IS_ERR(up->clk)) {
drivers/tty/serial/ar933x_uart.c
801
return PTR_ERR(up->clk);
drivers/tty/serial/ar933x_uart.c
804
port = &up->port;
drivers/tty/serial/ar933x_uart.c
810
ret = clk_prepare_enable(up->clk);
drivers/tty/serial/ar933x_uart.c
814
port->uartclk = clk_get_rate(up->clk);
drivers/tty/serial/ar933x_uart.c
82
static inline void ar933x_uart_rmw_set(struct ar933x_uart_port *up,
drivers/tty/serial/ar933x_uart.c
834
up->min_baud = max_t(unsigned int, baud, AR933X_UART_MIN_BAUD);
drivers/tty/serial/ar933x_uart.c
837
up->max_baud = min_t(unsigned int, baud, AR933X_UART_MAX_BAUD);
drivers/tty/serial/ar933x_uart.c
843
up->gpios = mctrl_gpio_init(port, 0);
drivers/tty/serial/ar933x_uart.c
844
if (IS_ERR(up->gpios) && PTR_ERR(up->gpios) != -ENOSYS) {
drivers/tty/serial/ar933x_uart.c
845
ret = PTR_ERR(up->gpios);
drivers/tty/serial/ar933x_uart.c
849
up->rts_gpiod = mctrl_gpio_to_gpiod(up->gpios, UART_GPIO_RTS);
drivers/tty/serial/ar933x_uart.c
851
if (!up->rts_gpiod) {
drivers/tty/serial/ar933x_uart.c
86
ar933x_uart_rmw(up, offset, 0, val);
drivers/tty/serial/ar933x_uart.c
860
ar933x_console_ports[up->port.line] = up;
drivers/tty/serial/ar933x_uart.c
863
ret = uart_add_one_port(&ar933x_uart_driver, &up->port);
drivers/tty/serial/ar933x_uart.c
867
platform_set_drvdata(pdev, up);
drivers/tty/serial/ar933x_uart.c
871
clk_disable_unprepare(up->clk);
drivers/tty/serial/ar933x_uart.c
877
struct ar933x_uart_port *up;
drivers/tty/serial/ar933x_uart.c
879
up = platform_get_drvdata(pdev);
drivers/tty/serial/ar933x_uart.c
881
if (up) {
drivers/tty/serial/ar933x_uart.c
882
uart_remove_one_port(&ar933x_uart_driver, &up->port);
drivers/tty/serial/ar933x_uart.c
883
clk_disable_unprepare(up->clk);
drivers/tty/serial/ar933x_uart.c
89
static inline void ar933x_uart_rmw_clear(struct ar933x_uart_port *up,
drivers/tty/serial/ar933x_uart.c
93
ar933x_uart_rmw(up, offset, val, 0);
drivers/tty/serial/ar933x_uart.c
96
static inline void ar933x_uart_start_tx_interrupt(struct ar933x_uart_port *up)
drivers/tty/serial/ar933x_uart.c
98
up->ier |= AR933X_UART_INT_TX_EMPTY;
drivers/tty/serial/ar933x_uart.c
99
ar933x_uart_write(up, AR933X_UART_INT_EN_REG, up->ier);
drivers/tty/serial/cpm_uart.c
817
smc_uart_t __iomem *up;
drivers/tty/serial/cpm_uart.c
822
up = pinfo->smcup;
drivers/tty/serial/cpm_uart.c
833
out_be16(&up->smc_rbptr, in_be16(&pinfo->smcup->smc_rbase));
drivers/tty/serial/cpm_uart.c
834
out_be16(&up->smc_tbptr, in_be16(&pinfo->smcup->smc_tbase));
drivers/tty/serial/cpm_uart.c
835
out_be32(&up->smc_rstate, 0);
drivers/tty/serial/cpm_uart.c
836
out_be32(&up->smc_tstate, 0);
drivers/tty/serial/cpm_uart.c
837
out_be16(&up->smc_brkcr, 1); /* number of break chars */
drivers/tty/serial/cpm_uart.c
838
out_be16(&up->smc_brkec, 0);
drivers/tty/serial/cpm_uart.c
843
out_8(&up->smc_rfcr, CPMFCR_GBL | CPMFCR_EB);
drivers/tty/serial/cpm_uart.c
844
out_8(&up->smc_tfcr, CPMFCR_GBL | CPMFCR_EB);
drivers/tty/serial/cpm_uart.c
847
out_be16(&up->smc_mrblr, pinfo->rx_fifosize);
drivers/tty/serial/cpm_uart.c
848
out_be16(&up->smc_maxidl, 0x10);
drivers/tty/serial/cpm_uart.c
849
out_be16(&up->smc_brklen, 0);
drivers/tty/serial/cpm_uart.c
850
out_be16(&up->smc_brkec, 0);
drivers/tty/serial/cpm_uart.c
851
out_be16(&up->smc_brkcr, 1);
drivers/tty/serial/imx.c
2097
struct uart_port *up = &imx_uart_ports[co->index]->port;
drivers/tty/serial/imx.c
2099
return __uart_port_lock_irqsave(up, flags);
drivers/tty/serial/imx.c
2104
struct uart_port *up = &imx_uart_ports[co->index]->port;
drivers/tty/serial/imx.c
2106
return __uart_port_unlock_irqrestore(up, flags);
drivers/tty/serial/ip22zilog.c
1000
return uart_set_options(&up->port, con, baud, parity, bits, flow);
drivers/tty/serial/ip22zilog.c
1028
static void __init ip22zilog_prepare(struct uart_ip22zilog_port *up)
drivers/tty/serial/ip22zilog.c
1033
spin_lock_init(&up->port.lock);
drivers/tty/serial/ip22zilog.c
1035
up->port.iotype = UPIO_MEM;
drivers/tty/serial/ip22zilog.c
1036
up->port.uartclk = ZS_CLOCK;
drivers/tty/serial/ip22zilog.c
1037
up->port.fifosize = 1;
drivers/tty/serial/ip22zilog.c
1038
up->port.has_sysrq = sysrq_on;
drivers/tty/serial/ip22zilog.c
1039
up->port.ops = &ip22zilog_pops;
drivers/tty/serial/ip22zilog.c
1040
up->port.type = PORT_IP22ZILOG;
drivers/tty/serial/ip22zilog.c
1043
up->parity_mask = 0xff;
drivers/tty/serial/ip22zilog.c
1044
up->curregs[R1] = EXT_INT_ENAB | INT_ALL_Rx | TxINT_ENAB;
drivers/tty/serial/ip22zilog.c
1045
up->curregs[R4] = PAR_EVEN | X16CLK | SB1;
drivers/tty/serial/ip22zilog.c
1046
up->curregs[R3] = RxENAB | Rx8;
drivers/tty/serial/ip22zilog.c
1047
up->curregs[R5] = TxENAB | Tx8;
drivers/tty/serial/ip22zilog.c
1048
up->curregs[R9] = NV | MIE;
drivers/tty/serial/ip22zilog.c
1049
up->curregs[R10] = NRZ;
drivers/tty/serial/ip22zilog.c
1050
up->curregs[R11] = TCBR | RCBR;
drivers/tty/serial/ip22zilog.c
1052
up->curregs[R12] = (brg & 0xff);
drivers/tty/serial/ip22zilog.c
1053
up->curregs[R13] = (brg >> 8) & 0xff;
drivers/tty/serial/ip22zilog.c
1054
up->curregs[R14] = BRENAB;
drivers/tty/serial/ip22zilog.c
1059
struct uart_ip22zilog_port *up;
drivers/tty/serial/ip22zilog.c
1065
up = &ip22zilog_port_table[CHANNEL_B];
drivers/tty/serial/ip22zilog.c
1066
if (up->port.dev)
drivers/tty/serial/ip22zilog.c
1077
ip22zilog_prepare(up);
drivers/tty/serial/ip22zilog.c
1079
up->port.mapbase = res->start + offsetof(struct zilog_layout, channelB);
drivers/tty/serial/ip22zilog.c
1080
up->port.membase = membase + offsetof(struct zilog_layout, channelB);
drivers/tty/serial/ip22zilog.c
1081
up->port.line = 0;
drivers/tty/serial/ip22zilog.c
1082
up->port.dev = &pdev->dev;
drivers/tty/serial/ip22zilog.c
1083
up->port.irq = irq;
drivers/tty/serial/ip22zilog.c
1085
up = &ip22zilog_port_table[CHANNEL_A];
drivers/tty/serial/ip22zilog.c
1086
ip22zilog_prepare(up);
drivers/tty/serial/ip22zilog.c
1088
up->port.mapbase = res->start + offsetof(struct zilog_layout, channelA);
drivers/tty/serial/ip22zilog.c
1089
up->port.membase = membase + offsetof(struct zilog_layout, channelA);
drivers/tty/serial/ip22zilog.c
1090
up->port.line = 1;
drivers/tty/serial/ip22zilog.c
1091
up->port.dev = &pdev->dev;
drivers/tty/serial/ip22zilog.c
1092
up->port.irq = irq;
drivers/tty/serial/ip22zilog.c
232
static void ip22zilog_maybe_update_regs(struct uart_ip22zilog_port *up,
drivers/tty/serial/ip22zilog.c
235
if (!ZS_REGS_HELD(up)) {
drivers/tty/serial/ip22zilog.c
236
if (ZS_TX_ACTIVE(up)) {
drivers/tty/serial/ip22zilog.c
237
up->flags |= IP22ZILOG_FLAG_REGS_HELD;
drivers/tty/serial/ip22zilog.c
239
__load_zsregs(channel, up->curregs);
drivers/tty/serial/ip22zilog.c
247
static bool ip22zilog_receive_chars(struct uart_ip22zilog_port *up,
drivers/tty/serial/ip22zilog.c
252
bool push = up->port.state != NULL;
drivers/tty/serial/ip22zilog.c
270
ch &= up->parity_mask;
drivers/tty/serial/ip22zilog.c
274
r1 |= up->tty_break;
drivers/tty/serial/ip22zilog.c
278
up->port.icount.rx++;
drivers/tty/serial/ip22zilog.c
280
up->tty_break = 0;
drivers/tty/serial/ip22zilog.c
283
up->port.icount.brk++;
drivers/tty/serial/ip22zilog.c
289
up->port.icount.parity++;
drivers/tty/serial/ip22zilog.c
291
up->port.icount.frame++;
drivers/tty/serial/ip22zilog.c
293
up->port.icount.overrun++;
drivers/tty/serial/ip22zilog.c
294
r1 &= up->port.read_status_mask;
drivers/tty/serial/ip22zilog.c
303
if (uart_handle_sysrq_char(&up->port, ch))
drivers/tty/serial/ip22zilog.c
307
uart_insert_char(&up->port, r1, Rx_OVR, ch, flag);
drivers/tty/serial/ip22zilog.c
312
static void ip22zilog_status_handle(struct uart_ip22zilog_port *up,
drivers/tty/serial/ip22zilog.c
324
if (up->curregs[R15] & BRKIE) {
drivers/tty/serial/ip22zilog.c
325
if ((status & BRK_ABRT) && !(up->prev_status & BRK_ABRT)) {
drivers/tty/serial/ip22zilog.c
326
if (uart_handle_break(&up->port))
drivers/tty/serial/ip22zilog.c
327
up->tty_break = Rx_SYS;
drivers/tty/serial/ip22zilog.c
329
up->tty_break = Rx_BRK;
drivers/tty/serial/ip22zilog.c
333
if (ZS_WANTS_MODEM_STATUS(up)) {
drivers/tty/serial/ip22zilog.c
335
up->port.icount.dsr++;
drivers/tty/serial/ip22zilog.c
341
if ((status ^ up->prev_status) ^ DCD)
drivers/tty/serial/ip22zilog.c
342
uart_handle_dcd_change(&up->port,
drivers/tty/serial/ip22zilog.c
344
if ((status ^ up->prev_status) ^ CTS)
drivers/tty/serial/ip22zilog.c
345
uart_handle_cts_change(&up->port,
drivers/tty/serial/ip22zilog.c
348
wake_up_interruptible(&up->port.state->port.delta_msr_wait);
drivers/tty/serial/ip22zilog.c
351
up->prev_status = status;
drivers/tty/serial/ip22zilog.c
354
static void ip22zilog_transmit_chars(struct uart_ip22zilog_port *up,
drivers/tty/serial/ip22zilog.c
360
if (ZS_IS_CONS(up)) {
drivers/tty/serial/ip22zilog.c
376
up->flags &= ~IP22ZILOG_FLAG_TX_ACTIVE;
drivers/tty/serial/ip22zilog.c
378
if (ZS_REGS_HELD(up)) {
drivers/tty/serial/ip22zilog.c
379
__load_zsregs(channel, up->curregs);
drivers/tty/serial/ip22zilog.c
380
up->flags &= ~IP22ZILOG_FLAG_REGS_HELD;
drivers/tty/serial/ip22zilog.c
383
if (ZS_TX_STOPPED(up)) {
drivers/tty/serial/ip22zilog.c
384
up->flags &= ~IP22ZILOG_FLAG_TX_STOPPED;
drivers/tty/serial/ip22zilog.c
388
if (up->port.x_char) {
drivers/tty/serial/ip22zilog.c
389
up->flags |= IP22ZILOG_FLAG_TX_ACTIVE;
drivers/tty/serial/ip22zilog.c
390
writeb(up->port.x_char, &channel->data);
drivers/tty/serial/ip22zilog.c
394
up->port.icount.tx++;
drivers/tty/serial/ip22zilog.c
395
up->port.x_char = 0;
drivers/tty/serial/ip22zilog.c
399
if (up->port.state == NULL)
drivers/tty/serial/ip22zilog.c
401
tport = &up->port.state->port;
drivers/tty/serial/ip22zilog.c
402
if (uart_tx_stopped(&up->port))
drivers/tty/serial/ip22zilog.c
404
if (!uart_fifo_get(&up->port, &c))
drivers/tty/serial/ip22zilog.c
407
up->flags |= IP22ZILOG_FLAG_TX_ACTIVE;
drivers/tty/serial/ip22zilog.c
413
uart_write_wakeup(&up->port);
drivers/tty/serial/ip22zilog.c
425
struct uart_ip22zilog_port *up;
drivers/tty/serial/ip22zilog.c
430
up = &ip22zilog_port_table[CHANNEL_A];
drivers/tty/serial/ip22zilog.c
431
channel = ZILOG_CHANNEL_FROM_PORT(&up->port);
drivers/tty/serial/ip22zilog.c
433
uart_port_lock(&up->port);
drivers/tty/serial/ip22zilog.c
443
push = ip22zilog_receive_chars(up, channel);
drivers/tty/serial/ip22zilog.c
445
ip22zilog_status_handle(up, channel);
drivers/tty/serial/ip22zilog.c
447
ip22zilog_transmit_chars(up, channel);
drivers/tty/serial/ip22zilog.c
449
uart_port_unlock(&up->port);
drivers/tty/serial/ip22zilog.c
452
tty_flip_buffer_push(&up->port.state->port);
drivers/tty/serial/ip22zilog.c
455
up = &ip22zilog_port_table[CHANNEL_B];
drivers/tty/serial/ip22zilog.c
456
channel = ZILOG_CHANNEL_FROM_PORT(&up->port);
drivers/tty/serial/ip22zilog.c
459
uart_port_lock(&up->port);
drivers/tty/serial/ip22zilog.c
466
push = ip22zilog_receive_chars(up, channel);
drivers/tty/serial/ip22zilog.c
468
ip22zilog_status_handle(up, channel);
drivers/tty/serial/ip22zilog.c
470
ip22zilog_transmit_chars(up, channel);
drivers/tty/serial/ip22zilog.c
472
uart_port_unlock(&up->port);
drivers/tty/serial/ip22zilog.c
475
tty_flip_buffer_push(&up->port.state->port);
drivers/tty/serial/ip22zilog.c
538
struct uart_ip22zilog_port *up =
drivers/tty/serial/ip22zilog.c
555
up->curregs[R5] |= set_bits;
drivers/tty/serial/ip22zilog.c
556
up->curregs[R5] &= ~clear_bits;
drivers/tty/serial/ip22zilog.c
557
write_zsreg(channel, R5, up->curregs[R5]);
drivers/tty/serial/ip22zilog.c
563
struct uart_ip22zilog_port *up =
drivers/tty/serial/ip22zilog.c
566
up->flags |= IP22ZILOG_FLAG_TX_STOPPED;
drivers/tty/serial/ip22zilog.c
572
struct uart_ip22zilog_port *up =
drivers/tty/serial/ip22zilog.c
577
up->flags |= IP22ZILOG_FLAG_TX_ACTIVE;
drivers/tty/serial/ip22zilog.c
578
up->flags &= ~IP22ZILOG_FLAG_TX_STOPPED;
drivers/tty/serial/ip22zilog.c
608
uart_write_wakeup(&up->port);
drivers/tty/serial/ip22zilog.c
615
struct uart_ip22zilog_port *up = UART_ZILOG(port);
drivers/tty/serial/ip22zilog.c
618
if (ZS_IS_CONS(up))
drivers/tty/serial/ip22zilog.c
624
up->curregs[R1] &= ~RxINT_MASK;
drivers/tty/serial/ip22zilog.c
625
ip22zilog_maybe_update_regs(up, channel);
drivers/tty/serial/ip22zilog.c
631
struct uart_ip22zilog_port *up =
drivers/tty/serial/ip22zilog.c
636
new_reg = up->curregs[R15] | (DCDIE | SYNCIE | CTSIE);
drivers/tty/serial/ip22zilog.c
637
if (new_reg != up->curregs[R15]) {
drivers/tty/serial/ip22zilog.c
638
up->curregs[R15] = new_reg;
drivers/tty/serial/ip22zilog.c
641
write_zsreg(channel, R15, up->curregs[R15]);
drivers/tty/serial/ip22zilog.c
648
struct uart_ip22zilog_port *up =
drivers/tty/serial/ip22zilog.c
663
new_reg = (up->curregs[R5] | set_bits) & ~clear_bits;
drivers/tty/serial/ip22zilog.c
664
if (new_reg != up->curregs[R5]) {
drivers/tty/serial/ip22zilog.c
665
up->curregs[R5] = new_reg;
drivers/tty/serial/ip22zilog.c
668
write_zsreg(channel, R5, up->curregs[R5]);
drivers/tty/serial/ip22zilog.c
674
static void __ip22zilog_reset(struct uart_ip22zilog_port *up)
drivers/tty/serial/ip22zilog.c
679
if (up->flags & IP22ZILOG_FLAG_RESET_DONE)
drivers/tty/serial/ip22zilog.c
683
channel = ZILOG_CHANNEL_FROM_PORT(&up->port);
drivers/tty/serial/ip22zilog.c
691
up = &ip22zilog_port_table[CHANNEL_A];
drivers/tty/serial/ip22zilog.c
692
channel = ZILOG_CHANNEL_FROM_PORT(&up->port);
drivers/tty/serial/ip22zilog.c
698
up->flags |= IP22ZILOG_FLAG_RESET_DONE;
drivers/tty/serial/ip22zilog.c
699
up = &ip22zilog_port_table[CHANNEL_B];
drivers/tty/serial/ip22zilog.c
700
up->flags |= IP22ZILOG_FLAG_RESET_DONE;
drivers/tty/serial/ip22zilog.c
703
static void __ip22zilog_startup(struct uart_ip22zilog_port *up)
drivers/tty/serial/ip22zilog.c
707
channel = ZILOG_CHANNEL_FROM_PORT(&up->port);
drivers/tty/serial/ip22zilog.c
709
__ip22zilog_reset(up);
drivers/tty/serial/ip22zilog.c
711
__load_zsregs(channel, up->curregs);
drivers/tty/serial/ip22zilog.c
713
write_zsreg(channel, R9, up->curregs[R9]);
drivers/tty/serial/ip22zilog.c
714
up->prev_status = readb(&channel->control);
drivers/tty/serial/ip22zilog.c
717
up->curregs[R3] |= RxENAB;
drivers/tty/serial/ip22zilog.c
718
up->curregs[R5] |= TxENAB;
drivers/tty/serial/ip22zilog.c
720
up->curregs[R1] |= EXT_INT_ENAB | INT_ALL_Rx | TxINT_ENAB;
drivers/tty/serial/ip22zilog.c
721
ip22zilog_maybe_update_regs(up, channel);
drivers/tty/serial/ip22zilog.c
726
struct uart_ip22zilog_port *up = UART_ZILOG(port);
drivers/tty/serial/ip22zilog.c
729
if (ZS_IS_CONS(up))
drivers/tty/serial/ip22zilog.c
733
__ip22zilog_startup(up);
drivers/tty/serial/ip22zilog.c
765
struct uart_ip22zilog_port *up = UART_ZILOG(port);
drivers/tty/serial/ip22zilog.c
769
if (ZS_IS_CONS(up))
drivers/tty/serial/ip22zilog.c
777
up->curregs[R3] &= ~RxENAB;
drivers/tty/serial/ip22zilog.c
778
up->curregs[R5] &= ~TxENAB;
drivers/tty/serial/ip22zilog.c
781
up->curregs[R1] &= ~(EXT_INT_ENAB | TxINT_ENAB | RxINT_MASK);
drivers/tty/serial/ip22zilog.c
782
up->curregs[R5] &= ~SND_BRK;
drivers/tty/serial/ip22zilog.c
783
ip22zilog_maybe_update_regs(up, channel);
drivers/tty/serial/ip22zilog.c
792
ip22zilog_convert_to_zs(struct uart_ip22zilog_port *up, unsigned int cflag,
drivers/tty/serial/ip22zilog.c
796
up->curregs[R10] = NRZ;
drivers/tty/serial/ip22zilog.c
797
up->curregs[R11] = TCBR | RCBR;
drivers/tty/serial/ip22zilog.c
800
up->curregs[R4] &= ~XCLK_MASK;
drivers/tty/serial/ip22zilog.c
801
up->curregs[R4] |= X16CLK;
drivers/tty/serial/ip22zilog.c
802
up->curregs[R12] = brg & 0xff;
drivers/tty/serial/ip22zilog.c
803
up->curregs[R13] = (brg >> 8) & 0xff;
drivers/tty/serial/ip22zilog.c
804
up->curregs[R14] = BRENAB;
drivers/tty/serial/ip22zilog.c
807
up->curregs[3] &= ~RxN_MASK;
drivers/tty/serial/ip22zilog.c
808
up->curregs[5] &= ~TxN_MASK;
drivers/tty/serial/ip22zilog.c
811
up->curregs[3] |= Rx5;
drivers/tty/serial/ip22zilog.c
812
up->curregs[5] |= Tx5;
drivers/tty/serial/ip22zilog.c
813
up->parity_mask = 0x1f;
drivers/tty/serial/ip22zilog.c
816
up->curregs[3] |= Rx6;
drivers/tty/serial/ip22zilog.c
817
up->curregs[5] |= Tx6;
drivers/tty/serial/ip22zilog.c
818
up->parity_mask = 0x3f;
drivers/tty/serial/ip22zilog.c
821
up->curregs[3] |= Rx7;
drivers/tty/serial/ip22zilog.c
822
up->curregs[5] |= Tx7;
drivers/tty/serial/ip22zilog.c
823
up->parity_mask = 0x7f;
drivers/tty/serial/ip22zilog.c
827
up->curregs[3] |= Rx8;
drivers/tty/serial/ip22zilog.c
828
up->curregs[5] |= Tx8;
drivers/tty/serial/ip22zilog.c
829
up->parity_mask = 0xff;
drivers/tty/serial/ip22zilog.c
832
up->curregs[4] &= ~0x0c;
drivers/tty/serial/ip22zilog.c
834
up->curregs[4] |= SB2;
drivers/tty/serial/ip22zilog.c
836
up->curregs[4] |= SB1;
drivers/tty/serial/ip22zilog.c
838
up->curregs[4] |= PAR_ENAB;
drivers/tty/serial/ip22zilog.c
840
up->curregs[4] &= ~PAR_ENAB;
drivers/tty/serial/ip22zilog.c
842
up->curregs[4] |= PAR_EVEN;
drivers/tty/serial/ip22zilog.c
844
up->curregs[4] &= ~PAR_EVEN;
drivers/tty/serial/ip22zilog.c
846
up->port.read_status_mask = Rx_OVR;
drivers/tty/serial/ip22zilog.c
848
up->port.read_status_mask |= CRC_ERR | PAR_ERR;
drivers/tty/serial/ip22zilog.c
850
up->port.read_status_mask |= BRK_ABRT;
drivers/tty/serial/ip22zilog.c
852
up->port.ignore_status_mask = 0;
drivers/tty/serial/ip22zilog.c
854
up->port.ignore_status_mask |= CRC_ERR | PAR_ERR;
drivers/tty/serial/ip22zilog.c
856
up->port.ignore_status_mask |= BRK_ABRT;
drivers/tty/serial/ip22zilog.c
858
up->port.ignore_status_mask |= Rx_OVR;
drivers/tty/serial/ip22zilog.c
862
up->port.ignore_status_mask = 0xff;
drivers/tty/serial/ip22zilog.c
870
struct uart_ip22zilog_port *up =
drivers/tty/serial/ip22zilog.c
877
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/ip22zilog.c
881
ip22zilog_convert_to_zs(up, termios->c_cflag, termios->c_iflag, brg);
drivers/tty/serial/ip22zilog.c
883
if (UART_ENABLE_MS(&up->port, termios->c_cflag))
drivers/tty/serial/ip22zilog.c
884
up->flags |= IP22ZILOG_FLAG_MODEM_STATUS;
drivers/tty/serial/ip22zilog.c
886
up->flags &= ~IP22ZILOG_FLAG_MODEM_STATUS;
drivers/tty/serial/ip22zilog.c
888
ip22zilog_maybe_update_regs(up, ZILOG_CHANNEL_FROM_PORT(port));
drivers/tty/serial/ip22zilog.c
891
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/ip22zilog.c
969
struct uart_ip22zilog_port *up = &ip22zilog_port_table[con->index];
drivers/tty/serial/ip22zilog.c
972
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/ip22zilog.c
973
uart_console_write(&up->port, s, count, ip22zilog_put_char);
drivers/tty/serial/ip22zilog.c
975
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/ip22zilog.c
980
struct uart_ip22zilog_port *up = &ip22zilog_port_table[con->index];
drivers/tty/serial/ip22zilog.c
986
up->flags |= IP22ZILOG_FLAG_IS_CONS;
drivers/tty/serial/ip22zilog.c
990
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/ip22zilog.c
992
up->curregs[R15] |= BRKIE;
drivers/tty/serial/ip22zilog.c
994
__ip22zilog_startup(up);
drivers/tty/serial/ip22zilog.c
996
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/lpc32xx_hs.c
134
struct lpc32xx_hsuart_port *up = &lpc32xx_hs_ports[co->index];
drivers/tty/serial/lpc32xx_hs.c
140
locked = uart_port_trylock_irqsave(&up->port, &flags);
drivers/tty/serial/lpc32xx_hs.c
142
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/lpc32xx_hs.c
144
uart_console_write(&up->port, s, count, lpc32xx_hsuart_console_putchar);
drivers/tty/serial/lpc32xx_hs.c
145
wait_for_xmit_empty(&up->port);
drivers/tty/serial/lpc32xx_hs.c
148
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/ma35d1_serial.c
189
struct uart_ma35d1_port *up = to_ma35d1_uart_port(port);
drivers/tty/serial/ma35d1_serial.c
191
__stop_tx(up);
drivers/tty/serial/ma35d1_serial.c
194
static void transmit_chars(struct uart_ma35d1_port *up)
drivers/tty/serial/ma35d1_serial.c
199
if (uart_tx_stopped(&up->port)) {
drivers/tty/serial/ma35d1_serial.c
200
ma35d1serial_stop_tx(&up->port);
drivers/tty/serial/ma35d1_serial.c
204
serial_in(up, MA35_FSR_REG));
drivers/tty/serial/ma35d1_serial.c
205
uart_port_tx_limited(&up->port, ch, count,
drivers/tty/serial/ma35d1_serial.c
206
!(serial_in(up, MA35_FSR_REG) & MA35_FSR_TX_FULL),
drivers/tty/serial/ma35d1_serial.c
207
serial_out(up, MA35_THR_REG, ch),
drivers/tty/serial/ma35d1_serial.c
213
struct uart_ma35d1_port *up = to_ma35d1_uart_port(port);
drivers/tty/serial/ma35d1_serial.c
216
ier = serial_in(up, MA35_IER_REG);
drivers/tty/serial/ma35d1_serial.c
217
serial_out(up, MA35_IER_REG, ier & ~MA35_IER_THRE_IEN);
drivers/tty/serial/ma35d1_serial.c
218
transmit_chars(up);
drivers/tty/serial/ma35d1_serial.c
219
serial_out(up, MA35_IER_REG, ier | MA35_IER_THRE_IEN);
drivers/tty/serial/ma35d1_serial.c
224
struct uart_ma35d1_port *up = to_ma35d1_uart_port(port);
drivers/tty/serial/ma35d1_serial.c
227
ier = serial_in(up, MA35_IER_REG);
drivers/tty/serial/ma35d1_serial.c
229
serial_out(up, MA35_IER_REG, ier);
drivers/tty/serial/ma35d1_serial.c
232
static void receive_chars(struct uart_ma35d1_port *up)
drivers/tty/serial/ma35d1_serial.c
238
fsr = serial_in(up, MA35_FSR_REG);
drivers/tty/serial/ma35d1_serial.c
241
up->port.icount.rx++;
drivers/tty/serial/ma35d1_serial.c
246
up->port.icount.brk++;
drivers/tty/serial/ma35d1_serial.c
247
if (uart_handle_break(&up->port))
drivers/tty/serial/ma35d1_serial.c
251
up->port.icount.frame++;
drivers/tty/serial/ma35d1_serial.c
253
up->port.icount.parity++;
drivers/tty/serial/ma35d1_serial.c
255
up->port.icount.overrun++;
drivers/tty/serial/ma35d1_serial.c
257
serial_out(up, MA35_FSR_REG,
drivers/tty/serial/ma35d1_serial.c
268
ch = serial_in(up, MA35_RBR_REG);
drivers/tty/serial/ma35d1_serial.c
269
if (uart_handle_sysrq_char(&up->port, ch))
drivers/tty/serial/ma35d1_serial.c
272
uart_port_lock(&up->port);
drivers/tty/serial/ma35d1_serial.c
273
uart_insert_char(&up->port, fsr, MA35_FSR_RX_OVER_IF, ch, flag);
drivers/tty/serial/ma35d1_serial.c
274
uart_port_unlock(&up->port);
drivers/tty/serial/ma35d1_serial.c
276
fsr = serial_in(up, MA35_FSR_REG);
drivers/tty/serial/ma35d1_serial.c
279
uart_port_lock(&up->port);
drivers/tty/serial/ma35d1_serial.c
280
tty_flip_buffer_push(&up->port.state->port);
drivers/tty/serial/ma35d1_serial.c
281
uart_port_unlock(&up->port);
drivers/tty/serial/ma35d1_serial.c
287
struct uart_ma35d1_port *up = to_ma35d1_uart_port(port);
drivers/tty/serial/ma35d1_serial.c
290
isr = serial_in(up, MA35_ISR_REG);
drivers/tty/serial/ma35d1_serial.c
291
fsr = serial_in(up, MA35_FSR_REG);
drivers/tty/serial/ma35d1_serial.c
297
receive_chars(up);
drivers/tty/serial/ma35d1_serial.c
299
transmit_chars(up);
drivers/tty/serial/ma35d1_serial.c
301
serial_out(up, MA35_FSR_REG, MA35_FSR_TX_OVER_IF);
drivers/tty/serial/ma35d1_serial.c
308
struct uart_ma35d1_port *up = to_ma35d1_uart_port(port);
drivers/tty/serial/ma35d1_serial.c
311
fsr = serial_in(up, MA35_FSR_REG);
drivers/tty/serial/ma35d1_serial.c
320
struct uart_ma35d1_port *up = to_ma35d1_uart_port(port);
drivers/tty/serial/ma35d1_serial.c
324
status = serial_in(up, MA35_MSR_REG);
drivers/tty/serial/ma35d1_serial.c
332
struct uart_ma35d1_port *up = to_ma35d1_uart_port(port);
drivers/tty/serial/ma35d1_serial.c
335
mcr = serial_in(up, MA35_MCR_REG);
drivers/tty/serial/ma35d1_serial.c
343
if (up->mcr & UART_MCR_AFE) {
drivers/tty/serial/ma35d1_serial.c
344
ier = serial_in(up, MA35_IER_REG);
drivers/tty/serial/ma35d1_serial.c
346
serial_out(up, MA35_IER_REG, ier);
drivers/tty/serial/ma35d1_serial.c
347
up->port.flags |= UPF_HARD_FLOW;
drivers/tty/serial/ma35d1_serial.c
349
ier = serial_in(up, MA35_IER_REG);
drivers/tty/serial/ma35d1_serial.c
351
serial_out(up, MA35_IER_REG, ier);
drivers/tty/serial/ma35d1_serial.c
352
up->port.flags &= ~UPF_HARD_FLOW;
drivers/tty/serial/ma35d1_serial.c
355
msr = serial_in(up, MA35_MSR_REG);
drivers/tty/serial/ma35d1_serial.c
357
serial_out(up, MA35_MSR_REG, msr);
drivers/tty/serial/ma35d1_serial.c
358
serial_out(up, MA35_MCR_REG, mcr);
drivers/tty/serial/ma35d1_serial.c
363
struct uart_ma35d1_port *up = to_ma35d1_uart_port(port);
drivers/tty/serial/ma35d1_serial.c
367
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/ma35d1_serial.c
368
lcr = serial_in(up, MA35_LCR_REG);
drivers/tty/serial/ma35d1_serial.c
373
serial_out(up, MA35_LCR_REG, lcr);
drivers/tty/serial/ma35d1_serial.c
374
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/ma35d1_serial.c
379
struct uart_ma35d1_port *up = to_ma35d1_uart_port(port);
drivers/tty/serial/ma35d1_serial.c
384
serial_out(up, MA35_FCR_REG, MA35_FCR_TFR | MA35_FCR_RFR);
drivers/tty/serial/ma35d1_serial.c
387
serial_out(up, MA35_ISR_REG, MA35_ISR_ALL);
drivers/tty/serial/ma35d1_serial.c
392
dev_err(up->port.dev, "request irq failed.\n");
drivers/tty/serial/ma35d1_serial.c
396
fcr = serial_in(up, MA35_FCR_REG);
drivers/tty/serial/ma35d1_serial.c
398
serial_out(up, MA35_FCR_REG, fcr);
drivers/tty/serial/ma35d1_serial.c
399
serial_out(up, MA35_LCR_REG, MA35_LCR_WLS_8BITS);
drivers/tty/serial/ma35d1_serial.c
400
serial_out(up, MA35_TOR_REG, MA35_UART_RX_TOUT);
drivers/tty/serial/ma35d1_serial.c
401
serial_out(up, MA35_IER_REG, MA35_IER_CONFIG);
drivers/tty/serial/ma35d1_serial.c
407
struct uart_ma35d1_port *up = to_ma35d1_uart_port(port);
drivers/tty/serial/ma35d1_serial.c
409
serial_out(up, MA35_IER_REG, 0);
drivers/tty/serial/ma35d1_serial.c
417
struct uart_ma35d1_port *up = to_ma35d1_uart_port(port);
drivers/tty/serial/ma35d1_serial.c
444
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/ma35d1_serial.c
446
up->port.read_status_mask = MA35_FSR_RX_OVER_IF;
drivers/tty/serial/ma35d1_serial.c
448
up->port.read_status_mask |= MA35_FSR_FEF | MA35_FSR_PEF;
drivers/tty/serial/ma35d1_serial.c
450
up->port.read_status_mask |= MA35_FSR_BIF;
drivers/tty/serial/ma35d1_serial.c
453
up->port.ignore_status_mask = 0;
drivers/tty/serial/ma35d1_serial.c
455
up->port.ignore_status_mask |= MA35_FSR_FEF | MA35_FSR_PEF;
drivers/tty/serial/ma35d1_serial.c
457
up->port.ignore_status_mask |= MA35_FSR_BIF;
drivers/tty/serial/ma35d1_serial.c
463
up->port.ignore_status_mask |= MA35_FSR_RX_OVER_IF;
drivers/tty/serial/ma35d1_serial.c
466
up->mcr |= UART_MCR_AFE;
drivers/tty/serial/ma35d1_serial.c
468
up->mcr &= ~UART_MCR_AFE;
drivers/tty/serial/ma35d1_serial.c
472
ma35d1serial_set_mctrl(&up->port, up->port.mctrl);
drivers/tty/serial/ma35d1_serial.c
474
serial_out(up, MA35_BAUD_REG, MA35_BAUD_MODE2 | FIELD_PREP(MA35_BAUD_MASK, quot));
drivers/tty/serial/ma35d1_serial.c
476
serial_out(up, MA35_LCR_REG, lcr);
drivers/tty/serial/ma35d1_serial.c
478
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/ma35d1_serial.c
530
static void wait_for_xmitr(struct uart_ma35d1_port *up)
drivers/tty/serial/ma35d1_serial.c
536
up, MA35_FSR_REG);
drivers/tty/serial/ma35d1_serial.c
541
struct uart_ma35d1_port *up = to_ma35d1_uart_port(port);
drivers/tty/serial/ma35d1_serial.c
543
wait_for_xmitr(up);
drivers/tty/serial/ma35d1_serial.c
544
serial_out(up, MA35_THR_REG, ch);
drivers/tty/serial/ma35d1_serial.c
555
struct uart_ma35d1_port *up;
drivers/tty/serial/ma35d1_serial.c
566
up = &ma35d1serial_ports[co->index];
drivers/tty/serial/ma35d1_serial.c
568
if (up->port.sysrq)
drivers/tty/serial/ma35d1_serial.c
571
locked = uart_port_trylock_irqsave(&up->port, &flags);
drivers/tty/serial/ma35d1_serial.c
573
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/ma35d1_serial.c
578
ier = serial_in(up, MA35_IER_REG);
drivers/tty/serial/ma35d1_serial.c
579
serial_out(up, MA35_IER_REG, 0);
drivers/tty/serial/ma35d1_serial.c
581
uart_console_write(&up->port, s, count, ma35d1serial_console_putchar);
drivers/tty/serial/ma35d1_serial.c
583
wait_for_xmitr(up);
drivers/tty/serial/ma35d1_serial.c
584
serial_out(up, MA35_IER_REG, ier);
drivers/tty/serial/ma35d1_serial.c
587
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/ma35d1_serial.c
688
struct uart_ma35d1_port *up;
drivers/tty/serial/ma35d1_serial.c
699
up = &ma35d1serial_ports[ret];
drivers/tty/serial/ma35d1_serial.c
700
up->port.line = ret;
drivers/tty/serial/ma35d1_serial.c
705
up->port.iobase = res_mem->start;
drivers/tty/serial/ma35d1_serial.c
706
up->port.membase = ioremap(up->port.iobase, MA35_UART_REG_SIZE);
drivers/tty/serial/ma35d1_serial.c
707
if (!up->port.membase)
drivers/tty/serial/ma35d1_serial.c
710
up->port.ops = &ma35d1serial_ops;
drivers/tty/serial/ma35d1_serial.c
712
spin_lock_init(&up->port.lock);
drivers/tty/serial/ma35d1_serial.c
714
up->clk = of_clk_get(pdev->dev.of_node, 0);
drivers/tty/serial/ma35d1_serial.c
715
if (IS_ERR(up->clk)) {
drivers/tty/serial/ma35d1_serial.c
716
ret = PTR_ERR(up->clk);
drivers/tty/serial/ma35d1_serial.c
721
ret = clk_prepare_enable(up->clk);
drivers/tty/serial/ma35d1_serial.c
725
if (up->port.line != 0)
drivers/tty/serial/ma35d1_serial.c
726
up->port.uartclk = clk_get_rate(up->clk);
drivers/tty/serial/ma35d1_serial.c
732
up->port.irq = ret;
drivers/tty/serial/ma35d1_serial.c
733
up->port.dev = &pdev->dev;
drivers/tty/serial/ma35d1_serial.c
734
up->port.flags = UPF_BOOT_AUTOCONF;
drivers/tty/serial/ma35d1_serial.c
736
platform_set_drvdata(pdev, up);
drivers/tty/serial/ma35d1_serial.c
738
ret = uart_add_one_port(&ma35d1serial_reg, &up->port);
drivers/tty/serial/ma35d1_serial.c
745
free_irq(up->port.irq, &up->port);
drivers/tty/serial/ma35d1_serial.c
748
clk_disable_unprepare(up->clk);
drivers/tty/serial/ma35d1_serial.c
751
iounmap(up->port.membase);
drivers/tty/serial/ma35d1_serial.c
761
struct uart_ma35d1_port *up = to_ma35d1_uart_port(port);
drivers/tty/serial/ma35d1_serial.c
764
clk_disable_unprepare(up->clk);
drivers/tty/serial/ma35d1_serial.c
770
struct uart_ma35d1_port *up = to_ma35d1_uart_port(port);
drivers/tty/serial/ma35d1_serial.c
772
uart_suspend_port(&ma35d1serial_reg, &up->port);
drivers/tty/serial/ma35d1_serial.c
773
if (up->port.line == 0) {
drivers/tty/serial/ma35d1_serial.c
774
up->console_baud_rate = serial_in(up, MA35_BAUD_REG);
drivers/tty/serial/ma35d1_serial.c
775
up->console_line = serial_in(up, MA35_LCR_REG);
drivers/tty/serial/ma35d1_serial.c
776
up->console_int = serial_in(up, MA35_IER_REG);
drivers/tty/serial/ma35d1_serial.c
784
struct uart_ma35d1_port *up = to_ma35d1_uart_port(port);
drivers/tty/serial/ma35d1_serial.c
786
if (up->port.line == 0) {
drivers/tty/serial/ma35d1_serial.c
787
serial_out(up, MA35_BAUD_REG, up->console_baud_rate);
drivers/tty/serial/ma35d1_serial.c
788
serial_out(up, MA35_LCR_REG, up->console_line);
drivers/tty/serial/ma35d1_serial.c
789
serial_out(up, MA35_IER_REG, up->console_int);
drivers/tty/serial/ma35d1_serial.c
791
uart_resume_port(&ma35d1serial_reg, &up->port);
drivers/tty/serial/msm_serial.c
190
static inline struct msm_port *to_msm_port(struct uart_port *up)
drivers/tty/serial/msm_serial.c
192
return container_of(up, struct msm_port, uart);
drivers/tty/serial/omap-serial.c
1005
up->mcr |= UART_MCR_XONANY;
drivers/tty/serial/omap-serial.c
1007
up->mcr &= ~UART_MCR_XONANY;
drivers/tty/serial/omap-serial.c
1009
serial_out(up, UART_MCR, up->mcr);
drivers/tty/serial/omap-serial.c
1010
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/omap-serial.c
1011
serial_out(up, UART_EFR, up->efr);
drivers/tty/serial/omap-serial.c
1012
serial_out(up, UART_LCR, up->lcr);
drivers/tty/serial/omap-serial.c
1014
serial_omap_set_mctrl(&up->port, up->port.mctrl);
drivers/tty/serial/omap-serial.c
1016
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/omap-serial.c
1017
dev_dbg(up->port.dev, "serial_omap_set_termios+%d\n", up->port.line);
drivers/tty/serial/omap-serial.c
1024
struct uart_omap_port *up = to_uart_omap_port(port);
drivers/tty/serial/omap-serial.c
1027
dev_dbg(up->port.dev, "serial_omap_pm+%d\n", up->port.line);
drivers/tty/serial/omap-serial.c
1029
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/omap-serial.c
1030
efr = serial_in(up, UART_EFR);
drivers/tty/serial/omap-serial.c
1031
serial_out(up, UART_EFR, efr | UART_EFR_ECB);
drivers/tty/serial/omap-serial.c
1032
serial_out(up, UART_LCR, 0);
drivers/tty/serial/omap-serial.c
1034
serial_out(up, UART_IER, (state != 0) ? UART_IERX_SLEEP : 0);
drivers/tty/serial/omap-serial.c
1035
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/omap-serial.c
1036
serial_out(up, UART_EFR, efr);
drivers/tty/serial/omap-serial.c
1037
serial_out(up, UART_LCR, 0);
drivers/tty/serial/omap-serial.c
1053
struct uart_omap_port *up = to_uart_omap_port(port);
drivers/tty/serial/omap-serial.c
1055
dev_dbg(up->port.dev, "serial_omap_config_port+%d\n",
drivers/tty/serial/omap-serial.c
1056
up->port.line);
drivers/tty/serial/omap-serial.c
1057
up->port.type = PORT_OMAP;
drivers/tty/serial/omap-serial.c
1058
up->port.flags |= UPF_SOFT_FLOW | UPF_HARD_FLOW;
drivers/tty/serial/omap-serial.c
1072
struct uart_omap_port *up = to_uart_omap_port(port);
drivers/tty/serial/omap-serial.c
1074
dev_dbg(up->port.dev, "serial_omap_type+%d\n", up->port.line);
drivers/tty/serial/omap-serial.c
1075
return up->name;
drivers/tty/serial/omap-serial.c
1078
static void __maybe_unused wait_for_xmitr(struct uart_omap_port *up)
drivers/tty/serial/omap-serial.c
1084
status = serial_in(up, UART_LSR);
drivers/tty/serial/omap-serial.c
1087
up->lsr_break_flag = UART_LSR_BI;
drivers/tty/serial/omap-serial.c
1095
if (up->port.flags & UPF_CONS_FLOW) {
drivers/tty/serial/omap-serial.c
1097
unsigned int msr = serial_in(up, UART_MSR);
drivers/tty/serial/omap-serial.c
1099
up->msr_saved_flags |= msr & MSR_SAVE_FLAGS;
drivers/tty/serial/omap-serial.c
1112
struct uart_omap_port *up = to_uart_omap_port(port);
drivers/tty/serial/omap-serial.c
1114
wait_for_xmitr(up);
drivers/tty/serial/omap-serial.c
1115
serial_out(up, UART_TX, ch);
drivers/tty/serial/omap-serial.c
1120
struct uart_omap_port *up = to_uart_omap_port(port);
drivers/tty/serial/omap-serial.c
1123
status = serial_in(up, UART_LSR);
drivers/tty/serial/omap-serial.c
1129
status = serial_in(up, UART_RX);
drivers/tty/serial/omap-serial.c
1199
struct uart_omap_port *up = to_uart_omap_port(port);
drivers/tty/serial/omap-serial.c
1201
wait_for_xmitr(up);
drivers/tty/serial/omap-serial.c
1202
serial_out(up, UART_TX, ch);
drivers/tty/serial/omap-serial.c
1209
struct uart_omap_port *up = serial_omap_console_ports[co->index];
drivers/tty/serial/omap-serial.c
1215
locked = uart_port_trylock_irqsave(&up->port, &flags);
drivers/tty/serial/omap-serial.c
1217
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/omap-serial.c
1222
ier = serial_in(up, UART_IER);
drivers/tty/serial/omap-serial.c
1223
serial_out(up, UART_IER, 0);
drivers/tty/serial/omap-serial.c
1225
uart_console_write(&up->port, s, count, serial_omap_console_putchar);
drivers/tty/serial/omap-serial.c
1231
wait_for_xmitr(up);
drivers/tty/serial/omap-serial.c
1232
serial_out(up, UART_IER, ier);
drivers/tty/serial/omap-serial.c
1240
if (up->msr_saved_flags)
drivers/tty/serial/omap-serial.c
1241
check_modem_status(up);
drivers/tty/serial/omap-serial.c
1244
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/omap-serial.c
1250
struct uart_omap_port *up;
drivers/tty/serial/omap-serial.c
1258
up = serial_omap_console_ports[co->index];
drivers/tty/serial/omap-serial.c
1263
return uart_set_options(&up->port, co, baud, parity, bits, flow);
drivers/tty/serial/omap-serial.c
1276
static void serial_omap_add_console_port(struct uart_omap_port *up)
drivers/tty/serial/omap-serial.c
1278
serial_omap_console_ports[up->port.line] = up;
drivers/tty/serial/omap-serial.c
1287
static inline void serial_omap_add_console_port(struct uart_omap_port *up)
drivers/tty/serial/omap-serial.c
1297
struct uart_omap_port *up = to_uart_omap_port(port);
drivers/tty/serial/omap-serial.c
1302
mode = up->ier;
drivers/tty/serial/omap-serial.c
1303
up->ier = 0;
drivers/tty/serial/omap-serial.c
1304
serial_out(up, UART_IER, 0);
drivers/tty/serial/omap-serial.c
1310
gpiod_set_value(up->rts_gpiod, val);
drivers/tty/serial/omap-serial.c
1313
up->ier = mode;
drivers/tty/serial/omap-serial.c
1314
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/omap-serial.c
1320
(up->scr & OMAP_UART_SCR_TX_EMPTY)) {
drivers/tty/serial/omap-serial.c
1321
up->scr &= ~OMAP_UART_SCR_TX_EMPTY;
drivers/tty/serial/omap-serial.c
1322
serial_out(up, UART_OMAP_SCR, up->scr);
drivers/tty/serial/omap-serial.c
1365
struct uart_omap_port *up = dev_get_drvdata(dev);
drivers/tty/serial/omap-serial.c
1367
up->is_suspending = true;
drivers/tty/serial/omap-serial.c
1374
struct uart_omap_port *up = dev_get_drvdata(dev);
drivers/tty/serial/omap-serial.c
1376
up->is_suspending = false;
drivers/tty/serial/omap-serial.c
1381
struct uart_omap_port *up = dev_get_drvdata(dev);
drivers/tty/serial/omap-serial.c
1383
uart_suspend_port(&serial_omap_reg, &up->port);
drivers/tty/serial/omap-serial.c
1384
flush_work(&up->qos_work);
drivers/tty/serial/omap-serial.c
1387
serial_omap_enable_wakeup(up, true);
drivers/tty/serial/omap-serial.c
1389
serial_omap_enable_wakeup(up, false);
drivers/tty/serial/omap-serial.c
1396
struct uart_omap_port *up = dev_get_drvdata(dev);
drivers/tty/serial/omap-serial.c
1399
serial_omap_enable_wakeup(up, false);
drivers/tty/serial/omap-serial.c
1401
uart_resume_port(&serial_omap_reg, &up->port);
drivers/tty/serial/omap-serial.c
1410
static void omap_serial_fill_features_erratas(struct uart_omap_port *up)
drivers/tty/serial/omap-serial.c
1415
mvr = readl(up->port.membase + (UART_OMAP_MVER << up->port.regshift));
drivers/tty/serial/omap-serial.c
1435
dev_warn(up->dev,
drivers/tty/serial/omap-serial.c
1437
up->name);
drivers/tty/serial/omap-serial.c
1448
up->errata |= (UART_ERRATA_i202_MDR1_ACCESS |
drivers/tty/serial/omap-serial.c
1452
up->errata |= (UART_ERRATA_i202_MDR1_ACCESS |
drivers/tty/serial/omap-serial.c
1454
up->features |= OMAP_UART_WER_HAS_TX_WAKEUP;
drivers/tty/serial/omap-serial.c
1457
up->errata |= UART_ERRATA_i202_MDR1_ACCESS;
drivers/tty/serial/omap-serial.c
1458
up->features |= OMAP_UART_WER_HAS_TX_WAKEUP;
drivers/tty/serial/omap-serial.c
1488
static int serial_omap_probe_rs485(struct uart_omap_port *up,
drivers/tty/serial/omap-serial.c
1491
struct serial_rs485 *rs485conf = &up->port.rs485;
drivers/tty/serial/omap-serial.c
1497
up->rts_gpiod = NULL;
drivers/tty/serial/omap-serial.c
1502
up->port.rs485_config = serial_omap_config_rs485;
drivers/tty/serial/omap-serial.c
1503
up->port.rs485_supported = serial_omap_rs485_supported;
drivers/tty/serial/omap-serial.c
1505
ret = uart_get_rs485_mode(&up->port);
drivers/tty/serial/omap-serial.c
1520
up->rts_gpiod = devm_gpiod_get_optional(dev, "rts", gflags);
drivers/tty/serial/omap-serial.c
1521
if (IS_ERR(up->rts_gpiod)) {
drivers/tty/serial/omap-serial.c
1522
ret = PTR_ERR(up->rts_gpiod);
drivers/tty/serial/omap-serial.c
1526
up->rts_gpiod = NULL;
drivers/tty/serial/omap-serial.c
1527
up->port.rs485_supported = (const struct serial_rs485) { };
drivers/tty/serial/omap-serial.c
1533
gpiod_set_consumer_name(up->rts_gpiod, "omap-serial");
drivers/tty/serial/omap-serial.c
1542
struct uart_omap_port *up;
drivers/tty/serial/omap-serial.c
1563
up = devm_kzalloc(&pdev->dev, sizeof(*up), GFP_KERNEL);
drivers/tty/serial/omap-serial.c
1564
if (!up)
drivers/tty/serial/omap-serial.c
1571
up->dev = &pdev->dev;
drivers/tty/serial/omap-serial.c
1572
up->port.dev = &pdev->dev;
drivers/tty/serial/omap-serial.c
1573
up->port.type = PORT_OMAP;
drivers/tty/serial/omap-serial.c
1574
up->port.iotype = UPIO_MEM;
drivers/tty/serial/omap-serial.c
1575
up->port.irq = uartirq;
drivers/tty/serial/omap-serial.c
1576
up->port.regshift = 2;
drivers/tty/serial/omap-serial.c
1577
up->port.fifosize = 64;
drivers/tty/serial/omap-serial.c
1578
up->port.ops = &serial_omap_pops;
drivers/tty/serial/omap-serial.c
1579
up->port.has_sysrq = IS_ENABLED(CONFIG_SERIAL_OMAP_CONSOLE);
drivers/tty/serial/omap-serial.c
1591
up->port.line = ret;
drivers/tty/serial/omap-serial.c
1593
if (up->port.line >= OMAP_MAX_HSUART_PORTS) {
drivers/tty/serial/omap-serial.c
1594
dev_err(&pdev->dev, "uart ID %d > MAX %d.\n", up->port.line,
drivers/tty/serial/omap-serial.c
1600
up->wakeirq = wakeirq;
drivers/tty/serial/omap-serial.c
1601
if (!up->wakeirq)
drivers/tty/serial/omap-serial.c
1602
dev_info(up->port.dev, "no wakeirq for uart%d\n",
drivers/tty/serial/omap-serial.c
1603
up->port.line);
drivers/tty/serial/omap-serial.c
1605
sprintf(up->name, "OMAP UART%d", up->port.line);
drivers/tty/serial/omap-serial.c
1606
up->port.mapbase = mem->start;
drivers/tty/serial/omap-serial.c
1607
up->port.membase = base;
drivers/tty/serial/omap-serial.c
1608
up->port.flags = omap_up_info->flags;
drivers/tty/serial/omap-serial.c
1609
up->port.uartclk = omap_up_info->uartclk;
drivers/tty/serial/omap-serial.c
1610
if (!up->port.uartclk) {
drivers/tty/serial/omap-serial.c
1611
up->port.uartclk = DEFAULT_CLK_SPEED;
drivers/tty/serial/omap-serial.c
1617
ret = serial_omap_probe_rs485(up, &pdev->dev);
drivers/tty/serial/omap-serial.c
1621
up->latency = PM_QOS_CPU_LATENCY_DEFAULT_VALUE;
drivers/tty/serial/omap-serial.c
1622
up->calc_latency = PM_QOS_CPU_LATENCY_DEFAULT_VALUE;
drivers/tty/serial/omap-serial.c
1623
cpu_latency_qos_add_request(&up->pm_qos_request, up->latency);
drivers/tty/serial/omap-serial.c
1624
INIT_WORK(&up->qos_work, serial_omap_uart_qos_work);
drivers/tty/serial/omap-serial.c
1626
platform_set_drvdata(pdev, up);
drivers/tty/serial/omap-serial.c
1630
device_init_wakeup(up->dev, true);
drivers/tty/serial/omap-serial.c
1636
omap_serial_fill_features_erratas(up);
drivers/tty/serial/omap-serial.c
1638
ui[up->port.line] = up;
drivers/tty/serial/omap-serial.c
1639
serial_omap_add_console_port(up);
drivers/tty/serial/omap-serial.c
1641
ret = uart_add_one_port(&serial_omap_reg, &up->port);
drivers/tty/serial/omap-serial.c
1650
cpu_latency_qos_remove_request(&up->pm_qos_request);
drivers/tty/serial/omap-serial.c
1651
device_init_wakeup(up->dev, false);
drivers/tty/serial/omap-serial.c
1659
struct uart_omap_port *up = platform_get_drvdata(dev);
drivers/tty/serial/omap-serial.c
1661
pm_runtime_get_sync(up->dev);
drivers/tty/serial/omap-serial.c
1663
uart_remove_one_port(&serial_omap_reg, &up->port);
drivers/tty/serial/omap-serial.c
1665
pm_runtime_put_sync(up->dev);
drivers/tty/serial/omap-serial.c
1666
pm_runtime_disable(up->dev);
drivers/tty/serial/omap-serial.c
1667
cpu_latency_qos_remove_request(&up->pm_qos_request);
drivers/tty/serial/omap-serial.c
1680
static void serial_omap_mdr1_errataset(struct uart_omap_port *up, u8 mdr1)
drivers/tty/serial/omap-serial.c
1684
serial_out(up, UART_OMAP_MDR1, mdr1);
drivers/tty/serial/omap-serial.c
1686
serial_out(up, UART_FCR, up->fcr | UART_FCR_CLEAR_XMIT |
drivers/tty/serial/omap-serial.c
1692
while (UART_LSR_THRE != (serial_in(up, UART_LSR) &
drivers/tty/serial/omap-serial.c
1697
dev_crit(up->dev, "Errata i202: timedout %x\n",
drivers/tty/serial/omap-serial.c
1698
serial_in(up, UART_LSR));
drivers/tty/serial/omap-serial.c
1706
static void serial_omap_restore_context(struct uart_omap_port *up)
drivers/tty/serial/omap-serial.c
1708
if (up->errata & UART_ERRATA_i202_MDR1_ACCESS)
drivers/tty/serial/omap-serial.c
1709
serial_omap_mdr1_errataset(up, UART_OMAP_MDR1_DISABLE);
drivers/tty/serial/omap-serial.c
1711
serial_out(up, UART_OMAP_MDR1, UART_OMAP_MDR1_DISABLE);
drivers/tty/serial/omap-serial.c
1713
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); /* Config B mode */
drivers/tty/serial/omap-serial.c
1714
serial_out(up, UART_EFR, UART_EFR_ECB);
drivers/tty/serial/omap-serial.c
1715
serial_out(up, UART_LCR, 0x0); /* Operational mode */
drivers/tty/serial/omap-serial.c
1716
serial_out(up, UART_IER, 0x0);
drivers/tty/serial/omap-serial.c
1717
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); /* Config B mode */
drivers/tty/serial/omap-serial.c
1718
serial_out(up, UART_DLL, up->dll);
drivers/tty/serial/omap-serial.c
1719
serial_out(up, UART_DLM, up->dlh);
drivers/tty/serial/omap-serial.c
172
static void serial_omap_mdr1_errataset(struct uart_omap_port *up, u8 mdr1);
drivers/tty/serial/omap-serial.c
1720
serial_out(up, UART_LCR, 0x0); /* Operational mode */
drivers/tty/serial/omap-serial.c
1721
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/omap-serial.c
1722
serial_out(up, UART_FCR, up->fcr);
drivers/tty/serial/omap-serial.c
1723
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A);
drivers/tty/serial/omap-serial.c
1724
serial_out(up, UART_MCR, up->mcr);
drivers/tty/serial/omap-serial.c
1725
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); /* Config B mode */
drivers/tty/serial/omap-serial.c
1726
serial_out(up, UART_OMAP_SCR, up->scr);
drivers/tty/serial/omap-serial.c
1727
serial_out(up, UART_EFR, up->efr);
drivers/tty/serial/omap-serial.c
1728
serial_out(up, UART_LCR, up->lcr);
drivers/tty/serial/omap-serial.c
1729
if (up->errata & UART_ERRATA_i202_MDR1_ACCESS)
drivers/tty/serial/omap-serial.c
1730
serial_omap_mdr1_errataset(up, up->mdr1);
drivers/tty/serial/omap-serial.c
1732
serial_out(up, UART_OMAP_MDR1, up->mdr1);
drivers/tty/serial/omap-serial.c
1733
serial_out(up, UART_OMAP_WER, up->wer);
drivers/tty/serial/omap-serial.c
1738
struct uart_omap_port *up = dev_get_drvdata(dev);
drivers/tty/serial/omap-serial.c
174
static inline unsigned int serial_in(struct uart_omap_port *up, int offset)
drivers/tty/serial/omap-serial.c
1740
if (!up)
drivers/tty/serial/omap-serial.c
1749
if (up->is_suspending && !console_suspend_enabled &&
drivers/tty/serial/omap-serial.c
1750
uart_console(&up->port))
drivers/tty/serial/omap-serial.c
1753
up->context_loss_cnt = serial_omap_get_context_loss_count(up);
drivers/tty/serial/omap-serial.c
1755
serial_omap_enable_wakeup(up, true);
drivers/tty/serial/omap-serial.c
1757
up->latency = PM_QOS_CPU_LATENCY_DEFAULT_VALUE;
drivers/tty/serial/omap-serial.c
1758
schedule_work(&up->qos_work);
drivers/tty/serial/omap-serial.c
176
offset <<= up->port.regshift;
drivers/tty/serial/omap-serial.c
1765
struct uart_omap_port *up = dev_get_drvdata(dev);
drivers/tty/serial/omap-serial.c
1767
int loss_cnt = serial_omap_get_context_loss_count(up);
drivers/tty/serial/omap-serial.c
1769
serial_omap_enable_wakeup(up, false);
drivers/tty/serial/omap-serial.c
177
return readw(up->port.membase + offset);
drivers/tty/serial/omap-serial.c
1774
serial_omap_restore_context(up);
drivers/tty/serial/omap-serial.c
1775
} else if (up->context_loss_cnt != loss_cnt) {
drivers/tty/serial/omap-serial.c
1776
serial_omap_restore_context(up);
drivers/tty/serial/omap-serial.c
1778
up->latency = up->calc_latency;
drivers/tty/serial/omap-serial.c
1779
schedule_work(&up->qos_work);
drivers/tty/serial/omap-serial.c
180
static inline void serial_out(struct uart_omap_port *up, int offset, int value)
drivers/tty/serial/omap-serial.c
182
offset <<= up->port.regshift;
drivers/tty/serial/omap-serial.c
183
writew(value, up->port.membase + offset);
drivers/tty/serial/omap-serial.c
186
static inline void serial_omap_clear_fifos(struct uart_omap_port *up)
drivers/tty/serial/omap-serial.c
188
serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO);
drivers/tty/serial/omap-serial.c
189
serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO |
drivers/tty/serial/omap-serial.c
191
serial_out(up, UART_FCR, 0);
drivers/tty/serial/omap-serial.c
195
static int serial_omap_get_context_loss_count(struct uart_omap_port *up)
drivers/tty/serial/omap-serial.c
197
struct omap_uart_port_info *pdata = dev_get_platdata(up->dev);
drivers/tty/serial/omap-serial.c
202
return pdata->get_context_loss_count(up->dev);
drivers/tty/serial/omap-serial.c
206
static void serial_omap_enable_wakeup(struct uart_omap_port *up, bool enable)
drivers/tty/serial/omap-serial.c
208
struct omap_uart_port_info *pdata = dev_get_platdata(up->dev);
drivers/tty/serial/omap-serial.c
213
pdata->enable_wakeup(up->dev, enable);
drivers/tty/serial/omap-serial.c
271
struct uart_omap_port *up = to_uart_omap_port(port);
drivers/tty/serial/omap-serial.c
273
dev_dbg(up->port.dev, "serial_omap_enable_ms+%d\n", up->port.line);
drivers/tty/serial/omap-serial.c
275
up->ier |= UART_IER_MSI;
drivers/tty/serial/omap-serial.c
276
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/omap-serial.c
281
struct uart_omap_port *up = to_uart_omap_port(port);
drivers/tty/serial/omap-serial.c
286
if (up->scr & OMAP_UART_SCR_TX_EMPTY) {
drivers/tty/serial/omap-serial.c
294
up->scr &= ~OMAP_UART_SCR_TX_EMPTY;
drivers/tty/serial/omap-serial.c
295
serial_out(up, UART_OMAP_SCR, up->scr);
drivers/tty/serial/omap-serial.c
298
if (gpiod_get_value(up->rts_gpiod) != res) {
drivers/tty/serial/omap-serial.c
302
gpiod_set_value(up->rts_gpiod, res);
drivers/tty/serial/omap-serial.c
313
up->scr |= OMAP_UART_SCR_TX_EMPTY;
drivers/tty/serial/omap-serial.c
314
serial_out(up, UART_OMAP_SCR, up->scr);
drivers/tty/serial/omap-serial.c
319
if (up->ier & UART_IER_THRI) {
drivers/tty/serial/omap-serial.c
320
up->ier &= ~UART_IER_THRI;
drivers/tty/serial/omap-serial.c
321
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/omap-serial.c
327
struct uart_omap_port *up = to_uart_omap_port(port);
drivers/tty/serial/omap-serial.c
329
up->ier &= ~(UART_IER_RLSI | UART_IER_RDI);
drivers/tty/serial/omap-serial.c
330
up->port.read_status_mask &= ~UART_LSR_DR;
drivers/tty/serial/omap-serial.c
331
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/omap-serial.c
334
static void serial_omap_put_char(struct uart_omap_port *up, unsigned char ch)
drivers/tty/serial/omap-serial.c
336
serial_out(up, UART_TX, ch);
drivers/tty/serial/omap-serial.c
338
if ((up->port.rs485.flags & SER_RS485_ENABLED) &&
drivers/tty/serial/omap-serial.c
339
!(up->port.rs485.flags & SER_RS485_RX_DURING_TX))
drivers/tty/serial/omap-serial.c
340
up->rs485_tx_filter_count++;
drivers/tty/serial/omap-serial.c
343
static void transmit_chars(struct uart_omap_port *up, unsigned int lsr)
drivers/tty/serial/omap-serial.c
347
uart_port_tx_limited(&up->port, ch, up->port.fifosize / 4,
drivers/tty/serial/omap-serial.c
349
serial_omap_put_char(up, ch),
drivers/tty/serial/omap-serial.c
353
static inline void serial_omap_enable_ier_thri(struct uart_omap_port *up)
drivers/tty/serial/omap-serial.c
355
if (!(up->ier & UART_IER_THRI)) {
drivers/tty/serial/omap-serial.c
356
up->ier |= UART_IER_THRI;
drivers/tty/serial/omap-serial.c
357
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/omap-serial.c
363
struct uart_omap_port *up = to_uart_omap_port(port);
drivers/tty/serial/omap-serial.c
369
up->scr &= ~OMAP_UART_SCR_TX_EMPTY;
drivers/tty/serial/omap-serial.c
370
serial_out(up, UART_OMAP_SCR, up->scr);
drivers/tty/serial/omap-serial.c
374
if (gpiod_get_value(up->rts_gpiod) != res) {
drivers/tty/serial/omap-serial.c
375
gpiod_set_value(up->rts_gpiod, res);
drivers/tty/serial/omap-serial.c
383
up->rs485_tx_filter_count = 0;
drivers/tty/serial/omap-serial.c
385
serial_omap_enable_ier_thri(up);
drivers/tty/serial/omap-serial.c
390
struct uart_omap_port *up = to_uart_omap_port(port);
drivers/tty/serial/omap-serial.c
393
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/omap-serial.c
394
up->ier &= ~(UART_IER_RLSI | UART_IER_RDI);
drivers/tty/serial/omap-serial.c
395
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/omap-serial.c
396
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/omap-serial.c
401
struct uart_omap_port *up = to_uart_omap_port(port);
drivers/tty/serial/omap-serial.c
404
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/omap-serial.c
405
up->ier |= UART_IER_RLSI | UART_IER_RDI;
drivers/tty/serial/omap-serial.c
406
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/omap-serial.c
407
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/omap-serial.c
410
static unsigned int check_modem_status(struct uart_omap_port *up)
drivers/tty/serial/omap-serial.c
414
status = serial_in(up, UART_MSR);
drivers/tty/serial/omap-serial.c
415
status |= up->msr_saved_flags;
drivers/tty/serial/omap-serial.c
416
up->msr_saved_flags = 0;
drivers/tty/serial/omap-serial.c
420
if (status & UART_MSR_ANY_DELTA && up->ier & UART_IER_MSI &&
drivers/tty/serial/omap-serial.c
421
up->port.state != NULL) {
drivers/tty/serial/omap-serial.c
423
up->port.icount.rng++;
drivers/tty/serial/omap-serial.c
425
up->port.icount.dsr++;
drivers/tty/serial/omap-serial.c
428
(&up->port, status & UART_MSR_DCD);
drivers/tty/serial/omap-serial.c
431
(&up->port, status & UART_MSR_CTS);
drivers/tty/serial/omap-serial.c
432
wake_up_interruptible(&up->port.state->port.delta_msr_wait);
drivers/tty/serial/omap-serial.c
438
static void serial_omap_rlsi(struct uart_omap_port *up, unsigned int lsr)
drivers/tty/serial/omap-serial.c
447
serial_in(up, UART_RX);
drivers/tty/serial/omap-serial.c
448
if ((up->port.rs485.flags & SER_RS485_ENABLED) &&
drivers/tty/serial/omap-serial.c
449
!(up->port.rs485.flags & SER_RS485_RX_DURING_TX) &&
drivers/tty/serial/omap-serial.c
450
up->rs485_tx_filter_count)
drivers/tty/serial/omap-serial.c
451
up->rs485_tx_filter_count--;
drivers/tty/serial/omap-serial.c
454
up->port.icount.rx++;
drivers/tty/serial/omap-serial.c
460
up->port.icount.brk++;
drivers/tty/serial/omap-serial.c
467
if (uart_handle_break(&up->port))
drivers/tty/serial/omap-serial.c
474
up->port.icount.parity++;
drivers/tty/serial/omap-serial.c
479
up->port.icount.frame++;
drivers/tty/serial/omap-serial.c
483
up->port.icount.overrun++;
drivers/tty/serial/omap-serial.c
486
if (up->port.line == up->port.cons->index) {
drivers/tty/serial/omap-serial.c
488
lsr |= up->lsr_break_flag;
drivers/tty/serial/omap-serial.c
491
uart_insert_char(&up->port, lsr, UART_LSR_OE, 0, flag);
drivers/tty/serial/omap-serial.c
494
static void serial_omap_rdi(struct uart_omap_port *up, unsigned int lsr)
drivers/tty/serial/omap-serial.c
501
ch = serial_in(up, UART_RX);
drivers/tty/serial/omap-serial.c
502
if ((up->port.rs485.flags & SER_RS485_ENABLED) &&
drivers/tty/serial/omap-serial.c
503
!(up->port.rs485.flags & SER_RS485_RX_DURING_TX) &&
drivers/tty/serial/omap-serial.c
504
up->rs485_tx_filter_count) {
drivers/tty/serial/omap-serial.c
505
up->rs485_tx_filter_count--;
drivers/tty/serial/omap-serial.c
509
up->port.icount.rx++;
drivers/tty/serial/omap-serial.c
511
if (uart_prepare_sysrq_char(&up->port, ch))
drivers/tty/serial/omap-serial.c
514
uart_insert_char(&up->port, lsr, UART_LSR_OE, ch, TTY_NORMAL);
drivers/tty/serial/omap-serial.c
524
struct uart_omap_port *up = dev_id;
drivers/tty/serial/omap-serial.c
530
uart_port_lock(&up->port);
drivers/tty/serial/omap-serial.c
533
iir = serial_in(up, UART_IIR);
drivers/tty/serial/omap-serial.c
538
lsr = serial_in(up, UART_LSR);
drivers/tty/serial/omap-serial.c
545
check_modem_status(up);
drivers/tty/serial/omap-serial.c
548
transmit_chars(up, lsr);
drivers/tty/serial/omap-serial.c
552
serial_omap_rdi(up, lsr);
drivers/tty/serial/omap-serial.c
555
serial_omap_rlsi(up, lsr);
drivers/tty/serial/omap-serial.c
566
uart_unlock_and_check_sysrq(&up->port);
drivers/tty/serial/omap-serial.c
568
tty_flip_buffer_push(&up->port.state->port);
drivers/tty/serial/omap-serial.c
570
up->port_activity = jiffies;
drivers/tty/serial/omap-serial.c
577
struct uart_omap_port *up = to_uart_omap_port(port);
drivers/tty/serial/omap-serial.c
581
dev_dbg(up->port.dev, "serial_omap_tx_empty+%d\n", up->port.line);
drivers/tty/serial/omap-serial.c
582
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/omap-serial.c
583
ret = serial_in(up, UART_LSR) & UART_LSR_TEMT ? TIOCSER_TEMT : 0;
drivers/tty/serial/omap-serial.c
584
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/omap-serial.c
591
struct uart_omap_port *up = to_uart_omap_port(port);
drivers/tty/serial/omap-serial.c
595
status = check_modem_status(up);
drivers/tty/serial/omap-serial.c
597
dev_dbg(up->port.dev, "serial_omap_get_mctrl+%d\n", up->port.line);
drivers/tty/serial/omap-serial.c
612
struct uart_omap_port *up = to_uart_omap_port(port);
drivers/tty/serial/omap-serial.c
615
dev_dbg(up->port.dev, "serial_omap_set_mctrl+%d\n", up->port.line);
drivers/tty/serial/omap-serial.c
627
old_mcr = serial_in(up, UART_MCR);
drivers/tty/serial/omap-serial.c
630
up->mcr = old_mcr | mcr;
drivers/tty/serial/omap-serial.c
631
serial_out(up, UART_MCR, up->mcr);
drivers/tty/serial/omap-serial.c
634
lcr = serial_in(up, UART_LCR);
drivers/tty/serial/omap-serial.c
635
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/omap-serial.c
637
up->efr |= UART_EFR_RTS;
drivers/tty/serial/omap-serial.c
639
up->efr &= ~UART_EFR_RTS;
drivers/tty/serial/omap-serial.c
640
serial_out(up, UART_EFR, up->efr);
drivers/tty/serial/omap-serial.c
641
serial_out(up, UART_LCR, lcr);
drivers/tty/serial/omap-serial.c
646
struct uart_omap_port *up = to_uart_omap_port(port);
drivers/tty/serial/omap-serial.c
649
dev_dbg(up->port.dev, "serial_omap_break_ctl+%d\n", up->port.line);
drivers/tty/serial/omap-serial.c
650
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/omap-serial.c
652
up->lcr |= UART_LCR_SBC;
drivers/tty/serial/omap-serial.c
654
up->lcr &= ~UART_LCR_SBC;
drivers/tty/serial/omap-serial.c
655
serial_out(up, UART_LCR, up->lcr);
drivers/tty/serial/omap-serial.c
656
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/omap-serial.c
661
struct uart_omap_port *up = to_uart_omap_port(port);
drivers/tty/serial/omap-serial.c
668
retval = request_irq(up->port.irq, serial_omap_irq, up->port.irqflags,
drivers/tty/serial/omap-serial.c
669
up->name, up);
drivers/tty/serial/omap-serial.c
674
if (up->wakeirq) {
drivers/tty/serial/omap-serial.c
675
retval = dev_pm_set_dedicated_wake_irq(up->dev, up->wakeirq);
drivers/tty/serial/omap-serial.c
677
free_irq(up->port.irq, up);
drivers/tty/serial/omap-serial.c
682
dev_dbg(up->port.dev, "serial_omap_startup+%d\n", up->port.line);
drivers/tty/serial/omap-serial.c
684
pm_runtime_get_sync(up->dev);
drivers/tty/serial/omap-serial.c
689
serial_omap_clear_fifos(up);
drivers/tty/serial/omap-serial.c
694
(void) serial_in(up, UART_LSR);
drivers/tty/serial/omap-serial.c
695
if (serial_in(up, UART_LSR) & UART_LSR_DR)
drivers/tty/serial/omap-serial.c
696
(void) serial_in(up, UART_RX);
drivers/tty/serial/omap-serial.c
697
(void) serial_in(up, UART_IIR);
drivers/tty/serial/omap-serial.c
698
(void) serial_in(up, UART_MSR);
drivers/tty/serial/omap-serial.c
703
serial_out(up, UART_LCR, UART_LCR_WLEN8);
drivers/tty/serial/omap-serial.c
704
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/omap-serial.c
708
up->port.mctrl |= TIOCM_OUT2;
drivers/tty/serial/omap-serial.c
709
serial_omap_set_mctrl(&up->port, up->port.mctrl);
drivers/tty/serial/omap-serial.c
710
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/omap-serial.c
712
up->msr_saved_flags = 0;
drivers/tty/serial/omap-serial.c
718
up->ier = UART_IER_RLSI | UART_IER_RDI;
drivers/tty/serial/omap-serial.c
719
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/omap-serial.c
722
up->wer = OMAP_UART_WER_MOD_WKUP;
drivers/tty/serial/omap-serial.c
723
if (up->features & OMAP_UART_WER_HAS_TX_WAKEUP)
drivers/tty/serial/omap-serial.c
724
up->wer |= OMAP_UART_TX_WAKEUP_EN;
drivers/tty/serial/omap-serial.c
726
serial_out(up, UART_OMAP_WER, up->wer);
drivers/tty/serial/omap-serial.c
728
up->port_activity = jiffies;
drivers/tty/serial/omap-serial.c
734
struct uart_omap_port *up = to_uart_omap_port(port);
drivers/tty/serial/omap-serial.c
737
dev_dbg(up->port.dev, "serial_omap_shutdown+%d\n", up->port.line);
drivers/tty/serial/omap-serial.c
742
up->ier = 0;
drivers/tty/serial/omap-serial.c
743
serial_out(up, UART_IER, 0);
drivers/tty/serial/omap-serial.c
745
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/omap-serial.c
746
up->port.mctrl &= ~TIOCM_OUT2;
drivers/tty/serial/omap-serial.c
747
serial_omap_set_mctrl(&up->port, up->port.mctrl);
drivers/tty/serial/omap-serial.c
748
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/omap-serial.c
753
serial_out(up, UART_LCR, serial_in(up, UART_LCR) & ~UART_LCR_SBC);
drivers/tty/serial/omap-serial.c
754
serial_omap_clear_fifos(up);
drivers/tty/serial/omap-serial.c
759
if (serial_in(up, UART_LSR) & UART_LSR_DR)
drivers/tty/serial/omap-serial.c
760
(void) serial_in(up, UART_RX);
drivers/tty/serial/omap-serial.c
762
pm_runtime_put_sync(up->dev);
drivers/tty/serial/omap-serial.c
763
free_irq(up->port.irq, up);
drivers/tty/serial/omap-serial.c
764
dev_pm_clear_wake_irq(up->dev);
drivers/tty/serial/omap-serial.c
769
struct uart_omap_port *up = container_of(work, struct uart_omap_port,
drivers/tty/serial/omap-serial.c
772
cpu_latency_qos_update_request(&up->pm_qos_request, up->latency);
drivers/tty/serial/omap-serial.c
779
struct uart_omap_port *up = to_uart_omap_port(port);
drivers/tty/serial/omap-serial.c
803
up->calc_latency = (USEC_PER_SEC * up->port.fifosize) / (baud / 8);
drivers/tty/serial/omap-serial.c
804
up->latency = up->calc_latency;
drivers/tty/serial/omap-serial.c
805
schedule_work(&up->qos_work);
drivers/tty/serial/omap-serial.c
807
up->dll = quot & 0xff;
drivers/tty/serial/omap-serial.c
808
up->dlh = quot >> 8;
drivers/tty/serial/omap-serial.c
809
up->mdr1 = UART_OMAP_MDR1_DISABLE;
drivers/tty/serial/omap-serial.c
811
up->fcr = UART_FCR_R_TRIG_01 | UART_FCR_T_TRIG_01 |
drivers/tty/serial/omap-serial.c
818
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/omap-serial.c
825
up->port.read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR;
drivers/tty/serial/omap-serial.c
827
up->port.read_status_mask |= UART_LSR_FE | UART_LSR_PE;
drivers/tty/serial/omap-serial.c
829
up->port.read_status_mask |= UART_LSR_BI;
drivers/tty/serial/omap-serial.c
834
up->port.ignore_status_mask = 0;
drivers/tty/serial/omap-serial.c
836
up->port.ignore_status_mask |= UART_LSR_PE | UART_LSR_FE;
drivers/tty/serial/omap-serial.c
838
up->port.ignore_status_mask |= UART_LSR_BI;
drivers/tty/serial/omap-serial.c
844
up->port.ignore_status_mask |= UART_LSR_OE;
drivers/tty/serial/omap-serial.c
851
up->port.ignore_status_mask |= UART_LSR_DR;
drivers/tty/serial/omap-serial.c
856
up->ier &= ~UART_IER_MSI;
drivers/tty/serial/omap-serial.c
857
if (UART_ENABLE_MS(&up->port, termios->c_cflag))
drivers/tty/serial/omap-serial.c
858
up->ier |= UART_IER_MSI;
drivers/tty/serial/omap-serial.c
859
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/omap-serial.c
860
serial_out(up, UART_LCR, cval); /* reset DLAB */
drivers/tty/serial/omap-serial.c
861
up->lcr = cval;
drivers/tty/serial/omap-serial.c
862
up->scr = 0;
drivers/tty/serial/omap-serial.c
870
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A);
drivers/tty/serial/omap-serial.c
871
serial_out(up, UART_DLL, 0);
drivers/tty/serial/omap-serial.c
872
serial_out(up, UART_DLM, 0);
drivers/tty/serial/omap-serial.c
873
serial_out(up, UART_LCR, 0);
drivers/tty/serial/omap-serial.c
875
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/omap-serial.c
877
up->efr = serial_in(up, UART_EFR) & ~UART_EFR_ECB;
drivers/tty/serial/omap-serial.c
878
up->efr &= ~UART_EFR_SCD;
drivers/tty/serial/omap-serial.c
879
serial_out(up, UART_EFR, up->efr | UART_EFR_ECB);
drivers/tty/serial/omap-serial.c
881
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A);
drivers/tty/serial/omap-serial.c
882
up->mcr = serial_in(up, UART_MCR) & ~UART_MCR_TCRTLR;
drivers/tty/serial/omap-serial.c
883
serial_out(up, UART_MCR, up->mcr | UART_MCR_TCRTLR);
drivers/tty/serial/omap-serial.c
886
up->scr |= OMAP_UART_SCR_RX_TRIG_GRANU1_MASK;
drivers/tty/serial/omap-serial.c
900
up->fcr &= ~OMAP_UART_FCR_RX_FIFO_TRIG_MASK;
drivers/tty/serial/omap-serial.c
901
up->fcr &= ~OMAP_UART_FCR_TX_FIFO_TRIG_MASK;
drivers/tty/serial/omap-serial.c
902
up->fcr |= UART_FCR6_R_TRIGGER_16 | UART_FCR6_T_TRIGGER_24 |
drivers/tty/serial/omap-serial.c
905
serial_out(up, UART_FCR, up->fcr);
drivers/tty/serial/omap-serial.c
906
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/omap-serial.c
908
serial_out(up, UART_OMAP_SCR, up->scr);
drivers/tty/serial/omap-serial.c
911
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A);
drivers/tty/serial/omap-serial.c
912
serial_out(up, UART_MCR, up->mcr);
drivers/tty/serial/omap-serial.c
913
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/omap-serial.c
914
serial_out(up, UART_EFR, up->efr);
drivers/tty/serial/omap-serial.c
915
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A);
drivers/tty/serial/omap-serial.c
919
if (up->errata & UART_ERRATA_i202_MDR1_ACCESS)
drivers/tty/serial/omap-serial.c
920
serial_omap_mdr1_errataset(up, up->mdr1);
drivers/tty/serial/omap-serial.c
922
serial_out(up, UART_OMAP_MDR1, up->mdr1);
drivers/tty/serial/omap-serial.c
924
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/omap-serial.c
925
serial_out(up, UART_EFR, up->efr | UART_EFR_ECB);
drivers/tty/serial/omap-serial.c
927
serial_out(up, UART_LCR, 0);
drivers/tty/serial/omap-serial.c
928
serial_out(up, UART_IER, 0);
drivers/tty/serial/omap-serial.c
929
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/omap-serial.c
931
serial_out(up, UART_DLL, up->dll); /* LS of divisor */
drivers/tty/serial/omap-serial.c
932
serial_out(up, UART_DLM, up->dlh); /* MS of divisor */
drivers/tty/serial/omap-serial.c
934
serial_out(up, UART_LCR, 0);
drivers/tty/serial/omap-serial.c
935
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/omap-serial.c
936
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/omap-serial.c
938
serial_out(up, UART_EFR, up->efr);
drivers/tty/serial/omap-serial.c
939
serial_out(up, UART_LCR, cval);
drivers/tty/serial/omap-serial.c
942
up->mdr1 = UART_OMAP_MDR1_13X_MODE;
drivers/tty/serial/omap-serial.c
944
up->mdr1 = UART_OMAP_MDR1_16X_MODE;
drivers/tty/serial/omap-serial.c
946
if (up->errata & UART_ERRATA_i202_MDR1_ACCESS)
drivers/tty/serial/omap-serial.c
947
serial_omap_mdr1_errataset(up, up->mdr1);
drivers/tty/serial/omap-serial.c
949
serial_out(up, UART_OMAP_MDR1, up->mdr1);
drivers/tty/serial/omap-serial.c
952
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
drivers/tty/serial/omap-serial.c
955
serial_out(up, UART_XON1, termios->c_cc[VSTART]);
drivers/tty/serial/omap-serial.c
956
serial_out(up, UART_XOFF1, termios->c_cc[VSTOP]);
drivers/tty/serial/omap-serial.c
959
serial_out(up, UART_EFR, up->efr | UART_EFR_ECB);
drivers/tty/serial/omap-serial.c
960
serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A);
drivers/tty/serial/omap-serial.c
961
serial_out(up, UART_MCR, up->mcr | UART_MCR_TCRTLR);
drivers/tty/serial/omap-serial.c
963
serial_out(up, UART_TI752_TCR, OMAP_UART_TCR_TRIG);
drivers/tty/serial/omap-serial.c
965
up->port.status &= ~(UPSTAT_AUTOCTS | UPSTAT_AUTORTS | UPSTAT_AUTOXOFF);
drivers/tty/serial/omap-serial.c
967
if (termios->c_cflag & CRTSCTS && up->port.flags & UPF_HARD_FLOW) {
drivers/tty/serial/omap-serial.c
969
up->port.status |= UPSTAT_AUTOCTS | UPSTAT_AUTORTS;
drivers/tty/serial/omap-serial.c
970
up->efr |= UART_EFR_CTS;
drivers/tty/serial/omap-serial.c
973
up->efr &= ~(UART_EFR_CTS | UART_EFR_RTS);
drivers/tty/serial/omap-serial.c
976
if (up->port.flags & UPF_SOFT_FLOW) {
drivers/tty/serial/omap-serial.c
978
up->efr &= OMAP_UART_SW_CLR;
drivers/tty/serial/omap-serial.c
986
up->efr |= OMAP_UART_SW_RX;
drivers/tty/serial/omap-serial.c
994
up->port.status |= UPSTAT_AUTOXOFF;
drivers/tty/serial/omap-serial.c
995
up->efr |= OMAP_UART_SW_TX;
drivers/tty/serial/pch_uart.c
1431
static void wait_for_xmitr(struct eg20t_port *up, int bits)
drivers/tty/serial/pch_uart.c
1437
status = ioread8(up->membase + UART_LSR);
drivers/tty/serial/pch_uart.c
1447
if (up->port.flags & UPF_CONS_FLOW) {
drivers/tty/serial/pch_uart.c
1450
unsigned int msr = ioread8(up->membase + UART_MSR);
drivers/tty/serial/pxa.c
104
up->ier &= ~UART_IER_RTOIE;
drivers/tty/serial/pxa.c
105
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/pxa.c
107
ch = serial_in(up, UART_RX);
drivers/tty/serial/pxa.c
109
up->port.icount.rx++;
drivers/tty/serial/pxa.c
118
up->port.icount.brk++;
drivers/tty/serial/pxa.c
125
if (uart_handle_break(&up->port))
drivers/tty/serial/pxa.c
128
up->port.icount.parity++;
drivers/tty/serial/pxa.c
130
up->port.icount.frame++;
drivers/tty/serial/pxa.c
132
up->port.icount.overrun++;
drivers/tty/serial/pxa.c
137
*status &= up->port.read_status_mask;
drivers/tty/serial/pxa.c
140
if (up->port.line == up->port.cons->index) {
drivers/tty/serial/pxa.c
142
*status |= up->lsr_break_flag;
drivers/tty/serial/pxa.c
143
up->lsr_break_flag = 0;
drivers/tty/serial/pxa.c
154
if (uart_prepare_sysrq_char(&up->port, ch))
drivers/tty/serial/pxa.c
157
uart_insert_char(&up->port, *status, UART_LSR_OE, ch, flag);
drivers/tty/serial/pxa.c
160
*status = serial_in(up, UART_LSR);
drivers/tty/serial/pxa.c
162
tty_flip_buffer_push(&up->port.state->port);
drivers/tty/serial/pxa.c
171
up->ier |= UART_IER_RTOIE;
drivers/tty/serial/pxa.c
172
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/pxa.c
175
static void transmit_chars(struct uart_pxa_port *up)
drivers/tty/serial/pxa.c
179
uart_port_tx_limited(&up->port, ch, up->port.fifosize / 2,
drivers/tty/serial/pxa.c
181
serial_out(up, UART_TX, ch),
drivers/tty/serial/pxa.c
187
struct uart_pxa_port *up = (struct uart_pxa_port *)port;
drivers/tty/serial/pxa.c
189
if (!(up->ier & UART_IER_THRI)) {
drivers/tty/serial/pxa.c
190
up->ier |= UART_IER_THRI;
drivers/tty/serial/pxa.c
191
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/pxa.c
196
static inline void check_modem_status(struct uart_pxa_port *up)
drivers/tty/serial/pxa.c
200
status = serial_in(up, UART_MSR);
drivers/tty/serial/pxa.c
206
up->port.icount.rng++;
drivers/tty/serial/pxa.c
208
up->port.icount.dsr++;
drivers/tty/serial/pxa.c
210
uart_handle_dcd_change(&up->port, status & UART_MSR_DCD);
drivers/tty/serial/pxa.c
212
uart_handle_cts_change(&up->port, status & UART_MSR_CTS);
drivers/tty/serial/pxa.c
214
wake_up_interruptible(&up->port.state->port.delta_msr_wait);
drivers/tty/serial/pxa.c
222
struct uart_pxa_port *up = dev_id;
drivers/tty/serial/pxa.c
225
iir = serial_in(up, UART_IIR);
drivers/tty/serial/pxa.c
228
uart_port_lock(&up->port);
drivers/tty/serial/pxa.c
229
lsr = serial_in(up, UART_LSR);
drivers/tty/serial/pxa.c
231
receive_chars(up, &lsr);
drivers/tty/serial/pxa.c
232
check_modem_status(up);
drivers/tty/serial/pxa.c
234
transmit_chars(up);
drivers/tty/serial/pxa.c
235
uart_unlock_and_check_sysrq(&up->port);
drivers/tty/serial/pxa.c
241
struct uart_pxa_port *up = (struct uart_pxa_port *)port;
drivers/tty/serial/pxa.c
245
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/pxa.c
246
ret = serial_in(up, UART_LSR) & UART_LSR_TEMT ? TIOCSER_TEMT : 0;
drivers/tty/serial/pxa.c
247
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/pxa.c
254
struct uart_pxa_port *up = (struct uart_pxa_port *)port;
drivers/tty/serial/pxa.c
258
status = serial_in(up, UART_MSR);
drivers/tty/serial/pxa.c
274
struct uart_pxa_port *up = (struct uart_pxa_port *)port;
drivers/tty/serial/pxa.c
288
mcr |= up->mcr;
drivers/tty/serial/pxa.c
290
serial_out(up, UART_MCR, mcr);
drivers/tty/serial/pxa.c
295
struct uart_pxa_port *up = (struct uart_pxa_port *)port;
drivers/tty/serial/pxa.c
298
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/pxa.c
300
up->lcr |= UART_LCR_SBC;
drivers/tty/serial/pxa.c
302
up->lcr &= ~UART_LCR_SBC;
drivers/tty/serial/pxa.c
303
serial_out(up, UART_LCR, up->lcr);
drivers/tty/serial/pxa.c
304
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/pxa.c
309
struct uart_pxa_port *up = (struct uart_pxa_port *)port;
drivers/tty/serial/pxa.c
314
up->mcr |= UART_MCR_AFE;
drivers/tty/serial/pxa.c
316
up->mcr = 0;
drivers/tty/serial/pxa.c
318
up->port.uartclk = clk_get_rate(up->clk);
drivers/tty/serial/pxa.c
323
retval = request_irq(up->port.irq, serial_pxa_irq, 0, up->name, up);
drivers/tty/serial/pxa.c
331
serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO);
drivers/tty/serial/pxa.c
332
serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO |
drivers/tty/serial/pxa.c
334
serial_out(up, UART_FCR, 0);
drivers/tty/serial/pxa.c
339
(void) serial_in(up, UART_LSR);
drivers/tty/serial/pxa.c
340
(void) serial_in(up, UART_RX);
drivers/tty/serial/pxa.c
341
(void) serial_in(up, UART_IIR);
drivers/tty/serial/pxa.c
342
(void) serial_in(up, UART_MSR);
drivers/tty/serial/pxa.c
347
serial_out(up, UART_LCR, UART_LCR_WLEN8);
drivers/tty/serial/pxa.c
349
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/pxa.c
350
up->port.mctrl |= TIOCM_OUT2;
drivers/tty/serial/pxa.c
351
serial_pxa_set_mctrl(&up->port, up->port.mctrl);
drivers/tty/serial/pxa.c
352
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/pxa.c
359
up->ier = UART_IER_RLSI | UART_IER_RDI | UART_IER_RTOIE | UART_IER_UUE;
drivers/tty/serial/pxa.c
360
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/pxa.c
365
(void) serial_in(up, UART_LSR);
drivers/tty/serial/pxa.c
366
(void) serial_in(up, UART_RX);
drivers/tty/serial/pxa.c
367
(void) serial_in(up, UART_IIR);
drivers/tty/serial/pxa.c
368
(void) serial_in(up, UART_MSR);
drivers/tty/serial/pxa.c
375
struct uart_pxa_port *up = (struct uart_pxa_port *)port;
drivers/tty/serial/pxa.c
378
free_irq(up->port.irq, up);
drivers/tty/serial/pxa.c
383
up->ier = 0;
drivers/tty/serial/pxa.c
384
serial_out(up, UART_IER, 0);
drivers/tty/serial/pxa.c
386
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/pxa.c
387
up->port.mctrl &= ~TIOCM_OUT2;
drivers/tty/serial/pxa.c
388
serial_pxa_set_mctrl(&up->port, up->port.mctrl);
drivers/tty/serial/pxa.c
389
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/pxa.c
394
serial_out(up, UART_LCR, serial_in(up, UART_LCR) & ~UART_LCR_SBC);
drivers/tty/serial/pxa.c
395
serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO |
drivers/tty/serial/pxa.c
398
serial_out(up, UART_FCR, 0);
drivers/tty/serial/pxa.c
405
struct uart_pxa_port *up = (struct uart_pxa_port *)port;
drivers/tty/serial/pxa.c
426
if ((up->port.uartclk / quot) < (2400 * 16))
drivers/tty/serial/pxa.c
428
else if ((up->port.uartclk / quot) < (230400 * 16))
drivers/tty/serial/pxa.c
437
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/pxa.c
443
up->ier |= UART_IER_UUE;
drivers/tty/serial/pxa.c
450
up->port.read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR;
drivers/tty/serial/pxa.c
452
up->port.read_status_mask |= UART_LSR_FE | UART_LSR_PE;
drivers/tty/serial/pxa.c
454
up->port.read_status_mask |= UART_LSR_BI;
drivers/tty/serial/pxa.c
459
up->port.ignore_status_mask = 0;
drivers/tty/serial/pxa.c
461
up->port.ignore_status_mask |= UART_LSR_PE | UART_LSR_FE;
drivers/tty/serial/pxa.c
463
up->port.ignore_status_mask |= UART_LSR_BI;
drivers/tty/serial/pxa.c
469
up->port.ignore_status_mask |= UART_LSR_OE;
drivers/tty/serial/pxa.c
476
up->port.ignore_status_mask |= UART_LSR_DR;
drivers/tty/serial/pxa.c
481
up->ier &= ~UART_IER_MSI;
drivers/tty/serial/pxa.c
482
if (UART_ENABLE_MS(&up->port, termios->c_cflag))
drivers/tty/serial/pxa.c
483
up->ier |= UART_IER_MSI;
drivers/tty/serial/pxa.c
485
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/pxa.c
488
up->mcr |= UART_MCR_AFE;
drivers/tty/serial/pxa.c
490
up->mcr &= ~UART_MCR_AFE;
drivers/tty/serial/pxa.c
492
serial_out(up, UART_LCR, cval | UART_LCR_DLAB); /* set DLAB */
drivers/tty/serial/pxa.c
493
serial_out(up, UART_DLL, quot & 0xff); /* LS of divisor */
drivers/tty/serial/pxa.c
499
dll = serial_in(up, UART_DLL);
drivers/tty/serial/pxa.c
502
serial_out(up, UART_DLM, quot >> 8); /* MS of divisor */
drivers/tty/serial/pxa.c
503
serial_out(up, UART_LCR, cval); /* reset DLAB */
drivers/tty/serial/pxa.c
504
up->lcr = cval; /* Save LCR */
drivers/tty/serial/pxa.c
505
serial_pxa_set_mctrl(&up->port, up->port.mctrl);
drivers/tty/serial/pxa.c
506
serial_out(up, UART_FCR, fcr);
drivers/tty/serial/pxa.c
507
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/pxa.c
514
struct uart_pxa_port *up = (struct uart_pxa_port *)port;
drivers/tty/serial/pxa.c
517
clk_prepare_enable(up->clk);
drivers/tty/serial/pxa.c
519
clk_disable_unprepare(up->clk);
drivers/tty/serial/pxa.c
52
static inline unsigned int serial_in(struct uart_pxa_port *up, int offset)
drivers/tty/serial/pxa.c
533
struct uart_pxa_port *up = (struct uart_pxa_port *)port;
drivers/tty/serial/pxa.c
534
up->port.type = PORT_PXA;
drivers/tty/serial/pxa.c
547
struct uart_pxa_port *up = (struct uart_pxa_port *)port;
drivers/tty/serial/pxa.c
548
return up->name;
drivers/tty/serial/pxa.c
55
return readl(up->port.membase + offset);
drivers/tty/serial/pxa.c
559
static void wait_for_xmitr(struct uart_pxa_port *up)
drivers/tty/serial/pxa.c
565
status = serial_in(up, UART_LSR);
drivers/tty/serial/pxa.c
568
up->lsr_break_flag = UART_LSR_BI;
drivers/tty/serial/pxa.c
576
if (up->port.flags & UPF_CONS_FLOW) {
drivers/tty/serial/pxa.c
579
((serial_in(up, UART_MSR) & UART_MSR_CTS) == 0))
drivers/tty/serial/pxa.c
58
static inline void serial_out(struct uart_pxa_port *up, int offset, int value)
drivers/tty/serial/pxa.c
586
struct uart_pxa_port *up = (struct uart_pxa_port *)port;
drivers/tty/serial/pxa.c
588
wait_for_xmitr(up);
drivers/tty/serial/pxa.c
589
serial_out(up, UART_TX, ch);
drivers/tty/serial/pxa.c
601
struct uart_pxa_port *up = serial_pxa_ports[co->index];
drivers/tty/serial/pxa.c
606
clk_enable(up->clk);
drivers/tty/serial/pxa.c
608
locked = uart_port_trylock_irqsave(&up->port, &flags);
drivers/tty/serial/pxa.c
61
writel(value, up->port.membase + offset);
drivers/tty/serial/pxa.c
610
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/pxa.c
615
ier = serial_in(up, UART_IER);
drivers/tty/serial/pxa.c
616
serial_out(up, UART_IER, UART_IER_UUE);
drivers/tty/serial/pxa.c
618
uart_console_write(&up->port, s, count, serial_pxa_console_putchar);
drivers/tty/serial/pxa.c
624
wait_for_xmitr(up);
drivers/tty/serial/pxa.c
625
serial_out(up, UART_IER, ier);
drivers/tty/serial/pxa.c
628
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/pxa.c
629
clk_disable(up->clk);
drivers/tty/serial/pxa.c
640
struct uart_pxa_port *up = (struct uart_pxa_port *)port;
drivers/tty/serial/pxa.c
641
unsigned char lsr = serial_in(up, UART_LSR);
drivers/tty/serial/pxa.c
644
lsr = serial_in(up, UART_LSR);
drivers/tty/serial/pxa.c
646
return serial_in(up, UART_RX);
drivers/tty/serial/pxa.c
654
struct uart_pxa_port *up = (struct uart_pxa_port *)port;
drivers/tty/serial/pxa.c
659
ier = serial_in(up, UART_IER);
drivers/tty/serial/pxa.c
66
struct uart_pxa_port *up = (struct uart_pxa_port *)port;
drivers/tty/serial/pxa.c
660
serial_out(up, UART_IER, UART_IER_UUE);
drivers/tty/serial/pxa.c
662
wait_for_xmitr(up);
drivers/tty/serial/pxa.c
666
serial_out(up, UART_TX, c);
drivers/tty/serial/pxa.c
672
wait_for_xmitr(up);
drivers/tty/serial/pxa.c
673
serial_out(up, UART_IER, ier);
drivers/tty/serial/pxa.c
68
up->ier |= UART_IER_MSI;
drivers/tty/serial/pxa.c
681
struct uart_pxa_port *up;
drivers/tty/serial/pxa.c
689
up = serial_pxa_ports[co->index];
drivers/tty/serial/pxa.c
69
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/pxa.c
690
if (!up)
drivers/tty/serial/pxa.c
696
return uart_set_options(&up->port, co, baud, parity, bits, flow);
drivers/tty/serial/pxa.c
74
struct uart_pxa_port *up = (struct uart_pxa_port *)port;
drivers/tty/serial/pxa.c
76
if (up->ier & UART_IER_THRI) {
drivers/tty/serial/pxa.c
77
up->ier &= ~UART_IER_THRI;
drivers/tty/serial/pxa.c
78
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/pxa.c
84
struct uart_pxa_port *up = (struct uart_pxa_port *)port;
drivers/tty/serial/pxa.c
86
up->ier &= ~UART_IER_RLSI;
drivers/tty/serial/pxa.c
87
up->port.read_status_mask &= ~UART_LSR_DR;
drivers/tty/serial/pxa.c
88
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/pxa.c
91
static inline void receive_chars(struct uart_pxa_port *up, int *status)
drivers/tty/serial/rp2.c
232
static void rp2_rmw(struct rp2_uart_port *up, int reg,
drivers/tty/serial/rp2.c
235
u32 tmp = readl(up->base + reg);
drivers/tty/serial/rp2.c
238
writel(tmp, up->base + reg);
drivers/tty/serial/rp2.c
241
static void rp2_rmw_clr(struct rp2_uart_port *up, int reg, u32 val)
drivers/tty/serial/rp2.c
243
rp2_rmw(up, reg, val, 0);
drivers/tty/serial/rp2.c
246
static void rp2_rmw_set(struct rp2_uart_port *up, int reg, u32 val)
drivers/tty/serial/rp2.c
248
rp2_rmw(up, reg, 0, val);
drivers/tty/serial/rp2.c
251
static void rp2_mask_ch_irq(struct rp2_uart_port *up, int ch_num,
drivers/tty/serial/rp2.c
256
spin_lock_irqsave(&up->card->card_lock, flags);
drivers/tty/serial/rp2.c
258
irq_mask = readl(up->asic_base + RP2_CH_IRQ_MASK);
drivers/tty/serial/rp2.c
263
writel(irq_mask, up->asic_base + RP2_CH_IRQ_MASK);
drivers/tty/serial/rp2.c
265
spin_unlock_irqrestore(&up->card->card_lock, flags);
drivers/tty/serial/rp2.c
270
struct rp2_uart_port *up = port_to_up(port);
drivers/tty/serial/rp2.c
278
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/rp2.c
279
tx_fifo_bytes = readw(up->base + RP2_TX_FIFO_COUNT);
drivers/tty/serial/rp2.c
280
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/rp2.c
287
struct rp2_uart_port *up = port_to_up(port);
drivers/tty/serial/rp2.c
290
status = readl(up->base + RP2_CHAN_STAT);
drivers/tty/serial/rp2.c
336
static void __rp2_uart_set_termios(struct rp2_uart_port *up,
drivers/tty/serial/rp2.c
342
writew(baud_div - 1, up->base + RP2_BAUD);
drivers/tty/serial/rp2.c
345
rp2_rmw(up, RP2_UART_CTL,
drivers/tty/serial/rp2.c
354
rp2_rmw(up, RP2_TXRX_CTL,
drivers/tty/serial/rp2.c
367
up->ucode + RP2_TX_SWFLOW);
drivers/tty/serial/rp2.c
369
up->ucode + RP2_RX_SWFLOW);
drivers/tty/serial/rp2.c
375
struct rp2_uart_port *up = port_to_up(port);
drivers/tty/serial/rp2.c
390
__rp2_uart_set_termios(up, new->c_cflag, new->c_iflag, baud_div);
drivers/tty/serial/rp2.c
396
static void rp2_rx_chars(struct rp2_uart_port *up)
drivers/tty/serial/rp2.c
398
u16 bytes = readw(up->base + RP2_RX_FIFO_COUNT);
drivers/tty/serial/rp2.c
399
struct tty_port *port = &up->port.state->port;
drivers/tty/serial/rp2.c
402
u32 byte = readw(up->base + RP2_DATA_BYTE) | RP2_DUMMY_READ;
drivers/tty/serial/rp2.c
406
if (!uart_handle_sysrq_char(&up->port, ch))
drivers/tty/serial/rp2.c
407
uart_insert_char(&up->port, byte, 0, ch,
drivers/tty/serial/rp2.c
418
uart_insert_char(&up->port, byte,
drivers/tty/serial/rp2.c
421
up->port.icount.rx++;
drivers/tty/serial/rp2.c
427
static void rp2_tx_chars(struct rp2_uart_port *up)
drivers/tty/serial/rp2.c
431
uart_port_tx_limited(&up->port, ch,
drivers/tty/serial/rp2.c
432
FIFO_SIZE - readw(up->base + RP2_TX_FIFO_COUNT),
drivers/tty/serial/rp2.c
434
writeb(ch, up->base + RP2_DATA_BYTE),
drivers/tty/serial/rp2.c
438
static void rp2_ch_interrupt(struct rp2_uart_port *up)
drivers/tty/serial/rp2.c
442
uart_port_lock(&up->port);
drivers/tty/serial/rp2.c
448
status = readl(up->base + RP2_CHAN_STAT);
drivers/tty/serial/rp2.c
449
writel(status, up->base + RP2_CHAN_STAT);
drivers/tty/serial/rp2.c
452
rp2_rx_chars(up);
drivers/tty/serial/rp2.c
454
rp2_tx_chars(up);
drivers/tty/serial/rp2.c
456
wake_up_interruptible(&up->port.state->port.delta_msr_wait);
drivers/tty/serial/rp2.c
458
uart_port_unlock(&up->port);
drivers/tty/serial/rp2.c
487
static inline void rp2_flush_fifos(struct rp2_uart_port *up)
drivers/tty/serial/rp2.c
489
rp2_rmw_set(up, RP2_UART_CTL,
drivers/tty/serial/rp2.c
491
readl(up->base + RP2_UART_CTL);
drivers/tty/serial/rp2.c
493
rp2_rmw_clr(up, RP2_UART_CTL,
drivers/tty/serial/rp2.c
499
struct rp2_uart_port *up = port_to_up(port);
drivers/tty/serial/rp2.c
501
rp2_flush_fifos(up);
drivers/tty/serial/rp2.c
502
rp2_rmw(up, RP2_TXRX_CTL, RP2_TXRX_CTL_MSRIRQ_m, RP2_TXRX_CTL_RXIRQ_m);
drivers/tty/serial/rp2.c
503
rp2_rmw(up, RP2_TXRX_CTL, RP2_TXRX_CTL_RX_TRIG_m,
drivers/tty/serial/rp2.c
505
rp2_rmw(up, RP2_CHAN_STAT, 0, 0);
drivers/tty/serial/rp2.c
506
rp2_mask_ch_irq(up, up->idx, 1);
drivers/tty/serial/rp2.c
513
struct rp2_uart_port *up = port_to_up(port);
drivers/tty/serial/rp2.c
519
rp2_mask_ch_irq(up, up->idx, 0);
drivers/tty/serial/rp2.c
520
rp2_rmw(up, RP2_CHAN_STAT, 0, 0);
drivers/tty/serial/rp2.c
606
static void rp2_init_port(struct rp2_uart_port *up, const struct firmware *fw)
drivers/tty/serial/rp2.c
610
writel(RP2_UART_CTL_RESET_CH_m, up->base + RP2_UART_CTL);
drivers/tty/serial/rp2.c
611
readl(up->base + RP2_UART_CTL);
drivers/tty/serial/rp2.c
614
writel(0, up->base + RP2_TXRX_CTL);
drivers/tty/serial/rp2.c
615
writel(0, up->base + RP2_UART_CTL);
drivers/tty/serial/rp2.c
616
readl(up->base + RP2_UART_CTL);
drivers/tty/serial/rp2.c
619
rp2_flush_fifos(up);
drivers/tty/serial/rp2.c
622
writeb(fw->data[i], up->ucode + i);
drivers/tty/serial/rp2.c
624
__rp2_uart_set_termios(up, CS8 | CREAD | CLOCAL, 0, DEFAULT_BAUD_DIV);
drivers/tty/serial/rp2.c
625
rp2_uart_set_mctrl(&up->port, 0);
drivers/tty/serial/rp2.c
627
writeb(RP2_RX_FIFO_ena, up->ucode + RP2_RX_FIFO);
drivers/tty/serial/rp2.c
628
rp2_rmw(up, RP2_UART_CTL, RP2_UART_CTL_MODE_m,
drivers/tty/serial/rp2.c
630
rp2_rmw_set(up, RP2_TXRX_CTL,
drivers/tty/serial/serial_txx9.c
1061
struct uart_port *up = &serial_txx9_ports[i];
drivers/tty/serial/serial_txx9.c
1063
if (up->dev == &dev->dev)
drivers/tty/serial/serial_txx9.c
1074
struct uart_port *up = &serial_txx9_ports[i];
drivers/tty/serial/serial_txx9.c
1076
if (up->type != PORT_UNKNOWN && up->dev == &dev->dev)
drivers/tty/serial/serial_txx9.c
1077
uart_suspend_port(&serial_txx9_reg, up);
drivers/tty/serial/serial_txx9.c
1088
struct uart_port *up = &serial_txx9_ports[i];
drivers/tty/serial/serial_txx9.c
1090
if (up->type != PORT_UNKNOWN && up->dev == &dev->dev)
drivers/tty/serial/serial_txx9.c
1091
uart_resume_port(&serial_txx9_reg, up);
drivers/tty/serial/serial_txx9.c
1147
struct uart_port *up = pci_get_drvdata(dev);
drivers/tty/serial/serial_txx9.c
1149
if (up) {
drivers/tty/serial/serial_txx9.c
1150
serial_txx9_unregister_port(up->line);
drivers/tty/serial/serial_txx9.c
1158
struct uart_port *up = pci_get_drvdata(dev);
drivers/tty/serial/serial_txx9.c
1160
if (up)
drivers/tty/serial/serial_txx9.c
1161
uart_suspend_port(&serial_txx9_reg, up);
drivers/tty/serial/serial_txx9.c
1169
struct uart_port *up = pci_get_drvdata(dev);
drivers/tty/serial/serial_txx9.c
1173
if (up)
drivers/tty/serial/serial_txx9.c
1174
uart_resume_port(&serial_txx9_reg, up);
drivers/tty/serial/serial_txx9.c
1254
struct uart_port *up = &serial_txx9_ports[i];
drivers/tty/serial/serial_txx9.c
1255
if (up->iobase || up->mapbase)
drivers/tty/serial/serial_txx9.c
1256
uart_remove_one_port(&serial_txx9_reg, up);
drivers/tty/serial/serial_txx9.c
159
static inline unsigned int sio_in(struct uart_port *up, int offset)
drivers/tty/serial/serial_txx9.c
161
switch (up->iotype) {
drivers/tty/serial/serial_txx9.c
163
return __raw_readl(up->membase + offset);
drivers/tty/serial/serial_txx9.c
165
return inl(up->iobase + offset);
drivers/tty/serial/serial_txx9.c
170
sio_out(struct uart_port *up, int offset, int value)
drivers/tty/serial/serial_txx9.c
172
switch (up->iotype) {
drivers/tty/serial/serial_txx9.c
174
__raw_writel(value, up->membase + offset);
drivers/tty/serial/serial_txx9.c
177
outl(value, up->iobase + offset);
drivers/tty/serial/serial_txx9.c
183
sio_mask(struct uart_port *up, int offset, unsigned int value)
drivers/tty/serial/serial_txx9.c
185
sio_out(up, offset, sio_in(up, offset) & ~value);
drivers/tty/serial/serial_txx9.c
188
sio_set(struct uart_port *up, int offset, unsigned int value)
drivers/tty/serial/serial_txx9.c
190
sio_out(up, offset, sio_in(up, offset) | value);
drivers/tty/serial/serial_txx9.c
194
sio_quot_set(struct uart_port *up, int quot)
drivers/tty/serial/serial_txx9.c
198
sio_out(up, TXX9_SIBGR, quot | TXX9_SIBGR_BCLK_T0);
drivers/tty/serial/serial_txx9.c
200
sio_out(up, TXX9_SIBGR, (quot >> 2) | TXX9_SIBGR_BCLK_T2);
drivers/tty/serial/serial_txx9.c
202
sio_out(up, TXX9_SIBGR, (quot >> 4) | TXX9_SIBGR_BCLK_T4);
drivers/tty/serial/serial_txx9.c
204
sio_out(up, TXX9_SIBGR, (quot >> 6) | TXX9_SIBGR_BCLK_T6);
drivers/tty/serial/serial_txx9.c
206
sio_out(up, TXX9_SIBGR, 0xff | TXX9_SIBGR_BCLK_T6);
drivers/tty/serial/serial_txx9.c
209
static void serial_txx9_stop_tx(struct uart_port *up)
drivers/tty/serial/serial_txx9.c
211
sio_mask(up, TXX9_SIDICR, TXX9_SIDICR_TIE);
drivers/tty/serial/serial_txx9.c
214
static void serial_txx9_start_tx(struct uart_port *up)
drivers/tty/serial/serial_txx9.c
216
sio_set(up, TXX9_SIDICR, TXX9_SIDICR_TIE);
drivers/tty/serial/serial_txx9.c
219
static void serial_txx9_stop_rx(struct uart_port *up)
drivers/tty/serial/serial_txx9.c
221
up->read_status_mask &= ~TXX9_SIDISR_RDIS;
drivers/tty/serial/serial_txx9.c
224
static void serial_txx9_initialize(struct uart_port *up)
drivers/tty/serial/serial_txx9.c
228
sio_out(up, TXX9_SIFCR, TXX9_SIFCR_SWRST);
drivers/tty/serial/serial_txx9.c
232
while ((sio_in(up, TXX9_SIFCR) & TXX9_SIFCR_SWRST) && --tmout)
drivers/tty/serial/serial_txx9.c
235
sio_set(up, TXX9_SIFCR,
drivers/tty/serial/serial_txx9.c
238
sio_out(up, TXX9_SILCR,
drivers/tty/serial/serial_txx9.c
240
((up->flags & UPF_TXX9_USE_SCLK) ?
drivers/tty/serial/serial_txx9.c
242
sio_quot_set(up, uart_get_divisor(up, 9600));
drivers/tty/serial/serial_txx9.c
243
sio_out(up, TXX9_SIFLCR, TXX9_SIFLCR_RTSTL_MAX /* 15 */);
drivers/tty/serial/serial_txx9.c
244
sio_out(up, TXX9_SIDICR, 0);
drivers/tty/serial/serial_txx9.c
248
receive_chars(struct uart_port *up, unsigned int *status)
drivers/tty/serial/serial_txx9.c
256
ch = sio_in(up, TXX9_SIRFIFO);
drivers/tty/serial/serial_txx9.c
258
up->icount.rx++;
drivers/tty/serial/serial_txx9.c
262
up->ignore_status_mask & ~TXX9_SIDISR_RFDN_MASK;
drivers/tty/serial/serial_txx9.c
270
up->icount.brk++;
drivers/tty/serial/serial_txx9.c
277
if (uart_handle_break(up))
drivers/tty/serial/serial_txx9.c
280
up->icount.parity++;
drivers/tty/serial/serial_txx9.c
282
up->icount.frame++;
drivers/tty/serial/serial_txx9.c
284
up->icount.overrun++;
drivers/tty/serial/serial_txx9.c
298
disr &= up->read_status_mask;
drivers/tty/serial/serial_txx9.c
307
if (uart_handle_sysrq_char(up, ch))
drivers/tty/serial/serial_txx9.c
310
uart_insert_char(up, disr, TXX9_SIDISR_UOER, ch, flag);
drivers/tty/serial/serial_txx9.c
313
up->ignore_status_mask = next_ignore_status_mask;
drivers/tty/serial/serial_txx9.c
314
disr = sio_in(up, TXX9_SIDISR);
drivers/tty/serial/serial_txx9.c
317
tty_flip_buffer_push(&up->state->port);
drivers/tty/serial/serial_txx9.c
322
static inline void transmit_chars(struct uart_port *up)
drivers/tty/serial/serial_txx9.c
326
uart_port_tx_limited(up, ch, TXX9_SIO_TX_FIFO,
drivers/tty/serial/serial_txx9.c
328
sio_out(up, TXX9_SITFIFO, ch),
drivers/tty/serial/serial_txx9.c
335
struct uart_port *up = dev_id;
drivers/tty/serial/serial_txx9.c
339
uart_port_lock(up);
drivers/tty/serial/serial_txx9.c
340
status = sio_in(up, TXX9_SIDISR);
drivers/tty/serial/serial_txx9.c
341
if (!(sio_in(up, TXX9_SIDICR) & TXX9_SIDICR_TIE))
drivers/tty/serial/serial_txx9.c
345
uart_port_unlock(up);
drivers/tty/serial/serial_txx9.c
350
receive_chars(up, &status);
drivers/tty/serial/serial_txx9.c
352
transmit_chars(up);
drivers/tty/serial/serial_txx9.c
354
sio_mask(up, TXX9_SIDISR,
drivers/tty/serial/serial_txx9.c
357
uart_port_unlock(up);
drivers/tty/serial/serial_txx9.c
366
static unsigned int serial_txx9_tx_empty(struct uart_port *up)
drivers/tty/serial/serial_txx9.c
371
uart_port_lock_irqsave(up, &flags);
drivers/tty/serial/serial_txx9.c
372
ret = (sio_in(up, TXX9_SICISR) & TXX9_SICISR_TXALS) ? TIOCSER_TEMT : 0;
drivers/tty/serial/serial_txx9.c
373
uart_port_unlock_irqrestore(up, flags);
drivers/tty/serial/serial_txx9.c
378
static unsigned int serial_txx9_get_mctrl(struct uart_port *up)
drivers/tty/serial/serial_txx9.c
384
ret |= (sio_in(up, TXX9_SIFLCR) & TXX9_SIFLCR_RTSSC) ? 0 : TIOCM_RTS;
drivers/tty/serial/serial_txx9.c
385
ret |= (sio_in(up, TXX9_SICISR) & TXX9_SICISR_CTSS) ? 0 : TIOCM_CTS;
drivers/tty/serial/serial_txx9.c
390
static void serial_txx9_set_mctrl(struct uart_port *up, unsigned int mctrl)
drivers/tty/serial/serial_txx9.c
394
sio_mask(up, TXX9_SIFLCR, TXX9_SIFLCR_RTSSC);
drivers/tty/serial/serial_txx9.c
396
sio_set(up, TXX9_SIFLCR, TXX9_SIFLCR_RTSSC);
drivers/tty/serial/serial_txx9.c
399
static void serial_txx9_break_ctl(struct uart_port *up, int break_state)
drivers/tty/serial/serial_txx9.c
403
uart_port_lock_irqsave(up, &flags);
drivers/tty/serial/serial_txx9.c
405
sio_set(up, TXX9_SIFLCR, TXX9_SIFLCR_TBRK);
drivers/tty/serial/serial_txx9.c
407
sio_mask(up, TXX9_SIFLCR, TXX9_SIFLCR_TBRK);
drivers/tty/serial/serial_txx9.c
408
uart_port_unlock_irqrestore(up, flags);
drivers/tty/serial/serial_txx9.c
415
static void wait_for_xmitr(struct uart_port *up)
drivers/tty/serial/serial_txx9.c
421
!(sio_in(up, TXX9_SICISR) & TXX9_SICISR_TXALS))
drivers/tty/serial/serial_txx9.c
425
if (up->flags & UPF_CONS_FLOW) {
drivers/tty/serial/serial_txx9.c
428
(sio_in(up, TXX9_SICISR) & TXX9_SICISR_CTSS))
drivers/tty/serial/serial_txx9.c
440
static int serial_txx9_get_poll_char(struct uart_port *up)
drivers/tty/serial/serial_txx9.c
448
ier = sio_in(up, TXX9_SIDICR);
drivers/tty/serial/serial_txx9.c
449
sio_out(up, TXX9_SIDICR, 0);
drivers/tty/serial/serial_txx9.c
451
while (sio_in(up, TXX9_SIDISR) & TXX9_SIDISR_UVALID)
drivers/tty/serial/serial_txx9.c
454
c = sio_in(up, TXX9_SIRFIFO);
drivers/tty/serial/serial_txx9.c
460
sio_mask(up, TXX9_SIDISR, TXX9_SIDISR_RDIS);
drivers/tty/serial/serial_txx9.c
461
sio_out(up, TXX9_SIDICR, ier);
drivers/tty/serial/serial_txx9.c
466
static void serial_txx9_put_poll_char(struct uart_port *up, unsigned char c)
drivers/tty/serial/serial_txx9.c
473
ier = sio_in(up, TXX9_SIDICR);
drivers/tty/serial/serial_txx9.c
474
sio_out(up, TXX9_SIDICR, 0);
drivers/tty/serial/serial_txx9.c
476
wait_for_xmitr(up);
drivers/tty/serial/serial_txx9.c
480
sio_out(up, TXX9_SITFIFO, c);
drivers/tty/serial/serial_txx9.c
486
wait_for_xmitr(up);
drivers/tty/serial/serial_txx9.c
487
sio_out(up, TXX9_SIDICR, ier);
drivers/tty/serial/serial_txx9.c
492
static int serial_txx9_startup(struct uart_port *up)
drivers/tty/serial/serial_txx9.c
501
sio_set(up, TXX9_SIFCR,
drivers/tty/serial/serial_txx9.c
504
sio_mask(up, TXX9_SIFCR,
drivers/tty/serial/serial_txx9.c
506
sio_out(up, TXX9_SIDICR, 0);
drivers/tty/serial/serial_txx9.c
511
sio_out(up, TXX9_SIDISR, 0);
drivers/tty/serial/serial_txx9.c
513
retval = request_irq(up->irq, serial_txx9_interrupt,
drivers/tty/serial/serial_txx9.c
514
IRQF_SHARED, "serial_txx9", up);
drivers/tty/serial/serial_txx9.c
521
uart_port_lock_irqsave(up, &flags);
drivers/tty/serial/serial_txx9.c
522
serial_txx9_set_mctrl(up, up->mctrl);
drivers/tty/serial/serial_txx9.c
523
uart_port_unlock_irqrestore(up, flags);
drivers/tty/serial/serial_txx9.c
526
sio_mask(up, TXX9_SIFLCR, TXX9_SIFLCR_RSDE | TXX9_SIFLCR_TSDE);
drivers/tty/serial/serial_txx9.c
531
sio_set(up, TXX9_SIDICR, TXX9_SIDICR_RIE);
drivers/tty/serial/serial_txx9.c
536
static void serial_txx9_shutdown(struct uart_port *up)
drivers/tty/serial/serial_txx9.c
543
sio_out(up, TXX9_SIDICR, 0); /* disable all intrs */
drivers/tty/serial/serial_txx9.c
545
uart_port_lock_irqsave(up, &flags);
drivers/tty/serial/serial_txx9.c
546
serial_txx9_set_mctrl(up, up->mctrl);
drivers/tty/serial/serial_txx9.c
547
uart_port_unlock_irqrestore(up, flags);
drivers/tty/serial/serial_txx9.c
552
sio_mask(up, TXX9_SIFLCR, TXX9_SIFLCR_TBRK);
drivers/tty/serial/serial_txx9.c
555
if (up->cons && up->line == up->cons->index) {
drivers/tty/serial/serial_txx9.c
556
free_irq(up->irq, up);
drivers/tty/serial/serial_txx9.c
561
sio_set(up, TXX9_SIFCR,
drivers/tty/serial/serial_txx9.c
564
sio_mask(up, TXX9_SIFCR,
drivers/tty/serial/serial_txx9.c
568
sio_set(up, TXX9_SIFLCR, TXX9_SIFLCR_RSDE | TXX9_SIFLCR_TSDE);
drivers/tty/serial/serial_txx9.c
570
free_irq(up->irq, up);
drivers/tty/serial/serial_txx9.c
574
serial_txx9_set_termios(struct uart_port *up, struct ktermios *termios,
drivers/tty/serial/serial_txx9.c
587
cval = sio_in(up, TXX9_SILCR);
drivers/tty/serial/serial_txx9.c
618
baud = uart_get_baud_rate(up, termios, old, 0, up->uartclk/16/2);
drivers/tty/serial/serial_txx9.c
619
quot = uart_get_divisor(up, baud);
drivers/tty/serial/serial_txx9.c
629
uart_port_lock_irqsave(up, &flags);
drivers/tty/serial/serial_txx9.c
634
uart_update_timeout(up, termios->c_cflag, baud);
drivers/tty/serial/serial_txx9.c
636
up->read_status_mask = TXX9_SIDISR_UOER |
drivers/tty/serial/serial_txx9.c
639
up->read_status_mask |= TXX9_SIDISR_UFER | TXX9_SIDISR_UPER;
drivers/tty/serial/serial_txx9.c
641
up->read_status_mask |= TXX9_SIDISR_UBRK;
drivers/tty/serial/serial_txx9.c
646
up->ignore_status_mask = 0;
drivers/tty/serial/serial_txx9.c
648
up->ignore_status_mask |= TXX9_SIDISR_UPER | TXX9_SIDISR_UFER;
drivers/tty/serial/serial_txx9.c
650
up->ignore_status_mask |= TXX9_SIDISR_UBRK;
drivers/tty/serial/serial_txx9.c
656
up->ignore_status_mask |= TXX9_SIDISR_UOER;
drivers/tty/serial/serial_txx9.c
663
up->ignore_status_mask |= TXX9_SIDISR_RDIS;
drivers/tty/serial/serial_txx9.c
667
(up->flags & UPF_TXX9_HAVE_CTS_LINE)) {
drivers/tty/serial/serial_txx9.c
668
sio_set(up, TXX9_SIFLCR,
drivers/tty/serial/serial_txx9.c
671
sio_mask(up, TXX9_SIFLCR,
drivers/tty/serial/serial_txx9.c
675
sio_out(up, TXX9_SILCR, cval);
drivers/tty/serial/serial_txx9.c
676
sio_quot_set(up, quot);
drivers/tty/serial/serial_txx9.c
677
sio_out(up, TXX9_SIFCR, fcr);
drivers/tty/serial/serial_txx9.c
679
serial_txx9_set_mctrl(up, up->mctrl);
drivers/tty/serial/serial_txx9.c
680
uart_port_unlock_irqrestore(up, flags);
drivers/tty/serial/serial_txx9.c
699
static int serial_txx9_request_resource(struct uart_port *up)
drivers/tty/serial/serial_txx9.c
704
switch (up->iotype) {
drivers/tty/serial/serial_txx9.c
706
if (!up->mapbase)
drivers/tty/serial/serial_txx9.c
709
if (!request_mem_region(up->mapbase, size, "serial_txx9")) {
drivers/tty/serial/serial_txx9.c
714
if (up->flags & UPF_IOREMAP) {
drivers/tty/serial/serial_txx9.c
715
up->membase = ioremap(up->mapbase, size);
drivers/tty/serial/serial_txx9.c
716
if (!up->membase) {
drivers/tty/serial/serial_txx9.c
717
release_mem_region(up->mapbase, size);
drivers/tty/serial/serial_txx9.c
724
if (!request_region(up->iobase, size, "serial_txx9"))
drivers/tty/serial/serial_txx9.c
731
static void serial_txx9_release_resource(struct uart_port *up)
drivers/tty/serial/serial_txx9.c
735
switch (up->iotype) {
drivers/tty/serial/serial_txx9.c
737
if (!up->mapbase)
drivers/tty/serial/serial_txx9.c
740
if (up->flags & UPF_IOREMAP) {
drivers/tty/serial/serial_txx9.c
741
iounmap(up->membase);
drivers/tty/serial/serial_txx9.c
742
up->membase = NULL;
drivers/tty/serial/serial_txx9.c
745
release_mem_region(up->mapbase, size);
drivers/tty/serial/serial_txx9.c
749
release_region(up->iobase, size);
drivers/tty/serial/serial_txx9.c
754
static void serial_txx9_release_port(struct uart_port *up)
drivers/tty/serial/serial_txx9.c
756
serial_txx9_release_resource(up);
drivers/tty/serial/serial_txx9.c
759
static int serial_txx9_request_port(struct uart_port *up)
drivers/tty/serial/serial_txx9.c
761
return serial_txx9_request_resource(up);
drivers/tty/serial/serial_txx9.c
764
static void serial_txx9_config_port(struct uart_port *up, int uflags)
drivers/tty/serial/serial_txx9.c
772
ret = serial_txx9_request_resource(up);
drivers/tty/serial/serial_txx9.c
775
up->type = PORT_TXX9;
drivers/tty/serial/serial_txx9.c
776
up->fifosize = TXX9_SIO_TX_FIFO;
drivers/tty/serial/serial_txx9.c
779
if (up->line == up->cons->index)
drivers/tty/serial/serial_txx9.c
782
serial_txx9_initialize(up);
drivers/tty/serial/serial_txx9.c
821
struct uart_port *up = &serial_txx9_ports[i];
drivers/tty/serial/serial_txx9.c
823
up->line = i;
drivers/tty/serial/serial_txx9.c
824
up->ops = &serial_txx9_pops;
drivers/tty/serial/serial_txx9.c
825
up->dev = dev;
drivers/tty/serial/serial_txx9.c
826
if (up->iobase || up->mapbase)
drivers/tty/serial/serial_txx9.c
827
uart_add_one_port(drv, up);
drivers/tty/serial/serial_txx9.c
833
static void serial_txx9_console_putchar(struct uart_port *up, unsigned char ch)
drivers/tty/serial/serial_txx9.c
835
wait_for_xmitr(up);
drivers/tty/serial/serial_txx9.c
836
sio_out(up, TXX9_SITFIFO, ch);
drivers/tty/serial/serial_txx9.c
848
struct uart_port *up = &serial_txx9_ports[co->index];
drivers/tty/serial/serial_txx9.c
854
ier = sio_in(up, TXX9_SIDICR);
drivers/tty/serial/serial_txx9.c
855
sio_out(up, TXX9_SIDICR, 0);
drivers/tty/serial/serial_txx9.c
859
flcr = sio_in(up, TXX9_SIFLCR);
drivers/tty/serial/serial_txx9.c
860
if (!(up->flags & UPF_CONS_FLOW) && (flcr & TXX9_SIFLCR_TES))
drivers/tty/serial/serial_txx9.c
861
sio_out(up, TXX9_SIFLCR, flcr & ~TXX9_SIFLCR_TES);
drivers/tty/serial/serial_txx9.c
863
uart_console_write(up, s, count, serial_txx9_console_putchar);
drivers/tty/serial/serial_txx9.c
869
wait_for_xmitr(up);
drivers/tty/serial/serial_txx9.c
870
sio_out(up, TXX9_SIFLCR, flcr);
drivers/tty/serial/serial_txx9.c
871
sio_out(up, TXX9_SIDICR, ier);
drivers/tty/serial/serial_txx9.c
876
struct uart_port *up;
drivers/tty/serial/serial_txx9.c
889
up = &serial_txx9_ports[co->index];
drivers/tty/serial/serial_txx9.c
890
if (!up->ops)
drivers/tty/serial/serial_txx9.c
893
serial_txx9_initialize(up);
drivers/tty/serial/serial_txx9.c
898
return uart_set_options(up, co, baud, parity, bits, flow);
drivers/tty/serial/sh-sci.c
2186
struct uart_port *up = &port->port;
drivers/tty/serial/sh-sci.c
2202
irq = up->irq;
drivers/tty/serial/sh-sci.c
2216
dev_name(up->dev), desc->desc);
drivers/tty/serial/sh-sci.c
2222
ret = request_irq(irq, desc->handler, up->irqflags,
drivers/tty/serial/sh-sci.c
2225
dev_err(up->dev, "Can't allocate %s IRQ\n", desc->desc);
drivers/tty/serial/sh-sci.c
679
#define sci_getreg(up, offset) (&to_sci_port(up)->params->regs[offset])
drivers/tty/serial/sifive.c
796
struct uart_port *up = &sifive_serial_console_ports[co->index]->port;
drivers/tty/serial/sifive.c
798
__uart_port_lock_irqsave(up, flags);
drivers/tty/serial/sifive.c
803
struct uart_port *up = &sifive_serial_console_ports[co->index]->port;
drivers/tty/serial/sifive.c
805
__uart_port_unlock_irqrestore(up, flags);
drivers/tty/serial/sprd_serial.c
1180
struct uart_port *up;
drivers/tty/serial/sprd_serial.c
1196
up = &sport->port;
drivers/tty/serial/sprd_serial.c
1197
up->dev = &pdev->dev;
drivers/tty/serial/sprd_serial.c
1198
up->line = index;
drivers/tty/serial/sprd_serial.c
1199
up->type = PORT_SPRD;
drivers/tty/serial/sprd_serial.c
1200
up->iotype = UPIO_MEM;
drivers/tty/serial/sprd_serial.c
1201
up->uartclk = SPRD_DEF_RATE;
drivers/tty/serial/sprd_serial.c
1202
up->fifosize = SPRD_FIFO_SIZE;
drivers/tty/serial/sprd_serial.c
1203
up->ops = &serial_sprd_ops;
drivers/tty/serial/sprd_serial.c
1204
up->flags = UPF_BOOT_AUTOCONF;
drivers/tty/serial/sprd_serial.c
1205
up->has_sysrq = IS_ENABLED(CONFIG_SERIAL_SPRD_CONSOLE);
drivers/tty/serial/sprd_serial.c
1207
ret = sprd_clk_init(up);
drivers/tty/serial/sprd_serial.c
1211
up->membase = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
drivers/tty/serial/sprd_serial.c
1212
if (IS_ERR(up->membase))
drivers/tty/serial/sprd_serial.c
1213
return PTR_ERR(up->membase);
drivers/tty/serial/sprd_serial.c
1215
up->mapbase = res->start;
drivers/tty/serial/sprd_serial.c
1226
up->irq = irq;
drivers/tty/serial/sprd_serial.c
1247
ret = uart_add_one_port(&sprd_uart_driver, up);
drivers/tty/serial/sprd_serial.c
1251
platform_set_drvdata(pdev, up);
drivers/tty/serial/sunsab.c
100
static __inline__ void sunsab_cec_wait(struct uart_sunsab_port *up)
drivers/tty/serial/sunsab.c
1001
up->cached_pvr = (1 << 1) | (1 << 2) | (1 << 4);
drivers/tty/serial/sunsab.c
1002
writeb(up->cached_pvr, &up->regs->w.pvr);
drivers/tty/serial/sunsab.c
1003
up->cached_mode = readb(&up->regs->rw.mode);
drivers/tty/serial/sunsab.c
1004
up->cached_mode |= SAB82532_MODE_FRTS;
drivers/tty/serial/sunsab.c
1005
writeb(up->cached_mode, &up->regs->rw.mode);
drivers/tty/serial/sunsab.c
1006
up->cached_mode |= SAB82532_MODE_RTS;
drivers/tty/serial/sunsab.c
1007
writeb(up->cached_mode, &up->regs->rw.mode);
drivers/tty/serial/sunsab.c
1009
up->tec_timeout = SAB82532_MAX_TEC_TIMEOUT;
drivers/tty/serial/sunsab.c
1010
up->cec_timeout = SAB82532_MAX_CEC_TIMEOUT;
drivers/tty/serial/sunsab.c
1018
struct uart_sunsab_port *up;
drivers/tty/serial/sunsab.c
102
int timeout = up->cec_timeout;
drivers/tty/serial/sunsab.c
1021
up = &sunsab_ports[inst * 2];
drivers/tty/serial/sunsab.c
1023
err = sunsab_init_one(&up[0], op,
drivers/tty/serial/sunsab.c
1029
err = sunsab_init_one(&up[1], op,
drivers/tty/serial/sunsab.c
1036
&sunsab_reg, up[0].port.line,
drivers/tty/serial/sunsab.c
104
while ((readb(&up->regs->r.star) & SAB82532_STAR_CEC) && --timeout)
drivers/tty/serial/sunsab.c
1040
&sunsab_reg, up[1].port.line,
drivers/tty/serial/sunsab.c
1043
err = uart_add_one_port(&sunsab_reg, &up[0].port);
drivers/tty/serial/sunsab.c
1047
err = uart_add_one_port(&sunsab_reg, &up[1].port);
drivers/tty/serial/sunsab.c
1051
platform_set_drvdata(op, &up[0]);
drivers/tty/serial/sunsab.c
1058
uart_remove_one_port(&sunsab_reg, &up[0].port);
drivers/tty/serial/sunsab.c
1061
up[1].port.membase,
drivers/tty/serial/sunsab.c
1065
up[0].port.membase,
drivers/tty/serial/sunsab.c
1073
struct uart_sunsab_port *up = platform_get_drvdata(op);
drivers/tty/serial/sunsab.c
1075
uart_remove_one_port(&sunsab_reg, &up[1].port);
drivers/tty/serial/sunsab.c
1076
uart_remove_one_port(&sunsab_reg, &up[0].port);
drivers/tty/serial/sunsab.c
1078
up[1].port.membase,
drivers/tty/serial/sunsab.c
1081
up[0].port.membase,
drivers/tty/serial/sunsab.c
109
receive_chars(struct uart_sunsab_port *up,
drivers/tty/serial/sunsab.c
119
if (up->port.state != NULL) /* Unopened serial console */
drivers/tty/serial/sunsab.c
120
port = &up->port.state->port;
drivers/tty/serial/sunsab.c
129
count = readb(&up->regs->r.rbcl) & (SAB82532_RECV_FIFO_SIZE - 1);
drivers/tty/serial/sunsab.c
135
sunsab_cec_wait(up);
drivers/tty/serial/sunsab.c
136
writeb(SAB82532_CMDR_RFRD, &up->regs->w.cmdr);
drivers/tty/serial/sunsab.c
145
buf[i] = readb(&up->regs->r.rfifo[i]);
drivers/tty/serial/sunsab.c
149
sunsab_cec_wait(up);
drivers/tty/serial/sunsab.c
150
writeb(SAB82532_CMDR_RMC, &up->regs->w.cmdr);
drivers/tty/serial/sunsab.c
155
(up->port.line == up->port.cons->index))
drivers/tty/serial/sunsab.c
162
up->port.icount.brk++;
drivers/tty/serial/sunsab.c
163
uart_handle_break(&up->port);
drivers/tty/serial/sunsab.c
171
up->port.icount.rx++;
drivers/tty/serial/sunsab.c
183
up->port.icount.brk++;
drivers/tty/serial/sunsab.c
190
if (uart_handle_break(&up->port))
drivers/tty/serial/sunsab.c
193
up->port.icount.parity++;
drivers/tty/serial/sunsab.c
195
up->port.icount.frame++;
drivers/tty/serial/sunsab.c
197
up->port.icount.overrun++;
drivers/tty/serial/sunsab.c
202
stat->sreg.isr0 &= (up->port.read_status_mask & 0xff);
drivers/tty/serial/sunsab.c
203
stat->sreg.isr1 &= ((up->port.read_status_mask >> 8) & 0xff);
drivers/tty/serial/sunsab.c
213
if (uart_handle_sysrq_char(&up->port, ch) || !port)
drivers/tty/serial/sunsab.c
216
if ((stat->sreg.isr0 & (up->port.ignore_status_mask & 0xff)) == 0 &&
drivers/tty/serial/sunsab.c
217
(stat->sreg.isr1 & ((up->port.ignore_status_mask >> 8) & 0xff)) == 0)
drivers/tty/serial/sunsab.c
232
static void transmit_chars(struct uart_sunsab_port *up,
drivers/tty/serial/sunsab.c
235
struct tty_port *tport = &up->port.state->port;
drivers/tty/serial/sunsab.c
239
up->interrupt_mask1 |= SAB82532_IMR1_ALLS;
drivers/tty/serial/sunsab.c
240
writeb(up->interrupt_mask1, &up->regs->w.imr1);
drivers/tty/serial/sunsab.c
241
set_bit(SAB82532_ALLS, &up->irqflags);
drivers/tty/serial/sunsab.c
249
if (!(readb(&up->regs->r.star) & SAB82532_STAR_XFW))
drivers/tty/serial/sunsab.c
252
set_bit(SAB82532_XPR, &up->irqflags);
drivers/tty/serial/sunsab.c
253
sunsab_tx_idle(up);
drivers/tty/serial/sunsab.c
255
if (kfifo_is_empty(&tport->xmit_fifo) || uart_tx_stopped(&up->port)) {
drivers/tty/serial/sunsab.c
256
up->interrupt_mask1 |= SAB82532_IMR1_XPR;
drivers/tty/serial/sunsab.c
257
writeb(up->interrupt_mask1, &up->regs->w.imr1);
drivers/tty/serial/sunsab.c
261
up->interrupt_mask1 &= ~(SAB82532_IMR1_ALLS|SAB82532_IMR1_XPR);
drivers/tty/serial/sunsab.c
262
writeb(up->interrupt_mask1, &up->regs->w.imr1);
drivers/tty/serial/sunsab.c
263
clear_bit(SAB82532_ALLS, &up->irqflags);
drivers/tty/serial/sunsab.c
266
clear_bit(SAB82532_XPR, &up->irqflags);
drivers/tty/serial/sunsab.c
267
for (i = 0; i < up->port.fifosize; i++) {
drivers/tty/serial/sunsab.c
270
if (!uart_fifo_get(&up->port, &ch))
drivers/tty/serial/sunsab.c
273
writeb(ch, &up->regs->w.xfifo[i]);
drivers/tty/serial/sunsab.c
277
sunsab_cec_wait(up);
drivers/tty/serial/sunsab.c
278
writeb(SAB82532_CMDR_XF, &up->regs->w.cmdr);
drivers/tty/serial/sunsab.c
281
uart_write_wakeup(&up->port);
drivers/tty/serial/sunsab.c
284
sunsab_stop_tx(&up->port);
drivers/tty/serial/sunsab.c
287
static void check_status(struct uart_sunsab_port *up,
drivers/tty/serial/sunsab.c
291
uart_handle_dcd_change(&up->port,
drivers/tty/serial/sunsab.c
292
!(readb(&up->regs->r.vstr) & SAB82532_VSTR_CD));
drivers/tty/serial/sunsab.c
295
uart_handle_cts_change(&up->port,
drivers/tty/serial/sunsab.c
296
(readb(&up->regs->r.star) & SAB82532_STAR_CTS));
drivers/tty/serial/sunsab.c
298
if ((readb(&up->regs->r.pvr) & up->pvr_dsr_bit) ^ up->dsr) {
drivers/tty/serial/sunsab.c
299
up->dsr = (readb(&up->regs->r.pvr) & up->pvr_dsr_bit) ? 0 : 1;
drivers/tty/serial/sunsab.c
300
up->port.icount.dsr++;
drivers/tty/serial/sunsab.c
303
wake_up_interruptible(&up->port.state->port.delta_msr_wait);
drivers/tty/serial/sunsab.c
308
struct uart_sunsab_port *up = dev_id;
drivers/tty/serial/sunsab.c
314
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/sunsab.c
317
gis = readb(&up->regs->r.gis) >> up->gis_shift;
drivers/tty/serial/sunsab.c
319
status.sreg.isr0 = readb(&up->regs->r.isr0);
drivers/tty/serial/sunsab.c
321
status.sreg.isr1 = readb(&up->regs->r.isr1);
drivers/tty/serial/sunsab.c
327
port = receive_chars(up, &status);
drivers/tty/serial/sunsab.c
330
check_status(up, &status);
drivers/tty/serial/sunsab.c
332
transmit_chars(up, &status);
drivers/tty/serial/sunsab.c
335
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/sunsab.c
346
struct uart_sunsab_port *up =
drivers/tty/serial/sunsab.c
351
if (test_bit(SAB82532_ALLS, &up->irqflags))
drivers/tty/serial/sunsab.c
362
struct uart_sunsab_port *up =
drivers/tty/serial/sunsab.c
366
up->cached_mode &= ~SAB82532_MODE_FRTS;
drivers/tty/serial/sunsab.c
367
up->cached_mode |= SAB82532_MODE_RTS;
drivers/tty/serial/sunsab.c
369
up->cached_mode |= (SAB82532_MODE_FRTS |
drivers/tty/serial/sunsab.c
373
up->cached_pvr &= ~(up->pvr_dtr_bit);
drivers/tty/serial/sunsab.c
375
up->cached_pvr |= up->pvr_dtr_bit;
drivers/tty/serial/sunsab.c
378
set_bit(SAB82532_REGS_PENDING, &up->irqflags);
drivers/tty/serial/sunsab.c
379
if (test_bit(SAB82532_XPR, &up->irqflags))
drivers/tty/serial/sunsab.c
380
sunsab_tx_idle(up);
drivers/tty/serial/sunsab.c
386
struct uart_sunsab_port *up =
drivers/tty/serial/sunsab.c
393
val = readb(&up->regs->r.pvr);
drivers/tty/serial/sunsab.c
394
result |= (val & up->pvr_dsr_bit) ? 0 : TIOCM_DSR;
drivers/tty/serial/sunsab.c
396
val = readb(&up->regs->r.vstr);
drivers/tty/serial/sunsab.c
399
val = readb(&up->regs->r.star);
drivers/tty/serial/sunsab.c
408
struct uart_sunsab_port *up =
drivers/tty/serial/sunsab.c
411
up->interrupt_mask1 |= SAB82532_IMR1_XPR;
drivers/tty/serial/sunsab.c
412
writeb(up->interrupt_mask1, &up->regs->w.imr1);
drivers/tty/serial/sunsab.c
416
static void sunsab_tx_idle(struct uart_sunsab_port *up)
drivers/tty/serial/sunsab.c
418
if (test_bit(SAB82532_REGS_PENDING, &up->irqflags)) {
drivers/tty/serial/sunsab.c
421
clear_bit(SAB82532_REGS_PENDING, &up->irqflags);
drivers/tty/serial/sunsab.c
422
writeb(up->cached_mode, &up->regs->rw.mode);
drivers/tty/serial/sunsab.c
423
writeb(up->cached_pvr, &up->regs->rw.pvr);
drivers/tty/serial/sunsab.c
424
writeb(up->cached_dafo, &up->regs->w.dafo);
drivers/tty/serial/sunsab.c
426
writeb(up->cached_ebrg & 0xff, &up->regs->w.bgr);
drivers/tty/serial/sunsab.c
427
tmp = readb(&up->regs->rw.ccr2);
drivers/tty/serial/sunsab.c
429
tmp |= (up->cached_ebrg >> 2) & 0xc0;
drivers/tty/serial/sunsab.c
430
writeb(tmp, &up->regs->rw.ccr2);
drivers/tty/serial/sunsab.c
437
struct uart_sunsab_port *up =
drivers/tty/serial/sunsab.c
439
struct tty_port *tport = &up->port.state->port;
drivers/tty/serial/sunsab.c
445
up->interrupt_mask1 &= ~(SAB82532_IMR1_ALLS|SAB82532_IMR1_XPR);
drivers/tty/serial/sunsab.c
446
writeb(up->interrupt_mask1, &up->regs->w.imr1);
drivers/tty/serial/sunsab.c
448
if (!test_bit(SAB82532_XPR, &up->irqflags))
drivers/tty/serial/sunsab.c
451
clear_bit(SAB82532_ALLS, &up->irqflags);
drivers/tty/serial/sunsab.c
452
clear_bit(SAB82532_XPR, &up->irqflags);
drivers/tty/serial/sunsab.c
454
for (i = 0; i < up->port.fifosize; i++) {
drivers/tty/serial/sunsab.c
457
if (!uart_fifo_get(&up->port, &ch))
drivers/tty/serial/sunsab.c
460
writeb(ch, &up->regs->w.xfifo[i]);
drivers/tty/serial/sunsab.c
464
sunsab_cec_wait(up);
drivers/tty/serial/sunsab.c
465
writeb(SAB82532_CMDR_XF, &up->regs->w.cmdr);
drivers/tty/serial/sunsab.c
471
struct uart_sunsab_port *up =
drivers/tty/serial/sunsab.c
478
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/sunsab.c
480
sunsab_tec_wait(up);
drivers/tty/serial/sunsab.c
481
writeb(ch, &up->regs->w.tic);
drivers/tty/serial/sunsab.c
483
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/sunsab.c
489
struct uart_sunsab_port *up =
drivers/tty/serial/sunsab.c
492
up->interrupt_mask0 |= SAB82532_IMR0_TCD;
drivers/tty/serial/sunsab.c
493
writeb(up->interrupt_mask1, &up->regs->w.imr0);
drivers/tty/serial/sunsab.c
499
struct uart_sunsab_port *up =
drivers/tty/serial/sunsab.c
504
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/sunsab.c
506
val = up->cached_dafo;
drivers/tty/serial/sunsab.c
511
up->cached_dafo = val;
drivers/tty/serial/sunsab.c
513
set_bit(SAB82532_REGS_PENDING, &up->irqflags);
drivers/tty/serial/sunsab.c
514
if (test_bit(SAB82532_XPR, &up->irqflags))
drivers/tty/serial/sunsab.c
515
sunsab_tx_idle(up);
drivers/tty/serial/sunsab.c
517
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/sunsab.c
523
struct uart_sunsab_port *up =
drivers/tty/serial/sunsab.c
527
int err = request_irq(up->port.irq, sunsab_interrupt,
drivers/tty/serial/sunsab.c
528
IRQF_SHARED, "sab", up);
drivers/tty/serial/sunsab.c
532
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/sunsab.c
537
sunsab_cec_wait(up);
drivers/tty/serial/sunsab.c
538
sunsab_tec_wait(up);
drivers/tty/serial/sunsab.c
543
writeb(SAB82532_CMDR_RRES, &up->regs->w.cmdr);
drivers/tty/serial/sunsab.c
544
sunsab_cec_wait(up);
drivers/tty/serial/sunsab.c
545
writeb(SAB82532_CMDR_XRES, &up->regs->w.cmdr);
drivers/tty/serial/sunsab.c
550
(void) readb(&up->regs->r.isr0);
drivers/tty/serial/sunsab.c
551
(void) readb(&up->regs->r.isr1);
drivers/tty/serial/sunsab.c
556
writeb(0, &up->regs->w.ccr0); /* power-down */
drivers/tty/serial/sunsab.c
558
SAB82532_CCR0_SM_ASYNC, &up->regs->w.ccr0);
drivers/tty/serial/sunsab.c
559
writeb(SAB82532_CCR1_ODS | SAB82532_CCR1_BCR | 7, &up->regs->w.ccr1);
drivers/tty/serial/sunsab.c
561
SAB82532_CCR2_TOE, &up->regs->w.ccr2);
drivers/tty/serial/sunsab.c
562
writeb(0, &up->regs->w.ccr3);
drivers/tty/serial/sunsab.c
563
writeb(SAB82532_CCR4_MCK4 | SAB82532_CCR4_EBRG, &up->regs->w.ccr4);
drivers/tty/serial/sunsab.c
564
up->cached_mode = (SAB82532_MODE_RTS | SAB82532_MODE_FCTS |
drivers/tty/serial/sunsab.c
566
writeb(up->cached_mode, &up->regs->w.mode);
drivers/tty/serial/sunsab.c
567
writeb(SAB82532_RFC_DPS|SAB82532_RFC_RFTH_32, &up->regs->w.rfc);
drivers/tty/serial/sunsab.c
569
tmp = readb(&up->regs->rw.ccr0);
drivers/tty/serial/sunsab.c
571
writeb(tmp, &up->regs->rw.ccr0);
drivers/tty/serial/sunsab.c
576
up->interrupt_mask0 = (SAB82532_IMR0_PERR | SAB82532_IMR0_FERR |
drivers/tty/serial/sunsab.c
578
writeb(up->interrupt_mask0, &up->regs->w.imr0);
drivers/tty/serial/sunsab.c
579
up->interrupt_mask1 = (SAB82532_IMR1_BRKT | SAB82532_IMR1_ALLS |
drivers/tty/serial/sunsab.c
583
writeb(up->interrupt_mask1, &up->regs->w.imr1);
drivers/tty/serial/sunsab.c
584
set_bit(SAB82532_ALLS, &up->irqflags);
drivers/tty/serial/sunsab.c
585
set_bit(SAB82532_XPR, &up->irqflags);
drivers/tty/serial/sunsab.c
587
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/sunsab.c
595
struct uart_sunsab_port *up =
drivers/tty/serial/sunsab.c
599
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/sunsab.c
602
up->interrupt_mask0 = 0xff;
drivers/tty/serial/sunsab.c
603
writeb(up->interrupt_mask0, &up->regs->w.imr0);
drivers/tty/serial/sunsab.c
604
up->interrupt_mask1 = 0xff;
drivers/tty/serial/sunsab.c
605
writeb(up->interrupt_mask1, &up->regs->w.imr1);
drivers/tty/serial/sunsab.c
608
up->cached_dafo = readb(&up->regs->rw.dafo);
drivers/tty/serial/sunsab.c
609
up->cached_dafo &= ~SAB82532_DAFO_XBRK;
drivers/tty/serial/sunsab.c
610
writeb(up->cached_dafo, &up->regs->rw.dafo);
drivers/tty/serial/sunsab.c
613
up->cached_mode &= ~SAB82532_MODE_RAC;
drivers/tty/serial/sunsab.c
614
writeb(up->cached_mode, &up->regs->rw.mode);
drivers/tty/serial/sunsab.c
628
tmp = readb(&up->regs->rw.ccr0);
drivers/tty/serial/sunsab.c
630
writeb(tmp, &up->regs->rw.ccr0);
drivers/tty/serial/sunsab.c
633
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/sunsab.c
634
free_irq(up->port.irq, up);
drivers/tty/serial/sunsab.c
680
static void sunsab_convert_to_sab(struct uart_sunsab_port *up, unsigned int cflag,
drivers/tty/serial/sunsab.c
708
up->cached_dafo = dafo;
drivers/tty/serial/sunsab.c
712
up->cached_ebrg = n | (m << 6);
drivers/tty/serial/sunsab.c
714
up->tec_timeout = (10 * 1000000) / baud;
drivers/tty/serial/sunsab.c
715
up->cec_timeout = up->tec_timeout >> 2;
drivers/tty/serial/sunsab.c
726
up->port.read_status_mask = (SAB82532_ISR0_TCD | SAB82532_ISR0_TIME |
drivers/tty/serial/sunsab.c
729
up->port.read_status_mask |= (SAB82532_ISR1_CSC |
drivers/tty/serial/sunsab.c
733
up->port.read_status_mask |= (SAB82532_ISR0_PERR |
drivers/tty/serial/sunsab.c
736
up->port.read_status_mask |= (SAB82532_ISR1_BRK << 8);
drivers/tty/serial/sunsab.c
741
up->port.ignore_status_mask = 0;
drivers/tty/serial/sunsab.c
743
up->port.ignore_status_mask |= (SAB82532_ISR0_PERR |
drivers/tty/serial/sunsab.c
746
up->port.ignore_status_mask |= (SAB82532_ISR1_BRK << 8);
drivers/tty/serial/sunsab.c
752
up->port.ignore_status_mask |= SAB82532_ISR0_RFO;
drivers/tty/serial/sunsab.c
759
up->port.ignore_status_mask |= (SAB82532_ISR0_RPF |
drivers/tty/serial/sunsab.c
762
uart_update_timeout(&up->port, cflag,
drivers/tty/serial/sunsab.c
763
(up->port.uartclk / (16 * quot)));
drivers/tty/serial/sunsab.c
768
up->cached_mode |= SAB82532_MODE_RAC;
drivers/tty/serial/sunsab.c
769
set_bit(SAB82532_REGS_PENDING, &up->irqflags);
drivers/tty/serial/sunsab.c
770
if (test_bit(SAB82532_XPR, &up->irqflags))
drivers/tty/serial/sunsab.c
771
sunsab_tx_idle(up);
drivers/tty/serial/sunsab.c
778
struct uart_sunsab_port *up =
drivers/tty/serial/sunsab.c
784
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/sunsab.c
785
sunsab_convert_to_sab(up, termios->c_cflag, termios->c_iflag, baud, quot);
drivers/tty/serial/sunsab.c
786
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/sunsab.c
791
struct uart_sunsab_port *up = (void *)port;
drivers/tty/serial/sunsab.c
794
sprintf(buf, "SAB82532 %s", sab82532_version[up->type]);
drivers/tty/serial/sunsab.c
848
struct uart_sunsab_port *up =
drivers/tty/serial/sunsab.c
851
sunsab_tec_wait(up);
drivers/tty/serial/sunsab.c
852
writeb(c, &up->regs->w.tic);
drivers/tty/serial/sunsab.c
857
struct uart_sunsab_port *up = &sunsab_ports[con->index];
drivers/tty/serial/sunsab.c
861
if (up->port.sysrq || oops_in_progress)
drivers/tty/serial/sunsab.c
862
locked = uart_port_trylock_irqsave(&up->port, &flags);
drivers/tty/serial/sunsab.c
864
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/sunsab.c
866
uart_console_write(&up->port, s, n, sunsab_console_putchar);
drivers/tty/serial/sunsab.c
867
sunsab_tec_wait(up);
drivers/tty/serial/sunsab.c
870
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/sunsab.c
875
struct uart_sunsab_port *up = &sunsab_ports[con->index];
drivers/tty/serial/sunsab.c
885
if (up->port.type != PORT_SUNSAB)
drivers/tty/serial/sunsab.c
891
sunserial_console_termios(con, up->port.dev->of_node);
drivers/tty/serial/sunsab.c
912
spin_lock_init(&up->port.lock);
drivers/tty/serial/sunsab.c
917
sunsab_startup(&up->port);
drivers/tty/serial/sunsab.c
919
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/sunsab.c
92
static __inline__ void sunsab_tec_wait(struct uart_sunsab_port *up)
drivers/tty/serial/sunsab.c
924
up->interrupt_mask0 = SAB82532_IMR0_PERR | SAB82532_IMR0_FERR |
drivers/tty/serial/sunsab.c
926
writeb(up->interrupt_mask0, &up->regs->w.imr0);
drivers/tty/serial/sunsab.c
927
up->interrupt_mask1 = SAB82532_IMR1_BRKT | SAB82532_IMR1_ALLS |
drivers/tty/serial/sunsab.c
931
writeb(up->interrupt_mask1, &up->regs->w.imr1);
drivers/tty/serial/sunsab.c
933
quot = uart_get_divisor(&up->port, baud);
drivers/tty/serial/sunsab.c
934
sunsab_convert_to_sab(up, con->cflag, 0, baud, quot);
drivers/tty/serial/sunsab.c
935
sunsab_set_mctrl(&up->port, TIOCM_DTR | TIOCM_RTS);
drivers/tty/serial/sunsab.c
937
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/sunsab.c
94
int timeout = up->tec_timeout;
drivers/tty/serial/sunsab.c
96
while ((readb(&up->regs->r.star) & SAB82532_STAR_TEC) && --timeout)
drivers/tty/serial/sunsab.c
961
static int sunsab_init_one(struct uart_sunsab_port *up,
drivers/tty/serial/sunsab.c
966
up->port.line = line;
drivers/tty/serial/sunsab.c
967
up->port.dev = &op->dev;
drivers/tty/serial/sunsab.c
969
up->port.mapbase = op->resource[0].start + offset;
drivers/tty/serial/sunsab.c
970
up->port.membase = of_ioremap(&op->resource[0], offset,
drivers/tty/serial/sunsab.c
973
if (!up->port.membase)
drivers/tty/serial/sunsab.c
975
up->regs = (union sab82532_async_regs __iomem *) up->port.membase;
drivers/tty/serial/sunsab.c
977
up->port.irq = op->archdata.irqs[0];
drivers/tty/serial/sunsab.c
979
up->port.fifosize = SAB82532_XMIT_FIFO_SIZE;
drivers/tty/serial/sunsab.c
980
up->port.iotype = UPIO_MEM;
drivers/tty/serial/sunsab.c
981
up->port.has_sysrq = IS_ENABLED(CONFIG_SERIAL_SUNSAB_CONSOLE);
drivers/tty/serial/sunsab.c
983
writeb(SAB82532_IPC_IC_ACT_LOW, &up->regs->w.ipc);
drivers/tty/serial/sunsab.c
985
up->port.ops = &sunsab_pops;
drivers/tty/serial/sunsab.c
986
up->port.type = PORT_SUNSAB;
drivers/tty/serial/sunsab.c
987
up->port.uartclk = SAB_BASE_BAUD;
drivers/tty/serial/sunsab.c
989
up->type = readb(&up->regs->r.vstr) & 0x0f;
drivers/tty/serial/sunsab.c
990
writeb(~((1 << 1) | (1 << 2) | (1 << 4)), &up->regs->w.pcr);
drivers/tty/serial/sunsab.c
991
writeb(0xff, &up->regs->w.pim);
drivers/tty/serial/sunsab.c
992
if ((up->port.line & 0x1) == 0) {
drivers/tty/serial/sunsab.c
993
up->pvr_dsr_bit = (1 << 0);
drivers/tty/serial/sunsab.c
994
up->pvr_dtr_bit = (1 << 1);
drivers/tty/serial/sunsab.c
995
up->gis_shift = 2;
drivers/tty/serial/sunsab.c
997
up->pvr_dsr_bit = (1 << 3);
drivers/tty/serial/sunsab.c
998
up->pvr_dtr_bit = (1 << 2);
drivers/tty/serial/sunsab.c
999
up->gis_shift = 0;
drivers/tty/serial/sunsu.c
1000
up->serio_open = 0;
drivers/tty/serial/sunsu.c
1006
static void sunsu_autoconfig(struct uart_sunsu_port *up)
drivers/tty/serial/sunsu.c
1012
if (up->su_type == SU_PORT_NONE)
drivers/tty/serial/sunsu.c
1015
up->type_probed = PORT_UNKNOWN;
drivers/tty/serial/sunsu.c
1016
up->port.iotype = UPIO_MEM;
drivers/tty/serial/sunsu.c
1018
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/sunsu.c
1020
if (!(up->port.flags & UPF_BUGGY_UART)) {
drivers/tty/serial/sunsu.c
1030
scratch = serial_in(up, UART_IER);
drivers/tty/serial/sunsu.c
1031
serial_out(up, UART_IER, 0);
drivers/tty/serial/sunsu.c
1035
scratch2 = serial_in(up, UART_IER);
drivers/tty/serial/sunsu.c
1036
serial_out(up, UART_IER, 0x0f);
drivers/tty/serial/sunsu.c
104
static unsigned int serial_in(struct uart_sunsu_port *up, int offset)
drivers/tty/serial/sunsu.c
1040
scratch3 = serial_in(up, UART_IER);
drivers/tty/serial/sunsu.c
1041
serial_out(up, UART_IER, scratch);
drivers/tty/serial/sunsu.c
1046
save_mcr = serial_in(up, UART_MCR);
drivers/tty/serial/sunsu.c
1047
save_lcr = serial_in(up, UART_LCR);
drivers/tty/serial/sunsu.c
1058
if (!(up->port.flags & UPF_SKIP_TEST)) {
drivers/tty/serial/sunsu.c
1059
serial_out(up, UART_MCR, UART_MCR_LOOP | 0x0A);
drivers/tty/serial/sunsu.c
106
offset <<= up->port.regshift;
drivers/tty/serial/sunsu.c
1060
status1 = serial_in(up, UART_MSR) & 0xF0;
drivers/tty/serial/sunsu.c
1061
serial_out(up, UART_MCR, save_mcr);
drivers/tty/serial/sunsu.c
1065
serial_out(up, UART_LCR, 0xBF); /* set up for StarTech test */
drivers/tty/serial/sunsu.c
1066
serial_out(up, UART_EFR, 0); /* EFR is the same as FCR */
drivers/tty/serial/sunsu.c
1067
serial_out(up, UART_LCR, 0);
drivers/tty/serial/sunsu.c
1068
serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO);
drivers/tty/serial/sunsu.c
1069
scratch = serial_in(up, UART_IIR) >> 6;
drivers/tty/serial/sunsu.c
1072
up->port.type = PORT_16450;
drivers/tty/serial/sunsu.c
1075
up->port.type = PORT_UNKNOWN;
drivers/tty/serial/sunsu.c
1078
up->port.type = PORT_16550;
drivers/tty/serial/sunsu.c
108
switch (up->port.iotype) {
drivers/tty/serial/sunsu.c
1081
up->port.type = PORT_16550A;
drivers/tty/serial/sunsu.c
1084
if (up->port.type == PORT_16550A) {
drivers/tty/serial/sunsu.c
1086
serial_out(up, UART_LCR, UART_LCR_DLAB);
drivers/tty/serial/sunsu.c
1087
if (serial_in(up, UART_EFR) == 0) {
drivers/tty/serial/sunsu.c
1088
up->port.type = PORT_16650;
drivers/tty/serial/sunsu.c
1090
serial_out(up, UART_LCR, 0xBF);
drivers/tty/serial/sunsu.c
1091
if (serial_in(up, UART_EFR) == 0)
drivers/tty/serial/sunsu.c
1092
up->port.type = PORT_16650V2;
drivers/tty/serial/sunsu.c
1095
if (up->port.type == PORT_16550A) {
drivers/tty/serial/sunsu.c
1097
serial_out(up, UART_LCR, save_lcr | UART_LCR_DLAB);
drivers/tty/serial/sunsu.c
1098
serial_out(up, UART_FCR,
drivers/tty/serial/sunsu.c
110
outb(up->port.hub6 - 1 + offset, up->port.iobase);
drivers/tty/serial/sunsu.c
1100
scratch = serial_in(up, UART_IIR) >> 5;
drivers/tty/serial/sunsu.c
1108
serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO);
drivers/tty/serial/sunsu.c
1109
serial_out(up, UART_LCR, 0);
drivers/tty/serial/sunsu.c
111
return inb(up->port.iobase + 1);
drivers/tty/serial/sunsu.c
1110
serial_out(up, UART_FCR,
drivers/tty/serial/sunsu.c
1112
scratch = serial_in(up, UART_IIR) >> 5;
drivers/tty/serial/sunsu.c
1114
up->port.type = PORT_16750;
drivers/tty/serial/sunsu.c
1116
serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO);
drivers/tty/serial/sunsu.c
1118
serial_out(up, UART_LCR, save_lcr);
drivers/tty/serial/sunsu.c
1119
if (up->port.type == PORT_16450) {
drivers/tty/serial/sunsu.c
1120
scratch = serial_in(up, UART_SCR);
drivers/tty/serial/sunsu.c
1121
serial_out(up, UART_SCR, 0xa5);
drivers/tty/serial/sunsu.c
1122
status1 = serial_in(up, UART_SCR);
drivers/tty/serial/sunsu.c
1123
serial_out(up, UART_SCR, 0x5a);
drivers/tty/serial/sunsu.c
1124
status2 = serial_in(up, UART_SCR);
drivers/tty/serial/sunsu.c
1125
serial_out(up, UART_SCR, scratch);
drivers/tty/serial/sunsu.c
1128
up->port.type = PORT_8250;
drivers/tty/serial/sunsu.c
1131
up->port.fifosize = uart_config[up->port.type].dfl_xmit_fifo_size;
drivers/tty/serial/sunsu.c
1133
if (up->port.type == PORT_UNKNOWN)
drivers/tty/serial/sunsu.c
1135
up->type_probed = up->port.type; /* XXX */
drivers/tty/serial/sunsu.c
114
return readb(up->port.membase + offset);
drivers/tty/serial/sunsu.c
1141
if (up->port.type == PORT_RSA)
drivers/tty/serial/sunsu.c
1142
serial_out(up, UART_RSA_FRR, 0);
drivers/tty/serial/sunsu.c
1144
serial_out(up, UART_MCR, save_mcr);
drivers/tty/serial/sunsu.c
1145
serial_out(up, UART_FCR, (UART_FCR_ENABLE_FIFO |
drivers/tty/serial/sunsu.c
1148
serial_out(up, UART_FCR, 0);
drivers/tty/serial/sunsu.c
1149
(void)serial_in(up, UART_RX);
drivers/tty/serial/sunsu.c
1150
serial_out(up, UART_IER, 0);
drivers/tty/serial/sunsu.c
1153
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/sunsu.c
1163
static int sunsu_kbd_ms_init(struct uart_sunsu_port *up)
drivers/tty/serial/sunsu.c
117
return inb(up->port.iobase + offset);
drivers/tty/serial/sunsu.c
1170
if (up->su_type == SU_PORT_KBD) {
drivers/tty/serial/sunsu.c
1171
up->cflag = B1200 | CS8 | CLOCAL | CREAD;
drivers/tty/serial/sunsu.c
1174
up->cflag = B4800 | CS8 | CLOCAL | CREAD;
drivers/tty/serial/sunsu.c
1177
quot = up->port.uartclk / (16 * baud);
drivers/tty/serial/sunsu.c
1179
sunsu_autoconfig(up);
drivers/tty/serial/sunsu.c
1180
if (up->port.type == PORT_UNKNOWN)
drivers/tty/serial/sunsu.c
1184
up->port.dev->of_node,
drivers/tty/serial/sunsu.c
1185
(up->su_type == SU_PORT_KBD) ? "Keyboard" : "Mouse",
drivers/tty/serial/sunsu.c
1186
(unsigned long long) up->port.mapbase,
drivers/tty/serial/sunsu.c
1187
up->port.irq);
drivers/tty/serial/sunsu.c
1190
serio = &up->serio;
drivers/tty/serial/sunsu.c
1191
serio->port_data = up;
drivers/tty/serial/sunsu.c
1194
if (up->su_type == SU_PORT_KBD) {
drivers/tty/serial/sunsu.c
1203
(!(up->port.line & 1) ? "su/serio0" : "su/serio1"),
drivers/tty/serial/sunsu.c
1209
serio->dev.parent = up->port.dev;
drivers/tty/serial/sunsu.c
121
static void serial_out(struct uart_sunsu_port *up, int offset, int value)
drivers/tty/serial/sunsu.c
1214
sunsu_change_speed(&up->port, up->cflag, 0, quot);
drivers/tty/serial/sunsu.c
1216
sunsu_startup(&up->port);
drivers/tty/serial/sunsu.c
1231
static void wait_for_xmitr(struct uart_sunsu_port *up)
drivers/tty/serial/sunsu.c
1237
status = serial_in(up, UART_LSR);
drivers/tty/serial/sunsu.c
1240
up->lsr_break_flag = UART_LSR_BI;
drivers/tty/serial/sunsu.c
1248
if (up->port.flags & UPF_CONS_FLOW) {
drivers/tty/serial/sunsu.c
1251
((serial_in(up, UART_MSR) & UART_MSR_CTS) == 0))
drivers/tty/serial/sunsu.c
1258
struct uart_sunsu_port *up =
drivers/tty/serial/sunsu.c
1261
wait_for_xmitr(up);
drivers/tty/serial/sunsu.c
1262
serial_out(up, UART_TX, ch);
drivers/tty/serial/sunsu.c
1272
struct uart_sunsu_port *up = &sunsu_ports[co->index];
drivers/tty/serial/sunsu.c
1277
if (up->port.sysrq || oops_in_progress)
drivers/tty/serial/sunsu.c
1278
locked = uart_port_trylock_irqsave(&up->port, &flags);
drivers/tty/serial/sunsu.c
1280
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/sunsu.c
1285
ier = serial_in(up, UART_IER);
drivers/tty/serial/sunsu.c
1286
serial_out(up, UART_IER, 0);
drivers/tty/serial/sunsu.c
1288
uart_console_write(&up->port, s, count, sunsu_console_putchar);
drivers/tty/serial/sunsu.c
1294
wait_for_xmitr(up);
drivers/tty/serial/sunsu.c
1295
serial_out(up, UART_IER, ier);
drivers/tty/serial/sunsu.c
1298
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/sunsu.c
136
offset <<= up->port.regshift;
drivers/tty/serial/sunsu.c
138
switch (up->port.iotype) {
drivers/tty/serial/sunsu.c
1389
struct uart_sunsu_port *up;
drivers/tty/serial/sunsu.c
1399
up = &sunsu_ports[nr_inst];
drivers/tty/serial/sunsu.c
140
outb(up->port.hub6 - 1 + offset, up->port.iobase);
drivers/tty/serial/sunsu.c
1401
up = kzalloc_obj(*up);
drivers/tty/serial/sunsu.c
1402
if (!up)
drivers/tty/serial/sunsu.c
1406
up->port.line = nr_inst;
drivers/tty/serial/sunsu.c
1408
spin_lock_init(&up->port.lock);
drivers/tty/serial/sunsu.c
141
outb(value, up->port.iobase + 1);
drivers/tty/serial/sunsu.c
1410
up->su_type = type;
drivers/tty/serial/sunsu.c
1413
up->port.mapbase = rp->start;
drivers/tty/serial/sunsu.c
1414
up->reg_size = resource_size(rp);
drivers/tty/serial/sunsu.c
1415
up->port.membase = of_ioremap(rp, 0, up->reg_size, "su");
drivers/tty/serial/sunsu.c
1416
if (!up->port.membase) {
drivers/tty/serial/sunsu.c
1418
kfree(up);
drivers/tty/serial/sunsu.c
1422
up->port.irq = op->archdata.irqs[0];
drivers/tty/serial/sunsu.c
1424
up->port.dev = &op->dev;
drivers/tty/serial/sunsu.c
1426
up->port.type = PORT_UNKNOWN;
drivers/tty/serial/sunsu.c
1427
up->port.uartclk = (SU_BASE_BAUD * 16);
drivers/tty/serial/sunsu.c
1428
up->port.has_sysrq = IS_ENABLED(CONFIG_SERIAL_SUNSU_CONSOLE);
drivers/tty/serial/sunsu.c
1431
if (up->su_type == SU_PORT_KBD || up->su_type == SU_PORT_MS) {
drivers/tty/serial/sunsu.c
1432
err = sunsu_kbd_ms_init(up);
drivers/tty/serial/sunsu.c
1435
up->port.membase, up->reg_size);
drivers/tty/serial/sunsu.c
1436
kfree(up);
drivers/tty/serial/sunsu.c
1439
platform_set_drvdata(op, up);
drivers/tty/serial/sunsu.c
1446
up->port.flags |= UPF_BOOT_AUTOCONF;
drivers/tty/serial/sunsu.c
1448
sunsu_autoconfig(up);
drivers/tty/serial/sunsu.c
145
writeb(value, up->port.membase + offset);
drivers/tty/serial/sunsu.c
1451
if (up->port.type == PORT_UNKNOWN)
drivers/tty/serial/sunsu.c
1454
up->port.ops = &sunsu_pops;
drivers/tty/serial/sunsu.c
1462
&sunsu_reg, up->port.line,
drivers/tty/serial/sunsu.c
1464
err = uart_add_one_port(&sunsu_reg, &up->port);
drivers/tty/serial/sunsu.c
1468
platform_set_drvdata(op, up);
drivers/tty/serial/sunsu.c
1475
of_iounmap(&op->resource[0], up->port.membase, up->reg_size);
drivers/tty/serial/sunsu.c
1476
kfree(up);
drivers/tty/serial/sunsu.c
1482
struct uart_sunsu_port *up = platform_get_drvdata(op);
drivers/tty/serial/sunsu.c
1485
if (up->su_type == SU_PORT_MS ||
drivers/tty/serial/sunsu.c
1486
up->su_type == SU_PORT_KBD)
drivers/tty/serial/sunsu.c
149
outb(value, up->port.iobase + offset);
drivers/tty/serial/sunsu.c
1491
serio_unregister_port(&up->serio);
drivers/tty/serial/sunsu.c
1493
} else if (up->port.type != PORT_UNKNOWN)
drivers/tty/serial/sunsu.c
1494
uart_remove_one_port(&sunsu_reg, &up->port);
drivers/tty/serial/sunsu.c
1496
if (up->port.membase)
drivers/tty/serial/sunsu.c
1497
of_iounmap(&op->resource[0], up->port.membase, up->reg_size);
drivers/tty/serial/sunsu.c
1500
kfree(up);
drivers/tty/serial/sunsu.c
156
static void serial_icr_write(struct uart_sunsu_port *up, int offset, int value)
drivers/tty/serial/sunsu.c
158
serial_out(up, UART_SCR, offset);
drivers/tty/serial/sunsu.c
159
serial_out(up, UART_ICR, value);
drivers/tty/serial/sunsu.c
167
static int __enable_rsa(struct uart_sunsu_port *up)
drivers/tty/serial/sunsu.c
172
mode = serial_in(up, UART_RSA_MSR);
drivers/tty/serial/sunsu.c
176
serial_out(up, UART_RSA_MSR, mode | UART_RSA_MSR_FIFO);
drivers/tty/serial/sunsu.c
177
mode = serial_in(up, UART_RSA_MSR);
drivers/tty/serial/sunsu.c
182
up->port.uartclk = SERIAL_RSA_BAUD_BASE * 16;
drivers/tty/serial/sunsu.c
187
static void enable_rsa(struct uart_sunsu_port *up)
drivers/tty/serial/sunsu.c
189
if (up->port.type == PORT_RSA) {
drivers/tty/serial/sunsu.c
190
if (up->port.uartclk != SERIAL_RSA_BAUD_BASE * 16) {
drivers/tty/serial/sunsu.c
191
uart_port_lock_irq(&up->port);
drivers/tty/serial/sunsu.c
192
__enable_rsa(up);
drivers/tty/serial/sunsu.c
193
uart_port_unlock_irq(&up->port);
drivers/tty/serial/sunsu.c
195
if (up->port.uartclk == SERIAL_RSA_BAUD_BASE * 16)
drivers/tty/serial/sunsu.c
196
serial_out(up, UART_RSA_FRR, 0);
drivers/tty/serial/sunsu.c
206
static void disable_rsa(struct uart_sunsu_port *up)
drivers/tty/serial/sunsu.c
211
if (up->port.type == PORT_RSA &&
drivers/tty/serial/sunsu.c
212
up->port.uartclk == SERIAL_RSA_BAUD_BASE * 16) {
drivers/tty/serial/sunsu.c
213
uart_port_lock_irq(&up->port);
drivers/tty/serial/sunsu.c
215
mode = serial_in(up, UART_RSA_MSR);
drivers/tty/serial/sunsu.c
219
serial_out(up, UART_RSA_MSR, mode & ~UART_RSA_MSR_FIFO);
drivers/tty/serial/sunsu.c
220
mode = serial_in(up, UART_RSA_MSR);
drivers/tty/serial/sunsu.c
225
up->port.uartclk = SERIAL_RSA_BAUD_BASE_LO * 16;
drivers/tty/serial/sunsu.c
226
uart_port_unlock_irq(&up->port);
drivers/tty/serial/sunsu.c
241
struct uart_sunsu_port *up =
drivers/tty/serial/sunsu.c
244
__stop_tx(up);
drivers/tty/serial/sunsu.c
249
if (up->port.type == PORT_16C950) {
drivers/tty/serial/sunsu.c
250
up->acr |= UART_ACR_TXDIS;
drivers/tty/serial/sunsu.c
251
serial_icr_write(up, UART_ACR, up->acr);
drivers/tty/serial/sunsu.c
257
struct uart_sunsu_port *up =
drivers/tty/serial/sunsu.c
260
if (!(up->ier & UART_IER_THRI)) {
drivers/tty/serial/sunsu.c
261
up->ier |= UART_IER_THRI;
drivers/tty/serial/sunsu.c
262
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/sunsu.c
268
if (up->port.type == PORT_16C950 && up->acr & UART_ACR_TXDIS) {
drivers/tty/serial/sunsu.c
269
up->acr &= ~UART_ACR_TXDIS;
drivers/tty/serial/sunsu.c
270
serial_icr_write(up, UART_ACR, up->acr);
drivers/tty/serial/sunsu.c
276
struct uart_sunsu_port *up =
drivers/tty/serial/sunsu.c
279
up->ier &= ~UART_IER_RLSI;
drivers/tty/serial/sunsu.c
280
up->port.read_status_mask &= ~UART_LSR_DR;
drivers/tty/serial/sunsu.c
281
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/sunsu.c
286
struct uart_sunsu_port *up =
drivers/tty/serial/sunsu.c
290
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/sunsu.c
291
up->ier |= UART_IER_MSI;
drivers/tty/serial/sunsu.c
292
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/sunsu.c
293
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/sunsu.c
297
receive_chars(struct uart_sunsu_port *up, unsigned char *status)
drivers/tty/serial/sunsu.c
299
struct tty_port *port = &up->port.state->port;
drivers/tty/serial/sunsu.c
305
ch = serial_in(up, UART_RX);
drivers/tty/serial/sunsu.c
307
up->port.icount.rx++;
drivers/tty/serial/sunsu.c
316
up->port.icount.brk++;
drivers/tty/serial/sunsu.c
317
if (up->port.cons != NULL &&
drivers/tty/serial/sunsu.c
318
up->port.line == up->port.cons->index)
drivers/tty/serial/sunsu.c
326
if (uart_handle_break(&up->port))
drivers/tty/serial/sunsu.c
329
up->port.icount.parity++;
drivers/tty/serial/sunsu.c
331
up->port.icount.frame++;
drivers/tty/serial/sunsu.c
333
up->port.icount.overrun++;
drivers/tty/serial/sunsu.c
338
*status &= up->port.read_status_mask;
drivers/tty/serial/sunsu.c
340
if (up->port.cons != NULL &&
drivers/tty/serial/sunsu.c
341
up->port.line == up->port.cons->index) {
drivers/tty/serial/sunsu.c
343
*status |= up->lsr_break_flag;
drivers/tty/serial/sunsu.c
344
up->lsr_break_flag = 0;
drivers/tty/serial/sunsu.c
354
if (uart_handle_sysrq_char(&up->port, ch))
drivers/tty/serial/sunsu.c
356
if ((*status & up->port.ignore_status_mask) == 0)
drivers/tty/serial/sunsu.c
366
*status = serial_in(up, UART_LSR);
drivers/tty/serial/sunsu.c
373
static void transmit_chars(struct uart_sunsu_port *up)
drivers/tty/serial/sunsu.c
375
struct tty_port *tport = &up->port.state->port;
drivers/tty/serial/sunsu.c
379
if (up->port.x_char) {
drivers/tty/serial/sunsu.c
380
serial_out(up, UART_TX, up->port.x_char);
drivers/tty/serial/sunsu.c
381
up->port.icount.tx++;
drivers/tty/serial/sunsu.c
382
up->port.x_char = 0;
drivers/tty/serial/sunsu.c
385
if (uart_tx_stopped(&up->port)) {
drivers/tty/serial/sunsu.c
386
sunsu_stop_tx(&up->port);
drivers/tty/serial/sunsu.c
390
__stop_tx(up);
drivers/tty/serial/sunsu.c
394
count = up->port.fifosize;
drivers/tty/serial/sunsu.c
396
if (!uart_fifo_get(&up->port, &ch))
drivers/tty/serial/sunsu.c
399
serial_out(up, UART_TX, ch);
drivers/tty/serial/sunsu.c
403
uart_write_wakeup(&up->port);
drivers/tty/serial/sunsu.c
406
__stop_tx(up);
drivers/tty/serial/sunsu.c
409
static void check_modem_status(struct uart_sunsu_port *up)
drivers/tty/serial/sunsu.c
413
status = serial_in(up, UART_MSR);
drivers/tty/serial/sunsu.c
419
up->port.icount.rng++;
drivers/tty/serial/sunsu.c
421
up->port.icount.dsr++;
drivers/tty/serial/sunsu.c
423
uart_handle_dcd_change(&up->port, status & UART_MSR_DCD);
drivers/tty/serial/sunsu.c
425
uart_handle_cts_change(&up->port, status & UART_MSR_CTS);
drivers/tty/serial/sunsu.c
427
wake_up_interruptible(&up->port.state->port.delta_msr_wait);
drivers/tty/serial/sunsu.c
432
struct uart_sunsu_port *up = dev_id;
drivers/tty/serial/sunsu.c
436
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/sunsu.c
439
status = serial_in(up, UART_LSR);
drivers/tty/serial/sunsu.c
441
receive_chars(up, &status);
drivers/tty/serial/sunsu.c
442
check_modem_status(up);
drivers/tty/serial/sunsu.c
444
transmit_chars(up);
drivers/tty/serial/sunsu.c
446
tty_flip_buffer_push(&up->port.state->port);
drivers/tty/serial/sunsu.c
448
} while (!(serial_in(up, UART_IIR) & UART_IIR_NO_INT));
drivers/tty/serial/sunsu.c
450
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/sunsu.c
461
static void sunsu_change_mouse_baud(struct uart_sunsu_port *up)
drivers/tty/serial/sunsu.c
463
unsigned int cur_cflag = up->cflag;
drivers/tty/serial/sunsu.c
466
up->cflag &= ~CBAUD;
drivers/tty/serial/sunsu.c
467
up->cflag |= suncore_mouse_baud_cflag_next(cur_cflag, &new_baud);
drivers/tty/serial/sunsu.c
469
quot = up->port.uartclk / (16 * new_baud);
drivers/tty/serial/sunsu.c
471
sunsu_change_speed(&up->port, up->cflag, 0, quot);
drivers/tty/serial/sunsu.c
474
static void receive_kbd_ms_chars(struct uart_sunsu_port *up, int is_break)
drivers/tty/serial/sunsu.c
477
unsigned char ch = serial_in(up, UART_RX);
drivers/tty/serial/sunsu.c
480
if (up->su_type == SU_PORT_KBD) {
drivers/tty/serial/sunsu.c
482
serio_interrupt(&up->serio, ch, 0);
drivers/tty/serial/sunsu.c
484
} else if (up->su_type == SU_PORT_MS) {
drivers/tty/serial/sunsu.c
489
sunsu_change_mouse_baud(up);
drivers/tty/serial/sunsu.c
496
serio_interrupt(&up->serio, ch, 0);
drivers/tty/serial/sunsu.c
501
} while (serial_in(up, UART_LSR) & UART_LSR_DR);
drivers/tty/serial/sunsu.c
506
struct uart_sunsu_port *up = dev_id;
drivers/tty/serial/sunsu.c
508
if (!(serial_in(up, UART_IIR) & UART_IIR_NO_INT)) {
drivers/tty/serial/sunsu.c
509
unsigned char status = serial_in(up, UART_LSR);
drivers/tty/serial/sunsu.c
512
receive_kbd_ms_chars(up, (status & UART_LSR_BI) != 0);
drivers/tty/serial/sunsu.c
520
struct uart_sunsu_port *up =
drivers/tty/serial/sunsu.c
525
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/sunsu.c
526
ret = serial_in(up, UART_LSR) & UART_LSR_TEMT ? TIOCSER_TEMT : 0;
drivers/tty/serial/sunsu.c
527
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/sunsu.c
534
struct uart_sunsu_port *up =
drivers/tty/serial/sunsu.c
539
status = serial_in(up, UART_MSR);
drivers/tty/serial/sunsu.c
555
struct uart_sunsu_port *up =
drivers/tty/serial/sunsu.c
570
serial_out(up, UART_MCR, mcr);
drivers/tty/serial/sunsu.c
575
struct uart_sunsu_port *up =
drivers/tty/serial/sunsu.c
579
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/sunsu.c
581
up->lcr |= UART_LCR_SBC;
drivers/tty/serial/sunsu.c
583
up->lcr &= ~UART_LCR_SBC;
drivers/tty/serial/sunsu.c
584
serial_out(up, UART_LCR, up->lcr);
drivers/tty/serial/sunsu.c
585
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/sunsu.c
590
struct uart_sunsu_port *up =
drivers/tty/serial/sunsu.c
595
if (up->port.type == PORT_16C950) {
drivers/tty/serial/sunsu.c
597
up->acr = 0;
drivers/tty/serial/sunsu.c
598
serial_out(up, UART_LCR, 0xBF);
drivers/tty/serial/sunsu.c
599
serial_out(up, UART_EFR, UART_EFR_ECB);
drivers/tty/serial/sunsu.c
600
serial_out(up, UART_IER, 0);
drivers/tty/serial/sunsu.c
601
serial_out(up, UART_LCR, 0);
drivers/tty/serial/sunsu.c
602
serial_icr_write(up, UART_CSR, 0); /* Reset the UART */
drivers/tty/serial/sunsu.c
603
serial_out(up, UART_LCR, 0xBF);
drivers/tty/serial/sunsu.c
604
serial_out(up, UART_EFR, UART_EFR_ECB);
drivers/tty/serial/sunsu.c
605
serial_out(up, UART_LCR, 0);
drivers/tty/serial/sunsu.c
613
enable_rsa(up);
drivers/tty/serial/sunsu.c
620
if (uart_config[up->port.type].flags & UART_CLEAR_FIFO) {
drivers/tty/serial/sunsu.c
621
serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO);
drivers/tty/serial/sunsu.c
622
serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO |
drivers/tty/serial/sunsu.c
624
serial_out(up, UART_FCR, 0);
drivers/tty/serial/sunsu.c
630
(void) serial_in(up, UART_LSR);
drivers/tty/serial/sunsu.c
631
(void) serial_in(up, UART_RX);
drivers/tty/serial/sunsu.c
632
(void) serial_in(up, UART_IIR);
drivers/tty/serial/sunsu.c
633
(void) serial_in(up, UART_MSR);
drivers/tty/serial/sunsu.c
640
if (!(up->port.flags & UPF_BUGGY_UART) &&
drivers/tty/serial/sunsu.c
641
(serial_in(up, UART_LSR) == 0xff)) {
drivers/tty/serial/sunsu.c
642
printk("ttyS%d: LSR safety check engaged!\n", up->port.line);
drivers/tty/serial/sunsu.c
646
if (up->su_type != SU_PORT_PORT) {
drivers/tty/serial/sunsu.c
647
retval = request_irq(up->port.irq, sunsu_kbd_ms_interrupt,
drivers/tty/serial/sunsu.c
648
IRQF_SHARED, su_typev[up->su_type], up);
drivers/tty/serial/sunsu.c
650
retval = request_irq(up->port.irq, sunsu_serial_interrupt,
drivers/tty/serial/sunsu.c
651
IRQF_SHARED, su_typev[up->su_type], up);
drivers/tty/serial/sunsu.c
654
printk("su: Cannot register IRQ %d\n", up->port.irq);
drivers/tty/serial/sunsu.c
661
serial_out(up, UART_LCR, UART_LCR_WLEN8);
drivers/tty/serial/sunsu.c
663
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/sunsu.c
665
up->port.mctrl |= TIOCM_OUT2;
drivers/tty/serial/sunsu.c
667
sunsu_set_mctrl(&up->port, up->port.mctrl);
drivers/tty/serial/sunsu.c
668
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/sunsu.c
675
up->ier = UART_IER_RLSI | UART_IER_RDI;
drivers/tty/serial/sunsu.c
676
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/sunsu.c
678
if (up->port.flags & UPF_FOURPORT) {
drivers/tty/serial/sunsu.c
683
icp = (up->port.iobase & 0xfe0) | 0x01f;
drivers/tty/serial/sunsu.c
691
(void) serial_in(up, UART_LSR);
drivers/tty/serial/sunsu.c
692
(void) serial_in(up, UART_RX);
drivers/tty/serial/sunsu.c
693
(void) serial_in(up, UART_IIR);
drivers/tty/serial/sunsu.c
694
(void) serial_in(up, UART_MSR);
drivers/tty/serial/sunsu.c
701
struct uart_sunsu_port *up =
drivers/tty/serial/sunsu.c
708
up->ier = 0;
drivers/tty/serial/sunsu.c
709
serial_out(up, UART_IER, 0);
drivers/tty/serial/sunsu.c
711
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/sunsu.c
712
if (up->port.flags & UPF_FOURPORT) {
drivers/tty/serial/sunsu.c
714
inb((up->port.iobase & 0xfe0) | 0x1f);
drivers/tty/serial/sunsu.c
715
up->port.mctrl |= TIOCM_OUT1;
drivers/tty/serial/sunsu.c
717
up->port.mctrl &= ~TIOCM_OUT2;
drivers/tty/serial/sunsu.c
719
sunsu_set_mctrl(&up->port, up->port.mctrl);
drivers/tty/serial/sunsu.c
720
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/sunsu.c
725
serial_out(up, UART_LCR, serial_in(up, UART_LCR) & ~UART_LCR_SBC);
drivers/tty/serial/sunsu.c
726
serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO |
drivers/tty/serial/sunsu.c
729
serial_out(up, UART_FCR, 0);
drivers/tty/serial/sunsu.c
735
disable_rsa(up);
drivers/tty/serial/sunsu.c
741
(void) serial_in(up, UART_RX);
drivers/tty/serial/sunsu.c
743
free_irq(up->port.irq, up);
drivers/tty/serial/sunsu.c
750
struct uart_sunsu_port *up =
drivers/tty/serial/sunsu.c
785
if ((quot & 0xff) == 0 && up->port.type == PORT_16C950 &&
drivers/tty/serial/sunsu.c
786
up->rev == 0x5201)
drivers/tty/serial/sunsu.c
789
if (uart_config[up->port.type].flags & UART_USE_FIFO) {
drivers/tty/serial/sunsu.c
790
if ((up->port.uartclk / quot) < (2400 * 16))
drivers/tty/serial/sunsu.c
793
else if (up->port.type == PORT_RSA)
drivers/tty/serial/sunsu.c
799
if (up->port.type == PORT_16750)
drivers/tty/serial/sunsu.c
806
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/sunsu.c
813
up->port.read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR;
drivers/tty/serial/sunsu.c
815
up->port.read_status_mask |= UART_LSR_FE | UART_LSR_PE;
drivers/tty/serial/sunsu.c
817
up->port.read_status_mask |= UART_LSR_BI;
drivers/tty/serial/sunsu.c
822
up->port.ignore_status_mask = 0;
drivers/tty/serial/sunsu.c
824
up->port.ignore_status_mask |= UART_LSR_PE | UART_LSR_FE;
drivers/tty/serial/sunsu.c
826
up->port.ignore_status_mask |= UART_LSR_BI;
drivers/tty/serial/sunsu.c
832
up->port.ignore_status_mask |= UART_LSR_OE;
drivers/tty/serial/sunsu.c
839
up->port.ignore_status_mask |= UART_LSR_DR;
drivers/tty/serial/sunsu.c
844
up->ier &= ~UART_IER_MSI;
drivers/tty/serial/sunsu.c
845
if (UART_ENABLE_MS(&up->port, cflag))
drivers/tty/serial/sunsu.c
846
up->ier |= UART_IER_MSI;
drivers/tty/serial/sunsu.c
848
serial_out(up, UART_IER, up->ier);
drivers/tty/serial/sunsu.c
850
if (uart_config[up->port.type].flags & UART_STARTECH) {
drivers/tty/serial/sunsu.c
851
serial_out(up, UART_LCR, 0xBF);
drivers/tty/serial/sunsu.c
852
serial_out(up, UART_EFR, cflag & CRTSCTS ? UART_EFR_CTS :0);
drivers/tty/serial/sunsu.c
854
serial_out(up, UART_LCR, cval | UART_LCR_DLAB);/* set DLAB */
drivers/tty/serial/sunsu.c
855
serial_out(up, UART_DLL, quot & 0xff); /* LS of divisor */
drivers/tty/serial/sunsu.c
856
serial_out(up, UART_DLM, quot >> 8); /* MS of divisor */
drivers/tty/serial/sunsu.c
857
if (up->port.type == PORT_16750)
drivers/tty/serial/sunsu.c
858
serial_out(up, UART_FCR, fcr); /* set fcr */
drivers/tty/serial/sunsu.c
859
serial_out(up, UART_LCR, cval); /* reset DLAB */
drivers/tty/serial/sunsu.c
860
up->lcr = cval; /* Save LCR */
drivers/tty/serial/sunsu.c
861
if (up->port.type != PORT_16750) {
drivers/tty/serial/sunsu.c
864
serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO);
drivers/tty/serial/sunsu.c
866
serial_out(up, UART_FCR, fcr); /* set fcr */
drivers/tty/serial/sunsu.c
869
up->cflag = cflag;
drivers/tty/serial/sunsu.c
871
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/sunsu.c
900
struct uart_sunsu_port *up =
drivers/tty/serial/sunsu.c
909
port->type = up->type_probed; /* XXX */
drivers/tty/serial/sunsu.c
959
struct uart_sunsu_port *up = serio->port_data;
drivers/tty/serial/sunsu.c
966
lsr = serial_in(up, UART_LSR);
drivers/tty/serial/sunsu.c
970
serial_out(up, UART_TX, ch);
drivers/tty/serial/sunsu.c
979
struct uart_sunsu_port *up = serio->port_data;
drivers/tty/serial/sunsu.c
984
if (!up->serio_open) {
drivers/tty/serial/sunsu.c
985
up->serio_open = 1;
drivers/tty/serial/sunsu.c
996
struct uart_sunsu_port *up = serio->port_data;
drivers/tty/serial/sunzilog.c
1001
struct uart_sunzilog_port *up =
drivers/tty/serial/sunzilog.c
1004
= ZILOG_CHANNEL_FROM_PORT(&up->port);
drivers/tty/serial/sunzilog.c
1029
ch &= up->parity_mask;
drivers/tty/serial/sunzilog.c
1036
struct uart_sunzilog_port *up =
drivers/tty/serial/sunzilog.c
1039
sunzilog_putchar(&up->port, ch);
drivers/tty/serial/sunzilog.c
1081
struct uart_sunzilog_port *up;
drivers/tty/serial/sunzilog.c
1092
up = &sunzilog_port_table[i];
drivers/tty/serial/sunzilog.c
1094
spin_lock_init(&up->port.lock);
drivers/tty/serial/sunzilog.c
1097
sunzilog_irq_chain = up;
drivers/tty/serial/sunzilog.c
1100
up->next = up + 1;
drivers/tty/serial/sunzilog.c
1102
up->next = NULL;
drivers/tty/serial/sunzilog.c
1153
struct uart_sunzilog_port *up = serio->port_data;
drivers/tty/serial/sunzilog.c
1158
sunzilog_putchar(&up->port, ch);
drivers/tty/serial/sunzilog.c
1167
struct uart_sunzilog_port *up = serio->port_data;
drivers/tty/serial/sunzilog.c
1172
if (!up->serio_open) {
drivers/tty/serial/sunzilog.c
1173
up->serio_open = 1;
drivers/tty/serial/sunzilog.c
1184
struct uart_sunzilog_port *up = serio->port_data;
drivers/tty/serial/sunzilog.c
1188
up->serio_open = 0;
drivers/tty/serial/sunzilog.c
1198
struct uart_sunzilog_port *up = &sunzilog_port_table[con->index];
drivers/tty/serial/sunzilog.c
1202
if (up->port.sysrq || oops_in_progress)
drivers/tty/serial/sunzilog.c
1203
locked = uart_port_trylock_irqsave(&up->port, &flags);
drivers/tty/serial/sunzilog.c
1205
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/sunzilog.c
1207
uart_console_write(&up->port, s, count, sunzilog_putchar);
drivers/tty/serial/sunzilog.c
1211
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/sunzilog.c
1216
struct uart_sunzilog_port *up = &sunzilog_port_table[con->index];
drivers/tty/serial/sunzilog.c
1220
if (up->port.type != PORT_SUNZILOG)
drivers/tty/serial/sunzilog.c
1227
sunserial_console_termios(con, up->port.dev->of_node);
drivers/tty/serial/sunzilog.c
1246
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/sunzilog.c
1248
up->curregs[R15] |= BRKIE;
drivers/tty/serial/sunzilog.c
1249
sunzilog_convert_to_zs(up, con->cflag, 0, brg);
drivers/tty/serial/sunzilog.c
1251
sunzilog_set_mctrl(&up->port, TIOCM_DTR | TIOCM_RTS);
drivers/tty/serial/sunzilog.c
1252
__sunzilog_startup(up);
drivers/tty/serial/sunzilog.c
1254
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/sunzilog.c
1278
static void sunzilog_init_kbdms(struct uart_sunzilog_port *up)
drivers/tty/serial/sunzilog.c
1282
if (up->flags & SUNZILOG_FLAG_CONS_KEYB) {
drivers/tty/serial/sunzilog.c
1283
up->cflag = B1200 | CS8 | CLOCAL | CREAD;
drivers/tty/serial/sunzilog.c
1286
up->cflag = B4800 | CS8 | CLOCAL | CREAD;
drivers/tty/serial/sunzilog.c
1290
up->curregs[R15] |= BRKIE;
drivers/tty/serial/sunzilog.c
1292
sunzilog_convert_to_zs(up, up->cflag, 0, brg);
drivers/tty/serial/sunzilog.c
1293
sunzilog_set_mctrl(&up->port, TIOCM_DTR | TIOCM_RTS);
drivers/tty/serial/sunzilog.c
1294
__sunzilog_startup(up);
drivers/tty/serial/sunzilog.c
1298
static void sunzilog_register_serio(struct uart_sunzilog_port *up)
drivers/tty/serial/sunzilog.c
1300
struct serio *serio = &up->serio;
drivers/tty/serial/sunzilog.c
1302
serio->port_data = up;
drivers/tty/serial/sunzilog.c
1305
if (up->flags & SUNZILOG_FLAG_CONS_KEYB) {
drivers/tty/serial/sunzilog.c
1314
((up->flags & SUNZILOG_FLAG_CONS_KEYB) ?
drivers/tty/serial/sunzilog.c
1321
serio->dev.parent = up->port.dev;
drivers/tty/serial/sunzilog.c
1327
static void sunzilog_init_hw(struct uart_sunzilog_port *up)
drivers/tty/serial/sunzilog.c
1333
channel = ZILOG_CHANNEL_FROM_PORT(&up->port);
drivers/tty/serial/sunzilog.c
1335
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/sunzilog.c
1336
if (ZS_IS_CHANNEL_A(up)) {
drivers/tty/serial/sunzilog.c
1342
if (up->flags & (SUNZILOG_FLAG_CONS_KEYB |
drivers/tty/serial/sunzilog.c
1344
up->curregs[R1] = EXT_INT_ENAB | INT_ALL_Rx | TxINT_ENAB;
drivers/tty/serial/sunzilog.c
1345
up->curregs[R4] = PAR_EVEN | X16CLK | SB1;
drivers/tty/serial/sunzilog.c
1346
up->curregs[R3] = RxENAB | Rx8;
drivers/tty/serial/sunzilog.c
1347
up->curregs[R5] = TxENAB | Tx8;
drivers/tty/serial/sunzilog.c
1348
up->curregs[R6] = 0x00; /* SDLC Address */
drivers/tty/serial/sunzilog.c
1349
up->curregs[R7] = 0x7E; /* SDLC Flag */
drivers/tty/serial/sunzilog.c
1350
up->curregs[R9] = NV;
drivers/tty/serial/sunzilog.c
1351
up->curregs[R7p] = 0x00;
drivers/tty/serial/sunzilog.c
1352
sunzilog_init_kbdms(up);
drivers/tty/serial/sunzilog.c
1354
if (up->flags & SUNZILOG_FLAG_ISR_HANDLER)
drivers/tty/serial/sunzilog.c
1355
up->curregs[R9] |= MIE;
drivers/tty/serial/sunzilog.c
1356
write_zsreg(channel, R9, up->curregs[R9]);
drivers/tty/serial/sunzilog.c
1359
up->parity_mask = 0xff;
drivers/tty/serial/sunzilog.c
1360
up->curregs[R1] = EXT_INT_ENAB | INT_ALL_Rx | TxINT_ENAB;
drivers/tty/serial/sunzilog.c
1361
up->curregs[R4] = PAR_EVEN | X16CLK | SB1;
drivers/tty/serial/sunzilog.c
1362
up->curregs[R3] = RxENAB | Rx8;
drivers/tty/serial/sunzilog.c
1363
up->curregs[R5] = TxENAB | Tx8;
drivers/tty/serial/sunzilog.c
1364
up->curregs[R6] = 0x00; /* SDLC Address */
drivers/tty/serial/sunzilog.c
1365
up->curregs[R7] = 0x7E; /* SDLC Flag */
drivers/tty/serial/sunzilog.c
1366
up->curregs[R9] = NV;
drivers/tty/serial/sunzilog.c
1367
up->curregs[R10] = NRZ;
drivers/tty/serial/sunzilog.c
1368
up->curregs[R11] = TCBR | RCBR;
drivers/tty/serial/sunzilog.c
1371
up->curregs[R12] = (brg & 0xff);
drivers/tty/serial/sunzilog.c
1372
up->curregs[R13] = (brg >> 8) & 0xff;
drivers/tty/serial/sunzilog.c
1373
up->curregs[R14] = BRSRC | BRENAB;
drivers/tty/serial/sunzilog.c
1374
up->curregs[R15] = FIFOEN; /* Use FIFO if on ESCC */
drivers/tty/serial/sunzilog.c
1375
up->curregs[R7p] = TxFIFO_LVL | RxFIFO_LVL;
drivers/tty/serial/sunzilog.c
1376
if (__load_zsregs(channel, up->curregs)) {
drivers/tty/serial/sunzilog.c
1377
up->flags |= SUNZILOG_FLAG_ESCC;
drivers/tty/serial/sunzilog.c
1380
if (up->flags & SUNZILOG_FLAG_ISR_HANDLER)
drivers/tty/serial/sunzilog.c
1381
up->curregs[R9] |= MIE;
drivers/tty/serial/sunzilog.c
1382
write_zsreg(channel, R9, up->curregs[R9]);
drivers/tty/serial/sunzilog.c
1385
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/sunzilog.c
1388
if (up->flags & (SUNZILOG_FLAG_CONS_KEYB |
drivers/tty/serial/sunzilog.c
1390
sunzilog_register_serio(up);
drivers/tty/serial/sunzilog.c
1400
struct uart_sunzilog_port *up;
drivers/tty/serial/sunzilog.c
1425
up = &sunzilog_port_table[inst * 2];
drivers/tty/serial/sunzilog.c
1428
up[0].port.mapbase = op->resource[0].start + 0x00;
drivers/tty/serial/sunzilog.c
1429
up[0].port.membase = (void __iomem *) &rp->channelA;
drivers/tty/serial/sunzilog.c
1430
up[0].port.iotype = UPIO_MEM;
drivers/tty/serial/sunzilog.c
1431
up[0].port.irq = op->archdata.irqs[0];
drivers/tty/serial/sunzilog.c
1432
up[0].port.uartclk = ZS_CLOCK;
drivers/tty/serial/sunzilog.c
1433
up[0].port.fifosize = 1;
drivers/tty/serial/sunzilog.c
1434
up[0].port.ops = &sunzilog_pops;
drivers/tty/serial/sunzilog.c
1435
up[0].port.type = PORT_SUNZILOG;
drivers/tty/serial/sunzilog.c
1436
up[0].port.flags = 0;
drivers/tty/serial/sunzilog.c
1437
up[0].port.line = (inst * 2) + 0;
drivers/tty/serial/sunzilog.c
1438
up[0].port.dev = &op->dev;
drivers/tty/serial/sunzilog.c
1439
up[0].flags |= SUNZILOG_FLAG_IS_CHANNEL_A;
drivers/tty/serial/sunzilog.c
1440
up[0].port.has_sysrq = IS_ENABLED(CONFIG_SERIAL_SUNZILOG_CONSOLE);
drivers/tty/serial/sunzilog.c
1442
up[0].flags |= SUNZILOG_FLAG_CONS_KEYB;
drivers/tty/serial/sunzilog.c
1443
sunzilog_init_hw(&up[0]);
drivers/tty/serial/sunzilog.c
1446
up[1].port.mapbase = op->resource[0].start + 0x04;
drivers/tty/serial/sunzilog.c
1447
up[1].port.membase = (void __iomem *) &rp->channelB;
drivers/tty/serial/sunzilog.c
1448
up[1].port.iotype = UPIO_MEM;
drivers/tty/serial/sunzilog.c
1449
up[1].port.irq = op->archdata.irqs[0];
drivers/tty/serial/sunzilog.c
1450
up[1].port.uartclk = ZS_CLOCK;
drivers/tty/serial/sunzilog.c
1451
up[1].port.fifosize = 1;
drivers/tty/serial/sunzilog.c
1452
up[1].port.ops = &sunzilog_pops;
drivers/tty/serial/sunzilog.c
1453
up[1].port.type = PORT_SUNZILOG;
drivers/tty/serial/sunzilog.c
1454
up[1].port.flags = 0;
drivers/tty/serial/sunzilog.c
1455
up[1].port.line = (inst * 2) + 1;
drivers/tty/serial/sunzilog.c
1456
up[1].port.dev = &op->dev;
drivers/tty/serial/sunzilog.c
1457
up[1].flags |= 0;
drivers/tty/serial/sunzilog.c
1458
up[1].port.has_sysrq = IS_ENABLED(CONFIG_SERIAL_SUNZILOG_CONSOLE);
drivers/tty/serial/sunzilog.c
1460
up[1].flags |= SUNZILOG_FLAG_CONS_MOUSE;
drivers/tty/serial/sunzilog.c
1461
sunzilog_init_hw(&up[1]);
drivers/tty/serial/sunzilog.c
1465
&sunzilog_reg, up[0].port.line,
drivers/tty/serial/sunzilog.c
1467
up->flags |= SUNZILOG_FLAG_IS_CONS;
drivers/tty/serial/sunzilog.c
1468
err = uart_add_one_port(&sunzilog_reg, &up[0].port);
drivers/tty/serial/sunzilog.c
1475
&sunzilog_reg, up[1].port.line,
drivers/tty/serial/sunzilog.c
1477
up->flags |= SUNZILOG_FLAG_IS_CONS;
drivers/tty/serial/sunzilog.c
1478
err = uart_add_one_port(&sunzilog_reg, &up[1].port);
drivers/tty/serial/sunzilog.c
1480
uart_remove_one_port(&sunzilog_reg, &up[0].port);
drivers/tty/serial/sunzilog.c
1490
(unsigned long long) up[0].port.mapbase,
drivers/tty/serial/sunzilog.c
1491
op->archdata.irqs[0], sunzilog_type(&up[0].port));
drivers/tty/serial/sunzilog.c
1495
(unsigned long long) up[1].port.mapbase,
drivers/tty/serial/sunzilog.c
1496
op->archdata.irqs[0], sunzilog_type(&up[1].port));
drivers/tty/serial/sunzilog.c
1500
platform_set_drvdata(op, &up[0]);
drivers/tty/serial/sunzilog.c
1505
static void zs_remove_one(struct uart_sunzilog_port *up)
drivers/tty/serial/sunzilog.c
1507
if (ZS_IS_KEYB(up) || ZS_IS_MOUSE(up)) {
drivers/tty/serial/sunzilog.c
1509
serio_unregister_port(&up->serio);
drivers/tty/serial/sunzilog.c
1512
uart_remove_one_port(&sunzilog_reg, &up->port);
drivers/tty/serial/sunzilog.c
1517
struct uart_sunzilog_port *up = platform_get_drvdata(op);
drivers/tty/serial/sunzilog.c
1520
zs_remove_one(&up[0]);
drivers/tty/serial/sunzilog.c
1521
zs_remove_one(&up[1]);
drivers/tty/serial/sunzilog.c
1523
regs = sunzilog_chip_regs[up[0].port.line / 2];
drivers/tty/serial/sunzilog.c
1575
struct uart_sunzilog_port *up = sunzilog_irq_chain;
drivers/tty/serial/sunzilog.c
1582
while (up) {
drivers/tty/serial/sunzilog.c
1586
channel = ZILOG_CHANNEL_FROM_PORT(&up->port);
drivers/tty/serial/sunzilog.c
1587
up->flags |= SUNZILOG_FLAG_ISR_HANDLER;
drivers/tty/serial/sunzilog.c
1588
up->curregs[R9] |= MIE;
drivers/tty/serial/sunzilog.c
1589
write_zsreg(channel, R9, up->curregs[R9]);
drivers/tty/serial/sunzilog.c
1590
up = up->next;
drivers/tty/serial/sunzilog.c
1616
struct uart_sunzilog_port *up = sunzilog_irq_chain;
drivers/tty/serial/sunzilog.c
1619
while (up) {
drivers/tty/serial/sunzilog.c
1623
channel = ZILOG_CHANNEL_FROM_PORT(&up->port);
drivers/tty/serial/sunzilog.c
1624
up->flags &= ~SUNZILOG_FLAG_ISR_HANDLER;
drivers/tty/serial/sunzilog.c
1625
up->curregs[R9] &= ~MIE;
drivers/tty/serial/sunzilog.c
1626
write_zsreg(channel, R9, up->curregs[R9]);
drivers/tty/serial/sunzilog.c
1627
up = up->next;
drivers/tty/serial/sunzilog.c
268
static void sunzilog_maybe_update_regs(struct uart_sunzilog_port *up,
drivers/tty/serial/sunzilog.c
271
if (!ZS_REGS_HELD(up)) {
drivers/tty/serial/sunzilog.c
272
if (ZS_TX_ACTIVE(up)) {
drivers/tty/serial/sunzilog.c
273
up->flags |= SUNZILOG_FLAG_REGS_HELD;
drivers/tty/serial/sunzilog.c
275
__load_zsregs(channel, up->curregs);
drivers/tty/serial/sunzilog.c
280
static void sunzilog_change_mouse_baud(struct uart_sunzilog_port *up)
drivers/tty/serial/sunzilog.c
282
unsigned int cur_cflag = up->cflag;
drivers/tty/serial/sunzilog.c
285
up->cflag &= ~CBAUD;
drivers/tty/serial/sunzilog.c
286
up->cflag |= suncore_mouse_baud_cflag_next(cur_cflag, &new_baud);
drivers/tty/serial/sunzilog.c
289
up->curregs[R12] = (brg & 0xff);
drivers/tty/serial/sunzilog.c
290
up->curregs[R13] = (brg >> 8) & 0xff;
drivers/tty/serial/sunzilog.c
291
sunzilog_maybe_update_regs(up, ZILOG_CHANNEL_FROM_PORT(&up->port));
drivers/tty/serial/sunzilog.c
294
static void sunzilog_kbdms_receive_chars(struct uart_sunzilog_port *up,
drivers/tty/serial/sunzilog.c
297
if (ZS_IS_KEYB(up)) {
drivers/tty/serial/sunzilog.c
300
if (up->serio_open)
drivers/tty/serial/sunzilog.c
301
serio_interrupt(&up->serio, ch, 0);
drivers/tty/serial/sunzilog.c
303
} else if (ZS_IS_MOUSE(up)) {
drivers/tty/serial/sunzilog.c
308
sunzilog_change_mouse_baud(up);
drivers/tty/serial/sunzilog.c
315
if (up->serio_open)
drivers/tty/serial/sunzilog.c
316
serio_interrupt(&up->serio, ch, 0);
drivers/tty/serial/sunzilog.c
324
sunzilog_receive_chars(struct uart_sunzilog_port *up,
drivers/tty/serial/sunzilog.c
330
if (up->port.state != NULL) /* Unopened serial console */
drivers/tty/serial/sunzilog.c
331
port = &up->port.state->port;
drivers/tty/serial/sunzilog.c
357
ch &= up->parity_mask;
drivers/tty/serial/sunzilog.c
359
if (unlikely(ZS_IS_KEYB(up)) || unlikely(ZS_IS_MOUSE(up))) {
drivers/tty/serial/sunzilog.c
360
sunzilog_kbdms_receive_chars(up, ch, 0);
drivers/tty/serial/sunzilog.c
366
up->port.icount.rx++;
drivers/tty/serial/sunzilog.c
370
up->port.icount.brk++;
drivers/tty/serial/sunzilog.c
371
if (uart_handle_break(&up->port))
drivers/tty/serial/sunzilog.c
375
up->port.icount.parity++;
drivers/tty/serial/sunzilog.c
377
up->port.icount.frame++;
drivers/tty/serial/sunzilog.c
379
up->port.icount.overrun++;
drivers/tty/serial/sunzilog.c
380
r1 &= up->port.read_status_mask;
drivers/tty/serial/sunzilog.c
388
if (uart_handle_sysrq_char(&up->port, ch) || !port)
drivers/tty/serial/sunzilog.c
391
if (up->port.ignore_status_mask == 0xff ||
drivers/tty/serial/sunzilog.c
392
(r1 & up->port.ignore_status_mask) == 0) {
drivers/tty/serial/sunzilog.c
402
static void sunzilog_status_handle(struct uart_sunzilog_port *up,
drivers/tty/serial/sunzilog.c
415
if (ZS_IS_MOUSE(up))
drivers/tty/serial/sunzilog.c
416
sunzilog_kbdms_receive_chars(up, 0, 1);
drivers/tty/serial/sunzilog.c
417
if (ZS_IS_CONS(up)) {
drivers/tty/serial/sunzilog.c
432
if (ZS_WANTS_MODEM_STATUS(up)) {
drivers/tty/serial/sunzilog.c
434
up->port.icount.dsr++;
drivers/tty/serial/sunzilog.c
440
if ((status ^ up->prev_status) ^ DCD)
drivers/tty/serial/sunzilog.c
441
uart_handle_dcd_change(&up->port,
drivers/tty/serial/sunzilog.c
443
if ((status ^ up->prev_status) ^ CTS)
drivers/tty/serial/sunzilog.c
444
uart_handle_cts_change(&up->port,
drivers/tty/serial/sunzilog.c
447
wake_up_interruptible(&up->port.state->port.delta_msr_wait);
drivers/tty/serial/sunzilog.c
450
up->prev_status = status;
drivers/tty/serial/sunzilog.c
453
static void sunzilog_transmit_chars(struct uart_sunzilog_port *up,
drivers/tty/serial/sunzilog.c
459
if (ZS_IS_CONS(up)) {
drivers/tty/serial/sunzilog.c
475
up->flags &= ~SUNZILOG_FLAG_TX_ACTIVE;
drivers/tty/serial/sunzilog.c
477
if (ZS_REGS_HELD(up)) {
drivers/tty/serial/sunzilog.c
478
__load_zsregs(channel, up->curregs);
drivers/tty/serial/sunzilog.c
479
up->flags &= ~SUNZILOG_FLAG_REGS_HELD;
drivers/tty/serial/sunzilog.c
482
if (ZS_TX_STOPPED(up)) {
drivers/tty/serial/sunzilog.c
483
up->flags &= ~SUNZILOG_FLAG_TX_STOPPED;
drivers/tty/serial/sunzilog.c
487
if (up->port.x_char) {
drivers/tty/serial/sunzilog.c
488
up->flags |= SUNZILOG_FLAG_TX_ACTIVE;
drivers/tty/serial/sunzilog.c
489
writeb(up->port.x_char, &channel->data);
drivers/tty/serial/sunzilog.c
493
up->port.icount.tx++;
drivers/tty/serial/sunzilog.c
494
up->port.x_char = 0;
drivers/tty/serial/sunzilog.c
498
if (up->port.state == NULL)
drivers/tty/serial/sunzilog.c
500
tport = &up->port.state->port;
drivers/tty/serial/sunzilog.c
502
if (uart_tx_stopped(&up->port))
drivers/tty/serial/sunzilog.c
505
if (!uart_fifo_get(&up->port, &ch))
drivers/tty/serial/sunzilog.c
508
up->flags |= SUNZILOG_FLAG_TX_ACTIVE;
drivers/tty/serial/sunzilog.c
514
uart_write_wakeup(&up->port);
drivers/tty/serial/sunzilog.c
526
struct uart_sunzilog_port *up = dev_id;
drivers/tty/serial/sunzilog.c
528
while (up) {
drivers/tty/serial/sunzilog.c
530
= ZILOG_CHANNEL_FROM_PORT(&up->port);
drivers/tty/serial/sunzilog.c
534
uart_port_lock(&up->port);
drivers/tty/serial/sunzilog.c
545
port = sunzilog_receive_chars(up, channel);
drivers/tty/serial/sunzilog.c
547
sunzilog_status_handle(up, channel);
drivers/tty/serial/sunzilog.c
549
sunzilog_transmit_chars(up, channel);
drivers/tty/serial/sunzilog.c
551
uart_port_unlock(&up->port);
drivers/tty/serial/sunzilog.c
557
up = up->next;
drivers/tty/serial/sunzilog.c
558
channel = ZILOG_CHANNEL_FROM_PORT(&up->port);
drivers/tty/serial/sunzilog.c
560
uart_port_lock(&up->port);
drivers/tty/serial/sunzilog.c
568
port = sunzilog_receive_chars(up, channel);
drivers/tty/serial/sunzilog.c
570
sunzilog_status_handle(up, channel);
drivers/tty/serial/sunzilog.c
572
sunzilog_transmit_chars(up, channel);
drivers/tty/serial/sunzilog.c
574
uart_port_unlock(&up->port);
drivers/tty/serial/sunzilog.c
579
up = up->next;
drivers/tty/serial/sunzilog.c
643
struct uart_sunzilog_port *up =
drivers/tty/serial/sunzilog.c
660
up->curregs[R5] |= set_bits;
drivers/tty/serial/sunzilog.c
661
up->curregs[R5] &= ~clear_bits;
drivers/tty/serial/sunzilog.c
662
write_zsreg(channel, R5, up->curregs[R5]);
drivers/tty/serial/sunzilog.c
668
struct uart_sunzilog_port *up =
drivers/tty/serial/sunzilog.c
671
up->flags |= SUNZILOG_FLAG_TX_STOPPED;
drivers/tty/serial/sunzilog.c
677
struct uart_sunzilog_port *up =
drivers/tty/serial/sunzilog.c
682
up->flags |= SUNZILOG_FLAG_TX_ACTIVE;
drivers/tty/serial/sunzilog.c
683
up->flags &= ~SUNZILOG_FLAG_TX_STOPPED;
drivers/tty/serial/sunzilog.c
706
if (!uart_fifo_get(&up->port, &ch))
drivers/tty/serial/sunzilog.c
713
uart_write_wakeup(&up->port);
drivers/tty/serial/sunzilog.c
720
struct uart_sunzilog_port *up = UART_ZILOG(port);
drivers/tty/serial/sunzilog.c
723
if (ZS_IS_CONS(up))
drivers/tty/serial/sunzilog.c
729
up->curregs[R1] &= ~RxINT_MASK;
drivers/tty/serial/sunzilog.c
730
sunzilog_maybe_update_regs(up, channel);
drivers/tty/serial/sunzilog.c
736
struct uart_sunzilog_port *up =
drivers/tty/serial/sunzilog.c
741
new_reg = up->curregs[R15] | (DCDIE | SYNCIE | CTSIE);
drivers/tty/serial/sunzilog.c
742
if (new_reg != up->curregs[R15]) {
drivers/tty/serial/sunzilog.c
743
up->curregs[R15] = new_reg;
drivers/tty/serial/sunzilog.c
746
write_zsreg(channel, R15, up->curregs[R15] & ~WR7pEN);
drivers/tty/serial/sunzilog.c
753
struct uart_sunzilog_port *up =
drivers/tty/serial/sunzilog.c
768
new_reg = (up->curregs[R5] | set_bits) & ~clear_bits;
drivers/tty/serial/sunzilog.c
769
if (new_reg != up->curregs[R5]) {
drivers/tty/serial/sunzilog.c
770
up->curregs[R5] = new_reg;
drivers/tty/serial/sunzilog.c
773
write_zsreg(channel, R5, up->curregs[R5]);
drivers/tty/serial/sunzilog.c
779
static void __sunzilog_startup(struct uart_sunzilog_port *up)
drivers/tty/serial/sunzilog.c
783
channel = ZILOG_CHANNEL_FROM_PORT(&up->port);
drivers/tty/serial/sunzilog.c
784
up->prev_status = readb(&channel->control);
drivers/tty/serial/sunzilog.c
787
up->curregs[R3] |= RxENAB;
drivers/tty/serial/sunzilog.c
788
up->curregs[R5] |= TxENAB;
drivers/tty/serial/sunzilog.c
790
up->curregs[R1] |= EXT_INT_ENAB | INT_ALL_Rx | TxINT_ENAB;
drivers/tty/serial/sunzilog.c
791
sunzilog_maybe_update_regs(up, channel);
drivers/tty/serial/sunzilog.c
796
struct uart_sunzilog_port *up = UART_ZILOG(port);
drivers/tty/serial/sunzilog.c
799
if (ZS_IS_CONS(up))
drivers/tty/serial/sunzilog.c
803
__sunzilog_startup(up);
drivers/tty/serial/sunzilog.c
835
struct uart_sunzilog_port *up = UART_ZILOG(port);
drivers/tty/serial/sunzilog.c
839
if (ZS_IS_CONS(up))
drivers/tty/serial/sunzilog.c
847
up->curregs[R3] &= ~RxENAB;
drivers/tty/serial/sunzilog.c
848
up->curregs[R5] &= ~TxENAB;
drivers/tty/serial/sunzilog.c
851
up->curregs[R1] &= ~(EXT_INT_ENAB | TxINT_ENAB | RxINT_MASK);
drivers/tty/serial/sunzilog.c
852
up->curregs[R5] &= ~SND_BRK;
drivers/tty/serial/sunzilog.c
853
sunzilog_maybe_update_regs(up, channel);
drivers/tty/serial/sunzilog.c
862
sunzilog_convert_to_zs(struct uart_sunzilog_port *up, unsigned int cflag,
drivers/tty/serial/sunzilog.c
866
up->curregs[R10] = NRZ;
drivers/tty/serial/sunzilog.c
867
up->curregs[R11] = TCBR | RCBR;
drivers/tty/serial/sunzilog.c
870
up->curregs[R4] &= ~XCLK_MASK;
drivers/tty/serial/sunzilog.c
871
up->curregs[R4] |= X16CLK;
drivers/tty/serial/sunzilog.c
872
up->curregs[R12] = brg & 0xff;
drivers/tty/serial/sunzilog.c
873
up->curregs[R13] = (brg >> 8) & 0xff;
drivers/tty/serial/sunzilog.c
874
up->curregs[R14] = BRSRC | BRENAB;
drivers/tty/serial/sunzilog.c
877
up->curregs[R3] &= ~RxN_MASK;
drivers/tty/serial/sunzilog.c
878
up->curregs[R5] &= ~TxN_MASK;
drivers/tty/serial/sunzilog.c
881
up->curregs[R3] |= Rx5;
drivers/tty/serial/sunzilog.c
882
up->curregs[R5] |= Tx5;
drivers/tty/serial/sunzilog.c
883
up->parity_mask = 0x1f;
drivers/tty/serial/sunzilog.c
886
up->curregs[R3] |= Rx6;
drivers/tty/serial/sunzilog.c
887
up->curregs[R5] |= Tx6;
drivers/tty/serial/sunzilog.c
888
up->parity_mask = 0x3f;
drivers/tty/serial/sunzilog.c
891
up->curregs[R3] |= Rx7;
drivers/tty/serial/sunzilog.c
892
up->curregs[R5] |= Tx7;
drivers/tty/serial/sunzilog.c
893
up->parity_mask = 0x7f;
drivers/tty/serial/sunzilog.c
897
up->curregs[R3] |= Rx8;
drivers/tty/serial/sunzilog.c
898
up->curregs[R5] |= Tx8;
drivers/tty/serial/sunzilog.c
899
up->parity_mask = 0xff;
drivers/tty/serial/sunzilog.c
902
up->curregs[R4] &= ~0x0c;
drivers/tty/serial/sunzilog.c
904
up->curregs[R4] |= SB2;
drivers/tty/serial/sunzilog.c
906
up->curregs[R4] |= SB1;
drivers/tty/serial/sunzilog.c
908
up->curregs[R4] |= PAR_ENAB;
drivers/tty/serial/sunzilog.c
910
up->curregs[R4] &= ~PAR_ENAB;
drivers/tty/serial/sunzilog.c
912
up->curregs[R4] |= PAR_EVEN;
drivers/tty/serial/sunzilog.c
914
up->curregs[R4] &= ~PAR_EVEN;
drivers/tty/serial/sunzilog.c
916
up->port.read_status_mask = Rx_OVR;
drivers/tty/serial/sunzilog.c
918
up->port.read_status_mask |= CRC_ERR | PAR_ERR;
drivers/tty/serial/sunzilog.c
920
up->port.read_status_mask |= BRK_ABRT;
drivers/tty/serial/sunzilog.c
922
up->port.ignore_status_mask = 0;
drivers/tty/serial/sunzilog.c
924
up->port.ignore_status_mask |= CRC_ERR | PAR_ERR;
drivers/tty/serial/sunzilog.c
926
up->port.ignore_status_mask |= BRK_ABRT;
drivers/tty/serial/sunzilog.c
928
up->port.ignore_status_mask |= Rx_OVR;
drivers/tty/serial/sunzilog.c
932
up->port.ignore_status_mask = 0xff;
drivers/tty/serial/sunzilog.c
940
struct uart_sunzilog_port *up =
drivers/tty/serial/sunzilog.c
947
uart_port_lock_irqsave(&up->port, &flags);
drivers/tty/serial/sunzilog.c
951
sunzilog_convert_to_zs(up, termios->c_cflag, termios->c_iflag, brg);
drivers/tty/serial/sunzilog.c
953
if (UART_ENABLE_MS(&up->port, termios->c_cflag))
drivers/tty/serial/sunzilog.c
954
up->flags |= SUNZILOG_FLAG_MODEM_STATUS;
drivers/tty/serial/sunzilog.c
956
up->flags &= ~SUNZILOG_FLAG_MODEM_STATUS;
drivers/tty/serial/sunzilog.c
958
up->cflag = termios->c_cflag;
drivers/tty/serial/sunzilog.c
960
sunzilog_maybe_update_regs(up, ZILOG_CHANNEL_FROM_PORT(port));
drivers/tty/serial/sunzilog.c
964
uart_port_unlock_irqrestore(&up->port, flags);
drivers/tty/serial/sunzilog.c
969
struct uart_sunzilog_port *up = UART_ZILOG(port);
drivers/tty/serial/sunzilog.c
971
return (up->flags & SUNZILOG_FLAG_ESCC) ? "zs (ESCC)" : "zs";
drivers/tty/vt/vt_ioctl.c
1061
void __user *up = compat_ptr(arg);
drivers/tty/vt/vt_ioctl.c
1078
return compat_kdfontop_ioctl(up, perm, &op, vc);
drivers/tty/vt/vt_ioctl.c
1082
return compat_unimap_ioctl(cmd, up, perm, vc);
drivers/tty/vt/vt_ioctl.c
1112
return vt_ioctl(tty, cmd, (unsigned long)up);
drivers/tty/vt/vt_ioctl.c
287
void __user *up = (void __user *)arg;
drivers/tty/vt/vt_ioctl.c
365
if (copy_from_user(&kbrep, up, sizeof(struct kbd_repeat)))
drivers/tty/vt/vt_ioctl.c
371
if (copy_to_user(up, &kbrep, sizeof(struct kbd_repeat)))
drivers/tty/vt/vt_ioctl.c
419
return vt_do_kbkeycode_ioctl(cmd, up, perm);
drivers/tty/vt/vt_ioctl.c
423
return vt_do_kdsk_ioctl(cmd, up, perm, console);
drivers/tty/vt/vt_ioctl.c
427
return vt_do_kdgkb_ioctl(cmd, up, perm);
drivers/tty/vt/vt_ioctl.c
435
return vt_do_diacrit(cmd, up, perm);
drivers/tty/vt/vt_ioctl.c
468
if (copy_from_user(&op, up, sizeof(op)))
drivers/tty/vt/vt_ioctl.c
475
if (copy_to_user(up, &op, sizeof(op)))
drivers/tty/vt/vt_ioctl.c
508
static int vt_io_ioctl(struct vc_data *vc, unsigned int cmd, void __user *up,
drivers/tty/vt/vt_ioctl.c
515
return con_set_cmap(up);
drivers/tty/vt/vt_ioctl.c
518
return con_get_cmap(up);
drivers/tty/vt/vt_ioctl.c
523
return con_set_trans_old(up);
drivers/tty/vt/vt_ioctl.c
526
return con_get_trans_old(up);
drivers/tty/vt/vt_ioctl.c
531
return con_set_trans_new(up);
drivers/tty/vt/vt_ioctl.c
534
return con_get_trans_new(up);
drivers/tty/vt/vt_ioctl.c
544
return do_unimap_ioctl(cmd, up, perm, vc);
drivers/tty/vt/vt_ioctl.c
731
void __user *up = (void __user *)arg;
drivers/tty/vt/vt_ioctl.c
747
ret = vt_io_ioctl(vc, cmd, up, perm);
drivers/tty/vt/vt_ioctl.c
760
if (copy_from_user(&tmp, up, sizeof(struct vt_mode)))
drivers/tty/vt/vt_ioctl.c
784
rc = copy_to_user(up, &tmp, sizeof(struct vt_mode));
drivers/tty/vt/vt_ioctl.c
797
struct vt_stat __user *vtstat = up;
drivers/tty/vt/vt_ioctl.c
847
return vt_setactivate(up);
drivers/tty/vt/vt_ioctl.c
895
struct vt_sizes __user *vtsizes = up;
drivers/tty/vt/vt_ioctl.c
923
return vt_resizex(vc, up);
drivers/tty/vt/vt_ioctl.c
951
if (copy_to_user(up, &concsr, sizeof(concsr)))
drivers/ufs/core/ufs-debugfs.c
73
up(&hba->host_sem);
drivers/ufs/core/ufs-debugfs.c
84
up(&hba->host_sem);
drivers/ufs/core/ufs-hwmon.c
112
up(&hba->host_sem);
drivers/ufs/core/ufs-hwmon.c
125
up(&hba->host_sem);
drivers/ufs/core/ufs-hwmon.c
60
up(&hba->host_sem);
drivers/ufs/core/ufs-hwmon.c
91
up(&hba->host_sem);
drivers/ufs/core/ufs-sysfs.c
1096
up(&hba->host_sem);
drivers/ufs/core/ufs-sysfs.c
1441
up(&hba->host_sem); \
drivers/ufs/core/ufs-sysfs.c
1446
up(&hba->host_sem); \
drivers/ufs/core/ufs-sysfs.c
1468
up(&hba->host_sem); \
drivers/ufs/core/ufs-sysfs.c
1510
up(&hba->host_sem); \
drivers/ufs/core/ufs-sysfs.c
1525
up(&hba->host_sem); \
drivers/ufs/core/ufs-sysfs.c
1571
up(&hba->host_sem);
drivers/ufs/core/ufs-sysfs.c
1586
up(&hba->host_sem);
drivers/ufs/core/ufs-sysfs.c
1631
up(&hba->host_sem);
drivers/ufs/core/ufs-sysfs.c
1656
up(&hba->host_sem);
drivers/ufs/core/ufs-sysfs.c
1666
up(&hba->host_sem);
drivers/ufs/core/ufs-sysfs.c
1715
up(&hba->host_sem); \
drivers/ufs/core/ufs-sysfs.c
1730
up(&hba->host_sem); \
drivers/ufs/core/ufs-sysfs.c
1794
up(&hba->host_sem);
drivers/ufs/core/ufs-sysfs.c
1802
up(&hba->host_sem);
drivers/ufs/core/ufs-sysfs.c
2083
up(&hba->host_sem);
drivers/ufs/core/ufs-sysfs.c
254
up(&hba->host_sem);
drivers/ufs/core/ufs-sysfs.c
264
up(&hba->host_sem);
drivers/ufs/core/ufs-sysfs.c
311
up(&hba->host_sem);
drivers/ufs/core/ufs-sysfs.c
356
up(&hba->host_sem);
drivers/ufs/core/ufs-sysfs.c
428
up(&hba->host_sem);
drivers/ufs/core/ufs-sysfs.c
497
up(&hba->host_sem);
drivers/ufs/core/ufshcd-priv.h
128
static inline int ufshcd_vops_clk_scale_notify(struct ufs_hba *hba, bool up,
drivers/ufs/core/ufshcd-priv.h
133
return hba->vops->clk_scale_notify(hba, up, target_freq, status);
drivers/ufs/core/ufshcd.c
10327
up(&hba->host_sem);
drivers/ufs/core/ufshcd.c
10362
up(&hba->host_sem);
drivers/ufs/core/ufshcd.c
10565
up(&hba->host_sem);
drivers/ufs/core/ufshcd.c
1843
up(&hba->host_sem);
drivers/ufs/core/ufshcd.c
6741
up(&hba->host_sem);
drivers/ufs/core/ufshcd.c
6893
up(&hba->host_sem);
drivers/ufs/core/ufshcd.c
9262
up(&hba->host_sem);
drivers/usb/class/usbtmc.c
1114
up(&file_data->limit_write_sem);
drivers/usb/class/usbtmc.c
1186
up(&file_data->limit_write_sem);
drivers/usb/class/usbtmc.c
1194
up(&file_data->limit_write_sem);
drivers/usb/class/usbtmc.c
1206
up(&file_data->limit_write_sem);
drivers/usb/class/usbtmc.c
1231
up(&file_data->limit_write_sem);
drivers/usb/class/usbtmc.c
1569
up(&file_data->limit_write_sem);
drivers/usb/class/usbtmc.c
1609
up(&file_data->limit_write_sem);
drivers/usb/class/usbtmc.c
1628
up(&file_data->limit_write_sem);
drivers/usb/gadget/function/f_midi.c
733
static void f_midi_in_trigger(struct snd_rawmidi_substream *substream, int up)
drivers/usb/gadget/function/f_midi.c
740
VDBG(midi, "%s() %d\n", __func__, up);
drivers/usb/gadget/function/f_midi.c
741
midi->in_ports_array[substream->number].active = up;
drivers/usb/gadget/function/f_midi.c
742
if (up)
drivers/usb/gadget/function/f_midi.c
766
static void f_midi_out_trigger(struct snd_rawmidi_substream *substream, int up)
drivers/usb/gadget/function/f_midi.c
772
if (up)
drivers/usb/gadget/function/f_midi2.c
1452
static void f_midi2_ump_trigger(struct snd_ump_endpoint *ump, int dir, int up)
drivers/usb/gadget/function/f_midi2.c
1457
if (up && dir == SNDRV_RAWMIDI_STREAM_OUTPUT) {
drivers/usb/gadget/legacy/raw_gadget.c
84
up(&queue->sema);
drivers/usb/host/uhci-debug.c
561
struct uhci_debug *up;
drivers/usb/host/uhci-debug.c
564
up = kmalloc_obj(*up);
drivers/usb/host/uhci-debug.c
565
if (!up)
drivers/usb/host/uhci-debug.c
568
up->data = kmalloc(MAX_OUTPUT, GFP_KERNEL);
drivers/usb/host/uhci-debug.c
569
if (!up->data) {
drivers/usb/host/uhci-debug.c
570
kfree(up);
drivers/usb/host/uhci-debug.c
574
up->size = 0;
drivers/usb/host/uhci-debug.c
577
up->size = uhci_sprint_schedule(uhci, up->data,
drivers/usb/host/uhci-debug.c
581
file->private_data = up;
drivers/usb/host/uhci-debug.c
588
struct uhci_debug *up = file->private_data;
drivers/usb/host/uhci-debug.c
589
return no_seek_end_llseek_size(file, off, whence, up->size);
drivers/usb/host/uhci-debug.c
595
struct uhci_debug *up = file->private_data;
drivers/usb/host/uhci-debug.c
596
return simple_read_from_buffer(buf, nbytes, ppos, up->data, up->size);
drivers/usb/host/uhci-debug.c
601
struct uhci_debug *up = file->private_data;
drivers/usb/host/uhci-debug.c
603
kfree(up->data);
drivers/usb/host/uhci-debug.c
604
kfree(up);
drivers/usb/misc/usblcd.c
214
up(&dev->limit_sem);
drivers/usb/misc/usblcd.c
293
up(&dev->limit_sem);
drivers/usb/usb-skeleton.c
356
up(&dev->limit_sem);
drivers/usb/usb-skeleton.c
462
up(&dev->limit_sem);
drivers/video/fbdev/offb.c
542
const __be32 *pp, *addrp, *up;
drivers/video/fbdev/offb.c
592
up = of_get_property(dp, "linux,bootx-addr", &len);
drivers/video/fbdev/offb.c
593
if (up == NULL)
drivers/video/fbdev/offb.c
594
up = of_get_property(dp, "address", &len);
drivers/video/fbdev/offb.c
595
if (up && len == sizeof(u32))
drivers/video/fbdev/offb.c
596
addr_prop = *up;
drivers/video/fbdev/omap/hwa742.c
267
up(&hwa742.req_sema);
drivers/video/fbdev/omap2/omapfb/dss/dsi.c
477
up(&dsi->bus_lock);
drivers/video/fbdev/smscufx.c
1090
up(&unode->dev->urbs.limit_sem);
drivers/video/fbdev/smscufx.c
1802
up(&dev->urbs.limit_sem);
drivers/video/fbdev/udlfb.c
1803
up(&dlfb->urbs.limit_sem);
drivers/video/fbdev/udlfb.c
1888
up(&dlfb->urbs.limit_sem);
drivers/video/fbdev/via/hw.c
1376
struct via_pll_config cur, up, down, best = {0, 1, 0};
drivers/video/fbdev/via/hw.c
1385
up = down = cur;
drivers/video/fbdev/via/hw.c
1386
up.multiplier++;
drivers/video/fbdev/via/hw.c
1388
if (abs(get_pll_output_frequency(f0, up) - clk) < f)
drivers/video/fbdev/via/hw.c
1389
cur = up;
drivers/xen/pvcalls-back.c
1027
up(&fedata->socket_lock);
drivers/xen/pvcalls-back.c
1134
up(&pvcalls_back_global.frontends_lock);
drivers/xen/pvcalls-back.c
1242
up(&pvcalls_back_global.frontends_lock);
drivers/xen/pvcalls-back.c
374
up(&fedata->socket_lock);
drivers/xen/pvcalls-back.c
388
up(&fedata->socket_lock);
drivers/xen/pvcalls-back.c
493
up(&fedata->socket_lock);
drivers/xen/pvcalls-back.c
502
up(&fedata->socket_lock);
drivers/xen/pvcalls-back.c
505
up(&fedata->socket_lock);
drivers/xen/pvcalls-back.c
664
up(&fedata->socket_lock);
drivers/xen/pvcalls-back.c
702
up(&fedata->socket_lock);
drivers/xen/pvcalls-back.c
731
up(&fedata->socket_lock);
drivers/xen/pvcalls-back.c
779
up(&fedata->socket_lock);
drivers/xen/pvcalls-back.c
984
up(&pvcalls_back_global.frontends_lock);
drivers/xen/xenbus/xenbus_probe.c
308
up(&dev->reclaim_sem);
drivers/xen/xenbus/xenbus_probe.c
329
up(&dev->reclaim_sem);
drivers/xen/xenbus/xenbus_probe.c
353
up(&dev->reclaim_sem);
drivers/xen/xenbus/xenbus_probe_backend.c
270
up(&xdev->reclaim_sem);
fs/btrfs/disk-io.c
2972
up(&fs_info->uuid_tree_rescan_sem);
fs/btrfs/disk-io.c
2986
up(&fs_info->uuid_tree_rescan_sem);
fs/btrfs/disk-io.c
4281
up(&fs_info->uuid_tree_rescan_sem);
fs/btrfs/ioctl.c
1466
char __user *up = ubuf + *sk_offset;
fs/btrfs/ioctl.c
1471
if (read_extent_buffer_to_user_nofault(leaf, up,
fs/btrfs/super.c
1359
up(&fs_info->uuid_tree_rescan_sem);
fs/btrfs/uuid-tree.c
525
up(&fs_info->uuid_tree_rescan_sem);
fs/btrfs/uuid-tree.c
564
up(&fs_info->uuid_tree_rescan_sem);
fs/hpfs/anode.c
126
up = a != node ? le32_to_cpu(anode->up) : -1;
fs/hpfs/anode.c
133
anode->up = cpu_to_le32(node);
fs/hpfs/anode.c
166
while (up != (anode_secno)-1) {
fs/hpfs/anode.c
169
if (hpfs_stop_cycles(s, up, &c1, &c2, "hpfs_add_sector_to_btree #2")) return -1;
fs/hpfs/anode.c
170
if (up != node || !fnod) {
fs/hpfs/anode.c
171
if (!(anode = hpfs_map_anode(s, up, &bh))) return -1;
fs/hpfs/anode.c
174
if (!(fnode = hpfs_map_fnode(s, up, &bh))) return -1;
fs/hpfs/anode.c
188
anode->up = cpu_to_le32(up);
fs/hpfs/anode.c
189
if (up == node && fnod)
fs/hpfs/anode.c
198
up = up != node ? le32_to_cpu(anode->up) : -1;
fs/hpfs/anode.c
215
anode->up = cpu_to_le32(na);
fs/hpfs/anode.c
222
anode->up = cpu_to_le32(node);
fs/hpfs/anode.c
241
ranode->up = cpu_to_le32(node);
fs/hpfs/anode.c
249
unode->up = cpu_to_le32(ra);
fs/hpfs/anode.c
308
ano = le32_to_cpu(anode->up);
fs/hpfs/anode.c
66
anode_secno a, na = -1, ra, up = -1;
fs/hpfs/dnode.c
1025
if (!(upf = hpfs_map_fnode(s, le32_to_cpu(f->up), &bh))) {
fs/hpfs/dnode.c
1031
hpfs_error(s, "fnode %08x has non-directory parent %08x", fno, le32_to_cpu(f->up));
fs/hpfs/dnode.c
1082
dno = le32_to_cpu(d->up);
fs/hpfs/dnode.c
225
if (le32_to_cpu(dd->up) != dno || dd->root_dnode) {
fs/hpfs/dnode.c
226
dd->up = cpu_to_le32(dno);
fs/hpfs/dnode.c
304
if (!(ad = hpfs_alloc_dnode(i->i_sb, le32_to_cpu(d->up), &adno, &qbh1))) {
fs/hpfs/dnode.c
333
ad->up = d->up;
fs/hpfs/dnode.c
334
dno = le32_to_cpu(ad->up);
fs/hpfs/dnode.c
341
if (!(rd = hpfs_alloc_dnode(i->i_sb, le32_to_cpu(d->up), &rdno, &qbh2))) {
fs/hpfs/dnode.c
352
rd->up = d->up;
fs/hpfs/dnode.c
353
if (!(fnode = hpfs_map_fnode(i->i_sb, le32_to_cpu(d->up), &bh))) {
fs/hpfs/dnode.c
366
d->up = ad->up = cpu_to_le32(rdno);
fs/hpfs/dnode.c
450
if (le32_to_cpu(dnode->up) != chk_up) {
fs/hpfs/dnode.c
452
dno, chk_up, le32_to_cpu(dnode->up));
fs/hpfs/dnode.c
468
dnode_secno up = le32_to_cpu(dnode->up);
fs/hpfs/dnode.c
474
if (up == to) return to;
fs/hpfs/dnode.c
475
if (!(dnode = hpfs_map_dnode(i->i_sb, up, &qbh))) return 0;
fs/hpfs/dnode.c
483
hpfs_error(i->i_sb, "move_to_top: dnode %08x doesn't point down to %08x", up, dno);
fs/hpfs/dnode.c
491
dno = up;
fs/hpfs/dnode.c
523
dnode_secno down, up, ndown;
fs/hpfs/dnode.c
534
up = le32_to_cpu(dnode->up);
fs/hpfs/dnode.c
551
if (up != i->i_ino) {
fs/hpfs/dnode.c
554
dno, up,
fs/hpfs/dnode.c
559
d1->up = cpu_to_le32(up);
fs/hpfs/dnode.c
564
if ((fnode = hpfs_map_fnode(i->i_sb, up, &bh))) {
fs/hpfs/dnode.c
573
if (!(dnode = hpfs_map_dnode(i->i_sb, up, &qbh))) return;
fs/hpfs/dnode.c
578
hpfs_error(i->i_sb, "delete_empty_dnode: pointer to dnode %08x not found in dnode %08x", dno, up);
fs/hpfs/dnode.c
581
for_all_poss(i, hpfs_pos_subst, ((loff_t)dno << 4) | 1, ((loff_t)up << 4) | p);
fs/hpfs/dnode.c
593
d1->up = cpu_to_le32(up);
fs/hpfs/dnode.c
618
for_all_poss(i, hpfs_pos_subst, ((loff_t)up << 4) | p, 4);
fs/hpfs/dnode.c
619
for_all_poss(i, hpfs_pos_del, ((loff_t)up << 4) | p, 1);
fs/hpfs/dnode.c
621
d1->up = cpu_to_le32(ndown);
fs/hpfs/dnode.c
628
dno = up;
fs/hpfs/dnode.c
638
hpfs_error(i->i_sb, "delete_empty_dnode: empty dnode %08x", up);
fs/hpfs/dnode.c
641
dno = up;
fs/hpfs/dnode.c
690
for_all_poss(i, hpfs_pos_subst, ((loff_t)up << 4) | (p - 1), 4);
fs/hpfs/dnode.c
691
for_all_poss(i, hpfs_pos_subst, ((loff_t)up << 4) | p, ((loff_t)up << 4) | (p - 1));
fs/hpfs/dnode.c
693
d1->up = cpu_to_le32(ndown);
fs/hpfs/dnode.c
698
dno = up;
fs/hpfs/dnode.c
759
if (hpfs_sb(s)->sb_chk) if (odno && odno != -1 && le32_to_cpu(dnode->up) != odno)
fs/hpfs/dnode.c
760
hpfs_error(s, "hpfs_count_dnodes: bad up pointer; dnode %08x, down %08x points to %08x", odno, dno, le32_to_cpu(dnode->up));
fs/hpfs/dnode.c
784
dno = le32_to_cpu(dnode->up);
fs/hpfs/dnode.c
822
dnode_secno up = 0;
fs/hpfs/dnode.c
832
if (up && le32_to_cpu(((struct dnode *)qbh.data)->up) != up)
fs/hpfs/dnode.c
833
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));
fs/hpfs/dnode.c
838
up = d;
fs/hpfs/dnode.c
882
if (!(up_dnode = hpfs_map_dnode(inode->i_sb, le32_to_cpu(dnode->up), &qbh0)))
fs/hpfs/dnode.c
890
"map_pos_dirent: pos crossed dnode boundary; dnode = %08x", le32_to_cpu(dnode->up));
fs/hpfs/dnode.c
892
*posp = ((loff_t) le32_to_cpu(dnode->up) << 4) + c;
fs/hpfs/dnode.c
899
dno, le32_to_cpu(dnode->up));
fs/hpfs/hpfs.h
297
__le32 up; /* (root dnode) directory's fnode
fs/hpfs/hpfs.h
461
__le32 up; /* pointer to file's directory fnode */
fs/hpfs/hpfs.h
514
__le32 up; /* parent anode or fnode */
fs/hpfs/inode.c
121
hpfs_inode->i_parent_dir = le32_to_cpu(fnode->up);
fs/hpfs/namei.c
189
fnode->up = cpu_to_le32(dir->i_ino);
fs/hpfs/namei.c
271
fnode->up = cpu_to_le32(dir->i_ino);
fs/hpfs/namei.c
350
fnode->up = cpu_to_le32(dir->i_ino);
fs/hpfs/namei.c
594
fnode->up = cpu_to_le32(new_dir->i_ino);
fs/hpfs/namei.c
84
fnode->up = cpu_to_le32(dir->i_ino);
fs/hpfs/namei.c
92
dnode->up = cpu_to_le32(fno);
fs/jfs/jfs_unicode.h
126
wchar_t *up;
fs/jfs/jfs_unicode.h
128
up = upin;
fs/jfs/jfs_unicode.h
129
while (*up) { /* For all characters */
fs/jfs/jfs_unicode.h
130
*up = UniToupper(*up);
fs/jfs/jfs_unicode.h
131
up++;
fs/nfsd/nfsfh.h
150
u32 *up;
fs/nfsd/nfsfh.h
173
up = (u32*)uuid;
fs/nfsd/nfsfh.h
175
fsidv[1] = up[0] ^ up[1] ^ up[2] ^ up[3];
fs/nfsd/nfsfh.h
180
up = (u32*)uuid;
fs/nfsd/nfsfh.h
181
fsidv[0] = up[0] ^ up[2];
fs/nfsd/nfsfh.h
182
fsidv[1] = up[1] ^ up[3];
fs/nls/nls_ucs2_utils.h
274
register __le16 *up;
fs/nls/nls_ucs2_utils.h
276
up = upin;
fs/nls/nls_ucs2_utils.h
277
while (*up) { /* For all characters */
fs/nls/nls_ucs2_utils.h
278
*up = cpu_to_le16(UniToupper(le16_to_cpu(*up)));
fs/nls/nls_ucs2_utils.h
279
up++;
fs/ntfs3/lznt.c
145
const u8 *up = unc;
fs/ntfs3/lznt.c
163
while (up < unc_end) {
fs/ntfs3/lznt.c
166
while (unc + s_max_off[idx] < up)
fs/ntfs3/lznt.c
170
max_len = up + 3 <= unc_end ? (*match)(up, ctx) : 0;
fs/ntfs3/lznt.c
175
not_zero |= *cp++ = *up++;
fs/ntfs3/lznt.c
179
t16 = make_pair(up - ctx->best_match, max_len, idx);
fs/ntfs3/lznt.c
184
up += max_len;
fs/ntfs3/lznt.c
230
u8 *up = unc;
fs/ntfs3/lznt.c
238
while (up < unc_end && cmpr < cmpr_end) {
fs/ntfs3/lznt.c
240
if (up - unc > LZNT_CHUNK_SIZE)
fs/ntfs3/lznt.c
243
while (unc + s_max_off[index] < up)
fs/ntfs3/lznt.c
249
*up++ = *cmpr++;
fs/ntfs3/lznt.c
268
if (unc + offset > up)
fs/ntfs3/lznt.c
272
if (up + length >= unc_end)
fs/ntfs3/lznt.c
273
length = unc_end - up;
fs/ntfs3/lznt.c
276
for (; length > 0; length--, up++)
fs/ntfs3/lznt.c
277
*up = *(up - offset);
fs/ntfs3/lznt.c
292
return up - unc;
fs/xfs/xfs_buf.c
1004
up(&bp->b_sema);
fs/xfs/xfs_log.c
1217
up(&iclog->ic_sema);
fs/xfs/xfs_log.c
1635
up(&iclog->ic_sema);
fs/xfs/xfs_log.c
768
up(&iclog->ic_sema);
include/drm/task_barrier.h
52
up(turnstile);
include/linux/bcma/bcma_driver_pci.h
243
extern void bcma_core_pci_power_save(struct bcma_bus *bus, bool up);
include/linux/bcma/bcma_driver_pci.h
245
static inline void bcma_core_pci_power_save(struct bcma_bus *bus, bool up)
include/linux/ceph/osd_client.h
219
struct ceph_osds up;
include/linux/ceph/osdmap.h
306
struct ceph_osds *up,
include/linux/ethtool.h
838
void ethtool_mmsv_link_state_handle(struct ethtool_mmsv *mmsv, bool up);
include/linux/habanalabs/cpucp_if.h
1295
__u8 up;
include/linux/hid.h
1058
up(&hid->driver_input_lock);
include/linux/iio/common/inv_sensors_timestamp.h
28
int64_t up;
include/linux/mlx5/driver.h
1172
void mlx5_put_uars_page(struct mlx5_core_dev *mdev, struct mlx5_uars_page *up);
include/linux/mlx5/driver.h
434
struct mlx5_uars_page *up;
include/linux/net/intel/iidc_rdma_idpf.h
48
int idpf_idc_vport_dev_ctrl(struct iidc_rdma_core_dev_info *cdev_info, bool up);
include/linux/netdevice.h
2520
bool up;
include/linux/phy.h
801
void (*phy_link_change)(struct phy_device *phydev, bool up);
include/linux/phylink.h
738
void phylink_mac_change(struct phylink *, bool up);
include/linux/phylink.h
739
void phylink_pcs_change(struct phylink_pcs *, bool up);
include/linux/qed/qed_eth_if.h
231
int (*setapp)(struct qed_dev *cdev, u8 idtype, u16 idval, u8 up);
include/linux/semaphore.h
61
extern void up(struct semaphore *sem);
include/linux/serial_8250.h
160
u32 (*dl_read)(struct uart_8250_port *up);
include/linux/serial_8250.h
161
void (*dl_write)(struct uart_8250_port *up, u32 value);
include/linux/serial_8250.h
164
void (*rs485_start_tx)(struct uart_8250_port *up, bool toggle_ier);
include/linux/serial_8250.h
165
void (*rs485_stop_tx)(struct uart_8250_port *up, bool toggle_ier);
include/linux/serial_8250.h
172
static inline struct uart_8250_port *up_to_u8250p(struct uart_port *up)
include/linux/serial_8250.h
174
return container_of(up, struct uart_8250_port, port);
include/linux/serial_8250.h
200
u16 serial8250_rx_chars(struct uart_8250_port *up, u16 lsr);
include/linux/serial_8250.h
201
void serial8250_read_char(struct uart_8250_port *up, u16 lsr);
include/linux/serial_8250.h
202
void serial8250_tx_chars(struct uart_8250_port *up);
include/linux/serial_8250.h
203
unsigned int serial8250_modem_status(struct uart_8250_port *up);
include/linux/serial_8250.h
204
void serial8250_init_port(struct uart_8250_port *up);
include/linux/serial_8250.h
205
void serial8250_set_defaults(struct uart_8250_port *up);
include/linux/serial_8250.h
206
void serial8250_console_write(struct uart_8250_port *up, const char *s,
include/linux/serial_8250.h
211
void serial8250_set_isa_configurator(void (*v)(int port, struct uart_port *up,
include/linux/serial_8250.h
51
u32 (*dl_read)(struct uart_8250_port *up);
include/linux/serial_8250.h
52
void (*dl_write)(struct uart_8250_port *up, u32 value);
include/linux/serial_core.h
605
static inline void __uart_port_lock_irqsave(struct uart_port *up, unsigned long *flags)
include/linux/serial_core.h
607
spin_lock_irqsave(&up->lock, *flags);
include/linux/serial_core.h
614
static inline void __uart_port_unlock_irqrestore(struct uart_port *up, unsigned long flags)
include/linux/serial_core.h
616
spin_unlock_irqrestore(&up->lock, flags);
include/linux/serial_core.h
628
static inline void uart_port_set_cons(struct uart_port *up, struct console *con)
include/linux/serial_core.h
632
__uart_port_lock_irqsave(up, &flags);
include/linux/serial_core.h
633
up->cons = con;
include/linux/serial_core.h
634
__uart_port_unlock_irqrestore(up, flags);
include/linux/serial_core.h
638
static inline bool __uart_port_using_nbcon(struct uart_port *up)
include/linux/serial_core.h
640
lockdep_assert_held_once(&up->lock);
include/linux/serial_core.h
642
if (likely(!uart_console(up)))
include/linux/serial_core.h
653
if (hlist_unhashed_lockless(&up->cons->node) ||
include/linux/serial_core.h
654
!(up->cons->flags & CON_NBCON) ||
include/linux/serial_core.h
655
!up->cons->write_atomic) {
include/linux/serial_core.h
663
static inline bool __uart_port_nbcon_try_acquire(struct uart_port *up)
include/linux/serial_core.h
665
if (!__uart_port_using_nbcon(up))
include/linux/serial_core.h
668
return nbcon_device_try_acquire(up->cons);
include/linux/serial_core.h
672
static inline void __uart_port_nbcon_acquire(struct uart_port *up)
include/linux/serial_core.h
674
if (!__uart_port_using_nbcon(up))
include/linux/serial_core.h
677
while (!nbcon_device_try_acquire(up->cons))
include/linux/serial_core.h
682
static inline void __uart_port_nbcon_release(struct uart_port *up)
include/linux/serial_core.h
684
if (!__uart_port_using_nbcon(up))
include/linux/serial_core.h
687
nbcon_device_release(up->cons);
include/linux/serial_core.h
694
static inline void uart_port_lock(struct uart_port *up)
include/linux/serial_core.h
696
spin_lock(&up->lock);
include/linux/serial_core.h
697
__uart_port_nbcon_acquire(up);
include/linux/serial_core.h
704
static inline void uart_port_lock_irq(struct uart_port *up)
include/linux/serial_core.h
706
spin_lock_irq(&up->lock);
include/linux/serial_core.h
707
__uart_port_nbcon_acquire(up);
include/linux/serial_core.h
715
static inline void uart_port_lock_irqsave(struct uart_port *up, unsigned long *flags)
include/linux/serial_core.h
717
spin_lock_irqsave(&up->lock, *flags);
include/linux/serial_core.h
718
__uart_port_nbcon_acquire(up);
include/linux/serial_core.h
727
static inline bool uart_port_trylock(struct uart_port *up)
include/linux/serial_core.h
729
if (!spin_trylock(&up->lock))
include/linux/serial_core.h
732
if (!__uart_port_nbcon_try_acquire(up)) {
include/linux/serial_core.h
733
spin_unlock(&up->lock);
include/linux/serial_core.h
747
static inline bool uart_port_trylock_irqsave(struct uart_port *up, unsigned long *flags)
include/linux/serial_core.h
749
if (!spin_trylock_irqsave(&up->lock, *flags))
include/linux/serial_core.h
752
if (!__uart_port_nbcon_try_acquire(up)) {
include/linux/serial_core.h
753
spin_unlock_irqrestore(&up->lock, *flags);
include/linux/serial_core.h
764
static inline void uart_port_unlock(struct uart_port *up)
include/linux/serial_core.h
766
__uart_port_nbcon_release(up);
include/linux/serial_core.h
767
spin_unlock(&up->lock);
include/linux/serial_core.h
774
static inline void uart_port_unlock_irq(struct uart_port *up)
include/linux/serial_core.h
776
__uart_port_nbcon_release(up);
include/linux/serial_core.h
777
spin_unlock_irq(&up->lock);
include/linux/serial_core.h
785
static inline void uart_port_unlock_irqrestore(struct uart_port *up, unsigned long flags)
include/linux/serial_core.h
787
__uart_port_nbcon_release(up);
include/linux/serial_core.h
788
spin_unlock_irqrestore(&up->lock, flags);
include/linux/serial_core.h
804
static inline int serial_port_in(struct uart_port *up, int offset)
include/linux/serial_core.h
806
return up->serial_in(up, offset);
include/linux/serial_core.h
809
static inline void serial_port_out(struct uart_port *up, int offset, int value)
include/linux/serial_core.h
811
up->serial_out(up, offset, value);
include/linux/serial_core.h
854
static inline void uart_xmit_advance(struct uart_port *up, unsigned int chars)
include/linux/serial_core.h
856
struct tty_port *tport = &up->state->port;
include/linux/serial_core.h
859
up->icount.tx += chars;
include/linux/serial_core.h
862
static inline unsigned int uart_fifo_out(struct uart_port *up,
include/linux/serial_core.h
865
struct tty_port *tport = &up->state->port;
include/linux/serial_core.h
868
up->icount.tx += chars;
include/linux/serial_core.h
873
static inline unsigned int uart_fifo_get(struct uart_port *up,
include/linux/serial_core.h
876
struct tty_port *tport = &up->state->port;
include/linux/serial_core.h
880
up->icount.tx += chars;
include/linux/vt_kern.h
156
int vt_do_diacrit(unsigned int cmd, void __user *up, int eperm);
include/net/caif/caif_layer.h
147
struct cflayer *up;
include/net/caif/caif_layer.h
238
#define layer_set_up(layr, above) ((layr)->up = (struct cflayer *)(above))
include/net/caif/cfcnfg.h
88
bool up);
include/net/caif/cffrml.h
15
void cffrml_set_uplayer(struct cflayer *this, struct cflayer *up);
include/net/caif/cfmuxl.h
15
int cfmuxl_set_uplayer(struct cflayer *layr, struct cflayer *up, u8 linkid);
include/net/caif/cfmuxl.h
17
int cfmuxl_set_dnlayer(struct cflayer *layr, struct cflayer *up, u8 phyid);
include/net/caif/cfsrvl.h
47
if (layr == NULL || layr->up == NULL || s->hold == NULL)
include/net/caif/cfsrvl.h
50
s->hold(layr->up);
include/net/caif/cfsrvl.h
56
if (layr == NULL || layr->up == NULL || s->hold == NULL)
include/net/caif/cfsrvl.h
59
s->put(layr->up);
include/net/cfg80211.h
3944
u8 up;
include/net/cfg80211.h
3977
struct cfg80211_dscp_range up[8];
include/net/dsa.h
1395
void dsa_port_phylink_mac_change(struct dsa_switch *ds, int port, bool up);
include/net/udp.h
289
struct udp_sock *up = udp_sk(sk);
include/net/udp.h
291
sk->sk_drop_counters = &up->drop_counters;
include/net/udp.h
292
skb_queue_head_init(&up->reader_queue);
include/net/udp.h
293
INIT_HLIST_NODE(&up->tunnel_list);
include/net/udp.h
294
up->forward_threshold = sk->sk_rcvbuf >> 2;
include/net/udp.h
297
up->udp_prod_queue = kzalloc_objs(*up->udp_prod_queue, nr_node_ids);
include/net/udp.h
298
if (!up->udp_prod_queue)
include/net/udp.h
301
init_llist_head(&up->udp_prod_queue[i].ll_root);
include/sound/rawmidi.h
42
void (*trigger) (struct snd_rawmidi_substream * substream, int up);
include/sound/ump.h
78
void (*trigger)(struct snd_ump_endpoint *ump, int dir, int up);
include/uapi/linux/tipc_config.h
192
__be32 up; /* 0=down, 1= up */
include/uapi/linux/tipc_config.h
197
__be32 up; /* 0=down, 1=up */
io_uring/rsrc.c
212
struct io_uring_rsrc_update2 *up,
io_uring/rsrc.c
215
u64 __user *tags = u64_to_user_ptr(up->tags);
io_uring/rsrc.c
216
__s32 __user *fds = u64_to_user_ptr(up->data);
io_uring/rsrc.c
222
if (up->offset + nr_args > ctx->file_table.data.nr)
io_uring/rsrc.c
240
i = up->offset + done;
io_uring/rsrc.c
277
struct io_uring_rsrc_update2 *up,
io_uring/rsrc.c
280
u64 __user *tags = u64_to_user_ptr(up->tags);
io_uring/rsrc.c
284
u64 user_data = up->data;
io_uring/rsrc.c
290
if (up->offset + nr_args > ctx->buf_table.nr)
io_uring/rsrc.c
319
i = array_index_nospec(up->offset + done, ctx->buf_table.nr);
io_uring/rsrc.c
331
struct io_uring_rsrc_update2 *up,
io_uring/rsrc.c
338
if (check_add_overflow(up->offset, nr_args, &tmp))
io_uring/rsrc.c
343
return __io_sqe_files_update(ctx, up, nr_args);
io_uring/rsrc.c
345
return __io_sqe_buffers_update(ctx, up, nr_args);
io_uring/rsrc.c
353
struct io_uring_rsrc_update2 up;
io_uring/rsrc.c
357
memset(&up, 0, sizeof(up));
io_uring/rsrc.c
358
if (copy_from_user(&up, arg, sizeof(struct io_uring_rsrc_update)))
io_uring/rsrc.c
360
if (up.resv || up.resv2)
io_uring/rsrc.c
362
return __io_register_rsrc_update(ctx, IORING_RSRC_FILE, &up, nr_args);
io_uring/rsrc.c
368
struct io_uring_rsrc_update2 up;
io_uring/rsrc.c
370
if (size != sizeof(up))
io_uring/rsrc.c
372
if (copy_from_user(&up, arg, sizeof(up)))
io_uring/rsrc.c
374
if (!up.nr || up.resv || up.resv2)
io_uring/rsrc.c
376
return __io_register_rsrc_update(ctx, type, &up, up.nr);
io_uring/rsrc.c
413
struct io_rsrc_update *up = io_kiocb_to_cmd(req, struct io_rsrc_update);
io_uring/rsrc.c
420
up->offset = READ_ONCE(sqe->off);
io_uring/rsrc.c
421
up->nr_args = READ_ONCE(sqe->len);
io_uring/rsrc.c
422
if (!up->nr_args)
io_uring/rsrc.c
424
up->arg = READ_ONCE(sqe->addr);
io_uring/rsrc.c
431
struct io_rsrc_update *up = io_kiocb_to_cmd(req, struct io_rsrc_update);
io_uring/rsrc.c
432
__s32 __user *fds = u64_to_user_ptr(up->arg);
io_uring/rsrc.c
440
for (done = 0; done < up->nr_args; done++) {
io_uring/rsrc.c
469
struct io_rsrc_update *up = io_kiocb_to_cmd(req, struct io_rsrc_update);
io_uring/rsrc.c
474
up2.offset = up->offset;
io_uring/rsrc.c
475
up2.data = up->arg;
io_uring/rsrc.c
481
if (up->offset == IORING_FILE_INDEX_ALLOC) {
io_uring/rsrc.c
486
&up2, up->nr_args);
ipc/msg.c
987
struct compat_msgbuf __user *up = compat_ptr(msgp);
ipc/msg.c
990
if (get_user(mtype, &up->mtype))
ipc/msg.c
992
return do_msgsnd(msqid, mtype, up->mtext, (ssize_t)msgsz, msgflg);
kernel/fork.c
2975
up:
kernel/fork.c
2984
goto up;
kernel/locking/semaphore.c
237
EXPORT_SYMBOL(up);
kernel/locking/semaphore.c
244
bool up;
kernel/locking/semaphore.c
259
waiter.up = false;
kernel/locking/semaphore.c
270
if (waiter.up) {
kernel/locking/semaphore.c
327
waiter->up = true;
kernel/module/kmod.c
176
up(&kmod_concurrent_max);
kernel/printk/printk.c
346
up(&console_sem);
kernel/sched/core.c
1411
tg_visitor down, tg_visitor up, void *data)
kernel/sched/core.c
1426
up:
kernel/sched/core.c
1429
ret = (*up)(parent, data);
kernel/sched/core.c
1436
goto up;
kernel/sched/sched.h
547
tg_visitor down, tg_visitor up, void *data);
kernel/sched/sched.h
555
static inline int walk_tg_tree(tg_visitor down, tg_visitor up, void *data)
kernel/sched/sched.h
557
return walk_tg_tree_from(&root_task_group, down, up, data);
kernel/time/timer_migration.c
559
static void __walk_groups_from(up_f up, struct tmigr_walk *data,
kernel/time/timer_migration.c
565
if (up(group, child, data))
kernel/time/timer_migration.c
579
static void __walk_groups(up_f up, struct tmigr_walk *data,
kernel/time/timer_migration.c
582
__walk_groups_from(up, data, NULL, tmc->tmgroup);
kernel/time/timer_migration.c
585
static void walk_groups(up_f up, struct tmigr_walk *data, struct tmigr_cpu *tmc)
kernel/time/timer_migration.c
589
__walk_groups(up, data, tmc);
kernel/user.c
117
static void uid_hash_insert(struct user_struct *up, struct hlist_head *hashent)
kernel/user.c
119
hlist_add_head(&up->uidhash_node, hashent);
kernel/user.c
122
static void uid_hash_remove(struct user_struct *up)
kernel/user.c
124
hlist_del_init(&up->uidhash_node);
kernel/user.c
141
static int user_epoll_alloc(struct user_struct *up)
kernel/user.c
144
return percpu_counter_init(&up->epoll_watches, 0, GFP_KERNEL);
kernel/user.c
150
static void user_epoll_free(struct user_struct *up)
kernel/user.c
153
percpu_counter_destroy(&up->epoll_watches);
kernel/user.c
161
static void free_user(struct user_struct *up, unsigned long flags)
kernel/user.c
164
uid_hash_remove(up);
kernel/user.c
166
user_epoll_free(up);
kernel/user.c
167
kmem_cache_free(uid_cachep, up);
kernel/user.c
187
void free_uid(struct user_struct *up)
kernel/user.c
191
if (!up)
kernel/user.c
194
if (refcount_dec_and_lock_irqsave(&up->__count, &uidhash_lock, &flags))
kernel/user.c
195
free_user(up, flags);
kernel/user.c
202
struct user_struct *up, *new;
kernel/user.c
205
up = uid_hash_find(uid, hashent);
kernel/user.c
208
if (!up) {
kernel/user.c
227
up = uid_hash_find(uid, hashent);
kernel/user.c
228
if (up) {
kernel/user.c
233
up = new;
kernel/user.c
238
return up;
lib/crypto/mpi/generic_mpih-lshift.c
28
mpihelp_lshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, unsigned int cnt)
lib/crypto/mpi/generic_mpih-lshift.c
39
low_limb = up[i];
lib/crypto/mpi/generic_mpih-lshift.c
43
low_limb = up[i];
lib/crypto/mpi/generic_mpih-rshift.c
29
mpihelp_rshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize, unsigned cnt)
lib/crypto/mpi/generic_mpih-rshift.c
39
high_limb = up[0];
lib/crypto/mpi/generic_mpih-rshift.c
43
high_limb = up[i];
lib/crypto/mpi/mpi-add.c
20
mpi_ptr_t wp, up, vp;
lib/crypto/mpi/mpi-add.c
35
up = v->d;
lib/crypto/mpi/mpi-add.c
47
up = u->d;
lib/crypto/mpi/mpi-add.c
54
MPN_COPY(wp, up, usize);
lib/crypto/mpi/mpi-add.c
60
mpihelp_sub(wp, up, usize, vp, vsize);
lib/crypto/mpi/mpi-add.c
64
} else if (mpihelp_cmp(up, vp, usize) < 0) {
lib/crypto/mpi/mpi-add.c
65
mpihelp_sub_n(wp, vp, up, usize);
lib/crypto/mpi/mpi-add.c
71
mpihelp_sub_n(wp, up, vp, usize);
lib/crypto/mpi/mpi-add.c
78
mpi_limb_t cy = mpihelp_add(wp, up, usize, vp, vsize);
lib/crypto/mpi/mpi-internal.h
172
int mpihelp_mul(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t usize,
lib/crypto/mpi/mpi-internal.h
174
void mpih_sqr_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size);
lib/crypto/mpi/mpi-internal.h
175
void mpih_sqr_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size,
lib/crypto/mpi/mpi-internal.h
179
mpi_ptr_t up, mpi_size_t usize,
lib/crypto/mpi/mpi-internal.h
198
mpi_limb_t mpihelp_lshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize,
lib/crypto/mpi/mpi-internal.h
200
mpi_limb_t mpihelp_rshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize,
lib/crypto/mpi/mpi-internal.h
94
#define MPN_MUL_N_RECURSE(prodp, up, vp, size, tspace) \
lib/crypto/mpi/mpi-internal.h
97
mul_n_basecase(prodp, up, vp, size); \
lib/crypto/mpi/mpi-internal.h
99
mul_n(prodp, up, vp, size, tspace); \
lib/crypto/mpi/mpi-mul.c
21
mpi_ptr_t up, vp, wp;
lib/crypto/mpi/mpi-mul.c
32
up = v->d;
lib/crypto/mpi/mpi-mul.c
39
up = u->d;
lib/crypto/mpi/mpi-mul.c
50
if (wp == up || wp == vp) {
lib/crypto/mpi/mpi-mul.c
62
if (wp == up) {
lib/crypto/mpi/mpi-mul.c
64
up = tmp_limb = mpi_alloc_limb_space(usize);
lib/crypto/mpi/mpi-mul.c
65
if (!up)
lib/crypto/mpi/mpi-mul.c
69
vp = up;
lib/crypto/mpi/mpi-mul.c
71
MPN_COPY(up, wp, usize);
lib/crypto/mpi/mpi-mul.c
85
err = mpihelp_mul(wp, up, usize, vp, vsize, &cy);
lib/crypto/mpi/mpih-mul.c
112
MPN_MUL_N_RECURSE(prodp, up, vp, esize, tspace);
lib/crypto/mpi/mpih-mul.c
113
cy_limb = mpihelp_addmul_1(prodp + esize, up, esize, vp[esize]);
lib/crypto/mpi/mpih-mul.c
115
cy_limb = mpihelp_addmul_1(prodp + esize, vp, size, up[esize]);
lib/crypto/mpi/mpih-mul.c
142
MPN_MUL_N_RECURSE(prodp + size, up + hsize, vp + hsize, hsize,
lib/crypto/mpi/mpih-mul.c
148
if (mpihelp_cmp(up + hsize, up, hsize) >= 0) {
lib/crypto/mpi/mpih-mul.c
149
mpihelp_sub_n(prodp, up + hsize, up, hsize);
lib/crypto/mpi/mpih-mul.c
152
mpihelp_sub_n(prodp, up, up + hsize, hsize);
lib/crypto/mpi/mpih-mul.c
190
MPN_MUL_N_RECURSE(tspace, up, vp, hsize, tspace + size);
lib/crypto/mpi/mpih-mul.c
207
void mpih_sqr_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size)
lib/crypto/mpi/mpih-mul.c
21
#define MPN_MUL_N_RECURSE(prodp, up, vp, size, tspace) \
lib/crypto/mpi/mpih-mul.c
215
v_limb = up[0];
lib/crypto/mpi/mpih-mul.c
218
MPN_COPY(prodp, up, size);
lib/crypto/mpi/mpih-mul.c
223
cy_limb = mpihelp_mul_1(prodp, up, size, v_limb);
lib/crypto/mpi/mpih-mul.c
231
v_limb = up[i];
lib/crypto/mpi/mpih-mul.c
235
cy_limb = mpihelp_add_n(prodp, prodp, up, size);
lib/crypto/mpi/mpih-mul.c
237
cy_limb = mpihelp_addmul_1(prodp, up, size, v_limb);
lib/crypto/mpi/mpih-mul.c
24
mul_n_basecase(prodp, up, vp, size); \
lib/crypto/mpi/mpih-mul.c
245
mpih_sqr_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size, mpi_ptr_t tspace)
lib/crypto/mpi/mpih-mul.c
26
mul_n(prodp, up, vp, size, tspace); \
lib/crypto/mpi/mpih-mul.c
261
MPN_SQR_N_RECURSE(prodp, up, esize, tspace);
lib/crypto/mpi/mpih-mul.c
262
cy_limb = mpihelp_addmul_1(prodp + esize, up, esize, up[esize]);
lib/crypto/mpi/mpih-mul.c
264
cy_limb = mpihelp_addmul_1(prodp + esize, up, size, up[esize]);
lib/crypto/mpi/mpih-mul.c
276
MPN_SQR_N_RECURSE(prodp + size, up + hsize, hsize, tspace);
lib/crypto/mpi/mpih-mul.c
281
if (mpihelp_cmp(up + hsize, up, hsize) >= 0)
lib/crypto/mpi/mpih-mul.c
282
mpihelp_sub_n(prodp, up + hsize, up, hsize);
lib/crypto/mpi/mpih-mul.c
284
mpihelp_sub_n(prodp, up, up + hsize, hsize);
lib/crypto/mpi/mpih-mul.c
29
#define MPN_SQR_N_RECURSE(prodp, up, size, tspace) \
lib/crypto/mpi/mpih-mul.c
304
MPN_SQR_N_RECURSE(tspace, up, hsize, tspace + size);
lib/crypto/mpi/mpih-mul.c
32
mpih_sqr_n_basecase(prodp, up, size); \
lib/crypto/mpi/mpih-mul.c
322
mpi_ptr_t up, mpi_size_t usize,
lib/crypto/mpi/mpih-mul.c
337
MPN_MUL_N_RECURSE(prodp, up, vp, vsize, ctx->tspace);
lib/crypto/mpi/mpih-mul.c
34
mpih_sqr_n(prodp, up, size, tspace); \
lib/crypto/mpi/mpih-mul.c
340
up += vsize;
lib/crypto/mpi/mpih-mul.c
357
MPN_MUL_N_RECURSE(ctx->tp, up, vp, vsize, ctx->tspace);
lib/crypto/mpi/mpih-mul.c
362
up += vsize;
lib/crypto/mpi/mpih-mul.c
370
if (mpihelp_mul(ctx->tspace, vp, vsize, up, usize, &tmp)
lib/crypto/mpi/mpih-mul.c
381
up, usize,
lib/crypto/mpi/mpih-mul.c
427
mpihelp_mul(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t usize,
lib/crypto/mpi/mpih-mul.c
448
MPN_COPY(prodp, up, usize);
lib/crypto/mpi/mpih-mul.c
453
cy = mpihelp_mul_1(prodp, up, usize, v_limb);
lib/crypto/mpi/mpih-mul.c
465
cy = mpihelp_add_n(prodp, prodp, up,
lib/crypto/mpi/mpih-mul.c
468
cy = mpihelp_addmul_1(prodp, up, usize, v_limb);
lib/crypto/mpi/mpih-mul.c
479
if (mpihelp_mul_karatsuba_case(prodp, up, usize, vp, vsize, &ctx) < 0)
lib/crypto/mpi/mpih-mul.c
55
mul_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp, mpi_size_t size)
lib/crypto/mpi/mpih-mul.c
66
MPN_COPY(prodp, up, size);
lib/crypto/mpi/mpih-mul.c
71
cy = mpihelp_mul_1(prodp, up, size, v_limb);
lib/crypto/mpi/mpih-mul.c
83
cy = mpihelp_add_n(prodp, prodp, up, size);
lib/crypto/mpi/mpih-mul.c
85
cy = mpihelp_addmul_1(prodp, up, size, v_limb);
lib/crypto/mpi/mpih-mul.c
95
mul_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_ptr_t vp,
net/9p/trans_rdma.c
216
up(&rdma->rq_sem);
net/9p/trans_rdma.c
239
up(&rdma->sq_sem);
net/batman-adv/gateway_common.c
28
u32 down, up;
net/batman-adv/gateway_common.c
40
up = atomic_read(&bat_priv->gw.bandwidth_up);
net/batman-adv/gateway_common.c
42
gw.bandwidth_up = htonl(up);
net/caif/caif_dev.c
161
caifd->layer.up->
net/caif/caif_dev.c
162
ctrlcmd(caifd->layer.up,
net/caif/caif_dev.c
230
caifd->layer.up->ctrlcmd(caifd->layer.up,
net/caif/caif_dev.c
259
if (!caifd || !caifd->layer.up || !caifd->layer.up->receive ||
net/caif/caif_dev.c
270
err = caifd->layer.up->receive(caifd->layer.up, pkt);
net/caif/caif_dev.c
296
if (!caifd || !caifd->layer.up || !caifd->layer.up->ctrlcmd) {
net/caif/caif_dev.c
304
caifd->layer.up->ctrlcmd(caifd->layer.up,
net/caif/caif_dev.c
426
if (!caifd || !caifd->layer.up || !caifd->layer.up->ctrlcmd) {
net/caif/caif_dev.c
435
caifd->layer.up->ctrlcmd(caifd->layer.up,
net/caif/caif_usb.c
46
return layr->up->receive(layr->up, pkt);
net/caif/caif_usb.c
81
if (layr->up && layr->up->ctrlcmd)
net/caif/caif_usb.c
82
layr->up->ctrlcmd(layr->up, ctrl, layr->id);
net/caif/cfcnfg.c
155
if (phy->up && phy->pref == phy_pref &&
net/caif/cfcnfg.c
163
if (phy->up)
net/caif/cfcnfg.c
174
if (phy->ifindex == ifi && phy->up)
net/caif/cfcnfg.c
31
bool up;
net/caif/cfcnfg.c
529
bool up)
net/caif/cfcnfg.c
540
if (phyinfo->up == up) {
net/caif/cfcnfg.c
544
phyinfo->up = up;
net/caif/cfcnfg.c
546
if (up) {
net/caif/cfctrl.c
478
cfctrl->res.reject_rsp(cfctrl->serv.layer.up, 0,
net/caif/cfctrl.c
481
cfctrl->res.linksetup_rsp(cfctrl->serv.layer.up, linkid,
net/caif/cfctrl.c
516
cfctrl->res.linkdestroy_rsp(cfctrl->serv.layer.up, linkid);
net/caif/cfdbgl.c
35
return layr->up->receive(layr->up, pkt);
net/caif/cfdgml.c
45
caif_assert(layr->up != NULL);
net/caif/cfdgml.c
61
ret = layr->up->receive(layr->up, pkt);
net/caif/cffrml.c
135
if (layr->up == NULL) {
net/caif/cffrml.c
141
return layr->up->receive(layr->up, pkt);
net/caif/cffrml.c
179
if (layr->up && layr->up->ctrlcmd)
net/caif/cffrml.c
180
layr->up->ctrlcmd(layr->up, ctrl, layr->id);
net/caif/cffrml.c
64
void cffrml_set_uplayer(struct cflayer *this, struct cflayer *up)
net/caif/cffrml.c
66
this->up = up;
net/caif/cfmuxl.c
125
struct cflayer *up;
net/caif/cfmuxl.c
127
up = rcu_dereference(muxl->up_cache[idx]);
net/caif/cfmuxl.c
128
if (up == NULL || up->id != id) {
net/caif/cfmuxl.c
130
up = get_from_id(&muxl->srvl_list, id);
net/caif/cfmuxl.c
131
rcu_assign_pointer(muxl->up_cache[idx], up);
net/caif/cfmuxl.c
134
return up;
net/caif/cfmuxl.c
153
struct cflayer *up;
net/caif/cfmuxl.c
163
up = get_from_id(&muxl->srvl_list, id);
net/caif/cfmuxl.c
164
if (up == NULL)
net/caif/cfmuxl.c
168
list_del_rcu(&up->node);
net/caif/cfmuxl.c
171
return up;
net/caif/cfmuxl.c
179
struct cflayer *up;
net/caif/cfmuxl.c
186
up = get_up(muxl, id);
net/caif/cfmuxl.c
188
if (up == NULL) {
net/caif/cfmuxl.c
202
cfsrvl_get(up);
net/caif/cfmuxl.c
205
ret = up->receive(up, pkt);
net/caif/cfmuxl.c
207
cfsrvl_put(up);
net/caif/cfmuxl.c
86
int cfmuxl_set_uplayer(struct cflayer *layr, struct cflayer *up, u8 linkid)
net/caif/cfmuxl.c
98
list_add_rcu(&up->node, &muxl->srvl_list);
net/caif/cfrfml.c
106
caif_assert(layr->up != NULL);
net/caif/cfrfml.c
167
err = rfml->serv.layer.up->receive(rfml->serv.layer.up, pkt);
net/caif/cfrfml.c
183
layr->up->ctrlcmd(layr->up, CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND,
net/caif/cfrfml.c
288
layr->up->ctrlcmd(layr->up, CAIF_CTRLCMD_REMOTE_SHUTDOWN_IND,
net/caif/cfserl.c
157
ret = layr->layer.up->receive(layr->layer.up, pkt);
net/caif/cfserl.c
191
layr->up->ctrlcmd(layr->up, ctrl, phyid);
net/caif/cfsrvl.c
32
if (layr->up == NULL || layr->up->ctrlcmd == NULL)
net/caif/cfsrvl.c
38
layr->up->ctrlcmd(layr->up, ctrl, phyid);
net/caif/cfsrvl.c
43
layr->up->ctrlcmd(layr->up, ctrl, phyid);
net/caif/cfsrvl.c
49
layr->up->ctrlcmd(layr->up,
net/caif/cfsrvl.c
57
layr->up->ctrlcmd(layr->up,
net/caif/cfsrvl.c
65
layr->up->ctrlcmd(layr->up,
net/caif/cfsrvl.c
72
layr->up->ctrlcmd(layr->up,
net/caif/cfsrvl.c
79
layr->up->ctrlcmd(layr->up,
net/caif/cfsrvl.c
83
layr->up->ctrlcmd(layr->up, ctrl, phyid);
net/caif/cfsrvl.c
88
layr->up->ctrlcmd(layr->up, ctrl, phyid);
net/caif/cfutill.c
45
caif_assert(layr->up != NULL);
net/caif/cfutill.c
46
caif_assert(layr->up->receive != NULL);
net/caif/cfutill.c
47
caif_assert(layr->up->ctrlcmd != NULL);
net/caif/cfutill.c
56
return layr->up->receive(layr->up, pkt);
net/caif/cfveil.c
43
caif_assert(layr->up != NULL);
net/caif/cfveil.c
55
ret = layr->up->receive(layr->up, pkt);
net/caif/cfvidl.c
44
return layr->up->receive(layr->up, pkt);
net/ceph/debugfs.c
196
for (i = 0; i < t->up.size; i++)
net/ceph/debugfs.c
197
seq_printf(s, "%s%d", (!i ? "" : ","), t->up.osds[i]);
net/ceph/debugfs.c
198
seq_printf(s, "]/%d\t[", t->up.primary);
net/ceph/osd_client.c
1587
struct ceph_osds up, acting;
net/ceph/osd_client.c
1638
ceph_pg_to_up_acting_osds(osdc->osdmap, pi, &pgid, &up, &acting);
net/ceph/osd_client.c
1642
&t->up,
net/ceph/osd_client.c
1643
&up,
net/ceph/osd_client.c
1677
ceph_osds_copy(&t->up, &up);
net/ceph/osd_client.c
428
ceph_osds_init(&t->up);
net/ceph/osd_client.c
448
ceph_osds_copy(&dest->up, &src->up);
net/ceph/osdmap.c
2694
struct ceph_osds *up)
net/ceph/osdmap.c
2706
for (i = 0; i < up->size; i++) {
net/ceph/osdmap.c
2707
int osd = up->osds[i];
net/ceph/osdmap.c
2715
if (i == up->size)
net/ceph/osdmap.c
2723
for (i = 0; i < up->size; i++) {
net/ceph/osdmap.c
2724
int osd = up->osds[i];
net/ceph/osdmap.c
2749
up->primary = up->osds[pos];
net/ceph/osdmap.c
2754
up->osds[i] = up->osds[i - 1];
net/ceph/osdmap.c
2755
up->osds[0] = up->primary;
net/ceph/osdmap.c
2816
struct ceph_osds *up,
net/ceph/osdmap.c
2825
pg_to_raw_osds(osdmap, pi, raw_pgid, up, &pps);
net/ceph/osdmap.c
2826
apply_upmap(osdmap, &pgid, up);
net/ceph/osdmap.c
2827
raw_to_up_osds(osdmap, pi, up);
net/ceph/osdmap.c
2828
apply_primary_affinity(osdmap, pi, pps, up);
net/ceph/osdmap.c
2831
memcpy(acting->osds, up->osds, up->size * sizeof(up->osds[0]));
net/ceph/osdmap.c
2832
acting->size = up->size;
net/ceph/osdmap.c
2834
acting->primary = up->primary;
net/ceph/osdmap.c
2836
WARN_ON(!osds_valid(up) || !osds_valid(acting));
net/ceph/osdmap.c
2845
struct ceph_osds up, acting;
net/ceph/osdmap.c
2857
ceph_pg_to_up_acting_osds(osdmap, pi, &pgid, &up, &acting);
net/ceph/osdmap.c
2876
struct ceph_osds up, acting;
net/ceph/osdmap.c
2882
ceph_pg_to_up_acting_osds(osdmap, pi, raw_pgid, &up, &acting);
net/core/dev.h
165
dev->up = value;
net/core/netdev-genl.c
171
if (!napi->dev->up)
net/core/netdev-genl.c
269
if (!netdev->up)
net/core/netdev-genl.c
466
if (!netdev->up)
net/core/netdev-genl.c
522
if (!netdev->up)
net/core/netpoll.c
192
up(&ni->dev_lock);
net/core/netpoll.c
202
up(&ni->dev_lock);
net/core/netpoll.c
224
up(&ni->dev_lock);
net/dcb/dcbnl.c
471
u8 up, idtype;
net/dcb/dcbnl.c
501
up = ret;
net/dcb/dcbnl.c
507
up = dcb_getapp(netdev, &app);
net/dcb/dcbnl.c
522
ret = nla_put_u8(skb, DCB_APP_ATTR_PRIORITY, up);
net/dcb/dcbnl.c
540
u8 up, idtype;
net/dcb/dcbnl.c
565
up = nla_get_u8(app_tb[DCB_APP_ATTR_PRIORITY]);
net/dcb/dcbnl.c
568
ret = netdev->dcbnl_ops->setapp(netdev, idtype, id, up);
net/dcb/dcbnl.c
575
app.priority = up;
net/dsa/dsa.c
1042
bool up)
net/dsa/dsa.c
1054
(up && cpu_dp->conduit_oper_up))
net/dsa/dsa.c
1057
cpu_dp->conduit_admin_up = up;
net/dsa/dsa.c
1065
bool up)
net/dsa/dsa.c
1077
(cpu_dp->conduit_admin_up && up))
net/dsa/dsa.c
1080
cpu_dp->conduit_oper_up = up;
net/dsa/dsa.h
30
bool up);
net/dsa/dsa.h
33
bool up);
net/dsa/user.c
2616
void dsa_port_phylink_mac_change(struct dsa_switch *ds, int port, bool up)
net/dsa/user.c
2621
phylink_mac_change(dp->pl, up);
net/ethtool/mm.c
403
void ethtool_mmsv_link_state_handle(struct ethtool_mmsv *mmsv, bool up)
net/ethtool/mm.c
411
if (up && mmsv->pmac_enabled) {
net/ipv4/udp.c
1035
struct udp_sock *up = udp_sk(sk);
net/ipv4/udp.c
1037
if (up->pending) {
net/ipv4/udp.c
1038
up->len = 0;
net/ipv4/udp.c
1039
WRITE_ONCE(up->pending, 0);
net/ipv4/udp.c
1214
struct udp_sock *up = udp_sk(sk);
net/ipv4/udp.c
1227
up->len = 0;
net/ipv4/udp.c
1228
WRITE_ONCE(up->pending, 0);
net/ipv4/udp.c
1275
struct udp_sock *up = udp_sk(sk);
net/ipv4/udp.c
1306
if (READ_ONCE(up->pending)) {
net/ipv4/udp.c
1312
if (likely(up->pending)) {
net/ipv4/udp.c
1313
if (unlikely(up->pending != AF_INET)) {
net/ipv4/udp.c
1350
ipc.gso_size = READ_ONCE(up->gso_size);
net/ipv4/udp.c
1490
if (unlikely(up->pending)) {
net/ipv4/udp.c
1507
WRITE_ONCE(up->pending, AF_INET);
net/ipv4/udp.c
1510
up->len += ulen;
net/ipv4/udp.c
1519
WRITE_ONCE(up->pending, 0);
net/ipv4/udp.c
1555
struct udp_sock *up = udp_sk(sk);
net/ipv4/udp.c
1557
if (!READ_ONCE(up->pending) || udp_test_bit(CORK, sk))
net/ipv4/udp.c
1561
if (up->pending && !udp_test_bit(CORK, sk))
net/ipv4/udp.c
1633
struct udp_sock *up = udp_sk(sk);
net/ipv4/udp.c
1638
up->forward_deficit += size;
net/ipv4/udp.c
1639
size = up->forward_deficit;
net/ipv4/udp.c
1640
if (size < READ_ONCE(up->forward_threshold) &&
net/ipv4/udp.c
1641
!skb_queue_empty(&up->reader_queue))
net/ipv4/udp.c
1644
size += up->forward_deficit;
net/ipv4/udp.c
1646
up->forward_deficit = 0;
net/ipv4/udp.c
1664
skb_queue_splice_tail_init(sk_queue, &up->reader_queue);
net/ipv4/udp.c
1838
struct udp_sock *up = udp_sk(sk);
net/ipv4/udp.c
1842
skb_queue_splice_tail_init(&sk->sk_receive_queue, &up->reader_queue);
net/ipv4/udp.c
1843
while ((skb = __skb_dequeue(&up->reader_queue)) != NULL) {
net/ipv4/udp.c
1848
kfree(up->udp_prod_queue);
net/ipv4/udp.c
2405
struct udp_sock *up = udp_sk(sk);
net/ipv4/udp.c
2418
READ_ONCE(up->encap_type)) {
net/ipv4/udp.c
2433
encap_rcv = READ_ONCE(up->encap_rcv);
net/ipv4/udp.c
2458
u16 pcrlen = READ_ONCE(up->pcrlen);
net/ipv4/udp.c
2941
struct udp_sock *up = udp_sk(sk);
net/ipv4/udp.c
2949
if (up->encap_type) {
net/ipv4/udp.c
2951
encap_destroy = READ_ONCE(up->encap_destroy);
net/ipv4/udp.c
3000
struct udp_sock *up = udp_sk(sk);
net/ipv4/udp.c
3011
WRITE_ONCE(up->forward_threshold, sk->sk_rcvbuf >> 2);
net/ipv4/udp.c
3046
WRITE_ONCE(up->encap_rcv,
net/ipv4/udp.c
3050
WRITE_ONCE(up->encap_rcv,
net/ipv4/udp.c
3055
WRITE_ONCE(up->encap_type, val);
net/ipv4/udp.c
3076
WRITE_ONCE(up->gso_size, val);
net/ipv4/udp.c
3086
set_xfrm_gro_udp_encap_rcv(up->encap_type, sk->sk_family, sk);
net/ipv4/udp.c
3102
WRITE_ONCE(up->pcslen, val);
net/ipv4/udp.c
3116
WRITE_ONCE(up->pcrlen, val);
net/ipv4/udp.c
3142
struct udp_sock *up = udp_sk(sk);
net/ipv4/udp.c
3159
val = READ_ONCE(up->encap_type);
net/ipv4/udp.c
3171
val = READ_ONCE(up->gso_size);
net/ipv4/udp.c
3181
val = READ_ONCE(up->pcslen);
net/ipv4/udp.c
3185
val = READ_ONCE(up->pcrlen);
net/ipv4/udp.c
552
struct udp_sock *up;
net/ipv4/udp.c
562
udp_lrpa_for_each_entry_rcu(up, node, &hslot4->nulls_head) {
net/ipv4/udp.c
563
sk = (struct sock *)up;
net/ipv4/udp.c
878
struct udp_sock *up;
net/ipv4/udp.c
890
up = udp_sk(sk);
net/ipv4/udp.c
892
lookup = READ_ONCE(up->encap_err_lookup);
net/ipv4/udp.c
903
up = udp_sk(sk);
net/ipv4/udp.c
905
lookup = READ_ONCE(up->encap_err_lookup);
net/ipv4/udp_offload.c
116
cur->gro_receive = up->gro_receive;
net/ipv4/udp_offload.c
55
struct udp_sock *tup, *up = udp_sk(sk);
net/ipv4/udp_offload.c
61
hlist_add_head(&up->tunnel_list, &udp_tunnel_gro->list);
net/ipv4/udp_offload.c
62
else if (up->tunnel_list.pprev)
net/ipv4/udp_offload.c
63
hlist_del_init(&up->tunnel_list);
net/ipv4/udp_offload.c
82
struct udp_sock *up = udp_sk(sk);
net/ipv4/udp_offload.c
85
if (!UDP_MAX_TUNNEL_TYPES || !up->gro_receive)
net/ipv4/udp_offload.c
95
if (udp_tunnel_gro_types[i].gro_receive == up->gro_receive)
net/ipv4/xfrm4_input.c
83
struct udp_sock *up = udp_sk(sk);
net/ipv4/xfrm4_input.c
91
encap_type = READ_ONCE(up->encap_type);
net/ipv6/ipv6_sockglue.c
568
struct udp_sock *up = udp_sk(sk);
net/ipv6/ipv6_sockglue.c
569
if (up->pending == AF_INET6) {
net/ipv6/udp.c
1275
struct udp_sock *up = udp_sk(sk);
net/ipv6/udp.c
1277
if (up->pending == AF_INET)
net/ipv6/udp.c
1279
else if (up->pending) {
net/ipv6/udp.c
1280
up->len = 0;
net/ipv6/udp.c
1281
WRITE_ONCE(up->pending, 0);
net/ipv6/udp.c
1459
struct udp_sock *up = udp_sk(sk);
net/ipv6/udp.c
1462
if (up->pending == AF_INET)
net/ipv6/udp.c
1472
up->len = 0;
net/ipv6/udp.c
1473
WRITE_ONCE(up->pending, 0);
net/ipv6/udp.c
1480
struct udp_sock *up = udp_sk(sk);
net/ipv6/udp.c
1501
ipc6.gso_size = READ_ONCE(up->gso_size);
net/ipv6/udp.c
1528
} else if (!READ_ONCE(up->pending)) {
net/ipv6/udp.c
1559
if (READ_ONCE(up->pending)) {
net/ipv6/udp.c
1560
if (READ_ONCE(up->pending) == AF_INET)
net/ipv6/udp.c
1567
if (likely(up->pending)) {
net/ipv6/udp.c
1568
if (unlikely(up->pending != AF_INET6)) {
net/ipv6/udp.c
1739
if (unlikely(up->pending)) {
net/ipv6/udp.c
1749
WRITE_ONCE(up->pending, AF_INET6);
net/ipv6/udp.c
1752
up->len += ulen;
net/ipv6/udp.c
1761
WRITE_ONCE(up->pending, 0);
net/ipv6/udp.c
1800
struct udp_sock *up = udp_sk(sk);
net/ipv6/udp.c
1802
if (!READ_ONCE(up->pending) || udp_test_bit(CORK, sk))
net/ipv6/udp.c
1806
if (up->pending && !udp_test_bit(CORK, sk))
net/ipv6/udp.c
1813
struct udp_sock *up = udp_sk(sk);
net/ipv6/udp.c
1822
if (up->encap_type) {
net/ipv6/udp.c
1824
encap_destroy = READ_ONCE(up->encap_destroy);
net/ipv6/udp.c
299
struct udp_sock *up;
net/ipv6/udp.c
307
udp_lrpa_for_each_entry_rcu(up, node, &hslot4->nulls_head) {
net/ipv6/udp.c
308
sk = (struct sock *)up;
net/ipv6/udp.c
659
struct udp_sock *up;
net/ipv6/udp.c
671
up = udp_sk(sk);
net/ipv6/udp.c
673
lookup = READ_ONCE(up->encap_err_lookup);
net/ipv6/udp.c
684
up = udp_sk(sk);
net/ipv6/udp.c
686
lookup = READ_ONCE(up->encap_err_lookup);
net/ipv6/udp.c
830
struct udp_sock *up = udp_sk(sk);
net/ipv6/udp.c
840
READ_ONCE(up->encap_type)) {
net/ipv6/udp.c
855
encap_rcv = READ_ONCE(up->encap_rcv);
net/ipv6/udp.c
880
u16 pcrlen = READ_ONCE(up->pcrlen);
net/ipv6/xfrm6_input.c
78
struct udp_sock *up = udp_sk(sk);
net/ipv6/xfrm6_input.c
87
encap_type = READ_ONCE(up->encap_type);
net/mac80211/cfg.c
4783
u8 tsid, const u8 *peer, u8 up,
net/mac80211/cfg.c
4788
int ac = ieee802_1d_to_ac[up];
net/mac80211/cfg.c
4793
if (!(sdata->wmm_acm & BIT(up)))
net/mac80211/cfg.c
4802
ifmgd->tx_tspec[ac].up = up;
net/mac80211/cfg.c
4827
tx_tspec->up = -1;
net/mac80211/ieee80211_i.h
496
s8 up; /* signed to be able to invalidate with -1 during teardown */
net/mac80211/wme.c
94
skb->priority == ifmgd->tx_tspec[ac].up)
net/netfilter/ipvs/ip_vs_sync.c
1706
struct udp_sock *up = udp_sk(sk);
net/netfilter/ipvs/ip_vs_sync.c
1716
!skb_queue_empty_lockless(&up->reader_queue) ||
net/netfilter/ipvs/ip_vs_sync.c
1721
!skb_queue_empty_lockless(&up->reader_queue)) {
net/rxrpc/call_object.c
283
up(limiter);
net/rxrpc/call_object.c
350
up(limiter);
net/sched/sch_cake.c
449
bool up = false;
net/sched/sch_cake.c
452
up = !vars->p_drop;
net/sched/sch_cake.c
463
return up;
net/sched/sch_generic.c
1419
bool up = dev->flags & IFF_UP;
net/sched/sch_generic.c
1423
if (up)
net/sched/sch_generic.c
1434
if (up)
net/tipc/bearer.c
363
test_and_set_bit_lock(0, &b->up);
net/tipc/bearer.c
413
clear_bit_unlock(0, &b->up);
net/tipc/bearer.c
570
if (likely(b && (test_bit(0, &b->up) || msg_is_reset(hdr)))) {
net/tipc/bearer.c
601
if (likely(test_bit(0, &b->up) || msg_is_reset(buf_msg(skb)))) {
net/tipc/bearer.c
628
if (unlikely(!b || !test_bit(0, &b->up)))
net/tipc/bearer.c
664
if (likely(b && test_bit(0, &b->up) &&
net/tipc/bearer.c
701
test_and_set_bit_lock(0, &b->up);
net/tipc/bearer.c
706
clear_bit_unlock(0, &b->up);
net/tipc/bearer.c
710
test_and_set_bit_lock(0, &b->up);
net/tipc/bearer.h
175
unsigned long up;
net/tipc/crypto.c
854
if (likely(test_bit(0, &b->up)))
net/tipc/crypto.c
989
if (likely(test_bit(0, &b->up)))
net/tipc/netlink_compat.c
1125
node_info.up = htonl(nla_get_flag(node[TIPC_NLA_NODE_UP]));
net/tipc/netlink_compat.c
694
link_info.up = htonl(nla_get_flag(link[TIPC_NLA_LINK_UP]));
net/tipc/trace.h
415
__entry->b_up = test_bit(0, &b->up);
net/tipc/udp_media.c
391
if (b && test_bit(0, &b->up)) {
net/wireless/nl80211.c
16839
if (qos_map->dscp_exception[des].up > 7) {
net/wireless/nl80211.c
16846
memcpy(qos_map->up, pos, IEEE80211_QOS_MAP_LEN_MIN);
net/wireless/nl80211.c
16863
u8 tsid, up;
net/wireless/nl80211.c
16874
up = nla_get_u8(info->attrs[NL80211_ATTR_USER_PRIO]);
net/wireless/nl80211.c
16904
return rdev_add_tx_ts(rdev, dev, tsid, peer, up, admitted_time);
net/wireless/trace.h
226
__array(u8, up, IEEE80211_QOS_MAP_LEN_MIN)
net/wireless/trace.h
234
memcpy(__entry->up, &(qos_map)->up, \
net/wireless/trace.h
240
memset(__entry->up, 0, \
net/wireless/util.c
1002
if (tmp_dscp >= qos_map->up[i].low &&
net/wireless/util.c
1003
tmp_dscp <= qos_map->up[i].high) {
net/wireless/util.c
996
ret = qos_map->dscp_exception[i].up;
net/xfrm/xfrm_user.c
2298
struct xfrm_user_tmpl *up = &vec[i];
net/xfrm/xfrm_user.c
2301
memset(up, 0, sizeof(*up));
net/xfrm/xfrm_user.c
2302
memcpy(&up->id, &kp->id, sizeof(up->id));
net/xfrm/xfrm_user.c
2303
up->family = kp->encap_family;
net/xfrm/xfrm_user.c
2304
memcpy(&up->saddr, &kp->saddr, sizeof(up->saddr));
net/xfrm/xfrm_user.c
2305
up->reqid = kp->reqid;
net/xfrm/xfrm_user.c
2306
up->mode = kp->mode;
net/xfrm/xfrm_user.c
2307
up->share = kp->share;
net/xfrm/xfrm_user.c
2308
up->optional = kp->optional;
net/xfrm/xfrm_user.c
2309
up->aalgos = kp->aalgos;
net/xfrm/xfrm_user.c
2310
up->ealgos = kp->ealgos;
net/xfrm/xfrm_user.c
2311
up->calgos = kp->calgos;
net/xfrm/xfrm_user.c
2471
struct xfrm_userpolicy_default *up;
net/xfrm/xfrm_user.c
2472
int len = NLMSG_ALIGN(sizeof(*up));
net/xfrm/xfrm_user.c
2481
nlh = nlmsg_put(skb, 0, 0, XFRM_MSG_GETDEFAULT, sizeof(*up), 0);
net/xfrm/xfrm_user.c
2487
up = nlmsg_data(nlh);
net/xfrm/xfrm_user.c
2488
up->in = net->xfrm.policy_default[XFRM_POLICY_IN];
net/xfrm/xfrm_user.c
2489
up->fwd = net->xfrm.policy_default[XFRM_POLICY_FWD];
net/xfrm/xfrm_user.c
2490
up->out = net->xfrm.policy_default[XFRM_POLICY_OUT];
net/xfrm/xfrm_user.c
2511
struct xfrm_userpolicy_default *up = nlmsg_data(nlh);
net/xfrm/xfrm_user.c
2513
if (xfrm_userpolicy_is_valid(up->in))
net/xfrm/xfrm_user.c
2514
net->xfrm.policy_default[XFRM_POLICY_IN] = up->in;
net/xfrm/xfrm_user.c
2516
if (xfrm_userpolicy_is_valid(up->fwd))
net/xfrm/xfrm_user.c
2517
net->xfrm.policy_default[XFRM_POLICY_FWD] = up->fwd;
net/xfrm/xfrm_user.c
2519
if (xfrm_userpolicy_is_valid(up->out))
net/xfrm/xfrm_user.c
2520
net->xfrm.policy_default[XFRM_POLICY_OUT] = up->out;
net/xfrm/xfrm_user.c
2892
struct xfrm_user_polexpire *up = nlmsg_data(nlh);
net/xfrm/xfrm_user.c
2893
struct xfrm_userpolicy_info *p = &up->pol;
net/xfrm/xfrm_user.c
2942
if (up->hard) {
net/xfrm/xfrm_user.c
2946
km_policy_expired(xp, p->dir, up->hard, nlh->nlmsg_pid);
net/xfrm/xfrm_user.c
736
struct xfrm_replay_state_esn *up;
net/xfrm/xfrm_user.c
742
up = nla_data(rp);
net/xfrm/xfrm_user.c
743
ulen = xfrm_replay_state_esn_len(up);
net/xfrm/xfrm_user.c
757
if (replay_esn->bmp_len != up->bmp_len) {
net/xfrm/xfrm_user.c
762
if (up->replay_window > up->bmp_len * sizeof(__u32) * 8) {
net/xfrm/xfrm_user.c
774
struct xfrm_replay_state_esn *p, *pp, *up;
net/xfrm/xfrm_user.c
780
up = nla_data(rta);
net/xfrm/xfrm_user.c
781
klen = xfrm_replay_state_esn_len(up);
net/xfrm/xfrm_user.c
782
ulen = nla_len(rta) >= (int)klen ? klen : sizeof(*up);
net/xfrm/xfrm_user.c
794
memcpy(p, up, ulen);
net/xfrm/xfrm_user.c
795
memcpy(pp, up, ulen);
samples/hung_task/hung_task_tests.c
68
up(&dummy_sem);
sound/core/rawmidi.c
209
static inline void snd_rawmidi_output_trigger(struct snd_rawmidi_substream *substream, int up)
sound/core/rawmidi.c
213
substream->ops->trigger(substream, up);
sound/core/rawmidi.c
216
static void snd_rawmidi_input_trigger(struct snd_rawmidi_substream *substream, int up)
sound/core/rawmidi.c
220
substream->ops->trigger(substream, up);
sound/core/rawmidi.c
221
if (!up)
sound/core/seq/seq_virmidi.c
123
static void snd_virmidi_input_trigger(struct snd_rawmidi_substream *substream, int up)
sound/core/seq/seq_virmidi.c
127
WRITE_ONCE(vmidi->trigger, !!up);
sound/core/seq/seq_virmidi.c
172
static void snd_virmidi_output_trigger(struct snd_rawmidi_substream *substream, int up)
sound/core/seq/seq_virmidi.c
176
WRITE_ONCE(vmidi->trigger, !!up);
sound/core/seq/seq_virmidi.c
177
if (up)
sound/core/ump.c
1192
int up)
sound/core/ump.c
1197
ump->ops->trigger(ump, dir, up);
sound/core/ump.c
281
int up)
sound/core/ump.c
286
ump->ops->trigger(ump, dir, up);
sound/core/ump.c
30
int up);
sound/drivers/mpu401/mpu401_uart.c
344
snd_mpu401_uart_input_trigger(struct snd_rawmidi_substream *substream, int up)
sound/drivers/mpu401/mpu401_uart.c
350
if (up) {
sound/drivers/mpu401/mpu401_uart.c
429
snd_mpu401_uart_output_trigger(struct snd_rawmidi_substream *substream, int up)
sound/drivers/mpu401/mpu401_uart.c
434
if (up) {
sound/drivers/mtpav.c
363
static void snd_mtpav_input_trigger(struct snd_rawmidi_substream *substream, int up)
sound/drivers/mtpav.c
369
if (up)
sound/drivers/mtpav.c
439
static void snd_mtpav_output_trigger(struct snd_rawmidi_substream *substream, int up)
sound/drivers/mtpav.c
445
if (up) {
sound/drivers/mtpav.c
458
if (up)
sound/drivers/mts64.c
697
int up)
sound/drivers/mts64.c
710
int up)
sound/drivers/mts64.c
715
if (up)
sound/drivers/portman2x4.c
496
int up)
sound/drivers/portman2x4.c
501
if (up)
sound/drivers/portman2x4.c
508
int up)
sound/drivers/portman2x4.c
514
if (up) {
sound/drivers/serial-generic.c
182
int up)
sound/drivers/serial-generic.c
186
if (up)
sound/drivers/serial-generic.c
229
int up)
sound/drivers/serial-generic.c
233
if (up)
sound/drivers/serial-generic.c
238
if (up)
sound/drivers/serial-u16550.c
520
int up)
sound/drivers/serial-u16550.c
525
if (up)
sound/drivers/serial-u16550.c
708
int up)
sound/drivers/serial-u16550.c
713
if (up)
sound/drivers/serial-u16550.c
718
if (up)
sound/firewire/bebob/bebob_midi.c
47
static void midi_capture_trigger(struct snd_rawmidi_substream *substrm, int up)
sound/firewire/bebob/bebob_midi.c
53
if (up)
sound/firewire/bebob/bebob_midi.c
61
static void midi_playback_trigger(struct snd_rawmidi_substream *substrm, int up)
sound/firewire/bebob/bebob_midi.c
67
if (up)
sound/firewire/dice/dice-midi.c
47
static void midi_capture_trigger(struct snd_rawmidi_substream *substrm, int up)
sound/firewire/dice/dice-midi.c
53
if (up)
sound/firewire/dice/dice-midi.c
61
static void midi_playback_trigger(struct snd_rawmidi_substream *substrm, int up)
sound/firewire/dice/dice-midi.c
67
if (up)
sound/firewire/digi00x/digi00x-midi.c
48
int up)
sound/firewire/digi00x/digi00x-midi.c
60
if (up)
sound/firewire/digi00x/digi00x-midi.c
67
int up)
sound/firewire/digi00x/digi00x-midi.c
79
if (up)
sound/firewire/fireface/ff-midi.c
46
int up)
sound/firewire/fireface/ff-midi.c
52
if (up)
sound/firewire/fireface/ff-midi.c
60
int up)
sound/firewire/fireface/ff-midi.c
66
if (up || !ff->rx_midi_error[substream->number])
sound/firewire/fireworks/fireworks_midi.c
46
static void midi_capture_trigger(struct snd_rawmidi_substream *substrm, int up)
sound/firewire/fireworks/fireworks_midi.c
52
if (up)
sound/firewire/fireworks/fireworks_midi.c
60
static void midi_playback_trigger(struct snd_rawmidi_substream *substrm, int up)
sound/firewire/fireworks/fireworks_midi.c
66
if (up)
sound/firewire/motu/motu-midi.c
47
static void midi_capture_trigger(struct snd_rawmidi_substream *substrm, int up)
sound/firewire/motu/motu-midi.c
53
if (up)
sound/firewire/motu/motu-midi.c
61
static void midi_playback_trigger(struct snd_rawmidi_substream *substrm, int up)
sound/firewire/motu/motu-midi.c
67
if (up)
sound/firewire/oxfw/oxfw-midi.c
104
if (up)
sound/firewire/oxfw/oxfw-midi.c
84
static void midi_capture_trigger(struct snd_rawmidi_substream *substrm, int up)
sound/firewire/oxfw/oxfw-midi.c
90
if (up)
sound/firewire/oxfw/oxfw-midi.c
98
static void midi_playback_trigger(struct snd_rawmidi_substream *substrm, int up)
sound/firewire/oxfw/oxfw-scs1x.c
287
static void midi_capture_trigger(struct snd_rawmidi_substream *stream, int up)
sound/firewire/oxfw/oxfw-scs1x.c
291
if (up) {
sound/firewire/oxfw/oxfw-scs1x.c
309
static void midi_playback_trigger(struct snd_rawmidi_substream *stream, int up)
sound/firewire/oxfw/oxfw-scs1x.c
313
if (up) {
sound/firewire/tascam/tascam-midi.c
43
static void midi_capture_trigger(struct snd_rawmidi_substream *substrm, int up)
sound/firewire/tascam/tascam-midi.c
49
if (up)
sound/firewire/tascam/tascam-midi.c
55
static void midi_playback_trigger(struct snd_rawmidi_substream *substrm, int up)
sound/firewire/tascam/tascam-midi.c
61
if (up)
sound/isa/gus/gus_uart.c
151
static void snd_gf1_uart_input_trigger(struct snd_rawmidi_substream *substream, int up)
sound/isa/gus/gus_uart.c
158
if (up) {
sound/isa/gus/gus_uart.c
167
static void snd_gf1_uart_output_trigger(struct snd_rawmidi_substream *substream, int up)
sound/isa/gus/gus_uart.c
177
if (up) {
sound/isa/sb/sb8_midi.c
125
static void snd_sb8dsp_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
sound/isa/sb/sb8_midi.c
131
if (up) {
sound/isa/sb/sb8_midi.c
189
static void snd_sb8dsp_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
sound/isa/sb/sb8_midi.c
195
if (up) {
sound/isa/sb/sb8_midi.c
207
if (up)
sound/isa/wavefront/wavefront_midi.c
309
static void snd_wavefront_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
sound/isa/wavefront/wavefront_midi.c
327
if (up) {
sound/isa/wavefront/wavefront_midi.c
345
static void snd_wavefront_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
sound/isa/wavefront/wavefront_midi.c
363
if (up) {
sound/isa/wavefront/wavefront_midi.c
379
if (up)
sound/pci/ca0106/ca_midi.c
173
static void ca_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
sound/pci/ca0106/ca_midi.c
180
if (up) {
sound/pci/ca0106/ca_midi.c
187
static void ca_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
sound/pci/ca0106/ca_midi.c
194
if (up) {
sound/pci/cmipci.c
1207
static int setup_spdif_playback(struct cmipci *cm, struct snd_pcm_substream *subs, int up, int do_ac3)
sound/pci/cmipci.c
1213
if (up && do_ac3) {
sound/pci/cmipci.c
1220
cm->spdif_playback_avail = up;
sound/pci/cmipci.c
1221
if (up) {
sound/pci/cs4281.c
1638
static void snd_cs4281_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
sound/pci/cs4281.c
1643
if (up) {
sound/pci/cs4281.c
1656
static void snd_cs4281_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
sound/pci/cs4281.c
1662
if (up) {
sound/pci/cs46xx/cs46xx_lib.c
2567
static void snd_cs46xx_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
sound/pci/cs46xx/cs46xx_lib.c
2572
if (up) {
sound/pci/cs46xx/cs46xx_lib.c
2585
static void snd_cs46xx_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
sound/pci/cs46xx/cs46xx_lib.c
2591
if (up) {
sound/pci/echoaudio/echoaudio.h
433
struct snd_rawmidi_substream *substream, int up);
sound/pci/echoaudio/midi.c
150
int up)
sound/pci/echoaudio/midi.c
154
if (up != chip->midi_input_enabled) {
sound/pci/echoaudio/midi.c
156
enable_midi_input(chip, up);
sound/pci/echoaudio/midi.c
157
chip->midi_input_enabled = up;
sound/pci/echoaudio/midi.c
233
int up)
sound/pci/echoaudio/midi.c
238
dev_dbg(chip->card->dev, "snd_echo_midi_output_trigger(%d)\n", up);
sound/pci/echoaudio/midi.c
240
if (up) {
sound/pci/echoaudio/midi.c
260
if (up && !chip->midi_full)
sound/pci/emu10k1/emu10k1x.c
1332
static void snd_emu10k1x_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
sound/pci/emu10k1/emu10k1x.c
1340
if (up)
sound/pci/emu10k1/emu10k1x.c
1346
static void snd_emu10k1x_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
sound/pci/emu10k1/emu10k1x.c
1355
if (up) {
sound/pci/emu10k1/emumpu401.c
218
static void snd_emu10k1_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
sound/pci/emu10k1/emumpu401.c
226
if (up)
sound/pci/emu10k1/emumpu401.c
232
static void snd_emu10k1_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
sound/pci/emu10k1/emumpu401.c
241
if (up) {
sound/pci/ens1370.c
2149
static void snd_ensoniq_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
sound/pci/ens1370.c
2155
if (up) {
sound/pci/ens1370.c
2171
static void snd_ensoniq_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
sound/pci/ens1370.c
2177
if (up) {
sound/pci/ice1712/ice1724.c
305
static void vt1724_midi_output_trigger(struct snd_rawmidi_substream *s, int up)
sound/pci/ice1712/ice1724.c
310
if (up) {
sound/pci/ice1712/ice1724.c
354
static void vt1724_midi_input_trigger(struct snd_rawmidi_substream *s, int up)
sound/pci/ice1712/ice1724.c
359
if (up) {
sound/pci/rme9652/hdsp.c
1359
static void snd_hdsp_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
sound/pci/rme9652/hdsp.c
1369
if (up) {
sound/pci/rme9652/hdsp.c
1398
static void snd_hdsp_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
sound/pci/rme9652/hdsp.c
1404
if (up) {
sound/pci/rme9652/hdsp.c
1416
if (up)
sound/pci/rme9652/hdspm.c
1911
snd_hdspm_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
sound/pci/rme9652/hdspm.c
1920
if (up) {
sound/pci/rme9652/hdspm.c
1950
snd_hdspm_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
sound/pci/rme9652/hdspm.c
1956
if (up) {
sound/pci/rme9652/hdspm.c
1968
if (up)
sound/soc/codecs/mt6357.c
73
static void hp_main_output_ramp(struct mt6357_priv *priv, bool up)
sound/soc/codecs/mt6357.c
79
stage = up ? i : MT6357_HPLOUT_STG_CTRL_VAUDP15_MAX - i;
sound/soc/codecs/mt6357.c
90
static void hp_aux_feedback_loop_gain_ramp(struct mt6357_priv *priv, bool up)
sound/soc/codecs/mt6357.c
96
stage = up ? i : MT6357_HP_AUX_LOOP_GAIN_MAX - i;
sound/soc/codecs/mt6358.c
232
static void hp_main_output_ramp(struct mt6358_priv *priv, bool up)
sound/soc/codecs/mt6358.c
239
stage = up ? i : target - i;
sound/soc/codecs/mt6358.c
248
static void hp_aux_feedback_loop_gain_ramp(struct mt6358_priv *priv, bool up)
sound/soc/codecs/mt6358.c
254
stage = up ? i : 0xf - i;
sound/soc/codecs/mt6359-accdet.c
334
v >= priv->data->four_key.up)
sound/soc/codecs/mt6359-accdet.c
336
if (v < priv->data->four_key.up &&
sound/soc/codecs/mt6359-accdet.c
346
v >= priv->data->three_key.up)
sound/soc/codecs/mt6359-accdet.c
348
if (v < priv->data->three_key.up &&
sound/soc/codecs/mt6359-accdet.h
55
unsigned int up;
sound/soc/codecs/mt6359-accdet.h
62
unsigned int up;
sound/soc/codecs/mt6359.c
254
static void hp_main_output_ramp(struct mt6359_priv *priv, bool up)
sound/soc/codecs/mt6359.c
261
stage = up ? i : target - i;
sound/soc/codecs/mt6359.c
272
static void hp_aux_feedback_loop_gain_ramp(struct mt6359_priv *priv, bool up)
sound/soc/codecs/mt6359.c
279
stage = up ? i : target - i;
sound/soc/codecs/nau8824.c
225
up(&nau8824->jd_sem);
sound/soc/codecs/nau8825.c
267
up(&nau8825->xtalk_sem);
sound/usb/6fire/midi.c
116
struct snd_rawmidi_substream *alsa_sub, int up)
sound/usb/6fire/midi.c
121
if (up)
sound/usb/6fire/midi.c
66
struct snd_rawmidi_substream *alsa_sub, int up)
sound/usb/6fire/midi.c
73
if (up) { /* start transfer */
sound/usb/bcd2000/bcd2000.c
191
int up)
sound/usb/bcd2000/bcd2000.c
195
if (up) {
sound/usb/bcd2000/bcd2000.c
90
int up)
sound/usb/bcd2000/bcd2000.c
93
bcd2k->midi_receive_substream = up ? substream : NULL;
sound/usb/caiaq/midi.c
26
static void snd_usb_caiaq_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
sound/usb/caiaq/midi.c
33
cdev->midi_receive_substream = up ? substream : NULL;
sound/usb/caiaq/midi.c
78
static void snd_usb_caiaq_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
sound/usb/caiaq/midi.c
82
if (up) {
sound/usb/line6/midi.c
156
int up)
sound/usb/line6/midi.c
189
int up)
sound/usb/line6/midi.c
194
if (up)
sound/usb/midi.c
1210
int up)
sound/usb/midi.c
1215
port->active = up;
sound/usb/midi.c
1216
if (up) {
sound/usb/midi.c
1270
int up)
sound/usb/midi.c
1274
if (up)
sound/usb/midi2.c
369
int up)
sound/usb/midi2.c
373
atomic_set(&ep->running, up);
sound/usb/midi2.c
374
if (up && ep->direction == STR_OUT && !ep->disconnected)
sound/usb/usx2y/us144mkii_midi.c
117
int up)
sound/usb/usx2y/us144mkii_midi.c
122
if (up) {
sound/usb/usx2y/us144mkii_midi.c
352
int up)
sound/usb/usx2y/us144mkii_midi.c
356
if (up) {
tools/perf/util/probe-event.c
2986
int i, fd[2] = {-1, -1}, up, ret;
tools/perf/util/probe-event.c
2992
up = pev->uprobes ? 1 : 0;
tools/perf/util/probe-event.c
2993
fd[up] = __open_probe_file_and_namelist(up, &namelist[up]);
tools/perf/util/probe-event.c
2994
if (fd[up] < 0)
tools/perf/util/probe-event.c
2995
return fd[up];
tools/perf/util/probe-event.c
3000
up = tev->uprobes ? 1 : 0;
tools/perf/util/probe-event.c
3001
if (fd[up] == -1) { /* Open the kprobe/uprobe_events */
tools/perf/util/probe-event.c
3002
fd[up] = __open_probe_file_and_namelist(up,
tools/perf/util/probe-event.c
3003
&namelist[up]);
tools/perf/util/probe-event.c
3004
if (fd[up] < 0)
tools/perf/util/probe-event.c
3012
ret = probe_trace_event__set_name(tev, pev, namelist[up],
tools/perf/util/probe-event.c
3018
ret = probe_file__add_event(fd[up], tev);
tools/perf/util/probe-event.c
3043
for (up = 0; up < 2; up++) {
tools/perf/util/probe-event.c
3044
strlist__delete(namelist[up]);
tools/perf/util/probe-event.c
3045
if (fd[up] >= 0)
tools/perf/util/probe-event.c
3046
close(fd[up]);
tools/testing/radix-tree/main.c
15
void __gang_check(unsigned long middle, long down, long up, int chunk, int hop)
tools/testing/radix-tree/main.c
22
for (idx = -down; idx < up; idx++)
tools/testing/radix-tree/main.c
26
for (idx = -down; idx < up; idx++)
tools/testing/radix-tree/main.c
28
item_check_absent(&tree, middle + up);
tools/testing/radix-tree/main.c
31
item_gang_check_present(&tree, middle - down, up + down,
tools/testing/radix-tree/main.c
33
item_full_scan(&tree, middle - down, down + up, chunk);
tools/testing/selftests/bpf/prog_tests/ip_check_defrag.c
43
bool up;
tools/testing/selftests/bpf/prog_tests/ip_check_defrag.c
62
up = !SYS_NOFAIL("ip netns exec " NS0 " ping -6 -c 1 -W 1 " VETH1_ADDR6);
tools/testing/selftests/bpf/prog_tests/ip_check_defrag.c
64
up = !SYS_NOFAIL("ip netns exec " NS0 " ping -c 1 -W 1 " VETH1_ADDR);
tools/testing/selftests/bpf/prog_tests/ip_check_defrag.c
66
if (up)