Home
last modified time | relevance | path

Searched +full:comp +full:- +full:int (Results 1 – 25 of 591) sorted by relevance

12345678910>>...24

/linux-6.12.1/drivers/gpu/drm/mediatek/
Dmtk_ddp_comp.h1 /* SPDX-License-Identifier: GPL-2.0-only */
11 #include <linux/soc/mediatek/mtk-cmdq.h>
12 #include <linux/soc/mediatek/mtk-mmsys.h>
13 #include <linux/soc/mediatek/mtk-mutex.h>
52 int (*power_on)(struct device *dev);
54 int (*clk_enable)(struct device *dev);
56 void (*config)(struct device *dev, unsigned int w,
57 unsigned int h, unsigned int vrefresh,
58 unsigned int bpc, struct cmdq_pkt *cmdq_pkt);
67 unsigned int (*supported_rotations)(struct device *dev);
[all …]
Dmtk_crtc.c1 // SPDX-License-Identifier: GPL-2.0-only
7 #include <linux/dma-mapping.h>
11 #include <linux/soc/mediatek/mtk-cmdq.h>
12 #include <linux/soc/mediatek/mtk-mmsys.h>
13 #include <linux/soc/mediatek/mtk-mutex.h>
29 * struct mtk_crtc - MediaTek specific crtc structure.
49 unsigned int layer_nr;
64 unsigned int ddp_comp_nr;
66 unsigned int num_conn_routes;
80 unsigned int pending_width;
[all …]
/linux-6.12.1/drivers/block/zram/
Dzcomp.c1 // SPDX-License-Identifier: GPL-2.0-or-later
46 static void zcomp_strm_free(struct zcomp *comp, struct zcomp_strm *zstrm) in zcomp_strm_free() argument
48 comp->ops->destroy_ctx(&zstrm->ctx); in zcomp_strm_free()
49 vfree(zstrm->buffer); in zcomp_strm_free()
50 zstrm->buffer = NULL; in zcomp_strm_free()
53 static int zcomp_strm_init(struct zcomp *comp, struct zcomp_strm *zstrm) in zcomp_strm_init() argument
55 int ret; in zcomp_strm_init()
57 ret = comp->ops->create_ctx(comp->params, &zstrm->ctx); in zcomp_strm_init()
65 zstrm->buffer = vzalloc(2 * PAGE_SIZE); in zcomp_strm_init()
66 if (!zstrm->buffer) { in zcomp_strm_init()
[all …]
/linux-6.12.1/sound/soc/codecs/
Dwcd-clsh-v2.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
3 // Copyright (c) 2017-2018, Linaro Limited
10 #include "wcd-clsh-v2.h"
13 int state;
14 int mode;
15 int flyback_users;
16 int buck_users;
17 int clsh_users;
18 int codec_version;
[all …]
Dwcd9335.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
3 // Copyright (c) 2017-2018, Linaro Limited
19 #include <sound/soc-dapm.h>
26 #include "wcd-clsh-v2.h"
28 #include <dt-bindings/sound/qcom,wcd9335.h>
99 #define WCD9335_CALCULATE_VOUT_D(req_mv) (((req_mv - 650) * 10) / 25)
102 {"RX INT" #id "_1 MIX1 INP0", "RX0", "SLIM RX0"}, \
103 {"RX INT" #id "_1 MIX1 INP0", "RX1", "SLIM RX1"}, \
104 {"RX INT" #id "_1 MIX1 INP0", "RX2", "SLIM RX2"}, \
[all …]
/linux-6.12.1/drivers/clk/actions/
Dowl-composite.c1 // SPDX-License-Identifier: GPL-2.0+
6 // Author: David Liu <liuwei@actions-semi.com>
11 #include <linux/clk-provider.h>
14 #include "owl-composite.h"
18 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_get_parent() local
20 return owl_mux_helper_get_parent(&comp->common, &comp->mux_hw); in owl_comp_get_parent()
23 static int owl_comp_set_parent(struct clk_hw *hw, u8 index) in owl_comp_set_parent()
25 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_set_parent() local
27 return owl_mux_helper_set_parent(&comp->common, &comp->mux_hw, index); in owl_comp_set_parent()
32 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_disable() local
[all …]
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/lib/
Ddevcom.c1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
39 struct mlx5_devcom_comp *comp; member
49 if (iter->dev == dev) in devcom_dev_exists()
64 devc->dev = dev; in mlx5_devcom_dev_alloc()
65 kref_init(&devc->ref); in mlx5_devcom_dev_alloc()
77 devc = ERR_PTR(-EEXIST); in mlx5_devcom_register_device()
83 devc = ERR_PTR(-ENOMEM); in mlx5_devcom_register_device()
87 list_add_tail(&devc->list, &devcom_dev_list); in mlx5_devcom_register_device()
99 list_del(&devc->list); in mlx5_devcom_dev_release()
107 kref_put(&devc->ref, mlx5_devcom_dev_release); in mlx5_devcom_unregister_device()
[all …]
/linux-6.12.1/drivers/counter/
Dcounter-sysfs.c1 // SPDX-License-Identifier: GPL-2.0
20 #include "counter-sysfs.h"
28 * struct counter_attribute - Counter sysfs attribute
31 * @comp: Counter component callbacks and data
39 struct counter_comp comp; member
48 * struct counter_attribute_group - container for attribute group
62 [COUNTER_FUNCTION_PULSE_DIRECTION] = "pulse-direction",
90 [COUNTER_COUNT_MODE_NON_RECYCLE] = "non-recycle",
91 [COUNTER_COUNT_MODE_MODULO_N] = "modulo-n",
93 [COUNTER_COUNT_MODE_HARDWARE_RETRIGGERABLE_ONESHOT] = "hardware retriggerable one-shot",
[all …]
Dcounter-chrdev.c1 // SPDX-License-Identifier: GPL-2.0
24 #include "counter-chrdev.h"
29 struct counter_comp comp; member
49 #define counter_comp_read_is_set(comp) \ argument
50 (comp.action_read || \
51 comp.device_u8_read || \
52 comp.count_u8_read || \
53 comp.signal_u8_read || \
54 comp.device_u32_read || \
55 comp.count_u32_read || \
[all …]
/linux-6.12.1/sound/soc/intel/avs/
Dtopology.c1 // SPDX-License-Identifier: GPL-2.0-only
12 #include <sound/soc-acpi.h>
13 #include <sound/soc-topology.h>
26 (avs_tplg_vendor_array_at(array, le32_to_cpu((array)->size)))
33 * Returns 0 on success, -ENOENT if not found and error code otherwise.
35 static int
43 u32 tuples_size = le32_to_cpu(tuples->size); in avs_tplg_vendor_array_lookup()
46 return -EINVAL; in avs_tplg_vendor_array_lookup()
48 tuple = tuples->value; in avs_tplg_vendor_array_lookup()
49 if (le32_to_cpu(tuple->token) == token) { in avs_tplg_vendor_array_lookup()
[all …]
/linux-6.12.1/drivers/media/platform/mediatek/mdp/
Dmtk_mdp_comp.c1 // SPDX-License-Identifier: GPL-2.0-only
14 void mtk_mdp_comp_clock_on(struct device *dev, struct mtk_mdp_comp *comp) in mtk_mdp_comp_clock_on() argument
16 int i, err; in mtk_mdp_comp_clock_on()
18 for (i = 0; i < ARRAY_SIZE(comp->clk); i++) { in mtk_mdp_comp_clock_on()
19 if (IS_ERR(comp->clk[i])) in mtk_mdp_comp_clock_on()
21 err = clk_prepare_enable(comp->clk[i]); in mtk_mdp_comp_clock_on()
25 err, comp->type, i); in mtk_mdp_comp_clock_on()
29 void mtk_mdp_comp_clock_off(struct device *dev, struct mtk_mdp_comp *comp) in mtk_mdp_comp_clock_off() argument
31 int i; in mtk_mdp_comp_clock_off()
33 for (i = 0; i < ARRAY_SIZE(comp->clk); i++) { in mtk_mdp_comp_clock_off()
[all …]
Dmtk_mdp_core.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2015-2016 MediaTek Inc.
25 /* MDP debug log level (0-3). 3 shows all the logs. */
26 int mtk_mdp_dbg_level;
29 module_param(mtk_mdp_dbg_level, int, 0644);
33 .compatible = "mediatek,mt8173-mdp-rdma",
36 .compatible = "mediatek,mt8173-mdp-rsz",
39 .compatible = "mediatek,mt8173-mdp-wdma",
42 .compatible = "mediatek,mt8173-mdp-wrot",
49 { .compatible = "mediatek,mt8173-mdp", },
[all …]
/linux-6.12.1/sound/pci/hda/
Dhda_component.c1 // SPDX-License-Identifier: GPL-2.0-or-later
21 struct hda_component *comp; in hda_component_acpi_device_notify() local
22 int i; in hda_component_acpi_device_notify()
24 mutex_lock(&parent->mutex); in hda_component_acpi_device_notify()
25 for (i = 0; i < ARRAY_SIZE(parent->comps); i++) { in hda_component_acpi_device_notify()
26 comp = hda_component_from_index(parent, i); in hda_component_acpi_device_notify()
27 if (comp->dev && comp->acpi_notify) in hda_component_acpi_device_notify()
28 comp->acpi_notify(acpi_device_handle(comp->adev), event, comp->dev); in hda_component_acpi_device_notify()
30 mutex_unlock(&parent->mutex); in hda_component_acpi_device_notify()
34 int hda_component_manager_bind_acpi_notifications(struct hda_codec *cdc, in hda_component_manager_bind_acpi_notifications()
[all …]
/linux-6.12.1/drivers/media/platform/mediatek/mdp3/
Dmtk-mdp3-comp.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Author: Ping-Hsun Wu <ping-hsun.wu@mediatek.com>
11 #include "mtk-mdp3-cfg.h"
12 #include "mtk-mdp3-comp.h"
13 #include "mtk-mdp3-core.h"
14 #include "mtk-mdp3-regs.h"
31 static int p_id;
39 return ctx->comp->mdp_dev->mdp_data->mdp_cfg; in __get_plat_cfg()
47 rdma0 = mdp_cfg_get_id_inner(ctx->comp->mdp_dev, MDP_COMP_RDMA0); in get_comp_flag()
48 rsz1 = mdp_cfg_get_id_inner(ctx->comp->mdp_dev, MDP_COMP_RSZ1); in get_comp_flag()
[all …]
/linux-6.12.1/drivers/net/slip/
Dslhc.c21 * - Initial distribution.
28 * - 01-31-90 initial adaptation (from 1.19)
29 * PPP.05 02-15-90 [ks]
30 * PPP.08 05-02-90 [ks] use PPP protocol field to signal compression
31 * PPP.15 09-90 [ks] improve mbuf handling
32 * PPP.16 11-02 [karn] substantially rewritten to use NOS facilities
34 * - Feb 1991 Bill_Simpson@um.cc.umich.edu
39 * - Jul 1994 Dmitry Gorodchanin
41 * - Oct 1994 Dmitry Gorodchanin
43 * - Jan 1995 Bjorn Ekwall
[all …]
/linux-6.12.1/drivers/most/
Dcore.c1 // SPDX-License-Identifier: GPL-2.0
3 * core.c - Implementation of core module of MOST Linux driver stack
5 * Copyright (C) 2013-2020 Microchip Technology Germany II GmbH & Co. KG
21 #include <linux/dma-mapping.h>
29 static int dummy_num_buffers;
33 struct most_component *comp; member
34 int refs;
35 int num_buffers;
48 int is_starving;
68 int dev_id;
[all …]
Dmost_cdev.c1 // SPDX-License-Identifier: GPL-2.0
3 * cdev.c - Character device component for Mostcore
5 * Copyright (C) 2013-2015 Microchip Technology Germany II GmbH & Co. KG
25 unsigned int major;
28 } comp; variable
38 unsigned int channel_id;
42 int access_ref;
52 return channel_has_mbo(c->iface, c->channel_id, &comp.cc) > 0; in ch_has_mbo()
57 if (!kfifo_peek(&c->fifo, mbo)) { in ch_get_mbo()
58 *mbo = most_get_mbo(c->iface, c->channel_id, &comp.cc); in ch_get_mbo()
[all …]
/linux-6.12.1/drivers/vdpa/pds/
Dcmds.c1 // SPDX-License-Identifier: GPL-2.0-only
16 int pds_vdpa_init_hw(struct pds_vdpa_device *pdsv) in pds_vdpa_init_hw()
18 struct pds_auxiliary_dev *padev = pdsv->vdpa_aux->padev; in pds_vdpa_init_hw()
19 struct device *dev = &padev->aux_dev.dev; in pds_vdpa_init_hw()
22 .vdpa_init.vdpa_index = pdsv->vdpa_index, in pds_vdpa_init_hw()
23 .vdpa_init.vf_id = cpu_to_le16(pdsv->vdpa_aux->vf_id), in pds_vdpa_init_hw()
25 union pds_core_adminq_comp comp = {}; in pds_vdpa_init_hw() local
26 int err; in pds_vdpa_init_hw()
30 &comp, 0); in pds_vdpa_init_hw()
33 comp.status, ERR_PTR(err)); in pds_vdpa_init_hw()
[all …]
/linux-6.12.1/drivers/net/ethernet/amd/pds_core/
Dadminq.c1 // SPDX-License-Identifier: GPL-2.0
13 static int pdsc_process_notifyq(struct pdsc_qcq *qcq) in pdsc_process_notifyq()
15 union pds_core_notifyq_comp *comp; in pdsc_process_notifyq() local
16 struct pdsc *pdsc = qcq->pdsc; in pdsc_process_notifyq()
17 struct pdsc_cq *cq = &qcq->cq; in pdsc_process_notifyq()
19 int nq_work = 0; in pdsc_process_notifyq()
22 cq_info = &cq->info[cq->tail_idx]; in pdsc_process_notifyq()
23 comp = cq_info->comp; in pdsc_process_notifyq()
24 eid = le64_to_cpu(comp->event.eid); in pdsc_process_notifyq()
25 while (eid > pdsc->last_eid) { in pdsc_process_notifyq()
[all …]
/linux-6.12.1/drivers/vfio/pci/pds/
Dcmds.c1 // SPDX-License-Identifier: GPL-2.0
18 static int pds_vfio_client_adminq_cmd(struct pds_vfio_pci_device *pds_vfio, in pds_vfio_client_adminq_cmd()
26 int err; in pds_vfio_client_adminq_cmd()
30 cmd.client_request.client_id = cpu_to_le16(pds_vfio->client_id); in pds_vfio_client_adminq_cmd()
39 if (err && err != -EAGAIN) in pds_vfio_client_adminq_cmd()
46 int pds_vfio_register_client_cmd(struct pds_vfio_pci_device *pds_vfio) in pds_vfio_register_client_cmd()
51 int ci; in pds_vfio_register_client_cmd()
53 snprintf(devname, sizeof(devname), "%s.%d-%u", PDS_VFIO_LM_DEV_NAME, in pds_vfio_register_client_cmd()
54 pci_domain_nr(pdev->bus), in pds_vfio_register_client_cmd()
55 PCI_DEVID(pdev->bus->number, pdev->devfn)); in pds_vfio_register_client_cmd()
[all …]
/linux-6.12.1/include/linux/mfd/
Dstm32-timers.h1 /* SPDX-License-Identifier: GPL-2.0 */
12 #include <linux/dma-mapping.h>
21 #define TIM_CCMR1 0x18 /* Capt/Comp 1 Mode Reg */
22 #define TIM_CCMR2 0x1C /* Capt/Comp 2 Mode Reg */
23 #define TIM_CCER 0x20 /* Capt/Comp Enable Reg */
26 #define TIM_ARR 0x2c /* Auto-Reload Register */
27 #define TIM_CCRx(x) (0x34 + 4 * ((x) - 1)) /* Capt/Comp Register x (x ∈ {1, .. 4}) */
28 #define TIM_CCR1 TIM_CCRx(1) /* Capt/Comp Register 1 */
29 #define TIM_CCR2 TIM_CCRx(2) /* Capt/Comp Register 2 */
30 #define TIM_CCR3 TIM_CCRx(3) /* Capt/Comp Register 3 */
[all …]
/linux-6.12.1/drivers/clk/ti/
Dcomposite.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Tero Kristo <t-kristo@ti.com>
10 #include <linux/clk-provider.h>
32 return -EINVAL; in ti_composite_round_rate()
35 static int ti_composite_set_rate(struct clk_hw *hw, unsigned long rate, in ti_composite_set_rate()
38 return -EINVAL; in ti_composite_set_rate()
54 int num_parents;
57 int type;
68 static struct device_node *_get_component_node(struct device_node *node, int i) in _get_component_node()
70 int rc; in _get_component_node()
[all …]
/linux-6.12.1/sound/soc/tegra/
Dtegra210_dmic.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // tegra210_dmic.c - Tegra210 DMIC driver
26 /* Below enables all filters - DCR, LP and SC */
43 static int __maybe_unused tegra210_dmic_runtime_suspend(struct device *dev) in tegra210_dmic_runtime_suspend()
47 regcache_cache_only(dmic->regmap, true); in tegra210_dmic_runtime_suspend()
48 regcache_mark_dirty(dmic->regmap); in tegra210_dmic_runtime_suspend()
50 clk_disable_unprepare(dmic->clk_dmic); in tegra210_dmic_runtime_suspend()
55 static int __maybe_unused tegra210_dmic_runtime_resume(struct device *dev) in tegra210_dmic_runtime_resume()
58 int err; in tegra210_dmic_runtime_resume()
60 err = clk_prepare_enable(dmic->clk_dmic); in tegra210_dmic_runtime_resume()
[all …]
/linux-6.12.1/tools/perf/tests/
Dsample-parsing.c1 // SPDX-License-Identifier: GPL-2.0
15 #include "util/synthetic-events.h"
20 #define COMP(m) do { \ macro
21 if (s1->m != s2->m) { \
28 if (memcmp(&s1->m, &s2->m, sizeof(s1->m))) { \
41 #define FLAG(s) s->branch_stack->entries[i].flags
50 COMP(id); in samples_same()
53 COMP(ip); in samples_same()
56 COMP(pid); in samples_same()
57 COMP(tid); in samples_same()
[all …]
/linux-6.12.1/drivers/net/ethernet/mellanox/mlxfw/
Dmlxfw_fsm.c1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
2 /* Copyright (c) 2017-2019 Mellanox Technologies. All rights reserved */
19 static const int mlxfw_fsm_state_errno[] = {
20 [MLXFW_FSM_STATE_ERR_ERROR] = -EIO,
21 [MLXFW_FSM_STATE_ERR_REJECTED_DIGEST_ERR] = -EBADMSG,
22 [MLXFW_FSM_STATE_ERR_REJECTED_NOT_APPLICABLE] = -ENOENT,
23 [MLXFW_FSM_STATE_ERR_REJECTED_UNKNOWN_KEY] = -ENOKEY,
24 [MLXFW_FSM_STATE_ERR_REJECTED_AUTH_FAILED] = -EACCES,
25 [MLXFW_FSM_STATE_ERR_REJECTED_UNSIGNED] = -EKEYREVOKED,
26 [MLXFW_FSM_STATE_ERR_REJECTED_KEY_NOT_APPLICABLE] = -EKEYREJECTED,
[all …]

12345678910>>...24