/Linux-v6.1/drivers/usb/chipidea/ |
D | usbmisc_imx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 86 /* For imx6dql, it is host-only controller, for later imx6, it is otg's */ 104 /* The default DM/DP value is pull-down */ 142 int (*init)(struct imx_usbmisc_data *data); 144 int (*post)(struct imx_usbmisc_data *data); 146 int (*set_wakeup)(struct imx_usbmisc_data *data, bool enabled); 148 int (*hsic_set_connect)(struct imx_usbmisc_data *data); 150 int (*hsic_set_clk)(struct imx_usbmisc_data *data, bool enabled); 152 int (*charger_detection)(struct imx_usbmisc_data *data); 161 static inline bool is_imx53_usbmisc(struct imx_usbmisc_data *data); [all …]
|
/Linux-v6.1/drivers/hwmon/ |
D | w83627ehf.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * w83627ehf - Driver for the hardware monitoring functionality of 4 * the Winbond W83627EHF Super-I/O chip 5 * Copyright (C) 2005-2012 Jean Delvare <jdelvare@suse.de> 10 * Copyright (C) 2010 Sheng-Yuan Huang (Nuvoton) (PS00) 18 * This driver also supports the W83627EHG, which is the lead-free 27 * w83627dhg-p 9 5 4 3 0xb070 0xc1 0x5ca3 30 * w83667hg-b 9 5 3 4 0xb350 0xc1 0x5ca3 41 #include <linux/hwmon-sysfs.h> 42 #include <linux/hwmon-vid.h> [all …]
|
D | max6650.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * max6650.c - Part of lm_sensors, Linux kernel modules for hardware 18 * http://pdfserv.maxim-ic.com/en/ds/MAX6650-MAX6651.pdf 27 #include <linux/hwmon-sysfs.h> 91 /* Minimum and maximum values of the FAN-RPM */ 95 #define DIV_FROM_REG(reg) (1 << ((reg) & 7)) argument 99 * Client data (each client gets its own) 130 .data = (void *)1 134 .data = (void *)4 143 * Useful range for dac is 0-180 for 12V fans and 0-76 for 5V fans. in dac_to_pwm() [all …]
|
D | nct6775-core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * nct6775 - Driver for the hardware monitoring functionality of 4 * Nuvoton NCT677x Super-I/O chips 6 * Copyright (C) 2012 Guenter Roeck <linux@roeck-us.net> 9 * Copyright (C) 2005-2012 Jean Delvare <jdelvare@suse.de> 14 * Copyright (C) 2010 Sheng-Yuan Huang (Nuvoton) (PS00) 48 #include <linux/hwmon-sysfs.h> 62 /* used to set data->name = nct6775_device_names[data->sio_kind] */ 78 /* Common and NCT6775 specific data */ 102 17, -1, -1, -1, -1, -1, -1, /* in8..in14 */ [all …]
|
/Linux-v6.1/drivers/thermal/ |
D | armada_thermal.c | 1 // SPDX-License-Identifier: GPL-2.0-only 74 struct armada_thermal_data *data; member 87 /* Formula coeficients: temp = (b - m * reg) / div */ 124 } data; member 128 * struct armada_thermal_sensor - hold the information of one thermal sensor 141 struct armada_thermal_data *data = priv->data; in armadaxp_init() local 142 u32 reg; in armadaxp_init() local 144 regmap_read(priv->syscon, data->syscon_control1_off, ®); in armadaxp_init() 145 reg |= PMU_TDC0_OTF_CAL_MASK; in armadaxp_init() 148 reg &= ~PMU_TDC0_REF_CAL_CNT_MASK; in armadaxp_init() [all …]
|
/Linux-v6.1/tools/testing/selftests/user_events/ |
D | ftrace_test.c | 1 // SPDX-License-Identifier: GPL-2.0 36 if (fd == -1) in trace_bytes() 37 return -1; in trace_bytes() 42 if (got == -1) in trace_bytes() 43 return -1; in trace_bytes() 72 return -1; in skip_until_empty_line() 81 return -1; in get_print_fmt() 106 return -1; in get_print_fmt() 113 if (fd == -1) in clear() 114 return -1; in clear() [all …]
|
/Linux-v6.1/sound/firewire/tascam/ |
D | tascam-stream.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * tascam-stream.c - a part of driver for TASCAM FireWire series 16 static int get_clock(struct snd_tscm *tscm, u32 *data) in get_clock() argument 19 __be32 reg; in get_clock() local 23 err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, in get_clock() 25 ®, sizeof(reg), 0); in get_clock() 29 *data = be32_to_cpu(reg); in get_clock() 30 if (*data & CLOCK_STATUS_MASK) in get_clock() 39 return -EAGAIN; in get_clock() 47 u32 data; in set_clock() local [all …]
|
/Linux-v6.1/drivers/net/ethernet/ti/ |
D | davinci_mdio.c | 1 // SPDX-License-Identifier: GPL-2.0+ 29 #include <linux/mdio-bitbang.h> 33 * This timeout definition is a worst-case ultra defensive measure against 111 static void davinci_mdio_init_clk(struct davinci_mdio_data *data) in davinci_mdio_init_clk() argument 115 mdio_in = clk_get_rate(data->clk); in davinci_mdio_init_clk() 116 div = (mdio_in / data->pdata.bus_freq) - 1; in davinci_mdio_init_clk() 120 data->clk_div = div; in davinci_mdio_init_clk() 124 * 32 bits of transferred data in davinci_mdio_init_clk() 131 * In the worst case, we could be kicking off a user-access immediately in davinci_mdio_init_clk() 132 * after the mdio bus scan state-machine triggered its own read. If in davinci_mdio_init_clk() [all …]
|
/Linux-v6.1/drivers/hwmon/pmbus/ |
D | pmbus_core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 #include <linux/hwmon-sysfs.h> 39 u16 reg; /* register */ member 43 int data; /* Sensor data. member 74 #define pb_reg_to_index(page, reg, mask) (((page) << PB_PAGE_SHIFT) | \ argument 75 ((reg) << PB_REG_SHIFT) | (mask)) 85 u32 flags; /* from platform data */ 105 s16 currpage; /* current page, -1 for unknown/unset */ 106 s16 currphase; /* current phase, 0xff for all, -1 for unknown/unset */ 115 u8 reg; member [all …]
|
/Linux-v6.1/sound/firewire/motu/ |
D | motu-protocol-v3.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * motu-protocol-v3.c - a part of driver for MOTU FireWire series 5 * Copyright (c) 2015-2017 Takashi Sakamoto <o-takashi@sakamocchi.jp> 40 __be32 reg; in snd_motu_protocol_v3_get_clock_rate() local 41 u32 data; in snd_motu_protocol_v3_get_clock_rate() local 44 err = snd_motu_transaction_read(motu, V3_CLOCK_STATUS_OFFSET, ®, in snd_motu_protocol_v3_get_clock_rate() 45 sizeof(reg)); in snd_motu_protocol_v3_get_clock_rate() 48 data = be32_to_cpu(reg); in snd_motu_protocol_v3_get_clock_rate() 50 data = (data & V3_CLOCK_RATE_MASK) >> V3_CLOCK_RATE_SHIFT; in snd_motu_protocol_v3_get_clock_rate() 51 if (data >= ARRAY_SIZE(snd_motu_clock_rates)) in snd_motu_protocol_v3_get_clock_rate() [all …]
|
D | motu-protocol-v1.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 // motu-protocol-v1.c - a part of driver for MOTU FireWire series 4 // Copyright (c) 2021 Takashi Sakamoto <o-takashi@sakamocchi.jp> 12 // 0xffff0000: ISOC_COMM_CONTROL_MASK in motu-stream.c. 20 // 0x00000800: analog-1/2 21 // 0x00001a00: analog-3/4 22 // 0x00002c00: analog-5/6 23 // 0x00003e00: analog-7/8 24 // 0x00000000: analog-1 25 // 0x00000900: analog-2 [all …]
|
D | motu-protocol-v2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * motu-protocol-v2.c - a part of driver for MOTU FireWire series 5 * Copyright (c) 2015-2017 Takashi Sakamoto <o-takashi@sakamocchi.jp> 34 static int get_clock_rate(u32 data, unsigned int *rate) in get_clock_rate() argument 36 unsigned int index = (data & V2_CLOCK_RATE_MASK) >> V2_CLOCK_RATE_SHIFT; in get_clock_rate() 38 return -EIO; in get_clock_rate() 48 __be32 reg; in snd_motu_protocol_v2_get_clock_rate() local 51 err = snd_motu_transaction_read(motu, V2_CLOCK_STATUS_OFFSET, ®, in snd_motu_protocol_v2_get_clock_rate() 52 sizeof(reg)); in snd_motu_protocol_v2_get_clock_rate() 56 return get_clock_rate(be32_to_cpu(reg), rate); in snd_motu_protocol_v2_get_clock_rate() [all …]
|
/Linux-v6.1/drivers/regulator/ |
D | tps6507x-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * tps6507x-regulator.c 7 * Copyright (C) 2009 Texas Instrument Incorporated - https://www.ti.com/ 33 /* Number of step-down converters available */ 113 static inline int tps6507x_pmic_read(struct tps6507x_pmic *tps, u8 reg) in tps6507x_pmic_read() argument 118 err = tps->mfd->read_dev(tps->mfd, reg, 1, &val); in tps6507x_pmic_read() 126 static inline int tps6507x_pmic_write(struct tps6507x_pmic *tps, u8 reg, u8 val) in tps6507x_pmic_write() argument 128 return tps->mfd->write_dev(tps->mfd, reg, 1, &val); in tps6507x_pmic_write() 131 static int tps6507x_pmic_set_bits(struct tps6507x_pmic *tps, u8 reg, u8 mask) in tps6507x_pmic_set_bits() argument 133 int err, data; in tps6507x_pmic_set_bits() local [all …]
|
/Linux-v6.1/drivers/clk/sunxi/ |
D | clk-sun4i-display.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Maxime Ripard <maxime.ripard@free-electrons.com> 8 #include <linux/clk-provider.h> 12 #include <linux/reset-controller.h> 33 void __iomem *reg; member 49 struct reset_data *data = rcdev_to_reset_data(rcdev); in sun4i_a10_display_assert() local 51 u32 reg; in sun4i_a10_display_assert() local 53 spin_lock_irqsave(data->lock, flags); in sun4i_a10_display_assert() 55 reg = readl(data->reg); in sun4i_a10_display_assert() 56 writel(reg & ~BIT(data->offset + id), data->reg); in sun4i_a10_display_assert() [all …]
|
/Linux-v6.1/sound/pci/oxygen/ |
D | xonar_cs43xx.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 * ----------- 14 * I²C <-> CS4398 (addr 1001111) (front) 15 * <-> CS4362A (addr 0011000) (surround, center/LFE, back) 17 * GPI 0 <- external power present (DX only) 19 * GPIO 0 -> enable output to speakers 20 * GPIO 1 -> route output to front panel 21 * GPIO 2 -> M0 of CS5361 22 * GPIO 3 -> M1 of CS5361 23 * GPIO 6 -> ? [all …]
|
/Linux-v6.1/drivers/i2c/muxes/ |
D | i2c-mux-reg.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 #include <linux/i2c-mux.h> 15 #include <linux/platform_data/i2c-mux-reg.h> 20 struct i2c_mux_reg_platform_data data; member 25 if (!mux->data.reg) in i2c_mux_reg_set() 26 return -EINVAL; in i2c_mux_reg_set() 31 * The endianness of reading doesn't matter and the return data in i2c_mux_reg_set() 34 switch (mux->data.reg_size) { in i2c_mux_reg_set() 36 if (mux->data.little_endian) in i2c_mux_reg_set() 37 iowrite32(chan_id, mux->data.reg); in i2c_mux_reg_set() [all …]
|
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
D | hwsq.h | 1 /* SPDX-License-Identifier: MIT */ 18 u32 data; member 30 .data = 0xdeadbeef, in hwsq_stride() 41 .stride = addr2 - addr1, in hwsq_reg2() 43 .data = 0xdeadbeef, in hwsq_reg2() 56 .data = 0xdeadbeef, in hwsq_reg() 65 ret = nvkm_hwsq_init(subdev, &ram->hwsq); in hwsq_init() 69 ram->sequence++; in hwsq_init() 70 ram->subdev = subdev; in hwsq_init() 78 if (ram->subdev) { in hwsq_exec() [all …]
|
/Linux-v6.1/drivers/usb/cdns3/ |
D | cdns3-ti.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * cdns3-ti.c - TI specific Glue layer for Cadence USB Controller 5 * Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com 14 #include <linux/dma-mapping.h> 77 static inline u32 cdns_ti_readl(struct cdns_ti *data, u32 offset) in cdns_ti_readl() argument 79 return readl(data->usbss + offset); in cdns_ti_readl() 82 static inline void cdns_ti_writel(struct cdns_ti *data, u32 offset, u32 value) in cdns_ti_writel() argument 84 writel(value, data->usbss + offset); in cdns_ti_writel() 89 struct device *dev = &pdev->dev; in cdns_ti_probe() 90 struct device_node *node = pdev->dev.of_node; in cdns_ti_probe() [all …]
|
/Linux-v6.1/tools/perf/util/ |
D | amd-sample-raw.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * AMD specific. Provide textual annotation for IBS raw sample data. 12 #include "../../arch/x86/include/asm/amd-ibs.h" 17 #include "sample-raw.h" 18 #include "pmu-events/pmu-events.h" 23 static void pr_ibs_fetch_ctl(union ibs_fetch_ctl reg) in pr_ibs_fetch_ctl() argument 50 if (reg.phy_addr_valid) in pr_ibs_fetch_ctl() 51 l1tlb_pgsz_str = l1tlb_pgsz_strs_erratum1347[reg.l1tlb_pgsz]; in pr_ibs_fetch_ctl() 53 if (reg.phy_addr_valid) in pr_ibs_fetch_ctl() 54 l1tlb_pgsz_str = l1tlb_pgsz_strs[reg.l1tlb_pgsz]; in pr_ibs_fetch_ctl() [all …]
|
/Linux-v6.1/sound/firewire/fireface/ |
D | ff-protocol-former.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // ff-protocol-former.c - a part of driver for RME Fireface series 15 static int parse_clock_bits(u32 data, unsigned int *rate, in parse_clock_bits() argument 46 if ((data & 0x0000001e) == rate_entry->mask) { in parse_clock_bits() 47 *rate = rate_entry->rate; in parse_clock_bits() 52 return -EIO; in parse_clock_bits() 54 if (data & 0x00000001) { in parse_clock_bits() 59 if ((data & 0x00001c00) == clk_entry->mask) { in parse_clock_bits() 60 *src = clk_entry->src; in parse_clock_bits() 65 return -EIO; in parse_clock_bits() [all …]
|
/Linux-v6.1/drivers/misc/ |
D | ad525x_dpot.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (c) 2009-2010 Analog Devices, Inc. 33 * AD5291 1 256 20, 50, 100 (20-TP) 34 * AD5292 1 1024 20, 50, 100 (20-TP) 56 * AD5270 1 1024 20, 50, 100 (50-TP) 57 * AD5271 1 256 20, 50, 100 (50-TP) 58 * AD5272 1 1024 20, 50, 100 (50-TP) 59 * AD5274 1 256 20, 50, 100 (50-TP) 61 * See Documentation/misc-devices/ad525x_dpot.rst for more info. 68 * Copyright (c) 2006-2011 Michael Hennerich <michael.hennerich@analog.com> [all …]
|
/Linux-v6.1/drivers/mfd/ |
D | wm8350-irq.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * wm8350-irq.c -- IRQ support for Wolfson WM8350 36 int reg; member 44 .reg = WM8350_OVER_CURRENT_INT_OFFSET, 50 .reg = WM8350_UNDER_VOLTAGE_INT_OFFSET, 55 .reg = WM8350_UNDER_VOLTAGE_INT_OFFSET, 60 .reg = WM8350_UNDER_VOLTAGE_INT_OFFSET, 65 .reg = WM8350_UNDER_VOLTAGE_INT_OFFSET, 70 .reg = WM8350_UNDER_VOLTAGE_INT_OFFSET, 75 .reg = WM8350_UNDER_VOLTAGE_INT_OFFSET, [all …]
|
/Linux-v6.1/drivers/net/ipa/ |
D | ipa_resource.c | 1 // SPDX-License-Identifier: GPL-2.0 3 /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. 4 * Copyright (C) 2018-2022 Linaro Ltd. 30 const struct ipa_resource_data *data) in ipa_resource_limits_valid() argument 39 group_count = data->rsrc_group_src_count; in ipa_resource_limits_valid() 43 /* Return an error if a non-zero resource limit is specified in ipa_resource_limits_valid() 46 for (i = 0; i < data->resource_src_count; i++) { in ipa_resource_limits_valid() 49 resource = &data->resource_src[i]; in ipa_resource_limits_valid() 51 if (resource->limits[j].min || resource->limits[j].max) in ipa_resource_limits_valid() 55 group_count = data->rsrc_group_dst_count; in ipa_resource_limits_valid() [all …]
|
/Linux-v6.1/drivers/clk/ |
D | clk-si544.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/clk-provider.h> 74 * struct clk_si544_muldiv - Multiplier/divider settings 79 * If ls_div_bits is non-zero, hs_div must be even 80 * @delta_m: Frequency shift for small -950..+950 ppm changes, 24 bit 91 static int si544_enable_output(struct clk_si544 *data, bool enable) in si544_enable_output() argument 93 return regmap_update_bits(data->regmap, SI544_REG_OE_STATE, in si544_enable_output() 99 struct clk_si544 *data = to_clk_si544(hw); in si544_prepare() local 101 return si544_enable_output(data, true); in si544_prepare() 106 struct clk_si544 *data = to_clk_si544(hw); in si544_unprepare() local [all …]
|
/Linux-v6.1/drivers/usb/gadget/udc/ |
D | fusb300_udc.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Author : Yuan-hsin Chen <yhchen@faraday-tech.com> 9 #include <linux/dma-mapping.h> 22 MODULE_AUTHOR("Yuan-Hsin Chen, Feng-Hsin Chiang <john453@faraday-tech.com>"); 39 u32 reg = ioread32(fusb300->reg + offset); in fusb300_enable_bit() local 41 reg |= value; in fusb300_enable_bit() 42 iowrite32(reg, fusb300->reg + offset); in fusb300_enable_bit() 48 u32 reg = ioread32(fusb300->reg + offset); in fusb300_disable_bit() local 50 reg &= ~value; in fusb300_disable_bit() 51 iowrite32(reg, fusb300->reg + offset); in fusb300_disable_bit() [all …]
|