/openbmc/linux/drivers/thermal/ |
H A D | sun8i_thermal.c | 83 struct device *dev; member 221 struct device *dev = tmdev->dev; in sun50i_h6_ths_calibrate() local 265 dev_warn(dev, "sensor%d is not calibrated.\n", i); in sun50i_h6_ths_calibrate() 282 struct device *dev = tmdev->dev; in sun8i_ths_calibrate() local 287 calcell = nvmem_cell_get(dev, "calibration"); in sun8i_ths_calibrate() 329 struct device *dev = tmdev->dev; in sun8i_ths_resource_init() local 343 tmdev->reset = devm_reset_control_get(dev, NULL); in sun8i_ths_resource_init() 464 devm_thermal_of_zone_register(tmdev->dev, in sun8i_ths_register() 480 struct device *dev = &pdev->dev; in sun8i_ths_probe() local 487 tmdev->dev = dev; in sun8i_ths_probe() [all …]
|
/openbmc/linux/drivers/ufs/host/ |
H A D | ufs-hisi.c | 222 dev_info(hba->dev, in ufs_hisi_link_startup_pre_change() 229 dev_err(hba->dev, "ufs_hisi_check_hibern8 error\n"); in ufs_hisi_link_startup_pre_change() 372 dev_err(hba->dev, in ufs_hisi_pwr_change_notify() 384 dev_err(hba->dev, in ufs_hisi_pwr_change_notify() 404 return __ufshcd_suspend_prepare(dev, false); in ufs_hisi_suspend_prepare() 451 struct device *dev = host->hba->dev; in ufs_hisi_get_resource() local 472 struct device *dev = hba->dev; in ufs_hisi_init_common() local 475 host = devm_kzalloc(dev, sizeof(*host), GFP_KERNEL); in ufs_hisi_init_common() 482 host->rst = devm_reset_control_get(dev, "rst"); in ufs_hisi_init_common() 505 struct device *dev = hba->dev; in ufs_hi3660_init() local [all …]
|
/openbmc/linux/drivers/bus/ |
H A D | hisi_lpc.c | 405 dev_dbg(&adev->dev, "device is not present\n"); in hisi_lpc_acpi_set_io_res() 410 dev_dbg(&adev->dev, "has been enumerated\n"); in hisi_lpc_acpi_set_io_res() 608 struct device *dev = &pdev->dev; in hisi_lpc_probe() local 628 range->fwnode = dev_fwnode(dev); in hisi_lpc_probe() 643 ret = hisi_lpc_acpi_probe(dev); in hisi_lpc_probe() 645 ret = of_platform_populate(dev->of_node, NULL, NULL, dev); in hisi_lpc_probe() 651 dev_set_drvdata(dev, lpcdev); in hisi_lpc_probe() 654 dev_info(dev, "registered range [%pa - %pa]\n", in hisi_lpc_probe() 662 struct device *dev = &pdev->dev; in hisi_lpc_remove() local 667 hisi_lpc_acpi_remove(dev); in hisi_lpc_remove() [all …]
|
/openbmc/linux/drivers/fpga/ |
H A D | zynq-fpga.c | 269 dev_err(&mgr->dev, in zynq_fpga_ops_write_init() 279 dev_err(&mgr->dev, in zynq_fpga_ops_write_init() 402 dev_err(&mgr->dev, in zynq_fpga_ops_write() 467 dev_err(&mgr->dev, in zynq_fpga_ops_write() 555 struct device *dev = &pdev->dev; in zynq_fpga_probe() local 572 dev_err(dev, "unable to get zynq-slcr regmap\n"); in zynq_fpga_probe() 582 priv->clk = devm_clk_get(dev, "ref_clk"); in zynq_fpga_probe() 584 return dev_err_probe(dev, PTR_ERR(priv->clk), in zynq_fpga_probe() 589 dev_err(dev, "unable to enable clock\n"); in zynq_fpga_probe() 598 err = devm_request_irq(dev, priv->irq, zynq_fpga_isr, 0, dev_name(dev), in zynq_fpga_probe() [all …]
|
/openbmc/linux/include/scsi/ |
H A D | scsi_transport_iscsi.h | 224 container_of(_dev, struct iscsi_cls_conn, dev) 230 iscsi_dev_to_session(_conn->dev.parent) 288 dev_to_shost(_session->dev.parent) 291 iscsi_dev_to_session(_stgt->dev.parent) 301 dev_to_shost(_job->dev) 308 struct device dev; member 314 struct device dev; member 322 container_of(_dev, struct iscsi_iface, dev) 325 dev_to_shost(_iface->dev.parent) 369 iscsi_dev_to_flash_session(_conn->dev.parent) [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-pch.c | 95 struct device *dev; member 215 gpio->label = dev_name(chip->dev); in pch_gpio_setup() 216 gpio->parent = chip->dev; in pch_gpio_setup() 354 struct device *dev = &pdev->dev; in pch_gpio_probe() local 359 chip = devm_kzalloc(dev, sizeof(*chip), GFP_KERNEL); in pch_gpio_probe() 363 chip->dev = dev; in pch_gpio_probe() 379 ret = devm_gpiochip_add_data(dev, &chip->gpio, chip); in pch_gpio_probe() 383 irq_base = devm_irq_alloc_descs(dev, -1, 0, in pch_gpio_probe() 396 ret = devm_request_irq(dev, pdev->irq, pch_gpio_handler, in pch_gpio_probe() 406 struct pch_gpio *chip = dev_get_drvdata(dev); in pch_gpio_suspend() [all …]
|
/openbmc/openbmc/meta-facebook/meta-greatlakes/recipes-phosphor/ipmi/ |
H A D | phosphor-ipmi-ipmb_%.bbappend | 2 /dev/ipmb-0 \ 3 /dev/ipmb-1 \ 4 /dev/ipmb-2 \ 5 /dev/ipmb-3 \ 6 /dev/ipmb-9 \
|
/openbmc/openbmc/meta-facebook/meta-yosemitev2/recipes-phosphor/ipmi/ |
H A D | phosphor-ipmi-ipmb_%.bbappend | 2 /dev/ipmb-1 \ 3 /dev/ipmb-3 \ 4 /dev/ipmb-5 \ 5 /dev/ipmb-7 \ 6 /dev/ipmb-13 \
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/ |
H A D | acpi.c | 86 root_handle = ACPI_HANDLE(dev); in iwl_acpi_get_handle() 88 IWL_DEBUG_DEV_RADIO(dev, in iwl_acpi_get_handle() 95 IWL_DEBUG_DEV_RADIO(dev, in iwl_acpi_get_handle() 116 IWL_DEBUG_DEV_RADIO(dev, in iwl_acpi_get_object() 138 IWL_DEBUG_DEV_RADIO(dev, in iwl_acpi_get_dsm_object() 162 IWL_DEBUG_DEV_RADIO(dev, in iwl_acpi_get_dsm_integer() 178 IWL_DEBUG_DEV_RADIO(dev, in iwl_acpi_get_dsm_integer() 187 IWL_DEBUG_DEV_RADIO(dev, in iwl_acpi_get_dsm_integer() 194 IWL_DEBUG_DEV_RADIO(dev, in iwl_acpi_get_dsm_integer() 302 iwl_acpi_get_wifi_pkg(struct device *dev, in iwl_acpi_get_wifi_pkg() argument [all …]
|
/openbmc/linux/drivers/net/wireless/intel/ipw2x00/ |
H A D | ipw2100.c | 2451 dev->name, in isr_rx() 2533 dev->name, in isr_rx_monitor() 5835 dev->name); in ipw2100_tx_timeout() 6016 if (!dev) in ipw2100_alloc_device() 6036 dev->irq = 0; in ipw2100_alloc_device() 6037 dev->min_mtu = 68; in ipw2100_alloc_device() 6132 return dev; in ipw2100_alloc_device() 6163 if (!dev) { in ipw2100_pci_init_one() 6212 SET_NETDEV_DEV(dev, &pci_dev->dev); in ipw2100_pci_init_one() 6301 if (dev) { in ipw2100_pci_init_one() [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | cx2072x.c | 41 struct device *dev; member 493 struct device *dev = &client->dev; in cx2072x_reg_raw_write() local 536 struct device *dev = &client->dev; in cx2072x_reg_read() local 585 struct device *dev = cx2072x->dev; in cx2072x_config_pll() local 675 struct device *dev = cx2072x->dev; in cx2072x_config_i2spcm() local 913 struct device *dev = codec->dev; in cx2072x_hw_params() local 1005 struct device *dev = codec->dev; in cx2072x_set_dai_fmt() local 1498 pm_runtime_get_sync(codec->dev); in cx2072x_probe() 1512 pm_runtime_put(codec->dev); in cx2072x_probe() 1654 cx2072x->dev = &i2c->dev; in cx2072x_i2c_probe() [all …]
|
/openbmc/linux/drivers/rpmsg/ |
H A D | qcom_smd.c | 117 struct device dev; member 1097 rpdev->dev.parent = &edge->dev; in qcom_smd_create_device() 1113 qsdev->rpdev.dev.parent = &edge->dev; in qcom_smd_create_chrdev() 1166 dev_err(&edge->dev, in qcom_smd_create_channel() 1367 edge->mbox_client.dev = dev; in qcom_smd_parse_edge() 1491 edge->dev.parent = parent; in qcom_smd_register_edge() 1493 edge->dev.of_node = node; in qcom_smd_register_edge() 1499 put_device(&edge->dev); in qcom_smd_register_edge() 1523 device_unregister(&edge->dev); in qcom_smd_register_edge() 1530 device_unregister(dev); in qcom_smd_remove_device() [all …]
|
/openbmc/linux/net/tipc/ |
H A D | bearer.c | 430 if (!dev) in tipc_enable_l2_media() 433 dev_put(dev); in tipc_enable_l2_media() 455 b->pt.dev = dev; in tipc_enable_l2_media() 482 dev_put(dev); in tipc_disable_l2_media() 499 if (!dev) in tipc_l2_send_msg() 508 skb->dev = dev; in tipc_l2_send_msg() 696 if (netif_carrier_ok(dev) && netif_oper_up(dev)) { in tipc_l2_device_event() 777 dev_hard_header(skb, dev, ETH_P_TIPC, dev->dev_addr, in tipc_clone_to_loopback() 779 skb->dev = dev; in tipc_clone_to_loopback() 799 if (!dev) in tipc_attach_loopback() [all …]
|
/openbmc/linux/drivers/crypto/hisilicon/sec2/ |
H A D | sec_crypto.c | 435 struct device *dev = ctx->dev; in sec_alg_resource_alloc() local 475 struct device *dev = ctx->dev; in sec_alg_resource_free() local 491 struct device *dev = ctx->dev; in sec_alloc_qp_ctx_resource() local 534 struct device *dev = ctx->dev; in sec_free_qp_ctx_resource() local 601 ctx->dev = &sec->qm.pdev->dev; in sec_ctx_base_init() 829 struct device *dev = ctx->dev; in sec_skcipher_setkey() local 899 struct device *dev = ctx->dev; in GEN_SEC_SETKEY_FUNC() local 977 struct device *dev = ctx->dev; in sec_cipher_map() local 1043 struct device *dev = ctx->dev; in sec_cipher_unmap() local 1151 struct device *dev = ctx->dev; in sec_aead_setkey() local [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | bcm6368-eth.c | 248 dev_info(&priv->pdev->dev, "link DOWN on %s\n", in bcm6368_eth_adjust_link() 307 static int bcm6368_eth_start(struct udevice *dev) in bcm6368_eth_start() argument 400 bcm6368_eth_adjust_link(dev); in bcm6368_eth_start() 405 static void bcm6368_eth_stop(struct udevice *dev) in bcm6368_eth_stop() argument 512 priv->base = dev_remap_addr(dev); in bcm6368_eth_probe() 536 ret = clk_get_by_index(dev, i, &clk); in bcm6368_eth_probe() 558 ret = reset_get_by_index(dev, i, &reset); in bcm6368_eth_probe() 577 if (dev_read_bool(dev, "brcm,rgmii-override")) in bcm6368_eth_probe() 579 if (dev_read_bool(dev, "brcm,rgmii-timing")) in bcm6368_eth_probe() 583 dev_for_each_subnode(node, dev) { in bcm6368_eth_probe() [all …]
|
/openbmc/linux/drivers/media/rc/ |
H A D | iguanair.c | 22 struct device *dev; member 111 dev_warn(ir->dev, "receive overflow\n"); in process_ir_data() 115 dev_warn(ir->dev, "control code %02x received\n", in process_ir_data() 220 dev_info(ir->dev, "failed to get version\n"); in iguanair_get_features() 237 dev_info(ir->dev, "failed to get buffer size\n"); in iguanair_get_features() 251 dev_info(ir->dev, "failed to get features\n"); in iguanair_get_features() 273 struct iguanair *ir = dev->priv; in iguanair_set_tx_carrier() 311 struct iguanair *ir = dev->priv; in iguanair_set_tx_mask() 323 struct iguanair *ir = dev->priv; in iguanair_tx() 415 ir->dev = &intf->dev; in iguanair_probe() [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | rtq2208-regulator.c | 88 struct device *dev; member 338 static int rtq2208_of_get_fixed_voltage(struct device *dev, in rtq2208_of_get_fixed_voltage() argument 347 if (!dev->of_node) in rtq2208_of_get_fixed_voltage() 350 np = of_get_child_by_name(dev->of_node, "regulators"); in rtq2208_of_get_fixed_voltage() 352 np = dev->of_node; in rtq2208_of_get_fixed_voltage() 354 ret = of_regulator_match(dev, np, rtq2208_ldo_match, n_fixed); in rtq2208_of_get_fixed_voltage() 512 struct device *dev = &i2c->dev; in rtq2208_probe() local 536 rdev_map->dev = dev; in rtq2208_probe() 538 cfg.dev = dev; in rtq2208_probe() 549 rdev = devm_regulator_register(dev, &rdesc[i]->desc, &cfg); in rtq2208_probe() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | legacy.c | 25 struct mlx5_core_dev *dev = esw->dev; in esw_create_legacy_vepa_table() local 30 root_ns = mlx5_get_fdb_sub_ns(dev, 0); in esw_create_legacy_vepa_table() 32 esw_warn(dev, "Failed to get FDB flow namespace\n"); in esw_create_legacy_vepa_table() 53 esw_debug(esw->dev, "Destroy FDB Table\n"); in esw_destroy_legacy_fdb_table() 76 struct mlx5_core_dev *dev = esw->dev; in esw_create_legacy_fdb_table() local 86 esw_debug(dev, "Create FDB log_max_size(%d)\n", in esw_create_legacy_fdb_table() 87 MLX5_CAP_ESW_FLOWTABLE_FDB(dev, log_max_ft_size)); in esw_create_legacy_fdb_table() 89 root_ns = mlx5_get_fdb_sub_ns(dev, 0); in esw_create_legacy_fdb_table() 169 esw_debug(esw->dev, "Destroy VEPA Table\n"); in esw_destroy_legacy_vepa_table() 387 struct mlx5_eswitch *esw = dev->priv.eswitch; in mlx5_esw_query_vport_drop_stats() [all …]
|
/openbmc/linux/drivers/phy/hisilicon/ |
H A D | phy-hi3670-usb3.c | 127 struct device *dev; member 297 dev_err(priv->dev, "set USB3OTG_CTRL4 failed\n"); in hi3670_phy_set_params() 328 dev_err(priv->dev, "priv->sctrl is null!\n"); in hi3670_is_abbclk_selected() 591 struct device *dev = &pdev->dev; in hi3670_phy_probe() local 595 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); in hi3670_phy_probe() 599 priv->dev = dev; in hi3670_phy_probe() 603 dev_err(dev, "no hisilicon,pericrg-syscon\n"); in hi3670_phy_probe() 610 dev_err(dev, "no hisilicon,pctrl-syscon\n"); in hi3670_phy_probe() 617 dev_err(dev, "no hisilicon,sctrl-syscon\n"); in hi3670_phy_probe() 624 dev_err(dev, "no hisilicon,usb3-otg-bc-syscon\n"); in hi3670_phy_probe() [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | sch5636.c | 71 struct sch5636_data *data = dev_get_drvdata(dev); in sch5636_update_device() 166 static ssize_t in_value_show(struct device *dev, in in_value_show() argument 182 static ssize_t in_label_show(struct device *dev, in in_label_show() argument 233 static ssize_t fan_value_show(struct device *dev, in fan_value_show() argument 250 static ssize_t fan_fault_show(struct device *dev, in fan_fault_show() argument 264 static ssize_t fan_alarm_show(struct device *dev, in fan_alarm_show() argument 382 device_remove_file(&pdev->dev, in sch5636_remove() 386 device_remove_file(&pdev->dev, in sch5636_remove() 461 err = device_create_file(&pdev->dev, in sch5636_probe() 471 err = device_create_file(&pdev->dev, in sch5636_probe() [all …]
|
/openbmc/linux/sound/soc/amd/acp/ |
H A D | acp-i2s.c | 51 struct device *dev = dai->component->dev; in acp_i2s_set_tdm_slot() local 82 dev_err(dev, "Unsupported slots %d\n", slots); in acp_i2s_set_tdm_slot() 104 struct device *dev = dai->component->dev; in acp_i2s_hwparams() local 263 struct device *dev = dai->component->dev; in acp_i2s_trigger() local 264 struct acp_dev_data *adata = dev_get_drvdata(dev); in acp_i2s_trigger() 392 struct device *dev = dai->component->dev; in acp_i2s_prepare() local 393 struct acp_dev_data *adata = dev_get_drvdata(dev); in acp_i2s_prepare() 488 struct device *dev = dai->component->dev; in acp_i2s_startup() local 489 struct acp_dev_data *adata = dev_get_drvdata(dev); in acp_i2s_startup() 544 struct device *dev = dai->component->dev; in acp_i2s_probe() local [all …]
|
/openbmc/qemu/hw/intc/ |
H A D | sifive_plic.c | 268 static void sifive_plic_reset(DeviceState *dev) in sifive_plic_reset() argument 270 SiFivePLICState *s = SIFIVE_PLIC(dev); in sifive_plic_reset() 358 SiFivePLICState *s = SIFIVE_PLIC(dev); in sifive_plic_realize() 363 sysbus_init_mmio(SYS_BUS_DEVICE(dev), &s->mmio); in sifive_plic_realize() 478 DeviceState *dev = qdev_new(TYPE_SIFIVE_PLIC); in type_init() local 484 qdev_prop_set_string(dev, "hart-config", hart_config); in type_init() 485 qdev_prop_set_uint32(dev, "hartid-base", hartid_base); in type_init() 486 qdev_prop_set_uint32(dev, "num-sources", num_sources); in type_init() 496 sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, addr); in type_init() 498 plic = SIFIVE_PLIC(dev); in type_init() [all …]
|
/openbmc/u-boot/drivers/clk/ |
H A D | clk_sandbox.c | 19 struct sandbox_clk_priv *priv = dev_get_priv(clk->dev); in sandbox_clk_get_rate() 29 struct sandbox_clk_priv *priv = dev_get_priv(clk->dev); in sandbox_clk_set_rate() 46 struct sandbox_clk_priv *priv = dev_get_priv(clk->dev); in sandbox_clk_enable() 58 struct sandbox_clk_priv *priv = dev_get_priv(clk->dev); in sandbox_clk_disable() 88 ulong sandbox_clk_query_rate(struct udevice *dev, int id) in sandbox_clk_query_rate() argument 90 struct sandbox_clk_priv *priv = dev_get_priv(dev); in sandbox_clk_query_rate() 98 int sandbox_clk_query_enable(struct udevice *dev, int id) in sandbox_clk_query_enable() argument 100 struct sandbox_clk_priv *priv = dev_get_priv(dev); in sandbox_clk_query_enable()
|
/openbmc/u-boot/drivers/pwm/ |
H A D | sandbox_pwm.c | 36 int sandbox_pwm_get_config(struct udevice *dev, uint channel, uint *period_nsp, in sandbox_pwm_get_config() argument 39 struct sandbox_pwm_priv *priv = dev_get_priv(dev); in sandbox_pwm_get_config() 53 static int sandbox_pwm_set_config(struct udevice *dev, uint channel, in sandbox_pwm_set_config() argument 56 struct sandbox_pwm_priv *priv = dev_get_priv(dev); in sandbox_pwm_set_config() 68 static int sandbox_pwm_set_enable(struct udevice *dev, uint channel, in sandbox_pwm_set_enable() argument 71 struct sandbox_pwm_priv *priv = dev_get_priv(dev); in sandbox_pwm_set_enable() 82 static int sandbox_pwm_set_invert(struct udevice *dev, uint channel, in sandbox_pwm_set_invert() argument 85 struct sandbox_pwm_priv *priv = dev_get_priv(dev); in sandbox_pwm_set_invert()
|
/openbmc/u-boot/drivers/reset/aspeed/ |
H A D | reset-ast2400.c | 20 struct ast2400_reset_priv *priv = dev_get_priv(reset_ctl->dev); in ast2400_reset_deassert() 32 struct ast2400_reset_priv *priv = dev_get_priv(reset_ctl->dev); in ast2400_reset_assert() 48 reset_ctl->dev, reset_ctl->id); in ast2400_reset_request() 53 static int ast2400_reset_probe(struct udevice *dev) in ast2400_reset_probe() argument 55 struct ast2400_reset_priv *priv = dev_get_priv(dev); in ast2400_reset_probe() 76 static int ast2400_ofdata_to_platdata(struct udevice *dev) in ast2400_ofdata_to_platdata() argument 78 struct ast2400_reset_priv *priv = dev_get_priv(dev); in ast2400_ofdata_to_platdata() 81 ret = uclass_get_device_by_phandle(UCLASS_WDT, dev, "aspeed,wdt", in ast2400_ofdata_to_platdata()
|