| /linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
| H A D | en_tc_tracepoint.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 7 void put_ids_to_array(int *ids, in put_ids_to_array() argument 9 unsigned int num) in put_ids_to_array() argument 13 for (i = 0; i < num; i++) in put_ids_to_array() 14 ids[i] = entries[i].id; in put_ids_to_array() 43 int *ids, in parse_action() argument 44 unsigned int num) in parse_action() argument 49 for (i = 0; i < num; i++) { in parse_action() 50 if (ids[i] < NUM_FLOW_ACTIONS) in parse_action() 51 trace_seq_printf(p, "%s ", FLOWACT2STR[ids[i]]); in parse_action()
|
| /linux/drivers/mmc/core/ |
| H A D | sdio_bus.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 43 sdio_config_attr(class, "0x%02x\n", func->class); 44 sdio_config_attr(vendor, "0x%04x\n", func->vendor); 45 sdio_config_attr(device, "0x%04x\n", func->device); 46 sdio_config_attr(revision, "%u.%u\n", func->major_rev, func->minor_rev); 47 sdio_config_attr(modalias, "sdio:c%02Xv%04Xd%04X\n", func->class, func->vendor, func->device); 49 #define sdio_info_attr(num) \ argument 50 static ssize_t info##num##_show(struct device *dev, struct device_attribute *attr, char *buf) \ 54 if (num > func->num_info) \ 55 return -ENODATA; \ [all …]
|
| /linux/drivers/usb/misc/ |
| H A D | usb-ljca.c | 1 // SPDX-License-Identifier: GPL-2.0-only 29 (LJCA_MAX_PACKET_SIZE - sizeof(struct ljca_msg)) 77 u8 num; member 78 struct ljca_i2c_ctr_info info[] __counted_by(num); 88 u8 num; member 89 struct ljca_spi_ctr_info info[] __counted_by(num); 107 * struct ljca_adapter - represent a ljca adapter 161 const struct acpi_device_id *ids; member 167 * ACPI hardware IDs for LJCA client devices. 169 * [1] Some BIOS implementations use these IDs for denoting LJCA client devices [all …]
|
| /linux/tools/perf/util/ |
| H A D | expr.y | 12 #include "expr-bison.h" 18 %parse-param { double *final_val } 19 %parse-param { struct expr_parse_ctx *ctx } 20 %parse-param { bool compute_ids } 21 %parse-param {void *scanner} 22 %lex-param {void* scanner} 25 double num; 27 struct ids { 29 * When creating ids, holds the working set of event ids [all...] |
| H A D | bpf-filter.c | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 * To support non-root users, the filters map can be loaded and pinned in the BPF 16 * filesystem by root (perf record --setup-filter pin). Then each user will get 18 * BPF program will find the filter using (task-id, event-id) as a key. 24 * event->i 239 int num = 0, alloced = 32; destroy_event_hash() local 240 u64 *ids = calloc(alloced, sizeof(*ids)); destroy_event_hash() local [all...] |
| /linux/drivers/iommu/ |
| H A D | msm_iommu.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved. 25 /* Maximum number of Machine IDs that we are allowing to be mapped to the same 37 * struct msm_iommu_dev - a single IOMMU hardware instance 64 * struct msm_iommu_ctx_dev - an IOMMU context bank instance 66 * num Index of this context bank within the hardware 67 * mids List of Machine IDs that are to be mapped into this context 68 * bank, terminated by -1. The MID is a set of signals on the 76 int num; member
|
| /linux/drivers/pnp/pnpacpi/ |
| H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * pnpacpi -- PnP ACPI driver 17 static int num; variable 20 * Compatible Device IDs 44 pnp_dbg(&dev->dev, "get resources\n"); in pnpacpi_get_resources() 54 pnp_dbg(&dev->dev, "set resources\n"); in pnpacpi_set_resources() 56 acpi_dev = ACPI_COMPANION(&dev->dev); in pnpacpi_set_resources() 58 dev_dbg(&dev->dev, "ACPI device not found in %s!\n", __func__); in pnpacpi_set_resources() 59 return -ENODEV; in pnpacpi_set_resources() 62 if (WARN_ON_ONCE(acpi_dev != dev->data)) in pnpacpi_set_resources() [all …]
|
| /linux/include/linux/crush/ |
| H A D | crush.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 * CRUSH is a pseudo-random data distribution algorithm that 20 * https://www.ssrc.ucsc.edu/Papers/weil-sc06.pdf 39 * CRUSH uses user-defined "rules" to describe how inputs should be 53 CRUSH_RULE_CHOOSE_FIRSTN = 2, /* arg1 = num items to pick */ 69 * for specifying choose num (arg1) relative to the max parameter 73 #define CRUSH_CHOOSE_N_MINUS(x) (-(x)) 106 * ------------------------------------------------ 133 __u16 type; /* non-zero; type=0 is reserved for devices */ 136 __u32 weight; /* 16-bit fixed point */ [all …]
|
| /linux/sound/soc/meson/ |
| H A D | aiu.c | 1 // SPDX-License-Identifier: GPL-2.0 13 #include <sound/soc-dai.h> 15 #include <dt-bindings/sound/meson-aiu.h> 17 #include "aiu-fifo.h" 61 if (args->args_count != 2) in aiu_of_xlate_dai_name() 62 return -EINVAL; in aiu_of_xlate_dai_name() 64 if (args->arg in aiu_of_xlate_dai_name() 176 aiu_clk_bulk_get(struct device * dev,const char * const * ids,unsigned int num,struct aiu_interface * interface) aiu_clk_bulk_get() argument 177 aiu_clk_bulk_get(struct device * dev,const char * const * ids,unsigned int num,struct aiu_interface * interface) aiu_clk_bulk_get() argument [all...] |
| /linux/tools/lib/bpf/ |
| H A D | btf_relocate.c | 1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) 25 #define qsort(base, num, sz, cmp) sort(base, num, sz, cmp, NULL) argument 55 #define BTF_IS_EMBEDDED ((__u32)-1) 68 struct btf_type *t = btf_type_by_id(r->btf, i); in btf_relocate_rewrite_type_id() 78 *id = r->id_map[*id]; in btf_relocate_rewrite_type_id() 83 * types are named. If strings match, and size is non-zero for both elements 90 int name_diff = strcmp(ni1->name, ni2->name); in cmp_btf_name_size() 92 if (!name_diff && ni1->needs_size && ni2->needs_size) in cmp_btf_name_size() 93 return ni2->size - ni1->size; in cmp_btf_name_size() 107 int high = nelems - 1; in search_btf_name_size() [all …]
|
| /linux/fs/squashfs/ |
| H A D | super.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Squashfs - a compressed read only filesystem for Linux 13 * in-memory structures at mount time, and all the VFS glue code to register 76 opts->thread_ops = &squashfs_decompressor_single; in squashfs_parse_param_threads_str() 80 opts->thread_ops = &squashfs_decompressor_multi; in squashfs_parse_param_threads_str() 84 opts->thread_ops = &squashfs_decompressor_percpu; in squashfs_parse_param_threads_str() 88 return -EINVAL; in squashfs_parse_param_threads_str() 95 unsigned long num; in squashfs_parse_param_threads_num() local 97 ret = kstrtoul(str, 0, &num); in squashfs_parse_param_threads_num() 99 return -EINVAL; in squashfs_parse_param_threads_num() [all …]
|
| /linux/drivers/net/ethernet/intel/idpf/ |
| H A D | idpf_virtchnl.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 * idpf_vid_to_vport - Translate vport id to vport pointer 26 if (adapter->vport_ids[i] == v_id) in idpf_vid_to_vport() 27 return adapter->vports[i]; in idpf_vid_to_vport() 33 * idpf_handle_event_link - Handle link event message 43 vport = idpf_vid_to_vport(adapter, le32_to_cpu(v2e->vport_id)); in idpf_handle_event_link() 45 dev_err_ratelimited(&adapter->pdev->dev, "Failed to find vport_id %d for link event\n", in idpf_handle_event_link() 46 v2e->vport_id); in idpf_handle_event_link() 49 np = netdev_priv(vport->netdev); in idpf_handle_event_link() 51 np->link_speed_mbps = le32_to_cpu(v2e->link_speed); in idpf_handle_event_link() [all …]
|
| /linux/arch/parisc/kernel/ |
| H A D | drivers.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright (c) 2001-2023 Helge Deller <deller@gmx.de> 9 * Copyright (c) 2004-2005 Thibaut VARENE <varenet@parisc-linux.org> 16 * - 715/Mirage device paths have a dummy device between Lasi and its children 17 * - The EISA adapter may show up as a sibling or child of Wax 18 * - Dino has an optionally functional serial port. If firmware enables it, 21 * - Dino has both parisc and pci devices as children 22 * - parisc devices are discovered in a random order, including children 33 #include <linux/dma-map-ops.h> 37 #include <asm/parisc-device.h> [all …]
|
| /linux/drivers/scsi/bnx2i/ |
| H A D | bnx2i.h | 3 * Copyright (c) 2006 - 2013 Broadcom Corporation 14 * Maintained by: QLogic-Storage-Upstream@qlogic.com 60 #define ISCSI_MAX_CMDS_PER_HBA_5708 (28 * (ISCSI_MAX_CMDS_PER_SESS - 1)) 61 #define ISCSI_MAX_CMDS_PER_HBA_5709 (128 * (ISCSI_MAX_CMDS_PER_SESS - 1)) 62 #define ISCSI_MAX_CMDS_PER_HBA_57710 (256 * (ISCSI_MAX_CMDS_PER_SESS - 1)) 129 readl(__hba->regview + offset) 131 writel(val, __hba->regview + offset) 136 spin_lock_bh(&__hba->stat_lock); \ 137 dst->field##_lo = __hba->stats.field##_lo; \ 138 dst->field##_hi = __hba->stats.field##_hi; \ [all …]
|
| /linux/arch/um/drivers/ |
| H A D | virtio_uml.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Virtio vhost-user driver 7 * This driver allows virtio devices to be used over a vhost-user socket. 14 * <socket> := vhost-user socket path to connect 21 * Based on Virtio MMIO driver by Pawel Moll, copyright 2011-2014, ARM Ltd. 31 #include <linux/time-internal.h> 32 #include <linux/virtio-uml.h> 33 #include <shared/as-layout.h> 78 #define vu_err(vu_dev, ...) dev_err(&(vu_dev)->pdev->dev, ##__VA_ARGS__) 80 /* Vhost-user protocol */ [all …]
|
| /linux/drivers/clk/mediatek/ |
| H A D | clk-mtk.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 10 #include <linux/clk-provider.h> 28 * We need the clock IDs to start from zero but to maintain devicetree 60 int mtk_clk_register_fixed_clks(const struct mtk_fixed_clk *clks, int num, 62 void mtk_clk_unregister_fixed_clks(const struct mtk_fixed_clk *clks, int num, 86 int mtk_clk_register_factors(const struct mtk_fixed_factor *clks, int num, 88 void mtk_clk_unregister_factors(const struct mtk_fixed_factor *clks, int num, 123 .divider_shift = -1, \ 157 .gate_shift = -1, \ 158 .divider_shift = -1, \ [all …]
|
| /linux/rust/kernel/list/ |
| H A D | arc.rs | 1 // SPDX-License-Identifier: GPL-2.0 68 fn try_new_list_arc(&self) -> bool; in try_new_list_arc() 87 (impl$({$($generics:tt)*})? ListArcSafe<$num:tt> for $t:ty { untracked; } $($rest:tt)*) => { 88 impl$(<$($generics)*>)? $crate::list::ListArcSafe<$num> for $t { 95 (impl$({$($generics:tt)*})? ListArcSafe<$num:tt> for $t:ty { 98 impl$(<$($generics)*>)? $crate::list::ListArcSafe<$num> for $t { 108 <$fty as $crate::list::ListArcSafe<$num>>::on_create_list_arc_from_unique(field) 114 unsafe { <$fty as $crate::list::ListArcSafe<$num>> [all...] |
| /linux/include/linux/cdx/ |
| H A D | cdx_bus.h | 1 /* SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2022-2023, Advanced Micro Devices, Inc. 14 #include <linux/device-id/cdx.h> 57 * CDX_DEVICE - macro used to describe a specific CDX device 70 * CDX_DEVICE_DRIVER_OVERRIDE - macro used to describe a CDX device with 85 * struct cdx_ops - Callbacks supported by CDX controller. 118 * struct cdx_device - CDX device object 172 #define cdx_resource_start(dev, num) ((dev)->res[(num)].start) argument 173 #define cdx_resource_end(dev, num) ((dev)->res[(num)].end) argument 174 #define cdx_resource_flags(dev, num) ((dev)->res[(num)].flags) argument [all …]
|
| /linux/arch/arm/boot/dts/nxp/mxs/ |
| H A D | imx28-amarula-rmm.dts | 1 // SPDX-License-Identifier: GPL-2.0 6 /dts-v1/; 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/interrupt-controller/irq.h> 13 compatible = "amarula,imx28-rmm", "fsl,imx28"; 22 compatible = "pwm-backlight"; 24 brightness-levels = <0 255>; 25 num-interpolated-steps = <255>; 26 default-brightness-level = <255>; 27 power-supply = <®_5v>; [all …]
|
| /linux/drivers/message/fusion/ |
| H A D | mptctl.h | 8 * Copyright (c) 1999-2008 LSI Corporation 9 * (mailto:DL-MPTFusionLinux@lsi.com) 12 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 26 LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, 45 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 50 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 54 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ 93 * (as the app. will not use 8-byte pointers). 117 * iocnum - must be defined. 118 * port - must be defined for all IOCTL commands other than MPTIOCINFO [all …]
|
| /linux/arch/x86/kernel/cpu/ |
| H A D | topology.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * The APIC IDs describe the system topology in multiple domain levels. 11 * The root space contains the package (socket) IDs. 50 u32 cpuid_to_apicid[] __ro_after_init = { [0 ... NR_CPUS - 1] = BAD_APICID, }; 80 if (!(apicid & (__max_threads_per_core - 1))) in cpu_mark_primary_thread() 92 return apicid & (UINT_MAX << x86_topo_system.dom_shifts[dom - 1]); in topo_apicid() 104 return -ENODEV; in topo_lookup_cpuid() 248 * topology_register_apic - Register an APIC in early topology maps 256 pr_err_once("APIC ID %x exceeds kernel limit of: %x\n", apic_id, MAX_LOCAL_APIC - 1); in topology_register_apic() 277 * topology_register_boot_apic - Register the boot CPU APIC [all …]
|
| /linux/drivers/platform/surface/aggregator/ |
| H A D | controller.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 5 * Copyright (C) 2019-2022 Maximilian Luz <luzmaximilian@gmail.com> 28 /* -- Safe counters. -------------------------------------------------------- */ 31 * struct ssh_seq_counter - Safe counter for SSH sequence IDs. 39 * struct ssh_rqid_counter - Safe counter for SSH request IDs. 47 /* -- Event/notification system. -------------------------------------------- */ 50 * struct ssam_nf_head - Notifier head for SSAM events. 52 * @head: List-head for notifier blocks registered under this head. 60 * struct ssam_nf - Notifier callback- and activation-registry for SSAM events. 61 * @lock: Lock guarding (de-)registration of notifier blocks. Note: This [all …]
|
| /linux/include/xen/ |
| H A D | xenbus.h | 110 const char *name; /* defaults to ids[0].devicetype */ 111 const struct xenbus_device_id *ids; member 153 const char *dir, const char *node, unsigned int *num); 164 /* Single read and scanf: returns -errno or num scanned if > 0. */ 173 /* Single printf and write: returns -errno or 0. */ 178 /* Generic read function: NULL-terminated triples of name, 179 * sprintf-style type string, and pointer. Returns 0 or errno.*/ 198 str = ERR_PTR(-ERANGE); \ 203 #define XENBUS_EXIST_ERR(err) ((err) == -ENOENT || (err) == -ERANGE)
|
| /linux/sound/soc/codecs/ |
| H A D | cs4234.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // cs4234.c -- ALSA SoC CS4234 driver 43 /* -89.92dB to +6.02dB with step of 0.38dB */ 44 static const DECLARE_TLV_DB_SCALE(dac_tlv, -8992, 38, 0); 95 regmap_read(cs4234->regmap, CS4234_ADC_CTRL2, &val); in cs4234_dac14_grp_delay_put() 97 ret = -EBUSY; in cs4234_dac14_grp_delay_put() 98 dev_err(component->dev, "Can't change group delay while ADC are ON\n"); in cs4234_dac14_grp_delay_put() 102 regmap_read(cs4234->regmap, CS4234_DAC_CTRL4, &val); in cs4234_dac14_grp_delay_put() 104 ret = -EBUSY; in cs4234_dac14_grp_delay_put() 105 dev_err(component->dev, "Can't change group delay while DAC are ON\n"); in cs4234_dac14_grp_delay_put() [all …]
|
| /linux/tools/include/uapi/linux/ |
| H A D | vhost.h | |