Home
last modified time | relevance | path

Searched full:data (Results 1 – 25 of 8645) sorted by relevance

12345678910>>...346

/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/calcs/
Ddce_calcs.c80 struct bw_calcs_data *data) in calculate_bandwidth() argument
157 if (data->d0_underlay_mode == bw_def_none) in calculate_bandwidth()
161 if (data->d1_underlay_mode == bw_def_none) in calculate_bandwidth()
165 data->number_of_underlay_surfaces = d0_underlay_enable + d1_underlay_enable; in calculate_bandwidth()
166 switch (data->underlay_surface_type) { in calculate_bandwidth()
170 data->bytes_per_pixel[0] = 1; in calculate_bandwidth()
171 data->bytes_per_pixel[2] = 1; in calculate_bandwidth()
174 data->bytes_per_pixel[1] = 2; in calculate_bandwidth()
175 data->bytes_per_pixel[3] = 2; in calculate_bandwidth()
176 data->lb_size_per_component[0] = dceip->underlay420_luma_lb_size_per_component; in calculate_bandwidth()
[all …]
/kernel/linux/linux-5.10/drivers/iio/common/ssp_sensors/
Dssp_dev.c61 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()
84 ret = ssp_command(data, SSP_MSG2SSP_AP_MCU_SET_DUMPMODE, in ssp_sync_available_sensors()
85 data->mcu_dump_mode); in ssp_sync_available_sensors()
87 dev_err(&data->spi->dev, in ssp_sync_available_sensors()
[all …]
/kernel/linux/linux-5.10/drivers/hwmon/
Dibmpex.c30 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()
130 dev_err(data->bmc_device, "validate_addr=%x\n", err); in ibmpex_send_message()
134 static int ibmpex_ver_check(struct ibmpex_bmc_data *data) in ibmpex_ver_check() argument
[all …]
Dsht15.c45 #define SHT15_TSU 150 /* (nsecs) data setup time */
67 * @d1: see data sheet
120 * struct sht15_data - device instance specific data
122 * @data: data GPIO line
129 * @checksumming: flag used to enable the data validation with CRC.
151 struct gpio_desc *data; member
177 * @data: sht15 specific data.
178 * @value: sht15 retrieved data.
179 * @len: Length of retrieved data
183 static u8 sht15_crc8(struct sht15_data *data, in sht15_crc8() argument
[all …]
Dnct6775.c65 /* used to set data->name = nct6775_device_names[data->sio_kind] */
210 /* Common and NCT6775 specific data */
340 #define NCT6775_AUTO_TEMP(data, nr, p) ((data)->REG_AUTO_TEMP[nr] + (p)) argument
341 #define NCT6775_AUTO_PWM(data, nr, p) ((data)->REG_AUTO_PWM[nr] + (p)) argument
394 /* NCT6776 specific data */
477 /* NCT6779 specific data */
578 /* NCT6791 specific data */
601 /* NCT6792/NCT6793 specific data */
798 /* NCT6102D/NCT6106D specific data */
901 /* NCT6112D/NCT6114D/NCT6116D specific data */
[all …]
Dw83627ehf.c54 /* used to set data->name = w83627ehf_device_names[data->sio_kind] */
83 #define SIO_REG_VID_DATA 0xF1 /* VID data */
302 * Data structures and manipulation thereof
394 static inline void w83627ehf_set_bank(struct w83627ehf_data *data, u16 reg) in w83627ehf_set_bank() argument
397 if (data->bank != bank) { in w83627ehf_set_bank()
398 outb_p(W83627EHF_REG_BANK, data->addr + ADDR_REG_OFFSET); in w83627ehf_set_bank()
399 outb_p(bank, data->addr + DATA_REG_OFFSET); in w83627ehf_set_bank()
400 data->bank = bank; in w83627ehf_set_bank()
404 static u16 w83627ehf_read_value(struct w83627ehf_data *data, u16 reg) in w83627ehf_read_value() argument
408 mutex_lock(&data->lock); in w83627ehf_read_value()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/panel/
Dpanel-feixin-k101-im2ba02.c39 u8 data[K101_IM2BA02_INIT_CMD_LEN]; member
44 { .data = { 0xE0, 0x00 } },
47 { .data = { 0xE1, 0x93} },
48 { .data = { 0xE2, 0x65 } },
49 { .data = { 0xE3, 0xF8 } },
52 { .data = { 0x80, 0x03 } },
55 { .data = { 0x70, 0x02 } },
56 { .data = { 0x71, 0x23 } },
57 { .data = { 0x72, 0x06 } },
60 { .data = { 0xE0, 0x01 } },
[all …]
/kernel/linux/linux-5.10/drivers/thermal/samsung/
Dexynos_tmu.c140 * 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
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,
203 int (*tmu_read)(struct exynos_tmu_data *data);
204 void (*tmu_set_emulation)(struct exynos_tmu_data *data, int temp);
205 void (*tmu_clear_irqs)(struct exynos_tmu_data *data);
212 static int temp_to_code(struct exynos_tmu_data *data, u8 temp) in temp_to_code() argument
214 if (data->cal_type == TYPE_ONE_POINT_TRIMMING) in temp_to_code()
[all …]
/kernel/linux/linux-5.10/drivers/gnss/
Dsirf.c29 * 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()
75 mutex_unlock(&data->serdev_mutex); in sirf_serdev_open()
[all …]
/kernel/linux/linux-5.10/drivers/leds/trigger/
Dledtrig-pattern.c39 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
62 if (data->delta_t == 0 || data->curr->delta_t < UPDATE_INTERVAL) in pattern_trig_compute_brightness()
[all …]
/kernel/linux/linux-5.10/drivers/platform/x86/
Dsystem76_acpi.c57 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()
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()
94 struct system76_data *data; in ap_led_get() local
97 data = container_of(led, struct system76_data, ap_led); in ap_led_get()
98 value = system76_get(data, "GAPL"); in ap_led_get()
108 struct system76_data *data; in ap_led_set() local
110 data = container_of(led, struct system76_data, ap_led); in ap_led_set()
111 return system76_set(data, "SAPL", value == LED_OFF ? 0 : 1); in ap_led_set()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/
Dphy_lp.c497 u8 data[6]; member
510 { .freq = 12000, .data[0] = 6, .data[1] = 6, .data[2] = 6, in lpphy_2062_init()
511 .data[3] = 6, .data[4] = 10, .data[5] = 6, }, in lpphy_2062_init()
512 { .freq = 13000, .data[0] = 4, .data[1] = 4, .data[2] = 4, in lpphy_2062_init()
513 .data[3] = 4, .data[4] = 11, .data[5] = 7, }, in lpphy_2062_init()
514 { .freq = 14400, .data[0] = 3, .data[1] = 3, .data[2] = 3, in lpphy_2062_init()
515 .data[3] = 3, .data[4] = 12, .data[5] = 7, }, in lpphy_2062_init()
516 { .freq = 16200, .data[0] = 3, .data[1] = 3, .data[2] = 3, in lpphy_2062_init()
517 .data[3] = 3, .data[4] = 13, .data[5] = 8, }, in lpphy_2062_init()
518 { .freq = 18000, .data[0] = 2, .data[1] = 2, .data[2] = 2, in lpphy_2062_init()
[all …]
/kernel/linux/linux-5.10/drivers/power/supply/
Dsc27xx_fuel_gauge.c124 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()
147 static int sc27xx_fgu_voltage_to_adc(struct sc27xx_fgu_data *data, int vol) in sc27xx_fgu_voltage_to_adc() argument
149 return DIV_ROUND_CLOSEST(vol * data->vol_1000mv_adc, 1000); in sc27xx_fgu_voltage_to_adc()
[all …]
/kernel/linux/linux-5.10/drivers/input/misc/
Dcma3000_d0x.c73 #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()
106 struct cma3000_accl_data *data = dev_id; in cma3000_thread_irq() local
[all …]
/kernel/linux/linux-5.10/tools/perf/util/
Ddata.c15 #include "data.h"
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
40 if (WARN_ON(!data->is_dir)) in perf_data__create_dir()
47 data->dir.version = PERF_DIR_VERSION; in perf_data__create_dir()
48 data->dir.files = files; in perf_data__create_dir()
49 data->dir.nr = nr; in perf_data__create_dir()
54 ret = asprintf(&file->path, "%s/data.%d", data->path, i); in perf_data__create_dir()
72 int perf_data__open_dir(struct perf_data *data) in perf_data__open_dir() argument
[all …]
/kernel/linux/linux-5.10/drivers/rtc/
Drtc-snvs.c44 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()
71 dev_err(&data->rtc->dev, "Timeout trying to get valid LPSRT Counter read\n"); in rtc_read_lp_counter()
78 static int rtc_read_lp_counter_lsb(struct snvs_rtc_data *data, u32 *lsb) in rtc_read_lp_counter_lsb() argument
83 regmap_read(data->regmap, data->offset + SNVS_LPSRTCLR, &count1); in rtc_read_lp_counter_lsb()
86 regmap_read(data->regmap, data->offset + SNVS_LPSRTCLR, &count1); in rtc_read_lp_counter_lsb()
[all …]
/kernel/linux/linux-5.10/drivers/spi/
Dspi-topcliff-pch.c26 #define PCH_SPDWR 0x0C /* SPI write data register */
27 #define PCH_SPDRR 0x10 /* SPI read data register */
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
152 * @board_dat: Reference to the SPI device data structure
158 * @save_total_len: Save length while data is being transferred
224 struct pch_spi_data *data = spi_master_get_devdata(master); in pch_spi_writereg() local
[all …]
/kernel/linux/linux-5.10/lib/pldmfw/
Dpldmfw.c54 * @data: pointer to private data
58 * Verify that the firmware data can hold a chunk of bytes with the specified
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()
81 * @data: pointer to private data
91 pldm_move_fw_offset(struct pldmfw_priv *data, size_t bytes_to_move) in pldm_move_fw_offset() argument
95 err = pldm_check_fw_space(data, data->offset, bytes_to_move); in pldm_move_fw_offset()
99 data->offset += bytes_to_move; in pldm_move_fw_offset()
[all …]
/kernel/linux/linux-5.10/drivers/usb/chipidea/
Dci_hdrc_imx.c74 { .compatible = "fsl,imx23-usb", .data = &imx23_usb_data},
75 { .compatible = "fsl,imx28-usb", .data = &imx28_usb_data},
76 { .compatible = "fsl,imx27-usb", .data = &imx27_usb_data},
77 { .compatible = "fsl,imx6q-usb", .data = &imx6q_usb_data},
78 { .compatible = "fsl,imx6sl-usb", .data = &imx6sl_usb_data},
79 { .compatible = "fsl,imx6sx-usb", .data = &imx6sx_usb_data},
80 { .compatible = "fsl,imx6ul-usb", .data = &imx6ul_usb_data},
81 { .compatible = "fsl,imx7d-usb", .data = &imx7d_usb_data},
82 { .compatible = "fsl,imx7ulp-usb", .data = &imx7ulp_usb_data},
115 struct imx_usbmisc_data *data; in usbmisc_get_init_data() local
[all …]
/kernel/linux/linux-5.10/drivers/clk/meson/
Dgxbb.h13 * Register offsets from the data sheet are listed in comment blocks below.
17 #define SCR 0x2C /* 0x0b offset in data sheet */
18 #define TIMEOUT_VALUE 0x3c /* 0x0f offset in data sheet */
20 #define HHI_GP0_PLL_CNTL 0x40 /* 0x10 offset in data sheet */
21 #define HHI_GP0_PLL_CNTL2 0x44 /* 0x11 offset in data sheet */
22 #define HHI_GP0_PLL_CNTL3 0x48 /* 0x12 offset in data sheet */
23 #define HHI_GP0_PLL_CNTL4 0x4c /* 0x13 offset in data sheet */
24 #define HHI_GP0_PLL_CNTL5 0x50 /* 0x14 offset in data sheet */
25 #define HHI_GP0_PLL_CNTL1 0x58 /* 0x16 offset in data sheet */
27 #define HHI_XTAL_DIVN_CNTL 0xbc /* 0x2f offset in data sheet */
[all …]
/kernel/linux/linux-5.10/drivers/input/mouse/
Delan_i2c_core.c156 static int elan_enable_power(struct elan_tp_data *data) in elan_enable_power() argument
161 error = regulator_enable(data->vcc); in elan_enable_power()
163 dev_err(&data->client->dev, in elan_enable_power()
169 error = data->ops->power_control(data->client, true); in elan_enable_power()
176 dev_err(&data->client->dev, "failed to enable power: %d\n", error); in elan_enable_power()
180 static int elan_disable_power(struct elan_tp_data *data) in elan_disable_power() argument
186 error = data->ops->power_control(data->client, false); in elan_disable_power()
188 error = regulator_disable(data->vcc); in elan_disable_power()
190 dev_err(&data->client->dev, in elan_disable_power()
194 data->ops->power_control(data->client, true); in elan_disable_power()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
Dpci.c262 struct OpalIoP7IOCPhbErrorData *data; in pnv_pci_dump_p7ioc_diag_data() local
264 data = (struct OpalIoP7IOCPhbErrorData *)common; in pnv_pci_dump_p7ioc_diag_data()
265 pr_info("P7IOC PHB#%x Diag-data (Version: %d)\n", in pnv_pci_dump_p7ioc_diag_data()
268 if (data->brdgCtl) in pnv_pci_dump_p7ioc_diag_data()
270 be32_to_cpu(data->brdgCtl)); in pnv_pci_dump_p7ioc_diag_data()
271 if (data->portStatusReg || data->rootCmplxStatus || in pnv_pci_dump_p7ioc_diag_data()
272 data->busAgentStatus) in pnv_pci_dump_p7ioc_diag_data()
274 be32_to_cpu(data->portStatusReg), in pnv_pci_dump_p7ioc_diag_data()
275 be32_to_cpu(data->rootCmplxStatus), in pnv_pci_dump_p7ioc_diag_data()
276 be32_to_cpu(data->busAgentStatus)); in pnv_pci_dump_p7ioc_diag_data()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/tundra/
Dtsi108_eth.c162 struct tsi108_prv_data *data = netdev_priv(dev); in dump_eth_one() local
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()
172 data->txhead, data->txtail, data->txfree, in dump_eth_one()
179 data->rxhead, data->rxtail, data->rxfree, in dump_eth_one()
182 TSI_READ(TSI108_EC_RXERR), data->rxpending); in dump_eth_one()
193 static int tsi108_read_mii(struct tsi108_prv_data *data, int reg) in tsi108_read_mii() argument
198 (data->phy << TSI108_MAC_MII_ADDR_PHY) | in tsi108_read_mii()
215 static void tsi108_write_mii(struct tsi108_prv_data *data, in tsi108_write_mii() argument
220 (data->phy << TSI108_MAC_MII_ADDR_PHY) | in tsi108_write_mii()
[all …]
/kernel/linux/linux-5.10/drivers/iio/light/
Dus5182d.c198 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
219 if (mode == data->opmode) in us5182d_set_opmode()
222 ret = i2c_smbus_read_byte_data(data->client, US5182D_REG_CFG0); in us5182d_set_opmode()
235 ret = i2c_smbus_write_byte_data(data->client, US5182D_REG_CFG0, ret); in us5182d_set_opmode()
239 ret = i2c_smbus_write_byte_data(data->client, US5182D_REG_MODE_STORE, in us5182d_set_opmode()
244 data->opmode = mode; in us5182d_set_opmode()
250 static int us5182d_als_enable(struct us5182d_data *data) in us5182d_als_enable() argument
[all …]
/kernel/linux/linux-5.10/drivers/iio/imu/
Dkmx61.c135 /* 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
283 *priv = data; in kmx61_set_data()
315 * @data: kmx61 device private data pointer
318 * @update: update stby bits stored in device's private @data
323 * mag_stby members of driver's private @data.
325 static int kmx61_set_mode(struct kmx61_data *data, u8 mode, u8 device, in kmx61_set_mode() argument
331 ret = i2c_smbus_read_byte_data(data->client, KMX61_REG_STBY); in kmx61_set_mode()
333 dev_err(&data->client->dev, "Error reading reg_stby\n"); in kmx61_set_mode()
[all …]

12345678910>>...346