/openbmc/linux/Documentation/devicetree/bindings/spi/ |
H A D | spi-xilinx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/spi/spi-xilinx.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Michal Simek <michal.simek@amd.com> 13 - $ref: spi-controller.yaml# 18 - xlnx,xps-spi-2.00.a 19 - xlnx,xps-spi-2.00.b 20 - xlnx,axi-quad-spi-1.00.a 28 xlnx,num-ss-bits: [all …]
|
/openbmc/linux/drivers/pci/ |
H A D | of_property.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2022-2023, Advanced Micro Devices, Inc. 10 #include <linux/bits.h> 57 prop[0] = FIELD_PREP(OF_PCI_ADDR_FIELD_BUS, pdev->bus->number) | in of_pci_set_address() 58 FIELD_PREP(OF_PCI_ADDR_FIELD_DEV, PCI_SLOT(pdev->devfn)) | in of_pci_set_address() 59 FIELD_PREP(OF_PCI_ADDR_FIELD_FUNC, PCI_FUNC(pdev->devfn)); in of_pci_set_address() 70 u32 ss; in of_pci_get_addr_flags() local 72 if (res->flags & IORESOURCE_IO) in of_pci_get_addr_flags() 73 ss = OF_PCI_ADDR_SPACE_IO; in of_pci_get_addr_flags() 74 else if (res->flags & IORESOURCE_MEM_64) in of_pci_get_addr_flags() [all …]
|
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | verbs.h | 1 /* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */ 3 * Copyright(c) 2015 - 2018 Intel Corporation. 73 /* 24Bits for qpn, upper 8Bits reserved */ 154 u32 pending_tid_w_segs; /* Num of pending tid write segments */ 155 u32 pending_tid_w_resp; /* Num of pending tid write responses */ 160 u32 tid_r_reqs; /* Num of tid reads requested */ 161 u32 tid_r_comp; /* Num of tid reads completed */ 162 u32 pending_tid_r_segs; /* Num of pending tid read segments */ 173 #define HFI1_QP_WQE_INVALID ((u32)-1) 177 struct rvt_sge_state ss; /* Used for TID RDMA READ Request */ member [all …]
|
H A D | tid_rdma.h | 1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */ 13 #define CIRC_ADD(val, add, size) (((val) + (add)) & ((size) - 1)) 15 #define CIRC_PREV(val, size) CIRC_ADD(val, -1, size) 23 * Bit definitions for priv->s_flags. 28 * HFI1_S_TID_WAIT_INTERLCK - QP is waiting for requester interlock 29 * HFI1_R_TID_WAIT_INTERLCK - QP is waiting for responder interlock 38 /* BIT(7) - BIT(15) reserved for RVT_S_WAIT_*. */ 106 struct rvt_sge_state ss; /* SGE state for TID RDMA requests */ member 126 u32 ack_pending; /* num acks pending for this request */ 133 * relevant (and not the PSNs maintained by verbs). Track per-flow [all …]
|
/openbmc/linux/drivers/usb/gadget/udc/ |
H A D | net2280.h | 1 // SPDX-License-Identifier: GPL-2.0+ 10 * Copyright (C) 2014 Ricardo Ribalda - Qtechnology/AS 16 /*-------------------------------------------------------------------------*/ 26 writel(index, ®s->idxaddr); in get_idx_reg() 28 return readl(®s->idxdata); in get_idx_reg() 34 writel(index, ®s->idxaddr); in set_idx_reg() 35 writel(value, ®s->idxdata); in set_idx_reg() 74 /*-------------------------------------------------------------------------*/ 86 /*-------------------------------------------------------------------------*/ 100 /* analogous to a host-side qh */ [all …]
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | uvc_configfs.c | 1 // SPDX-License-Identifier: GPL-2.0 19 /* ----------------------------------------------------------------------------- 48 return li < ri ? -1 : li == ri ? 0 : 1; in uvcg_config_compare_u32() 59 unsigned int num; in __uvcg_fill_item_entries() local 63 ret = kstrtouint(buf, 0, &num); in __uvcg_fill_item_entries() 67 if (num != (num & GENMASK((size * 8) - 1, 0))) in __uvcg_fill_item_entries() 68 return -ERANGE; in __uvcg_fill_item_entries() 71 memcpy(*values, &num, size); in __uvcg_fill_item_entries() 88 return -EINVAL; in __uvcg_iter_item_entries() 92 return -ENOMEM; in __uvcg_iter_item_entries() [all …]
|
/openbmc/linux/drivers/tty/ |
H A D | tty_io.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * or rs-channels. It also implements echoing, cooked mode etc. 10 * Kill-line thanks to John T Kohl, who also corrected VMIN = VTIME = 0. 19 * between the high-level tty routines (tty_io.c and tty_ioctl.c) and 20 * the low-level tty routines (serial.c, pty.c, console.c). This 21 * makes for cleaner and more compact code. -TYT, 9/17/92 24 * which can be dynamically activated and de-activated by the line 29 * -- TYT, 1/31/92 32 * other bits should be there. 33 * -- Nick Holloway <alfie@dcs.warwick.ac.uk>, 27th May 1993. [all …]
|
/openbmc/linux/drivers/usb/cdns3/ |
H A D | cdns3-gadget.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright (C) 2018-2019 Cadence. 6 * Copyright (C) 2017-2018 NXP 15 #include <linux/dma-direction.h> 18 * USBSS-DEV register interface. 23 * struct cdns3_usb_regs - device controller registers. 53 * @buf_addr: Address for On-chip Buffer operations. 54 * @buf_data: Data for On-chip Buffer operations. 55 * @buf_ctrl: On-chip Buffer Access Control. 123 /* USB_CONF - bitmasks */ [all …]
|
/openbmc/linux/tools/testing/selftests/x86/ |
H A D | amx.c | 1 // SPDX-License-Identifier: GPL-2.0 25 # error This test is 64-bit only 144 * components corresponding to bits currently set in XCR0. in check_cpuid_xtiledata() 170 /* XSAVE buffer should be 64B-aligned. */ in alloc_xbuf() 179 memset(&buffer->header, 0, sizeof(buffer->header)); in clear_xstate_header() 185 return *(uint64_t *)&buffer->header; in get_xstatebv() 191 *(uint64_t *)(&buffer->header) = bv; in set_xstatebv() 196 int *ptr = (int *)&xbuf->bytes[xtiledata.xbuf_offset]; in set_rand_tiledata() 246 int left = SIGNAL_BUF_LEN - strlen(signal_message_buffer) - 1; in sig_print() 260 void *xbuf = ctx->uc_mcontext.fpregs; in handle_noperm() [all …]
|
/openbmc/linux/drivers/usb/gadget/udc/bdc/ |
H A D | bdc.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * bdc.h - header for the BRCM BDC USB3.0 device controller 18 #include <linux/dma-mapping.h> 40 /* Start with SS as default */ 46 /* Num of bds per table */ 49 /* Num of tables in bd list for control,bulk and Int ep */ 52 /* Num of tables in bd list for Isoch ep */ 274 /* On disconnect, preserve these bits and clear rest */ 306 /* Max_bdi = num_tabs * num_bds_table - 1 */ 414 /* num of endpoints for a particular instantiation of IP */ [all …]
|
/openbmc/linux/drivers/spi/ |
H A D | spi-sh-msiof.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Copyright (C) 2014-2017 Glider bvba 14 #include <linux/dma-mapping.h> 89 #define SIMDR1_SYNCAC_SHIFT 25 /* Sync Polarity (1 = Active-low) */ 93 #define SIMDR1_FLD_MASK GENMASK(3, 2) /* Frame Sync Signal Interval (0-3) */ 102 #define SIMDR2_BITLEN1(i) (((i) - 1) << 24) /* Data Size (8-32 bits) */ 103 #define SIMDR2_WDLEN1(i) (((i) - 1) << 16) /* Word Count (1-64/256 (SH, A1))) */ 107 #define SISCR_BRPS_MASK GENMASK(12, 8) /* Prescaler Setting (1-32) */ 108 #define SISCR_BRPS(i) (((i) - 1) << 8) 129 #define SICTR_TXDIZ_HIZ (2 << 22) /* High-impedance */ [all …]
|
H A D | spi-xilinx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 * 2002-2007 (c) MontaVista Software, Inc. 56 #define XSPI_SSR_OFFSET 0x70 /* 32-bit Slave Select Register */ 120 if (!xspi->tx_ptr) { in xilinx_spi_tx() 121 xspi->write_fn(0, xspi->regs + XSPI_TXD_OFFSET); in xilinx_spi_tx() 125 switch (xspi->bytes_per_word) { in xilinx_spi_tx() 127 data = *(u8 *)(xspi->tx_ptr); in xilinx_spi_tx() 130 data = *(u16 *)(xspi->tx_ptr); in xilinx_spi_tx() 133 data = *(u32 *)(xspi->tx_ptr); in xilinx_spi_tx() 137 xspi->write_fn(data, xspi->regs + XSPI_TXD_OFFSET); in xilinx_spi_tx() [all …]
|
/openbmc/linux/drivers/usb/host/ |
H A D | xhci-tegra.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (c) 2014-2020, NVIDIA CORPORATION. All rights reserved. 11 #include <linux/dma-mapping.h> 193 unsigned int num; member 321 return readl(tegra->fpci_base + offset); in fpci_readl() 327 writel(value, tegra->fpci_base + offset); in fpci_writel() 332 return readl(tegra->ipfs_base + offset); in ipfs_readl() 338 writel(value, tegra->ipfs_base + offset); in ipfs_writel() 343 return readl(tegra->bar2_base + offset); in bar2_readl() 349 writel(value, tegra->bar2_base + offset); in bar2_writel() [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/ |
H A D | sge.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 * Copyright (c) 2003 - 2005 Chelsio Communications, Inc. * 170 unsigned int in_use; /* # of in-use command descriptors */ 218 unsigned int avail; /* available bits - quota */ 228 unsigned int max_avail; /* max bits to be sent to any port */ 230 unsigned int num; /* num skbs in per port queues */ member 255 unsigned int intrtimer_nres; /* no-resource interrupt timer */ 256 unsigned int fixed_intrtimer;/* non-adaptive interrupt timer */ 277 struct sched *s = sge->tx_sched; in tx_sched_stop() 280 tasklet_kill(&s->sched_tsk); in tx_sched_stop() [all …]
|
/openbmc/phosphor-power/phosphor-power-supply/ |
H A D | power_supply.cpp | 51 std::ostringstream ss; in PowerSupply() local 52 ss << std::hex << std::setw(4) << std::setfill('0') << i2caddr; in PowerSupply() 53 std::string addrStr = ss.str(); in PowerSupply() 56 bindDevice.append("-"); in PowerSupply() 69 // GPIOs are in use by the kernel, meaning it is using gpio-keys. in PowerSupply() 70 // So, I should rely on phosphor-gpio-presence to update D-Bus, and in PowerSupply() 73 // Setup the functions to call when the D-Bus inventory path for the in PowerSupply() 79 [this](auto& msg) { this->inventoryChanged(msg); }); in PowerSupply() 85 [this](auto& msg) { this->inventoryAdded(msg); }); in PowerSupply() 175 std::format("D-Bus property {} access failure exception", in updatePresence() [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | exynos5420-peach-pit.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * SAMSUNG/GOOGLE Peach-Pit board device tree source 9 /dts-v1/; 11 #include <dt-bindings/clock/maxim,max77802.h> 12 #include <dt-bindings/regulator/maxim,max77802.h> 17 compatible = "google,pit-rev#", "google,pit", 21 google,bad-wake-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>; 22 hwid = "PIT TEST A-A 7848"; 23 lazy-init = <1>; 34 compatible = "pwm-backlight"; [all …]
|
/openbmc/qemu/hw/ssi/ |
H A D | xilinx_spi.c | 34 #include "hw/qdev-properties.h" 51 #define IRQ_DRR_NOT_EMPTY (1 << (31 - 23)) 52 #define IRQ_DRR_OVERRUN (1 << (31 - 26)) 53 #define IRQ_DRR_FULL (1 << (31 - 27)) 56 #define IRQ_DTR_EMPTY (1 << (31 - 29)) 80 #define TYPE_XILINX_SPI "xlnx.xps-spi" 104 fifo8_reset(&s->tx_fifo); in txfifo_reset() 106 s->regs[R_SPISR] &= ~SR_TX_FULL; in txfifo_reset() 107 s->regs[R_SPISR] |= SR_TX_EMPTY; in txfifo_reset() 112 fifo8_reset(&s->rx_fifo); in rxfifo_reset() [all …]
|
/openbmc/qemu/hw/microblaze/ |
H A D | petalogix_ml605_mmu.c | 37 #include "hw/char/serial-mm.h" 38 #include "hw/qdev-properties.h" 39 #include "exec/address-spaces.h" 49 #define BINARY_DEVICE_TREE_FILE "petalogix-ml605.dtb" 72 ram_addr_t ram_size = machine->ram_size; in petalogix_ml605_init() 90 object_property_set_int(OBJECT(cpu), "use-fpu", 1, &error_abort); in petalogix_ml605_init() 91 object_property_set_bool(OBJECT(cpu), "dcache-writeback", true, in petalogix_ml605_init() 93 object_property_set_bool(OBJECT(cpu), "little-endian", true, &error_abort); in petalogix_ml605_init() 106 /* 5th parameter 2 means bank-width in petalogix_ml605_init() 107 * 10th parameter 0 means little-endian */ in petalogix_ml605_init() [all …]
|
/openbmc/linux/arch/x86/boot/compressed/ |
H A D | kaslr.c | 1 // SPDX-License-Identifier: GPL-2.0 41 /* Simplified build-specific string for starting entropy. */ 52 /* Rotate by odd number of bits and XOR. */ in rotate_xor() 53 hash = (hash << ((sizeof(hash) * 8) - 7)) | (hash >> 7); in rotate_xor() 82 * Store memory limit: MAXMEM on 64-bit and KERNEL_IMAGE_SIZE on 32-bit. 96 MEM_AVOID_MEMMAP_END = MEM_AVOID_MEMMAP_BEGIN + MAX_MEMMAP_REGIONS - 1, 105 if (one->start + one->size <= two->start) in mem_overlaps() 108 if (one->start >= two->start + two->size) in mem_overlaps() 133 return -EINVAL; in parse_memmap() 137 return -EINVAL; in parse_memmap() [all …]
|
/openbmc/linux/drivers/usb/misc/ |
H A D | usbtest.c | 1 // SPDX-License-Identifier: GPL-2.0 16 /*-------------------------------------------------------------------------*/ 18 static int override_alt = -1; 23 /*-------------------------------------------------------------------------*/ 30 __u32 test_num; /* 0..(TEST_CASES-1) */ 47 __u32 test_num; /* 0..(TEST_CASES-1) */ 63 /*-------------------------------------------------------------------------*/ 72 //#define KEYSPAN_19Qi /* grab un-renumerated serial adapter */ 74 /*-------------------------------------------------------------------------*/ 112 return interface_to_usbdev(test->intf); in testdev_to_usbdev() [all …]
|
/openbmc/linux/drivers/iommu/ |
H A D | msm_iommu.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved. 13 #include <linux/io-pgtable.h> 25 #include "msm_iommu_hw-8xxx.h" 58 ret = clk_enable(iommu->pclk); in __enable_clocks() 62 if (iommu->clk) { in __enable_clocks() 63 ret = clk_enable(iommu->clk); in __enable_clocks() 65 clk_disable(iommu->pclk); in __enable_clocks() 73 if (iommu->clk) in __disable_clocks() 74 clk_disable(iommu->clk); in __disable_clocks() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath10k/ |
H A D | wmi.h | 1 /* SPDX-License-Identifier: ISC */ 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 5 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 6 * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved. 29 * 1. Add new WMI commands ONLY within the specified range - 0x9000 - 0x9fff 45 * variable is already 4-byte aligned by virtue of being a u32 527 * for wmi_services is 64 as target is using only 4-bits of each 32-bit 528 * wmi_service word. Extending this to make use of remaining unused bits 533 __le32_to_cpu((wmi_svc_bmap)[((svc_id) - (len)) / 28]) & \ [all …]
|
/openbmc/linux/Documentation/networking/ |
H A D | packet_mmap.rst | 1 .. SPDX-License-Identifier: GPL-2.0 22 - Ulisses Alonso Camaró <uaca@i.hate.spam.alumni.uv.es> 23 - Johann Baudy 67 [setup] socket() -------> creation of the capture socket 68 setsockopt() ---> allocation of the circular buffer (ring) 70 mmap() ---------> mapping of the allocated buffer to the 73 [capture] poll() ---------> to wait for incoming packets 75 [shutdown] close() --------> destruction of the capture socket and 88 supported and a link level pseudo-header is provided 107 [setup] socket() -------> creation of the transmission socket [all …]
|
/openbmc/linux/drivers/pcmcia/ |
H A D | rsrc_nonstatic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rsrc_nonstatic.c -- Resource management routines for !SS_CAP_STATIC_MAP sockets 28 #include <pcmcia/ss.h> 49 u_long base, num; member 83 if (s && s->cb_dev) in claim_region() 84 parent = pci_find_parent_resource(s->cb_dev, res); in claim_region() 108 static int add_interval(struct resource_map *map, u_long base, u_long num) in add_interval() argument 112 for (p = map; ; p = p->next) { in add_interval() 113 if ((p != map) && (p->base+p->num >= base)) { in add_interval() 114 p->num = max(num + base - p->base, p->num); in add_interval() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/nvidia/ |
H A D | tegra234.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 #include <dt-bindings/clock/tegra234-clock.h> 4 #include <dt-bindings/gpio/tegra234-gpio.h> 5 #include <dt-bindings/interrupt-controller/arm-gic.h> 6 #include <dt-bindings/mailbox/tegra186-hsp.h> 7 #include <dt-bindings/memory/tegra234-mc.h> 8 #include <dt-bindings/pinctrl/pinctrl-tegra-io-pad.h> 9 #include <dt-bindings/power/tegra234-powergate.h> 10 #include <dt-bindings/reset/tegra234-reset.h> 11 #include <dt-bindings/thermal/tegra234-bpmp-thermal.h> [all …]
|