Home
last modified time | relevance | path

Searched +full:break +full:- +full:control (Results 1 – 25 of 1110) sorted by relevance

12345678910>>...45

/linux/tools/testing/selftests/kvm/x86/
H A Dhyperv_features.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Tests for Hyper-V features enablement
18 * but to activate the feature it is sufficient to set it to a non-zero
32 uint64_t control; member
47 GUEST_ASSERT(msr->idx); in guest_msr()
49 if (msr->write) in guest_msr()
50 vector = wrmsr_safe(msr->idx, msr->write_val); in guest_msr()
52 if (!vector && (!msr->write || !is_write_only_msr(msr->idx))) in guest_msr()
53 vector = rdmsr_safe(msr->idx, &msr_val); in guest_msr()
55 if (msr->fault_expected) in guest_msr()
[all …]
/linux/sound/core/seq/
H A Dseq_midi_emul.c1 // SPDX-License-Identifier: GPL-2.0-or-later
39 int control, int value);
62 * Generic MIDI - no interpretation at all, it will just save current values
64 * GM - You can use all gm_ prefixed elements of chan. Controls, RPN, NRPN,
66 * GS - You can use all gs_ prefixed elements of chan. Codes for GS will be
68 * XG - You can use all xg_ prefixed elements of chan. Codes for XG will
84 if (chanset->channels == NULL) in snd_midi_process_event()
88 dest_channel = ev->data.note.channel; in snd_midi_process_event()
89 if (dest_channel >= chanset->max_channels) { in snd_midi_process_event()
91 dest_channel, chanset->max_channels); in snd_midi_process_event()
[all …]
/linux/drivers/staging/vc04_services/bcm2835-camera/
H A Dcontrols.c1 // SPDX-License-Identifier: GPL-2.0
18 #include <media/videobuf2-vmalloc.h>
19 #include <media/v4l2-device.h>
20 #include <media/v4l2-ioctl.h>
21 #include <media/v4l2-ctrls.h>
22 #include <media/v4l2-fh.h>
23 #include <media/v4l2-event.h>
24 #include <media/v4l2-common.h>
26 #include "../vchiq-mmal/mmal-common.h"
27 #include "../vchiq-mmal/mmal-vchiq.h"
[all …]
/linux/drivers/acpi/acpica/
H A Ddscontrol.c1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
4 * Module Name: dscontrol - Support for execution control opcodes -
7 * Copyright (C) 2000 - 2025, Intel Corp.
25 * PARAMETERS: walk_list - The list that owns the walk stack
26 * op - The control Op
30 * DESCRIPTION: Handles all control ops encountered during control method
44 op, op->common.aml_opcode, walk_state)); in acpi_ds_exec_begin_control_op()
46 switch (op->common.aml_opcode) { in acpi_ds_exec_begin_control_op()
50 * There is no need to allocate a new control state. in acpi_ds_exec_begin_control_op()
52 if (walk_state->control_state) { in acpi_ds_exec_begin_control_op()
[all …]
/linux/arch/arm/mach-rpc/include/mach/
H A Dacornfb.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * arch/arm/mach-rpc/include/mach/acornfb.h
10 #define acornfb_bandwidth(var) ((var)->pixclock * 8 / (var)->bits_per_pixel)
17 if (!var->pixclock) in acornfb_valid_pixrate()
60 d = pixclk - p; in acornfb_vidc20_find_pll()
63 d = -d; in acornfb_vidc20_find_pll()
67 best_v = v - 1; in acornfb_vidc20_find_pll()
68 best_r = r - 1; in acornfb_vidc20_find_pll()
72 break; in acornfb_vidc20_find_pll()
84 /* Select pixel-clock divisor to keep PLL in range */ in acornfb_vidc20_find_rates()
[all …]
/linux/net/bluetooth/
H A Dl2cap_core.c2 BlueZ - Bluetooth protocol stack for Linux
3 Copyright (C) 2000-2001 Qualcomm Incorporated
4 Copyright (C) 2009-2010 Gustavo F. Padovan <gustavo@padovan.org>
60 static void l2cap_tx(struct l2cap_chan *chan, struct l2cap_ctrl *control,
80 return bdaddr_type(hcon->type, hcon->src_type); in bdaddr_src_type()
85 return bdaddr_type(hcon->type, hcon->dst_type); in bdaddr_dst_type()
88 /* ---- L2CAP channels ---- */
95 list_for_each_entry(c, &conn->chan_l, list) { in __l2cap_get_chan_by_dcid()
96 if (c->dcid == cid) in __l2cap_get_chan_by_dcid()
107 list_for_each_entry(c, &conn->chan_l, list) { in __l2cap_get_chan_by_scid()
[all …]
/linux/drivers/staging/iio/frequency/
H A Dad9834.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright 2010-2011 Analog Devices Inc.
36 /* Command Control Bits */
54 #define RES_MASK(bits) (BIT(bits) - 1)
57 * struct ad9834_state - driver instance specific data
60 * @control: cached control word
74 unsigned short control; member
115 clk_freq = clk_get_rate(st->mclk); in ad9834_write_frequency()
118 return -EINVAL; in ad9834_write_frequency()
122 st->freq_data[0] = cpu_to_be16(addr | (regval & in ad9834_write_frequency()
[all …]
/linux/drivers/media/i2c/
H A Dadv7183.c1 // SPDX-License-Identifier: GPL-2.0-only
19 #include <media/v4l2-ctrls.h>
20 #include <media/v4l2-device.h>
38 * All standards are supported through autodetect, 8-bit, 4:2:2, ITU-R BT.656 output on P15 to P8.
69 return &container_of(ctrl->handler, struct adv7183, hdl)->sd; in to_sd()
95 return -1; in adv7183_writeregs()
112 v4l2_info(sd, "adv7183: Input control = 0x%02x\n", in adv7183_log_status()
116 v4l2_info(sd, "adv7183: Output control = 0x%02x\n", in adv7183_log_status()
118 v4l2_info(sd, "adv7183: Extended output control = 0x%02x\n", in adv7183_log_status()
132 v4l2_info(sd, "adv7183: ADI control = 0x%02x\n", in adv7183_log_status()
[all …]
/linux/sound/soc/codecs/
H A Dwm8940.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8940.c -- WM8940 ALSA Soc Audio driver
12 * Notch filter control
109 { 0x4, 0x0010 }, /* Interface Control */
110 { 0x5, 0x0000 }, /* Companding Control */
111 { 0x6, 0x0140 }, /* Clock Control */
113 { 0x8, 0x0000 }, /* GPIO Control */
114 { 0x9, 0x0002 }, /* Auto Increment Control */
115 { 0xa, 0x0000 }, /* DAC Control */
118 { 0xe, 0x0100 }, /* ADC Control */
[all …]
H A Dml26124.c1 // SPDX-License-Identifier: GPL-2.0-only
53 static const DECLARE_TLV_DB_SCALE(digital_tlv, -7150, 50, 0);
55 static const DECLARE_TLV_DB_SCALE(alclvl, -2250, 150, 0);
56 static const DECLARE_TLV_DB_SCALE(mingain, -1200, 600, 0);
57 static const DECLARE_TLV_DB_SCALE(maxgain, -675, 600, 0);
58 static const DECLARE_TLV_DB_SCALE(boost_vol, -1200, 75, 0);
60 static const char * const ml26124_companding[] = {"16bit PCM", "u-law",
61 "A-law"};
190 /* CLOCK control Register */
198 {0x0e, 0x00}, /* CLK Input/Output Control */
[all …]
/linux/sound/soc/sdca/
H A Dsdca_asoc.c1 // SPDX-License-Identifier: GPL-2.0
7 * https://www.mipi.org/mipi-sdca-v1-0-download
23 #include <sound/control.h>
30 #include <sound/soc-component.h>
31 #include <sound/soc-dai.h>
32 #include <sound/soc-dapm.h>
35 static bool exported_control(struct sdca_entity *entity, struct sdca_control *control) in exported_control() argument
37 switch (SDCA_CTL_TYPE(entity->type, control->sel)) { in exported_control()
41 break; in exported_control()
44 return control->layers & (SDCA_ACCESS_LAYER_USER | in exported_control()
[all …]
/linux/drivers/phy/ti/
H A Dphy-omap-control.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * omap-control-phy.c - The PHY part of control module.
5 * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com
20 * omap_control_pcie_pcs - set the PCS delay count
21 * @dev: the control module device
36 dev_err(dev, "%s: invalid control phy device\n", __func__); in omap_control_pcie_pcs()
40 if (control_phy->type != OMAP_CTRL_TYPE_PCIE) { in omap_control_pcie_pcs()
45 val = readl(control_phy->pcie_pcs); in omap_control_pcie_pcs()
49 writel(val, control_phy->pcie_pcs); in omap_control_pcie_pcs()
54 * omap_control_phy_power - power on/off the phy using control module reg
[all …]
/linux/drivers/dma/dw-edma/
H A Ddw-edma-v0-core.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2018-2019 Synopsys, Inc. and/or its affiliates.
11 #include <linux/io-64-nonatomic-lo-hi.h>
13 #include "dw-edma-core.h"
14 #include "dw-edma-v0-core.h"
15 #include "dw-edma-v0-regs.h"
16 #include "dw-edma-v0-debugfs.h"
30 return dw->chip->reg_base; in __dw_regs()
34 writel(value, &(__dw_regs(dw)->name))
37 readl(&(__dw_regs(dw)->name))
[all …]
/linux/drivers/staging/greybus/
H A Daudio_topology.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright 2015-2016 Google Inc.
5 * Copyright 2015-2016 Linaro Ltd.
34 dev_dbg(codec->dev, "%s:Find module#%d\n", __func__, dev_id); in find_gb_module()
36 mutex_lock(&codec->lock); in find_gb_module()
37 list_for_each_entry(module, &codec->module_list, list) { in find_gb_module()
38 if (module->dev_id == dev_id) { in find_gb_module()
39 mutex_unlock(&codec->lock); in find_gb_module()
43 mutex_unlock(&codec->lock); in find_gb_module()
44 dev_warn(codec->dev, "%s: module#%d missing in codec list\n", name, in find_gb_module()
[all …]
/linux/arch/x86/kvm/svm/
H A Dsvm.c18 #include <linux/amd-iommu.h>
24 #include <linux/psp-sev.h>
42 #include <asm/spec-ctrl.h>
59 MODULE_DESCRIPTION("KVM support for SVM (AMD-V) extensions");
84 * These 2 parameters are used to config the controls for Pause-Loop Exiting:
97 * In this mode, a 16-bit pause filter threshold field is added in the
119 /* Default doubles per-vcpu window every exit. */
123 /* Default resets per-vcpu window every exit to pause_filter_count. */
190 int tsc_aux_uret_slot __ro_after_init = -1;
204 u64 old_efer = vcpu->arch.efer; in svm_set_efer()
[all …]
/linux/drivers/usb/serial/
H A Dspcp8x5.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (C) 2010-2013 Johan Hovold (jhovold@gmail.com)
10 * Greg Kroah-Hartman (greg@kroah.com)
145 const struct usb_device_id *id = usb_get_serial_data(port->serial); in spcp8x5_port_probe()
150 return -ENOMEM; in spcp8x5_port_probe()
152 spin_lock_init(&priv->lock); in spcp8x5_port_probe()
153 priv->quirks = id->driver_info; in spcp8x5_port_probe()
157 port->port.drain_delay = 256; in spcp8x5_port_probe()
173 struct usb_device *dev = port->serial->dev; in spcp8x5_set_ctrl_line()
176 if (priv->quirks & SPCP825_QUIRK_NO_UART_STATUS) in spcp8x5_set_ctrl_line()
[all …]
/linux/drivers/net/wireless/broadcom/b43/
H A Dxmit.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 Copyright (C) 2005 Martin Langer <martin-langer@gmx.de>
45 if (e->bitrate == bitrate) in b43_tx_legacy_rate_phy_ctl_ent()
56 switch (plcp->raw[0]) { in b43_plcp_get_bitrate_idx_cck()
66 return -1; in b43_plcp_get_bitrate_idx_cck()
75 switch (plcp->raw[0] & 0xF) { in b43_plcp_get_bitrate_idx_ofdm()
93 return -1; in b43_plcp_get_bitrate_idx_ofdm()
139 __u8 *raw = plcp->raw; in b43_generate_plcp_hdr()
147 plcp->data = cpu_to_le32(d); in b43_generate_plcp_hdr()
161 plcp->data |= cpu_to_le32(plen << 16); in b43_generate_plcp_hdr()
[all …]
/linux/sound/usb/
H A Dmixer.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Mixer control part
17 * - support for UAC2 effect units
18 * - support for graphical equalizers
19 * - RANGE and MEM set commands (UAC2)
20 * - RANG
101 find_map(const struct usbmix_name_map * p,int unitid,int control) find_map() argument
1043 int control; global() member
1639 get_feature_control_info(int control) get_feature_control_info() argument
1652 __build_feature_ctl(struct usb_mixer_interface * mixer,const struct usbmix_name_map * imap,unsigned int ctl_mask,int control,struct usb_audio_term * iterm,struct usb_audio_term * oterm,int unitid,int nameid,int readonly_mask) __build_feature_ctl() argument
1824 build_feature_ctl(struct mixer_build * state,void * raw_desc,unsigned int ctl_mask,int control,struct usb_audio_term * iterm,int unitid,int readonly_mask) build_feature_ctl() argument
1836 build_feature_ctl_badd(struct usb_mixer_interface * mixer,unsigned int ctl_mask,int control,int unitid,const struct usbmix_name_map * badd_map) build_feature_ctl_badd() argument
2051 int control = audio_feature_info[i].control; parse_audio_feature_unit() local
2078 int control = audio_feature_info[i].control; parse_audio_feature_unit() local
2213 unsigned int control, bmctls, term_id; parse_audio_input_terminal() local
2352 int control; global() member
3321 delegate_notify(struct usb_mixer_interface * mixer,int unitid,u8 * control,u8 * channel) delegate_notify() argument
3416 __u8 control = (value >> 8) & 0xff; snd_usb_mixer_interrupt_v2() local
[all...]
/linux/drivers/net/ethernet/intel/e1000e/
H A Dmac.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 1999 - 2018 Intel Corporation. */
9 * e1000e_get_bus_info_pcie - Get PCIe bus information
18 struct pci_dev *pdev = hw->adapter->pdev; in e1000e_get_bus_info_pcie()
19 struct e1000_mac_info *mac = &hw->mac; in e1000e_get_bus_info_pcie()
20 struct e1000_bus_info *bus = &hw->bus; in e1000e_get_bus_info_pcie()
24 bus->width = e1000_bus_width_unknown; in e1000e_get_bus_info_pcie()
27 bus->width = (enum e1000_bus_width)FIELD_GET(PCI_EXP_LNKSTA_NLW, in e1000e_get_bus_info_pcie()
31 mac->ops.set_lan_id(hw); in e1000e_get_bus_info_pcie()
37 * e1000_set_lan_id_multi_port_pcie - Set LAN id for PCIe multiple port devices
[all …]
/linux/tools/virtio/
H A Dvirtio_test.c1 // SPDX-License-Identifier: GPL-2.0
22 #define RANDOM_BATCH -1
33 /* copy used for control */
40 int control; member
49 static const struct vhost_vring_file no_backend = { .fd = -1 },
55 struct vq_info *info = vq->priv; in vq_notify()
58 r = write(info->kick, &v, sizeof v); in vq_notify()
70 struct vhost_vring_state state = { .index = info->idx }; in vhost_vq_setup()
71 struct vhost_vring_file file = { .index = info->idx }; in vhost_vq_setup()
72 unsigned long long features = dev->vdev.features; in vhost_vq_setup()
[all …]
/linux/drivers/video/backlight/
H A Dtdo24m.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * tdo24m - SPI-based drivers for Toppoly TDO24M series LCD panels
44 #define CMD_NULL (-1)
56 CMD2(0xB8, 0xFF, 0xF9), /* Output Control */
64 CMD2(0xB8, 0x80, 0x02), /* Output Control */
89 CMD1(0xcf, 0x02), /* Blanking period control (1) */
90 CMD2(0xd0, 0x08, 0x04), /* Blanking period control (2) */
91 CMD1(0xd1, 0x01), /* CKV timing control on/off */
92 CMD2(0xd2, 0x14, 0x00), /* CKV 1,2 timing control */
93 CMD2(0xd3, 0x1a, 0x0f), /* OEV timing control */
[all …]
/linux/drivers/usb/host/
H A Dohci-hub.c1 // SPDX-License-Identifier: GPL-1.0+
6 * (C) Copyright 2000-2004 David Brownell <dbrownell@users.sourceforge.net>
11 /*-------------------------------------------------------------------------*/
38 /*-------------------------------------------------------------------------*/
48 __releases(ohci->lock) in ohci_rh_suspend()
49 __acquires(ohci->lock) in ohci_rh_suspend()
53 ohci->hc_control = ohci_readl (ohci, &ohci->regs->control); in ohci_rh_suspend()
54 switch (ohci->hc_control & OHCI_CTRL_HCFS) { in ohci_rh_suspend()
57 ohci->hc_control &= ~OHCI_CTRL_HCFS; in ohci_rh_suspend()
58 ohci->hc_control |= OHCI_USB_RESET; in ohci_rh_suspend()
[all …]
/linux/arch/sparc/kernel/
H A Dpsycho_common.c1 // SPDX-License-Identifier: GPL-2.0
39 struct strbuf *strbuf = &pbm->stc; in psycho_check_stc_error()
40 u64 control; in psycho_check_stc_error() local
43 if (!strbuf->strbuf_control) in psycho_check_stc_error()
46 err_base = strbuf->strbuf_err_stat; in psycho_check_stc_error()
47 tag_base = strbuf->strbuf_tag_diag; in psycho_check_stc_error()
48 line_base = strbuf->strbuf_line_diag; in psycho_check_stc_error()
55 * before re-enabling the streaming buffer. If any dirty data in psycho_check_stc_error()
60 control = upa_readq(strbuf->strbuf_control); in psycho_check_stc_error()
61 upa_writeq(control | PSYCHO_STRBUF_CTRL_DENAB, strbuf->strbuf_control); in psycho_check_stc_error()
[all …]
/linux/sound/virtio/
H A Dvirtio_kctl.c1 // SPDX-License-Identifier: GPL-2.0+
3 * virtio-snd: Virtio sound device
6 #include <sound/control.h>
40 * virtsnd_kctl_info() - Returns information about the control.
41 * @kcontrol: ALSA control element.
45 * Return: 0 on success, -errno on failure.
51 struct virtio_kctl *kctl = &snd->kctls[kcontrol->private_value]; in virtsnd_kctl_info()
53 &snd->kctl_infos[kcontrol->private_value]; in virtsnd_kctl_info()
56 uinfo->type = g_v2a_type_map[le32_to_cpu(kinfo->type)]; in virtsnd_kctl_info()
57 uinfo->count = le32_to_cpu(kinfo->count); in virtsnd_kctl_info()
[all …]
/linux/drivers/net/ethernet/ti/
H A Dnetcp_sgmii.c1 // SPDX-License-Identifier: GPL-2.0
7 * Sandeep Paulraj <s-paulraj@ti.com>
8 * Wingman Kwok <w-kwok2@ti.com>
22 #define SGMII23_OFFSET(x) ((x - 2) * 0x100)
93 u32 control; in netcp_sgmii_config() local
98 control = 0x21; in netcp_sgmii_config()
99 break; in netcp_sgmii_config()
104 control = 1; in netcp_sgmii_config()
105 break; in netcp_sgmii_config()
109 control = 0x20; in netcp_sgmii_config()
[all …]

12345678910>>...45