Home
last modified time | relevance | path

Searched refs:dev (Results 7051 – 7075 of 26672) sorted by relevance

1...<<281282283284285286287288289290>>...1067

/openbmc/linux/net/dsa/
H A Dtag_hellcreek.c21 struct net_device *dev) in hellcreek_xmit() argument
23 struct dsa_port *dp = dsa_slave_to_port(dev); in hellcreek_xmit()
42 struct net_device *dev) in hellcreek_rcv() argument
48 skb->dev = dsa_master_find_slave(dev, 0, port); in hellcreek_rcv()
49 if (!skb->dev) { in hellcreek_rcv()
50 netdev_warn_once(dev, "Failed to get source port: %d\n", port); in hellcreek_rcv()
/openbmc/linux/drivers/power/reset/
H A Das3722-poweroff.c17 struct device *dev; member
35 dev_err(as3722_pm_poweroff->dev, in as3722_pm_power_off()
42 struct device_node *np = pdev->dev.parent->of_node; in as3722_poweroff_probe()
50 as3722_poweroff = devm_kzalloc(&pdev->dev, sizeof(*as3722_poweroff), in as3722_poweroff_probe()
55 as3722_poweroff->as3722 = dev_get_drvdata(pdev->dev.parent); in as3722_poweroff_probe()
56 as3722_poweroff->dev = &pdev->dev; in as3722_poweroff_probe()
/openbmc/linux/include/net/
H A Dncsi.h29 struct net_device *dev; member
34 int ncsi_vlan_rx_add_vid(struct net_device *dev, __be16 proto, u16 vid);
35 int ncsi_vlan_rx_kill_vid(struct net_device *dev, __be16 proto, u16 vid);
36 struct ncsi_dev *ncsi_register_dev(struct net_device *dev,
42 static inline int ncsi_vlan_rx_add_vid(struct net_device *dev, __be16 proto, u16 vid) in ncsi_vlan_rx_add_vid() argument
47 static inline int ncsi_vlan_rx_kill_vid(struct net_device *dev, __be16 proto, u16 vid) in ncsi_vlan_rx_kill_vid() argument
52 static inline struct ncsi_dev *ncsi_register_dev(struct net_device *dev, in ncsi_register_dev() argument
/openbmc/linux/drivers/md/
H A Ddm-zoned-target.c20 struct dmz_dev *dev; member
47 struct dmz_dev *dev; member
122 struct dmz_dev *dev = zone->dev; in dmz_submit_bio() local
132 bioctx->dev = dev; in dmz_submit_bio()
718 dev = &dmz->dev[idx]; in dmz_get_zoned_device()
729 dev = &dmz->dev[idx]; in dmz_get_zoned_device()
847 if (!dmz->dev) { in dmz_ctr()
952 kfree(dmz->dev); in dmz_ctr()
1022 struct dmz_dev *dev = &dmz->dev[0]; in dmz_prepare_ioctl() local
1108 dev = &dmz->dev[0]; in dmz_status()
[all …]
/openbmc/linux/drivers/i2c/busses/
H A Di2c-cadence.c194 struct device *dev; member
447 dev_err(id->adap.dev.parent, in cdns_i2c_master_isr()
793 dev_err(id->adap.dev.parent, in cdns_i2c_process_msg()
880 dev_warn(adap->dev.parent, in cdns_i2c_master_xfer()
981 pm_runtime_put(id->dev); in cdns_unreg_slave()
1136 dev_warn(id->adap.dev.parent, in cdns_i2c_clk_notifier_cb()
1291 id->dev = &pdev->dev; in cdns_i2c_probe()
1320 id->adap.dev.of_node = pdev->dev.of_node; in cdns_i2c_probe()
1325 id->adap.dev.parent = &pdev->dev; in cdns_i2c_probe()
1346 dev_err_probe(&pdev->dev, ret, in cdns_i2c_probe()
[all …]
/openbmc/linux/drivers/parisc/
H A Dccio-dma.c694 if(dev == NULL) { in ccio_dma_supported()
725 BUG_ON(!dev); in ccio_map_single()
726 ioc = GET_IOC(dev); in ccio_map_single()
801 BUG_ON(!dev); in ccio_unmap_page()
802 ioc = GET_IOC(dev); in ccio_unmap_page()
913 BUG_ON(!dev); in ccio_map_sg()
914 ioc = GET_IOC(dev); in ccio_map_sg()
988 BUG_ON(!dev); in ccio_unmap_sg()
1144 dev = find_pa_parent_type(dev, HPHW_IOA); in ccio_get_iommu()
1145 if (!dev) in ccio_get_iommu()
[all …]
/openbmc/linux/net/sched/
H A Dsch_taprio.c1190 if (!dev->num_tc) { in taprio_parse_mqprio_opt()
1334 if (dev != qdisc_dev(q->root)) in taprio_dev_notifier()
1729 if (val > dev->max_mtu) { in taprio_parse_tc_entry()
1907 netdev_set_tc_queue(dev, i, in taprio_change()
2059 netdev_reset_tc(dev); in taprio_destroy()
2182 if (ntx >= dev->num_tx_queues) in taprio_queue_get()
2199 if (dev->flags & IFF_UP) in taprio_graft()
2200 dev_deactivate(dev); in taprio_graft()
2222 if (dev->flags & IFF_UP) in taprio_graft()
2223 dev_activate(dev); in taprio_graft()
[all …]
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4vf/
H A Dcxgb4vf_main.c145 if (!netif_running(dev) || link_ok == netif_carrier_ok(dev)) in t4vf_os_link_changed()
157 netif_carrier_on(dev); in t4vf_os_link_changed()
204 netif_carrier_off(dev); in t4vf_os_link_changed()
223 dev->name); in t4vf_os_portmod_changed()
235 dev->name); in t4vf_os_portmod_changed()
638 dev, msix++, in setup_sge_queues()
866 err = link_start(dev); in cxgb4vf_open()
1172 dev->mtu = new_mtu; in cxgb4vf_change_mtu()
1557 strscpy(drvinfo->bus_info, pci_name(to_pci_dev(dev->dev.parent)), in cxgb4vf_get_drvinfo()
3020 dev_err(&pdev->dev, in cxgb4vf_pci_probe()
[all …]
/openbmc/linux/drivers/video/fbdev/
H A Dpxa3xx-gcu.c85 struct device *dev; member
528 pxa3xx_gcu_add_buffer(struct device *dev, in pxa3xx_gcu_add_buffer() argument
582 struct device *dev = &pdev->dev; in pxa3xx_gcu_probe() local
607 priv->clk = devm_clk_get(dev, NULL); in pxa3xx_gcu_probe()
619 dev_err(dev, "request_irq failed\n"); in pxa3xx_gcu_probe()
646 ret = pxa3xx_gcu_add_buffer(dev, priv); in pxa3xx_gcu_probe()
648 pxa3xx_gcu_free_buffers(dev, priv); in pxa3xx_gcu_probe()
656 priv->dev = dev; in pxa3xx_gcu_probe()
672 dma_free_coherent(dev, SHARED_SIZE, in pxa3xx_gcu_probe()
681 struct device *dev = &pdev->dev; in pxa3xx_gcu_remove() local
[all …]
/openbmc/linux/drivers/edac/
H A Dmpc85xx_edac.c174 plat_data = op->dev.platform_data; in mpc85xx_pci_err_probe()
176 dev_err(&op->dev, "no platform data"); in mpc85xx_pci_err_probe()
185 dev_set_drvdata(&op->dev, pci); in mpc85xx_pci_err_probe()
186 pci->dev = &op->dev; in mpc85xx_pci_err_probe()
189 pci->dev_name = dev_name(&op->dev); in mpc85xx_pci_err_probe()
296 edac_pci_del_device(&op->dev); in mpc85xx_pci_err_probe()
313 edac_pci_del_device(&op->dev); in mpc85xx_pci_err_remove()
510 edac_dev->dev = &op->dev; in mpc85xx_l2_err_probe()
511 dev_set_drvdata(edac_dev->dev, edac_dev); in mpc85xx_l2_err_probe()
587 edac_device_del_device(&op->dev); in mpc85xx_l2_err_probe()
[all …]
/openbmc/linux/drivers/pmdomain/bcm/
H A Dbcm2835-power.c139 struct device *dev; member
220 struct device *dev = power->dev; in bcm2835_power_power_on() local
253 dev_err(dev, "Timeout waiting for %s power OK\n", in bcm2835_power_power_on()
298 dev_err(power->dev, "Failed to enable clock for %s\n", in bcm2835_asb_power_on()
506 struct device *dev = power->dev; in bcm2835_init_power_domain() local
509 dom->clk = devm_clk_get(dev->parent, name); in bcm2835_init_power_domain()
564 dev_err(power->dev, "Bad reset id %ld\n", id); in bcm2835_reset_reset()
619 struct device *dev = &pdev->dev; in bcm2835_power_probe() local
640 power->dev = dev; in bcm2835_power_probe()
660 power->pd_xlate.domains = devm_kcalloc(dev, in bcm2835_power_probe()
[all …]
/openbmc/u-boot/env/
H A Dfat.c39 int dev, part; in env_fat_save() local
53 dev = dev_desc->devnum; in env_fat_save()
60 CONFIG_ENV_FAT_INTERFACE, dev, part); in env_fat_save()
72 CONFIG_ENV_FAT_FILE, CONFIG_ENV_FAT_INTERFACE, dev, part); in env_fat_save()
86 int dev, part; in env_fat_load() local
100 dev = dev_desc->devnum; in env_fat_load()
107 CONFIG_ENV_FAT_INTERFACE, dev, part); in env_fat_load()
118 CONFIG_ENV_FAT_FILE, CONFIG_ENV_FAT_INTERFACE, dev, part); in env_fat_load()
/openbmc/u-boot/drivers/clk/tegra/
H A Dtegra-car-clk.c14 debug("%s(clk=%p) (dev=%p, id=%lu)\n", __func__, clk, clk->dev, in tegra_car_clk_request()
33 debug("%s(clk=%p) (dev=%p, id=%lu)\n", __func__, clk, clk->dev, in tegra_car_clk_free()
43 debug("%s(clk=%p) (dev=%p, id=%lu)\n", __func__, clk, clk->dev, in tegra_car_clk_get_rate()
55 clk->dev, clk->id); in tegra_car_clk_set_rate()
63 debug("%s(clk=%p) (dev=%p, id=%lu)\n", __func__, clk, clk->dev, in tegra_car_clk_enable()
73 debug("%s(clk=%p) (dev=%p, id=%lu)\n", __func__, clk, clk->dev, in tegra_car_clk_disable()
90 static int tegra_car_clk_probe(struct udevice *dev) in tegra_car_clk_probe() argument
92 debug("%s(dev=%p)\n", __func__, dev); in tegra_car_clk_probe()
/openbmc/u-boot/drivers/clk/at91/
H A Dclk-peripheral.c28 static int sam9x5_periph_clk_bind(struct udevice *dev) in sam9x5_periph_clk_bind() argument
30 return at91_clk_sub_device_bind(dev, "periph-clk"); in sam9x5_periph_clk_bind()
56 struct pmc_platdata *plat = dev_get_platdata(clk->dev); in periph_clk_enable()
64 clk_type = dev_get_driver_data(dev_get_parent(clk->dev)); in periph_clk_enable()
82 struct udevice *dev; in periph_get_rate() local
87 dev = dev_get_parent(clk->dev); in periph_get_rate()
89 ret = clk_get_by_index(dev, 0, &clk_dev); in periph_get_rate()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/sf/
H A Dcmd.c7 int mlx5_cmd_alloc_sf(struct mlx5_core_dev *dev, u16 function_id) in mlx5_cmd_alloc_sf() argument
15 return mlx5_cmd_exec(dev, in, sizeof(in), out, sizeof(out)); in mlx5_cmd_alloc_sf()
18 int mlx5_cmd_dealloc_sf(struct mlx5_core_dev *dev, u16 function_id) in mlx5_cmd_dealloc_sf() argument
26 return mlx5_cmd_exec(dev, in, sizeof(in), out, sizeof(out)); in mlx5_cmd_dealloc_sf()
29 int mlx5_cmd_sf_enable_hca(struct mlx5_core_dev *dev, u16 func_id) in mlx5_cmd_sf_enable_hca() argument
37 return mlx5_cmd_exec(dev, &in, sizeof(in), &out, sizeof(out)); in mlx5_cmd_sf_enable_hca()
40 int mlx5_cmd_sf_disable_hca(struct mlx5_core_dev *dev, u16 func_id) in mlx5_cmd_sf_disable_hca() argument
48 return mlx5_cmd_exec(dev, in, sizeof(in), out, sizeof(out)); in mlx5_cmd_sf_disable_hca()
/openbmc/linux/drivers/dma/idxd/
H A Dbus.c35 static int idxd_config_bus_match(struct device *dev, in idxd_config_bus_match() argument
40 struct idxd_dev *idxd_dev = confdev_to_idxd_dev(dev); in idxd_config_bus_match()
52 static int idxd_config_bus_probe(struct device *dev) in idxd_config_bus_probe() argument
55 container_of(dev->driver, struct idxd_device_driver, drv); in idxd_config_bus_probe()
56 struct idxd_dev *idxd_dev = confdev_to_idxd_dev(dev); in idxd_config_bus_probe()
61 static void idxd_config_bus_remove(struct device *dev) in idxd_config_bus_remove() argument
64 container_of(dev->driver, struct idxd_device_driver, drv); in idxd_config_bus_remove()
65 struct idxd_dev *idxd_dev = confdev_to_idxd_dev(dev); in idxd_config_bus_remove()
/openbmc/linux/drivers/input/misc/
H A Drk805-pwrkey.c44 pwr = devm_input_allocate_device(&pdev->dev); in rk805_pwrkey_probe()
46 dev_err(&pdev->dev, "Can't allocate power button\n"); in rk805_pwrkey_probe()
63 err = devm_request_any_context_irq(&pwr->dev, fall_irq, in rk805_pwrkey_probe()
68 dev_err(&pdev->dev, "Can't register fall irq: %d\n", err); in rk805_pwrkey_probe()
72 err = devm_request_any_context_irq(&pwr->dev, rise_irq, in rk805_pwrkey_probe()
77 dev_err(&pdev->dev, "Can't register rise irq: %d\n", err); in rk805_pwrkey_probe()
83 dev_err(&pdev->dev, "Can't register power button: %d\n", err); in rk805_pwrkey_probe()
88 device_init_wakeup(&pdev->dev, true); in rk805_pwrkey_probe()
/openbmc/linux/drivers/mfd/
H A Dmenf21bmc.c40 dev_info(&client->dev, in menf21bmc_wdt_exit_prod_mode()
66 dev_err(&client->dev, "failed to get BMC major revision\n"); in menf21bmc_probe()
72 dev_err(&client->dev, "failed to get BMC minor revision\n"); in menf21bmc_probe()
78 dev_err(&client->dev, "failed to get BMC main revision\n"); in menf21bmc_probe()
82 dev_info(&client->dev, "FW Revision: %02d.%02d.%02d\n", in menf21bmc_probe()
91 dev_err(&client->dev, "failed to leave production mode\n"); in menf21bmc_probe()
95 ret = devm_mfd_add_devices(&client->dev, 0, menf21bmc_cell, in menf21bmc_probe()
98 dev_err(&client->dev, "failed to add BMC sub-devices\n"); in menf21bmc_probe()
/openbmc/linux/arch/loongarch/pci/
H A Dpci.c65 int pcibios_device_add(struct pci_dev *dev) in pcibios_device_add() argument
70 id = pci_domain_nr(dev->bus); in pcibios_device_add()
72 dev_set_msi_domain(&dev->dev, dom); in pcibios_device_add()
77 int pcibios_alloc_irq(struct pci_dev *dev) in pcibios_alloc_irq() argument
81 if (pci_dev_msi_enabled(dev)) in pcibios_alloc_irq()
83 return acpi_pci_irq_enable(dev); in pcibios_alloc_irq()
93 dev_info(&pdev->dev, in pci_fixup_vgadev()
/openbmc/linux/drivers/clk/qcom/
H A Dhfpll.c50 struct device *dev = &pdev->dev; in qcom_hfpll_probe() local
68 h = devm_kzalloc(dev, sizeof(*h), GFP_KERNEL); in qcom_hfpll_probe()
76 regmap = devm_regmap_init_mmio(&pdev->dev, base, &hfpll_regmap_config); in qcom_hfpll_probe()
80 if (of_property_read_string_index(dev->of_node, "clock-output-names", in qcom_hfpll_probe()
90 ret = devm_clk_register_regmap(dev, &h->clkr); in qcom_hfpll_probe()
92 dev_err(dev, "failed to register regmap clock: %d\n", ret); in qcom_hfpll_probe()
96 return devm_of_clk_add_hw_provider(dev, of_clk_hw_simple_get, in qcom_hfpll_probe()
/openbmc/linux/drivers/irqchip/
H A Dirq-sl28cpld.c38 struct device *dev = &pdev->dev; in sl28cpld_intc_probe() local
44 if (!dev->parent) in sl28cpld_intc_probe()
47 irqchip = devm_kzalloc(dev, sizeof(*irqchip), GFP_KERNEL); in sl28cpld_intc_probe()
51 irqchip->regmap = dev_get_regmap(dev->parent, NULL); in sl28cpld_intc_probe()
59 ret = device_property_read_u32(&pdev->dev, "reg", &base); in sl28cpld_intc_probe()
71 return devm_regmap_add_irq_chip_fwnode(dev, dev_fwnode(dev), in sl28cpld_intc_probe()
/openbmc/linux/drivers/soc/mediatek/
H A Dmtk-svs.c1653 svsb->dev = devm_kzalloc(svsp->dev, sizeof(*svsb->dev), in svs_bank_resource_setup()
1655 if (!svsb->dev) in svs_bank_resource_setup()
2028 if (IS_ERR(dev)) in svs_add_device_link()
2029 return dev; in svs_add_device_link()
2031 sup_link = device_link_add(svsp->dev, dev, in svs_add_device_link()
2041 return dev; in svs_add_device_link()
2056 if (IS_ERR(dev)) in svs_mt8192_platform_probe()
2057 return dev_err_probe(svsp->dev, PTR_ERR(dev), in svs_mt8192_platform_probe()
2084 if (IS_ERR(dev)) in svs_mt8183_platform_probe()
2085 return dev_err_probe(svsp->dev, PTR_ERR(dev), in svs_mt8183_platform_probe()
[all …]
/openbmc/linux/net/atm/
H A Dlec.c183 struct net_device *dev = skb->dev; in lec_send() local
444 dev->name); in lec_atm_send()
647 memcmp(dst, dev->dev_addr, dev->addr_len)) { in lec_push()
665 struct net_device *dev = skb->dev; in lec_pop() local
676 if (netif_running(dev) && netif_queue_stopped(dev)) in lec_pop()
902 dev = state->dev ? state->dev : dev_lec[state->itf]; in lec_itf_walk()
903 v = (dev && netdev_priv(dev)) ? in lec_itf_walk()
906 dev_put(dev); in lec_itf_walk()
908 dev = NULL; in lec_itf_walk()
910 state->dev = dev; in lec_itf_walk()
[all …]
/openbmc/linux/drivers/hv/
H A Dvmbus_drv.c553 device_lock(dev); in driver_override_show()
555 device_unlock(dev); in driver_override_show()
699 struct hv_device *dev) in hv_vmbus_get_id() argument
705 if (dev->driver_override && strcmp(dev->driver_override, drv->name)) in hv_vmbus_get_id()
850 ret = drv->probe(dev, dev_id); in vmbus_probe()
889 drv->remove(dev); in vmbus_remove()
909 drv->shutdown(dev); in vmbus_shutdown()
929 return drv->suspend(dev); in vmbus_suspend()
948 return drv->resume(dev); in vmbus_resume()
2265 hv_dev = &device->dev; in vmbus_acpi_add()
[all …]
/openbmc/linux/drivers/bus/mhi/host/
H A Dmain.c365 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_create_devices() local
482 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_intvec_threaded_handler() local
573 struct device *dev = &mhi_cntrl->mhi_dev->dev; in parse_xfer_event() local
815 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_process_ctrl_ev_ring() local
1064 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_ctrl_ev_task() local
1285 struct device *dev = &mhi_cntrl->mhi_dev->dev; in mhi_send_cmd() local
1335 struct device *dev = &mhi_chan->mhi_dev->dev; in mhi_update_channel_state() local
1392 dev_err(dev, in mhi_update_channel_state()
1422 struct device *dev = &mhi_chan->mhi_dev->dev; in mhi_unprepare_channel() local
1457 struct device *dev = &mhi_chan->mhi_dev->dev; in mhi_prepare_channel() local
[all …]

1...<<281282283284285286287288289290>>...1067