Home
last modified time | relevance | path

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

12345678910>>...44

/openbmc/linux/drivers/usb/chipidea/
H A 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 …]
/openbmc/linux/tools/testing/selftests/user_events/
H A 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 …]
/openbmc/linux/drivers/net/ethernet/ti/
H A 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 …]
/openbmc/linux/drivers/hwmon/
H A 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 …]
H A 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 …]
H A Dnct6775-core.c1 // 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)
36 * nct6796d-s 18 7 7 6+2 0xd801 0xc1 0x5ca3
37 * nct6799d-r 18 7 7 6+2 0xd802 0xc1 0x5ca3
50 #include <linux/hwmon-sysfs.h>
64 /* used to set data->name = nct6775_device_names[data->sio_kind] */
[all …]
/openbmc/linux/drivers/thermal/
H A 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 …]
/openbmc/linux/sound/firewire/tascam/
H A 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 …]
/openbmc/linux/sound/firewire/motu/
H A 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 …]
H A 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 …]
H A 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>
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, &reg, 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 …]
/openbmc/linux/drivers/regulator/
H A 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 …]
/openbmc/linux/drivers/hwmon/pmbus/
H A 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, mas argument
118 u8 reg; global() member
144 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_clear_cache() local
152 pmbus_set_update(struct i2c_client * client,u8 reg,bool update) pmbus_set_update() argument
154 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_set_update() local
165 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_set_page() local
227 struct pmbus_data *data = i2c_get_clientdata(client); _pmbus_write_byte() local
239 pmbus_write_word_data(struct i2c_client * client,int page,u8 reg,u16 word) pmbus_write_word_data() argument
253 pmbus_write_virt_reg(struct i2c_client * client,int page,int reg,u16 word) pmbus_write_virt_reg() argument
278 _pmbus_write_word_data(struct i2c_client * client,int page,int reg,u16 word) _pmbus_write_word_data() argument
281 struct pmbus_data *data = i2c_get_clientdata(client); _pmbus_write_word_data() local
301 _pmbus_write_byte_data(struct i2c_client * client,int page,int reg,u8 value) _pmbus_write_byte_data() argument
303 struct pmbus_data *data = i2c_get_clientdata(client); _pmbus_write_byte_data() local
319 _pmbus_read_byte_data(struct i2c_client * client,int page,int reg) _pmbus_read_byte_data() argument
321 struct pmbus_data *data = i2c_get_clientdata(client); _pmbus_read_byte_data() local
358 pmbus_read_word_data(struct i2c_client * client,int page,int phase,u8 reg) pmbus_read_word_data() argument
370 pmbus_read_virt_reg(struct i2c_client * client,int page,int reg) pmbus_read_virt_reg() argument
393 _pmbus_read_word_data(struct i2c_client * client,int page,int phase,int reg) _pmbus_read_word_data() argument
395 struct pmbus_data *data = i2c_get_clientdata(client); _pmbus_read_word_data() local
412 __pmbus_read_word_data(struct i2c_client * client,int page,int reg) __pmbus_read_word_data() argument
417 pmbus_read_byte_data(struct i2c_client * client,int page,u8 reg) pmbus_read_byte_data() argument
429 pmbus_write_byte_data(struct i2c_client * client,int page,u8 reg,u8 value) pmbus_write_byte_data() argument
441 pmbus_update_byte_data(struct i2c_client * client,int page,u8 reg,u8 mask,u8 value) pmbus_update_byte_data() argument
460 pmbus_read_block_data(struct i2c_client * client,int page,u8 reg,char * data_buf) pmbus_read_block_data() argument
472 pmbus_find_sensor(struct pmbus_data * data,int page,int reg) pmbus_find_sensor() argument
473 pmbus_find_sensor(struct pmbus_data * data,int page,int reg) pmbus_find_sensor() argument
489 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_get_fan_rate() local
493 int reg; pmbus_get_fan_rate() local
541 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_clear_faults() local
551 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_check_status_cml() local
565 pmbus_check_register(struct i2c_client * client,int (* func)(struct i2c_client * client,int page,int reg),int page,int reg) pmbus_check_register() argument
569 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_check_register() local
584 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_check_status_register() local
598 pmbus_check_byte_register(struct i2c_client * client,int page,int reg) pmbus_check_byte_register() argument
604 pmbus_check_word_register(struct i2c_client * client,int page,int reg) pmbus_check_word_register() argument
611 pmbus_check_block_register(struct i2c_client * client,int page,int reg) pmbus_check_block_register() argument
614 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_check_block_register() local
628 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_get_driver_info() local
634 pmbus_get_status(struct i2c_client * client,int page,int reg) pmbus_get_status() argument
636 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_get_status() local
678 pmbus_reg2data_ieee754(struct pmbus_data * data,struct pmbus_sensor * sensor) pmbus_reg2data_ieee754() argument
723 pmbus_reg2data_linear(struct pmbus_data * data,struct pmbus_sensor * sensor) pmbus_reg2data_linear() argument
760 pmbus_reg2data_direct(struct pmbus_data * data,struct pmbus_sensor * sensor) pmbus_reg2data_direct() argument
804 pmbus_reg2data_vid(struct pmbus_data * data,struct pmbus_sensor * sensor) pmbus_reg2data_vid() argument
835 pmbus_reg2data(struct pmbus_data * data,struct pmbus_sensor * sensor) pmbus_reg2data() argument
863 pmbus_data2reg_ieee754(struct pmbus_data * data,struct pmbus_sensor * sensor,long val) pmbus_data2reg_ieee754() argument
927 pmbus_data2reg_linear(struct pmbus_data * data,struct pmbus_sensor * sensor,s64 val) pmbus_data2reg_linear() argument
992 pmbus_data2reg_direct(struct pmbus_data * data,struct pmbus_sensor * sensor,s64 val) pmbus_data2reg_direct() argument
1027 pmbus_data2reg_vid(struct pmbus_data * data,struct pmbus_sensor * sensor,s64 val) pmbus_data2reg_vid() argument
1035 pmbus_data2reg(struct pmbus_data * data,struct pmbus_sensor * sensor,s64 val) pmbus_data2reg() argument
1087 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_get_boolean() local
1092 u16 reg = pb_index_to_reg(index); pmbus_get_boolean() local
1161 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_show_sensor() local
1179 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_set_sensor() local
1208 pmbus_add_attribute(struct pmbus_data * data,struct attribute * attr) pmbus_add_attribute() argument
1258 pmbus_add_boolean(struct pmbus_data * data,const char * name,const char * type,int seq,struct pmbus_sensor * s1,struct pmbus_sensor * s2,u8 page,u16 reg,u16 mask) pmbus_add_boolean() argument
1262 pmbus_add_boolean(struct pmbus_data * data,const char * name,const char * type,int seq,struct pmbus_sensor * s1,struct pmbus_sensor * s2,u8 page,u16 reg,u16 mask) pmbus_add_boolean() argument
1348 pmbus_add_sensor(struct pmbus_data * data,const char * name,const char * type,int seq,int page,int phase,int reg,enum pmbus_sensor_classes class,bool update,bool readonly,bool convert) pmbus_add_sensor() argument
1351 pmbus_add_sensor(struct pmbus_data * data,const char * name,const char * type,int seq,int page,int phase,int reg,enum pmbus_sensor_classes class,bool update,bool readonly,bool convert) pmbus_add_sensor() argument
1398 pmbus_add_label(struct pmbus_data * data,const char * name,int seq,const char * lstring,int index,int phase) pmbus_add_label() argument
1441 u16 reg; /* Limit register */ global() member
1455 u16 reg; /* sensor register */ global() member
1476 pmbus_add_limit_attrs(struct i2c_client * client,struct pmbus_data * data,const struct pmbus_driver_info * info,const char * name,int index,int page,struct pmbus_sensor * base,const struct pmbus_sensor_attr * attr) pmbus_add_limit_attrs() argument
1515 pmbus_add_sensor_attrs_one(struct i2c_client * client,struct pmbus_data * data,const struct pmbus_driver_info * info,const char * name,int index,int page,int phase,const struct pmbus_sensor_attr * attr,bool paged) pmbus_add_sensor_attrs_one() argument
1587 pmbus_add_sensor_attrs(struct i2c_client * client,struct pmbus_data * data,const char * name,const struct pmbus_sensor_attr * attrs,int nattrs) pmbus_add_sensor_attrs() argument
2156 pmbus_add_fan_ctrl(struct i2c_client * client,struct pmbus_data * data,int index,int page,int id,u8 config) pmbus_add_fan_ctrl() argument
2190 pmbus_add_fan_attributes(struct i2c_client * client,struct pmbus_data * data) pmbus_add_fan_attributes() argument
2242 int reg; pmbus_add_fan_attributes() local
2266 int reg; global() member
2302 struct pmbus_samples_reg *reg = to_samples_reg(devattr); pmbus_show_samples() local
2303 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_show_samples() local
2321 struct pmbus_samples_reg *reg = to_samples_reg(devattr); pmbus_set_samples() local
2322 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_set_samples() local
2334 pmbus_add_samples_attr(struct pmbus_data * data,int page,struct pmbus_samples_attr * attr) pmbus_add_samples_attr() argument
2337 struct pmbus_samples_reg *reg; pmbus_add_samples_attr() local
2353 pmbus_add_samples_attributes(struct i2c_client * client,struct pmbus_data * data) pmbus_add_samples_attributes() argument
2378 pmbus_find_attributes(struct i2c_client * client,struct pmbus_data * data) pmbus_find_attributes() argument
2461 union i2c_smbus_data data; pmbus_read_coefficients() local
2525 pmbus_identify_common(struct i2c_client * client,struct pmbus_data * data,int page) pmbus_identify_common() argument
2610 pmbus_init_common(struct i2c_client * client,struct pmbus_data * data,struct pmbus_driver_info * info) pmbus_init_common() argument
2725 int reg; global() member
2783 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_is_enabled() local
2796 pmbus_notify(struct pmbus_data * data,int page,int reg,int flags) pmbus_notify() argument
2820 _pmbus_get_flags(struct pmbus_data * data,u8 page,unsigned int * flags,unsigned int * event,bool notify) _pmbus_get_flags() argument
2905 pmbus_get_flags(struct pmbus_data * data,u8 page,unsigned int * flags,unsigned int * event,bool notify) pmbus_get_flags() argument
2930 struct pmbus_data *data = i2c_get_clientdata(client); _pmbus_regulator_on_off() local
2957 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_regulator_get_error_flags() local
2967 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_regulator_get_status() local
3009 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_regulator_get_low_margin() local
3035 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_regulator_get_high_margin() local
3063 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_regulator_get_voltage() local
3082 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_regulator_set_voltage() local
3154 pmbus_regulator_register(struct pmbus_data * data) pmbus_regulator_register() argument
3186 pmbus_regulator_notify(struct pmbus_data * data,int page,int event) pmbus_regulator_notify() argument
3199 pmbus_regulator_register(struct pmbus_data * data) pmbus_regulator_register() argument
3204 pmbus_regulator_notify(struct pmbus_data * data,int page,int event) pmbus_regulator_notify() argument
3210 pmbus_write_smbalert_mask(struct i2c_client * client,u8 page,u8 reg,u8 val) pmbus_write_smbalert_mask() argument
3227 struct pmbus_data *data = pdata; pmbus_fault_handler() local
3245 pmbus_irq_setup(struct i2c_client * client,struct pmbus_data * data) pmbus_irq_setup() argument
3295 pmbus_debugfs_get(void * data,u64 * val) pmbus_debugfs_get() argument
3316 pmbus_debugfs_get_status(void * data,u64 * val) pmbus_debugfs_get_status() argument
3343 char data[I2C_SMBUS_BLOCK_MAX + 2] = { 0 }; pmbus_debugfs_mfr_read() local
3370 pmbus_remove_debugfs(void * data) pmbus_remove_debugfs() argument
3378 pmbus_init_debugfs(struct i2c_client * client,struct pmbus_data * data) pmbus_init_debugfs() argument
3581 pmbus_init_debugfs(struct i2c_client * client,struct pmbus_data * data) pmbus_init_debugfs() argument
3591 struct pmbus_data *data; pmbus_do_probe() local
3682 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_get_debugfs_dir() local
3690 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_lock_interruptible() local
3698 struct pmbus_data *data = i2c_get_clientdata(client); pmbus_unlock() local
[all...]
/openbmc/qemu/hw/core/
H A Dregister.c23 static inline void register_write_val(RegisterInfo *reg, uint64_t val) in register_write_val() argument
25 g_assert(reg->data); in register_write_val()
27 switch (reg->data_size) { in register_write_val()
29 *(uint8_t *)reg->data = val; in register_write_val()
32 *(uint16_t *)reg->data = val; in register_write_val()
35 *(uint32_t *)reg->data = val; in register_write_val()
38 *(uint64_t *)reg->data = val; in register_write_val()
45 static inline uint64_t register_read_val(RegisterInfo *reg) in register_read_val() argument
47 switch (reg->data_size) { in register_read_val()
49 return *(uint8_t *)reg->data; in register_read_val()
[all …]
/openbmc/linux/drivers/clk/sunxi/
H A 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 …]
/openbmc/linux/sound/pci/oxygen/
H A 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 …]
/openbmc/linux/drivers/i2c/muxes/
H A 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 …]
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bus/
H A Dhwsq.h1 /* 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 …]
/openbmc/qemu/hw/xen/
H A Dxen_pt_config_init.c6 * the COPYING file in the top-level directory.
20 #include "hw/xen/xen-legacy-backend.h"
22 #define XEN_PT_MERGE_VALUE(value, data, val_mask) \ argument
23 (((value) & (val_mask)) | ((data) & ~(val_mask)))
29 static int xen_pt_ptr_reg_init(XenPCIPassthroughState *s, XenPTRegInfo *reg,
30 uint32_t real_offset, uint32_t *data);
53 if (d->vendor_id == PCI_VENDOR_ID_INTEL && in xen_pt_hide_dev_cap()
54 d->device_id == PCI_DEVICE_ID_INTEL_82599_SFP_VF) { in xen_pt_hide_dev_cap()
68 QLIST_FOREACH(entry, &s->reg_grps, entries) { in xen_pt_find_reg_grp()
70 if ((entry->base_offset <= address) in xen_pt_find_reg_grp()
[all …]
/openbmc/linux/drivers/net/ipa/
H A Dipa_resource.c1 // 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 …]
/openbmc/linux/drivers/usb/cdns3/
H A Dcdns3-ti.c1 // 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>
79 static inline u32 cdns_ti_readl(struct cdns_ti *data, u32 offset) in cdns_ti_readl()
81 return readl(data->usbs in cdns_ti_readl()
78 cdns_ti_readl(struct cdns_ti * data,u32 offset) cdns_ti_readl() argument
83 cdns_ti_writel(struct cdns_ti * data,u32 offset,u32 value) cdns_ti_writel() argument
92 struct cdns_ti *data; cdns_ti_probe() local
94 u32 reg; cdns_ti_probe() local
[all...]
/openbmc/linux/drivers/mfd/
H A Dwm8350-irq.c1 // 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 …]
/openbmc/linux/drivers/misc/
H A Dad525x_dpot.c1 // 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 …]
/openbmc/linux/drivers/usb/typec/tcpm/
H A Dtcpci.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2015-2017 Google, Inc
5 * USB Type-C Port Controller Interface.
41 struct tcpci_data *data; member
46 struct tcpci_data data; member
51 return tcpci->port; in tcpci_get_tcpm_port()
60 static int tcpci_read16(struct tcpci *tcpci, unsigned int reg, u16 *val) in tcpci_read16() argument
62 return regmap_raw_read(tcpci->regmap, reg, val, sizeof(u16)); in tcpci_read16()
65 static int tcpci_write16(struct tcpci *tcpci, unsigned int reg, u16 val) in tcpci_write16() argument
67 return regmap_raw_write(tcpci->regmap, reg, &val, sizeof(u16)); in tcpci_write16()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/igc/
H A Digc_diag.c1 // SPDX-License-Identifier: GPL-2.0
35 static bool reg_pattern_test(struct igc_adapter *adapter, u64 *data, int reg, in reg_pattern_test() argument
38 struct igc_hw *hw = &adapter->hw; in reg_pattern_test()
45 before = rd32(reg); in reg_pattern_test()
46 wr32(reg, test_pattern[pat] & write); in reg_pattern_test()
47 val = rd32(reg); in reg_pattern_test()
49 netdev_err(adapter->netdev, in reg_pattern_test()
50 "pattern test reg %04X failed: got 0x%08X expected 0x%08X", in reg_pattern_test()
51 reg, val, test_pattern[pat] & write & mask); in reg_pattern_test()
52 *data = reg; in reg_pattern_test()
[all …]

12345678910>>...44