/openbmc/linux/drivers/gpu/drm/rockchip/ |
H A D | rockchip_rgb.c | 26 struct device *dev; member 73 struct rockchip_rgb *rockchip_rgb_init(struct device *dev, in rockchip_rgb_init() argument 87 rgb = devm_kzalloc(dev, sizeof(*rgb), GFP_KERNEL); in rockchip_rgb_init() 91 rgb->dev = dev; in rockchip_rgb_init() 94 port = of_graph_get_port_by_id(dev->of_node, video_port); in rockchip_rgb_init() 107 ret = drm_of_find_panel_or_bridge(dev->of_node, video_port, in rockchip_rgb_init() 123 DRM_DEV_ERROR(dev, "failed to find panel or bridge %d\n", ret); in rockchip_rgb_init() 132 DRM_DEV_ERROR(drm_dev->dev, in rockchip_rgb_init() 156 DRM_DEV_ERROR(drm_dev->dev, in rockchip_rgb_init() 167 DRM_DEV_ERROR(drm_dev->dev, in rockchip_rgb_init()
|
/openbmc/linux/drivers/phy/hisilicon/ |
H A D | phy-hi6220-usb.c | 46 struct device *dev; member 94 dev_err(priv->dev, "failed to setup phy ret: %d\n", ret); in hi6220_phy_setup() 121 struct device *dev = &pdev->dev; in hi6220_phy_probe() local 125 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); in hi6220_phy_probe() 129 priv->dev = dev; in hi6220_phy_probe() 130 priv->reg = syscon_regmap_lookup_by_phandle(dev->of_node, in hi6220_phy_probe() 133 dev_err(dev, "no hisilicon,peripheral-syscon\n"); in hi6220_phy_probe() 139 phy = devm_phy_create(dev, NULL, &hi6220_phy_ops); in hi6220_phy_probe() 144 phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate); in hi6220_phy_probe()
|
/openbmc/linux/drivers/platform/x86/amd/pmc/ |
H A D | pmc-quirks.c | 252 void amd_pmc_process_restore_quirks(struct amd_pmc_dev *dev) in amd_pmc_process_restore_quirks() argument 254 if (dev->quirks && dev->quirks->s2idle_bug_mmio) in amd_pmc_process_restore_quirks() 255 amd_pmc_skip_nvme_smi_handler(dev->quirks->s2idle_bug_mmio); in amd_pmc_process_restore_quirks() 258 void amd_pmc_quirks_init(struct amd_pmc_dev *dev) in amd_pmc_quirks_init() argument 262 if (dev->cpu_id == AMD_CPU_ID_CZN) in amd_pmc_quirks_init() 263 dev->disable_8042_wakeup = true; in amd_pmc_quirks_init() 268 dev->quirks = dmi_id->driver_data; in amd_pmc_quirks_init() 269 if (dev->quirks->s2idle_bug_mmio) in amd_pmc_quirks_init() 272 if (dev->quirks->spurious_8042) in amd_pmc_quirks_init() 273 dev->disable_8042_wakeup = true; in amd_pmc_quirks_init()
|
/openbmc/linux/sound/soc/atmel/ |
H A D | mikroe-proto.c | 30 dev_err(card->dev, "Failed to set WM8731 SYSCLK: %d\n", in snd_proto_init() 67 struct device_node *np = pdev->dev.of_node; in snd_proto_probe() 75 dev_err(&pdev->dev, "No device node supplied\n"); in snd_proto_probe() 79 snd_proto.dev = &pdev->dev; in snd_proto_probe() 84 dai = devm_kzalloc(&pdev->dev, sizeof(*dai), GFP_KERNEL); in snd_proto_probe() 89 comp = devm_kzalloc(&pdev->dev, 3 * sizeof(*comp), GFP_KERNEL); in snd_proto_probe() 110 dev_err(&pdev->dev, "audio-codec node missing\n"); in snd_proto_probe() 117 dev_err(&pdev->dev, "i2s-controller missing\n"); in snd_proto_probe() 128 dev_err(&pdev->dev, "Must be the same bitclock and frame master\n"); in snd_proto_probe() 145 dev_err_probe(&pdev->dev, ret, in snd_proto_probe()
|
/openbmc/linux/drivers/net/ethernet/broadcom/ |
H A D | cnic_if.h | 261 struct cnic_dev *dev; member 316 int (*register_device)(struct cnic_dev *dev, int ulp_type, 318 int (*unregister_device)(struct cnic_dev *dev, int ulp_type); 331 int (*iscsi_nl_msg_recv)(struct cnic_dev *dev, u32 msg_type, 353 #define CNIC_WR(dev, off, val) writel(val, dev->regview + off) argument 354 #define CNIC_WR16(dev, off, val) writew(val, dev->regview + off) argument 355 #define CNIC_WR8(dev, off, val) writeb(val, dev->regview + off) argument 356 #define CNIC_RD(dev, off) readl(dev->regview + off) argument 357 #define CNIC_RD16(dev, off) readw(dev->regview + off) argument 365 void (*cnic_init)(struct cnic_dev *dev); [all …]
|
/openbmc/u-boot/drivers/serial/ |
H A D | serial_sh.c | 155 struct uart_port *priv = dev_get_priv(dev); in sh_serial_pending() 162 struct uart_port *priv = dev_get_priv(dev); in sh_serial_putc() 167 static int sh_serial_getc(struct udevice *dev) in sh_serial_getc() argument 169 struct uart_port *priv = dev_get_priv(dev); in sh_serial_getc() 176 struct sh_serial_platdata *plat = dev_get_platdata(dev); in sh_serial_setbrg() 177 struct uart_port *priv = dev_get_priv(dev); in sh_serial_setbrg() 184 static int sh_serial_probe(struct udevice *dev) in sh_serial_probe() argument 187 struct uart_port *priv = dev_get_priv(dev); in sh_serial_probe() 221 addr = devfdt_get_addr(dev); in sh_serial_ofdata_to_platdata() 227 ret = clk_get_by_name(dev, "fck", &sh_serial_clk); in sh_serial_ofdata_to_platdata() [all …]
|
/openbmc/u-boot/drivers/gpio/ |
H A D | s5p_gpio.c | 191 struct exynos_bank_info *state = dev_get_priv(dev); in exynos_gpio_direction_input() 203 struct exynos_bank_info *state = dev_get_priv(dev); in exynos_gpio_direction_output() 217 struct exynos_bank_info *state = dev_get_priv(dev); in exynos_gpio_get_value() 226 struct exynos_bank_info *state = dev_get_priv(dev); in exynos_gpio_set_value() 285 static int gpio_exynos_probe(struct udevice *dev) in gpio_exynos_probe() argument 288 struct exynos_bank_info *priv = dev->priv; in gpio_exynos_probe() 289 struct exynos_gpio_platdata *plat = dev->platdata; in gpio_exynos_probe() 323 struct udevice *dev; in gpio_exynos_bind() local 335 plat->bank_name, plat, -1, &dev); in gpio_exynos_bind() 339 dev_set_of_offset(dev, node); in gpio_exynos_bind() [all …]
|
/openbmc/u-boot/drivers/usb/dwc3/ |
H A D | dwc3-omap.c | 120 struct device *dev; member 219 dev_dbg(omap->dev, "ID GND\n"); in dwc3_omap_set_mailbox() 231 dev_dbg(omap->dev, "VBUS Connect\n"); in dwc3_omap_set_mailbox() 256 dev_dbg(omap->dev, "invalid state\n"); in dwc3_omap_set_mailbox() 273 dev_dbg(omap->dev, "OTG Event\n"); in dwc3_omap_interrupt() 276 dev_dbg(omap->dev, "DRVVBUS Rise\n"); in dwc3_omap_interrupt() 279 dev_dbg(omap->dev, "CHRGVBUS Rise\n"); in dwc3_omap_interrupt() 285 dev_dbg(omap->dev, "IDPULLUP Rise\n"); in dwc3_omap_interrupt() 288 dev_dbg(omap->dev, "DRVVBUS Fall\n"); in dwc3_omap_interrupt() 291 dev_dbg(omap->dev, "CHRGVBUS Fall\n"); in dwc3_omap_interrupt() [all …]
|
/openbmc/linux/drivers/usb/mtu3/ |
H A D | mtu3_dr.c | 35 dev_dbg(ssusb->dev, "%s (switch u%d port0 to %s)\n", __func__, in ssusb_port0_switch() 71 dev_dbg(ssusb->dev, "%s\n", __func__); in switch_port_to_host() 90 dev_dbg(ssusb->dev, "%s\n", __func__); in switch_port_to_device() 117 dev_err(ssusb->dev, "vbus regulator enable failed\n"); in ssusb_set_vbus() 150 pm_runtime_get_sync(ssusb->dev); in ssusb_mode_sw_work() 169 dev_err(ssusb->dev, "invalid role\n"); in ssusb_mode_sw_work() 171 pm_runtime_put(ssusb->dev); in ssusb_mode_sw_work() 215 dev_dbg(ssusb->dev, "EXTCON_USB_HOST: %d\n", ret); in ssusb_extcon_register() 281 struct device *dev = ssusb->dev; in ssusb_role_sw_register() local 287 mode = usb_get_role_switch_default_mode(dev); in ssusb_role_sw_register() [all …]
|
/openbmc/linux/drivers/watchdog/ |
H A D | omap_wdt.c | 65 struct device *dev; member 140 pm_runtime_get_sync(wdev->dev); in omap_wdt_start() 172 pm_runtime_put_sync(wdev->dev); in omap_wdt_stop() 240 wdev->dev = &pdev->dev; in omap_wdt_probe() 254 wdev->wdog.parent = &pdev->dev; in omap_wdt_probe() 262 pm_runtime_enable(wdev->dev); in omap_wdt_probe() 263 pm_runtime_get_sync(wdev->dev); in omap_wdt_probe() 280 pm_runtime_put(wdev->dev); in omap_wdt_probe() 281 pm_runtime_disable(wdev->dev); in omap_wdt_probe() 292 pm_runtime_put(wdev->dev); in omap_wdt_probe() [all …]
|
H A D | realtek_otto_wdt.c | 68 struct device *dev; member 214 dev_crit(ctrl->dev, "phase 1 timeout\n"); in otto_wdt_phase1_isr() 242 clk = devm_clk_get_enabled(ctrl->dev, NULL); in otto_wdt_probe_clk() 256 const struct fwnode_handle *node = ctrl->dev->fwnode; in otto_wdt_probe_reset_mode() 291 struct device *dev = &pdev->dev; in otto_wdt_probe() local 296 ctrl = devm_kzalloc(dev, sizeof(*ctrl), GFP_KERNEL); in otto_wdt_probe() 300 ctrl->dev = dev; in otto_wdt_probe() 327 ctrl->wdev.parent = dev; in otto_wdt_probe() 341 watchdog_init_timeout(&ctrl->wdev, 0, dev); in otto_wdt_probe() 347 return dev_err_probe(dev, ret, "Failed to set timeout\n"); in otto_wdt_probe() [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | tfa989x.c | 319 struct device *dev = &i2c->dev; in tfa989x_i2c_probe() local 326 rev = device_get_match_data(dev); in tfa989x_i2c_probe() 328 dev_err(dev, "unknown device revision\n"); in tfa989x_i2c_probe() 332 tfa989x = devm_kzalloc(dev, sizeof(*tfa989x), GFP_KERNEL); in tfa989x_i2c_probe() 339 tfa989x->vddd_supply = devm_regulator_get(dev, "vddd"); in tfa989x_i2c_probe() 341 return dev_err_probe(dev, PTR_ERR(tfa989x->vddd_supply), in tfa989x_i2c_probe() 356 dev_err(dev, "Failed to enable vddd regulator: %d\n", ret); in tfa989x_i2c_probe() 372 dev_err(dev, "failed to read revision number: %d\n", ret); in tfa989x_i2c_probe() 385 dev_err(dev, "failed to reset I2C registers: %d\n", ret); in tfa989x_i2c_probe() 391 dev_err(dev, "failed to initialize registers: %d\n", ret); in tfa989x_i2c_probe() [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | rt5759-regulator.c | 51 struct device *dev; member 212 struct device_node *np = priv->dev->of_node; in rt5759_regulator_register() 247 reg_cfg.dev = priv->dev; in rt5759_regulator_register() 252 rdev = devm_regulator_register(priv->dev, reg_desc, ®_cfg); in rt5759_regulator_register() 289 dev_err(priv->dev, "vendor info not correct (%d)\n", vendor); in rt5759_manufacturer_check() 298 struct rt5759_priv *priv = dev_get_drvdata(dev); in rt5759_is_accessible_reg() 322 priv = devm_kzalloc(&i2c->dev, sizeof(*priv), GFP_KERNEL); in rt5759_probe() 326 priv->dev = &i2c->dev; in rt5759_probe() 333 dev_err(&i2c->dev, "Failed to allocate regmap (%d)\n", ret); in rt5759_probe() 339 dev_err(&i2c->dev, "Failed to check device (%d)\n", ret); in rt5759_probe() [all …]
|
H A D | arizona-micsupp.c | 38 struct device *dev; member 58 dev_err(micsupp->dev, in arizona_micsupp_check_cp() 236 np = of_get_child_by_name(config->dev->of_node, "micvdd"); in arizona_micsupp_of_get_pdata() 265 micsupp->supply.dev_name = dev_name(micsupp->dev); in arizona_micsupp_common_init() 268 config.dev = micsupp->dev; in arizona_micsupp_common_init() 273 if (!dev_get_platdata(micsupp->dev)) { in arizona_micsupp_common_init() 289 micsupp->regulator = devm_regulator_register(&pdev->dev, in arizona_micsupp_common_init() 309 struct arizona *arizona = dev_get_drvdata(pdev->dev.parent); in arizona_micsupp_probe() 319 micsupp->dev = arizona->dev; in arizona_micsupp_probe() 346 struct madera *madera = dev_get_drvdata(pdev->dev.parent); in madera_micsupp_probe() [all …]
|
/openbmc/linux/drivers/soc/sunxi/ |
H A D | sunxi_sram.c | 224 int sunxi_sram_claim(struct device *dev) in sunxi_sram_claim() argument 237 if (!dev || !dev->of_node) in sunxi_sram_claim() 240 sram_data = sunxi_sram_of_parse(dev->of_node, &device); in sunxi_sram_claim() 267 void sunxi_sram_release(struct device *dev) in sunxi_sram_release() argument 272 if (!dev || !dev->of_node) in sunxi_sram_release() 275 sram_data = sunxi_sram_of_parse(dev->of_node, NULL); in sunxi_sram_release() 344 struct device *dev = &pdev->dev; in sunxi_sram_probe() local 347 sram_dev = &pdev->dev; in sunxi_sram_probe() 349 variant = of_device_get_match_data(&pdev->dev); in sunxi_sram_probe() 353 dev_set_drvdata(dev, (struct sunxi_sramc_variant *)variant); in sunxi_sram_probe() [all …]
|
/openbmc/linux/include/trace/events/ |
H A D | erofs.h | 13 #define show_dev(dev) MAJOR(dev), MINOR(dev) argument 41 __field(dev_t, dev ) 48 __entry->dev = dir->i_sb->s_dev; 65 __field(dev_t, dev ) 72 __entry->dev = inode->i_sb->s_dev; 90 __field(dev_t, dev ) 124 __field(dev_t, dev ) 132 __entry->dev = inode->i_sb->s_dev; 153 __field( dev_t, dev ) 195 __field( dev_t, dev ) [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-tegra-bpmp.c | 30 struct device *dev; member 204 dev_dbg(i2c->dev, "arbitration lost\n"); in tegra_bpmp_i2c_msg_xfer() 209 dev_dbg(i2c->dev, "timeout\n"); in tegra_bpmp_i2c_msg_xfer() 214 dev_dbg(i2c->dev, "NAK\n"); in tegra_bpmp_i2c_msg_xfer() 218 dev_err(i2c->dev, "transaction failed: %d\n", msg.rx.ret); in tegra_bpmp_i2c_msg_xfer() 236 dev_err(i2c->dev, "unsupported message length\n"); in tegra_bpmp_i2c_xfer_common() 289 i2c = devm_kzalloc(&pdev->dev, sizeof(*i2c), GFP_KERNEL); in tegra_bpmp_i2c_probe() 293 i2c->dev = &pdev->dev; in tegra_bpmp_i2c_probe() 295 i2c->bpmp = dev_get_drvdata(pdev->dev.parent); in tegra_bpmp_i2c_probe() 311 i2c->adapter.dev.parent = &pdev->dev; in tegra_bpmp_i2c_probe() [all …]
|
H A D | i2c-ls2x.c | 97 struct device *dev = priv->adapter.dev.parent; in ls2x_i2c_adjust_bus_speed() local 98 u32 acpi_speed = i2c_acpi_find_bus_speed(dev); in ls2x_i2c_adjust_bus_speed() 100 i2c_parse_fw_timings(dev, t, false); in ls2x_i2c_adjust_bus_speed() 285 struct device *dev = &pdev->dev; in ls2x_i2c_probe() local 304 adap->dev.parent = dev; in ls2x_i2c_probe() 308 device_set_node(&adap->dev, dev_fwnode(dev)); in ls2x_i2c_probe() 321 return devm_i2c_add_adapter(dev, adap); in ls2x_i2c_probe() 324 static int ls2x_i2c_suspend(struct device *dev) in ls2x_i2c_suspend() argument 326 struct ls2x_i2c_priv *priv = dev_get_drvdata(dev); in ls2x_i2c_suspend() 335 static int ls2x_i2c_resume(struct device *dev) in ls2x_i2c_resume() argument [all …]
|
/openbmc/linux/drivers/gpu/drm/gma500/ |
H A D | cdv_intel_hdmi.c | 58 struct drm_device *dev; member 65 struct drm_device *dev = encoder->dev; in cdv_hdmi_mode_set() local 93 struct drm_device *dev = encoder->dev; in cdv_hdmi_dpms() local 109 struct drm_device *dev = connector->dev; in cdv_hdmi_save() local 118 struct drm_device *dev = connector->dev; in cdv_hdmi_restore() local 275 void cdv_hdmi_init(struct drm_device *dev, in cdv_hdmi_init() argument 317 ddc_bus = gma_i2c_create(dev, ddc_reg, in cdv_hdmi_init() 320 dev_err(dev->dev, "No ddc adapter available!\n"); in cdv_hdmi_init() 324 ret = drm_connector_init_with_ddc(dev, connector, in cdv_hdmi_init() 350 dev->mode_config.scaling_mode_property, in cdv_hdmi_init() [all …]
|
/openbmc/linux/drivers/iio/chemical/ |
H A D | sps30.c | 189 static ssize_t start_cleaning_store(struct device *dev, in start_cleaning_store() argument 193 struct iio_dev *indio_dev = dev_to_iio_dev(dev); in start_cleaning_store() 209 static ssize_t cleaning_period_show(struct device *dev, in cleaning_period_show() argument 213 struct iio_dev *indio_dev = dev_to_iio_dev(dev); in cleaning_period_show() 230 struct iio_dev *indio_dev = dev_to_iio_dev(dev); in cleaning_period_store() 256 dev_warn(dev, in cleaning_period_store() 337 dev_set_drvdata(dev, indio_dev); in sps30_probe() 340 state->dev = dev; in sps30_probe() 354 dev_err(dev, "failed to reset device\n"); in sps30_probe() 360 dev_err(dev, "failed to read device info\n"); in sps30_probe() [all …]
|
/openbmc/linux/drivers/leds/ |
H A D | leds-gpio.c | 127 pinctrl = devm_pinctrl_get_select_default(led_dat->cdev.dev); in create_gpio_led() 131 dev_warn(led_dat->cdev.dev, in create_gpio_led() 150 struct device *dev = &pdev->dev; in gpio_leds_create() local 155 count = device_get_child_node_count(dev); in gpio_leds_create() 163 device_for_each_child_node(dev, child) { in gpio_leds_create() 190 ret = create_gpio_led(&led, led_dat, dev, child, NULL); in gpio_leds_create() 197 led_dat->cdev.dev->kobj.name); in gpio_leds_create() 224 gpiod = devm_gpiod_get_index(dev, NULL, idx, GPIOD_OUT_LOW); in gpio_led_get_gpiod() 245 ret = devm_gpio_request_one(dev, template->gpio, flags, in gpio_led_get_gpiod() 278 gpio_led_get_gpiod(&pdev->dev, in gpio_led_probe() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_int_process_v11.c | 211 if (dev->dqm->ops.reset_queues) in event_interrupt_poison_consumption_v11() 212 ret = dev->dqm->ops.reset_queues(dev->dqm, pasid); in event_interrupt_poison_consumption_v11() 219 kfd_signal_poison_consumed_event(dev, pasid); in event_interrupt_poison_consumption_v11() 243 (vmid < dev->vm_info.first_vmid_kfd || in event_interrupt_isr_v11() 244 vmid > dev->vm_info.last_vmid_kfd)) in event_interrupt_isr_v11() 278 static void event_interrupt_wq_v11(struct kfd_node *dev, in event_interrupt_wq_v11() argument 309 exception_data.gpu_id = dev->id; in event_interrupt_wq_v11() 316 kfd_set_dbg_ev_from_interrupt(dev, pasid, -1, in event_interrupt_wq_v11() 319 kfd_smi_event_update_vmfault(dev, pasid); in event_interrupt_wq_v11() 330 kfd_set_dbg_ev_from_interrupt(dev, pasid, in event_interrupt_wq_v11() [all …]
|
/openbmc/linux/drivers/vhost/ |
H A D | vhost.h | 31 struct vhost_dev *dev; member 49 struct vhost_dev *dev; member 54 __poll_t mask, struct vhost_dev *dev, 61 void vhost_dev_flush(struct vhost_dev *dev); 82 struct vhost_dev *dev; member 179 int (*msg_handler)(struct vhost_dev *dev, u32 asid, 189 long vhost_dev_set_owner(struct vhost_dev *dev); 190 bool vhost_dev_has_owner(struct vhost_dev *dev); 202 void vhost_clear_msg(struct vhost_dev *dev); 233 void vhost_enqueue_msg(struct vhost_dev *dev, [all …]
|
/openbmc/qemu/hw/virtio/ |
H A D | vhost-user-base.c | 165 virtio_notify_config(dev->vdev); in vub_config_notifier() 193 static int vub_connect(DeviceState *dev) in vub_connect() argument 195 VirtIODevice *vdev = VIRTIO_DEVICE(dev); in vub_connect() 222 static void vub_disconnect(DeviceState *dev) in vub_disconnect() argument 224 VirtIODevice *vdev = VIRTIO_DEVICE(dev); in vub_disconnect() 246 DeviceState *dev = opaque; in vub_event() local 247 VirtIODevice *vdev = VIRTIO_DEVICE(dev); in vub_event() 252 if (vub_connect(dev) < 0) { in vub_event() 272 VirtIODevice *vdev = VIRTIO_DEVICE(dev); in vub_device_realize() 273 VHostUserBase *vub = VHOST_USER_BASE(dev); in vub_device_realize() [all …]
|
/openbmc/qemu/hw/s390x/ |
H A D | s390-pci-bus.c | 923 DeviceState *dev; in s390_pci_device_new() local 926 if (!dev) { in s390_pci_device_new() 944 return S390_PCI_DEVICE(dev); in s390_pci_device_new() 997 dev = pci_get_bus(dev)->parent_dev; in s390_pci_update_subordinate() 1055 pdev = PCI_DEVICE(dev); in s390_pcihost_plug() 1061 if (dev->hotplugged) { in s390_pcihost_plug() 1070 pdev = PCI_DEVICE(dev); in s390_pcihost_plug() 1072 if (!dev->id) { in s390_pcihost_plug() 1141 if (dev->hotplugged) { in s390_pcihost_plug() 1176 qdev_unrealize(dev); in s390_pcihost_unplug() [all …]
|