| /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 …]
|
| /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 …]
|
| /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 …]
|
| /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 …]
|
| /linux/drivers/net/dsa/microchip/ |
| H A D | ksz_dcb.c | 1 // SPDX-License-Identifier: GPL-2.0 14 * The datasheet specifies: Port 1 - 0x10, Port 2 - 0x20, Port 3 - 0x30. 61 /* ksz_supported_apptrust[] - Supported apptrust selectors and Priority Order 65 * the index within the array indicates the priority of the selector - lower 72 * non-configurable precedence where certain types of priority information 75 * 1. Tail Tag - Highest priority, overrides ACL, VLAN PCP, and DSCP priorities. 76 * 2. ACL - Overrides VLAN PCP and DSCP priorities. 77 * 3. VLAN PCP - Overrides DSCP priority. 78 * 4. DSCP - Lowest priority, does not override any other priority source. 84 * DCB_APP_SEL_PCP - Priority Code Point selector [all …]
|
| /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 …]
|
| /linux/drivers/net/phy/ |
| H A D | mdio_bus.c | 1 // SPDX-License-Identifier: GPL-2.0+ 32 #include "mdio-private.h" 41 if (mdiodev->bus->mdio_map[mdiodev->addr]) in mdiobus_register_device() 42 return -EBUSY; in mdiobus_register_device() 44 if (mdiodev->flags & MDIO_DEVICE_FLAG_PHY) { in mdiobus_register_device() 53 mdiodev->bus->mdio_map[mdiodev->addr] = mdiodev; in mdiobus_register_device() 61 if (mdiodev->bus->mdio_map[mdiodev->addr] != mdiodev) in mdiobus_unregister_device() 62 return -EINVAL; in mdiobus_unregister_device() 66 mdiodev->bus->mdio_map[mdiodev->addr] = NULL; in mdiobus_unregister_device() 74 bool addr_valid = addr >= 0 && addr < ARRAY_SIZE(bus->mdio_map); in mdiobus_find_device() [all …]
|
| /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 …]
|
| /linux/kernel/ |
| H A D | smp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 38 #define CSD_TYPE(_csd) ((_csd)->node.u_flags & CSD_FLAG_TYPE_MASK) 58 if (!zalloc_cpumask_var_node(&cfd->cpumask, GFP_KERNEL, in smpcfd_prepare_cpu() 60 return -ENOMEM; in smpcfd_prepare_cpu() 61 if (!zalloc_cpumask_var_node(&cfd->cpumask_ipi, GFP_KERNEL, in smpcfd_prepare_cpu() 63 free_cpumask_var(cfd->cpumask); in smpcfd_prepare_cpu() 64 return -ENOME in smpcfd_prepare_cpu() 125 send_call_function_ipi_mask(struct cpumask * mask) send_call_function_ipi_mask() argument 754 smp_call_function_any(const struct cpumask * mask,smp_call_func_t func,void * info,int wait) smp_call_function_any() argument 780 smp_call_function_many_cond(const struct cpumask * mask,smp_call_func_t func,void * info,unsigned int scf_flags,smp_cond_func_t cond_func) smp_call_function_many_cond() argument 897 smp_call_function_many(const struct cpumask * mask,smp_call_func_t func,void * info,bool wait) smp_call_function_many() argument 1035 on_each_cpu_cond_mask(smp_cond_func_t cond_func,smp_call_func_t func,void * info,bool wait,const struct cpumask * mask) on_each_cpu_cond_mask() argument [all...] |
| /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 …]
|
| /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 …]
|
| /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 …]
|
| /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 …]
|
| /linux/arch/s390/include/asm/ |
| H A D | cpacf.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 #include <linux/kmsan-checks.h> 41 * Function codes for the KM (CIPHER MESSAGE) instruction 63 * Function codes for the KMC (CIPHER MESSAGE WITH CHAINING) 79 * Function codes for the KMCTR (CIPHER MESSAGE WITH COUNTER) 94 * Function codes for the KIMD (COMPUTE INTERMEDIATE MESSAGE DIGEST) 108 * Function codes for the KLMD (COMPUTE LAST MESSAGE DIGEST) 121 * function codes for the KMAC (COMPUTE MESSAGE AUTHENTICATION CODE) 138 * Function codes for the PCKMO (PERFORM CRYPTOGRAPHIC KEY MANAGEMENT) 159 * Function codes for the PRNO (PERFORM RANDOM NUMBER OPERATION) [all …]
|
| /linux/include/linux/ |
| H A D | smp.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 54 void *info, bool wait, const struct cpumask *mask); 60 * Architecture-dependent code may override them. 67 * Call a function on all processors 75 * on_each_cpu_mask(): Run a function on processors specified by 77 * @mask: The set of cpus to run on (only runs on online subset). 78 * @func: The function to run. This must be fast and non-blockin 90 on_each_cpu_mask(const struct cpumask * mask,smp_call_func_t func,void * info,bool wait) on_each_cpu_mask() argument 206 smp_call_function_many(mask,func,info,wait) global() argument 211 smp_call_function_any(const struct cpumask * mask,smp_call_func_t func,void * info,int wait) smp_call_function_any() argument [all...] |
| /linux/drivers/gpu/drm/radeon/ |
| H A D | radeon_atpx_handler.c | 1 // SPDX-License-Identifier: GPL-2.0-only 37 /* handle for device - and atpx */ 85 * radeon_atpx_call - call an ATPX method 88 * @function: the ATPX function to execute 89 * @params: ATPX function params 91 * Executes the requested ATPX function (all asics). 94 static union acpi_object *radeon_atpx_call(acpi_handle handle, int function, in radeon_atpx_call() argument 106 atpx_arg_elements[0].integer.value = function; in radeon_atpx_call() 110 atpx_arg_elements[1].buffer.length = params->length; in radeon_atpx_call() 111 atpx_arg_elements[1].buffer.pointer = params->pointer; in radeon_atpx_call() [all …]
|
| /linux/include/linux/clk/ |
| H A D | ti.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 10 #include <linux/clk-provider.h> 14 * struct clk_omap_reg - OMAP register declaration 29 * struct dpll_data - DPLL registers and integration data 31 * @mult_mask: mask of the DPLL M bitfield in @mult_div1_reg 32 * @div1_mask: mask of the DPLL N bitfield in @mult_div1_reg 36 * @enable_mask: mask of the DPLL mode bitfield in @control_reg 43 * @max_multiplier: maximum valid non-bypass multiplier value (actual) 45 * @min_divider: minimum valid non-bypass divider value (actual) 46 * @max_divider: maximum valid non-bypass divider value (actual) [all …]
|
| /linux/arch/arm/mach-davinci/ |
| H A D | mux.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Pin-multiplex helper macros for TI DaVinci family devices 19 const unsigned char mask; member 25 /* UART0 function */ 31 /* UART1 function */ 37 /* UART2 function */ 43 /* I2C1 function */ 47 /* I2C0 function */ 51 /* EMAC function */ 78 /* McASP function */ [all …]
|
| /linux/drivers/pinctrl/aspeed/ |
| H A D | pinmux-aspeed.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 #include "pinmux-aspeed.h" 18 aspeed_pinmux_ips[desc->ip], desc->reg, in aspeed_sig_desc_print_val() 19 desc->mask, enable ? desc->enable : desc->disable, in aspeed_sig_desc_print_val() 20 (rv & desc->mask) >> __ffs(desc->mask), rv); in aspeed_sig_desc_print_val() 24 * aspeed_sig_desc_eval() - Query the enabled or disabled state of a signal 35 * Evaluation of descriptor state is non-trivial in that it is not a binary 38 * descriptor (typically this means a different function to the one of interest 49 return -ENODEV; in aspeed_sig_desc_eval() 51 ret = regmap_read(map, desc->reg, &raw); in aspeed_sig_desc_eval() [all …]
|
| /linux/drivers/net/dsa/mv88e6xxx/ |
| H A D | global2_scratch.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 45 * mv88e6xxx_g2_scratch_get_bit - get a bit 56 u8 mask = (1 << (offset & 0x7)); in mv88e6xxx_g2_scratch_get_bit() local 64 *set = !!(mask & val); in mv88e6xxx_g2_scratch_get_bit() 70 * mv88e6xxx_g2_scratch_set_bit - set (or clear) a bit 76 * Helper function for dealing with the direction and data registers. 83 u8 mask = (1 << (offset & 0x7)); in mv88e6xxx_g2_scratch_set_bit() local 92 val |= mask; in mv88e6xxx_g2_scratch_set_bit() 94 val &= ~mask; in mv88e6xxx_g2_scratch_set_bit() 100 * mv88e6352_g2_scratch_gpio_get_data - get data on gpio pin [all …]
|
| /linux/drivers/net/wireless/marvell/mwifiex/ |
| H A D | ie.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * NXP Wireless LAN device driver: management IE handling- setting and 6 * Copyright 2011-2020 NXP 11 /* This function checks if current IE index is used by any on other interface. 12 * Return: -1: yes, current IE index is used by someone else. 19 struct mwifiex_adapter *adapter = priv->adapter; in mwifiex_ie_index_used_by_other_intf() 22 for (i = 0; i < adapter->priv_num; i++) { in mwifiex_ie_index_used_by_other_intf() 23 if (adapter->priv[i] != priv) { in mwifiex_ie_index_used_by_other_intf() 24 ie = &adapter->priv[i]->mgmt_ie[idx]; in mwifiex_ie_index_used_by_other_intf() 25 if (ie->mgmt_subtype_mask && ie->ie_length) in mwifiex_ie_index_used_by_other_intf() [all …]
|
| /linux/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_lan_hmc.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2018 Intel Corporation. */ 12 * i40e_align_l2obj_base - aligns base object pointer to 512 bytes 15 * Aligns the layer 2 function private memory so it's 512-byte aligned. 22 aligned_offset += (I40E_HMC_L2OBJ_BASE_ALIGNMENT - in i40e_align_l2obj_base() 29 * i40e_calculate_l2fpm_size - calculates layer 2 FPM memory size 35 * Calculates the maximum amount of memory for the function required, based 59 * i40e_init_lan_hmc - initialize i40e_hmc_info struct 66 * This function will be called once per physical function initialization. 72 * - HMC Resource Profile has been selected before calling this function. [all …]
|
| /linux/kernel/irq/ |
| H A D | manage.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 1992, 1998-2006 Linus Torvalds, Ingo Molnar 4 * Copyright (C) 2005-2006 Thomas Gleixner 50 while (irqd_irq_inprogress(&desc->irq_data)) in __synchronize_hardirq() 53 /* Ok, that indicated we're done: double-check carefully. */ in __synchronize_hardirq() 54 guard(raw_spinlock_irqsave)(&desc->lock); in __synchronize_hardirq() 55 inprogress = irqd_irq_inprogress(&desc->irq_data); in __synchronize_hardirq() 75 * synchronize_hardirq - wai 220 irq_do_set_affinity(struct irq_data * data,const struct cpumask * mask,bool force) irq_do_set_affinity() argument 327 irq_set_affinity_deactivated(struct irq_data * data,const struct cpumask * mask) irq_set_affinity_deactivated() argument 350 irq_set_affinity_locked(struct irq_data * data,const struct cpumask * mask,bool force) irq_set_affinity_locked() argument 441 __irq_set_affinity(unsigned int irq,const struct cpumask * mask,bool force) __irq_set_affinity() argument 577 static struct cpumask mask; irq_setup_affinity() local 1003 cpumask_var_t mask; irq_thread_check_affinity() local [all...] |
| /linux/drivers/pinctrl/sunxi/ |
| H A D | pinctrl-sunxi.c | 6 * Maxime Ripard <maxime.ripard@free-electrons.com> 28 #include <linux/pinctrl/pinconf-generic.h> 33 #include <dt-bindings/pinctrl/sun4i-a10.h> 36 #include "pinctrl-sunxi.h" 51 * - Mux config 52 * - Data value 53 * - Drive level 54 * - Pull direction 71 pin -= PK_BASE; in sunxi_bank_offset() 75 return offset + (pin / PINS_PER_BANK) * pctl->bank_mem_size; in sunxi_bank_offset() [all …]
|
| /linux/drivers/pci/ |
| H A D | irq.c | 1 // SPDX-License-Identifier: GPL-2.0 19 * pci_request_irq - allocate an interrupt line for a PCI device 21 * @nr: device-relative interrupt vector index (0-based). 22 * @handler: Function to be called when the IRQ occurs. 26 * @thread_fn: Function called from the IRQ handler thread 28 * @dev_id: Cookie passed back to the handler function 29 * @fmt: Printf-like format string naming the handler 33 * be invoked. All interrupts requested using this function might be shared. 52 return -ENOMEM; in pci_request_irq() 63 * pci_free_irq - free an interrupt allocated with pci_request_irq [all …]
|