/openbmc/u-boot/drivers/gpio/ |
H A D | lpc32xx_gpio.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Written-by: Albert ARIBAUD <albert.aribaud@3adev.fr> 11 #include <asm/arch-lpc32xx/cpu.h> 12 #include <asm/arch-lpc32xx/gpio.h> 13 #include <asm-generic/gpio.h> 17 * LPC32xx GPIOs work in banks but are non-homogeneous: 18 * - each bank holds a different number of GPIOs 19 * - some GPIOs are input/ouput, some input only, some output only; 20 * - some GPIOs have different meanings as an input and as an output; 21 * - some GPIOs are controlled on a given port and bit index, but [all …]
|
/openbmc/phosphor-networkd/src/ |
H A D | ncsi_util.hpp | 12 constexpr auto DEFAULT_VALUE = -1; 15 /* @brief This function will ask underlying NCSI driver 18 * This function talks with the NCSI driver over 20 * @param[in] ifindex - Interface Index. 21 * @param[in] package - NCSI Package. 22 * @param[in] channel - Channel number with in the package. 23 * @param[in] opcode - NCSI Send Command sub-operation 24 * @param[in] payload - OEM data to send. 30 /* @brief This function will ask underlying NCSI driver 33 * This function talks with the NCSI driver over [all …]
|
/openbmc/linux/arch/arm/lib/ |
H A D | backtrace-clang.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/arch/arm/lib/backtrace-clang.S 18 #define mask r7 macro 31 * Clang does not store pc or sp in function prologues so we don't know exactly 32 * where the function starts. 36 * call. Inserting a false stack frame allows us to reference the function 41 * but in cases such as calling function pointers we cannot. In this case, 42 * default to using the lr. This will be some address in the function, but will 43 * not be the function start. 45 * Unfortunately due to the stack frame layout we can't dump r0 - r3, but these [all …]
|
/openbmc/linux/arch/s390/include/asm/ |
H A D | cpacf.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 40 * Function codes for the KM (CIPHER MESSAGE) instruction 58 * Function codes for the KMC (CIPHER MESSAGE WITH CHAINING) 74 * Function codes for the KMCTR (CIPHER MESSAGE WITH COUNTER) 89 * Function codes for the KIMD (COMPUTE INTERMEDIATE MESSAGE DIGEST) 103 * Function codes for the KLMD (COMPUTE LAST MESSAGE DIGEST) 116 * function codes for the KMAC (COMPUTE MESSAGE AUTHENTICATION CODE) 125 * Function codes for the PCKMO (PERFORM CRYPTOGRAPHIC KEY MANAGEMENT) 142 * Function codes for the PRNO (PERFORM RANDOM NUMBER OPERATION) 152 * Function codes for the KMA (CIPHER MESSAGE WITH AUTHENTICATION) [all …]
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_acpi.c | 52 u32 notification_mask; /* supported notifications mask */ 58 u32 valid_mask; /* valid flags mask */ 68 u8 thermal_state; /* thermal state: state id (0: exit state, non-0: state) */ 72 u8 backlight_level; /* panel backlight level (0-255) */ 90 u16 client_id; /* client id (bit 2-0: func num, 7-3: dev num, 15-8: bus num) */ 91 u16 valid_flags_mask; /* valid flags mask */ 105 * radeon_atif_call - call an ATIF method 108 * @function: the ATIF function to execute 109 * @params: ATIF function params 111 * Executes the requested ATIF function (all asics). [all …]
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | pmac_pfunc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 20 * Arguments to a platform function call. 40 * Interpreting a given function always start with a begin() call which 43 * locking policy or per-function instance data. 64 int (*write_gpio)(PMF_STD_ARGS, u8 value, u8 mask); 65 int (*read_gpio)(PMF_STD_ARGS, u8 mask, int rshift, u8 xor); 67 int (*write_reg32)(PMF_STD_ARGS, u32 offset, u32 value, u32 mask); 69 int (*write_reg16)(PMF_STD_ARGS, u32 offset, u16 value, u16 mask); 71 int (*write_reg8)(PMF_STD_ARGS, u32 offset, u8 value, u8 mask); 76 int (*wait_reg32)(PMF_STD_ARGS, u32 offset, u32 value, u32 mask); [all …]
|
/openbmc/linux/drivers/ntb/hw/idt/ |
H A D | ntb_hw_idt.h | 7 * Copyright (C) 2016-2018 T-Platforms JSC All Rights Reserved. 36 * IDT PCIe-switch NTB Linux driver 39 * Serge Semin <fancer.lancer@gmail.com>, <Sergey.Semin@t-platforms.ru> 55 * the supported IDT PCIe-switches 66 * IDT PCIe-switches device IDs 78 * NT-function Configuration Space registers 79 * NOTE 1) The IDT PCIe-switch internal data is little-endian 83 * with byte-enables corresponding to their native size or 86 * So to simplify the driver code, there is only DWORD-sized read/write 107 /* IDT Proprietary NT-port-specific registers */ [all …]
|
/openbmc/linux/drivers/pinctrl/ |
H A D | pinctrl-single.c | 25 #include <linux/pinctrl/pinconf-generic.h> 30 #include <linux/platform_data/pinctrl-single.h> 37 #define DRIVER_NAME "pinctrl-single" 41 * struct pcs_func_vals - mux function register offset and value pair 44 * @mask: mask 49 unsigned mask; member 53 * struct pcs_conf_vals - pinconf parameter, pinconf register offset 54 * and value, enable, disable, mask 59 * @mask: mask bits in the register value 66 unsigned mask; member [all …]
|
/openbmc/u-boot/arch/nios2/include/asm/bitops/ |
H A D | atomic.h | 12 * Hash function to index into a different SPINLOCK. 16 …ne ATOMIC_HASH(a) (&(__atomic_hash[ (((unsigned long) a)/L1_CACHE_BYTES) & (ATOMIC_HASH_SIZE-1) ])) 43 * *_bit function is holding a spin lock. If the NMI handler also wants 51 * set_bit - Atomically set a bit in memory 55 * This function is atomic and may not be reordered. See __set_bit() 58 * Note: there are no guarantees that this function will not be reordered 62 * Note that @nr may be almost arbitrarily large; this function is not 63 * restricted to acting on a single-word quantity. 67 unsigned long mask = BIT_MASK(nr); in set_bit() local 72 *p |= mask; in set_bit() [all …]
|
/openbmc/linux/include/misc/ |
H A D | ocxl.h | 1 // SPDX-License-Identifier: GPL-2.0+ 14 * reuse common code. A bit like a in-kernel library. 32 u8 pp_mmio_bar; /* per-process MMIO area */ 45 int dvsec_function_pos; /* offset of the Function DVSEC */ 52 OCXL_BIG_ENDIAN = 0, /**< AFU data is big-endian */ 53 OCXL_LITTLE_ENDIAN = 1, /**< AFU data is little-endian */ 65 * ocxl_function_open() - Open an OpenCAPI function on an OpenCAPI device 66 * @dev: The PCI device that contains the function 68 * Returns an opaque pointer to the function, or an error pointer (check with IS_ERR) 73 * ocxl_function_afu_list() - Get the list of AFUs associated with a PCI function device [all …]
|
/openbmc/linux/Documentation/arch/arm/samsung/ |
H A D | clksrc-change-registers.awk | 1 #!/usr/bin/awk -f 3 # Copyright 2010 Ben Dooks <ben-linux@fluff.org> 8 # ./clksrc-change-registers.awk arch/arm/plat-s5pc1xx/include/plat/regs-clock.h < src > dst 10 function extract_value(s) 14 return substr(s, eqat+2, (comat-eqat)-2) 17 function remove_brackets(b) 19 return substr(b, 2, length(b)-2) 22 function splitdefine(l, p) 30 function find_length(f) 48 function find_shift(s) [all …]
|
/openbmc/linux/kernel/ |
H A D | smp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 37 #define CSD_TYPE(_csd) ((_csd)->node.u_flags & CSD_FLAG_TYPE_MASK) 57 if (!zalloc_cpumask_var_node(&cfd->cpumask, GFP_KERNEL, in smpcfd_prepare_cpu() 59 return -ENOMEM; in smpcfd_prepare_cpu() 60 if (!zalloc_cpumask_var_node(&cfd->cpumask_ipi, GFP_KERNEL, in smpcfd_prepare_cpu() 62 free_cpumask_var(cfd->cpumask); in smpcfd_prepare_cpu() 63 return -ENOMEM; in smpcfd_prepare_cpu() 65 cfd->csd = alloc_percpu(call_single_data_t); in smpcfd_prepare_cpu() 66 if (!cfd->csd) { in smpcfd_prepare_cpu() 67 free_cpumask_var(cfd->cpumask); in smpcfd_prepare_cpu() [all …]
|
/openbmc/linux/drivers/net/phy/ |
H A D | phy-core.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 * phy_speed_to_str - Return a string representing the PHY link speed 57 return "Unsupported (update phy-core.c)"; in phy_speed_to_str() 63 * phy_duplex_to_str - Return string describing the duplex 75 return "Unsupported (update phy-core.c)"; in phy_duplex_to_str() 80 * phy_rate_matching_to_str - Return a string describing the rate matching 94 return "open-loop"; in phy_rate_matching_to_str() 96 return "Unsupported (update phy-core.c)"; in phy_rate_matching_to_str() 101 * phy_interface_num_ports - Return the number of links that can be carried by 102 * a given MAC-PHY physical link. Returns 0 if this is [all …]
|
H A D | mdio_bus.c | 1 // SPDX-License-Identifier: GPL-2.0+ 42 #include "mdio-boardinfo.h" 47 mdiodev->reset_gpio = gpiod_get_optional(&mdiodev->dev, in mdiobus_register_gpiod() 49 if (IS_ERR(mdiodev->reset_gpio)) in mdiobus_register_gpiod() 50 return PTR_ERR(mdiodev->reset_gpio); in mdiobus_register_gpiod() 52 if (mdiodev->reset_gpio) in mdiobus_register_gpiod() 53 gpiod_set_consumer_name(mdiodev->reset_gpio, "PHY reset"); in mdiobus_register_gpiod() 62 reset = reset_control_get_optional_exclusive(&mdiodev->dev, "phy"); in mdiobus_register_reset() 66 mdiodev->reset_ctrl = reset; in mdiobus_register_reset() 75 if (mdiodev->bus->mdio_map[mdiodev->addr]) in mdiobus_register_device() [all …]
|
/openbmc/linux/drivers/comedi/drivers/ |
H A D | comedi_8255.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * COMEDI - Linux Control and Measurement Device Interface 19 * This module is not used directly by end-users. Rather, it is used by 26 * Direction configuration is done in blocks, with channels 0-7, 8-15, 27 * 16-19, and 20-23 making up the 4 blocks. The only 8255 mode 45 outb(data, dev->iobase + regbase + port); in subdev_8255_io() 48 return inb(dev->iobase + regbase + port); in subdev_8255_io() 55 writeb(data, dev->mmio + regbase + port); in subdev_8255_mmio() 58 return readb(dev->mmio + regbase + port); in subdev_8255_mmio() 66 struct subdev_8255_private *spriv = s->private; in subdev_8255_insn() [all …]
|
/openbmc/linux/drivers/acpi/pmic/ |
H A D | intel_pmic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * intel_pmic.c - Intel PMIC operation region driver 47 return -ENOENT; in pmic_get_reg_bit() 50 static acpi_status intel_pmic_power_handler(u32 function, in intel_pmic_power_handler() argument 55 struct regmap *regmap = opregion->regmap; in intel_pmic_power_handler() 56 const struct intel_pmic_opregion_data *d = opregion->data; in intel_pmic_power_handler() 62 if (function == ACPI_WRITE && !(*value64 == 0 || *value64 == 1)) in intel_pmic_power_handler() 65 result = pmic_get_reg_bit(address, d->power_table, in intel_pmic_power_handler() 66 d->power_table_count, ®, &bit); in intel_pmic_power_handler() 67 if (result == -ENOENT) in intel_pmic_power_handler() [all …]
|
/openbmc/linux/include/linux/ |
H A D | mdio.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright 2006-2009 Solarflare Communications Inc. 38 /* Bus address of the MDIO device (0-31) */ 71 * up device-specific structures, if any 92 dev_set_drvdata(&mdio->dev, data); in mdiodev_set_drvdata() 97 return dev_get_drvdata(&mdio->dev); in mdiodev_get_drvdata() 111 get_device(&mdiodev->dev); in mdio_device_get() 135 * struct mdio_if_info - Ethernet controller MDIO interface 137 * @mmds: Mask of MMDs expected to be present in the PHY. This must be 138 * non-zero unless @prtad = %MDIO_PRTAD_NONE. [all …]
|
/openbmc/u-boot/include/ |
H A D | adc.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 10 /* ADC_CHANNEL() - ADC channel bit mask, to select only required channels */ 13 /* The last possible selected channel with 32-bit mask */ 19 * - ADC_DATA_FORMAT_BIN - binary offset 20 * - ADC_DATA_FORMAT_2S - two's complement 31 * struct adc_channel - structure to hold channel conversion data. 32 * Useful to keep the result of a multi-channel conversion output. 34 * @id - channel id 35 * @data - channel conversion data 43 * struct adc_uclass_platdata - basic ADC info [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | pinctrl-single.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/pinctrl-single.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Tony Lindgren <tony@atomide.com> 21 - enum: 22 - pinctrl-single 23 - pinconf-single 24 - items: 25 - enum: [all …]
|
/openbmc/linux/include/linux/bcma/ |
H A D | bcma_driver_pci.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 18 #define BCMA_CORE_PCI_ARBCTL_PARKID 0x00000006 /* Mask, selects which agent is parked on an idle … 29 #define BCMA_CORE_PCI_IMASK 0x0024 /* Interrupt mask */ 36 #define BCMA_CORE_PCI_MBOX_F0_0 0x00000100 /* PCI function 0, INT 0 */ 37 #define BCMA_CORE_PCI_MBOX_F0_1 0x00000200 /* PCI function 0, INT 1 */ 38 #define BCMA_CORE_PCI_MBOX_F1_0 0x00000400 /* PCI function 1, INT 0 */ 39 #define BCMA_CORE_PCI_MBOX_F1_1 0x00000800 /* PCI function 1, INT 1 */ 40 #define BCMA_CORE_PCI_MBOX_F2_0 0x00001000 /* PCI function 2, INT 0 */ 41 #define BCMA_CORE_PCI_MBOX_F2_1 0x00002000 /* PCI function 2, INT 1 */ 42 #define BCMA_CORE_PCI_MBOX_F3_0 0x00004000 /* PCI function 3, INT 0 */ [all …]
|
/openbmc/linux/include/linux/iio/ |
H A D | iio.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 39 * struct iio_chan_spec_ext_info - Extended channel info attribute 58 * struct iio_enum - Enum channel info attribute 61 * @set: Set callback function, may be NULL. 62 * @get: Get callback function, may be NULL. 89 * IIO_ENUM() - Initialize enum extended channel attribute 106 * IIO_ENUM_AVAILABLE() - Initialize enum available extended channel attribute 123 * struct iio_mount_matrix - iio mounting matrix 140 * IIO_MOUNT_MATRIX() - Initialize mount matrix extended channel attribute 153 * struct iio_event_spec - specification for a channel event [all …]
|
/openbmc/phosphor-debug-collector/ |
H A D | watch.hpp | 6 #include <systemd/sd-event.h> 19 // User specific call back function input map(path:event) type. 22 // User specific callback function wrapper type. 23 using UserType = std::function<void(const UserMap&)>; 29 * The inotify watch is hooked up with sd-event, so that on call back, 36 /** @brief ctor - hook inotify watch with sd-event 38 * @param[in] eventObj - Event loop object 39 * @param[in] flags - inotify flags 40 * @param[in] mask - Mask of events 41 * @param[in] events - Events to be watched [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_acpi.c | 1 // SPDX-License-Identifier: MIT 136 * amdgpu_atif_call - call an ATIF method 139 * @function: the ATIF function to execute 140 * @params: ATIF function params 142 * Executes the requested ATIF function (all asics). 146 int function, in amdgpu_atif_call() argument 159 atif_arg_elements[0].integer.value = function; in amdgpu_atif_call() 163 atif_arg_elements[1].buffer.length = params->length; in amdgpu_atif_call() 164 atif_arg_elements[1].buffer.pointer = params->pointer; in amdgpu_atif_call() 171 status = acpi_evaluate_object(atif->handle, NULL, &atif_arg, in amdgpu_atif_call() [all …]
|
/openbmc/u-boot/drivers/power/pmic/ |
H A D | pmic_tps65217.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * (C) Copyright 2011-2013 14 * tps65217_reg_read() - Generic function that can read a TPS65217 register 29 * tps65217_reg_write() - Generic function that can write a TPS65217 PMIC 38 * @mask: Bit mask (8 bits) to be applied. Function will only 39 * change bits that are set in the bit mask. 44 uchar mask) in tps65217_reg_write() argument 52 * mask in tps65217_reg_write() 54 if (mask != TPS65217_MASK_ALL_BITS) { in tps65217_reg_write() 63 read_val &= (~mask); in tps65217_reg_write() [all …]
|
/openbmc/linux/drivers/media/platform/ti/davinci/ |
H A D | vpif.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2009 Texas Instruments Incorporated - https://www.ti.com/ 139 /* Macro for Generating mask */ 145 ((((0xFFFFFFFF) << (32 - bits)) >> (32 - bits)) << pos) 168 /* Mask various length */ 262 /* inline function to enable/disable channel0 */ 271 /* inline function to enable/disable channel1 */ 280 /* inline function to enable interrupt for channel0 */ 302 /* inline function to enable interrupt for channel1 */ 324 /* inline function to set buffer addresses in case of Y/C non mux mode */ [all …]
|