Home
last modified time | relevance | path

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

12345678910>>...53

/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/calcs/
H A 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
141 yclk[low] = vbios->low_yclk; in calculate_bandwidth()
142 yclk[mid] = vbios->mid_yclk; in calculate_bandwidth()
143 yclk[high] = vbios->high_yclk; in calculate_bandwidth()
144 sclk[s_low] = vbios->low_sclk; in calculate_bandwidth()
145 sclk[s_mid1] = vbios->mid1_sclk; in calculate_bandwidth()
146 sclk[s_mid2] = vbios->mid2_sclk; in calculate_bandwidth()
147 sclk[s_mid3] = vbios->mid3_sclk; in calculate_bandwidth()
[all …]
/openbmc/linux/drivers/iio/common/ssp_sensors/
H A Dssp_dev.c1 // SPDX-License-Identifier: GPL-2.0-or-later
55 .name = "ssp-accelerometer",
58 .name = "ssp-gyroscope",
62 static void ssp_toggle_mcu_reset_gpio(struct ssp_data *data) in ssp_toggle_mcu_reset_gpio() argument
64 gpiod_set_value(data->mcu_reset_gpiod, 0); in ssp_toggle_mcu_reset_gpio()
66 gpiod_set_value(data->mcu_reset_gpiod, 1); in ssp_toggle_mcu_reset_gpio()
70 static void ssp_sync_available_sensors(struct ssp_data *data) in ssp_sync_available_sensors() argument
75 if (data->available_sensors & BIT(i)) { in ssp_sync_available_sensors()
76 ret = ssp_enable_sensor(data, i, data->delay_buf[i]); in ssp_sync_available_sensors()
78 dev_err(&data->spi->dev, in ssp_sync_available_sensors()
[all …]
/openbmc/linux/drivers/hwmon/
H A 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 …]
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 …]
H A 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 …]
/openbmc/linux/drivers/thermal/samsung/
H A Dexynos_tmu.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * exynos_tmu.c - Samsung Exynos TMU (Thermal Management Unit)
25 #include <dt-bindings/thermal/thermal_exynos.h>
139 * struct exynos_tmu_data : A structure to hold the private data of the TMU
153 * @min_efuse_value: minimum valid trimming data
154 * @max_efuse_value: maximum valid trimming data
157 * @gain: gain of amplifier in the positive-TC generator block
160 * in the positive-TC generator block
196 void (*tmu_set_trip_temp)(struct exynos_tmu_data *data, int trip,
198 void (*tmu_set_trip_hyst)(struct exynos_tmu_data *data, int trip,
[all …]
/openbmc/linux/drivers/platform/x86/
H A Dlenovo-yogabook.c1 // SPDX-License-Identifier: GPL-2.0
3 * Platform driver for Lenovo Yoga Book YB1-X90F/L tablets (Android model)
4 * WMI driver for Lenovo Yoga Book YB1-X91F/L tablets (Windows model)
26 #define YB_MBTN_EVENT_GUID "243FEC1D-1963-41C1-8100-06A9D82A94B4"
32 #define YB_PDEV_NAME "yogabook-touch-kbd-digitizer-switch"
54 int (*set_kbd_backlight)(struct yogabook_data *data, uint8_t level);
65 struct yogabook_data *data = container_of(work, struct yogabook_data, work); in yogabook_work() local
69 if (test_bit(YB_SUSPENDED, &data->flags)) in yogabook_work()
72 if (test_bit(YB_TABLET_MODE, &data->flags)) { in yogabook_work()
75 } else if (test_bit(YB_DIGITIZER_MODE, &data->flags)) { in yogabook_work()
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-hbitmap.c2 * Hierarchical bitmap unit-tests.
9 * See the COPYING file in the top-level directory.
32 /* Check that the HBitmap and the shadow bitmap contain the same data,
35 static void hbitmap_test_check(TestHBitmapData *data, in hbitmap_test_check() argument
44 hbitmap_iter_init(&hbi, data->hb, first); in hbitmap_test_check()
50 next = data->size; in hbitmap_test_check()
55 bit = i & (BITS_PER_LONG - 1); in hbitmap_test_check()
57 g_assert_cmpint(data->bits[pos] & (1UL << bit), ==, 0); in hbitmap_test_check()
60 if (next == data->size) { in hbitmap_test_check()
65 bit = i & (BITS_PER_LONG - 1); in hbitmap_test_check()
[all …]
/openbmc/openbmc/meta-amd/meta-ethanolx/recipes-amd/amd-fpga/files/
H A Dfpgardu.sh3 echo "-----FPGA Ethanol<x> CRB Register Dump Utility"
10 DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf "0x%x" $FPGA_REG)")
11 MAJOR=$((DATA >> 4))
12 MINOR=$((DATA & 0x0F))
19 while [ $FPGA_REG -le $IP_REG_MAX ]
22 DATA=$(i2cget -y $I2CBUS $FPGAADDR $FPGA_REG)
23 if [ $FPGA_REG -ne $IP_REG_MAX ] ; then
24 printf "%d." "$DATA"
26 printf "%d\n\n" "$DATA"
31 # VDD block - Addresses 16 - 23
[all …]
/openbmc/linux/drivers/leds/trigger/
H A 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 …]
/openbmc/openbmc/meta-amd/meta-daytonax/recipes-amd/amd-fpga/files/
H A Dfpgardu.sh3 echo "-----FPGA Daytona<x> CRB Register Dump Utility"
10 DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)")
11 echo ----------FPGAreg$FPGA_REG-------------------------
12 echo M_ABCD_EVENT_R_BUF_N----- : $(((DATA & 0x80) >> 7))
13 echo M_EFGH_EVENT_R_BUF_N----- : $(((DATA & 0x40) >> 6))
14 echo M_IJKL_EVENT_R_BUF_N----- : $(((DATA & 0x20) >> 5))
15 echo M_MNOP_EVENT_R_BUF_N----- : $(((DATA & 0x10) >> 4))
18 DATA=$(i2cget -y $I2CBUS $FPGAADDR "$(printf '0x%x' $FPGA_REG)")
19 echo ----------FPGAreg$FPGA_REG-------------------------
20 echo BMC_NVDIMM_PRSNT_R_N----- : $(((DATA & 0x80) >> 7))
[all …]
/openbmc/linux/drivers/spi/
H A 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)
124 * struct pch_spi_data - Holds the SPI channel specific details
136 * @bpw_len: Length of data to be transferred in bits per
139 * @tx_index: Transmit data count; for bookkeeping during
141 * @rx_index: Receive data count; for bookkeeping during
143 * @pkt_tx_buff: Buffer for data to be transmitted
144 * @pkt_rx_buff: Buffer for received data
[all …]
/openbmc/linux/arch/powerpc/platforms/powernv/
H A Dpci.c1 // SPDX-License-Identifier: GPL-2.0-or-later
21 #include <asm/pci-bridge.h>
24 #include <asm/ppc-pci.h>
25 #include <asm/pnv-pci.h>
47 return -ENXIO; in pnv_pci_get_slot_id()
56 if (!of_device_is_compatible(node, "ibm,ioda2-phb") && in pnv_pci_get_slot_id()
57 !of_device_is_compatible(node, "ibm,ioda3-phb") && in pnv_pci_get_slot_id()
58 !of_device_is_compatible(node, "ibm,ioda2-npu2-opencapi-phb")) { in pnv_pci_get_slot_id()
63 ret = of_property_read_u64(node, "ibm,opal-phbid", &phbid); in pnv_pci_get_slot_id()
66 return -ENXIO; in pnv_pci_get_slot_id()
[all …]
/openbmc/linux/drivers/gnss/
H A 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 …]
/openbmc/qemu/tests/qtest/
H A Dbios-tables-test.c10 * See the COPYING file in the top-level directory.
16 * 1. add empty files for new tables, if any, under tests/data/acpi
17 * 2. list any changed files in tests/qtest/bios-tables-test-allowed-diff.h
20 * Contributor or ACPI Maintainer (steps 4-7 need to be redone to resolve conflicts
23 * After 1-3 above tests will pass but ignore differences with the expected files.
24 * You will also notice that tests/qtest/bios-tables-test-allowed-diff.h lists
31 * output. If not - disassemble them yourself in any way you like.
32 * Look at the differences - make sure they make sense and match what the
38 * $(SRC_PATH)/tests/data/acpi/rebuild-expected-aml.sh
48 * tests/qtest/bios-tables-test-allowed-diff.h is empty - this will ensure
[all …]
/openbmc/linux/drivers/net/ethernet/tundra/
H A 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)
79 unsigned int rxpending; /* Non-zero if there are still descriptors
149 struct tsi108_prv_data *data = netdev_priv(dev); in dump_eth_one() local
151 printk("Dumping %s...\n", dev->name); in dump_eth_one()
155 TSI_READ(TSI108_EC_INTMASK), data->phy_ok, in dump_eth_one()
156 data->link_up, data->speed, data->duplex); in dump_eth_one()
159 data->txhead, data->txtail, data->txfree, in dump_eth_one()
[all …]
/openbmc/linux/drivers/iio/pressure/
H A Dbmp280-core.c1 // SPDX-License-Identifier: GPL-2.0-only
12 * https://cdn-shop.adafruit.com/datasheets/BST-BMP180-DS000-09.pdf
13 * https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmp280-ds001.pdf
14 * https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme280-ds002.pdf
15 * https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmp388-ds001.pdf
16 * https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmp581-ds004.pdf
20 * - Changed document referral from ANP015 to BST-MPS-AN004-00 on page 26
21 * - Updated equation for B3 param on section 3.5 to ((((long)AC1 * 4 + X3) << oss) + 2) / 4
22 * - Updated RoHS directive to 2011/65/EU effective 8 June 2011 on page 26
31 #include <linux/nvmem-provider.h>
[all …]
/openbmc/linux/drivers/iio/proximity/
H A Dsx_common.c1 // SPDX-License-Identifier: GPL-2.0
61 struct sx_common_data *data = iio_priv(indio_dev); in sx_common_irq_handler() local
63 if (data->trigger_enabled) in sx_common_irq_handler()
64 iio_trigger_poll(data->trig); in sx_common_irq_handler()
78 struct sx_common_data *data = iio_priv(indio_dev); in sx_common_push_events() local
83 ret = regmap_read(data->regmap, data->chip_info->reg_stat, &val); in sx_common_push_events()
85 dev_err(&data->client->dev, "i2c transfer error in irq\n"); in sx_common_push_events()
89 val >>= data->chip_info->stat_offset; in sx_common_push_events()
95 prox_changed = (data->chan_prox_stat ^ val) & data->chan_event; in sx_common_push_events()
97 for_each_set_bit(chan, &prox_changed, data->chip_info->num_channels) { in sx_common_push_events()
[all …]
/openbmc/linux/drivers/usb/chipidea/
H A Dci_hdrc_imx.c1 // SPDX-License-Identifier: GPL-2.0+
81 { .compatible = "fsl,imx23-usb", .data = &imx23_usb_data},
82 { .compatible = "fsl,imx28-usb", .data = &imx28_usb_data},
83 { .compatible = "fsl,imx27-usb", .data = &imx27_usb_data},
84 { .compatible = "fsl,imx6q-usb", .data = &imx6q_usb_data},
85 { .compatible = "fsl,imx6sl-usb", .data = &imx6sl_usb_data},
86 { .compatible = "fsl,imx6sx-usb", .data = &imx6sx_usb_data},
87 { .compatible = "fsl,imx6ul-usb", .data = &imx6ul_usb_data},
88 { .compatible = "fsl,imx7d-usb", .data = &imx7d_usb_data},
89 { .compatible = "fsl,imx7ulp-usb", .data = &imx7ulp_usb_data},
[all …]
/openbmc/linux/drivers/power/supply/
H A Dmax8903_charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * max8903_charger.c - Maxim 8903 USB/Adapter Charger Driver
32 struct gpio_desc *dcm; /* Current-Limit Mode input (1: DC, 2: USB) */
49 struct max8903_data *data = power_supply_get_drvdata(psy); in max8903_get_property() local
53 val->intval = POWER_SUPPLY_STATUS_UNKNOWN; in max8903_get_property()
54 if (data->chg) { in max8903_get_property()
55 if (gpiod_get_value(data->chg)) in max8903_get_property()
57 val->intval = POWER_SUPPLY_STATUS_CHARGING; in max8903_get_property()
58 else if (data->usb_in || data->ta_in) in max8903_get_property()
59 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; in max8903_get_property()
[all …]
H A 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 …]
/openbmc/linux/drivers/input/misc/
H A 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 …]
/openbmc/linux/tools/perf/util/
H A Ddata.c1 // SPDX-License-Identifier: GPL-2.0
16 #include "data.h"
24 while (--nr >= 0) { in close_dir()
31 void perf_data__close_dir(struct perf_data *data) in perf_data__close_dir() argument
33 close_dir(data->dir.files, data->dir.nr); in perf_data__close_dir()
36 int perf_data__create_dir(struct perf_data *data, int nr) in perf_data__create_dir() argument
41 if (WARN_ON(!data->is_dir)) in perf_data__create_dir()
42 return -EINVAL; in perf_data__create_dir()
46 return -ENOMEM; in perf_data__create_dir()
51 ret = asprintf(&file->path, "%s/data.%d", data->path, i); in perf_data__create_dir()
[all …]
/openbmc/linux/lib/pldmfw/
H A 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 …]
/openbmc/linux/drivers/input/mouse/
H A 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.
169 return -ENXIO; in elan_get_fwinfo()
173 (*validpage_count * ETP_FW_PAGE_SIZE) - ETP_FW_SIGNATURE_SIZE; in elan_get_fwinfo()
188 static int elan_set_power(struct elan_tp_data *data, bool on) in elan_set_power() argument
194 error = data->ops->power_control(data->client, on); in elan_set_power()
199 } while (--repeat > 0); in elan_set_power()
201 dev_err(&data->client->dev, "failed to set power %s: %d\n", in elan_set_power()
206 static int elan_sleep(struct elan_tp_data *data) in elan_sleep() argument
[all …]

12345678910>>...53