/openbmc/linux/sound/isa/sb/ |
H A D | emu8000_synth.c | 26 struct snd_seq_device *dev = to_seq_dev(_dev); in snd_emu8000_probe() local 30 hw = *(struct snd_emu8000**)SNDRV_SEQ_DEVICE_ARGPTR(dev); in snd_emu8000_probe() 64 if (snd_emux_register(emu, dev->card, hw->index, "Emu8000") < 0) { in snd_emu8000_probe() 73 snd_emu8000_pcm_new(dev->card, hw, 1); in snd_emu8000_probe() 75 dev->driver_data = hw; in snd_emu8000_probe() 86 struct snd_seq_device *dev = to_seq_dev(_dev); in snd_emu8000_remove() local 89 if (dev->driver_data == NULL) in snd_emu8000_remove() 92 hw = dev->driver_data; in snd_emu8000_remove() 94 snd_device_free(dev->card, hw->pcm); in snd_emu8000_remove()
|
/openbmc/linux/drivers/gpu/drm/nouveau/dispnv04/ |
H A D | cursor.c | 11 nv_show_cursor(nv_crtc->base.dev, nv_crtc->index, true); in nv04_cursor_show() 17 nv_show_cursor(nv_crtc->base.dev, nv_crtc->index, false); in nv04_cursor_hide() 24 NVWriteRAMDAC(nv_crtc->base.dev, nv_crtc->index, in nv04_cursor_set_pos() 33 NVWriteVgaCrtc(crtc->dev, nouveau_crtc(crtc)->index, index, in crtc_wr_cio_state() 40 struct drm_device *dev = nv_crtc->base.dev; in nv04_cursor_set_offset() local 41 struct nouveau_drm *drm = nouveau_drm(dev); in nv04_cursor_set_offset() 42 struct nv04_crtc_reg *regp = &nv04_display(dev)->mode_reg.crtc_reg[nv_crtc->index]; in nv04_cursor_set_offset() 59 nv_fix_nv40_hw_cursor(dev, nv_crtc->index); in nv04_cursor_set_offset()
|
/openbmc/u-boot/drivers/reset/ |
H A D | reset-sunxi.c | 30 struct sunxi_reset_priv *priv = dev_get_priv(reset_ctl->dev); in sunxi_reset_request() 49 struct sunxi_reset_priv *priv = dev_get_priv(reset_ctl->dev); in sunxi_set_reset() 89 static int sunxi_reset_probe(struct udevice *dev) in sunxi_reset_probe() argument 91 struct sunxi_reset_priv *priv = dev_get_priv(dev); in sunxi_reset_probe() 93 priv->base = dev_read_addr_ptr(dev); in sunxi_reset_probe() 98 int sunxi_reset_bind(struct udevice *dev, ulong count) in sunxi_reset_bind() argument 104 ret = device_bind_driver_to_node(dev, "sunxi_reset", "reset", in sunxi_reset_bind() 105 dev_ofnode(dev), &rst_dev); in sunxi_reset_bind() 112 priv->desc = (const struct ccu_desc *)dev_get_driver_data(dev); in sunxi_reset_bind()
|
/openbmc/u-boot/drivers/clk/tegra/ |
H A D | tegra186-clk.c | 18 debug("%s(clk=%p) (dev=%p, id=%lu)\n", __func__, clk, clk->dev, in tegra186_clk_get_rate() 23 ret = misc_call(clk->dev->parent, MRQ_CLK, &req, sizeof(req), &resp, in tegra186_clk_get_rate() 38 clk->dev, clk->id); in tegra186_clk_set_rate() 43 ret = misc_call(clk->dev->parent, MRQ_CLK, &req, sizeof(req), &resp, in tegra186_clk_set_rate() 60 ret = misc_call(clk->dev->parent, MRQ_CLK, &req, sizeof(req), &resp, in tegra186_clk_en_dis() 70 debug("%s(clk=%p) (dev=%p, id=%lu)\n", __func__, clk, clk->dev, in tegra186_clk_enable() 78 debug("%s(clk=%p) (dev=%p, id=%lu)\n", __func__, clk, clk->dev, in tegra186_clk_disable() 91 static int tegra186_clk_probe(struct udevice *dev) in tegra186_clk_probe() argument 93 debug("%s(dev=%p)\n", __func__, dev); in tegra186_clk_probe()
|
/openbmc/linux/drivers/scsi/esas2r/ |
H A D | esas2r_log.c | 122 const struct device *dev, in esas2r_log_master() argument 146 if (dev == NULL) { in esas2r_log_master() 152 (dev->driver ? dev->driver->name : "unknown"), in esas2r_log_master() 153 (dev->bus ? dev->bus->name : "unknown"), in esas2r_log_master() 154 dev_name(dev)); in esas2r_log_master() 215 const struct device *dev, in esas2r_log_dev() argument 224 retval = esas2r_log_master(level, dev, format, args); in esas2r_log_dev()
|
/openbmc/linux/net/atm/ |
H A D | raw.c | 57 if (vcc->dev->ops->send_bh) in atm_send_aal0() 58 return vcc->dev->ops->send_bh(vcc, skb); in atm_send_aal0() 59 return vcc->dev->ops->send(vcc, skb); in atm_send_aal0() 76 if (vcc->dev->ops->send_bh) in atm_init_aal34() 77 vcc->send = vcc->dev->ops->send_bh; in atm_init_aal34() 79 vcc->send = vcc->dev->ops->send; in atm_init_aal34() 88 if (vcc->dev->ops->send_bh) in atm_init_aal5() 89 vcc->send = vcc->dev->ops->send_bh; in atm_init_aal5() 91 vcc->send = vcc->dev->ops->send; in atm_init_aal5()
|
/openbmc/linux/drivers/reset/ |
H A D | reset-brcmstb-rescal.c | 19 struct device *dev; member 36 dev_err(data->dev, "failed to start SATA/PCIe rescal\n"); in brcm_rescal_reset_set() 43 dev_err(data->dev, "time out on SATA/PCIe rescal\n"); in brcm_rescal_reset_set() 50 dev_dbg(data->dev, "SATA/PCIe rescal success\n"); in brcm_rescal_reset_set() 70 data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); in brcm_rescal_reset_probe() 81 data->rcdev.of_node = pdev->dev.of_node; in brcm_rescal_reset_probe() 83 data->dev = &pdev->dev; in brcm_rescal_reset_probe() 85 return devm_reset_controller_register(&pdev->dev, &data->rcdev); in brcm_rescal_reset_probe()
|
/openbmc/linux/drivers/w1/masters/ |
H A D | sgi_w1.c | 46 struct sgi_w1_device *dev = data; in sgi_w1_reset_bus() local 49 writel(MCR_PACK(520, 65), dev->mcr); in sgi_w1_reset_bus() 50 ret = sgi_w1_wait(dev->mcr); in sgi_w1_reset_bus() 62 struct sgi_w1_device *dev = data; in sgi_w1_touch_bit() local 66 writel(MCR_PACK(6, 13), dev->mcr); in sgi_w1_touch_bit() 68 writel(MCR_PACK(80, 30), dev->mcr); in sgi_w1_touch_bit() 70 ret = sgi_w1_wait(dev->mcr); in sgi_w1_touch_bit() 81 sdev = devm_kzalloc(&pdev->dev, sizeof(struct sgi_w1_device), in sgi_w1_probe() 94 pdata = dev_get_platdata(&pdev->dev); in sgi_w1_probe()
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | mirror_gre_bridge_1d_vlan.sh | 40 ip link set dev br2 up 44 ip link set dev $swp3.555 master br2 45 ip route add 192.0.2.130/32 dev br2 46 ip -6 route add 2001:db8:2::2/128 dev br2 48 ip address add dev br2 192.0.2.129/32 49 ip address add dev br2 2001:db8:2::1/128 59 ip link del dev br2 96 nud permanent dev br2 103 nud permanent dev br2
|
/openbmc/linux/sound/soc/fsl/ |
H A D | imx-spdif.c | 16 struct device_node *spdif_np, *np = pdev->dev.of_node; in imx_spdif_audio_probe() 23 dev_err(&pdev->dev, "failed to find spdif-controller\n"); in imx_spdif_audio_probe() 28 data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL); in imx_spdif_audio_probe() 29 comp = devm_kzalloc(&pdev->dev, sizeof(*comp), GFP_KERNEL); in imx_spdif_audio_probe() 60 dev_err(&pdev->dev, "no enabled S/PDIF DAI link\n"); in imx_spdif_audio_probe() 64 data->card.dev = &pdev->dev; in imx_spdif_audio_probe() 73 ret = devm_snd_soc_register_card(&pdev->dev, &data->card); in imx_spdif_audio_probe() 75 dev_err_probe(&pdev->dev, ret, "snd_soc_register_card failed\n"); in imx_spdif_audio_probe()
|
/openbmc/linux/drivers/firmware/google/ |
H A D | framebuffer-coreboot.c | 25 static int framebuffer_probe(struct coreboot_device *dev) in framebuffer_probe() argument 29 struct lb_framebuffer *fb = &dev->framebuffer; in framebuffer_probe() 61 pdev = platform_device_register_resndata(&dev->dev, in framebuffer_probe() 68 dev_set_drvdata(&dev->dev, pdev); in framebuffer_probe() 73 static void framebuffer_remove(struct coreboot_device *dev) in framebuffer_remove() argument 75 struct platform_device *pdev = dev_get_drvdata(&dev->dev); in framebuffer_remove()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
H A D | lag.h | 39 struct mlx5_core_dev *dev; member 78 mlx5_lag_dev(struct mlx5_core_dev *dev) in mlx5_lag_dev() argument 80 return dev->priv.lag; in mlx5_lag_dev() 109 void mlx5_ldev_add_debugfs(struct mlx5_core_dev *dev); 116 static inline bool mlx5_lag_is_supported(struct mlx5_core_dev *dev) in mlx5_lag_is_supported() argument 118 if (!MLX5_CAP_GEN(dev, vport_group_manager) || in mlx5_lag_is_supported() 119 !MLX5_CAP_GEN(dev, lag_master) || in mlx5_lag_is_supported() 120 MLX5_CAP_GEN(dev, num_lag_ports) < 2 || in mlx5_lag_is_supported() 121 MLX5_CAP_GEN(dev, num_lag_ports) > MLX5_MAX_PORTS) in mlx5_lag_is_supported()
|
/openbmc/linux/drivers/media/platform/samsung/s5p-mfc/ |
H A D | s5p_mfc_pm.c | 21 int s5p_mfc_init_pm(struct s5p_mfc_dev *dev) in s5p_mfc_init_pm() argument 25 pm = &dev->pm; in s5p_mfc_init_pm() 26 p_dev = dev; in s5p_mfc_init_pm() 28 pm->num_clocks = dev->variant->num_clocks; in s5p_mfc_init_pm() 29 pm->clk_names = dev->variant->clk_names; in s5p_mfc_init_pm() 30 pm->device = &dev->plat_dev->dev; in s5p_mfc_init_pm() 48 if (dev->variant->use_clock_gating) in s5p_mfc_init_pm() 56 void s5p_mfc_final_pm(struct s5p_mfc_dev *dev) in s5p_mfc_final_pm() argument
|
/openbmc/linux/drivers/mfd/ |
H A D | altera-a10sr.c | 32 static bool altr_a10sr_reg_readable(struct device *dev, unsigned int reg) in altr_a10sr_reg_readable() argument 57 static bool altr_a10sr_reg_writeable(struct device *dev, unsigned int reg) in altr_a10sr_reg_writeable() argument 76 static bool altr_a10sr_reg_volatile(struct device *dev, unsigned int reg) in altr_a10sr_reg_volatile() argument 118 a10sr = devm_kzalloc(&spi->dev, sizeof(*a10sr), in altr_a10sr_spi_probe() 127 a10sr->dev = &spi->dev; in altr_a10sr_spi_probe() 134 dev_err(&spi->dev, "Failed to allocate register map: %d\n", in altr_a10sr_spi_probe() 139 ret = devm_mfd_add_devices(a10sr->dev, PLATFORM_DEVID_AUTO, in altr_a10sr_spi_probe() 144 dev_err(a10sr->dev, "Failed to register sub-devices: %d\n", in altr_a10sr_spi_probe()
|
/openbmc/linux/drivers/gpu/drm/omapdrm/ |
H A D | omap_gem.h | 32 void omap_gem_init(struct drm_device *dev); 33 void omap_gem_deinit(struct drm_device *dev); 36 int omap_gem_resume(struct drm_device *dev); 45 struct drm_gem_object *omap_gem_new(struct drm_device *dev, 47 struct drm_gem_object *omap_gem_new_dmabuf(struct drm_device *dev, size_t size, 49 int omap_gem_new_handle(struct drm_device *dev, struct drm_file *file, 54 int omap_gem_dumb_map_offset(struct drm_file *file, struct drm_device *dev, 56 int omap_gem_dumb_create(struct drm_file *file, struct drm_device *dev, 65 struct drm_gem_object *omap_gem_prime_import(struct drm_device *dev,
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | udpgro_bench.sh | 16 [ -n "${jobs}" ] && kill -INT ${jobs} 2>/dev/null 17 [ -n "$ns" ] && ip netns del $ns 2>/dev/null 32 ip link set dev veth0 up 33 ip addr add dev veth0 192.168.1.2/24 34 ip addr add dev veth0 2001:db8::2/64 nodad 36 ip link set dev veth1 netns "${PEER_NS}" 37 ip -netns "${PEER_NS}" addr add dev veth1 192.168.1.1/24 38 ip -netns "${PEER_NS}" addr add dev veth1 2001:db8::1/64 nodad 39 ip -netns "${PEER_NS}" link set dev veth1 up
|
/openbmc/qemu/hw/watchdog/ |
H A D | wdt_diag288.c | 33 static void wdt_diag288_reset(DeviceState *dev) in wdt_diag288_reset() argument 35 DIAG288State *diag288 = DIAG288(dev); in wdt_diag288_reset() 48 static void diag288_timer_expired(void *dev) in diag288_timer_expired() argument 61 wdt_diag288_reset(dev); in diag288_timer_expired() 95 static void wdt_diag288_realize(DeviceState *dev, Error **errp) in wdt_diag288_realize() argument 97 DIAG288State *diag288 = DIAG288(dev); in wdt_diag288_realize() 101 dev); in wdt_diag288_realize() 104 static void wdt_diag288_unrealize(DeviceState *dev) in wdt_diag288_unrealize() argument 106 DIAG288State *diag288 = DIAG288(dev); in wdt_diag288_unrealize()
|
/openbmc/u-boot/drivers/video/rockchip/ |
H A D | rk_hdmi.h | 16 int (*set_input_vop)(struct udevice *dev); 17 int (*clk_config)(struct udevice *dev); 38 int rk_hdmi_read_edid(struct udevice *dev, u8 *buf, int buf_size); 52 void rk_hdmi_probe_regulators(struct udevice *dev, 60 int rk_hdmi_ofdata_to_platdata(struct udevice *dev); 73 int rk_hdmi_probe(struct udevice *dev);
|
/openbmc/linux/drivers/gpu/drm/gma500/ |
H A D | cdv_device.h | 12 extern void cdv_intel_crt_init(struct drm_device *dev, 14 extern void cdv_intel_lvds_init(struct drm_device *dev, 16 extern void cdv_hdmi_init(struct drm_device *dev, struct psb_intel_mode_device *mode_dev, 18 extern struct drm_display_mode *cdv_intel_crtc_mode_get(struct drm_device *dev, 20 extern void cdv_update_wm(struct drm_device *dev, struct drm_crtc *crtc); 21 extern void cdv_disable_sr(struct drm_device *dev);
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | gio_device.h | 10 struct device dev; member 20 #define to_gio_device(d) container_of(d, struct gio_device, dev) 42 static inline void gio_device_free(struct gio_device *dev) in gio_device_free() argument 44 gio_release_dev(&dev->dev); in gio_device_free() 50 #define gio_get_drvdata(_dev) dev_get_drvdata(&(_dev)->dev) 51 #define gio_set_drvdata(_dev, data) dev_set_drvdata(&(_dev)->dev, (data))
|
/openbmc/u-boot/drivers/pch/ |
H A D | pch7.c | 13 static int pch7_get_spi_base(struct udevice *dev, ulong *sbasep) in pch7_get_spi_base() argument 17 dm_pci_read_config32(dev, PCH_RCBA, &rcba); in pch7_get_spi_base() 25 static int pch7_set_spi_protect(struct udevice *dev, bool protect) in pch7_set_spi_protect() argument 30 dm_pci_read_config8(dev, BIOS_CTRL, &bios_cntl); in pch7_set_spi_protect() 35 dm_pci_write_config8(dev, BIOS_CTRL, bios_cntl); in pch7_set_spi_protect() 40 static int pch7_get_gpio_base(struct udevice *dev, u32 *gbasep) in pch7_get_gpio_base() argument 54 dm_pci_read_config32(dev, GPIO_BASE, &base); in pch7_get_gpio_base()
|
/openbmc/linux/drivers/comedi/drivers/ |
H A D | ni_daq_dio24.c | 29 static int dio24_auto_attach(struct comedi_device *dev, in dio24_auto_attach() argument 32 struct pcmcia_device *link = comedi_to_pcmcia_dev(dev); in dio24_auto_attach() 37 ret = comedi_pcmcia_enable(dev, NULL); in dio24_auto_attach() 40 dev->iobase = link->resource[0]->start; in dio24_auto_attach() 42 ret = comedi_alloc_subdevices(dev, 1); in dio24_auto_attach() 47 s = &dev->subdevices[0]; in dio24_auto_attach() 48 return subdev_8255_init(dev, s, NULL, 0x00); in dio24_auto_attach()
|
/openbmc/linux/drivers/media/i2c/ |
H A D | ov2659.c | 842 dev_dbg(&client->dev, in ov2659_write() 874 dev_dbg(&client->dev, in ov2659_read() 928 dev_dbg(&client->dev, in ov2659_pll_calc_params() 1140 dev_warn(&client->dev, in ov2659_set_fmt() 1186 pm_runtime_put(&client->dev); in ov2659_s_stream() 1249 pm_runtime_put(&client->dev); in ov2659_s_ctrl() 1379 dev_err(&client->dev, in ov2659_detect() 1417 dev_err(&client->dev, in ov2659_get_pdata() 1534 pm_runtime_enable(&client->dev); in ov2659_probe() 1535 pm_runtime_idle(&client->dev); in ov2659_probe() [all …]
|
/openbmc/linux/arch/powerpc/sysdev/ |
H A D | fsl_pci.c | 52 if (!pci_is_pcie(dev)) in quirk_fsl_pcie_early() 535 dev = pdev->dev.of_node; in fsl_add_bridge() 554 " bus 0\n", dev); in fsl_add_bridge() 823 dev); in mpc83xx_add_bridge() 1192 dev = list_first_entry(&hose->bus->devices, typeof(*dev), bus_list); in fsl_pci_pme_probe() 1195 pci_read_config_word(dev, dev->pm_cap + PCI_PM_CTRL, &pms); in fsl_pci_pme_probe() 1197 pci_write_config_word(dev, dev->pm_cap + PCI_PM_CTRL, pms); in fsl_pci_pme_probe() 1201 dev_err(&dev->dev, "Failed to map PME interrupt.\n"); in fsl_pci_pme_probe() 1211 dev_err(&dev->dev, "Unable to request irq %d for PME\n", pme_irq); in fsl_pci_pme_probe() 1228 pci_read_config_word(dev, dev->pm_cap + PCI_PM_CTRL, &pms); in fsl_pci_pme_probe() [all …]
|
/openbmc/linux/drivers/pinctrl/ |
H A D | pinctrl-at91.c | 216 struct device *dev; member 867 at91_pin_dbg(info->dev, pin); in at91_pmx_set() 1038 dev_dbg(info->dev, in at91_pinconf_set() 1294 struct device *dev = &pdev->dev; in at91_pinctrl_probe_dt() local 1304 info->dev = &pdev->dev; in at91_pinctrl_probe_dt() 1326 dev_dbg(dev, "mux-mask\n"); in at91_pinctrl_probe_dt() 1367 struct device *dev = &pdev->dev; in at91_pinctrl_probe() local 1729 struct device *dev = &pdev->dev; in at91_gpio_of_irq_setup() local 1823 struct device *dev = &pdev->dev; in at91_gpio_probe() local 1861 chip->label = dev_name(dev); in at91_gpio_probe() [all …]
|