/openbmc/phosphor-power/phosphor-regulators/src/actions/ |
H A D | i2c_write_bytes_action.hpp | 5 * you may not use this file except in compliance with the License. 8 * http://www.apache.org/licenses/LICENSE-2.0 10 * Unless required by applicable law or agreed to in writing, software 35 * Implements the i2c_write_bytes action in the JSON config file. 40 // Specify which compiler-generated methods we want 56 * specified in the order required by the device (e.g. in 57 * little-endian order). 61 reg{reg}, values{values}, masks{} in I2CWriteBytesAction() 78 * specified in the order required by the device (e.g. in 79 * little-endian order). [all …]
|
H A D | i2c_compare_bytes_action.hpp | 5 * you may not use this file except in compliance with the License. 8 * http://www.apache.org/licenses/LICENSE-2.0 10 * Unless required by applicable law or agreed to in writing, software 35 * Implements the i2c_compare_bytes action in the JSON config file. 40 // Specify which compiler-generated methods we want 56 * specified in the same order as they will be received from 57 * the device (e.g. in little-endian order). 73 * specified in the same order as they will be received from 74 * the device (e.g. in little-endian order). 75 * @param masks One or more bit masks. The number of bit masks must match [all …]
|
H A D | i2c_write_bytes_action.cpp | 5 * you may not use this file except in compliance with the License. 8 * http://www.apache.org/licenses/LICENSE-2.0 10 * Unless required by applicable law or agreed to in writing, software 35 if (masks.size() == 0) in execute() 54 valuesToWrite[i] = (values[i] & masks[i]) | in execute() 55 (currentValues[i] & (~masks[i])); in execute() 81 ss << " ], masks: [ "; in toString() 82 for (unsigned int i = 0; i < masks.size(); ++i) in toString() 84 ss << ((i > 0) ? ", " : "") << "0x" << static_cast<uint16_t>(masks[i]); in toString()
|
/openbmc/linux/lib/ |
H A D | group_cpus.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (C) 2016-2017 Christoph Hellwig. 29 cpus_per_grp--; in grp_spread_init_one() 33 for (sibl = -1; cpus_per_grp > 0; ) { in grp_spread_init_one() 40 cpus_per_grp--; in grp_spread_init_one() 47 cpumask_var_t *masks; in alloc_node_to_cpumask() local 50 masks = kcalloc(nr_node_ids, sizeof(cpumask_var_t), GFP_KERNEL); in alloc_node_to_cpumask() 51 if (!masks) in alloc_node_to_cpumask() 55 if (!zalloc_cpumask_var(&masks[node], GFP_KERNEL)) in alloc_node_to_cpumask() 59 return masks; in alloc_node_to_cpumask() [all …]
|
/openbmc/phosphor-power/phosphor-regulators/tools/ |
H A D | validate-regulators-config.py | 11 Validates the phosphor-regulators configuration file. Checks it against a JSON 12 schema as well as doing some extra checks that can't be encoded in the schema. 33 for json_key in json_element: 36 elif type(json_element[json_key]) in (list, dict): 39 for item in json_element: 40 if type(item) in (list, dict): 47 Get all rule IDs in the configuration file. 51 for rule in config_json.get("rules", {}): 58 Get all device IDs in the configuration file. 62 for chassis in config_json.get("chassis", {}): [all …]
|
/openbmc/linux/drivers/usb/misc/ |
H A D | brcmstb-usb-pinmap.c | 1 // SPDX-License-Identifier: GPL-2.0 64 val = gpiod_get_value(pin->gpiod); in sync_in_pin() 66 pinmap_set(pin->pdata->regs, pin->value_mask); in sync_in_pin() 68 pinmap_unset(pin->pdata->regs, pin->value_mask); in sync_in_pin() 83 pr_debug("%s: reg: 0x%x\n", __func__, readl(pdata->regs)); in brcmstb_usb_pinmap_ovr_isr() 84 pout = pdata->out_pins; in brcmstb_usb_pinmap_ovr_isr() 85 for (x = 0; x < pdata->out_count; x++) { in brcmstb_usb_pinmap_ovr_isr() 86 val = readl(pdata->regs); in brcmstb_usb_pinmap_ovr_isr() 87 if (val & pout->changed_mask) { in brcmstb_usb_pinmap_ovr_isr() 88 pinmap_set(pdata->regs, pout->clr_changed_mask); in brcmstb_usb_pinmap_ovr_isr() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/usb/ |
H A D | brcm,usb-pinmap.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/usb/brcm,usb-pinmap.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Al Cooper <alcooperx@gmail.com> 15 - const: brcm,usb-pinmap 22 description: Interrupt for signals mirrored to out-gpios. 24 in-gpios: 29 brcm,in-functions: 30 $ref: /schemas/types.yaml#/definitions/string-array [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn30/ |
H A D | dcn30_dpp_cm.c | 6 * to deal in the Software without restriction, including without limitation 11 * The above copyright notice and this permission notice shall be included in 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20 * OTHER DEALINGS IN THE SOFTWARE. 34 dpp->tf_regs->reg 37 dpp->base.ctx 41 dpp->tf_shift->field_name, dpp->tf_mask->field_name 50 // debug option: put CM in bypass mode in dpp3_enable_cm_block() [all …]
|
H A D | dcn30_dwb_cm.c | 6 * to deal in the Software without restriction, including without limitation 11 * The above copyright notice and this permission notice shall be included in 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20 * OTHER DEALINGS IN THE SOFTWARE. 37 dwbc30->dwbc_regs->reg 40 dwbc30->base.ctx 44 dwbc30->dwbc_shift->field_name, dwbc30->dwbc_mask->field_name 52 reg->shifts.field_region_start_base = dwbc30->dwbc_shift->DWB_OGAM_RAMA_EXP_REGION_START_BASE_B; in dwb3_get_reg_field_ogam() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn10/ |
H A D | dcn10_dpp_cm.c | 6 * to deal in the Software without restriction, including without limitation 11 * The above copyright notice and this permission notice shall be included in 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20 * OTHER DEALINGS IN THE SOFTWARE. 43 dpp->tf_regs->reg 46 dpp->base.ctx 50 dpp->tf_shift->field_name, dpp->tf_mask->field_name 118 gam_regs.shifts.csc_c11 = dpp->tf_shift->CM_GAMUT_REMAP_C11; in program_gamut_remap() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_flex_pipe.c | 1 // SPDX-License-Identifier: GPL-2.0 77 * ice_sect_id - returns section ID 90 * ice_hw_ptype_ena - check if the PTYPE is enabled or not 97 test_bit(ptype, hw->hw_ptype); in ice_hw_ptype_ena() 112 * ice_gen_key_word - generate 16-bits of a key/mask word 120 * This function generates 16-bits from a 8-bit value, an 8-bit don't care mask 121 * and an 8-bit never match mask. The 16-bits of output are divided into 8 bits 133 * ------------------------------ 143 /* 'dont_care' and 'nvr_mtch' masks cannot overlap */ in ice_gen_key_word() 145 return -EIO; in ice_gen_key_word() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dce_i2c_hw.c | 6 * to deal in the Software without restriction, including without limitation 11 * The above copyright notice and this permission notice shall be included in 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20 * OTHER DEALINGS IN THE SOFTWARE. 35 dce_i2c_hw->ctx 37 dce_i2c_hw->regs->reg 41 dce_i2c_hw->shifts->field_name, dce_i2c_hw->masks->field_name 59 DC_I2C_TRANSACTION_COUNT, dce_i2c_hw->transaction_count - 1); in execute_transaction() [all …]
|
/openbmc/linux/drivers/net/dsa/microchip/ |
H A D | ksz8795.c | 1 // SPDX-License-Identifier: GPL-2.0 16 #include <linux/platform_data/microchip-ksz.h> 47 regs = dev->info->regs; in ksz8_ind_write8() 49 mutex_lock(&dev->alu_mutex); in ksz8_ind_write8() 56 mutex_unlock(&dev->alu_mutex); in ksz8_ind_write8() 113 if (!dsa_is_cpu_port(dev->ds, port)) in ksz8_change_mtu() 118 switch (dev->chip_id) { in ksz8_change_mtu() 127 return -EOPNOTSUPP; in ksz8_change_mtu() 165 const u32 *masks; in ksz8_r_mib_cnt() local 172 masks = dev->info->masks; in ksz8_r_mib_cnt() [all …]
|
/openbmc/linux/sound/ppc/ |
H A D | awacs.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 25 unsigned byteswap; /* Data is little-endian if 1 */ 29 /* Audio Bit Masks */ 32 /* Audio Control Reg Bit Masks */ 33 /* ----- ------- --- --- ----- */ 43 /* Audio Codec Control Reg Bit Masks */ 44 /* ----- ----- ------- --- --- ----- */ 47 #define MASK_EXMODEADDR (0x3ff << 12) /* Extended Mode Address -- 10 bits */ 48 #define MASK_EXMODEDATA (0xfff) /* Extended Mode Data -- 12 bits */ 50 /* Audio Codec Control Address Values / Masks */ [all …]
|
/openbmc/phosphor-power/phosphor-regulators/test/actions/ |
H A D | i2c_write_bytes_action_tests.cpp | 5 * you may not use this file except in compliance with the License. 8 * http://www.apache.org/licenses/LICENSE-2.0 10 * Unless required by applicable law or agreed to in writing, software 89 // const std::vector<uint8_t>& masks) 96 std::vector<uint8_t> masks{0x7E, 0x3C}; in TEST() local 97 I2CWriteBytesAction action{0xA0, values, masks}; in TEST() 118 std::vector<uint8_t> masks{}; in TEST() local 119 I2CWriteBytesAction action{0xA0, values, masks}; in TEST() 131 // Test where fails: Masks vector different size than values vector in TEST() 135 std::vector<uint8_t> masks{0x7E, 0x3C}; in TEST() local [all …]
|
H A D | i2c_compare_bytes_action_tests.cpp | 5 * you may not use this file except in compliance with the License. 8 * http://www.apache.org/licenses/LICENSE-2.0 10 * Unless required by applicable law or agreed to in writing, software 89 // const std::vector<uint8_t>& masks) 96 std::vector<uint8_t> masks{0x7E, 0x3C}; in TEST() local 97 I2CCompareBytesAction action{0xA0, values, masks}; in TEST() 118 std::vector<uint8_t> masks{}; in TEST() local 119 I2CCompareBytesAction action{0xA0, values, masks}; in TEST() 131 // Test where fails: Masks vector different size than values vector in TEST() 135 std::vector<uint8_t> masks{0x7E, 0x3C}; in TEST() local [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | tdm-slot.txt | 6 dai-tdm-slot-num : Number of slots in use. 7 dai-tdm-slot-width : Width in bits for each slot. 8 dai-tdm-slot-tx-mask : Transmit direction slot mask, optional 9 dai-tdm-slot-rx-mask : Receive direction slot mask, optional 12 dai-tdm-slot-num = <2>; 13 dai-tdm-slot-width = <8>; 14 dai-tdm-slot-tx-mask = <0 1>; 15 dai-tdm-slot-rx-mask = <1 0>; 20 tx and rx masks. 22 For snd_soc_of_xlate_tdm_slot_mask(), the tx and rx masks will use a 1 bit [all …]
|
/openbmc/linux/arch/arm/mach-s3c/ |
H A D | wakeup-mask.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright 2010 Ben Dooks <ben-linux@fluff.org> 15 * struct samsung_wakeup_mask - wakeup mask information 25 * samsung_sync_wakemask - sync wakeup mask information for pm 27 * @masks: The list of masks to use. 28 * @nr_masks: The number of entries pointed to buy @masks. 31 * of interrupts and control bits in @masks. We do this at suspend time 36 const struct samsung_wakeup_mask *masks,
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn20/ |
H A D | dcn20_mpc.c | 2 * Copyright 2012-15 Advanced Micro Devices, Inc. 6 * to deal in the Software without restriction, including without limitation 11 * The above copyright notice and this permission notice shall be included in 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20 * OTHER DEALINGS IN THE SOFTWARE. 34 mpc20->mpc_regs->reg 40 mpc20->base.ctx 44 mpc20->mpc_shift->field_name, mpc20->mpc_mask->field_name [all …]
|
/openbmc/linux/drivers/net/ethernet/ezchip/ |
H A D | nps_enet.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 35 /* Tx control register masks and shifts */ 43 /* Rx control register masks and shifts */ 53 /* Interrupt enable for data buffer events register masks and shifts */ 59 /* Gbps Eth MAC Configuration 0 register masks and shifts */ 93 /* Gbps Eth MAC Configuration 1 register masks and shifts */ 103 /* Gbps Eth MAC Configuration 2 register masks and shifts */ 119 /* Gbps Eth MAC Configuration 3 register masks and shifts */ 141 /* GE MAC, PCS reset control register masks and shifts */ 147 /* Tx phase sync FIFO control register masks and shifts */ [all …]
|
/openbmc/linux/drivers/net/ethernet/xilinx/ |
H A D | xilinx_axienet.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * Copyright (c) 2010 - 2012 Xilinx, Inc. All rights reserved. 147 #define XAE_IFGP_OFFSET 0x00000008 /* Tx Inter-frame gap adjustment*/ 180 /* Bit Masks for Axi Ethernet RAF register */ 199 /* Bit Masks for Axi Ethernet TPF and IFGP registers */ 201 /* Transmit inter-frame gap adjustment value */ 204 /* Bit Masks for Axi Ethernet IS, IE and IP registers, Same masks apply 224 /* Bit masks for Axi Ethernet VLAN TPID Word 0 register */ 228 /* Bit masks for Axi Ethernet VLAN TPID Word 1 register */ 232 /* Bit masks for Axi Ethernet RCW1 register */ [all …]
|
/openbmc/phosphor-power/phosphor-regulators/docs/config_file/ |
H A D | i2c_compare_bytes.md | 8 All of the bytes will be read in a single I2C operation. 10 The bytes must be specified in the same order as they will be received from the 11 device. For example, a PMBus device transmits byte values in little-endian order 17 …------- | :------: | :--------------- | :---------------------------------------------------------… 18 | register | yes | string | Device register address expressed in hexadecimal. Must b… 19 | values | yes | array of strings | One or more expected byte values expressed in hexadecima… 20 …masks | no | array of strings | One or more bit masks expressed in hexadecimal. Each mask… 33 "Device returns bytes in big-endian order." 46 "Device returns bytes in little-endian order.", 47 "Ignore the most significant bit in each byte." [all …]
|
H A D | i2c_write_bytes.md | 8 All of the bytes will be written in a single I2C operation. 10 The bytes must be specified in the order required by the device. For example, a 11 PMBus device requires byte values to be written in little-endian order (least 17 …------- | :------: | :--------------- | :---------------------------------------------------------… 18 | register | yes | string | Device register address expressed in hexadecimal. Must b… 19 | values | yes | array of strings | One or more byte values to write expressed in hexadecima… 20 …masks | no | array of strings | One or more bit masks expressed in hexadecimal. Each mask… 32 "written in big-endian order." 45 "written in little-endian order. Do not write the most", 46 "significant bit in each byte because the bit is reserved." [all …]
|
/openbmc/qemu/include/hw/s390x/ |
H A D | event-facility.h | 11 * option) any later version. See the COPYING file in the top-level directory. 19 #include "hw/qdev-core.h" 31 /* SCLP event masks */ 32 #define SCLP_EVMASK(T) (1ULL << (sizeof(sccb_mask_t) * 8 - (T))) 44 #define TYPE_SCLP_EVENT "s390-sclp-event-type" 48 #define TYPE_SCLP_CPU_HOTPLUG "sclp-cpu-hotplug" 57 uint8_t masks[]; member 59 * Layout of the masks is 68 #define WEM_CP_RECEIVE_MASK(wem, mask_len) ((wem)->masks) 69 #define WEM_CP_SEND_MASK(wem, mask_len) ((wem)->masks + (mask_len)) [all …]
|
/openbmc/linux/kernel/sched/ |
H A D | topology.c | 1 // SPDX-License-Identifier: GPL-2.0 38 struct sched_group *group = sd->groups; in sched_domain_debug_one() 39 unsigned long flags = sd->flags; in sched_domain_debug_one() 44 printk(KERN_DEBUG "%*s domain-%d: ", level, "", level); in sched_domain_debug_one() 46 cpumask_pr_args(sched_domain_span(sd)), sd->name); in sched_domain_debug_one() 49 printk(KERN_ERR "ERROR: domain->span does not contain CPU%d\n", cpu); in sched_domain_debug_one() 52 printk(KERN_ERR "ERROR: domain->groups does not contain CPU%d\n", cpu); in sched_domain_debug_one() 59 if ((meta_flags & SDF_SHARED_CHILD) && sd->child && in sched_domain_debug_one() 60 !(sd->child->flags & flag)) in sched_domain_debug_one() 61 printk(KERN_ERR "ERROR: flag %s set here but not in child\n", in sched_domain_debug_one() [all …]
|