Home
last modified time | relevance | path

Searched +full:ctrl +full:- +full:b (Results 1 – 25 of 743) sorted by relevance

12345678910>>...30

/linux-6.14.4/drivers/media/platform/qcom/venus/
Dvenc_ctrls.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
7 #include <media/v4l2-ctrls.h>
27 u32 half = (gop_size - 1) >> 1; in venc_calc_bpframes()
28 u32 b, p, ratio; in venc_calc_bpframes() local
32 return -EINVAL; in venc_calc_bpframes()
37 *pf = gop_size - 1; in venc_calc_bpframes()
41 b = p = half; in venc_calc_bpframes()
43 for (; b <= gop_size - 1; b++, p--) { in venc_calc_bpframes()
44 if (b % p) in venc_calc_bpframes()
[all …]
/linux-6.14.4/drivers/media/dvb-frontends/
Dbcm3510.c4 * Copyright (C) 2001-5, B2C2 inc.
8 * This driver is "hard-coded" to be used with the 1st generation of
9 * Technisat/B2C2's Air2PC ATSC PCI/USB cards/boxes. The pll-programming
13 * The driver works also with QAM64 DVB-C, but had an unreasonable high
17 * called "dvb-fe-bcm3510-01.fw".
68 MODULE_PARM_DESC(debug, "set debugging level (1=info,2=i2c (|-able)).");
71 #define dbufout(b,l,m) {\ argument
74 m("%02x ",b[i]); \
83 u8 b[256]; in bcm3510_writebytes() local
85 …struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = b, .len = len + 1 … in bcm3510_writebytes()
[all …]
/linux-6.14.4/drivers/media/common/
Dcx2341x.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * cx2341x - generic code for cx23415/6/8 based devices
17 #include <media/drv-intf/cx2341x.h>
18 #include <media/v4l2-common.h>
26 MODULE_PARM_DESC(debug, "Debug level (0-1)");
30 /* definitions for audio properties bits 29-28 */
79 "2D Symmetric non-separable", in cx2341x_get_menu()
264 struct. Return -EINVAL if the ID is unknown, else return 0. */
266 struct v4l2_ext_control *ctrl) in cx2341x_get_ctrl() argument
268 switch (ctrl->id) { in cx2341x_get_ctrl()
[all …]
/linux-6.14.4/drivers/slimbus/
Dcore.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2011-2017, The Linux Foundation
22 while (id->manf_id != 0 || id->prod_code != 0) { in slim_match()
23 if (id->manf_id == sbdev->e_addr.manf_id && in slim_match()
24 id->prod_code == sbdev->e_addr.prod_code && in slim_match()
25 id->dev_index == sbdev->e_addr.dev_index && in slim_match()
26 id->instance == sbdev->e_addr.instance) in slim_match()
42 return !!slim_match(sbdrv->id_table, sbdev); in slim_device_match()
50 if (sbdev->status == status) in slim_device_update_status()
53 sbdev->status = status; in slim_device_update_status()
[all …]
Dslimbus.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2011-2017, The Linux Foundation
38 #define SLIM_HEADER_GET_MT(b) ((b >> SLIM_MSG_MT_SHIFT) & SLIM_MSG_MT_MASK) argument
39 #define SLIM_HEADER_GET_RL(b) ((b >> SLIM_MSG_RL_SHIFT) & SLIM_MSG_RL_MASK) argument
40 #define SLIM_HEADER_GET_MC(b) ((b >> SLIM_MSG_MC_SHIFT) & SLIM_MSG_MC_MASK) argument
41 #define SLIM_HEADER_GET_DT(b) ((b >> SLIM_MSG_DT_SHIFT) & SLIM_MSG_DT_MASK) argument
91 * struct slim_framer - Represents SLIMbus framer.
94 * Manager is responsible for framer hand-over.
111 * struct slim_msg_txn - Message to be sent by the controller.
120 * (relevant for message-codes involving read operation)
[all …]
/linux-6.14.4/drivers/media/platform/samsung/s5p-mfc/
Ds5p_mfc_enc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * linux/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_enc.c
5 * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
19 #include <media/v4l2-event.h>
21 #include <media/v4l2-ctrls.h>
22 #include <media/videobuf2-v4l2.h>
119 if (formats[i].fourcc == f->fmt.pix_mp.pixelformat && in find_format()
131 .maximum = (1 << 16) - 1,
147 .maximum = (1 << 16) - 1,
155 .maximum = (1 << 30) - 1,
[all …]
/linux-6.14.4/drivers/pinctrl/samsung/
Dpinctrl-exynos.c1 // SPDX-License-Identifier: GPL-2.0+
29 #include <linux/soc/samsung/exynos-pmu.h>
30 #include <linux/soc/samsung/exynos-regs-pmu.h>
32 #include "pinctrl-samsung.h"
33 #include "pinctrl-exynos.h"
61 if (bank->eint_mask_offset) in exynos_irq_mask()
62 reg_mask = bank->pctl_offset + bank->eint_mask_offset; in exynos_irq_mask()
64 reg_mask = our_chip->eint_mask + bank->eint_offset; in exynos_irq_mask()
66 if (clk_enable(bank->drvdata->pclk)) { in exynos_irq_mask()
67 dev_err(bank->gpio_chip.parent, in exynos_irq_mask()
[all …]
/linux-6.14.4/Documentation/devicetree/bindings/iio/frequency/
Dadi,admfm2000.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 ---
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Kim Seer Paller <[email protected]>
22 - adi,admfm2000
24 '#address-cells':
27 '#size-cells':
31 "^channel@[0-1]$":
44 adi,mixer-mode:
52 switch-gpios:
[all …]
/linux-6.14.4/drivers/media/pci/intel/ipu6/
Dipu6-buttress.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2013--2024 Intel Corporation
11 #include <linux/dma-mapping.h>
26 #include "ipu6-bus.h"
27 #include "ipu6-dma.h"
28 #include "ipu6-buttress.h"
29 #include "ipu6-platform-buttress-regs.h"
67 struct ipu6_buttress *b = &isp->buttress; in ipu6_buttress_ipc_reset() local
70 if (!isp->secure_mode) { in ipu6_buttress_ipc_reset()
71 dev_dbg(&isp->pdev->dev, "Skip IPC reset for non-secure mode"); in ipu6_buttress_ipc_reset()
[all …]
/linux-6.14.4/arch/m68k/ifpsp060/src/
Dfplsp.S3 M68000 Hi-Performance Microprocessor Division
5 Production Release P1.00 -- October 10, 1994
276 set LV, -LOCAL_SIZE # stack offset
285 set EXC_AREGS, -68 # offset of all address regs
286 set EXC_DREGS, -100 # offset of all data regs
287 set EXC_FPREGS, -36 # offset of all fp regs
503 set rn_mode, 0x0 # round-to-nearest
504 set rz_mode, 0x1 # round-to-zero
505 set rm_mode, 0x2 # round-tp-minus-infinity
506 set rp_mode, 0x3 # round-to-plus-infinity
[all …]
/linux-6.14.4/sound/soc/codecs/
Dsrc4xxx.c1 // SPDX-License-Identifier: GPL-2.0
5 // Copyright 2021-2022 Deqx Pty Ltd
25 static const DECLARE_TLV_DB_SCALE(src_tlv, -12750, 50, 0);
43 SOC_DAPM_ENUM("Port B source select", portb_out_src_enum);
46 static const char * const dit_mux_text[] = {"Port A", "Port B", "DIR", "SRC"};
52 static const char * const src_in_text[] = {"Port A", "Port B", "DIR"};
75 SND_SOC_DAPM_MUX("Port B source",
93 SND_SOC_DAPM_AIF_IN("AIF_B_RX", "Playback B", 0,
95 SND_SOC_DAPM_AIF_OUT("AIF_B_TX", "Capture B", 0,
118 {"Port B source", "loopback", "loopback_B"},
[all …]
/linux-6.14.4/drivers/macintosh/
Dwindfarm_smu_controls.c1 // SPDX-License-Identifier: GPL-2.0-only
50 struct wf_control ctrl; member
52 #define to_smu_fan(c) container_of(c, struct smu_fan_control, ctrl)
78 return -EINVAL; in smu_set_fan()
120 if (value < fct->min) in smu_fan_set()
121 value = fct->min; in smu_fan_set()
122 if (value > fct->max) in smu_fan_set()
123 value = fct->max; in smu_fan_set()
124 fct->value = value; in smu_fan_set()
126 return smu_set_fan(fct->fan_type, fct->reg, value); in smu_fan_set()
[all …]
Dwindfarm_fcu_controls.c1 // SPDX-License-Identifier: GPL-2.0-only
44 * what Darwin -apparently- does based on observed behaviour.
68 struct wf_control ctrl; member
80 struct wf_fcu_fan *fan = ct->priv; in wf_fcu_fan_release()
82 kref_put(&fan->fcu_priv->ref, wf_fcu_release); in wf_fcu_fan_release()
91 mutex_lock(&pv->lock); in wf_fcu_read_reg()
96 nw = i2c_master_send(pv->i2c, buf, 1); in wf_fcu_read_reg()
97 if (nw > 0 || (nw < 0 && nw != -EIO) || tries >= 100) in wf_fcu_read_reg()
109 nr = i2c_master_recv(pv->i2c, buf, nb); in wf_fcu_read_reg()
110 if (nr > 0 || (nr < 0 && nr != -ENODEV) || tries >= 100) in wf_fcu_read_reg()
[all …]
/linux-6.14.4/drivers/platform/surface/aggregator/
Dcore.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Provides access to a SAM-over-SSH connected EC via a controller device.
10 * Copyright (C) 2019-2022 Maximilian Luz <[email protected]>
37 /* -- Static controller reference. ------------------------------------------ */
47 * ssam_get_controller() - Get reference to SSAM controller.
57 struct ssam_controller *ctrl; in ssam_get_controller() local
61 ctrl = __ssam_controller; in ssam_get_controller()
62 if (!ctrl) in ssam_get_controller()
65 if (WARN_ON(!kref_get_unless_zero(&ctrl->kref))) in ssam_get_controller()
66 ctrl = NULL; in ssam_get_controller()
[all …]
/linux-6.14.4/drivers/platform/surface/
Dsurface_acpi_notify.c1 // SPDX-License-Identifier: GPL-2.0+
6 * (SSAM/SAM) requests and back, specifically SAM-over-SSH. Translates SSAM
11 * Copyright (C) 2019-2022 Maximilian Luz <[email protected]>
29 struct ssam_controller *ctrl; member
42 /* -- dGPU notifier interface. ---------------------------------------------- */
64 status = -EBUSY; in san_set_rqsg_interface_device()
71 * san_client_link() - Link client as consumer to SAN device.
83 * Return: Returns zero on success, %-ENXIO if the SAN interface has not been
84 * set up yet, and %-ENOMEM if device link creation failed.
95 return -ENXIO; in san_client_link()
[all …]
/linux-6.14.4/net/bluetooth/bnep/
Dbnep.h1 /* SPDX-License-Identifier: GPL-2.0-only */
75 __u8 ctrl; member
82 __u8 ctrl; member
89 __u8 ctrl; member
100 #define BNEPCONNADD _IOW('B', 200, int)
101 #define BNEPCONNDEL _IOW('B', 201, int)
102 #define BNEPGETCONNLIST _IOR('B', 210, int)
103 #define BNEPGETCONNINFO _IOR('B', 211, int)
104 #define BNEPGETSUPPFEAT _IOR('B', 212, int)
/linux-6.14.4/drivers/pci/controller/
Dpcie-rockchip-ep.c1 // SPDX-License-Identifier: GPL-2.0+
7 * Author: Shawn Lin <shawn.lin@rock-chips.com>
8 * Simon Xue <xxm@rock-chips.com>
18 #include <linux/pci-epc.h>
20 #include <linux/pci-epf.h>
24 #include "pcie-rockchip.h"
27 * struct rockchip_pcie_ep - private data for PCIe endpoint controller driver
81 int num_pass_bits = fls64(pci_addr ^ (pci_addr + size - 1)); in rockchip_pcie_ep_ob_atu_num_bits()
98 addr0 = ((num_pass_bits - 1) & PCIE_CORE_OB_REGION_ADDR0_NUM_BITS) | in rockchip_pcie_prog_ep_ob_atu()
119 struct rockchip_pcie *rockchip = &ep->rockchip; in rockchip_pcie_ep_write_header()
[all …]
/linux-6.14.4/drivers/nvme/target/
Dpci-epf.c1 // SPDX-License-Identifier: GPL-2.0
7 * REDS Institute, HEIG-VD, HES-SO, Switzerland
19 #include <linux/pci-epc.h>
20 #include <linux/pci-epf.h>
31 * allow up to 128 page-sized segments. For the maximum allowed,
36 (NVMET_PCI_EPF_MAX_SEGS << (PAGE_SHIFT - 10))
85 struct nvmet_pci_epf_ctrl *ctrl; member
130 struct nvmet_pci_epf_ctrl *ctrl; member
210 struct nvmet_pci_epf_ctrl ctrl; member
227 static inline u32 nvmet_pci_epf_bar_read32(struct nvmet_pci_epf_ctrl *ctrl, in nvmet_pci_epf_bar_read32() argument
[all …]
/linux-6.14.4/kernel/debug/kdb/
Dkdb_keyboard.c7 * Copyright (c) 1999-2006 Silicon Graphics, Inc. All Rights Reserved.
28 #define CTRL(c) ((c) - 64) macro
41 static int shift_lock; /* CAPS LOCK state (0-off, 1-on) */ in kdb_get_kbd_char()
49 return -1; in kdb_get_kbd_char()
54 return -1; in kdb_get_kbd_char()
66 return -1; in kdb_get_kbd_char()
83 return -1; in kdb_get_kbd_char()
88 * Left ctrl key in kdb_get_kbd_char()
94 return -1; in kdb_get_kbd_char()
100 return -1; in kdb_get_kbd_char()
[all …]
/linux-6.14.4/drivers/pci/controller/cadence/
Dpcie-cadence-ep.c1 // SPDX-License-Identifier: GPL-2.0
4 // Author: Cyrille Pitchen <cyrille.pitchen@free-electrons.com>
10 #include <linux/pci-epc.h>
14 #include "pcie-cadence.h"
30 fn = fn + first_vf_offset + ((vfn - 1) * stride); in cdns_pcie_get_fn_from_vfn()
40 struct cdns_pcie *pcie = &ep->pcie; in cdns_pcie_ep_write_header()
44 dev_err(&epc->dev, "Only Virtual Function #1 has deviceID\n"); in cdns_pcie_ep_write_header()
45 return -EINVAL; in cdns_pcie_ep_write_header()
48 cdns_pcie_ep_fn_writew(pcie, fn, reg, hdr->deviceid); in cdns_pcie_ep_write_header()
52 cdns_pcie_ep_fn_writew(pcie, fn, PCI_DEVICE_ID, hdr->deviceid); in cdns_pcie_ep_write_header()
[all …]
/linux-6.14.4/arch/arm/mm/
Dproc-v7.S1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/arch/arm/mm/proc-v7.S
9 #include <linux/arm-smccc.h>
15 #include <asm/asm-offsets.h>
17 #include <asm/pgtable-hwdef.h>
20 #include "proc-macros.S"
23 #include "proc-v7-3level.S"
25 #include "proc-v7-2level.S"
28 .arch armv7-a
35 mrc p15, 0, r0, c1, c0, 0 @ ctrl register
[all …]
/linux-6.14.4/drivers/infiniband/hw/mlx5/
Dwr.h1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
20 /* get_sq_edge - Get the next nearby edge.
27 * @sq - SQ buffer.
28 * @idx - Stride index in the SQ buffer.
38 (&sq->fbc, in get_sq_edge()
39 mlx5_frag_buf_get_idx_last_contig_stride(&sq->fbc, idx)); in get_sq_edge()
44 /* handle_post_send_edge - Check if we get to SQ edge. If yes, update to the
47 * @seg: Current WQE position (16B aligned).
48 * @wqe_sz: Total current WQE size [16B].
59 idx = (sq->cur_post + (wqe_sz >> 2)) & (sq->wqe_cnt - 1); in handle_post_send_edge()
[all …]
/linux-6.14.4/drivers/xen/events/
Devents_fifo.c2 * Xen event channels (FIFO-based ABI)
49 #include <xen/xen-ops.h>
75 #define EVTCHN_FIFO_BIT(b, w) \ argument
76 (((unsigned long)w & 0x4UL) ? (EVTCHN_FIFO_ ##b + 32) : EVTCHN_FIFO_ ##b)
81 #define EVTCHN_FIFO_BIT(b, w) EVTCHN_FIFO_ ##b argument
112 q->head[i] = 0; in init_control_block()
149 return -EINVAL; in evtchn_fifo_setup()
160 ret = -ENOMEM; in evtchn_fifo_setup()
191 /* no-op */ in evtchn_fifo_bind_to_cpu()
273 static void consume_one_event(unsigned cpu, struct evtchn_loop_ctrl *ctrl, in consume_one_event() argument
[all …]
/linux-6.14.4/drivers/pwm/
Dpwm-rockchip.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2014 Beniamino Galvani <b[email protected]>
43 unsigned long ctrl; member
64 u32 enable_conf = pc->data->enable_conf; in rockchip_pwm_get_state()
70 ret = clk_enable(pc->pclk); in rockchip_pwm_get_state()
74 ret = clk_enable(pc->clk); in rockchip_pwm_get_state()
78 clk_rate = clk_get_rate(pc->clk); in rockchip_pwm_get_state()
80 tmp = readl_relaxed(pc->base + pc->data->regs.period); in rockchip_pwm_get_state()
81 tmp *= pc->data->prescaler * NSEC_PER_SEC; in rockchip_pwm_get_state()
82 state->period = DIV_ROUND_CLOSEST_ULL(tmp, clk_rate); in rockchip_pwm_get_state()
[all …]
/linux-6.14.4/drivers/usb/dwc3/
Dtrace.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * trace.h - DesignWare USB3 DRD Controller Trace Support
5 * Copyright (C) 2014 Texas Instruments Incorporated - https://www.ti.com
31 __entry->base = base;
32 __entry->offset = offset;
33 __entry->value = value;
36 __entry->base + __entry->offset,
37 __entry->offset,
38 __entry->value)
59 __entry->event = event;
[all …]

12345678910>>...30