/openbmc/linux/drivers/gpu/drm/panel/ |
H A D | panel-jadard-jd9365da-h3.c | 25 u8 data[JD9365DA_INIT_CMD_LEN]; member 171 { .data = { 0xE0, 0x00 } }, 172 { .data = { 0xE1, 0x93 } }, 173 { .data = { 0xE2, 0x65 } }, 174 { .data = { 0xE3, 0xF8 } }, 175 { .data = { 0x80, 0x03 } }, 176 { .data = { 0xE0, 0x01 } }, 177 { .data = { 0x00, 0x00 } }, 178 { .data = { 0x01, 0x7E } }, 179 { .data = { 0x03, 0x00 } }, [all …]
|
H A D | panel-feixin-k101-im2ba02.c | 43 { .data = { 0xE0, 0x00 } }, 46 { .data = { 0xE1, 0x93} }, 47 { .data = { 0xE2, 0x65 } }, 48 { .data = { 0xE3, 0xF8 } }, 51 { .data = { 0x80, 0x03 } }, 54 { .data = { 0x70, 0x02 } }, 55 { .data = { 0x71, 0x23 } }, 56 { .data = { 0x72, 0x06 } }, 59 { .data = { 0xE0, 0x01 } }, 62 { .data = { 0x00, 0x00 } }, [all …]
|
H A D | panel-novatek-nt36672a.c | 32 const char data[2]; member 94 err = mipi_dsi_dcs_write(pinfo->link, cmd->data[0], cmd->data + 1, 1); in nt36672a_send_cmds() 264 { .data = {0xFF, 0x22} }, 265 { .data = {0x00, 0x40} }, 266 { .data = {0x01, 0xC0} }, 267 { .data = {0x02, 0x40} }, 268 { .data = {0x03, 0x40} }, 269 { .data = {0x04, 0x40} }, 270 { .data = {0x05, 0x40} }, 271 { .data = {0x06, 0x40} }, [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/b43/ |
H A D | phy_lp.c | 2005 .data[2] = 0xB5, .data[3] = 0x1B, .data[4] = 0x24, .data[5] = 0x32, 2008 .data[2] = 0xB5, .data[3] = 0x1B, .data[4] = 0x24, .data[5] = 0x32, 2011 .data[2] = 0xB5, .data[3] = 0x1B, .data[4] = 0x24, .data[5] = 0x32, 2014 .data[2] = 0xB5, .data[3] = 0x1B, .data[4] = 0x24, .data[5] = 0x32, 2017 .data[2] = 0xB5, .data[3] = 0x1B, .data[4] = 0x24, .data[5] = 0x32, 2020 .data[2] = 0xB5, .data[3] = 0x1B, .data[4] = 0x24, .data[5] = 0x32, 2023 .data[2] = 0xB5, .data[3] = 0x1B, .data[4] = 0x24, .data[5] = 0x32, 2026 .data[2] = 0xB5, .data[3] = 0x1B, .data[4] = 0x24, .data[5] = 0x32, 2029 .data[2] = 0xB5, .data[3] = 0x1B, .data[4] = 0x24, .data[5] = 0x32, 2032 .data[2] = 0xB5, .data[3] = 0x1B, .data[4] = 0x24, .data[5] = 0x32, [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-hbitmap.c | 107 data->old_size = data->size; in hbitmap_test_truncate_impl() 110 if (data->size == data->old_size) { in hbitmap_test_truncate_impl() 116 data->bits = g_renew(unsigned long, data->bits, n); in hbitmap_test_truncate_impl() 123 if (data->size < data->old_size) { in hbitmap_test_truncate_impl() 137 if (data->hb) { in hbitmap_test_teardown() 469 size_t size = MIN(data->size, data->old_size); in hbitmap_test_check_boundary_bits() 666 hbitmap_serialize_part(data->hb, buf, 0, data->size); in hbitmap_test_serialize_range() 684 hbitmap_serialize_part(data->hb, buf, 0, data->size); in hbitmap_test_serialize_range() 688 hbitmap_deserialize_part(data->hb, buf, 0, data->size, true); in hbitmap_test_serialize_range() 809 hbitmap_set(data->hb, 0, data->size); in test_hbitmap_iter_and_reset() [all …]
|
/openbmc/linux/drivers/iio/common/ssp_sensors/ |
H A D | ssp_dev.c | 76 ret = ssp_enable_sensor(data, i, data->delay_buf[i]); in ssp_sync_available_sensors() 120 data->cur_firm_rev = ssp_get_firmware_rev(data); in ssp_check_fwbl() 141 if (data->cur_firm_rev != data->sensorhub_info->fw_rev) in ssp_check_fwbl() 160 __func__, data->available_sensors, data->reset_cnt, in ssp_wdt_work_func() 387 data->cur_firm_rev = ssp_get_firmware_rev(data); in ssp_initialize_mcu() 410 ssp_command(data, data->last_ap_state, 0); in ssp_refresh_task() 413 ssp_command(data, data->last_resume_state, 0); in ssp_refresh_task() 446 if (!data) in ssp_parse_dt() 551 data->fw_dl_state = ssp_check_fwbl(data); in ssp_probe() 567 free_irq(data->spi->irq, data); in ssp_probe() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
H A D | dce_calcs.c | 260 data->h_total[0] = data->h_total[4]; in calculate_bandwidth() 261 data->v_total[0] = data->v_total[4]; in calculate_bandwidth() 262 data->h_total[1] = data->h_total[4]; in calculate_bandwidth() 263 data->v_total[1] = data->v_total[4]; in calculate_bandwidth() 265 data->h_total[2] = data->h_total[5]; in calculate_bandwidth() 266 data->v_total[2] = data->v_total[5]; in calculate_bandwidth() 267 data->h_total[3] = data->h_total[5]; in calculate_bandwidth() 268 data->v_total[3] = data->v_total[5]; in calculate_bandwidth() 287 data->lb_bpc[0] = data->underlay_lb_bpc; in calculate_bandwidth() 288 data->lb_bpc[1] = data->underlay_lb_bpc; in calculate_bandwidth() [all …]
|
/openbmc/qemu/tests/qtest/ |
H A D | bios-tables-test.c | 259 const char *ext = data->variant ? data->variant : ""; in dump_aml_files() 397 const char *ext = data->variant ? data->variant : ""; in load_expected_aml() 802 if (data->uefi_fl1 && data->uefi_fl2) { /* use UEFI */ in test_acpi_load_tables() 805 data->ram_start, data->scan_len); in test_acpi_load_tables() 808 data->rsdp_addr = acpi_find_rsdp_address(data->qts); in test_acpi_load_tables() 822 if (data->uefi_fl1 && data->uefi_fl2) { /* use UEFI */ in test_acpi_create_args() 832 data->machine, data->machine_param ?: "", in test_acpi_create_args() 834 data->uefi_fl1, data->uefi_fl2, data->cd, params ? params : ""); in test_acpi_create_args() 840 data->machine, data->machine_param ?: "", in test_acpi_create_args() 849 data->machine, data->machine_param ?: "", in test_acpi_create_args() [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | sht15.c | 229 gpiod_set_value(data->data, val); in sht15_send_bit() 258 gpiod_set_value(data->data, 0); in sht15_transmission_start() 264 gpiod_set_value(data->data, 1); in sht15_transmission_start() 299 if (gpiod_get_value(data->data)) { in sht15_wait_for_response() 370 gpiod_set_value(data->data, 1); in sht15_ack() 409 byte |= !!gpiod_get_value(data->data); in sht15_read_byte() 535 enable_irq(gpiod_to_irq(data->data)); in sht15_measurement() 822 if (gpiod_get_value(data->data)) { in sht15_bh_read_data() 830 if (gpiod_get_value(data->data) in sht15_bh_read_data() 973 if (IS_ERR(data->data)) { in sht15_probe() [all …]
|
H A D | ibmpex.c | 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() 145 data->sensor_major = data->rx_msg_data[0]; in ibmpex_ver_check() 146 data->sensor_minor = data->rx_msg_data[1]; in ibmpex_ver_check() 183 if (data->rx_result || data->rx_msg_len < 1) in ibmpex_query_sensor_name() 375 data->sensors = kcalloc(data->num_sensors, sizeof(*data->sensors), in ibmpex_find_sensors() 453 data->address.data[0] = 0; in ibmpex_register_bmc() 459 data, &data->user); in ibmpex_register_bmc() 474 data->tx_message.data = data->tx_msg_data; in ibmpex_register_bmc() 562 data->rx_result = msg->msg.data[0]; in ibmpex_msg_handler() [all …]
|
H A D | nct6775-core.c | 1527 data->auto_temp[i][data->auto_pwm_num] = reg; in nct6775_update_pwm_limits() 1534 data->auto_pwm[i][data->auto_pwm_num] = in nct6775_update_pwm_limits() 1613 data->rpm[i] = data->fan_from_reg(reg, in nct6775_update_device() 2084 err = nct6775_write_value(data, data->REG_FAN_MIN[nr], data->fan_min[nr]); in store_fan_min() 2234 err = nct6775_write_temp(data, data->reg_temp[index][nr], data->temp[index][nr]); in store_temp() 2605 data->auto_pwm[nr][data->auto_pwm_num]) in check_trip_points() 2642 err = nct6775_write_value(data, data->REG_TARGET[nr], data->target_temp[nr]); in pwm_update_registers() 3920 data->pwm_num = (data->kind == nct6796 || in nct6775_probe() 4141 data->have_in = BIT(data->in_num) - 1; in nct6775_probe() 4352 err = data->driver_init(data); in nct6775_probe() [all …]
|
/openbmc/linux/drivers/power/supply/ |
H A D | max8903_charger.c | 58 else if (data->usb_in || data->ta_in) in max8903_get_property() 66 if (data->usb_in || data->ta_in) in max8903_get_property() 102 if (data->dcm) in max8903_dcin() 237 gpiod_set_consumer_name(data->dok, data->psy_desc.name); in max8903_setup_gpios() 252 gpiod_set_consumer_name(data->uok, data->psy_desc.name); in max8903_setup_gpios() 263 if (!data->dok && !data->uok) { in max8903_setup_gpios() 285 gpiod_set_consumer_name(data->cen, data->psy_desc.name); in max8903_setup_gpios() 299 gpiod_set_consumer_name(data->dcm, data->psy_desc.name); in max8903_setup_gpios() 305 gpiod_set_consumer_name(data->chg, data->psy_desc.name); in max8903_setup_gpios() 311 gpiod_set_consumer_name(data->flt, data->psy_desc.name); in max8903_setup_gpios() [all …]
|
H A D | sc27xx_fuel_gauge.c | 780 ret = sc27xx_fgu_get_clbcnt(data, &data->init_clbcnt); in sc27xx_fgu_adjust_cap() 816 } else if (ocv <= data->cap_table[data->table_len - 1].ocv) { in sc27xx_fgu_capacity_calibration() 823 (ocv > data->min_volt && cap <= data->alarm_cap)) { in sc27xx_fgu_capacity_calibration() 840 sc27xx_fgu_adjust_cap(data, data->alarm_cap); in sc27xx_fgu_capacity_calibration() 863 data->min_volt = data->cap_table[data->table_len - 1].ocv; in sc27xx_fgu_capacity_calibration() 1017 data->cap_table = devm_kmemdup(data->dev, table, in sc27xx_fgu_hw_init() 1114 ret = sc27xx_fgu_get_boot_capacity(data, &data->init_cap); in sc27xx_fgu_hw_init() 1124 data->init_clbcnt = sc27xx_fgu_cap_to_clbcnt(data, data->init_cap); in sc27xx_fgu_hw_init() 1125 ret = sc27xx_fgu_set_clbcnt(data, data->init_clbcnt); in sc27xx_fgu_hw_init() 1149 data = devm_kzalloc(dev, sizeof(*data), GFP_KERNEL); in sc27xx_fgu_probe() [all …]
|
/openbmc/u-boot/drivers/phy/marvell/ |
H A D | comphy_cp110.c | 73 u32 data; in polling_with_timeout() local 81 return data; in polling_with_timeout() 210 data = 0; in comphy_pcie_power_up() 345 data = 0; in comphy_pcie_power_up() 631 data = polling_with_timeout(addr, data, mask, 15000); in comphy_usb3_power_up() 1130 data = polling_with_timeout(addr, data, mask, 100); in comphy_sgmii_power_up() 1430 data = polling_with_timeout(addr, data, mask, 100); in comphy_sfi_power_up() 1608 data = polling_with_timeout(addr, data, mask, 100); in comphy_rxauii_power_up() 1756 data = polling_with_timeout(addr, data, mask, 100); in comphy_utmi_power_up() 1765 data = polling_with_timeout(addr, data, mask, 100); in comphy_utmi_power_up() [all …]
|
/openbmc/linux/drivers/platform/x86/ |
H A D | lenovo-yogabook.c | 88 data->set_kbd_backlight(data, 0); in yogabook_work() 104 data->set_kbd_backlight(data, data->brightness); in yogabook_work() 171 return data->set_kbd_backlight(data, data->brightness); in kbd_brightness_set() 246 free_irq(data->backside_hall_irq, data); in yogabook_probe() 255 free_irq(data->backside_hall_irq, data); in yogabook_remove() 276 data->set_kbd_backlight(data, 0); in yogabook_suspend() 286 data->set_kbd_backlight(data, data->brightness); in yogabook_resume() 355 if (!data->kbd_dev || !data->kbd_dev->driver) { in yogabook_wmi_probe() 361 if (!data->dig_dev || !data->dig_dev->driver) { in yogabook_wmi_probe() 518 free_irq(data->pen_touch_irq, data); in yogabook_pdev_probe() [all …]
|
/openbmc/linux/drivers/thermal/samsung/ |
H A D | exynos_tmu.c | 217 (data->temp_error2 - data->temp_error1) / in temp_to_code() 233 (data->temp_error2 - data->temp_error1) + in code_to_temp() 248 (data->min_efuse_value > data->temp_error1) || in sanitize_temp_error() 249 (data->temp_error1 > data->max_efuse_value)) in sanitize_temp_error() 250 data->temp_error1 = data->efuse_value & EXYNOS_TMU_TEMP_MASK; in sanitize_temp_error() 309 data->tmu_clear_irqs(data); in exynos_tmu_initialize() 651 if (!data || !data->tmu_read) in exynos_get_temp() 663 value = data->tmu_read(data); in exynos_get_temp() 737 data->tmu_set_emulation(data, temp); in exynos_tmu_set_emulation() 780 data->tmu_clear_irqs(data); in exynos_tmu_work() [all …]
|
/openbmc/linux/arch/x86/kvm/ |
H A D | fpu.h | 21 case 0: asm("movdqa %%xmm0, %0" : "=m"(*data)); break; in _kvm_read_sse_reg() 22 case 1: asm("movdqa %%xmm1, %0" : "=m"(*data)); break; in _kvm_read_sse_reg() 23 case 2: asm("movdqa %%xmm2, %0" : "=m"(*data)); break; in _kvm_read_sse_reg() 24 case 3: asm("movdqa %%xmm3, %0" : "=m"(*data)); break; in _kvm_read_sse_reg() 71 case 0: asm("movq %%mm0, %0" : "=m"(*data)); break; in _kvm_read_mmx_reg() 72 case 1: asm("movq %%mm1, %0" : "=m"(*data)); break; in _kvm_read_mmx_reg() 73 case 2: asm("movq %%mm2, %0" : "=m"(*data)); break; in _kvm_read_mmx_reg() 115 _kvm_read_sse_reg(reg, data); in kvm_read_sse_reg() 122 _kvm_write_sse_reg(reg, data); in kvm_write_sse_reg() 129 _kvm_read_mmx_reg(reg, data); in kvm_read_mmx_reg() [all …]
|
/openbmc/linux/drivers/gnss/ |
H A D | sirf.c | 70 serdev_device_set_baudrate(data->serdev, data->speed); in sirf_serdev_open() 95 data->open = true; in sirf_open() 170 if (!data->wakeup && !data->active) { in sirf_receive_buf() 176 if (data->open) in sirf_receive_buf() 296 if (data->on_off) in sirf_runtime_suspend() 311 if (data->on_off) in sirf_runtime_suspend() 333 if (data->on_off) in sirf_runtime_resume() 402 data = devm_kzalloc(dev, sizeof(*data), GFP_KERNEL); in sirf_probe() 403 if (!data) in sirf_probe() 526 free_irq(data->irq, data); in sirf_probe() [all …]
|
/openbmc/linux/samples/hid/ |
H A D | hid_mouse.bpf.c | 14 if (!data) in BPF_PROG() 19 data[0], in BPF_PROG() 20 data[1], in BPF_PROG() 23 data[3], in BPF_PROG() 24 data[4], in BPF_PROG() 27 data[6], in BPF_PROG() 28 data[7], in BPF_PROG() 31 y = data[3] | (data[4] << 8); in BPF_PROG() 60 if (!data) in BPF_PROG() 63 x = data[1] | (data[2] << 8); in BPF_PROG() [all …]
|
/openbmc/linux/drivers/input/misc/ |
H A D | cma3000_d0x.c | 74 (data->bus_ops->read(data->dev, reg, msg)) 76 ((data)->bus_ops->write(data->dev, reg, val, msg)) 250 if (!data->suspended && data->opened) in cma3000_suspend() 264 if (data->suspended && data->opened) in cma3000_resume() 329 -data->g_range, data->g_range, pdata->fuzz_x, 0); in cma3000_init() 331 -data->g_range, data->g_range, pdata->fuzz_y, 0); in cma3000_init() 333 -data->g_range, data->g_range, pdata->fuzz_z, 0); in cma3000_init() 364 return data; in cma3000_init() 370 kfree(data); in cma3000_init() 378 free_irq(data->irq, data); in cma3000_exit() [all …]
|
/openbmc/linux/drivers/leds/trigger/ |
H A D | ledtrig-pattern.c | 41 data->curr = data->next; in pattern_trig_update_patterns() 42 if (!data->is_indefinite && data->curr == data->patterns) 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() 79 if (!data->is_indefinite && !data->repeat) in pattern_trig_timer_function() 102 if (data->delta_t > data->curr->delta_t) { in pattern_trig_timer_function() 129 data->npatterns, data->repeat); in pattern_trig_start_pattern() 137 data->curr = data->patterns; in pattern_trig_start_pattern() 138 data->next = data->patterns + 1; in pattern_trig_start_pattern() 183 data->last_repeat = data->repeat = res; in repeat_store() [all …]
|
/openbmc/linux/drivers/media/rc/ |
H A D | winbond-cir.c | 410 if (data->txbuf[data->txoff] == 0) { in wbcir_irq_tx() 414 byte = min((u32)0x80, data->txbuf[data->txoff]); in wbcir_irq_tx() 415 data->txbuf[data->txoff] -= byte; in wbcir_irq_tx() 421 while (data->txoff != data->txlen && data->txbuf[data->txoff] == 0) in wbcir_irq_tx() 433 } else if (data->txoff == data->txlen) { in wbcir_irq_tx() 1020 data = kzalloc(sizeof(*data), GFP_KERNEL); in wbcir_probe() 1034 if (data->wbase == 0 || data->ebase == 0 || in wbcir_probe() 1035 data->sbase == 0 || data->irq == -1) { in wbcir_probe() 1042 data->wbase, data->ebase, data->sbase, data->irq); in wbcir_probe() 1071 data->dev->priv = data; in wbcir_probe() [all …]
|
/openbmc/u-boot/drivers/rtc/ |
H A D | m41t60.c | 60 uchar data[8]; in rtc_dump() local 62 if (i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, data, sizeof(data))) { in rtc_dump() 67 label, data[0], data[1], data[2], data[3], in rtc_dump() 68 data[4], data[5], data[6], data[7]); in rtc_dump() 115 if (0x59 < data[RTC_SEC] || 0x09 < (data[RTC_SEC] & 0x0F) || in rtc_validate() 117 0x23 < data[RTC_HOUR] || 0x09 < (data[RTC_HOUR] & 0x0F) || in rtc_validate() 118 0x07 < data[RTC_DAY] || 0x00 == data[RTC_DAY] || in rtc_validate() 143 return data; in rtc_validate() 150 if (!data) in rtc_get() 174 if (!data) in rtc_set() [all …]
|
/openbmc/linux/drivers/net/ethernet/tundra/ |
H A D | tsi108_eth.c | 156 data->link_up, data->speed, data->duplex); in dump_eth_one() 159 data->txhead, data->txtail, data->txfree, in dump_eth_one() 166 data->rxhead, data->rxtail, data->rxfree, in dump_eth_one() 284 duplex = mii_check_media(&data->mii_if, netif_msg_link(data), data->init_media); in tsi108_check_phy() 605 while (!data->txfree || data->txhead != data->txtail) { in tsi108_complete_tx() 1146 if (data->txfree && data->link_up) in tsi108_set_mac() 1282 data->id, data->irq_num); in tsi108_open() 1335 data->rxring[i].buf0 = virt_to_phys(data->rxskbs[i]->data); in tsi108_open() 1391 while (!data->txfree || data->txhead != data->txtail) { in tsi108_close() 1416 data->rxring, data->rxdma); in tsi108_close() [all …]
|
/openbmc/linux/tools/testing/selftests/arm64/fp/ |
H A D | vec-syscfg.c | 353 if (data->min_vl == data->max_vl) { in prctl_set() 363 data->name, data->min_vl, in prctl_set() 370 data->name, data->min_vl, data->rdvl()); in prctl_set() 374 if (data->rdvl() != data->min_vl) { in prctl_set() 376 data->name, data->min_vl, data->rdvl()); in prctl_set() 384 data->name, data->max_vl, in prctl_set() 391 data->name, data->max_vl, data->rdvl()); in prctl_set() 426 data->name, data->min_vl, in prctl_set_no_child() 464 data->name, data->min_vl, in prctl_set_for_child() 520 data->name, data->min_vl, in prctl_set_onexec() [all …]
|