Home
last modified time | relevance | path

Searched +full:function +full:- +full:mask (Results 1 – 25 of 1086) sorted by relevance

12345678910>>...44

/linux/arch/arm/lib/
H A Dbacktrace-clang.S1 /* 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/net/phy/
H A Dphy-core.c1 // SPDX-License-Identifier: GPL-2.0+
10 #include "phylib-internal.h"
11 #include "phy-caps.h"
14 * phy_speed_to_str - Return a string representing the PHY link speed
61 return "Unsupported (update phy-core.c)"; in phy_speed_to_str()
67 * phy_duplex_to_str - Return string describing the duplex
79 return "Unsupported (update phy-core.c)"; in phy_duplex_to_str()
84 * phy_rate_matching_to_str - Return a string describing the rate matching
98 return "open-loop"; in phy_rate_matching_to_str()
100 return "Unsupported (update phy-core.c)"; in phy_rate_matching_to_str()
[all …]
H A Dmdio_bus.c1 // SPDX-License-Identifier: GPL-2.0+
39 mdiodev->reset_gpio = gpiod_get_optional(&mdiodev->dev, in mdiobus_register_gpiod()
41 if (IS_ERR(mdiodev->reset_gpio)) in mdiobus_register_gpiod()
42 return PTR_ERR(mdiodev->reset_gpio); in mdiobus_register_gpiod()
44 if (mdiodev->reset_gpio) in mdiobus_register_gpiod()
45 gpiod_set_consumer_name(mdiodev->reset_gpio, "PHY reset"); in mdiobus_register_gpiod()
54 reset = reset_control_get_optional_exclusive(&mdiodev->dev, "phy"); in mdiobus_register_reset()
58 mdiodev->reset_ctrl = reset; in mdiobus_register_reset()
67 if (mdiodev->bus->mdio_map[mdiodev->addr]) in mdiobus_register_device()
68 return -EBUSY; in mdiobus_register_device()
[all …]
/linux/drivers/gpu/drm/radeon/
H A Dradeon_acpi.c52 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 …]
H A Dradeon_atpx_handler.c1 // 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/drivers/ntb/hw/idt/
H A Dntb_hw_idt.h7 * 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 Dpmac_pfunc.h1 /* 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/net/dsa/microchip/
H A Dksz_dcb.c1 // 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 Docxl.h1 // 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/include/linux/
H A Dmdio.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright 2006-2009 Solarflare Communications Inc.
38 /* Bus address of the MDIO device (0-31) */
66 * up device-specific structures, if any
83 dev_set_drvdata(&mdio->dev, data); in mdiodev_set_drvdata()
88 return dev_get_drvdata(&mdio->dev); in mdiodev_get_drvdata()
101 get_device(&mdiodev->dev); in mdio_device_get()
125 * struct mdio_if_info - Ethernet controller MDIO interface
127 * @mmds: Mask of MMDs expected to be present in the PHY. This must be
128 * non-zero unless @prtad = %MDIO_PRTAD_NONE.
[all …]
H A Dsmp.h1 /* 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-blocking.
79 * @info: An arbitrary pointer to pass to the function.
80 * @wait: If true, wait (atomically) until function has completed
85 * You must not call this function with disabled interrupts or from a
[all …]
/linux/Documentation/arch/arm/samsung/
H A Dclksrc-change-registers.awk1 #!/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 Dsmp.c1 // 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 -ENOMEM; in smpcfd_prepare_cpu()
66 cfd->csd = alloc_percpu(call_single_data_t); in smpcfd_prepare_cpu()
67 if (!cfd->csd) { in smpcfd_prepare_cpu()
68 free_cpumask_var(cfd->cpumask); in smpcfd_prepare_cpu()
[all …]
/linux/drivers/acpi/pmic/
H A Dintel_pmic.c1 // 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, &reg, &bit); in intel_pmic_power_handler()
67 if (result == -ENOENT) in intel_pmic_power_handler()
[all …]
/linux/include/linux/bcma/
H A Dbcma_driver_pci.h1 /* 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 Dpinctrl-single.yaml1 # 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 Dvpif.h1 /* 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 Dcpacf.h1 /* 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/clk/
H A Dti.h1 /* 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/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_acpi.c1 // 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 …]
/linux/arch/arm/mach-davinci/
H A Dmux.h1 /* 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 Dpinmux-aspeed.c1 // 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/net/can/
H A Daf_can.c1 // SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
2 /* af_can.c - Protocol family CAN core module
5 * Copyright (c) 2002-2017 Volkswagen Group Electronic Research
61 #include <linux/can/can-ml.h>
91 skb_queue_purge(&sk->sk_receive_queue); in can_sock_destruct()
92 skb_queue_purge(&sk->sk_error_queu in can_sock_destruct()
366 can_rcv_list_find(canid_t * can_id,canid_t * mask,struct can_dev_rcv_lists * dev_rcv_lists) can_rcv_list_find() argument
445 can_rx_register(struct net * net,struct net_device * dev,canid_t can_id,canid_t mask,void (* func)(struct sk_buff *,void *),void * data,char * ident,struct sock * sk) can_rx_register() argument
514 can_rx_unregister(struct net * net,struct net_device * dev,canid_t can_id,canid_t mask,void (* func)(struct sk_buff *,void *),void * data) can_rx_unregister() argument
[all...]
/linux/drivers/net/dsa/mv88e6xxx/
H A Dglobal2_scratch.c1 // 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 Die.c1 // 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 …]

12345678910>>...44