/openbmc/linux/drivers/hwmon/ |
H A D | lm83.c | 178 struct lm83_data *data = dev_get_drvdata(dev); in lm83_temp_read() 227 struct lm83_data *data = dev_get_drvdata(dev); in lm83_temp_write() 252 struct lm83_data *data = dev_get_drvdata(dev); in lm83_chip_read() 279 return lm83_chip_read(dev, attr, channel, val); in lm83_read() 281 return lm83_temp_read(dev, attr, channel, val); in lm83_read() 292 return lm83_temp_write(dev, attr, channel, val); in lm83_write() 381 dev_dbg(&adapter->dev, "LM83 detection failed at 0x%02x\n", in lm83_detect() 409 dev_dbg(&adapter->dev, in lm83_detect() 429 struct device *dev = &client->dev; in lm83_probe() local 433 data = devm_kzalloc(dev, sizeof(struct lm83_data), GFP_KERNEL); in lm83_probe() [all …]
|
H A D | ds620.c | 67 struct ds620_platform_data *ds620_info = dev_get_platdata(&client->dev); in ds620_init_client() 94 static struct ds620_data *ds620_update_client(struct device *dev) in ds620_update_client() argument 96 struct ds620_data *data = dev_get_drvdata(dev); in ds620_update_client() 107 dev_dbg(&client->dev, "Starting ds620 update\n"); in ds620_update_client() 129 static ssize_t temp_show(struct device *dev, struct device_attribute *da, in temp_show() argument 133 struct ds620_data *data = ds620_update_client(dev); in temp_show() 148 struct ds620_data *data = dev_get_drvdata(dev); in temp_store() 170 struct ds620_data *data = ds620_update_client(dev); in alarm_show() 216 struct device *dev = &client->dev; in ds620_probe() local 220 data = devm_kzalloc(dev, sizeof(struct ds620_data), GFP_KERNEL); in ds620_probe() [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera.h | 39 struct net_device *dev; member 87 struct net_device *dev; member 130 struct net_device *dev; member 166 struct device *dev; member 173 void (*recv_pkt)(struct prestera_device *dev); 288 struct prestera_device *dev; member 337 #define prestera_dev(sw) ((sw)->dev->dev) 342 writel(val, sw->dev->pp_regs + reg); in prestera_write() 348 return readl(sw->dev->pp_regs + reg); in prestera_read() 409 struct net_device *dev, [all …]
|
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_lag.c | 130 struct net_device *dev = port->dev; in lan966x_lag_port_join() local 151 if (lan966x_lag_first_port(port->bond, port->dev) && in lan966x_lag_port_join() 172 if (lan966x_lag_first_port(port->bond, port->dev)) { in lan966x_lag_port_leave() 210 struct lan966x_port *port = netdev_priv(dev); in lan966x_lag_port_prechangeupper() 268 struct lan966x_port *port = netdev_priv(dev); in lan966x_lag_port_changelowerstate() 293 netdev_for_each_lower_dev(dev, lower, iter) { in lan966x_lag_netdev_prechangeupper() 298 if (port->bond != dev) in lan966x_lag_netdev_prechangeupper() 317 netdev_for_each_lower_dev(dev, lower, iter) { in lan966x_lag_netdev_changeupper() 322 if (port->bond != dev) in lan966x_lag_netdev_changeupper() 325 err = lan966x_port_changeupper(lower, dev, info); in lan966x_lag_netdev_changeupper() [all …]
|
/openbmc/linux/drivers/clk/ |
H A D | clk-hsdk-pll.c | 92 struct device *dev; member 147 dev_dbg(clk->dev, "write configuration: %#x\n", val); in hsdk_pll_set_cfg() 177 dev_dbg(clk->dev, "current configuration: %#x\n", val); in hsdk_pll_recalc_rate() 310 struct device *dev = &pdev->dev; in hsdk_pll_clk_probe() local 320 init.name = dev->of_node->name; in hsdk_pll_clk_probe() 322 parent_name = of_clk_get_parent_name(dev->of_node, 0); in hsdk_pll_clk_probe() 324 num_parents = of_clk_get_parent_count(dev->of_node); in hsdk_pll_clk_probe() 332 pll_clk->dev = dev; in hsdk_pll_clk_probe() 333 pll_clk->pll_devdata = of_device_get_match_data(dev); in hsdk_pll_clk_probe() 336 dev_err(dev, "No OF match data provided\n"); in hsdk_pll_clk_probe() [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/dp/ |
H A D | dp_parser.c | 87 io->phy = devm_phy_get(&pdev->dev, "dp"); in dp_parser_ctrl_res() 120 struct device_node *of_node = parser->pdev->dev.of_node; in dp_parser_misc() 155 struct device *dev = &parser->pdev->dev; in dp_parser_init_clk_data() local 167 rc = of_property_read_string_index(dev->of_node, in dp_parser_init_clk_data() 189 core_power->clocks = devm_kcalloc(dev, in dp_parser_init_clk_data() 202 ctrl_power->clocks = devm_kcalloc(dev, in dp_parser_init_clk_data() 217 stream_power->clocks = devm_kcalloc(dev, in dp_parser_init_clk_data() 235 struct device *dev = &parser->pdev->dev; in dp_parser_clock() local 253 rc = of_property_read_string_index(dev->of_node, "clock-names", in dp_parser_clock() 282 bridge = devm_drm_of_get_bridge(dev, pdev->dev.of_node, 1, 0); in devm_dp_parser_find_next_bridge() [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-uniphier.c | 75 dev_err(&adap->dev, "transaction timeout\n"); in uniphier_i2c_xfer_byte() 312 struct device *dev = &pdev->dev; in uniphier_i2c_probe() local 318 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); in uniphier_i2c_probe() 338 priv->clk = devm_clk_get_enabled(dev, NULL); in uniphier_i2c_probe() 340 dev_err(dev, "failed to enable clock\n"); in uniphier_i2c_probe() 346 dev_err(dev, "input clock rate should not be zero\n"); in uniphier_i2c_probe() 354 priv->adap.dev.parent = dev; in uniphier_i2c_probe() 355 priv->adap.dev.of_node = dev->of_node; in uniphier_i2c_probe() 366 dev_err(dev, "failed to request irq %d\n", irq); in uniphier_i2c_probe() 382 struct uniphier_i2c_priv *priv = dev_get_drvdata(dev); in uniphier_i2c_suspend() [all …]
|
H A D | i2c-octeon-platdrv.c | 137 struct device_node *node = pdev->dev.of_node; in octeon_i2c_probe() 163 i2c->dev = &pdev->dev; in octeon_i2c_probe() 182 dev_err(i2c->dev, in octeon_i2c_probe() 205 result = devm_request_irq(&pdev->dev, i2c->hlc_irq, in octeon_i2c_probe() 209 dev_err(i2c->dev, "failed to attach interrupt\n"); in octeon_i2c_probe() 219 result = devm_request_irq(&pdev->dev, i2c->irq, in octeon_i2c_probe() 222 dev_err(i2c->dev, "failed to attach interrupt\n"); in octeon_i2c_probe() 231 dev_err(i2c->dev, "init low level failed\n"); in octeon_i2c_probe() 241 i2c->adap.dev.parent = &pdev->dev; in octeon_i2c_probe() 242 i2c->adap.dev.of_node = node; in octeon_i2c_probe() [all …]
|
/openbmc/linux/drivers/crypto/ccp/ |
H A D | tee-dev.c | 79 dev_err(tee->dev, "tee: command timed out, disabling PSP\n"); in tee_wait_cmd_poll() 121 dev_err(tee->dev, "tee: ring allocation failed %d\n", ret); in tee_init_ring() 148 dev_err(tee->dev, "tee: ring init command timed out\n"); in tee_init_ring() 182 dev_err(tee->dev, "tee: ring destroy command timed out\n"); in tee_destroy_ring() 194 struct device *dev = psp->dev; in tee_dev_init() local 199 tee = devm_kzalloc(dev, sizeof(*tee), GFP_KERNEL); in tee_dev_init() 205 tee->dev = dev; in tee_dev_init() 213 dev_err(dev, "tee: missing driver data\n"); in tee_dev_init() 219 dev_err(dev, "tee: failed to init ring buffer\n"); in tee_dev_init() 223 dev_notice(dev, "tee enabled\n"); in tee_dev_init() [all …]
|
/openbmc/linux/drivers/gpu/drm/mgag200/ |
H A D | mgag200_g200wb.c | 94 struct drm_device *dev = crtc->dev; in mgag200_g200wb_pixpllc_atomic_update() local 95 struct mga_device *mdev = to_mga_device(dev); in mgag200_g200wb_pixpllc_atomic_update() 246 struct drm_device *dev = &mdev->base; in mgag200_g200wb_pipeline_init() local 254 ret = drm_universal_plane_init(dev, primary_plane, 0, in mgag200_g200wb_pipeline_init() 283 drm_err(dev, "drm_encoder_init() failed: %d\n", ret); in mgag200_g200wb_pipeline_init() 289 drm_err(dev, "failed to add DDC bus: %d\n", ret); in mgag200_g200wb_pipeline_init() 293 ret = drm_connector_init_with_ddc(dev, connector, in mgag200_g200wb_pipeline_init() 329 struct drm_device *dev; in mgag200_g200wb_device_create() local 336 dev = &mdev->base; in mgag200_g200wb_device_create() 338 pci_set_drvdata(pdev, dev); in mgag200_g200wb_device_create() [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-max77620.c | 20 struct device *dev; member 35 dev_err(gpio->dev, "REG_IRQ_LVL2_GPIO read failed: %d\n", err); in max77620_gpio_irqhandler() 144 dev_err(mgpio->dev, "CNFG_GPIOx dir update failed: %d\n", ret); in max77620_gpio_dir_input() 157 dev_err(mgpio->dev, "CNFG_GPIOx read failed: %d\n", ret); in max77620_gpio_get() 214 dev_err(mgpio->dev, "Illegal value %u\n", debounce); in max77620_gpio_set_debounce() 281 dev_err(gpio->dev, in max77620_gpio_irq_init_hw() 304 mgpio = devm_kzalloc(&pdev->dev, sizeof(*mgpio), GFP_KERNEL); in max77620_gpio_probe() 310 mgpio->dev = &pdev->dev; in max77620_gpio_probe() 313 mgpio->gpio_chip.parent = pdev->dev.parent; in max77620_gpio_probe() 340 ret = devm_request_threaded_irq(&pdev->dev, gpio_irq, NULL, in max77620_gpio_probe() [all …]
|
/openbmc/linux/drivers/nvmem/ |
H A D | sprd-efuse.c | 64 struct device *dev; member 92 dev_err(efuse->dev, "timeout get the hwspinlock\n"); in sprd_efuse_lock() 236 dev_err(efuse->dev, in sprd_efuse_raw_prog() 283 dev_err(efuse->dev, in sprd_efuse_raw_read() 363 struct device_node *np = pdev->dev.of_node; in sprd_efuse_probe() 370 pdata = of_device_get_match_data(&pdev->dev); in sprd_efuse_probe() 386 dev_err(&pdev->dev, "failed to get hwlock id\n"); in sprd_efuse_probe() 396 efuse->clk = devm_clk_get(&pdev->dev, "enable"); in sprd_efuse_probe() 403 efuse->dev = &pdev->dev; in sprd_efuse_probe() 415 econfig.dev = &pdev->dev; in sprd_efuse_probe() [all …]
|
H A D | lpc18xx_eeprom.c | 165 struct device *dev = &pdev->dev; in lpc18xx_eeprom_probe() local 171 eeprom = devm_kzalloc(dev, sizeof(*eeprom), GFP_KERNEL); in lpc18xx_eeprom_probe() 176 eeprom->reg_base = devm_ioremap_resource(dev, res); in lpc18xx_eeprom_probe() 181 eeprom->mem_base = devm_ioremap_resource(dev, res); in lpc18xx_eeprom_probe() 185 eeprom->clk = devm_clk_get(&pdev->dev, "eeprom"); in lpc18xx_eeprom_probe() 187 dev_err(&pdev->dev, "failed to get eeprom clock\n"); in lpc18xx_eeprom_probe() 193 dev_err(dev, "failed to prepare/enable eeprom clk: %d\n", ret); in lpc18xx_eeprom_probe() 197 rst = devm_reset_control_get_exclusive(dev, NULL); in lpc18xx_eeprom_probe() 199 dev_err(dev, "failed to get reset: %ld\n", PTR_ERR(rst)); in lpc18xx_eeprom_probe() 206 dev_err(dev, "failed to assert reset: %d\n", ret); in lpc18xx_eeprom_probe() [all …]
|
/openbmc/linux/drivers/pmdomain/imx/ |
H A D | scu-pd.c | 412 imx_scu_add_pm_domain(struct device *dev, int idx, in imx_scu_add_pm_domain() argument 422 sc_pd = devm_kzalloc(dev, sizeof(*sc_pd), GFP_KERNEL); in imx_scu_add_pm_domain() 441 mode = imx_sc_get_pd_power(dev, pd_ranges->rsrc + idx); in imx_scu_add_pm_domain() 450 dev_warn(dev, "invalid pd %s rsrc id %d found", in imx_scu_add_pm_domain() 453 devm_kfree(dev, sc_pd); in imx_scu_add_pm_domain() 459 dev_warn(dev, "failed to init pd %s rsrc id %d", in imx_scu_add_pm_domain() 461 devm_kfree(dev, sc_pd); in imx_scu_add_pm_domain() 468 static int imx_scu_init_pm_domains(struct device *dev, in imx_scu_init_pm_domains() argument 505 of_genpd_add_provider_onecell(dev->of_node, pd_data); in imx_scu_init_pm_domains() 519 pd_soc = of_device_get_match_data(&pdev->dev); in imx_sc_pd_probe() [all …]
|
/openbmc/qemu/hw/ide/ |
H A D | cmd646.c | 211 static void cmd646_reset(DeviceState *dev) in cmd646_reset() argument 213 PCIIDEState *d = PCI_IDE(dev); in cmd646_reset() 252 PCIIDEState *d = PCI_IDE(dev); in pci_cmd646_ide_realize() 253 DeviceState *ds = DEVICE(dev); in pci_cmd646_ide_realize() 254 uint8_t *pci_conf = dev->config; in pci_cmd646_ide_realize() 266 dev->wmask[CFR] = 0x0; in pci_cmd646_ide_realize() 267 dev->w1cmask[CFR] = CFR_INTR_CH0; in pci_cmd646_ide_realize() 268 dev->wmask[ARTTIM23] = 0x0; in pci_cmd646_ide_realize() 269 dev->w1cmask[ARTTIM23] = ARTTIM23_INTR_CH1; in pci_cmd646_ide_realize() 270 dev->wmask[MRDMODE] = 0x0; in pci_cmd646_ide_realize() [all …]
|
/openbmc/linux/drivers/gpu/drm/arm/display/komeda/ |
H A D | komeda_kms.c | 25 struct drm_device *dev, in komeda_gem_dma_dumb_create() argument 28 struct komeda_dev *mdev = dev->dev_private; in komeda_gem_dma_dumb_create() 71 struct drm_device *dev = state->dev; in komeda_kms_atomic_commit_hw_done() local 72 struct komeda_kms_dev *kms = to_kdev(dev); in komeda_kms_atomic_commit_hw_done() 90 struct drm_device *dev = old_state->dev; in komeda_kms_commit_tail() local 95 drm_atomic_helper_commit_planes(dev, old_state, in komeda_kms_commit_tail() 106 drm_atomic_helper_cleanup_planes(dev, old_state); in komeda_kms_commit_tail() 217 static int komeda_kms_check(struct drm_device *dev, in komeda_kms_check() argument 224 err = drm_atomic_helper_check_modeset(dev, state); in komeda_kms_check() 242 err = drm_atomic_helper_check_planes(dev, state); in komeda_kms_check() [all …]
|
/openbmc/linux/drivers/dax/ |
H A D | kmem.c | 55 struct device *dev = &dev_dax->dev; in dev_dax_kmem_probe() local 69 dev_warn(dev, "rejecting DAX region with invalid node: %d\n", in dev_dax_kmem_probe() 79 dev_info(dev, "mapping%d: %#llx-%#llx too small after alignment\n", in dev_dax_kmem_probe() 98 data->res_name = kstrdup(dev_name(dev), GFP_KERNEL); in dev_dax_kmem_probe() 118 dev_warn(dev, "mapping%d: %#llx-%#llx could not reserve region\n", in dev_dax_kmem_probe() 147 dev_warn(dev, "mapping%d: %#llx-%#llx memory add failed\n", in dev_dax_kmem_probe() 159 dev_set_drvdata(dev, data); in dev_dax_kmem_probe() 179 struct device *dev = &dev_dax->dev; in dev_dax_kmem_remove() local 180 struct dax_kmem_data *data = dev_get_drvdata(dev); in dev_dax_kmem_remove() 205 dev_err(dev, in dev_dax_kmem_remove() [all …]
|
/openbmc/linux/drivers/md/ |
H A D | dm-linear.c | 23 struct dm_dev *dev; member 77 dm_put_device(ti, lc->dev); in linear_dtr() 92 bio_set_dev(bio, lc->dev->bdev); in linear_map() 110 DMEMIT("%s %llu", lc->dev->name, (unsigned long long)lc->start); in linear_status() 115 DMEMIT(",device_name=%s,start=%llu;", lc->dev->name, in linear_status() 124 struct dm_dev *dev = lc->dev; in linear_prepare_ioctl() local 126 *bdev = dev->bdev; in linear_prepare_ioctl() 131 if (lc->start || ti->len != bdev_nr_sectors(dev->bdev)) in linear_prepare_ioctl() 142 return dm_report_zones(lc->dev->bdev, lc->start, in linear_report_zones() 155 return fn(ti, lc->dev, lc->start, ti->len, data); in linear_iterate_devices() [all …]
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-max8907.c | 95 struct max8907_rtc *rtc = dev_get_drvdata(dev); in max8907_rtc_read_time() 109 static int max8907_rtc_set_time(struct device *dev, struct rtc_time *tm) in max8907_rtc_set_time() argument 111 struct max8907_rtc *rtc = dev_get_drvdata(dev); in max8907_rtc_set_time() 122 struct max8907_rtc *rtc = dev_get_drvdata(dev); in max8907_rtc_read_alarm() 145 struct max8907_rtc *rtc = dev_get_drvdata(dev); in max8907_rtc_set_alarm() 176 struct max8907 *max8907 = dev_get_drvdata(pdev->dev.parent); in max8907_rtc_probe() 180 rtc = devm_kzalloc(&pdev->dev, sizeof(*rtc), GFP_KERNEL); in max8907_rtc_probe() 188 rtc->rtc_dev = devm_rtc_device_register(&pdev->dev, "max8907-rtc", in max8907_rtc_probe() 192 dev_err(&pdev->dev, "Failed to register RTC device: %d\n", ret); in max8907_rtc_probe() 201 ret = devm_request_threaded_irq(&pdev->dev, rtc->irq, NULL, in max8907_rtc_probe() [all …]
|
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | devlink_trap_tunnel_ipip6.sh | 67 ip link set dev $swp1 up 69 tc qdisc add dev $swp1 clsact 73 ip link set dev g1 up 76 ip link set dev $rp1 up 83 ip link set dev $rp1 down 86 ip link set dev g1 down 89 tc qdisc del dev $swp1 clsact 91 ip link set dev $swp1 down 159 tc filter add dev $swp1 egress protocol ipv6 pref 1 handle 101 \ 179 kill $mz_pid && wait $mz_pid &> /dev/null [all …]
|
/openbmc/linux/drivers/remoteproc/ |
H A D | meson_mx_ao_arc.c | 147 struct device *dev = &pdev->dev; in meson_mx_ao_arc_rproc_probe() local 152 device_property_read_string(dev, "firmware-name", &fw_name); in meson_mx_ao_arc_rproc_probe() 154 rproc = devm_rproc_alloc(dev, "meson-mx-ao-arc", in meson_mx_ao_arc_rproc_probe() 163 priv->sram_pool = of_gen_pool_get(dev->of_node, "sram", 0); in meson_mx_ao_arc_rproc_probe() 165 dev_err(dev, "Could not get SRAM pool\n"); in meson_mx_ao_arc_rproc_probe() 173 dev_err(dev, "Could not alloc memory in SRAM pool\n"); in meson_mx_ao_arc_rproc_probe() 179 dev_err(dev, "SRAM address contains unusable bits\n"); in meson_mx_ao_arc_rproc_probe() 187 dev_err(dev, "Failed to find SECBUS2 regmap\n"); in meson_mx_ao_arc_rproc_probe() 206 dev_err(dev, "Failed to get ARC reset\n"); in meson_mx_ao_arc_rproc_probe() 211 priv->arc_pclk = devm_clk_get(dev, NULL); in meson_mx_ao_arc_rproc_probe() [all …]
|
/openbmc/linux/drivers/pci/controller/mobiveil/ |
H A D | pcie-layerscape-gen4.c | 93 struct device *dev = &mv_pci->pdev->dev; in ls_g4_pcie_reinit_hw() local 104 dev_err(dev, "Poll PABRST&PABACT timeout\n"); in ls_g4_pcie_reinit_hw() 127 dev_err(dev, "PCIe link training timeout\n"); in ls_g4_pcie_reinit_hw() 158 struct device *dev = &pdev->dev; in ls_g4_pcie_interrupt_init() local 165 ret = devm_request_irq(dev, pcie->irq, ls_g4_pcie_isr, in ls_g4_pcie_interrupt_init() 168 dev_err(dev, "Can't register PCIe IRQ, errno = %d\n", ret); in ls_g4_pcie_interrupt_init() 203 struct device *dev = &pdev->dev; in ls_g4_pcie_probe() local 207 struct device_node *np = dev->of_node; in ls_g4_pcie_probe() 211 dev_err(dev, "Failed to find msi-parent\n"); in ls_g4_pcie_probe() 215 bridge = devm_pci_alloc_host_bridge(dev, sizeof(*pcie)); in ls_g4_pcie_probe() [all …]
|
/openbmc/linux/drivers/clk/samsung/ |
H A D | clk-exynos-clkout.c | 89 if (!dev->parent) { in exynos_clkout_match_parent_dev() 90 dev_err(dev, "not instantiated from MFD\n"); in exynos_clkout_match_parent_dev() 94 match = of_match_device(exynos_clkout_ids, dev->parent); in exynos_clkout_match_parent_dev() 96 dev_err(dev, "cannot match parent device\n"); in exynos_clkout_match_parent_dev() 114 clkout = devm_kzalloc(&pdev->dev, in exynos_clkout_probe() 120 ret = exynos_clkout_match_parent_dev(&pdev->dev, &mux_mask); in exynos_clkout_probe() 124 clkout->np = pdev->dev.of_node; in exynos_clkout_probe() 130 clkout->np = pdev->dev.parent->of_node; in exynos_clkout_probe() 197 dev_err(&pdev->dev, "failed to register clkout clock\n"); in exynos_clkout_probe() 213 struct exynos_clkout *clkout = dev_get_drvdata(dev); in exynos_clkout_suspend() [all …]
|
/openbmc/linux/drivers/ata/ |
H A D | pata_hpt3x3.c | 39 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in hpt3x3_set_piomode() 69 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in hpt3x3_set_dmamode() 163 static void hpt3x3_init_chipset(struct pci_dev *dev) in hpt3x3_init_chipset() argument 167 pci_write_config_word(dev, 0x80, 0x00); in hpt3x3_init_chipset() 169 pci_read_config_word(dev, PCI_COMMAND, &cmd); in hpt3x3_init_chipset() 207 ata_print_version_once(&pdev->dev, DRV_VERSION); in hpt3x3_init_one() 209 host = ata_host_alloc_pinfo(&pdev->dev, ppi, 2); in hpt3x3_init_one() 250 static int hpt3x3_reinit_one(struct pci_dev *dev) in hpt3x3_reinit_one() argument 252 struct ata_host *host = pci_get_drvdata(dev); in hpt3x3_reinit_one() 255 rc = ata_pci_device_do_resume(dev); in hpt3x3_reinit_one() [all …]
|
/openbmc/linux/drivers/mailbox/ |
H A D | mailbox-xgene-slimpro.c | 44 struct device *dev; member 132 rc = devm_request_irq(mb_chan->dev, mb_chan->irq, slimpro_mbox_irq, 0, in slimpro_mbox_startup() 135 dev_err(mb_chan->dev, "failed to register mailbox interrupt %d\n", in slimpro_mbox_startup() 161 devm_free_irq(mb_chan->dev, mb_chan->irq, mb_chan); in slimpro_mbox_shutdown() 192 dev_err(&pdev->dev, "no available IRQ\n"); in slimpro_mbox_probe() 195 dev_info(&pdev->dev, "no IRQ for channel %d\n", i); in slimpro_mbox_probe() 199 ctx->mc[i].dev = &pdev->dev; in slimpro_mbox_probe() 206 ctx->mb_ctrl.dev = &pdev->dev; in slimpro_mbox_probe() 212 rc = devm_mbox_controller_register(&pdev->dev, &ctx->mb_ctrl); in slimpro_mbox_probe() 214 dev_err(&pdev->dev, in slimpro_mbox_probe() [all …]
|