/linux-6.1.9/drivers/gpu/drm/panel/ ! |
D | panel-feixin-k101-im2ba02.c | 39 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 …]
|
D | panel-novatek-nt36672a.c | 33 const char data[2]; member 95 err = mipi_dsi_dcs_write(pinfo->link, cmd->data[0], cmd->data + 1, 1); in nt36672a_send_cmds() 265 { .data = {0xFF, 0x22} }, 266 { .data = {0x00, 0x40} }, 267 { .data = {0x01, 0xC0} }, 268 { .data = {0x02, 0x40} }, 269 { .data = {0x03, 0x40} }, 270 { .data = {0x04, 0x40} }, 271 { .data = {0x05, 0x40} }, 272 { .data = {0x06, 0x40} }, [all …]
|
/linux-6.1.9/drivers/net/wireless/broadcom/b43/ ! |
D | phy_lp.c | 497 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 …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dml/calcs/ ! |
D | dce_calcs.c | 80 struct bw_calcs_data *data) in calculate_bandwidth() argument 172 if (data->d0_underlay_mode == bw_def_none) in calculate_bandwidth() 176 if (data->d1_underlay_mode == bw_def_none) in calculate_bandwidth() 180 data->number_of_underlay_surfaces = d0_underlay_enable + d1_underlay_enable; in calculate_bandwidth() 181 switch (data->underlay_surface_type) { in calculate_bandwidth() 185 data->bytes_per_pixel[0] = 1; in calculate_bandwidth() 186 data->bytes_per_pixel[2] = 1; in calculate_bandwidth() 189 data->bytes_per_pixel[1] = 2; in calculate_bandwidth() 190 data->bytes_per_pixel[3] = 2; in calculate_bandwidth() 191 data->lb_size_per_component[0] = dceip->underlay420_luma_lb_size_per_component; in calculate_bandwidth() [all …]
|
D | calcs_logger.h | 183 static void print_bw_calcs_data(struct dc_context *ctx, struct bw_calcs_data *data) in print_bw_calcs_data() argument 191 DC_LOG_BANDWIDTH_CALCS(" [uint32_t] number_of_displays: %d", data->number_of_displays); in print_bw_calcs_data() 192 …DC_LOG_BANDWIDTH_CALCS(" [enum] bw_defines underlay_surface_type: %d", data->underlay_surface_type… in print_bw_calcs_data() 194 data->panning_and_bezel_adjustment); in print_bw_calcs_data() 195 DC_LOG_BANDWIDTH_CALCS(" [enum] bw_defines graphics_tiling_mode: %d", data->graphics_tiling_mode); in print_bw_calcs_data() 196 DC_LOG_BANDWIDTH_CALCS(" [uint32_t] graphics_lb_bpc: %d", data->graphics_lb_bpc); in print_bw_calcs_data() 197 DC_LOG_BANDWIDTH_CALCS(" [uint32_t] underlay_lb_bpc: %d", data->underlay_lb_bpc); in print_bw_calcs_data() 198 DC_LOG_BANDWIDTH_CALCS(" [enum] bw_defines underlay_tiling_mode: %d", data->underlay_tiling_mode); in print_bw_calcs_data() 199 DC_LOG_BANDWIDTH_CALCS(" [enum] bw_defines d0_underlay_mode: %d", data->d0_underlay_mode); in print_bw_calcs_data() 200 …DC_LOG_BANDWIDTH_CALCS(" [bool] d1_display_write_back_dwb_enable: %d", data->d1_display_write_back… in print_bw_calcs_data() [all …]
|
/linux-6.1.9/drivers/iio/common/ssp_sensors/ ! |
D | ssp_dev.c | 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() 85 ret = ssp_command(data, SSP_MSG2SSP_AP_MCU_SET_DUMPMODE, in ssp_sync_available_sensors() 86 data->mcu_dump_mode); in ssp_sync_available_sensors() 88 dev_err(&data->spi->dev, in ssp_sync_available_sensors() [all …]
|
/linux-6.1.9/drivers/hwmon/ ! |
D | sht15.c | 151 struct gpio_desc *data; member 183 static u8 sht15_crc8(struct sht15_data *data, in sht15_crc8() argument 187 u8 crc = bitrev8(data->val_status & 0x0F); in sht15_crc8() 203 static int sht15_connection_reset(struct sht15_data *data) in sht15_connection_reset() argument 207 err = gpiod_direction_output(data->data, 1); in sht15_connection_reset() 211 gpiod_set_value(data->sck, 0); in sht15_connection_reset() 214 gpiod_set_value(data->sck, 1); in sht15_connection_reset() 216 gpiod_set_value(data->sck, 0); in sht15_connection_reset() 227 static inline void sht15_send_bit(struct sht15_data *data, int val) in sht15_send_bit() argument 229 gpiod_set_value(data->data, val); in sht15_send_bit() [all …]
|
D | nct6775-core.c | 194 #define NCT6775_AUTO_TEMP(data, nr, p) ((data)->REG_AUTO_TEMP[nr] + (p)) argument 195 #define NCT6775_AUTO_PWM(data, nr, p) ((data)->REG_AUTO_PWM[nr] + (p)) argument 993 static int nct6775_add_template_attr_group(struct device *dev, struct nct6775_data *data, in nct6775_add_template_attr_group() argument 1064 return nct6775_add_attr_group(data, group); in nct6775_add_template_attr_group() 1067 bool nct6775_reg_is_word_sized(struct nct6775_data *data, u16 reg) in nct6775_reg_is_word_sized() argument 1069 switch (data->kind) { in nct6775_reg_is_word_sized() 1127 static int nct6775_read_temp(struct nct6775_data *data, u16 reg, u16 *val) in nct6775_read_temp() argument 1131 err = nct6775_read_value(data, reg, val); in nct6775_read_temp() 1135 if (!nct6775_reg_is_word_sized(data, reg)) in nct6775_read_temp() 1142 static int nct6775_write_fan_div(struct nct6775_data *data, int nr) in nct6775_write_fan_div() argument [all …]
|
D | ibmpex.c | 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() 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 …]
|
D | w83627ehf.c | 392 static inline void w83627ehf_set_bank(struct w83627ehf_data *data, u16 reg) in w83627ehf_set_bank() argument 395 if (data->bank != bank) { in w83627ehf_set_bank() 396 outb_p(W83627EHF_REG_BANK, data->addr + ADDR_REG_OFFSET); in w83627ehf_set_bank() 397 outb_p(bank, data->addr + DATA_REG_OFFSET); in w83627ehf_set_bank() 398 data->bank = bank; in w83627ehf_set_bank() 402 static u16 w83627ehf_read_value(struct w83627ehf_data *data, u16 reg) in w83627ehf_read_value() argument 406 mutex_lock(&data->lock); in w83627ehf_read_value() 408 w83627ehf_set_bank(data, reg); in w83627ehf_read_value() 409 outb_p(reg & 0xff, data->addr + ADDR_REG_OFFSET); in w83627ehf_read_value() 410 res = inb_p(data->addr + DATA_REG_OFFSET); in w83627ehf_read_value() [all …]
|
/linux-6.1.9/drivers/power/supply/ ! |
D | max8903_charger.c | 50 struct max8903_data *data = power_supply_get_drvdata(psy); in max8903_get_property() local 55 if (data->chg) { in max8903_get_property() 56 if (gpiod_get_value(data->chg)) in max8903_get_property() 59 else if (data->usb_in || data->ta_in) in max8903_get_property() 67 if (data->usb_in || data->ta_in) in max8903_get_property() 72 if (data->fault) in max8903_get_property() 84 struct max8903_data *data = _data; in max8903_dcin() local 95 ta_in = gpiod_get_value(data->dok); in max8903_dcin() 97 if (ta_in == data->ta_in) in max8903_dcin() 100 data->ta_in = ta_in; in max8903_dcin() [all …]
|
D | sc27xx_fuel_gauge.c | 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() 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 …]
|
/linux-6.1.9/drivers/thermal/samsung/ ! |
D | exynos_tmu.c | 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() 215 return temp + data->temp_error1 - EXYNOS_FIRST_POINT_TRIM; in temp_to_code() 218 (data->temp_error2 - data->temp_error1) / in temp_to_code() 220 data->temp_error1; in temp_to_code() [all …]
|
/linux-6.1.9/tools/testing/selftests/arm64/fp/ ! |
D | vec-syscfg.c | 81 static int get_child_rdvl(struct vec_data *data) in get_child_rdvl() argument 119 ret = execl(data->rdvl_binary, data->rdvl_binary, NULL); in get_child_rdvl() 121 data->rdvl_binary, errno, strerror(errno)); in get_child_rdvl() 210 static void proc_read_default(struct vec_data *data) in proc_read_default() argument 214 ret = file_read_integer(data->default_vl_file, &default_vl); in proc_read_default() 219 child_vl = get_child_rdvl(data); in proc_read_default() 222 data->default_vl_file, in proc_read_default() 227 ksft_test_result_pass("%s default vector length %d\n", data->name, in proc_read_default() 229 data->default_vl = default_vl; in proc_read_default() 233 static void proc_write_min(struct vec_data *data) in proc_write_min() argument [all …]
|
/linux-6.1.9/drivers/gnss/ ! |
D | sirf.c | 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() 80 static void sirf_serdev_close(struct sirf_data *data) in sirf_serdev_close() argument 82 mutex_lock(&data->serdev_mutex); in sirf_serdev_close() [all …]
|
/linux-6.1.9/arch/x86/kvm/ ! |
D | fpu.h | 18 static inline void _kvm_read_sse_reg(int reg, sse128_t *data) in _kvm_read_sse_reg() argument 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() 25 case 4: asm("movdqa %%xmm4, %0" : "=m"(*data)); break; in _kvm_read_sse_reg() 26 case 5: asm("movdqa %%xmm5, %0" : "=m"(*data)); break; in _kvm_read_sse_reg() 27 case 6: asm("movdqa %%xmm6, %0" : "=m"(*data)); break; in _kvm_read_sse_reg() 28 case 7: asm("movdqa %%xmm7, %0" : "=m"(*data)); break; in _kvm_read_sse_reg() 30 case 8: asm("movdqa %%xmm8, %0" : "=m"(*data)); break; in _kvm_read_sse_reg() [all …]
|
/linux-6.1.9/drivers/media/rc/ ! |
D | winbond-cir.c | 242 wbcir_select_bank(struct wbcir_data *data, enum wbcir_bank bank) in wbcir_select_bank() argument 244 outb(bank, data->sbase + WBCIR_REG_SP3_BSR); in wbcir_select_bank() 248 wbcir_set_irqmask(struct wbcir_data *data, u8 irqmask) in wbcir_set_irqmask() argument 250 if (data->irqmask == irqmask) in wbcir_set_irqmask() 253 wbcir_select_bank(data, WBCIR_BANK_0); in wbcir_set_irqmask() 254 outb(irqmask, data->sbase + WBCIR_REG_SP3_IER); in wbcir_set_irqmask() 255 data->irqmask = irqmask; in wbcir_set_irqmask() 261 struct wbcir_data *data = container_of(led_cdev, in wbcir_led_brightness_get() local 265 if (inb(data->ebase + WBCIR_REG_ECEIR_CTS) & WBCIR_LED_ENABLE) in wbcir_led_brightness_get() 275 struct wbcir_data *data = container_of(led_cdev, in wbcir_led_brightness_set() local [all …]
|
/linux-6.1.9/drivers/input/misc/ ! |
D | cma3000_d0x.c | 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 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 110 intr_status = CMA3000_READ(data, CMA3000_INTSTATUS, "interrupt status"); in cma3000_thread_irq() [all …]
|
/linux-6.1.9/drivers/net/ethernet/tundra/ ! |
D | tsi108_eth.c | 149 struct tsi108_prv_data *data = netdev_priv(dev); in dump_eth_one() local 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() 166 data->rxhead, data->rxtail, data->rxfree, in dump_eth_one() 169 TSI_READ(TSI108_EC_RXERR), data->rxpending); in dump_eth_one() 180 static int tsi108_read_mii(struct tsi108_prv_data *data, int reg) in tsi108_read_mii() argument 185 (data->phy << TSI108_MAC_MII_ADDR_PHY) | in tsi108_read_mii() 202 static void tsi108_write_mii(struct tsi108_prv_data *data, in tsi108_write_mii() argument 207 (data->phy << TSI108_MAC_MII_ADDR_PHY) | in tsi108_write_mii() [all …]
|
/linux-6.1.9/drivers/leds/trigger/ ! |
D | ledtrig-pattern.c | 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 62 if (data->delta_t == 0 || data->curr->delta_t < UPDATE_INTERVAL) in pattern_trig_compute_brightness() [all …]
|
/linux-6.1.9/arch/powerpc/platforms/powernv/ ! |
D | pci.c | 194 struct OpalIoP7IOCPhbErrorData *data; in pnv_pci_dump_p7ioc_diag_data() local 196 data = (struct OpalIoP7IOCPhbErrorData *)common; in pnv_pci_dump_p7ioc_diag_data() 200 if (data->brdgCtl) in pnv_pci_dump_p7ioc_diag_data() 202 be32_to_cpu(data->brdgCtl)); in pnv_pci_dump_p7ioc_diag_data() 203 if (data->portStatusReg || data->rootCmplxStatus || in pnv_pci_dump_p7ioc_diag_data() 204 data->busAgentStatus) in pnv_pci_dump_p7ioc_diag_data() 206 be32_to_cpu(data->portStatusReg), in pnv_pci_dump_p7ioc_diag_data() 207 be32_to_cpu(data->rootCmplxStatus), in pnv_pci_dump_p7ioc_diag_data() 208 be32_to_cpu(data->busAgentStatus)); in pnv_pci_dump_p7ioc_diag_data() 209 if (data->deviceStatus || data->slotStatus || in pnv_pci_dump_p7ioc_diag_data() [all …]
|
/linux-6.1.9/drivers/iio/proximity/ ! |
D | sx_common.c | 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() 107 data->chan_prox_stat = val; in sx_common_push_events() [all …]
|
/linux-6.1.9/drivers/cpufreq/ ! |
D | powernow-k8.c | 99 static int query_current_values_with_pending_wait(struct powernow_k8_data *data) in query_current_values_with_pending_wait() argument 112 data->currvid = hi & MSR_S_HI_CURRENT_VID; in query_current_values_with_pending_wait() 113 data->currfid = lo & MSR_S_LO_CURRENT_FID; in query_current_values_with_pending_wait() 119 static void count_off_irt(struct powernow_k8_data *data) in count_off_irt() argument 121 udelay((1 << data->irt) * 10); in count_off_irt() 125 static void count_off_vst(struct powernow_k8_data *data) in count_off_vst() argument 127 udelay(data->vstable * VST_UNITS_20US); in count_off_vst() 146 static int write_new_fid(struct powernow_k8_data *data, u32 fid) in write_new_fid() argument 149 u32 savevid = data->currvid; in write_new_fid() 152 if ((fid & INVALID_FID_MASK) || (data->currvid & INVALID_VID_MASK)) { in write_new_fid() [all …]
|
/linux-6.1.9/drivers/input/mouse/ ! |
D | elan_i2c_core.c | 189 static int elan_set_power(struct elan_tp_data *data, bool on) in elan_set_power() argument 195 error = data->ops->power_control(data->client, on); in elan_set_power() 202 dev_err(&data->client->dev, "failed to set power %s: %d\n", in elan_set_power() 207 static int elan_sleep(struct elan_tp_data *data) in elan_sleep() argument 213 error = data->ops->sleep_control(data->client, true); in elan_sleep() 223 static int elan_query_product(struct elan_tp_data *data) in elan_query_product() argument 227 error = data->ops->get_product_id(data->client, &data->product_id); in elan_query_product() 231 error = data->ops->get_pattern(data->client, &data->pattern); in elan_query_product() 235 error = data->ops->get_sm_version(data->client, data->pattern, in elan_query_product() 236 &data->ic_type, &data->sm_version, in elan_query_product() [all …]
|
/linux-6.1.9/lib/pldmfw/ ! |
D | pldmfw.c | 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() 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() 123 static int pldm_parse_header(struct pldmfw_priv *data) in pldm_parse_header() argument 126 struct device *dev = data->context->dev; in pldm_parse_header() 131 err = pldm_move_fw_offset(data, sizeof(*header)); in pldm_parse_header() [all …]
|