/openbmc/qemu/hw/ide/ |
H A D | via.c | 122 static void via_ide_reset(DeviceState *dev) in via_ide_reset() argument 124 PCIIDEState *d = PCI_IDE(dev); in via_ide_reset() 125 PCIDevice *pd = PCI_DEVICE(dev); in via_ide_reset() 197 static void via_ide_realize(PCIDevice *dev, Error **errp) in via_ide_realize() argument 199 PCIIDEState *d = PCI_IDE(dev); in via_ide_realize() 200 DeviceState *ds = DEVICE(dev); in via_ide_realize() 201 uint8_t *pci_conf = dev->config; in via_ide_realize() 205 dev->wmask[PCI_INTERRUPT_LINE] = 0; in via_ide_realize() 206 dev->wmask[PCI_CLASS_PROG] = 5; in via_ide_realize() 237 static void via_ide_exitfn(PCIDevice *dev) in via_ide_exitfn() argument [all …]
|
/openbmc/linux/drivers/soc/apple/ |
H A D | rtkit.c | 157 dev_dbg(rtk->dev, in apple_rtkit_management_rx_epmap() 190 dev_dbg(rtk->dev, in apple_rtkit_management_rx_epmap() 249 rtk->dev, in apple_rtkit_management_rx() 370 dev_err(rtk->dev, in apple_rtkit_crashlog_rx() 407 dev_dbg(rtk->dev, in apple_rtkit_syslog_rx_init() 426 rtk->dev, in apple_rtkit_syslog_rx_log() 432 rtk->dev, in apple_rtkit_syslog_rx_log() 438 rtk->dev, in apple_rtkit_syslog_rx_log() 540 rtk->dev, in apple_rtkit_rx_work() 728 rtk->dev = dev; in apple_rtkit_init() [all …]
|
/openbmc/linux/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_hw_wq.c | 155 dma_free_coherent(&pdev->dev, WQS_PAGE_SIZE, in wqs_free_page() 184 dma_free_coherent(&pdev->dev, CMDQ_PAGE_SIZE, in cmdq_free_page() 214 devm_kfree(&pdev->dev, wqs->page_vaddr); in alloc_page_arrays() 217 devm_kfree(&pdev->dev, wqs->page_paddr); in alloc_page_arrays() 227 devm_kfree(&pdev->dev, wqs->page_vaddr); in free_page_arrays() 228 devm_kfree(&pdev->dev, wqs->page_paddr); in free_page_arrays() 320 dev_err(&pdev->dev, in hinic_wqs_alloc() 362 devm_kfree(&pdev->dev, wqs->free_blocks); in hinic_wqs_free() 394 devm_kfree(&pdev->dev, wq->shadow_wqe); in alloc_wqes_shadow() 407 devm_kfree(&pdev->dev, wq->shadow_idx); in free_wqes_shadow() [all …]
|
/openbmc/linux/drivers/dma/qcom/ |
H A D | qcom_adm.c | 159 struct device *dev; member 365 dev_err(adev->dev, "invalid dma direction\n"); in adm_prep_slave_sg() 380 dev_err(adev->dev, "invalid burst value: %d\n", in adm_prep_slave_sg() 387 dev_err(adev->dev, "invalid crci value\n"); in adm_prep_slave_sg() 721 struct dma_device *dev = ofdma->of_dma_data; in adm_dma_xlate() local 725 if (!dev || dma_spec->args_count > 2) in adm_dma_xlate() 756 adev->dev = &pdev->dev; in adm_dma_probe() 864 adev->common.dev = adev->dev; in adm_dma_probe() 865 adev->common.dev->dma_parms = &adev->dma_parms; in adm_dma_probe() 913 of_dma_controller_free(pdev->dev.of_node); in adm_dma_remove() [all …]
|
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | radeon_legacy_crtc.c | 40 struct drm_device *dev = crtc->dev; in radeon_overscan_setup() local 41 struct radeon_device *rdev = dev->dev_private; in radeon_overscan_setup() 52 struct drm_device *dev = crtc->dev; in radeon_legacy_rmx_mode_set() local 300 struct drm_device *dev = crtc->dev; in radeon_crtc_dpms() local 377 struct drm_device *dev = crtc->dev; in radeon_crtc_do_set_base() local 575 struct drm_device *dev = crtc->dev; in radeon_set_crtc_timing() local 735 struct drm_device *dev = crtc->dev; in radeon_set_pll() local 888 radeon_pll2_write_update(dev); in radeon_set_pll() 993 radeon_pll_write_update(dev); in radeon_set_pll() 1063 struct drm_device *dev = crtc->dev; in radeon_crtc_prepare() local [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | da7219-aad.c | 504 dev_warn(dev, "Invalid micbias pulse level"); in da7219_aad_fw_micbias_pulse_lvl() 528 dev_warn(dev, "Invalid button config"); in da7219_aad_fw_btn_cfg() 602 dev_warn(dev, "Invalid jack detect rate"); in da7219_aad_fw_jack_det_rate() 663 struct i2c_client *i2c = to_i2c_client(dev); in da7219_aad_fw_to_pdata() 699 da7219_aad_fw_mic_det_thr(dev, fw_val32); in da7219_aad_fw_to_pdata() 705 da7219_aad_fw_jack_ins_deb(dev, fw_val32); in da7219_aad_fw_to_pdata() 711 da7219_aad_fw_jack_ins_det_pty(dev, fw_str); in da7219_aad_fw_to_pdata() 717 da7219_aad_fw_jack_det_rate(dev, fw_str); in da7219_aad_fw_to_pdata() 723 da7219_aad_fw_jack_rem_deb(dev, fw_val32); in da7219_aad_fw_to_pdata() 754 da7219_aad_fw_adc_1bit_rpt(dev, fw_val32); in da7219_aad_fw_to_pdata() [all …]
|
/openbmc/linux/sound/soc/fsl/ |
H A D | fsl-asoc-card.c | 176 struct device *dev = rtd->card->dev; in fsl_asoc_card_hw_params() local 247 struct device *dev = rtd->card->dev; in fsl_asoc_card_hw_free() local 343 struct device *dev = &priv->pdev->dev; in fsl_asoc_card_audmux_init() local 509 struct device *dev = card->dev; in fsl_asoc_card_late_probe() local 588 codec_dev = &codec_i2c->dev; in fsl_asoc_card_probe() 594 codec_dev = &codec_pdev->dev; in fsl_asoc_card_probe() 786 priv->card.dev = &pdev->dev; in fsl_asoc_card_probe() 822 dev_err(&pdev->dev, in fsl_asoc_card_probe() 828 devm_kasprintf(&pdev->dev, GFP_KERNEL, in fsl_asoc_card_probe() 868 dev_err(&pdev->dev, in fsl_asoc_card_probe() [all …]
|
/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A D | iommu.c | 839 dn = dev->dev.of_node; in pci_dma_dev_setup_pSeries() 856 set_iommu_table_base(&dev->dev, tbl); in pci_dma_dev_setup_pSeries() 868 set_iommu_table_base(&dev->dev, in pci_dma_dev_setup_pSeries() 1167 dev_info(&dev->dev, in create_ddw() 1227 dev_info(&dev->dev, in reset_dma_window() 1423 dev_info(&dev->dev, "Skipping ibm,pmemory"); in enable_ddw() 1428 dev_dbg(&dev->dev, in enable_ddw() 1454 dev_info(&dev->dev, in enable_ddw() 1515 set_iommu_table_base(&dev->dev, newtbl); in enable_ddw() 1531 dev->dev.archdata.dma_offset = win_addr; in enable_ddw() [all …]
|
/openbmc/linux/drivers/input/rmi4/ |
H A D | rmi_2d_sensor.c | 105 rmi_dbg(RMI_DEBUG_2D_SENSOR, &sensor->input->dev, in rmi_2d_sensor_abs_report() 212 struct rmi_driver_data *drv_data = dev_get_drvdata(&rmi_dev->dev); in rmi_2d_sensor_configure_input() 225 int rmi_2d_sensor_of_probe(struct device *dev, in rmi_2d_sensor_of_probe() argument 231 pdata->axis_align.swap_axes = of_property_read_bool(dev->of_node, in rmi_2d_sensor_of_probe() 234 pdata->axis_align.flip_x = of_property_read_bool(dev->of_node, in rmi_2d_sensor_of_probe() 237 pdata->axis_align.flip_y = of_property_read_bool(dev->of_node, in rmi_2d_sensor_of_probe() 264 retval = rmi_of_property_read_u32(dev, &val, "syna,offset-x", 1); in rmi_2d_sensor_of_probe() 270 retval = rmi_of_property_read_u32(dev, &val, "syna,offset-y", 1); in rmi_2d_sensor_of_probe() 290 retval = rmi_of_property_read_u32(dev, (u32 *)&pdata->sensor_type, in rmi_2d_sensor_of_probe() 307 retval = rmi_of_property_read_u32(dev, &val, in rmi_2d_sensor_of_probe() [all …]
|
/openbmc/linux/drivers/media/pci/cx25821/ |
H A D | cx25821-i2c.c | 27 printk(KERN_DEBUG "%s/0: " fmt, dev->name, ##arg); \ 39 struct cx25821_dev *dev = bus->dev; in i2c_slave_did_ack() local 46 struct cx25821_dev *dev = bus->dev; in i2c_is_busy() local 70 struct cx25821_dev *dev = bus->dev; in i2c_sendbytes() local 164 struct cx25821_dev *dev = bus->dev; in i2c_readbytes() local 227 struct cx25821_dev *dev = bus->dev; in i2c_xfer() local 291 struct cx25821_dev *dev = bus->dev; in cx25821_i2c_register() local 297 bus->i2c_adap.dev.parent = &dev->pci->dev; in cx25821_i2c_register() 302 i2c_set_adapdata(&bus->i2c_adap, &dev->v4l2_dev); in cx25821_i2c_register() 320 static void cx25821_av_clk(struct cx25821_dev *dev, int enable) [all …]
|
/openbmc/u-boot/drivers/ram/ |
H A D | stm32_sdram.c | 157 int stm32_sdram_init(struct udevice *dev) in stm32_sdram_init() argument 159 struct stm32_sdram_params *params = dev_get_platdata(dev); in stm32_sdram_init() 256 struct stm32_sdram_params *params = dev_get_platdata(dev); in stm32_fmc_ofdata_to_platdata() 293 dev_for_each_subnode(bank_node, dev) { in stm32_fmc_ofdata_to_platdata() 351 static int stm32_fmc_probe(struct udevice *dev) in stm32_fmc_probe() argument 353 struct stm32_sdram_params *params = dev_get_platdata(dev); in stm32_fmc_probe() 357 addr = dev_read_addr(dev); in stm32_fmc_probe() 362 params->family = dev_get_driver_data(dev); in stm32_fmc_probe() 367 ret = clk_get_by_index(dev, 0, &clk); in stm32_fmc_probe() 374 dev_err(dev, "failed to enable clock\n"); in stm32_fmc_probe() [all …]
|
/openbmc/u-boot/drivers/sound/ |
H A D | hda_codec.c | 176 ofnode parent = dev_read_subnode(dev, "codecs"); in find_verb_data() 258 ret = find_verb_data(dev, id, &node); in codec_init() 280 ret = codec_init(dev, regs, i); in hda_codecs_init() 426 static int get_hda_beep_nid(struct udevice *dev) in get_hda_beep_nid() argument 428 struct hda_codec_priv *priv = dev_get_priv(dev); in get_hda_beep_nid() 470 int hda_codec_init(struct udevice *dev) in hda_codec_init() argument 472 struct hda_codec_priv *priv = dev_get_priv(dev); in hda_codec_init() 475 base_addr = dm_pci_read_bar32(dev, 0); in hda_codec_init() 485 int hda_codec_finish_init(struct udevice *dev) in hda_codec_finish_init() argument 490 ret = get_hda_beep_nid(dev); in hda_codec_finish_init() [all …]
|
/openbmc/linux/kernel/trace/ |
H A D | trace_mmiotrace.c | 20 struct pci_dev *dev; member 68 dev->bus->number, dev->devfn, in mmio_print_pcidev() 69 dev->vendor, dev->device, dev->irq); in mmio_print_pcidev() 71 start = dev->resource[i].start; in mmio_print_pcidev() 77 start = dev->resource[i].start; in mmio_print_pcidev() 78 end = dev->resource[i].end; in mmio_print_pcidev() 80 dev->resource[i].start < dev->resource[i].end ? in mmio_print_pcidev() 93 pci_dev_put(hiter->dev); in destroy_header_iter() 152 mmio_print_pcidev(s, hiter->dev); in mmio_read() 153 hiter->dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, hiter->dev); in mmio_read() [all …]
|
/openbmc/linux/drivers/thermal/ |
H A D | imx8mm_thermal.c | 176 struct device *dev = &pdev->dev; in imx8mm_tmu_probe_set_calib_v1() local 201 struct device *dev = &pdev->dev; in imx8mm_tmu_probe_set_calib_v2() local 207 cell = nvmem_cell_get(dev, "calib"); in imx8mm_tmu_probe_set_calib_v2() 221 dev_err(dev, in imx8mm_tmu_probe_set_calib_v2() 274 struct device *dev = &pdev->dev; in imx8mm_tmu_probe_set_calib() local 283 dev_warn(dev, in imx8mm_tmu_probe_set_calib() 301 data = of_device_get_match_data(&pdev->dev); in imx8mm_tmu_probe() 314 tmu->clk = devm_clk_get(&pdev->dev, NULL); in imx8mm_tmu_probe() 316 return dev_err_probe(&pdev->dev, PTR_ERR(tmu->clk), in imx8mm_tmu_probe() 331 devm_thermal_of_zone_register(&pdev->dev, i, in imx8mm_tmu_probe() [all …]
|
/openbmc/linux/drivers/spi/ |
H A D | spi-dw-mmio.c | 108 dev_err(&pdev->dev, "SPI_MST region map failed\n"); in dw_spi_mscc_init() 180 struct device *dev = &pdev->dev; in dw_spi_mscc_sparx5_init() local 184 dev_err(dev, "This driver needs CONFIG_SPI_MUX\n"); in dw_spi_mscc_sparx5_init() 195 dev_err(dev, "No syscon map %s\n", syscon_name); in dw_spi_mscc_sparx5_init() 306 return dev_err_probe(&pdev->dev, PTR_ERR(syscon), in dw_spi_elba_init() 343 dwsmmio->clk = devm_clk_get(&pdev->dev, NULL); in dw_spi_mmio_probe() 382 init_func = device_get_match_data(&pdev->dev); in dw_spi_mmio_probe() 389 pm_runtime_enable(&pdev->dev); in dw_spi_mmio_probe() 391 ret = dw_spi_add_host(&pdev->dev, dws); in dw_spi_mmio_probe() 399 pm_runtime_disable(&pdev->dev); in dw_spi_mmio_probe() [all …]
|
/openbmc/linux/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtmips.c | 30 struct device *dev; member 128 dev_err(p->dev, "%s is already enabled\n", in mtmips_pmx_group_enable() 220 p->func = devm_kcalloc(p->dev, p->func_count, in mtmips_pinctrl_index() 265 p->func[i]->pins = devm_kcalloc(p->dev, in mtmips_pinctrl_pins() 282 p->pads = devm_kcalloc(p->dev, p->max_pins, in mtmips_pinctrl_pins() 320 struct pinctrl_dev *dev; in mtmips_pinctrl_init() local 331 p->dev = &pdev->dev; in mtmips_pinctrl_init() 339 dev_err(&pdev->dev, "failed to load index\n"); in mtmips_pinctrl_init() 345 dev_err(&pdev->dev, "failed to load pins\n"); in mtmips_pinctrl_init() 348 dev = pinctrl_register(p->desc, &pdev->dev, p); in mtmips_pinctrl_init() [all …]
|
/openbmc/linux/drivers/infiniband/hw/irdma/ |
H A D | ws.c | 226 vsi->dev->ws_tree_root = NULL; in irdma_remove_leaf() 245 mutex_lock(&vsi->dev->ws_mutex); in irdma_ws_add() 279 ibdev_dbg(to_ibdev(vsi->dev), in irdma_ws_add() 298 ibdev_dbg(to_ibdev(vsi->dev), in irdma_ws_add() 306 ibdev_dbg(to_ibdev(vsi->dev), in irdma_ws_add() 337 ibdev_dbg(to_ibdev(vsi->dev), in irdma_ws_add() 370 vsi->dev->ws_tree_root = NULL; in irdma_ws_add() 375 mutex_unlock(&vsi->dev->ws_mutex); in irdma_ws_add() 386 mutex_lock(&vsi->dev->ws_mutex); in irdma_ws_remove() 391 mutex_unlock(&vsi->dev->ws_mutex); in irdma_ws_remove() [all …]
|
/openbmc/linux/drivers/fpga/ |
H A D | dfl-pci.c | 55 dev_dbg(&pcidev->dev, "fpga interrupt not supported\n"); in cci_pci_alloc_irq() 169 dev_dbg(&pcidev->dev, "%s no DFL VSEC found\n", __func__); in find_dfls_by_vsec() 176 dev_err(&pcidev->dev, "%s too many DFLs %d > %d\n", in find_dfls_by_vsec() 194 dev_err(&pcidev->dev, "%s bad bir number %d\n", in find_dfls_by_vsec() 210 dev_err(&pcidev->dev, "%s bad offset %u >= %pa\n", in find_dfls_by_vsec() 278 dev_err(&pcidev->dev, "bad BAR %d for port %d\n", in find_dfls_by_default() 314 info = dfl_fpga_enum_info_alloc(&pcidev->dev); in cci_enumerate_feature_devs() 321 dev_err(&pcidev->dev, "Fail to alloc irq %d.\n", nvec); in cci_enumerate_feature_devs() 347 dev_err(&pcidev->dev, "Enumeration failure\n"); in cci_enumerate_feature_devs() 392 dev_err(&pcidev->dev, "enumeration failure %d.\n", ret); in cci_pci_probe() [all …]
|
/openbmc/linux/drivers/memory/tegra/ |
H A D | tegra186-emc.c | 23 struct device *dev; member 169 dev_err(emc->dev, "failed to EMC DVFS pairs: %d\n", err); in tegra186_emc_get_emc_dvfs_latency() 186 dev_dbg(emc->dev, "%u DVFS pairs:\n", emc->num_dvfs); in tegra186_emc_get_emc_dvfs_latency() 198 dev_dbg(emc->dev, " %2u: %lu Hz -> %lu us\n", i, in tegra186_emc_get_emc_dvfs_latency() 260 struct tegra_mc *mc = dev_get_drvdata(emc->dev->parent); in tegra_emc_interconnect_init() 265 emc->provider.dev = emc->dev; in tegra_emc_interconnect_init() 315 struct tegra_mc *mc = dev_get_drvdata(pdev->dev.parent); in tegra186_emc_probe() 323 emc->bpmp = tegra_bpmp_get(&pdev->dev); in tegra186_emc_probe() 327 emc->clk = devm_clk_get(&pdev->dev, "emc"); in tegra186_emc_probe() 335 emc->dev = &pdev->dev; in tegra186_emc_probe() [all …]
|
/openbmc/qemu/subprojects/libvhost-user/ |
H A D | link-test.c | 10 panic(VuDev *dev, const char *err) in panic() argument 16 set_watch(VuDev *dev, int fd, int condition, in set_watch() argument 23 remove_watch(VuDev *dev, int fd) in remove_watch() argument 38 VuDev dev = { 0, }; in main() local 40 rc = vu_init(&dev, max_queues, socket, panic, NULL, set_watch, remove_watch, &iface); in main() 42 vu_deinit(&dev); in main()
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt76x0/ |
H A D | eeprom.h | 18 int mt76x0_eeprom_init(struct mt76x02_dev *dev); 19 void mt76x0_read_rx_gain(struct mt76x02_dev *dev); 20 void mt76x0_get_tx_power_per_rate(struct mt76x02_dev *dev, 23 void mt76x0_get_power_info(struct mt76x02_dev *dev, 35 static inline bool mt76x0_tssi_enabled(struct mt76x02_dev *dev) in mt76x0_tssi_enabled() argument 37 return (mt76x02_eeprom_get(dev, MT_EE_NIC_CONF_1) & in mt76x0_tssi_enabled()
|
/openbmc/u-boot/drivers/mmc/ |
H A D | mtk-sd.c | 853 if (!host->gpio_cd.dev) in msdc_ops_get_cd() 867 if (!host->gpio_wp.dev) in msdc_ops_get_wp() 1066 ret = msdc_tune_response(dev, opcode); in msdc_tune_data() 1089 ret = msdc_tune_response(dev, opcode); in msdc_tune_data() 1140 ret = msdc_tune_response(dev, opcode); in msdc_execute_tuning() 1142 dev_err(dev, "Tune response fail!\n"); in msdc_execute_tuning() 1147 ret = msdc_tune_data(dev, opcode); in msdc_execute_tuning() 1149 dev_err(dev, "Tune data fail!\n"); in msdc_execute_tuning() 1281 cfg->name = dev->name; in msdc_drv_probe() 1301 pinctrl_select_state(dev, "default"); in msdc_drv_probe() [all …]
|
/openbmc/linux/sound/soc/qcom/qdsp6/ |
H A D | q6asm-dai.c | 224 struct device *dev = component->dev; in q6asm_dai_prepare() local 357 struct device *dev = component->dev; in q6asm_dai_open() local 608 struct device *dev = component->dev; in q6asm_dai_compr_open() local 706 struct device *dev = component->dev; in __q6asm_dai_compr_set_codec_params() local 881 struct device *dev = component->dev; in q6asm_dai_compr_set_params() local 1124 struct device *dev = component->dev; in q6asm_dai_compr_mmap() local 1126 return dma_mmap_coherent(dev, vma, in q6asm_dai_compr_mmap() 1185 component->dev, size); in q6asm_dai_pcm_new() 1248 dev_err(dev, "No dais found in DT\n"); in of_q6asm_parse_dai_data() 1287 struct device *dev = &pdev->dev; in q6asm_dai_probe() local [all …]
|
/openbmc/linux/drivers/media/pci/ttpci/ |
H A D | budget-ci.c | 82 struct rc_dev *dev; member 106 struct rc_dev *dev = budget_ci->ir.dev; in msp430_ir_interrupt() local 162 struct rc_dev *dev; in msp430_ir_init() local 166 if (!dev) { in msp430_ir_init() 180 dev->input_id.version = 1; in msp430_ir_init() 188 dev->dev.parent = &saa->pci->dev; in msp430_ir_init() 222 dev->scancode_mask = 0xff; in msp430_ir_init() 227 rc_free_device(dev); in msp430_ir_init() 231 budget_ci->ir.dev = dev; in msp430_ir_init() 820 return request_firmware(fw, name, &budget_ci->budget.dev->pci->dev); in philips_tdm1316l_request_firmware() [all …]
|
/openbmc/linux/drivers/power/supply/ |
H A D | bq25890_charger.c | 109 struct device *dev; member 945 dev_dbg(bq->dev, "Reset failed %d\n", ret); in bq25890_hw_init() 1247 .dev = bq->dev, in bq25890_register_regulator() 1257 return dev_err_probe(bq->dev, PTR_ERR(reg), in bq25890_register_regulator() 1265 return dev_err_probe(bq->dev, PTR_ERR(reg), in bq25890_register_regulator() 1310 dev_err(bq->dev, in bq25890_get_chip_version() 1335 return dev_err_probe(bq->dev, PTR_ERR(irq), in bq25890_irq_probe() 1452 struct device *dev = &client->dev; in bq25890_probe() local 1461 bq->dev = dev; in bq25890_probe() 1499 dev_err(dev, "No irq resource found.\n"); in bq25890_probe() [all …]
|