/Linux-v6.1/tools/testing/selftests/kvm/x86_64/ |
D | hyperv_features.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Tests for Hyper-V features enablement 18 static inline uint8_t hypercall(u64 control, vm_vaddr_t input_address, in hypercall() argument 23 /* Note both the hypercall and the "asm safe" clobber r9-r11. */ in hypercall() 27 "+c" (control), "+d" (input_address), in hypercall() 30 "a" (-EFAULT) in hypercall() 43 uint64_t control; member 53 GUEST_ASSERT(msr->idx); in guest_msr() 55 if (!msr->write) in guest_msr() 56 vector = rdmsr_safe(msr->idx, &ignored); in guest_msr() [all …]
|
/Linux-v6.1/sound/core/seq/ |
D | seq_midi_emul.c | 1 // 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-v6.1/drivers/staging/vc04_services/bcm2835-camera/ |
D | controls.c | 1 // 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 "mmal-common.h" 27 #include "mmal-vchiq.h" [all …]
|
/Linux-v6.1/drivers/acpi/acpica/ |
D | dscontrol.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 4 * Module Name: dscontrol - Support for execution control opcodes - 7 * Copyright (C) 2000 - 2022, 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-v6.1/arch/arm/mach-rpc/include/mach/ |
D | acornfb.h | 1 /* 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-v6.1/net/bluetooth/ |
D | l2cap_core.c | 2 BlueZ - Bluetooth protocol stack for Linux 3 Copyright (C) 2000-2001 Qualcomm Incorporated 4 Copyright (C) 2009-2010 Gustavo F. Padovan <gustavo@padovan.org> 62 static void l2cap_tx(struct l2cap_chan *chan, struct l2cap_ctrl *control, 82 return bdaddr_type(hcon->type, hcon->src_type); in bdaddr_src_type() 87 return bdaddr_type(hcon->type, hcon->dst_type); in bdaddr_dst_type() 90 /* ---- L2CAP channels ---- */ 97 list_for_each_entry(c, &conn->chan_l, list) { in __l2cap_get_chan_by_dcid() 98 if (c->dcid == cid) in __l2cap_get_chan_by_dcid() 109 list_for_each_entry(c, &conn->chan_l, list) { in __l2cap_get_chan_by_scid() [all …]
|
/Linux-v6.1/sound/soc/codecs/ |
D | wm8940.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8940.c -- WM8940 ALSA Soc Audio driver 12 * Notch filter control 107 { 0x4, 0x0010 }, /* Interface Control */ 108 { 0x5, 0x0000 }, /* Companding Control */ 109 { 0x6, 0x0140 }, /* Clock Control */ 111 { 0x8, 0x0000 }, /* GPIO Control */ 112 { 0x9, 0x0002 }, /* Auto Increment Control */ 113 { 0xa, 0x0000 }, /* DAC Control */ 116 { 0xe, 0x0100 }, /* ADC Control */ [all …]
|
D | ml26124.c | 1 // 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 …]
|
D | wm8994.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8994.c -- WM8994 ALSA SoC Audio driver 5 * Copyright 2009-12 Wolfson Microelectronics plc 114 struct wm8994 *control = wm8994->wm8994; in wm8958_micd_set_rate() local 120 idle = !wm8994->jack_mic; in wm8958_micd_set_rate() 124 sysclk = wm8994->aifclk[1]; in wm8958_micd_set_rate() 126 sysclk = wm8994->aifclk[0]; in wm8958_micd_set_rate() 128 if (control->pdata.micd_rates) { in wm8958_micd_set_rate() 129 rates = control->pdata.micd_rates; in wm8958_micd_set_rate() 130 num_rates = control->pdata.num_micd_rates; in wm8958_micd_set_rate() [all …]
|
/Linux-v6.1/drivers/staging/iio/frequency/ |
D | ad9834.c | 1 // 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-v6.1/drivers/media/i2c/ |
D | adv7183.c | 1 // 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-v6.1/drivers/phy/ti/ |
D | phy-omap-control.c | 1 // 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-v6.1/drivers/usb/serial/ |
D | spcp8x5.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2010-2013 Johan Hovold (jhovold@gmail.com) 10 * Greg Kroah-Hartman (greg@kroah.com) 155 const struct usb_device_id *id = usb_get_serial_data(port->serial); in spcp8x5_port_probe() 160 return -ENOMEM; in spcp8x5_port_probe() 162 spin_lock_init(&priv->lock); in spcp8x5_port_probe() 163 priv->quirks = id->driver_info; in spcp8x5_port_probe() 167 port->port.drain_delay = 256; in spcp8x5_port_probe() 183 struct usb_device *dev = port->serial->dev; in spcp8x5_set_ctrl_line() 186 if (priv->quirks & SPCP825_QUIRK_NO_UART_STATUS) in spcp8x5_set_ctrl_line() [all …]
|
/Linux-v6.1/drivers/staging/greybus/ |
D | audio_topology.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright 2015-2016 Google Inc. 5 * Copyright 2015-2016 Linaro Ltd. 13 /* mixer control */ 41 dev_dbg(codec->dev, "%s:Find module#%d\n", __func__, dev_id); in find_gb_module() 43 mutex_lock(&codec->lock); in find_gb_module() 44 list_for_each_entry(module, &codec->module_list, list) { in find_gb_module() 45 if (module->dev_id == dev_id) { in find_gb_module() 46 mutex_unlock(&codec->lock); in find_gb_module() 50 mutex_unlock(&codec->lock); in find_gb_module() [all …]
|
/Linux-v6.1/drivers/counter/ |
D | 104-quad-8.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Counter driver for the ACCES 104-QUAD-8 6 * This driver supports the ACCES 104-QUAD-8 and ACCES 104-QUAD-4. 28 MODULE_PARM_DESC(base, "ACCES 104-QUAD-8 base addresses"); 33 MODULE_PARM_DESC(irq, "ACCES 104-QUAD-8 interrupt line numbers"); 38 * struct channel_reg - channel register structure 40 * @control: Channel flags and control 44 u8 control; member 48 * struct quad8_reg - device register structure 49 * @channel: quadrature counter data and control [all …]
|
/Linux-v6.1/drivers/char/hw_random/ |
D | n2-drv.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* n2-drv.c: Niagara-2 RNG driver. 36 /* The Niagara2 RNG provides a 64-bit read-only random number 37 * register, plus a control register. Access to the RNG is 38 * virtualized through the hypervisor so that both guests and control 48 * which is the 64-bit read-only register. 51 * such that a full 64-bits of entropy are available in the register. 56 * A control register is provided for adjusting various aspects of RNG 74 * separately. This is why 4 control register values must be provided 80 * control 0: (1 << RNG_CTL_VCO_SHIFT) | RNG_CTL_ES1 [all …]
|
/Linux-v6.1/drivers/net/wireless/broadcom/b43/ |
D | xmit.c | 1 // 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-v6.1/sound/usb/ |
D | mixer.c | 1 // 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 * - RANGE and MEM interrupt dispatchers (UAC2) 21 * - audio channel clustering (UAC2) 22 * - audio sample rate converter units (UAC2) 23 * - proper handling of clock multipliers (UAC2) 24 * - dispatch clock change notifications (UAC2) [all …]
|
/Linux-v6.1/drivers/net/ethernet/intel/e1000e/ |
D | mac.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 7 * e1000e_get_bus_info_pcie - Get PCIe bus information 16 struct e1000_mac_info *mac = &hw->mac; in e1000e_get_bus_info_pcie() 17 struct e1000_bus_info *bus = &hw->bus; in e1000e_get_bus_info_pcie() 18 struct e1000_adapter *adapter = hw->adapter; in e1000e_get_bus_info_pcie() 21 cap_offset = adapter->pdev->pcie_cap; in e1000e_get_bus_info_pcie() 23 bus->width = e1000_bus_width_unknown; in e1000e_get_bus_info_pcie() 25 pci_read_config_word(adapter->pdev, in e1000e_get_bus_info_pcie() 28 bus->width = (enum e1000_bus_width)((pcie_link_status & in e1000e_get_bus_info_pcie() [all …]
|
/Linux-v6.1/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-ingenic.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * dwmac-ingenic.c - Ingenic SoCs DWMAC specific glue layer 76 struct ingenic_mac *mac = plat_dat->bsp_priv; in ingenic_mac_init() 79 if (mac->soc_info->set_mode) { in ingenic_mac_init() 80 ret = mac->soc_info->set_mode(plat_dat); in ingenic_mac_init() 90 struct ingenic_mac *mac = plat_dat->bsp_priv; in jz4775_mac_set_mode() 93 switch (plat_dat->interface) { in jz4775_mac_set_mode() 97 dev_dbg(mac->dev, "MAC PHY Control Register: PHY_INTERFACE_MODE_MII\n"); in jz4775_mac_set_mode() 98 break; in jz4775_mac_set_mode() 103 dev_dbg(mac->dev, "MAC PHY Control Register: PHY_INTERFACE_MODE_GMII\n"); in jz4775_mac_set_mode() [all …]
|
/Linux-v6.1/tools/virtio/ |
D | virtio_test.c | 1 // 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-v6.1/drivers/video/backlight/ |
D | tdo24m.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * tdo24m - SPI-based drivers for Toppoly TDO24M series LCD panels 45 #define CMD_NULL (-1) 57 CMD2(0xB8, 0xFF, 0xF9), /* Output Control */ 65 CMD2(0xB8, 0x80, 0x02), /* Output Control */ 90 CMD1(0xcf, 0x02), /* Blanking period control (1) */ 91 CMD2(0xd0, 0x08, 0x04), /* Blanking period control (2) */ 92 CMD1(0xd1, 0x01), /* CKV timing control on/off */ 93 CMD2(0xd2, 0x14, 0x00), /* CKV 1,2 timing control */ 94 CMD2(0xd3, 0x1a, 0x0f), /* OEV timing control */ [all …]
|
/Linux-v6.1/drivers/tty/ |
D | n_gsm.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * tty -> DLCI fifo -> scheduler -> GSM MUX data queue ---o-> ldisc 10 * control message -> GSM MUX control queue --´ 13 * ldisc -> gsm_queue() -o--> tty 14 * `-> gsm_control_response() 22 * all control traffic via it 87 * Semi-arbitrary buffer size limits. 0710 is normally run with 32-64 byte 97 * struct gsm_mux_net - network interface 115 u8 ctrl; /* Control byte + flags */ 162 bool dead; /* Refuse re-open */ [all …]
|
/Linux-v6.1/drivers/net/ethernet/ti/ |
D | netcp_sgmii.c | 1 // 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 …]
|
/Linux-v6.1/arch/mips/pci/ |
D | ops-mace.c | 33 return ((bus->number & 0xff) << 16) | in mkaddr() 43 u32 control = mace->pci.control; in mace_pci_read_config() local 46 mace->pci.control = control & ~MACEPCI_CONTROL_MAR_INT; in mace_pci_read_config() 47 mace->pci.config_addr = mkaddr(bus, devfn, reg); in mace_pci_read_config() 50 *val = mace->pci.config_data.b[(reg & 3) ^ 3]; in mace_pci_read_config() 51 break; in mace_pci_read_config() 53 *val = mace->pci.config_data.w[((reg >> 1) & 1) ^ 1]; in mace_pci_read_config() 54 break; in mace_pci_read_config() 56 *val = mace->pci.config_data.l; in mace_pci_read_config() 57 break; in mace_pci_read_config() [all …]
|