Home
last modified time | relevance | path

Searched +full:int +full:- +full:map +full:- +full:mask (Results 1 – 25 of 1036) sorted by relevance

12345678910>>...42

/linux/tools/perf/util/
H A Dmmap.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2011-2017, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com>
5 * Parts came from evlist.c builtin-{top,stat,record}.c, see those files for further
29 void mmap_cpu_mask__scnprintf(struct mmap_cpu_mask *mask, const char *tag) in mmap_cpu_mask__scnprintf() argument
34 len = bitmap_scnprintf(mask->bits, mask in mmap_cpu_mask__scnprintf()
39 mmap__mmap_len(struct mmap * map) mmap__mmap_len() argument
71 perf_mmap__aio_enabled(struct mmap * map) perf_mmap__aio_enabled() argument
77 perf_mmap__aio_alloc(struct mmap * map,int idx) perf_mmap__aio_alloc() argument
89 perf_mmap__aio_free(struct mmap * map,int idx) perf_mmap__aio_free() argument
97 perf_mmap__aio_bind(struct mmap * map,int idx,struct perf_cpu cpu,int affinity) perf_mmap__aio_bind() argument
126 perf_mmap__aio_alloc(struct mmap * map,int idx) perf_mmap__aio_alloc() argument
135 perf_mmap__aio_free(struct mmap * map,int idx) perf_mmap__aio_free() argument
147 perf_mmap__aio_mmap(struct mmap * map,struct mmap_params * mp) perf_mmap__aio_mmap() argument
201 perf_mmap__aio_munmap(struct mmap * map) perf_mmap__aio_munmap() argument
229 mmap__munmap(struct mmap * map) mmap__munmap() argument
243 build_node_mask(int node,struct mmap_cpu_mask * mask) build_node_mask() argument
261 perf_mmap__setup_affinity_mask(struct mmap * map,struct mmap_params * mp) perf_mmap__setup_affinity_mask() argument
276 mmap__mmap(struct mmap * map,struct mmap_params * mp,int fd,struct perf_cpu cpu) mmap__mmap() argument
320 perf_mmap__push(struct mmap * md,void * to,int push (struct mmap * map,void * to,void * buf,size_t size)) perf_mmap__push() argument
[all...]
H A Dcpumap.c1 // SPDX-License-Identifier: GPL-2.0
19 static int max_node_num;
24 static int *cpunode_map;
26 bool perf_record_cpu_map_data__test_bit(int i, in perf_record_cpu_map_data__test_bit()
29 int bit_word32 = i / 32; in perf_record_cpu_map_data__test_bit()
31 int bit_word64 = i / 64; in perf_record_cpu_map_data__test_bit()
34 return (data->mask32_data.long_size == 4) in perf_record_cpu_map_data__test_bit()
35 ? (bit_word32 < data->mask32_dat in perf_record_cpu_map_data__test_bit()
67 struct perf_cpu_map *map; cpu_map__from_entries() local
93 struct perf_cpu_map *map; cpu_map__from_mask() local
118 struct perf_cpu_map *map; cpu_map__from_range() local
151 cpu_map__fprintf(struct perf_cpu_map * map,FILE * fp) cpu_map__fprintf() argument
600 cpu_map__snprint(struct perf_cpu_map * map,char * buf,size_t size) cpu_map__snprint() argument
654 cpu_map__snprint_mask(struct perf_cpu_map * map,char * buf,size_t size) cpu_map__snprint_mask() argument
[all...]
/linux/tools/lib/perf/
H A Dmmap.c1 // SPDX-License-Identifier: GPL-2.0
19 void perf_mmap__init(struct perf_mmap *map, struct perf_mmap *prev, in perf_mmap__init() argument
23 map->fd = -1; in perf_mmap__init()
24 map->overwrite = overwrite; in perf_mmap__init()
25 map->unmap_cb = unmap_cb; in perf_mmap__init()
26 refcount_set(&map->refcnt, 0); in perf_mmap__init()
28 prev->next = map; in perf_mmap__init()
31 size_t perf_mmap__mmap_len(struct perf_mmap *map) in perf_mmap__mmap_len() argument
33 return map->mask + 1 + page_size; in perf_mmap__mmap_len()
36 int perf_mmap__mmap(struct perf_mmap *map, struct perf_mmap_param *mp, in perf_mmap__mmap() argument
[all …]
/linux/include/linux/
H A Dregmap.h1 /* SPDX-License-Identifier: GPL-2.0-only */
6 * Register map access API
54 #define REGMAP_UPSHIFT(s) (-(s))
73 * struct reg_default - Default value for a register.
82 unsigned int reg;
83 unsigned int def;
87 * struct reg_sequence - An individual write from a sequence of writes.
97 unsigned int reg;
98 unsigned int def;
99 unsigned int delay_us;
[all …]
/linux/drivers/irqchip/
H A Dirq-ingenic-tcu.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/mfd/ingenic-tcu.h>
17 struct regmap *map; member
20 unsigned int nb_parent_irqs;
26 struct irq_chip *irq_chip = irq_data_get_irq_chip(&desc->irq_data); in ingenic_tcu_intc_cascade()
29 struct regmap *map = gc->private; in ingenic_tcu_intc_cascade() local
32 unsigned int i; in ingenic_tcu_intc_cascade()
34 regmap_read(map, TCU_REG_TFR, &irq_reg); in ingenic_tcu_intc_cascade()
35 regmap_read(map, TCU_REG_TMR, &irq_mask); in ingenic_tcu_intc_cascade()
52 struct regmap *map = gc->private; in ingenic_tcu_gc_unmask_enable_reg() local
[all …]
H A Dirq-ls-extirq.c1 // SPDX-License-Identifier: GPL-2.0
3 #define pr_fmt(fmt) "irq-ls-extirq: " fmt
12 #include <dt-bindings/interrupt-controller/arm-gic.h>
23 struct irq_fwspec map[MAXIRQ]; member
26 static void ls_extirq_intpcr_rmw(struct ls_extirq_data *priv, u32 mask, in ls_extirq_intpcr_rmw() argument
33 * IRQ descriptors, making sure the read-modify-write is atomic. in ls_extirq_intpcr_rmw()
35 raw_spin_lock(&priv->lock); in ls_extirq_intpcr_rmw()
37 if (priv->big_endian) in ls_extirq_intpcr_rmw()
38 intpcr = ioread32be(priv->intpcr); in ls_extirq_intpcr_rmw()
40 intpcr = ioread32(priv->intpcr); in ls_extirq_intpcr_rmw()
[all …]
H A Dirq-hip04.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2002-2014 ARM Limited.
6 * Copyright (c) 2013-2014 HiSilicon Ltd.
7 * Copyright (c) 2013-2014 Linaro Ltd.
20 * Note that IRQs 0-31 are special - they are local to each CPU.
22 * registers are banked per-cpu for these sources.
42 #include <linux/irqchip/arm-gic.h>
48 #include "irq-gic-common.h"
56 unsigned int nr_irqs;
74 return hip04_data->dist_base; in hip04_dist_base()
[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
62 * of Internal Priority Map (IPM) sources.
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.
[all …]
/linux/sound/soc/codecs/
H A Dhdmi-codec.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (C) 2015 Texas Instruments Incorporated - https://www.ti.com/
16 #include <sound/hdmi-codec.h>
22 #define HDMI_CODEC_CHMAP_IDX_UNKNOWN -1
53 const int ca_id;
54 unsigned int n_ch;
55 unsigned long mask; member
61 .map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR } },
65 /* Channel maps for multi-channel playbacks, up to 8 n_ch */
68 .map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR } },
[all …]
/linux/drivers/net/wireless/realtek/rtw88/
H A Drtw8723x.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
5 * Copyright(c) 2018-2019 Realtek Corporation
16 [DESC_RATE1M] = { .addr = 0xe08, .mask = 0x0000ff00 },
17 [DESC_RATE2M] = { .addr = 0x86c, .mask = 0x0000ff00 },
18 [DESC_RATE5_5M] = { .addr = 0x86c, .mask = 0x00ff0000 },
19 [DESC_RATE11M] = { .addr = 0x86c, .mask = 0xff000000 },
20 [DESC_RATE6M] = { .addr = 0xe00, .mask = 0x000000ff },
21 [DESC_RATE9M] = { .addr = 0xe00, .mask = 0x0000ff00 },
22 [DESC_RATE12M] = { .addr = 0xe00, .mask = 0x00ff0000 },
23 [DESC_RATE18M] = { .addr = 0xe00, .mask = 0xff000000 },
[all …]
/linux/drivers/leds/
H A Dleds-syscon.c1 // SPDX-License-Identifier: GPL-2.0-or-later
19 * struct syscon_led - state container for syscon based LEDs
21 * @map: regmap to access the syscon device backing this LED
23 * @mask: the bit in the register corresponding to the LED
28 struct regmap *map; member
30 u32 mask; member
40 int ret; in syscon_led_set()
44 sled->state = false; in syscon_led_set()
46 val = sled->mask; in syscon_led_set()
47 sled->state = true; in syscon_led_set()
[all …]
/linux/drivers/rtc/
H A Drtc-88pm80x.c1 // SPDX-License-Identifier: GPL-2.0
40 struct regmap *map; member
44 int irq;
47 static irqreturn_t rtc_update_handler(int irq, void *data) in rtc_update_handler()
50 int mask; in rtc_update_handler() local
52 mask = PM800_ALARM | PM800_ALARM_WAKEUP; in rtc_update_handler()
53 regmap_update_bits(info->map, PM800_RTC_CONTROL, mask | PM800_ALARM1_EN, in rtc_update_handler()
54 mask); in rtc_update_handler()
55 rtc_update_irq(info->rtc_dev, 1, RTC_AF); in rtc_update_handler()
59 static int pm80x_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled) in pm80x_rtc_alarm_irq_enable()
[all …]
H A Drtc-max77686.c1 // SPDX-License-Identifier: GPL-2.0+
7 // based on rtc-max8997.c
16 #include <linux/mfd/max77686-private.h>
23 #define MAX77686_INVALID_I2C_ADDR (-1)
26 #define MAX77686_INVALID_REG (-1)
63 * struct max77686_rtc_driver_data - model-specific configuration
65 * @mask: Mask used to read RTC registers value
66 * @map: Registers offset to I2C addresses map
76 u8 mask; member
77 const unsigned int *map; member
[all …]
/linux/drivers/power/reset/
H A Dsyscon-poweroff.c1 // SPDX-License-Identifier: GPL-2.0-or-later
20 struct regmap *map; member
23 u32 mask; member
26 static int syscon_poweroff(struct sys_off_data *off_data) in syscon_poweroff()
28 struct syscon_poweroff_data *data = off_data->cb_data; in syscon_poweroff()
31 regmap_update_bits(data->map, data->offset, data->mask, data->value); in syscon_poweroff()
40 static int syscon_poweroff_probe(struct platform_device *pdev) in syscon_poweroff_probe()
42 struct device *dev = &pdev->dev; in syscon_poweroff_probe()
44 int mask_err, value_err; in syscon_poweroff_probe()
48 return -ENOMEM; in syscon_poweroff_probe()
[all …]
H A Dsyscon-reboot.c1 // SPDX-License-Identifier: GPL-2.0-or-later
19 u32 mask; member
30 struct regmap *map; member
38 static int syscon_restart_handle(struct notifier_block *this, in syscon_restart_handle()
46 if (ctx->rd) { in syscon_restart_handle()
47 if (mode < ARRAY_SIZE(ctx->rd->mode_bits) && in syscon_restart_handle()
48 ctx->rd->mode_bits[mode].valid) in syscon_restart_handle()
49 mode_bits = &ctx->rd->mode_bits[mode]; in syscon_restart_handle()
51 mode_bits = &ctx->rd->catchall; in syscon_restart_handle()
53 mode_bits = &ctx->catchall; in syscon_restart_handle()
[all …]
/linux/drivers/thermal/qcom/
H A Dtsens-8960.c1 // SPDX-License-Identifier: GPL-2.0
41 #define S5_STATUS_OFF 0x3664 /* Sensors 5-10 found on apq8064/msm8960 */
48 /* Original slope - 350 to compensate mC to C inaccuracy */
55 static int suspend_8960(struct tsens_priv *priv) in suspend_8960()
57 int ret; in suspend_8960()
58 unsigned int mask; in suspend_8960() local
59 struct regmap *map = priv->tm_map; in suspend_8960() local
61 ret = regmap_read(map, THRESHOLD_ADDR, &priv->ctx.threshold); in suspend_8960()
65 ret = regmap_read(map, CNTL_ADDR, &priv->ctx.control); in suspend_8960()
69 if (priv->num_sensors > 1) in suspend_8960()
[all …]
/linux/drivers/clk/qcom/
H A Dreset.c1 // SPDX-License-Identifier: GPL-2.0-only
9 #include <linux/reset-controller.h>
14 static int qcom_reset(struct reset_controller_dev *rcdev, unsigned long id) in qcom_reset()
18 rcdev->ops->assert(rcdev, id); in qcom_reset()
19 fsleep(rst->reset_map[id].udelay ?: 1); /* use 1 us as default */ in qcom_reset()
21 rcdev->ops->deassert(rcdev, id); in qcom_reset()
25 static int qcom_reset_set_assert(struct reset_controller_dev *rcdev, in qcom_reset_set_assert()
29 const struct qcom_reset_map *map; in qcom_reset_set_assert() local
30 u32 mask; in qcom_reset_set_assert() local
33 map = &rst->reset_map[id]; in qcom_reset_set_assert()
[all …]
/linux/drivers/base/regmap/
H A Dregmap-irq.c1 // SPDX-License-Identifier: GPL-2.0
27 struct regmap *map; member
30 int irq_base;
33 int irq;
34 int wake_count;
37 unsigned int *main_status_buf;
38 unsigned int *status_buf;
39 unsigned int *prev_status_buf;
40 unsigned int *mask_buf;
41 unsigned int *mask_buf_def;
[all …]
/linux/drivers/char/ipmi/
H A Dkcs_bmc_aspeed.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2015-2018, Intel Corporation.
6 #define pr_fmt(fmt) "aspeed-kcs-bmc: " fmt
27 #define DEVICE_NAME "ast-kcs-bmc"
37 * IDyIRQX Use the specified 4-bit SerIRQ for LPC channel y
116 struct regmap *map; member
120 int id;
139 int rc; in aspeed_kcs_inb()
141 rc = regmap_read(priv->map, reg, &val); in aspeed_kcs_inb()
150 int rc; in aspeed_kcs_outb()
[all …]
/linux/drivers/pinctrl/starfive/
H A Dpinctrl-starfive-jh7110.c1 // SPDX-License-Identifier: GPL-2.0
27 #include <dt-bindings/pinctrl/starfive,jh7110-pinctrl.h>
30 #include "../pinctrl-utils.h"
33 #include "pinctrl-starfive-jh7110.h"
52 * | 31 - 24 | 23 - 16 | 15 - 10 | 9 - 8 | 7 - 0 |
55 static unsigned int jh7110_pinmux_din(u32 v) in jh7110_pinmux_din()
75 static unsigned int jh7110_pinmux_pin(u32 v) in jh7110_pinmux_pin()
97 struct seq_file *s, unsigned int pin) in jh7110_pin_dbg_show()
100 const struct jh7110_pinctrl_soc_info *info = sfp->info; in jh7110_pin_dbg_show()
102 seq_printf(s, "%s", dev_name(pctldev->dev)); in jh7110_pin_dbg_show()
[all …]
/linux/drivers/gpu/host1x/
H A Djob.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2010-2015, NVIDIA Corporation.
8 #include <linux/dma-mapping.h>
31 unsigned int num_unpins = num_relocs; in host1x_job_alloc()
55 job->enable_firewall = enable_firewall; in host1x_job_alloc()
57 kref_init(&job->ref); in host1x_job_alloc()
58 job->channel = ch; in host1x_job_alloc()
62 job->relocs = num_relocs ? mem : NULL; in host1x_job_alloc()
64 job->unpins = num_unpins ? mem : NULL; in host1x_job_alloc()
66 job->cmds = num_cmdbufs ? mem : NULL; in host1x_job_alloc()
[all …]
/linux/drivers/pinctrl/nxp/
H A Dpinctrl-s32cc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright 2017-2022,2024 NXP
7 * Copyright 2015-2016 Freescale Semiconductor, Inc.
28 #include "../pinctrl-utils.h"
29 #include "pinctrl-s32.h"
64 struct regmap *map; member
76 unsigned int pin_id;
77 unsigned int config;
85 unsigned int *pads;
110 s32_get_region(struct pinctrl_dev *pctldev, unsigned int pin) in s32_get_region()
[all …]
/linux/drivers/ras/amd/atl/
H A Dmap.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * map.c : Functions to read and decode DRAM address maps
15 static int df2_get_intlv_mode(struct addr_ctx *ctx) in df2_get_intlv_mode()
17 ctx->map.intlv_mode = FIELD_GET(DF2_INTLV_NUM_CHAN, ctx->map.base); in df2_get_intlv_mode()
19 if (ctx->map.intlv_mode == 8) in df2_get_intlv_mode()
20 ctx->map.intlv_mode = DF2_2CHAN_HASH; in df2_get_intlv_mode()
22 if (ctx->map.intlv_mode != NONE && in df2_get_intlv_mode()
23 ctx->map.intlv_mode != NOHASH_2CHAN && in df2_get_intlv_mode()
24 ctx->map.intlv_mode != DF2_2CHAN_HASH) in df2_get_intlv_mode()
25 return -EINVAL; in df2_get_intlv_mode()
[all …]
/linux/drivers/pcmcia/
H A Dpd6729.c2 * Driver for the Cirrus PD6729 PCI-PCMCIA bridge.
28 MODULE_DESCRIPTION("Driver for the Cirrus PD6729 PCI-PCMCIA bridge");
29 MODULE_AUTHOR("Jun Komuro <komurojun-mbn@nifty.com>");
40 #define NO_IRQ ((unsigned int)(0))
51 static int irq_mode = 1; /* 0 = ISA interrupt, 1 = PCI interrupt */
53 module_param(irq_mode, int, 0444);
69 reg += socket->number * 0x40; in indirect_read()
70 port = socket->io_base; in indirect_read()
86 reg = reg + socket->number * 0x40; in indirect_read16()
87 port = socket->io_base; in indirect_read16()
[all …]
/linux/lib/
H A Dsbitmap.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (C) 2013-2014 Jens Axboe
12 static int init_alloc_hint(struct sbitmap *sb, gfp_t flags) in init_alloc_hint()
14 unsigned depth = sb->depth; in init_alloc_hint()
16 sb->alloc_hint = alloc_percpu_gfp(unsigned int, flags); in init_alloc_hint()
17 if (!sb->alloc_hint) in init_alloc_hint()
18 return -ENOMEM; in init_alloc_hint()
20 if (depth && !sb->round_robin) { in init_alloc_hint()
21 int i; in init_alloc_hint()
24 *per_cpu_ptr(sb->alloc_hint, i) = get_random_u32_below(depth); in init_alloc_hint()
[all …]

12345678910>>...42