Home
last modified time | relevance | path

Searched +full:x +full:- +full:rp (Results 1 – 25 of 128) sorted by relevance

123456

/linux/drivers/net/ethernet/via/
H A Dvia-rhine.c1 /* via-rhine.c: A Linux Ethernet device driver for VIA Rhine family chips. */
3 Written 1998-2001 by Donald Becker.
14 This driver is designed for the VIA VT86C100A Rhine-I.
15 It also works with the Rhine-II (6102) and Rhine-III (6105/6105L/6105LOM
27 http://www.scyld.com/network/via-rhine.html
28 [link no longer provides useful info -jgarzik]
34 #define DRV_NAME "via-rhine"
38 /* A few user-configurable values.
44 /* Set the copy breakpoint for the copy-only-tiny-frames scheme.
54 /* Work-around for broken BIOSes: they are unable to get the chip back out of
[all …]
/linux/arch/arm/include/debug/
H A Dbrcmstb.S1 /* SPDX-License-Identifier: GPL-2.0-only */
10 #define REG_PHYS_ADDR(x) ((x) + REG_PHYS_BASE) argument
11 #define REG_PHYS_ADDR_V7(x) ((x) + REG_PHYS_BASE_V7) argument
37 #define checkuart(rp, rv, family_id, family) \ argument
39 ldr rp, =family_id ; \
41 cmp rp, rv ; \
43 ldreq rp, =UARTA_##family ; \
47 .macro addruart, rp, rv, tmp
48 adr \rp, 99f @ actual addr of 99f
49 ldr \rv, [\rp] @ linked addr is stored there
[all …]
H A Dimx.S1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* arch/arm/mach-imx/include/mach/debug-macro.S
6 * Copyright (C) 1994-1999 Russell King
11 #include "imx-uart.h"
16 * globally for multi-platform build to use a fixed virtual address
17 * for low-level debug uart port across platforms.
19 #define IMX_IO_P2V(x) ( \ argument
20 (((x) & 0x80000000) >> 7) | \
22 (((x) & 0x50000000) >> 6) + \
23 (((x) & 0x0b000000) >> 4) + \
[all …]
/linux/drivers/pci/controller/mobiveil/
H A Dpcie-mobiveil-host.c1 // SPDX-License-Identifier: GPL-2.0
6 * Copyright 2019-2020 NXP
15 #include <linux/irqchip/irq-msi-lib.h>
26 #include "pcie-mobiveil.h"
38 if ((bus->primary == to_pci_host_bridge(bus->bridge)->busnr) && (PCI_SLOT(devfn) > 0)) in mobiveil_pcie_valid_device()
45 * mobiveil_pcie_map_bus - routine to get the configuration base of either
51 struct mobiveil_pcie *pcie = bus->sysdata; in mobiveil_pcie_map_bus()
52 struct mobiveil_root_port *rp = &pcie->rp; in mobiveil_pcie_map_bus() local
60 return pcie->csr_axi_slave_base + where; in mobiveil_pcie_map_bus()
68 value = bus->number << PAB_BUS_SHIFT | in mobiveil_pcie_map_bus()
[all …]
/linux/drivers/usb/mon/
H A Dmon_text.c1 // SPDX-License-Identifier: GPL-2.0
106 mon_text_read_wait(struct mon_reader_text *rp, struct file *file);
107 static void mon_text_read_head_t(struct mon_reader_text *rp,
109 static void mon_text_read_head_u(struct mon_reader_text *rp,
111 static void mon_text_read_statset(struct mon_reader_text *rp,
113 static void mon_text_read_intstat(struct mon_reader_text *rp,
115 static void mon_text_read_isostat(struct mon_reader_text *rp,
117 static void mon_text_read_isodesc(struct mon_reader_text *rp,
119 static void mon_text_read_data(struct mon_reader_text *rp,
135 if (ep->xfertype != USB_ENDPOINT_XFER_CONTROL || ev_type != 'S') in mon_text_get_setup()
[all …]
H A Dmon_bin.c1 // SPDX-License-Identifier: GPL-2.0
62 * page-sized chunks for the time being.
65 #define CHUNK_ALIGN(x) (((x)+CHUNK_SIZE-1) & ~(CHUNK_SIZE-1)) argument
78 * amount for typical, low-throughput use cases.
80 * XXX What about multi-megabyte URBs which take minutes to transfer?
87 * The per-event API header (2 per URB).
92 u64 id; /* URB ID - from submission to callback */
106 unsigned char setup[SETUP_LEN]; /* Only for Control S-type */
188 unsigned int b_size; /* Current size of the buffer - bytes */
190 unsigned int b_in, b_out; /* Offsets into buffer - bytes */
[all …]
/linux/drivers/media/pci/cx88/
H A Dcx88-core.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * device driver for Conexant 2388x based TV cards
8 * (c) 2005-2006 Mauro Carvalho Chehab <mchehab@kernel.org>
9 * - Multituner support
10 * - video_ioctl2 conversion
11 * - PAL/M fixes
29 #include <media/v4l2-common.h>
30 #include <media/v4l2-ioctl.h>
36 /* ------------------------------------------------------------------ */
64 #define NO_SYNC_LINE (-1U)
[all …]
/linux/arch/parisc/kernel/
H A Dunwind.c1 // SPDX-License-Identifier: GPL-2.0
5 * (c) 2002-2004 Randolph Chung <tausq@debian.org>
7 * Derived partially from the IA64 implementation. The PA-RISC
21 #include <asm/asm-offsets.h>
31 #define dbg(x...) pr_debug(x) argument
33 #define dbg(x...) do { } while (0) argument
38 #define ALIGNMENT_OK(ptr, type) (((ptr) & (sizeof(type) - 1)) == 0)
59 hi = table->length - 1; in find_unwind_entry_in_table()
62 mid = (hi - lo) / 2 + lo; in find_unwind_entry_in_table()
63 e = &table->table[mid]; in find_unwind_entry_in_table()
[all …]
/linux/drivers/s390/char/
H A Draw3270.c1 // SPDX-License-Identifier: GPL-2.0
3 * IBM/3270 Driver - core functions.
56 unsigned char *ascebc; /* ascii -> ebcdic table */
66 /* raw3270->state */
73 /* raw3270->flags */
74 #define RAW3270_FLAGS_14BITADDR 0 /* 14-bit buffer addresses */
101 static void __raw3270_disconnect(struct raw3270 *rp);
117 static inline int raw3270_state_ready(struct raw3270 *rp) in raw3270_state_ready() argument
119 return rp->state == RAW3270_STATE_READY; in raw3270_state_ready()
122 void raw3270_buffer_address(struct raw3270 *rp, char *cp, int x, int y) in raw3270_buffer_address() argument
[all …]
/linux/arch/m68k/fpsp040/
H A Dsint.S12 | Input: (Entry points sint and sintrz) Double-extended
13 | number X in the ETEMP space in the floating-point
15 | (Entry point sintdo) Double-extended number X in
17 | (Entry point sintd) Double-extended denormalized
18 | number X in the ETEMP space in the floating-point
21 | Output: The function returns int(X) or intrz(X) in fp0.
27 | 1. If exp(X) >= 63, return X.
28 | If exp(X) < 0, return +/- 0 or +/- 1, according to
31 | 2. (X is in range) set rsc = 63 - exp(X). Unnormalize the
35 | sintrz, force round-to-zero mode.
[all …]
/linux/drivers/net/wireless/mediatek/mt7601u/
H A Ddebugfs.c1 // SPDX-License-Identifier: GPL-2.0-only
17 mt76_wr(dev, dev->debugfs_reg, val); in mt76_reg_set()
26 *val = mt76_rr(dev, dev->debugfs_reg); in mt76_reg_get()
30 DEFINE_DEBUGFS_ATTRIBUTE(fops_regval, mt76_reg_get, mt76_reg_set, "0x%08llx\n");
35 struct mt7601u_dev *dev = file->private; in mt7601u_ampdu_stat_show()
39 seq_printf(file, #name ":\t%llu\n", dev->stats.grp[off]) in mt7601u_ampdu_stat_show()
66 dev->stats.aggr_n[i * 8 + j]); in mt7601u_ampdu_stat_show()
71 atomic_read(&dev->avg_ampdu_len)); in mt7601u_ampdu_stat_show()
81 struct mt7601u_dev *dev = file->private; in mt7601u_eeprom_param_show()
82 struct mt7601u_rate_power *rp = &dev->ee->power_rate_table; in mt7601u_eeprom_param_show() local
[all …]
/linux/drivers/bus/mhi/host/
H A Ddebugfs.c1 // SPDX-License-Identifier: GPL-2.0
18 struct mhi_controller *mhi_cntrl = m->private; in mhi_debugfs_states_show()
22 to_mhi_pm_state_str(mhi_cntrl->pm_state), in mhi_debugfs_states_show()
24 mhi_state_str(mhi_cntrl->dev_state), in mhi_debugfs_states_show()
25 TO_MHI_EXEC_STR(mhi_cntrl->ee), in mhi_debugfs_states_show()
26 str_true_false(mhi_cntrl->wake_set)); in mhi_debugfs_states_show()
29 seq_printf(m, "M0: %u M2: %u M3: %u", mhi_cntrl->M0, mhi_cntrl->M2, in mhi_debugfs_states_show()
30 mhi_cntrl->M3); in mhi_debugfs_states_show()
33 atomic_read(&mhi_cntrl->dev_wake), in mhi_debugfs_states_show()
34 atomic_read(&mhi_cntrl->pending_pkts)); in mhi_debugfs_states_show()
[all …]
/linux/drivers/platform/olpc/
H A Dolpc-ec.c1 // SPDX-License-Identifier: GPL-2.0-or-later
7 * Copyright (C) 2011-2012 One Laptop per Child Foundation.
19 #include <linux/olpc-ec.h>
84 spin_lock_irqsave(&ec->cmd_q_lock, flags); in olpc_ec_worker()
85 if (!list_empty(&ec->cmd_q)) { in olpc_ec_worker()
86 desc = list_first_entry(&ec->cmd_q, struct ec_cmd_desc, node); in olpc_ec_worker()
87 list_del(&desc->node); in olpc_ec_worker()
89 spin_unlock_irqrestore(&ec->cmd_q_lock, flags); in olpc_ec_worker()
96 mutex_lock(&ec->cmd_lock); in olpc_ec_worker()
97 desc->err = ec_driver->ec_cmd(desc->cmd, desc->inbuf, desc->inlen, in olpc_ec_worker()
[all …]
/linux/sound/hda/core/
H A Dcontroller.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * HD-audio controller helpers
19 for (timeout = 1000; timeout > 0; timeout--) { in azx_clear_corbrp()
25 dev_err(bus->dev, "CORB reset timeout#1, CORBRP = %d\n", in azx_clear_corbrp()
29 for (timeout = 1000; timeout > 0; timeout--) { in azx_clear_corbrp()
222 unsigned int wp, rp; snd_hdac_bus_send_cmd_corb() local
261 unsigned int rp, wp; snd_hdac_bus_update_rirb() local
[all...]
/linux/tools/usb/usbip/src/
H A Dusbip_network.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * 2005-2007 Takahiro Hirofuchi
79 udev->busnum = usbip_net_pack_uint32_t(pack, udev->busnum); in usbip_net_pack_usb_device()
80 udev->devnum = usbip_net_pack_uint32_t(pack, udev->devnum); in usbip_net_pack_usb_device()
81 udev->speed = usbip_net_pack_uint32_t(pack, udev->speed); in usbip_net_pack_usb_device()
83 udev->idVendor = usbip_net_pack_uint16_t(pack, udev->idVendor); in usbip_net_pack_usb_device()
84 udev->idProduct = usbip_net_pack_uint16_t(pack, udev->idProduct); in usbip_net_pack_usb_device()
85 udev->bcdDevice = usbip_net_pack_uint16_t(pack, udev->bcdDevice); in usbip_net_pack_usb_device()
111 return -1; in usbip_net_xmit()
114 bufflen -= nbytes; in usbip_net_xmit()
[all …]
/linux/drivers/pci/
H A Dof_property.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2022-2023, Advanced Micro Devices, Inc.
58 prop[0] = FIELD_PREP(OF_PCI_ADDR_FIELD_BUS, pdev->bus->number) | in of_pci_set_address()
59 FIELD_PREP(OF_PCI_ADDR_FIELD_DEV, PCI_SLOT(pdev->devfn)) | in of_pci_set_address()
60 FIELD_PREP(OF_PCI_ADDR_FIELD_FUNC, PCI_FUNC(pdev->devfn)); in of_pci_set_address()
76 if (res->flags & IORESOURCE_IO) in of_pci_get_addr_flags()
78 else if (res->flags & IORESOURCE_MEM_64) in of_pci_get_addr_flags()
80 else if (res->flags & IORESOURCE_MEM) in of_pci_get_addr_flags()
83 return -EINVAL; in of_pci_get_addr_flags()
86 if (res->flags & IORESOURCE_PREFETCH) in of_pci_get_addr_flags()
[all …]
H A Dtph.c1 // SPDX-License-Identifier: GPL-2.0
10 #include <linux/pci-acpi.h>
13 #include <linux/pci-tph.h>
17 /* System-wide TPH disabled */
25 * Spec and available at https://members.pcisig.com/wg/PCI-SIG/document/15470.
27 * @vm_st_valid: 8-bit ST for volatile memory is valid
28 * @vm_xst_valid: 16-bit extended ST for volatile memory is valid
30 * @vm_st: 8-bit ST for volatile mem
31 * @vm_xst: 16-bit extended ST for volatile mem
32 * @pm_st_valid: 8-bit ST for persistent memory is valid
[all …]
/linux/scripts/
H A Drecordmcount.c1 // SPDX-License-Identifier: GPL-2.0-only
12 * Strategy: alter the .o file in-place.
21 * then use "ld -r" to create a new file that omits the garbage.]
69 /* Per-file resource cleanup when multiple files. */
99 file_ptr = file_map + (sb.st_size - offset); in ulseek()
104 return -1; in ulseek()
106 return file_ptr - file_map; in ulseek()
118 off_t aoffset = (file_ptr + count) - file_end; in uwrite()
131 return -1; in uwrite()
134 cnt = file_end - file_ptr; in uwrite()
[all …]
/linux/drivers/net/ethernet/sun/
H A Dniu.c1 // SPDX-License-Identifier: GPL-2.0
13 #include <linux/dma-mapping.h>
55 #define niu_next_page(p) container_of(p, union niu_page, page)->next
91 #define nr64(reg) readq(np->regs + (reg))
92 #define nw64(reg, val) writeq((val), np->regs + (reg))
94 #define nr64_mac(reg) readq(np->mac_regs + (reg))
95 #define nw64_mac(reg, val) writeq((val), np->mac_regs + (reg))
97 #define nr64_ipp(reg) readq(np->regs + np->ipp_off + (reg))
98 #define nw64_ipp(reg, val) writeq((val), np->regs + np->ipp_off + (reg))
100 #define nr64_pcs(reg) readq(np->regs + np->pcs_off + (reg))
[all …]
/linux/arch/sparc/kernel/
H A Dpci_common.c1 // SPDX-License-Identifier: GPL-2.0
25 if (bus < pbm->pci_first_busno || in config_out_of_range()
26 bus > pbm->pci_last_busno) in config_out_of_range()
36 unsigned long rbits = pbm->config_space_reg_bits; in sun4u_config_mkaddr()
41 reg = (reg & ((1 << rbits) - 1)); in sun4u_config_mkaddr()
45 return (void *) (pbm->config_space | bus | devfn | reg); in sun4u_config_mkaddr()
50 * Strange but true, and I see no language in the UltraSPARC-IIi
112 struct pci_pbm_info *pbm = bus_dev->sysdata; in sun4u_read_pci_cfg()
113 unsigned char bus = bus_dev->number; in sun4u_read_pci_cfg()
130 if (!bus_dev->number && !PCI_SLOT(devfn)) in sun4u_read_pci_cfg()
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-devices-mapping6 each dieX file (where X is die number) holds "Segment:Root Bus"
9 For example, on 4-die Xeon platform with up to 6 IIO stacks per
14 -r--r--r-- /sys/devices/uncore_iio_0/die0
15 -r--r--r-- /sys/devices/uncore_iio_0/die1
16 -r--r--r-- /sys/devices/uncore_iio_0/die2
17 -r--r--r-- /sys/devices/uncore_iio_0/die3
31 IIO PMU 0 on die 0 belongs to PCI RP on bus 0x00, domain 0x0000
32 IIO PMU 0 on die 1 belongs to PCI RP on bus 0x40, domain 0x0000
33 IIO PMU 0 on die 2 belongs to PCI RP on bus 0x80, domain 0x0000
34 IIO PMU 0 on die 3 belongs to PCI RP on bus 0xc0, domain 0x0000
[all …]
/linux/fs/
H A Dbinfmt_flat.c1 // SPDX-License-Identifier: GPL-2.0
6 * Copyright (C) 2000-2003 David McCullough <davidm@snapgear.com>
16 * JAN/99 -- coded full program relocation (gerg@snapgear.com)
103 * create_flat_tables() parses the env- and arg-strings in new user
115 sp = (unsigned long __user *)current->mm->start_stack; in create_flat_tables()
117 sp -= bprm->envc + 1; in create_flat_tables()
118 sp -= bprm->argc + 1; in create_flat_tables()
120 sp -= 2; /* argvp + envp */ in create_flat_tables()
121 sp -= 1; /* &argc */ in create_flat_tables()
123 current->mm->start_stack = (unsigned long)sp & -FLAT_STACK_ALIGN; in create_flat_tables()
[all …]
/linux/drivers/scsi/libfc/
H A Dfc_disc.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright(c) 2007 - 2008 Intel Corporation. All rights reserved.
5 * Maintained at www.Open-FCoE.org
11 * This block discovers all FC-4 remote ports, including FCP initiators. It
12 * also handles RSCN events and re-discovery if necessary.
48 * fc_disc_stop_rports() - Delete all the remote ports associated with the lport
55 lockdep_assert_held(&disc->disc_mutex); in fc_disc_stop_rports()
57 list_for_each_entry(rdata, &disc->rports, peers) { in fc_disc_stop_rports()
58 if (kref_get_unless_zero(&rdata->kref)) { in fc_disc_stop_rports()
60 kref_put(&rdata->kref, fc_rport_destroy); in fc_disc_stop_rports()
[all …]
/linux/drivers/firmware/efi/
H A Dcper_cxl.c1 // SPDX-License-Identifier: GPL-2.0-only
27 if (prot_err->valid_bits & PROT_ERR_VALID_AGENT_TYPE) in cxl_cper_print_prot_err()
28 pr_info("%s agent_type: %d, %s\n", pfx, prot_err->agent_type, in cxl_cper_print_prot_err()
29 prot_err->agent_type < ARRAY_SIZE(prot_err_agent_type_strs) in cxl_cper_print_prot_err()
30 ? prot_err_agent_type_strs[prot_err->agent_type] in cxl_cper_print_prot_err()
33 if (prot_err->valid_bits & PROT_ERR_VALID_AGENT_ADDRESS) { in cxl_cper_print_prot_err()
34 switch (prot_err->agent_type) { in cxl_cper_print_prot_err()
45 case RP: in cxl_cper_print_prot_err()
48 pr_info("%s agent_address: %04x:%02x:%02x.%x\n", in cxl_cper_print_prot_err()
49 pfx, prot_err->agent_addr.segment, in cxl_cper_print_prot_err()
[all …]
/linux/arch/x86/pci/
H A Dfixup.c1 // SPDX-License-Identifier: GPL-2.0
3 * Exceptions for specific devices. Usually work-arounds for fatal design flaws.
19 * i450NX -- Find and scan all secondary buses on all PXB's. in pci_fixup_i450nx()
24 dev_warn(&d->dev, "Searching for i450NX host bridges\n"); in pci_fixup_i450nx()
30 dev_dbg(&d->dev, "i450NX PXB %d: %02x/%02x/%02x\n", pxb, busno, in pci_fixup_i450nx()
37 pcibios_last_bus = -1; in pci_fixup_i450nx()
44 * i450GX and i450KX -- Find and scan all secondary buses. in pci_fixup_i450gx()
49 dev_info(&d->dev, "i440KX/GX host bridge; secondary bus %02x\n", busno); in pci_fixup_i450gx()
51 pcibios_last_bus = -1; in pci_fixup_i450gx()
63 dev_warn(&d->dev, "Fixing base address flags\n"); in pci_fixup_umc_ide()
[all …]

123456