Home
last modified time | relevance | path

Searched +full:reg +full:- +full:data (Results 1 – 25 of 1172) sorted by relevance

12345678910>>...47

/kernel/linux/linux-5.10/drivers/usb/chipidea/
Dusbmisc_imx.c1 // 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 …]
/kernel/linux/linux-6.6/drivers/usb/chipidea/
Dusbmisc_imx.c1 // SPDX-License-Identifier: GPL-2.0+
87 /* For imx6dql, it is host-only controller, for later imx6, it is otg's */
105 /* The default DM/DP value is pull-down */
144 int (*init)(struct imx_usbmisc_data *data);
146 int (*post)(struct imx_usbmisc_data *data);
148 int (*set_wakeup)(struct imx_usbmisc_data *data, bool enabled);
150 int (*hsic_set_connect)(struct imx_usbmisc_data *data);
152 int (*hsic_set_clk)(struct imx_usbmisc_data *data, bool enabled);
154 int (*charger_detection)(struct imx_usbmisc_data *data);
156 int (*power_lost_check)(struct imx_usbmisc_data *data);
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/user_events/
Dftrace_test.c1 // SPDX-License-Identifier: GPL-2.0
33 if (fd == -1) in trace_bytes()
34 return -1; in trace_bytes()
39 if (got == -1) in trace_bytes()
40 return -1; in trace_bytes()
69 return -1; in skip_until_empty_line()
78 return -1; in get_print_fmt()
103 return -1; in get_print_fmt()
113 if (fd == -1) in wait_for_delete()
134 if (fd == -1) in clear()
[all …]
/kernel/linux/linux-5.10/drivers/hwmon/pmbus/
Dpmbus_core.c1 // SPDX-License-Identifier: GPL-2.0-or-later
18 #include <linux/hwmon-sysfs.h>
37 u16 reg; /* register */ member
41 int data; /* Sensor data. member
72 #define pb_reg_to_index(page, reg, mask) (((page) << PB_PAGE_SHIFT) | \ argument
73 ((reg) << PB_REG_SHIFT) | (mask))
83 u32 flags; /* from platform data */
103 s16 currpage; /* current page, -1 for unknown/unset */
104 s16 currphase; /* current phase, 0xff for all, -1 for unknown/unset */
110 u8 reg; member
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/ti/
Ddavinci_mdio.c1 // SPDX-License-Identifier: GPL-2.0+
28 #include <linux/mdio-bitbang.h>
32 * This timeout definition is a worst-case ultra defensive measure against
110 static void davinci_mdio_init_clk(struct davinci_mdio_data *data) in davinci_mdio_init_clk() argument
114 mdio_in = clk_get_rate(data->clk); in davinci_mdio_init_clk()
115 div = (mdio_in / data->pdata.bus_freq) - 1; in davinci_mdio_init_clk()
119 data->clk_div = div; in davinci_mdio_init_clk()
123 * 32 bits of transferred data in davinci_mdio_init_clk()
130 * In the worst case, we could be kicking off a user-access immediately in davinci_mdio_init_clk()
131 * after the mdio bus scan state-machine triggered its own read. If in davinci_mdio_init_clk()
[all …]
/kernel/linux/linux-5.10/sound/firewire/motu/
Dmotu-protocol-v3.c1 // 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>
33 __be32 reg; in snd_motu_protocol_v3_get_clock_rate() local
34 u32 data; in snd_motu_protocol_v3_get_clock_rate() local
37 err = snd_motu_transaction_read(motu, V3_CLOCK_STATUS_OFFSET, &reg, in snd_motu_protocol_v3_get_clock_rate()
38 sizeof(reg)); in snd_motu_protocol_v3_get_clock_rate()
41 data = be32_to_cpu(reg); in snd_motu_protocol_v3_get_clock_rate()
43 data = (data & V3_CLOCK_RATE_MASK) >> V3_CLOCK_RATE_SHIFT; in snd_motu_protocol_v3_get_clock_rate()
44 if (data >= ARRAY_SIZE(snd_motu_clock_rates)) in snd_motu_protocol_v3_get_clock_rate()
[all …]
Dmotu-protocol-v2.c1 // 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>
27 static int get_clock_rate(u32 data, unsigned int *rate) in get_clock_rate() argument
29 unsigned int index = (data & V2_CLOCK_RATE_MASK) >> V2_CLOCK_RATE_SHIFT; in get_clock_rate()
31 return -EIO; in get_clock_rate()
41 __be32 reg; in snd_motu_protocol_v2_get_clock_rate() local
44 err = snd_motu_transaction_read(motu, V2_CLOCK_STATUS_OFFSET, &reg, in snd_motu_protocol_v2_get_clock_rate()
45 sizeof(reg)); in snd_motu_protocol_v2_get_clock_rate()
49 return get_clock_rate(be32_to_cpu(reg), rate); in snd_motu_protocol_v2_get_clock_rate()
[all …]
/kernel/linux/linux-6.6/drivers/thermal/
Darmada_thermal.c1 // SPDX-License-Identifier: GPL-2.0-only
72 struct armada_thermal_data *data; member
85 /* Formula coeficients: temp = (b - m * reg) / div */
122 } data; member
126 * struct armada_thermal_sensor - hold the information of one thermal sensor
139 struct armada_thermal_data *data = priv->data; in armadaxp_init() local
140 u32 reg; in armadaxp_init() local
142 regmap_read(priv->syscon, data->syscon_control1_off, &reg); in armadaxp_init()
143 reg |= PMU_TDC0_OTF_CAL_MASK; in armadaxp_init()
146 reg &= ~PMU_TDC0_REF_CAL_CNT_MASK; in armadaxp_init()
[all …]
/kernel/linux/linux-5.10/drivers/hwmon/
Dw83627ehf.c1 // 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 …]
Dmax6650.c1 // 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 …]
/kernel/linux/linux-5.10/drivers/thermal/
Darmada_thermal.c1 // 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, &reg); 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 …]
/kernel/linux/linux-6.6/drivers/hwmon/
Dw83627ehf.c1 // 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 …]
Dmax6650.c1 // 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 …]
/kernel/linux/linux-6.6/sound/firewire/tascam/
Dtascam-stream.c1 // 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 &reg, 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 …]
/kernel/linux/linux-5.10/sound/firewire/tascam/
Dtascam-stream.c1 // 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 &reg, 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 …]
/kernel/linux/linux-6.6/sound/firewire/motu/
Dmotu-protocol-v3.c1 // 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, &reg, 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 …]
Dmotu-protocol-v1.c1 // 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 …]
/kernel/linux/linux-6.6/drivers/regulator/
Dtps6507x-regulator.c1 // 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 …]
/kernel/linux/linux-5.10/drivers/regulator/
Dtps6507x-regulator.c2 * tps6507x-regulator.c
6 * Copyright (C) 2009 Texas Instrument Incorporated - https://www.ti.com/
41 /* Number of step-down converters available */
121 static inline int tps6507x_pmic_read(struct tps6507x_pmic *tps, u8 reg) in tps6507x_pmic_read() argument
126 err = tps->mfd->read_dev(tps->mfd, reg, 1, &val); in tps6507x_pmic_read()
134 static inline int tps6507x_pmic_write(struct tps6507x_pmic *tps, u8 reg, u8 val) in tps6507x_pmic_write() argument
136 return tps->mfd->write_dev(tps->mfd, reg, 1, &val); in tps6507x_pmic_write()
139 static int tps6507x_pmic_set_bits(struct tps6507x_pmic *tps, u8 reg, u8 mask) in tps6507x_pmic_set_bits() argument
141 int err, data; in tps6507x_pmic_set_bits() local
143 mutex_lock(&tps->io_lock); in tps6507x_pmic_set_bits()
[all …]
/kernel/linux/linux-6.6/drivers/hwmon/pmbus/
Dpmbus_core.c1 // 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))
86 u32 flags; /* from platform data */
108 s16 currpage; /* current page, -1 for unknown/unset */
109 s16 currphase; /* current phase, 0xff for all, -1 for unknown/unset */
118 u8 reg; member
[all …]
/kernel/linux/linux-6.6/drivers/clk/sunxi/
Dclk-sun4i-display.c1 // 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 …]
/kernel/linux/linux-5.10/drivers/clk/sunxi/
Dclk-sun4i-display.c1 // 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 …]
/kernel/linux/linux-5.10/sound/pci/oxygen/
Dxonar_cs43xx.c1 // 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 …]
/kernel/linux/linux-6.6/sound/pci/oxygen/
Dxonar_cs43xx.c1 // 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 …]
/kernel/linux/linux-5.10/drivers/i2c/muxes/
Di2c-mux-reg.c1 // 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 …]

12345678910>>...47