Home
last modified time | relevance | path

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

12345678910>>...52

/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 pointer
[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/kernel/
H A Dsmp.c1 // SPDX-License-Identifier: GPL-2.0-only
39 #define CSD_TYPE(_csd) ((_csd)->node.u_flags & CSD_FLAG_TYPE_MASK)
59 if (!zalloc_cpumask_var_node(&cfd->cpumask, GFP_KERNEL, in smpcfd_prepare_cpu()
61 return -ENOMEM; in smpcfd_prepare_cpu()
62 if (!zalloc_cpumask_var_node(&cfd->cpumask_ipi, GFP_KERNEL, in smpcfd_prepare_cpu()
64 free_cpumask_var(cfd->cpumask); in smpcfd_prepare_cpu()
65 return -ENOME in smpcfd_prepare_cpu()
133 send_call_function_ipi_mask(struct cpumask * mask) send_call_function_ipi_mask() argument
685 __smp_call_function_single(int cpu,smp_call_func_t func,void * info,const struct cpumask * mask,bool wait) __smp_call_function_single() argument
830 smp_call_function_any(const struct cpumask * mask,smp_call_func_t func,void * info,int wait) smp_call_function_any() argument
890 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
1022 smp_call_function_many(const struct cpumask * mask,smp_call_func_t func,void * info,bool wait) smp_call_function_many() argument
1163 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
1226 cpus_peek_for_pending_ipi(const struct cpumask * mask) cpus_peek_for_pending_ipi() argument
[all...]
/linux/tools/testing/selftests/kvm/x86/
H A Dcpuid_test.c1 // SPDX-License-Identifier: GPL-2.0-only
32 for (i = 0; i < guest_cpuid->nent; i++) { in test_guest_cpuids()
33 __cpuid(guest_cpuid->entries[i].function, in test_guest_cpuids()
34 guest_cpuid->entries[i].index, in test_guest_cpuids()
37 GUEST_ASSERT_EQ(eax, guest_cpuid->entries[i].eax); in test_guest_cpuids()
38 GUEST_ASSERT_EQ(ebx, guest_cpuid->entrie in test_guest_cpuids()
60 struct cpuid_mask mask; get_const_cpuid_mask() local
93 struct cpuid_mask mask; compare_cpuids() local
[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/pinctrl/
H A Dpinctrl-single.c25 #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 Dksz_dcb.c1 // SPDX-License-Identifier: GPL-2.0
14 * The datasheet specifies: Port 1 - 0x10, Port 2 - 0x20, Port 3 - 0x30.
63 /* ksz_supported_apptrust[] - Supported apptrust selectors and Priority Order
67 * the index within the array indicates the priority of the selector - lower
74 * non-configurable precedence where certain types of priority information
77 * 1. Tail Tag - Highes
97 ksz_get_default_port_prio_reg(struct ksz_device * dev,int * reg,u8 * mask,int * shift) ksz_get_default_port_prio_reg() argument
123 ksz_get_dscp_prio_reg(struct ksz_device * dev,int * reg,int * per_reg,u8 * mask) ksz_get_dscp_prio_reg() argument
154 ksz_get_apptrust_map_and_reg(struct ksz_device * dev,const struct ksz_apptrust_map ** map,int * reg,u8 * mask) ksz_get_apptrust_map_and_reg() argument
186 u8 data, mask; ksz_port_get_default_prio() local
213 u8 mask; ksz_port_set_default_prio() local
240 u8 data, mask; ksz_port_get_dscp_prio() local
287 u8 mask; ksz_set_global_dscp_entry() local
505 u8 mask; ksz_port_set_apptrust() local
547 u8 mask; ksz_port_get_apptrust() local
[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.
36 /* Bus address of the MDIO device (0-31) */
64 * up device-specific structures, if any
81 dev_set_drvdata(&mdio->dev, data); in mdiodev_set_drvdata()
86 return dev_get_drvdata(&mdio->dev); in mdiodev_get_drvdata()
91 return (mdio->reset_gpio || mdio->reset_ctrl); in mdiodev_has_reset()
104 get_device(&mdiodev->dev); in mdio_device_get()
128 * struct mdio_if_info - Ethernet controller MDIO interface
130 * @mmds: Mask of MMDs expected to be present in the PHY. This must be
[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/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/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/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_acpi.c1 // SPDX-License-Identifier: MIT
139 * amdgpu_atif_call - call an ATIF method
142 * @function: the ATIF function to execute
143 * @params: ATIF function params
146 * Executes the requested ATIF function (all asics).
150 int function, in amdgpu_atif_call()
164 atif_arg_elements[0].integer.value = function; in amdgpu_atif_call()
168 atif_arg_elements[1].buffer.length = params->lengt in amdgpu_atif_call()
149 amdgpu_atif_call(struct amdgpu_atif * atif,int function,struct acpi_buffer * params,size_t min_size) amdgpu_atif_call() argument
229 amdgpu_atif_parse_notification(struct amdgpu_atif_notifications * n,u32 mask) amdgpu_atif_parse_notification() argument
249 amdgpu_atif_parse_functions(struct amdgpu_atif_functions * f,u32 mask) amdgpu_atif_parse_functions() argument
542 amdgpu_atcs_call(struct amdgpu_atcs * atcs,int function,struct acpi_buffer * params) amdgpu_atcs_call() argument
589 amdgpu_atcs_parse_functions(struct amdgpu_atcs_functions * f,u32 mask) amdgpu_atcs_parse_functions() argument
[all...]
/linux/drivers/gpu/drm/radeon/
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/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/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/tools/testing/selftests/alloc_tag/
H A Dallocinfo_ioctl_test.c1 // SPDX-License-Identifier: GPL-2.0-only
56 if (match_bytes && tag_data->counter.bytes != procfs_entry->counter.bytes) { in match_entry()
61 if (match_calls && tag_data->counter.calls != procfs_entry->counter.calls) { in match_entry()
66 if (match_lineno && tag_data->tag.lineno != procfs_entry->tag.lineno) { in match_entry()
72 strncmp(tag_data->tag.function, procfs_entry->tag.function, ALLOCINFO_STR_SIZE)) { in match_entry()
73 ksft_print_msg("function retrieved through ioctl does not match procfs\n"); in match_entry()
78 strncmp(tag_data->tag.filename, procfs_entry->tag.filename, ALLOCINFO_STR_SIZE)) { in match_entry()
92 if (procfs_entries->count != tags->count) { in match_entries()
94 tags->count, procfs_entries->count); in match_entries()
97 for (i = 0; i < procfs_entries->count; i++) { in match_entries()
[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_queue); in can_sock_destruct()
102 if (cp && !try_module_get(cp->prot->owner)) in can_get_proto()
111 module_put(cp->prot->owner); in can_put_proto()
121 sock->state = SS_UNCONNECTED; in can_create()
124 return -EINVAL; in can_create()
[all …]
/linux/drivers/pinctrl/sunxi/
H A Dpinctrl-sunxi.c6 * 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
68 u32 offset = pctl->bank_offse in sunxi_bank_offset()
79 sunxi_mux_reg(const struct sunxi_pinctrl * pctl,u32 pin,u32 * reg,u32 * shift,u32 * mask) sunxi_mux_reg() argument
90 sunxi_data_reg(const struct sunxi_pinctrl * pctl,u32 pin,u32 * reg,u32 * shift,u32 * mask) sunxi_data_reg() argument
101 sunxi_dlevel_reg(const struct sunxi_pinctrl * pctl,u32 pin,u32 * reg,u32 * shift,u32 * mask) sunxi_dlevel_reg() argument
112 sunxi_pull_reg(const struct sunxi_pinctrl * pctl,u32 pin,u32 * reg,u32 * shift,u32 * mask) sunxi_pull_reg() argument
335 const char *function; sunxi_pctrl_parse_function_prop() local
437 const char *function, *pin_prop; sunxi_pctrl_dt_node_to_map() local
563 sunxi_pconf_reg(const struct sunxi_pinctrl * pctl,u32 pin,enum pin_config_param param,u32 * reg,u32 * shift,u32 * mask) sunxi_pconf_reg() argument
588 u32 reg, shift, mask, val; sunxi_pconf_get() local
654 u32 arg, reg, shift, mask, val; sunxi_pconf_set() local
810 sunxi_pmx_get_func_name(struct pinctrl_dev * pctldev,unsigned function) sunxi_pmx_get_func_name() argument
818 sunxi_pmx_get_func_groups(struct pinctrl_dev * pctldev,unsigned function,const char * const ** groups,unsigned * const num_groups) sunxi_pmx_get_func_groups() argument
835 u32 reg, shift, mask; sunxi_pmx_set() local
865 sunxi_pmx_set_mux(struct pinctrl_dev * pctldev,unsigned function,unsigned group) sunxi_pmx_set_mux() argument
989 u32 reg, shift, mask; sunxi_pinctrl_gpio_get_direction() local
1022 u32 reg, shift, mask, val; sunxi_pinctrl_gpio_get() local
1042 u32 reg, shift, mask; sunxi_pinctrl_gpio_set() local
1125 u32 reg, shift, mask; sunxi_pinctrl_irq_request_resources() local
1667 u32 reg, shift, mask; sunxi_pinctrl_init_with_flags() local
[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 …]
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_lan_hmc.c1 // 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 Dmanage.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 1992, 1998-2006 Linus Torvalds, Ingo Molnar
4 * Copyright (C) 2005-2006 Thomas Gleixner
43 irq_work_sync(&desc->redirect.work); in synchronize_irqwork()
61 while (irqd_irq_inprogress(&desc->irq_data)) in __synchronize_hardirq()
64 /* Ok, that indicated we're done: double-check carefully. */ in __synchronize_hardirq()
65 guard(raw_spinlock_irqsave)(&desc->lock); in __synchronize_hardirq()
66 inprogress = irqd_irq_inprogress(&desc->irq_dat in __synchronize_hardirq()
233 irq_do_set_affinity(struct irq_data * data,const struct cpumask * mask,bool force) irq_do_set_affinity() argument
339 irq_set_affinity_deactivated(struct irq_data * data,const struct cpumask * mask) irq_set_affinity_deactivated() argument
377 irq_set_affinity_locked(struct irq_data * data,const struct cpumask * mask,bool force) irq_set_affinity_locked() argument
463 __irq_set_affinity(unsigned int irq,const struct cpumask * mask,bool force) __irq_set_affinity() argument
599 static struct cpumask mask; irq_setup_affinity() local
1025 cpumask_var_t mask; irq_thread_check_affinity() local
[all...]
/linux/drivers/pci/
H A Dirq.c1 // 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 …]
/linux/drivers/mfd/
H A Ducb1x00-core.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/drivers/mfd/ucb1x00-core.c
11 * to be used on other non-MCP-enabled hardware platforms.
36 * ucb1x00_io_set_dir - set IO direction
47 * before using this function.
49 * This function takes a spinlock, disabling interrupts.
55 spin_lock_irqsave(&ucb->io_lock, flags); in ucb1x00_io_set_dir()
56 ucb->io_dir |= out; in ucb1x00_io_set_dir()
57 ucb->io_dir &= ~in; in ucb1x00_io_set_dir()
59 ucb1x00_reg_write(ucb, UCB_IO_DIR, ucb->io_dir); in ucb1x00_io_set_dir()
[all …]

12345678910>>...52