Home
last modified time | relevance | path

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

12345678910>>...52

/Linux-v5.10/drivers/gpu/drm/amd/display/dc/calcs/
Ddce_calcs.c38 * This file is gcc-parseable HW gospel, coming straight from HW engineers.
42 * remain as-is as it provides us with a guarantee from HW that it is correct.
80 struct bw_calcs_data *data) in calculate_bandwidth() argument
126 yclk[low] = vbios->low_yclk; in calculate_bandwidth()
127 yclk[mid] = vbios->mid_yclk; in calculate_bandwidth()
128 yclk[high] = vbios->high_yclk; in calculate_bandwidth()
129 sclk[s_low] = vbios->low_sclk; in calculate_bandwidth()
130 sclk[s_mid1] = vbios->mid1_sclk; in calculate_bandwidth()
131 sclk[s_mid2] = vbios->mid2_sclk; in calculate_bandwidth()
132 sclk[s_mid3] = vbios->mid3_sclk; in calculate_bandwidth()
[all …]
/Linux-v5.10/drivers/iio/common/ssp_sensors/
Dssp_dev.c1 // SPDX-License-Identifier: GPL-2.0-or-later
54 .name = "ssp-accelerometer",
57 .name = "ssp-gyroscope",
61 static void ssp_toggle_mcu_reset_gpio(struct ssp_data *data) in ssp_toggle_mcu_reset_gpio() argument
63 gpiod_set_value(data->mcu_reset_gpiod, 0); in ssp_toggle_mcu_reset_gpio()
65 gpiod_set_value(data->mcu_reset_gpiod, 1); in ssp_toggle_mcu_reset_gpio()
69 static void ssp_sync_available_sensors(struct ssp_data *data) in ssp_sync_available_sensors() argument
74 if (data->available_sensors & BIT(i)) { in ssp_sync_available_sensors()
75 ret = ssp_enable_sensor(data, i, data->delay_buf[i]); in ssp_sync_available_sensors()
77 dev_err(&data->spi->dev, in ssp_sync_available_sensors()
[all …]
/Linux-v5.10/drivers/hwmon/
Dibmpex.c1 // SPDX-License-Identifier: GPL-2.0-or-later
12 #include <linux/hwmon-sysfs.h>
30 static inline u16 extract_value(const char *data, int offset) in extract_value() argument
32 return be16_to_cpup((__be16 *)&data[offset]); in extract_value()
111 static int ibmpex_send_message(struct ibmpex_bmc_data *data) in ibmpex_send_message() argument
115 err = ipmi_validate_addr(&data->address, sizeof(data->address)); in ibmpex_send_message()
119 data->tx_msgid++; in ibmpex_send_message()
120 err = ipmi_request_settime(data->user, &data->address, data->tx_msgid, in ibmpex_send_message()
121 &data->tx_message, data, 0, 0, 0); in ibmpex_send_message()
127 dev_err(data->bmc_device, "request_settime=%x\n", err); in ibmpex_send_message()
[all …]
Dsht15.c1 // SPDX-License-Identifier: GPL-2.0
3 * sht15.c - support for the SHT15 Temperature and Humidity Sensor
5 * Portions Copyright (c) 2010-2012 Savoir-faire Linux Inc.
21 #include <linux/hwmon-sysfs.h>
45 #define SHT15_TSU 150 /* (nsecs) data setup time */
65 * struct sht15_temppair - elements of voltage dependent temp calc
67 * @d1: see data sheet
74 /* Table 9 from datasheet - relates temperature calculation to supply voltage */
76 { 2500000, -39400 },
77 { 3000000, -39600 },
[all …]
Dnct6775.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)
49 #include <linux/hwmon-sysfs.h>
50 #include <linux/hwmon-vid.h>
65 /* used to set data->name = nct6775_device_names[data->sio_kind] */
107 * Super-I/O constants and functions
[all …]
Dibmaem.c1 // SPDX-License-Identifier: GPL-2.0-or-later
15 #include <linux/hwmon-sysfs.h>
139 void (*update)(struct aem_data *data);
173 /* Data structures returned by the AEM firmware */
225 /* Data structures to talk to the IPMI layer */
236 static void aem_remove_sensors(struct aem_data *data);
237 static int aem1_find_sensors(struct aem_data *data);
238 static int aem2_find_sensors(struct aem_data *data);
239 static void update_aem1_sensors(struct aem_data *data);
240 static void update_aem2_sensors(struct aem_data *data);
[all …]
/Linux-v5.10/drivers/thermal/samsung/
Dexynos_tmu.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * exynos_tmu.c - Samsung Exynos TMU (Thermal Management Unit)
24 #include <dt-bindings/thermal/thermal_exynos.h>
140 * struct exynos_tmu_data : A structure to hold the private data of the TMU
154 * @min_efuse_value: minimum valid trimming data
155 * @max_efuse_value: maximum valid trimming data
158 * @gain: gain of amplifier in the positive-TC generator block
161 * in the positive-TC generator block
197 void (*tmu_set_trip_temp)(struct exynos_tmu_data *data, int trip,
199 void (*tmu_set_trip_hyst)(struct exynos_tmu_data *data, int trip,
[all …]
/Linux-v5.10/drivers/leds/trigger/
Dledtrig-pattern.c1 // SPDX-License-Identifier: GPL-2.0
39 static void pattern_trig_update_patterns(struct pattern_trig_data *data) in pattern_trig_update_patterns() argument
41 data->curr = data->next; in pattern_trig_update_patterns()
42 if (!data->is_indefinite && data->curr == data->patterns) in pattern_trig_update_patterns()
43 data->repeat--; in pattern_trig_update_patterns()
45 if (data->next == data->patterns + data->npatterns - 1) in pattern_trig_update_patterns()
46 data->next = data->patterns; in pattern_trig_update_patterns()
48 data->next++; in pattern_trig_update_patterns()
50 data->delta_t = 0; in pattern_trig_update_patterns()
53 static int pattern_trig_compute_brightness(struct pattern_trig_data *data) in pattern_trig_compute_brightness() argument
[all …]
/Linux-v5.10/drivers/gnss/
Dsirf.c1 // SPDX-License-Identifier: GPL-2.0
29 * If no data arrives for this time, we assume that the chip is off.
32 * low value. Also power saving settings (like send data only on movement)
58 static int sirf_serdev_open(struct sirf_data *data) in sirf_serdev_open() argument
62 mutex_lock(&data->serdev_mutex); in sirf_serdev_open()
63 if (++data->serdev_count == 1) { in sirf_serdev_open()
64 ret = serdev_device_open(data->serdev); in sirf_serdev_open()
66 data->serdev_count--; in sirf_serdev_open()
70 serdev_device_set_baudrate(data->serdev, data->speed); in sirf_serdev_open()
71 serdev_device_set_flow_control(data->serdev, false); in sirf_serdev_open()
[all …]
/Linux-v5.10/drivers/spi/
Dspi-topcliff-pch.c1 // SPDX-License-Identifier: GPL-2.0-only
26 #define PCH_SPDWR 0x0C /* SPI write data register */
27 #define PCH_SPDRR 0x10 /* SPI read data register */
79 #define MASK_SPBRR_SPBR_BITS ((1 << 10) - 1)
123 * struct pch_spi_data - Holds the SPI channel specific details
135 * @bpw_len: Length of data to be transferred in bits per
138 * @tx_index: Transmit data count; for bookkeeping during
140 * @rx_index: Receive data count; for bookkeeping during
142 * @pkt_tx_buff: Buffer for data to be transmitted
143 * @pkt_rx_buff: Buffer for received data
[all …]
/Linux-v5.10/drivers/power/supply/
Dsc27xx_fuel_gauge.c1 // SPDX-License-Identifier: GPL-2.0
10 #include <linux/nvmem-consumer.h>
124 static int sc27xx_fgu_cap_to_clbcnt(struct sc27xx_fgu_data *data, int capacity);
125 static void sc27xx_fgu_capacity_calibration(struct sc27xx_fgu_data *data,
127 static void sc27xx_fgu_adjust_cap(struct sc27xx_fgu_data *data, int cap);
128 static int sc27xx_fgu_get_temp(struct sc27xx_fgu_data *data, int *temp);
137 static int sc27xx_fgu_adc_to_current(struct sc27xx_fgu_data *data, s64 adc) in sc27xx_fgu_adc_to_current() argument
139 return DIV_S64_ROUND_CLOSEST(adc * 1000, data->cur_1000ma_adc); in sc27xx_fgu_adc_to_current()
142 static int sc27xx_fgu_adc_to_voltage(struct sc27xx_fgu_data *data, s64 adc) in sc27xx_fgu_adc_to_voltage() argument
144 return DIV_S64_ROUND_CLOSEST(adc * 1000, data->vol_1000mv_adc); in sc27xx_fgu_adc_to_voltage()
[all …]
/Linux-v5.10/drivers/input/misc/
Dcma3000_d0x.c1 // SPDX-License-Identifier: GPL-2.0-only
73 #define CMA3000_READ(data, reg, msg) \ argument
74 (data->bus_ops->read(data->dev, reg, msg))
75 #define CMA3000_SET(data, reg, val, msg) \ argument
76 ((data)->bus_ops->write(data->dev, reg, val, msg))
95 static void decode_mg(struct cma3000_accl_data *data, int *datax, in decode_mg() argument
98 /* Data in 2's complement, convert to mg */ in decode_mg()
99 *datax = ((s8)*datax) * data->bit_to_mg; in decode_mg()
100 *datay = ((s8)*datay) * data->bit_to_mg; in decode_mg()
101 *dataz = ((s8)*dataz) * data->bit_to_mg; in decode_mg()
[all …]
/Linux-v5.10/drivers/rtc/
Drtc-snvs.c1 // SPDX-License-Identifier: GPL-2.0+
3 // Copyright (C) 2011-2012 Freescale Semiconductor, Inc.
44 static u64 rtc_read_lpsrt(struct snvs_rtc_data *data) in rtc_read_lpsrt() argument
48 regmap_read(data->regmap, data->offset + SNVS_LPSRTCMR, &msb); in rtc_read_lpsrt()
49 regmap_read(data->regmap, data->offset + SNVS_LPSRTCLR, &lsb); in rtc_read_lpsrt()
56 static u32 rtc_read_lp_counter(struct snvs_rtc_data *data) in rtc_read_lp_counter() argument
65 read1 = rtc_read_lpsrt(data); in rtc_read_lp_counter()
68 read1 = rtc_read_lpsrt(data); in rtc_read_lp_counter()
69 } while (read1 != read2 && --timeout); in rtc_read_lp_counter()
71 dev_err(&data->rtc->dev, "Timeout trying to get valid LPSRT Counter read\n"); in rtc_read_lp_counter()
[all …]
/Linux-v5.10/drivers/platform/x86/
Dsystem76_acpi.c1 // SPDX-License-Identifier: GPL-2.0+
45 // Array of keyboard LED colors in 24-bit RGB format
57 static int system76_get(struct system76_data *data, char *method) in system76_get() argument
63 handle = acpi_device_handle(data->acpi_dev); in system76_get()
68 return -1; in system76_get()
72 static int system76_set(struct system76_data *data, char *method, int value) in system76_set() argument
83 handle = acpi_device_handle(data->acpi_dev); in system76_set()
88 return -1; in system76_set()
94 struct system76_data *data; in ap_led_get() local
97 data = container_of(led, struct system76_data, ap_led); in ap_led_get()
[all …]
/Linux-v5.10/arch/powerpc/platforms/powernv/
Dpci.c1 // SPDX-License-Identifier: GPL-2.0-or-later
22 #include <asm/pci-bridge.h>
25 #include <asm/ppc-pci.h>
26 #include <asm/pnv-pci.h>
48 return -ENXIO; in pnv_pci_get_slot_id()
57 if (!of_device_is_compatible(node, "ibm,ioda2-phb") && in pnv_pci_get_slot_id()
58 !of_device_is_compatible(node, "ibm,ioda3-phb") && in pnv_pci_get_slot_id()
59 !of_device_is_compatible(node, "ibm,ioda2-npu2-opencapi-phb")) { in pnv_pci_get_slot_id()
64 ret = of_property_read_u64(node, "ibm,opal-phbid", &phbid); in pnv_pci_get_slot_id()
67 return -ENXIO; in pnv_pci_get_slot_id()
[all …]
/Linux-v5.10/tools/perf/util/
Ddata.c1 // SPDX-License-Identifier: GPL-2.0
15 #include "data.h"
23 while (--nr >= 1) { in close_dir()
30 void perf_data__close_dir(struct perf_data *data) in perf_data__close_dir() argument
32 close_dir(data->dir.files, data->dir.nr); in perf_data__close_dir()
35 int perf_data__create_dir(struct perf_data *data, int nr) in perf_data__create_dir() argument
38 int i, ret = -1; in perf_data__create_dir()
40 if (WARN_ON(!data->is_dir)) in perf_data__create_dir()
41 return -EINVAL; in perf_data__create_dir()
45 return -ENOMEM; in perf_data__create_dir()
[all …]
/Linux-v5.10/drivers/usb/chipidea/
Dci_hdrc_imx.c1 // SPDX-License-Identifier: GPL-2.0+
73 { .compatible = "fsl,imx23-usb", .data = &imx23_usb_data},
74 { .compatible = "fsl,imx28-usb", .data = &imx28_usb_data},
75 { .compatible = "fsl,imx27-usb", .data = &imx27_usb_data},
76 { .compatible = "fsl,imx6q-usb", .data = &imx6q_usb_data},
77 { .compatible = "fsl,imx6sl-usb", .data = &imx6sl_usb_data},
78 { .compatible = "fsl,imx6sx-usb", .data = &imx6sx_usb_data},
79 { .compatible = "fsl,imx6ul-usb", .data = &imx6ul_usb_data},
80 { .compatible = "fsl,imx7d-usb", .data = &imx7d_usb_data},
81 { .compatible = "fsl,imx7ulp-usb", .data = &imx7ulp_usb_data},
[all …]
/Linux-v5.10/lib/pldmfw/
Dpldmfw.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (C) 2018-2019, Intel Corporation. */
53 * pldm_check_fw_space - Verify that the firmware image has space left
54 * @data: pointer to private data
58 * Verify that the firmware data can hold a chunk of bytes with the specified
61 * Returns: zero on success, or -EFAULT if the image does not have enough
65 pldm_check_fw_space(struct pldmfw_priv *data, size_t offset, size_t length) in pldm_check_fw_space() argument
68 struct device *dev = data->context->dev; in pldm_check_fw_space()
70 if (data->fw->size < expected_size) { in pldm_check_fw_space()
72 data->fw->size, expected_size); in pldm_check_fw_space()
[all …]
/Linux-v5.10/drivers/input/mouse/
Delan_i2c_core.c1 // SPDX-License-Identifier: GPL-2.0-only
12 * copyright (c) 2011-2012 Cypress Semiconductor, Inc.
13 * copyright (c) 2011-2012 Google, Inc.
37 #include <linux/input/elan-i2c-ids.h>
149 return -ENXIO; in elan_get_fwinfo()
153 (*validpage_count * ETP_FW_PAGE_SIZE) - ETP_FW_SIGNATURE_SIZE; in elan_get_fwinfo()
168 static int elan_enable_power(struct elan_tp_data *data) in elan_enable_power() argument
173 error = regulator_enable(data->vcc); in elan_enable_power()
175 dev_err(&data->client->dev, in elan_enable_power()
181 error = data->ops->power_control(data->client, true); in elan_enable_power()
[all …]
/Linux-v5.10/drivers/net/ethernet/tundra/
Dtsi108_eth.c1 // SPDX-License-Identifier: GPL-2.0-or-later
14 * - porting to Tsi108-based platform and kernel 2.6 (kong.lai@tundra.com)
15 * - modifications to handle two ports independently and support for
17 * - Get hardware information from platform device. (tie-fei.zang@freescale.com)
82 unsigned int rxpending; /* Non-zero if there are still descriptors
153 .name = "tsi-ethernet",
162 struct tsi108_prv_data *data = netdev_priv(dev); in dump_eth_one() local
164 printk("Dumping %s...\n", dev->name); in dump_eth_one()
168 TSI_READ(TSI108_EC_INTMASK), data->phy_ok, in dump_eth_one()
169 data->link_up, data->speed, data->duplex); in dump_eth_one()
[all …]
/Linux-v5.10/drivers/input/touchscreen/
Datmel_mxt_ts.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * Copyright (C) 2011-2014 Atmel Corporation
29 #include <media/v4l2-device.h>
30 #include <media/v4l2-ioctl.h>
31 #include <media/videobuf2-v4l2.h>
32 #include <media/videobuf2-vmalloc.h>
149 u8 data[MXT_DIAGNOSTIC_SIZE]; member
279 /* Each client has this additional data */
352 return obj->size_minus_one + 1; in mxt_obj_size()
357 return obj->instances_minus_one + 1; in mxt_obj_instances()
[all …]
/Linux-v5.10/drivers/iio/imu/
Dkmx61.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * KMX61 - Kionix 6-axis Accelerometer/Magnetometer
7 * IIO driver for KMX61 (7-bit I2C slave address 0x0E or 0x0F).
32 * three 16-bit accelerometer output registers for X/Y/Z axis
45 * one 16-bit temperature output register
51 * three 16-bit magnetometer output registers for X/Y/Z axis
118 /* serialize access to non-atomic ops, e.g set_mode */
135 /* accelerometer specific data */
143 /* magnetometer specific data */
279 static void kmx61_set_data(struct iio_dev *indio_dev, struct kmx61_data *data) in kmx61_set_data() argument
[all …]
/Linux-v5.10/drivers/iio/light/
Dus5182d.c1 // SPDX-License-Identifier: GPL-2.0-only
47 * DARK_TH(reg 0x27,0x28) - threshold (counts) for auto dark cancelling.
48 * when ALS > DARK_TH --> ALS_Code = ALS - Upper(0x2A) * Dark
49 * when ALS < DARK_TH --> ALS_Code = ALS - Lower(0x29) * Dark
56 /* Thresholds for events: px low (0x08-l, 0x09-h), px high (0x0a-l 0x0b-h) */
101 * roughly between 12-32 lux
198 static int us5182d_oneshot_en(struct us5182d_data *data) in us5182d_oneshot_en() argument
202 ret = i2c_smbus_read_byte_data(data->client, US5182D_REG_CFG0); in us5182d_oneshot_en()
212 return i2c_smbus_write_byte_data(data->client, US5182D_REG_CFG0, ret); in us5182d_oneshot_en()
215 static int us5182d_set_opmode(struct us5182d_data *data, u8 mode) in us5182d_set_opmode() argument
[all …]
/Linux-v5.10/drivers/media/rc/
Dwinbond-cir.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * winbond-cir.c - Driver for the Consumer IR functionality of Winbond
12 * Copyright (C) 2009 - 2011 David Härdeman <david@hardeman.nu>
26 * o Wake-On-CIR functionality
44 #include <media/rc-core.h>
46 #define DRVNAME "winbond-cir"
48 /* CEIR Wake-Up Registers, relative to data->wbase */
55 #define WBCIR_REG_WCEIR_DATA 0x09 /* CEIR Receiver Data */
60 /* CEIR Enhanced Functionality Registers, relative to data->ebase */
67 /* SP3 Banked Registers, relative to data->sbase */
[all …]
/Linux-v5.10/drivers/bluetooth/
Dbcm203x.c1 // SPDX-License-Identifier: GPL-2.0-or-later
66 struct bcm203x_data *data = urb->context; in bcm203x_complete() local
67 struct usb_device *udev = urb->dev; in bcm203x_complete()
72 if (urb->status) { in bcm203x_complete()
73 BT_ERR("URB failed with status %d", urb->status); in bcm203x_complete()
74 data->state = BCM203X_ERROR; in bcm203x_complete()
78 switch (data->state) { in bcm203x_complete()
80 memcpy(data->buffer, "#", 1); in bcm203x_complete()
83 data->buffer, 1, bcm203x_complete, data); in bcm203x_complete()
85 data->state = BCM203X_SELECT_MEMORY; in bcm203x_complete()
[all …]

12345678910>>...52