/openbmc/phosphor-psu-code-mgmt/ |
H A D | meson.build | 16 cdata = configuration_data() variable 17 cdata.set_quoted('ITEM_IFACE', 'xyz.openbmc_project.Inventory.Item') 18 cdata.set_quoted('ASSET_IFACE', 'xyz.openbmc_project.Inventory.Decorator.Asset') 19 cdata.set_quoted('VERSION_IFACE', 'xyz.openbmc_project.Software.Version') 20 cdata.set_quoted('FILEPATH_IFACE', 'xyz.openbmc_project.Common.FilePath') 21 cdata.set_quoted('BUSNAME_UPDATER', 'xyz.openbmc_project.Software.Psu.Updater') 22 cdata.set_quoted('PSU_INVENTORY_IFACE', 'xyz.openbmc_project.Inventory.Item.PowerSupply') 23 cdata.set_quoted('ACTIVATION_FWD_ASSOCIATION', 'inventory') 24 cdata.set_quoted('ACTIVATION_REV_ASSOCIATION', 'activation') 25 cdata.set_quoted('ACTIVE_FWD_ASSOCIATION', 'active') [all …]
|
/openbmc/linux/sound/soc/sof/ |
H A D | ipc3-control.c | 19 struct sof_ipc_ctrl_data *cdata = scontrol->ipc_control_data; in sof_ipc3_set_get_kcontrol_data() local 59 if (cdata->cmd == SOF_CTRL_CMD_BINARY) { in sof_ipc3_set_get_kcontrol_data() 67 cdata->rhdr.hdr.cmd = SOF_IPC_GLB_COMP_MSG | ipc_cmd; in sof_ipc3_set_get_kcontrol_data() 68 cdata->type = ctrl_type; in sof_ipc3_set_get_kcontrol_data() 69 cdata->comp_id = scontrol->comp_id; in sof_ipc3_set_get_kcontrol_data() 70 cdata->msg_index = 0; in sof_ipc3_set_get_kcontrol_data() 73 switch (cdata->type) { in sof_ipc3_set_get_kcontrol_data() 76 cdata->num_elems = scontrol->num_channels; in sof_ipc3_set_get_kcontrol_data() 84 cdata->num_elems = cdata->data->size; in sof_ipc3_set_get_kcontrol_data() 86 msg_bytes = cdata->data->size; in sof_ipc3_set_get_kcontrol_data() [all …]
|
H A D | ipc4-control.c | 18 struct sof_ipc4_control_data *cdata = scontrol->ipc_control_data; in sof_ipc4_set_get_kcontrol_data() local 22 struct sof_ipc4_msg *msg = &cdata->msg; in sof_ipc4_set_get_kcontrol_data() 89 struct sof_ipc4_control_data *cdata = scontrol->ipc_control_data; in sof_ipc4_set_volume_data() local 91 struct sof_ipc4_msg *msg = &cdata->msg; in sof_ipc4_set_volume_data() 98 value = cdata->chanv[0].value; in sof_ipc4_set_volume_data() 100 if (cdata->chanv[i].value != value) { in sof_ipc4_set_volume_data() 113 params.init_val = cdata->chanv[0].value; in sof_ipc4_set_volume_data() 115 params.channels = cdata->chanv[i].channel; in sof_ipc4_set_volume_data() 116 params.init_val = cdata->chanv[i].value; in sof_ipc4_set_volume_data() 146 struct sof_ipc4_control_data *cdata = scontrol->ipc_control_data; in sof_ipc4_volume_put() local [all …]
|
H A D | ipc3.c | 417 struct sof_ipc_ctrl_data *cdata = data; in sof_ipc3_set_get_data() local 426 if (!cdata || data_bytes < sizeof(*cdata)) in sof_ipc3_set_get_data() 429 if ((cdata->rhdr.hdr.cmd & SOF_GLB_TYPE_MASK) != SOF_IPC_GLB_COMP_MSG) { in sof_ipc3_set_get_data() 431 __func__, cdata->rhdr.hdr.cmd); in sof_ipc3_set_get_data() 436 if (cdata->rhdr.hdr.size <= ipc->max_payload_size) in sof_ipc3_set_get_data() 437 return sof_ipc3_tx_msg(sdev, cdata, cdata->rhdr.hdr.size, in sof_ipc3_set_get_data() 438 cdata, cdata->rhdr.hdr.size, false); in sof_ipc3_set_get_data() 444 switch (cdata->type) { in sof_ipc3_set_get_data() 449 src = (u8 *)cdata->chanv; in sof_ipc3_set_get_data() 453 dst = (u8 *)cdata->chanv; in sof_ipc3_set_get_data() [all …]
|
/openbmc/linux/drivers/power/supply/ |
H A D | tps65090-charger.c | 231 struct tps65090_charger *cdata; in tps65090_charger_probe() local 249 cdata = devm_kzalloc(&pdev->dev, sizeof(*cdata), GFP_KERNEL); in tps65090_charger_probe() 250 if (!cdata) { in tps65090_charger_probe() 255 platform_set_drvdata(pdev, cdata); in tps65090_charger_probe() 257 cdata->dev = &pdev->dev; in tps65090_charger_probe() 258 cdata->pdata = pdata; in tps65090_charger_probe() 263 psy_cfg.drv_data = cdata; in tps65090_charger_probe() 265 cdata->ac = power_supply_register(&pdev->dev, &tps65090_charger_desc, in tps65090_charger_probe() 267 if (IS_ERR(cdata->ac)) { in tps65090_charger_probe() 269 return PTR_ERR(cdata->ac); in tps65090_charger_probe() [all …]
|
/openbmc/linux/drivers/crypto/caam/ |
H A D | caamalg_desc.c | 211 struct alginfo * const cdata, in init_sh_desc_key_aead() argument 216 unsigned int enckeylen = cdata->keylen; in init_sh_desc_key_aead() 246 if (cdata->key_inline) in init_sh_desc_key_aead() 247 append_key_as_imm(desc, cdata->key_virt, enckeylen, in init_sh_desc_key_aead() 250 append_key(desc, cdata->key_dma, enckeylen, CLASS_1 | in init_sh_desc_key_aead() 288 void cnstr_shdsc_aead_encap(u32 * const desc, struct alginfo *cdata, in cnstr_shdsc_aead_encap() argument 295 init_sh_desc_key_aead(desc, cdata, adata, is_rfc3686, nonce, era); in cnstr_shdsc_aead_encap() 344 append_operation(desc, cdata->algtype | OP_ALG_AS_INITFINAL | in cnstr_shdsc_aead_encap() 383 void cnstr_shdsc_aead_decap(u32 * const desc, struct alginfo *cdata, in cnstr_shdsc_aead_decap() argument 390 init_sh_desc_key_aead(desc, cdata, adata, is_rfc3686, nonce, era); in cnstr_shdsc_aead_decap() [all …]
|
H A D | caamalg_desc.h | 57 void cnstr_shdsc_aead_encap(u32 * const desc, struct alginfo *cdata, 63 void cnstr_shdsc_aead_decap(u32 * const desc, struct alginfo *cdata, 69 void cnstr_shdsc_aead_givencap(u32 * const desc, struct alginfo *cdata, 75 void cnstr_shdsc_gcm_encap(u32 * const desc, struct alginfo *cdata, 79 void cnstr_shdsc_gcm_decap(u32 * const desc, struct alginfo *cdata, 83 void cnstr_shdsc_rfc4106_encap(u32 * const desc, struct alginfo *cdata, 87 void cnstr_shdsc_rfc4106_decap(u32 * const desc, struct alginfo *cdata, 91 void cnstr_shdsc_rfc4543_encap(u32 * const desc, struct alginfo *cdata, 95 void cnstr_shdsc_rfc4543_decap(u32 * const desc, struct alginfo *cdata, 99 void cnstr_shdsc_chachapoly(u32 * const desc, struct alginfo *cdata, [all …]
|
H A D | caamalg_qi.c | 72 struct alginfo cdata; member 95 const bool ctr_mode = ((ctx->cdata.algtype & OP_ALG_AAI_MASK) == in aead_set_sh_desc() 100 if (!ctx->cdata.keylen || !ctx->authsize) in aead_set_sh_desc() 118 ctx->cdata.keylen - CTR_RFC3686_NONCE_SIZE); in aead_set_sh_desc() 130 ctx->cdata.key_virt = ctx->key + ctx->adata.keylen_pad; in aead_set_sh_desc() 131 ctx->cdata.key_dma = ctx->key_dma + ctx->adata.keylen_pad; in aead_set_sh_desc() 134 data_len[1] = ctx->cdata.keylen; in aead_set_sh_desc() 147 ctx->cdata.key_inline = !!(inl_mask & 2); in aead_set_sh_desc() 149 cnstr_shdsc_aead_encap(ctx->sh_desc_enc, &ctx->cdata, &ctx->adata, in aead_set_sh_desc() 162 ctx->cdata.key_inline = !!(inl_mask & 2); in aead_set_sh_desc() [all …]
|
H A D | caamalg.c | 125 struct alginfo cdata; member 203 const bool ctr_mode = ((ctx->cdata.algtype & OP_ALG_AAI_MASK) == in aead_set_sh_desc() 211 if (!ctx->cdata.keylen) in aead_set_sh_desc() 229 ctx->cdata.keylen - CTR_RFC3686_NONCE_SIZE); in aead_set_sh_desc() 241 ctx->cdata.key_virt = ctx->key + ctx->adata.keylen_pad; in aead_set_sh_desc() 242 ctx->cdata.key_dma = ctx->key_dma + ctx->adata.keylen_pad; in aead_set_sh_desc() 245 data_len[1] = ctx->cdata.keylen; in aead_set_sh_desc() 261 ctx->cdata.key_inline = !!(inl_mask & 2); in aead_set_sh_desc() 265 cnstr_shdsc_aead_encap(desc, &ctx->cdata, &ctx->adata, ivsize, in aead_set_sh_desc() 283 ctx->cdata.key_inline = !!(inl_mask & 2); in aead_set_sh_desc() [all …]
|
H A D | caamalg_qi2.c | 88 struct alginfo cdata; member 186 const bool ctr_mode = ((ctx->cdata.algtype & OP_ALG_AAI_MASK) == in aead_set_sh_desc() 190 if (!ctx->cdata.keylen || !ctx->authsize) in aead_set_sh_desc() 208 ctx->cdata.keylen - CTR_RFC3686_NONCE_SIZE); in aead_set_sh_desc() 220 ctx->cdata.key_virt = ctx->key + ctx->adata.keylen_pad; in aead_set_sh_desc() 221 ctx->cdata.key_dma = ctx->key_dma + ctx->adata.keylen_pad; in aead_set_sh_desc() 224 data_len[1] = ctx->cdata.keylen; in aead_set_sh_desc() 235 ctx->cdata.key_inline = !!(inl_mask & 2); in aead_set_sh_desc() 241 cnstr_shdsc_aead_givencap(desc, &ctx->cdata, &ctx->adata, in aead_set_sh_desc() 246 cnstr_shdsc_aead_encap(desc, &ctx->cdata, &ctx->adata, in aead_set_sh_desc() [all …]
|
/openbmc/linux/drivers/platform/surface/ |
H A D | surface3_power.c | 158 mshw0011_notify(struct mshw0011_data *cdata, u8 arg1, u8 arg2, in mshw0011_notify() argument 165 handle = ACPI_HANDLE(&cdata->adp1->dev); in mshw0011_notify() 172 dev_err(&cdata->adp1->dev, "device _DSM execution failed\n"); in mshw0011_notify() 207 static int mshw0011_bix(struct mshw0011_data *cdata, struct bix *bix) in mshw0011_bix() argument 209 struct i2c_client *client = cdata->bat0; in mshw0011_bix() 271 static int mshw0011_bst(struct mshw0011_data *cdata, struct bst *bst) in mshw0011_bst() argument 273 struct i2c_client *client = cdata->bat0; in mshw0011_bst() 305 static int mshw0011_adp_psr(struct mshw0011_data *cdata) in mshw0011_adp_psr() argument 307 return i2c_smbus_read_byte_data(cdata->adp1, MSHW0011_ADP1_REG_PSR); in mshw0011_adp_psr() 310 static int mshw0011_isr(struct mshw0011_data *cdata) in mshw0011_isr() argument [all …]
|
/openbmc/linux/drivers/pwm/ |
H A D | pwm-sti.c | 90 struct sti_pwm_compat_data *cdata; member 126 struct sti_pwm_compat_data *cdata = pc->cdata; in sti_pwm_get_prescale() local 141 value *= cdata->max_pwm_cnt + 1; in sti_pwm_get_prescale() 147 if (ps > cdata->max_prescale) in sti_pwm_get_prescale() 168 struct sti_pwm_compat_data *cdata = pc->cdata; in sti_pwm_config() local 228 value = cdata->max_pwm_cnt * duty_ns / period_ns; in sti_pwm_config() 317 struct sti_pwm_compat_data *cdata = pc->cdata; in sti_pwm_capture() local 318 struct sti_cpt_ddata *ddata = &cdata->ddata[pwm->hwpwm]; in sti_pwm_capture() 324 if (pwm->hwpwm >= cdata->cpt_num_devs) { in sti_pwm_capture() 399 struct sti_pwm_compat_data *cdata = pc->cdata; in sti_pwm_apply() local [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | max98095.c | 944 struct max98095_cdata *cdata; in max98095_dai1_hw_params() local 949 cdata = &max98095->dai[0]; in max98095_dai1_hw_params() 971 cdata->rate = rate; in max98095_dai1_hw_params() 1005 struct max98095_cdata *cdata; in max98095_dai2_hw_params() local 1010 cdata = &max98095->dai[1]; in max98095_dai2_hw_params() 1032 cdata->rate = rate; in max98095_dai2_hw_params() 1066 struct max98095_cdata *cdata; in max98095_dai3_hw_params() local 1071 cdata = &max98095->dai[2]; in max98095_dai3_hw_params() 1093 cdata->rate = rate; in max98095_dai3_hw_params() 1163 struct max98095_cdata *cdata; in max98095_dai1_set_fmt() local [all …]
|
H A D | max98088.c | 971 struct max98088_cdata *cdata; in max98088_dai1_hw_params() local 976 cdata = &max98088->dai[0]; in max98088_dai1_hw_params() 1000 cdata->rate = rate; in max98088_dai1_hw_params() 1041 struct max98088_cdata *cdata; in max98088_dai2_hw_params() local 1046 cdata = &max98088->dai[1]; in max98088_dai2_hw_params() 1070 cdata->rate = rate; in max98088_dai2_hw_params() 1153 struct max98088_cdata *cdata; in max98088_dai1_set_fmt() local 1157 cdata = &max98088->dai[0]; in max98088_dai1_set_fmt() 1159 if (fmt != cdata->fmt) { in max98088_dai1_set_fmt() 1160 cdata->fmt = fmt; in max98088_dai1_set_fmt() [all …]
|
/openbmc/linux/arch/m68k/mac/ |
H A D | misc.c | 244 __u8 cdata[4]; in via_read_time() member 249 via_rtc_command(RTC_CMD_READ(RTC_REG_SECONDS_0), &last_result.cdata[3]); in via_read_time() 250 via_rtc_command(RTC_CMD_READ(RTC_REG_SECONDS_1), &last_result.cdata[2]); in via_read_time() 251 via_rtc_command(RTC_CMD_READ(RTC_REG_SECONDS_2), &last_result.cdata[1]); in via_read_time() 252 via_rtc_command(RTC_CMD_READ(RTC_REG_SECONDS_3), &last_result.cdata[0]); in via_read_time() 261 &result.cdata[3]); in via_read_time() 263 &result.cdata[2]); in via_read_time() 265 &result.cdata[1]); in via_read_time() 267 &result.cdata[0]); in via_read_time() 294 __u8 cdata[4]; in via_set_rtc_time() member [all …]
|
/openbmc/qemu/hw/s390x/ |
H A D | sclpcpu.c | 53 ConfigMgtData *cdata = (ConfigMgtData *) evt_buf_hdr; in read_event_data() local 65 cdata->ebh.length = cpu_to_be16(sizeof(ConfigMgtData)); in read_event_data() 66 cdata->ebh.type = SCLP_EVENT_CONFIG_MGT_DATA; in read_event_data() 67 cdata->ebh.flags |= SCLP_EVENT_BUFFER_ACCEPTED; in read_event_data() 70 cdata->event_qualifier = EVENT_QUAL_CPU_CHANGE; in read_event_data()
|
/openbmc/linux/drivers/dma/ |
H A D | tegra210-adma.c | 162 const struct tegra_adma_chip_data *cdata; member 170 writel(val, tdma->base_addr + tdma->cdata->global_reg_offset + reg); in tdma_write() 175 return readl(tdma->base_addr + tdma->cdata->global_reg_offset + reg); in tdma_read() 225 tdma_write(tdma, tdma->cdata->ch_base_offset + tdma->cdata->global_int_clear, 0x1); in tegra_adma_init() 233 tdma->cdata->global_reg_offset + in tegra_adma_init() 254 if (sreq_index > tdma->cdata->ch_req_max) { in tegra_adma_request_alloc() 560 const struct tegra_adma_chip_data *cdata = tdc->tdma->cdata; in tegra_adma_set_xfer_params() local 573 cdata->ch_req_mask, in tegra_adma_set_xfer_params() 574 cdata->ch_req_tx_shift); in tegra_adma_set_xfer_params() 584 cdata->ch_req_mask, in tegra_adma_set_xfer_params() [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-jz4780.c | 145 const struct ingenic_i2c_config *cdata; member 344 if (i2c->cdata->version >= ID_X1000) { in jz4780_i2c_set_speed() 352 if (i2c->cdata->version >= ID_X1000) in jz4780_i2c_set_speed() 370 if (i2c->cdata->version < ID_X1000) { in jz4780_i2c_cleanup() 421 if ((cmd_left == 0) && (i2c->cdata->version >= ID_X1000)) in jz4780_i2c_send_rcmd() 478 if (rd_left <= i2c->cdata->fifosize) in jz4780_i2c_irq() 485 int max_send = (i2c->cdata->fifosize - 1) in jz4780_i2c_irq() 492 i2c->cdata->fifosize in jz4780_i2c_irq() 493 - i2c->cdata->tx_level - 1); in jz4780_i2c_irq() 509 if (i2c->cdata->version < ID_X1000) { in jz4780_i2c_irq() [all …]
|
/openbmc/linux/drivers/thermal/st/ |
H A D | st_thermal.c | 27 const struct reg_field *reg_fields = sensor->cdata->reg_fields; in st_thermal_alloc_regfields() 100 sensor->cdata->calibration_val); in st_thermal_calibration() 126 temp += sensor->cdata->temp_adjust_val; in st_thermal_get_temp() 166 sensor->cdata = match->data; in st_thermal_register() 167 if (!sensor->cdata->ops) in st_thermal_register() 170 sensor->ops = sensor->cdata->ops; in st_thermal_register() 202 trip.temperature = sensor->cdata->crit_temp; in st_thermal_register()
|
/openbmc/linux/drivers/gpu/drm/rockchip/ |
H A D | dw-mipi-dsi-rockchip.c | 285 const struct rockchip_dw_dsi_chip_data *cdata; member 730 if (dsi->cdata->lanecfg1_grf_reg) in dw_mipi_dsi_rockchip_config() 731 regmap_write(dsi->grf_regmap, dsi->cdata->lanecfg1_grf_reg, in dw_mipi_dsi_rockchip_config() 732 dsi->cdata->lanecfg1); in dw_mipi_dsi_rockchip_config() 734 if (dsi->cdata->lanecfg2_grf_reg) in dw_mipi_dsi_rockchip_config() 735 regmap_write(dsi->grf_regmap, dsi->cdata->lanecfg2_grf_reg, in dw_mipi_dsi_rockchip_config() 736 dsi->cdata->lanecfg2); in dw_mipi_dsi_rockchip_config() 738 if (dsi->cdata->enable_grf_reg) in dw_mipi_dsi_rockchip_config() 739 regmap_write(dsi->grf_regmap, dsi->cdata->enable_grf_reg, in dw_mipi_dsi_rockchip_config() 740 dsi->cdata->enable); in dw_mipi_dsi_rockchip_config() [all …]
|
/openbmc/linux/drivers/misc/eeprom/ |
H A D | at24.c | 515 const struct at24_chip_data *cdata; in at24_get_chip_data() local 526 cdata = of_device_get_match_data(dev); in at24_get_chip_data() 528 cdata = (void *)id->driver_data; in at24_get_chip_data() 530 cdata = acpi_device_get_match_data(dev); in at24_get_chip_data() 532 if (!cdata) in at24_get_chip_data() 535 return cdata; in at24_get_chip_data() 614 const struct at24_chip_data *cdata; in at24_probe() local 629 cdata = at24_get_chip_data(dev); in at24_probe() 630 if (IS_ERR(cdata)) in at24_probe() 631 return PTR_ERR(cdata); in at24_probe() [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | dell-smm-hwmon.c | 615 struct dell_smm_cooling_data *cdata = dev->devdata; in dell_smm_get_max_state() local 617 *state = cdata->data->i8k_fan_max; in dell_smm_get_max_state() 624 struct dell_smm_cooling_data *cdata = dev->devdata; in dell_smm_get_cur_state() local 627 ret = i8k_get_fan_status(cdata->data, cdata->fan_num); in dell_smm_get_cur_state() 638 struct dell_smm_cooling_data *cdata = dev->devdata; in dell_smm_set_cur_state() local 639 struct dell_smm_data *data = cdata->data; in dell_smm_set_cur_state() 646 ret = i8k_set_fan(data, cdata->fan_num, (int)state); in dell_smm_set_cur_state() 962 struct dell_smm_cooling_data *cdata; in dell_smm_init_cdev() local 970 cdata = devm_kmalloc(dev, sizeof(*cdata), GFP_KERNEL); in dell_smm_init_cdev() 971 if (cdata) { in dell_smm_init_cdev() [all …]
|
/openbmc/linux/arch/arm/mm/ |
H A D | pageattr.c | 18 struct page_change_data *cdata = data; in change_page_range() local 21 pte = clear_pte_bit(pte, cdata->clear_mask); in change_page_range() 22 pte = set_pte_bit(pte, cdata->set_mask); in change_page_range()
|
/openbmc/linux/drivers/spi/ |
H A D | spi-tegra114.c | 776 struct tegra_spi_client_data *cdata = spi->controller_data; in tegra_spi_setup_transfer_one() local 845 if (cdata && cdata->tx_clk_tap_delay) in tegra_spi_setup_transfer_one() 846 tx_tap = cdata->tx_clk_tap_delay; in tegra_spi_setup_transfer_one() 847 if (cdata && cdata->rx_clk_tap_delay) in tegra_spi_setup_transfer_one() 848 rx_tap = cdata->rx_clk_tap_delay; in tegra_spi_setup_transfer_one() 914 struct tegra_spi_client_data *cdata; in tegra_spi_parse_cdata_dt() local 923 cdata = kzalloc(sizeof(*cdata), GFP_KERNEL); in tegra_spi_parse_cdata_dt() 924 if (!cdata) in tegra_spi_parse_cdata_dt() 928 &cdata->tx_clk_tap_delay); in tegra_spi_parse_cdata_dt() 930 &cdata->rx_clk_tap_delay); in tegra_spi_parse_cdata_dt() [all …]
|
/openbmc/linux/drivers/tty/serial/ |
H A D | serial-tegra.c | 108 const struct tegra_uart_chip_data *cdata; member 313 if (tup->cdata->allow_txfifo_reset_fifo_mode) { in tegra_uart_fifo_reset() 324 if (tup->cdata->fifo_mode_enable_status) in tegra_uart_fifo_reset() 370 if (diff < (tup->cdata->error_tolerance_low_range * 100) || in tegra_check_rate_in_range() 371 diff > (tup->cdata->error_tolerance_high_range * 100)) { in tegra_check_rate_in_range() 391 if (tup->cdata->support_clk_src_div) { in tegra_set_baudrate() 492 if (tup->cdata->tx_fifo_full_status) { in tegra_uart_fill_tx_fifo() 1036 if (tup->cdata->max_dma_burst_bytes == 8) in tegra_uart_hw_init() 1048 if (tup->cdata->fifo_mode_enable_status) { in tegra_uart_hw_init() 1167 dma_sconfig.src_maxburst = tup->cdata->max_dma_burst_bytes; in tegra_uart_dma_channel_allocate() [all …]
|