/openbmc/linux/Documentation/devicetree/bindings/pci/ |
H A D | mvebu-pci.txt | 5 - compatible: one of the following values: 6 marvell,armada-370-pcie 7 marvell,armada-xp-pcie 8 marvell,dove-pcie 9 marvell,kirkwood-pcie 10 - #address-cells, set to <3> 11 - #size-cells, set to <2> 12 - #interrupt-cells, set to <1> 13 - bus-range: PCI bus numbers covered 14 - device_type, set to "pci" [all …]
|
H A D | nvidia,tegra20-pcie.txt | 4 - compatible: Must be: 5 - "nvidia,tegra20-pcie": for Tegra20 6 - "nvidia,tegra30-pcie": for Tegra30 7 - "nvidia,tegra124-pcie": for Tegra124 and Tegra132 8 - "nvidia,tegra210-pcie": for Tegra210 9 - "nvidia,tegra186-pcie": for Tegra186 10 - power-domains: To ungate power partition by BPMP powergate driver. Must 13 - device_type: Must be "pci" 14 - reg: A list of physical base address and length for each set of controller 15 registers. Must contain an entry for each entry in the reg-names property. [all …]
|
/openbmc/linux/drivers/soc/fsl/qbman/ |
H A D | bman_test_api.c | 1 /* Copyright 2008 - 2016 Freescale Semiconductor, Inc. 57 * LS-bits of buffer addresses, masking off the upper 8-bits on in bufs_cmp() 58 * release commands. The API provides for 48-bit addresses in bufs_cmp() 59 * because some SoCs support all 48-bits. When generating in bufs_cmp() 60 * garbage addresses for testing, we either need to zero the in bufs_cmp() 61 * upper 8-bits when releasing to BMan (otherwise we'll be in bufs_cmp() 63 * don't match), or we need to mask the upper 8-bits off when in bufs_cmp() 68 return -1; in bufs_cmp() 74 return -1; in bufs_cmp() 115 int num = 8; in bman_test_api() local [all …]
|
/openbmc/linux/drivers/i2c/ |
H A D | i2c-atr.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * Originally based on i2c-mux.c 11 #include <linux/i2c-atr.h> 21 #define ATR_MAX_SYMLINK_LEN 11 /* Longest name is 10 chars: "channel-99" */ 24 * struct i2c_atr_alias_pair - Holds the alias assigned to a client. 38 * struct i2c_atr_chan - Data for a channel. 45 * @orig_addrs: Buffer used to store the original addresses during transmit 62 * struct i2c_atr - The I2C ATR instance 107 if (c2a->client == client) in i2c_atr_find_mapping_by_client() 120 if (c2a->client->addr == phys_addr) in i2c_atr_find_mapping_by_addr() [all …]
|
/openbmc/qemu/hw/virtio/ |
H A D | vhost-shadow-virtqueue.c | 4 * SPDX-FileCopyrightText: Red Hat, Inc. 2021 5 * SPDX-FileContributor: Author: Eugenio Pérez <eperezma@redhat.com> 7 * SPDX-License-Identifier: GPL-2.0-or-later 11 #include "hw/virtio/vhost-shadow-virtqueue.h" 13 #include "qemu/error-report.h" 15 #include "qemu/main-loop.h" 18 #include "linux-headers/linux/vhost.h" 40 /* SVQ trust in the host's IOMMU to translate addresses */ in vhost_svq_valid_features() 71 return svq->num_free; in vhost_svq_available_slots() 75 * Translate addresses between the qemu's virtual address and the SVQ IOVA [all …]
|
/openbmc/linux/drivers/iio/magnetometer/ |
H A D | st_magn_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright 2012-2013 STMicroelectronics Inc. 42 /* Special L addresses for Sensor 2 */ 47 /* Special L addresses for sensor 3 */ 52 /* Special L addresses for sensor 4 */ 63 return &mdata->mount_matrix; in st_magn_get_mount_matrix() 177 .num = ST_MAGN_FS_AVL_1300MG, 183 .num = ST_MAGN_FS_AVL_1900MG, 189 .num = ST_MAGN_FS_AVL_2500MG, 195 .num = ST_MAGN_FS_AVL_4000MG, [all …]
|
/openbmc/linux/kernel/trace/ |
H A D | fprobe.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * fprobe - Simple ftrace probe wrapper for function entry. 35 if (fp->exit_handler) { in __fprobe_handler() 36 rh = rethook_try_get(fp->rethook); in __fprobe_handler() 38 fp->nmissed++; in __fprobe_handler() 42 fpr->entry_ip = ip; in __fprobe_handler() 43 fpr->entry_parent_ip = parent_ip; in __fprobe_handler() 44 if (fp->entry_data_size) in __fprobe_handler() 45 entry_data = fpr->data; in __fprobe_handler() 48 if (fp->entry_handler) in __fprobe_handler() [all …]
|
/openbmc/linux/tools/usb/usbip/src/ |
H A D | usbip_network.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * 2005-2007 Takahiro Hirofuchi 53 uint32_t usbip_net_pack_uint32_t(int pack, uint32_t num) in usbip_net_pack_uint32_t() argument 58 i = htonl(num); in usbip_net_pack_uint32_t() 60 i = ntohl(num); in usbip_net_pack_uint32_t() 65 uint16_t usbip_net_pack_uint16_t(int pack, uint16_t num) in usbip_net_pack_uint16_t() argument 70 i = htons(num); in usbip_net_pack_uint16_t() 72 i = ntohs(num); in usbip_net_pack_uint16_t() 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() [all …]
|
/openbmc/qemu/include/io/ |
H A D | net-listener.h | 4 * Copyright (c) 2016-2017 Red Hat, Inc. 24 #include "io/channel-socket.h" 27 #define TYPE_QIO_NET_LISTENER "qio-net-listener" 43 * subset of interface IP addresses, instead of the wildcard 90 * @num: the amount of expected connections 94 * addresses associated with @addr. This method may 96 * single listener on multiple distinct addresses. 100 int num, 158 * it will be temporarily disabled, and re-enabled afterwards.
|
/openbmc/linux/Documentation/devicetree/bindings/eeprom/ |
H A D | at24.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Bartosz Golaszewski <bgolaszewski@baylibre.com> 14 - $ref: /schemas/nvmem/nvmem.yaml 20 pattern: "^atmel,(24(c|cs|mac)[0-9]+|spd)$" 22 - compatible 26 pattern: "^eeprom@[0-9a-f]{1,2}$" 36 - allOf: 37 - minItems: 1 [all …]
|
/openbmc/u-boot/cmd/ |
H A D | mac.c | 1 // SPDX-License-Identifier: GPL-2.0+ 14 "display and program the system ID and MAC addresses in EEPROM", 15 "[read|save|id|num|errata|date|ports|port_number]\n" 17 " - read EEPROM content into memory data structure\n" 19 " - save memory data structure to the EEPROM\n" 21 " - program system id per hard coded value\n" 22 "mac num string\n" 23 " - program system serial number to value string\n" 25 " - program errata data to value string\n" 27 " - program date to string value YYMMDDhhmmss\n" [all …]
|
/openbmc/linux/drivers/net/mdio/ |
H A D | mdio-i2c.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2015-2016 Russell King 14 #include <linux/mdio/mdio-i2c.h> 19 * I2C bus addresses 0x50 and 0x51 are normally an EEPROM, which is 21 * addresses 16 and 17. Disallow access to these "phy" addresses. 36 struct i2c_adapter *i2c = bus->priv; in i2c_mii_read_default_c45() 54 msgs[0].len = p - addr; in i2c_mii_read_default_c45() 71 struct i2c_adapter *i2c = bus->priv; in i2c_mii_write_default_c45() 90 msg.len = p - data; in i2c_mii_write_default_c45() 100 return i2c_mii_read_default_c45(bus, phy_id, -1, reg); in i2c_mii_read_default_c22() [all …]
|
/openbmc/linux/include/linux/ |
H A D | remoteproc.h | 47 * struct resource_table - firmware resource table header 49 * @num: number of resource entries 75 u32 num; member 81 * struct fw_rsc_hdr - firmware resource entry header 95 * enum fw_resource_type - types of resource entries 99 * @RSC_DEVMEM: request to iommu_map a memory-based peripheral. 126 #define FW_RSC_ADDR_ANY (-1) 129 * struct fw_rsc_carveout - physically contiguous memory request 135 * @name: human-readable name of the requested memory region 149 * If the firmware is compiled with static addresses, then @da should specify [all …]
|
/openbmc/linux/drivers/media/usb/au0828/ |
H A D | au0828-i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 #include <media/v4l2-common.h> 28 struct au0828_dev *dev = i2c_adap->algo_data; in i2c_slave_did_read_ack() 51 struct au0828_dev *dev = i2c_adap->algo_data; in i2c_is_read_busy() 74 struct au0828_dev *dev = i2c_adap->algo_data; in i2c_is_write_done() 97 struct au0828_dev *dev = i2c_adap->algo_data; in i2c_is_busy() 123 struct au0828_dev *dev = i2c_adap->algo_data; in i2c_sendbytes() 124 u8 i2c_speed = dev->board.i2c_clk_divider; in i2c_sendbytes() 130 if (((dev->board.tuner_type == TUNER_XC5000) || in i2c_sendbytes() 131 (dev->board.tuner_type == TUNER_XC5000C)) && in i2c_sendbytes() [all …]
|
/openbmc/openbmc/meta-google/recipes-google/networking/files/ |
H A D | gbmc-mac-config.sh.in | 8 # http://www.apache.org/licenses/LICENSE-2.0 16 # shellcheck source=meta-google/recipes-google/ipmi/ipmi-fru-sh/lib.sh 17 source /usr/share/ipmi-fru/lib.sh || exit 34 # 3-8 MAC Address Base Octets 35 # 9 Num Allocate MACs from Base 36 # 10-30 Padding (Always 0xFF) 45 num="${internal[9]}" 47 echo "Base MAC $macstr num $num" >&2 51 # Pre-Determine if we will miss an allocation due to the number of 52 # addresses the FRU actually supports. [all …]
|
/openbmc/linux/drivers/misc/bcm-vk/ |
H A D | bcm_vk_sg.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright 2018-2020 Broadcom. 9 #include <linux/dma-mapping.h> 20 * [U32] num_sg = number of sg addresses (N) 23 * [U32] addr_l[0] = lower 32-bits of address0 24 * [U32] addr_h[0] = higher 32-bits of address0 26 * [U32] size[N-1] = size of data in addressN-1 27 * [U32] addr_l[N-1] = lower 32-bits of addressN-1 28 * [U32] addr_h[N-1] = higher 32-bits of addressN-1 45 * Scatter-gather DMA buffer API. [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/media/ |
H A D | stih407-c8sectpfe.txt | 14 - compatible : Should be "stih407-c8sectpfe" 16 - reg : Address and length of register sets for each device in 17 "reg-names" 19 - reg-names : The names of the register addresses corresponding to the 21 - c8sectpfe: c8sectpfe registers 22 - c8sectpfe-ram: c8sectpfe internal sram 24 - clocks : phandle list of c8sectpfe clocks 25 - clock-names : should be "c8sectpfe" 26 See: Documentation/devicetree/bindings/clock/clock-bindings.txt 28 - pinctrl-names : a pinctrl state named tsin%d-serial or tsin%d-parallel (where %d is tsin-num) [all …]
|
/openbmc/linux/drivers/media/pci/zoran/ |
H A D | zr36016.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Zoran ZR36016 basic configuration functions - header file 14 int num; member 30 /* direct register addresses */ 36 /* indirect register addresses */
|
/openbmc/qemu/hw/cpu/ |
H A D | a9mpcore.c | 2 * Cortex-A9MPCore internal peripheral emulation. 16 #include "hw/qdev-properties.h" 18 #include "target/arm/cpu-qom.h" 26 qemu_set_irq(qdev_get_gpio_in(DEVICE(&s->gic), irq), level); in a9mp_priv_set_irq() 33 memory_region_init(&s->container, obj, "a9mp-priv-container", 0x2000); in a9mp_priv_initfn() 34 sysbus_init_mmio(SYS_BUS_DEVICE(obj), &s->container); in a9mp_priv_initfn() 36 object_initialize_child(obj, "scu", &s->scu, TYPE_A9_SCU); in a9mp_priv_initfn() 38 object_initialize_child(obj, "gic", &s->gic, TYPE_ARM_GIC); in a9mp_priv_initfn() 40 object_initialize_child(obj, "gtimer", &s->gtimer, TYPE_A9_GTIMER); in a9mp_priv_initfn() 42 object_initialize_child(obj, "mptimer", &s->mptimer, TYPE_ARM_MPTIMER); in a9mp_priv_initfn() [all …]
|
/openbmc/qemu/docs/interop/ |
H A D | vhost-user.rst | 4 Vhost-user Protocol 11 version 2 or later. See the COPYING file in the top-level 26 The protocol defines 2 sides of the communication, *front-end* and 27 *back-end*. The *front-end* is the application that shares its virtqueues, in 28 our case QEMU. The *back-end* is the consumer of the virtqueues. 30 In the current implementation QEMU is the *front-end*, and the *back-end* 33 or a block device back-end processing read & write to a virtual 34 disk. In order to facilitate interoperability between various back-end 38 The *front-end* and *back-end* can be either a client (i.e. connecting) or 42 -------------------------------------- [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | tegra186.dtsi | 2 #include <dt-bindings/clock/tegra186-clock.h> 3 #include <dt-bindings/gpio/tegra186-gpio.h> 4 #include <dt-bindings/interrupt-controller/arm-gic.h> 5 #include <dt-bindings/mailbox/tegra186-hsp.h> 6 #include <dt-bindings/power/tegra186-powergate.h> 7 #include <dt-bindings/reset/tegra186-reset.h> 11 interrupt-parent = <&gic>; 12 #address-cells = <2>; 13 #size-cells = <2>; 16 compatible = "nvidia,tegra186-gpio"; [all …]
|
/openbmc/linux/fs/jfs/ |
H A D | jfs_imap.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (C) International Business Machines Corp., 2000-2002 20 #define MAXIAGS ((1<<20)-1) /* maximum number of iags */ 36 ((((ino) & (INOSPEREXT-1)) >> L2INOSPERPAGE) << (l2nbperpg))) 73 /* allocation bit map: 1 bit per inode (0 - free, 1 - allocated) */ 76 pxd_t inoext[EXTSPERIAG]; /* 1024: inode extent addresses */ 102 __le32 in_numinos; /* 4: num of backed inodes */ 103 __le32 in_numfree; /* 4: num of free backed inodes */ 104 __le32 in_nbperiext; /* 4: num of blocks per inode extent */ 115 int in_numinos; /* num of backed inodes */ [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | pflash-cfi02-test.c | 7 * See the COPYING file in the top-level directory. 16 * all. In particular, we're limited to a 16-bit wide flash device. 20 #define BASE_ADDR (0x100000000ULL - MP_FLASH_SIZE_MAX) 25 /* Use a newtype to keep flash addresses separate from byte addresses. */ 90 return (uint64_t)-1; in device_mask() 98 if (c->bank_width == 8) { in bank_mask() 99 return (uint64_t)-1; in bank_mask() 101 return (1ULL << (c->bank_width * 8)) - 1ULL; in bank_mask() 110 switch (c->bank_width) { in flash_write() 112 qtest_writeb(c->qtest, addr, data); in flash_write() [all …]
|
/openbmc/linux/drivers/media/usb/hdpvr/ |
H A D | hdpvr-i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-only 33 struct IR_i2c_init_data *init_data = &dev->ir_i2c_init_data; in hdpvr_register_ir_i2c() 38 /* Our default information for ir-kbd-i2c.c to use */ in hdpvr_register_ir_i2c() 39 init_data->ir_codes = RC_MAP_HAUPPAUGE; in hdpvr_register_ir_i2c() 40 init_data->internal_get_key_func = IR_KBD_GET_KEY_HAUP_XVR; in hdpvr_register_ir_i2c() 41 init_data->type = RC_PROTO_BIT_RC5 | RC_PROTO_BIT_RC6_MCE | in hdpvr_register_ir_i2c() 43 init_data->name = "HD-PVR"; in hdpvr_register_ir_i2c() 44 init_data->polling_interval = 405; /* ms, duplicated from Windows */ in hdpvr_register_ir_i2c() 47 return i2c_new_client_device(&dev->i2c_adapter, &info); in hdpvr_register_ir_i2c() 56 if ((len > sizeof(dev->i2c_buf)) || (wlen > sizeof(dev->i2c_buf))) in hdpvr_i2c_read() [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/ |
H A D | img.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2005-2014, 2018-2021 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 11 #include "api/dbg-tlv.h" 14 #include "error-dump.h" 66 return test_bit((__force long)api, capabilities->_api); in fw_has_api() 73 return test_bit((__force long)capa, capabilities->_capa); in fw_has_capa() 138 * enum iwl_fw_type - iwlwifi firmware type 148 * struct iwl_fw_dbg - debug data 151 * @n_dest_reg: num of reg_ops in dest_tlv [all …]
|