Home
last modified time | relevance | path

Searched refs:dev (Results 7101 – 7125 of 26794) sorted by relevance

1...<<281282283284285286287288289290>>...1072

/openbmc/u-boot/drivers/pinctrl/meson/
H A Dpinctrl-meson-axg-pmx.c14 static int meson_axg_pmx_get_bank(struct udevice *dev, unsigned int pin, in meson_axg_pmx_get_bank() argument
18 struct meson_pinctrl *priv = dev_get_priv(dev); in meson_axg_pmx_get_bank()
46 static int meson_axg_pmx_update_function(struct udevice *dev, in meson_axg_pmx_update_function() argument
49 struct meson_pinctrl *priv = dev_get_priv(dev); in meson_axg_pmx_update_function()
56 ret = meson_axg_pmx_get_bank(dev, pin, &bank); in meson_axg_pmx_update_function()
70 static int meson_axg_pinmux_group_set(struct udevice *dev, in meson_axg_pinmux_group_set() argument
74 struct meson_pinctrl *priv = dev_get_priv(dev); in meson_axg_pinmux_group_set()
87 ret = meson_axg_pmx_update_function(dev, group->pins[i], in meson_axg_pinmux_group_set()
115 static int meson_axg_gpio_request(struct udevice *dev, in meson_axg_gpio_request() argument
118 return meson_axg_pmx_update_function(dev->parent, offset, 0); in meson_axg_gpio_request()
/openbmc/u-boot/drivers/usb/host/
H A Dxhci-dwc3.c114 static int xhci_dwc3_probe(struct udevice *dev) in xhci_dwc3_probe() argument
120 struct xhci_dwc3_platdata *plat = dev_get_platdata(dev); in xhci_dwc3_probe()
123 hccr = (struct xhci_hccr *)((uintptr_t)dev_read_addr(dev)); in xhci_dwc3_probe()
127 ret = dwc3_setup_phy(dev, &plat->usb_phys, &plat->num_phys); in xhci_dwc3_probe()
135 dr_mode = usb_get_dr_mode(dev_of_offset(dev)); in xhci_dwc3_probe()
142 return xhci_register(dev, hccr, hcor); in xhci_dwc3_probe()
145 static int xhci_dwc3_remove(struct udevice *dev) in xhci_dwc3_remove() argument
147 struct xhci_dwc3_platdata *plat = dev_get_platdata(dev); in xhci_dwc3_remove()
149 dwc3_shutdown_phy(dev, plat->usb_phys, plat->num_phys); in xhci_dwc3_remove()
151 return xhci_deregister(dev); in xhci_dwc3_remove()
/openbmc/linux/drivers/usb/host/
H A Dsl811_cs.c52 static void release_platform_dev(struct device * dev) in release_platform_dev() argument
54 dev_dbg(dev, "sl811_cs platform_dev release\n"); in release_platform_dev()
55 dev->parent = NULL; in release_platform_dev()
82 .dev = {
93 if (platform_dev.dev.parent) in sl811_hc_init()
95 platform_dev.dev.parent = parent; in sl811_hc_init()
118 dev_dbg(&link->dev, "sl811_cs_detach\n"); in sl811_cs_detach()
128 dev_dbg(&link->dev, "sl811_cs_release\n"); in sl811_cs_release()
145 struct device *parent = &link->dev; in sl811_cs_config()
148 dev_dbg(&link->dev, "sl811_cs_config\n"); in sl811_cs_config()
/openbmc/linux/sound/pci/trident/
H A Dtrident.c52 static int dev; in snd_trident_probe() local
58 if (dev >= SNDRV_CARDS) in snd_trident_probe()
60 if (!enable[dev]) { in snd_trident_probe()
61 dev++; in snd_trident_probe()
65 err = snd_devm_card_new(&pci->dev, index[dev], id[dev], THIS_MODULE, in snd_trident_probe()
72 pcm_channels[dev], in snd_trident_probe()
74 wavetable_size[dev]); in snd_trident_probe()
133 dev++; in snd_trident_probe()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-pca-isa.c109 static int pca_isa_match(struct device *dev, unsigned int id) in pca_isa_match() argument
115 dev_warn(dev, "Using polling mode (specify irq)\n"); in pca_isa_match()
117 dev_err(dev, "Please specify I/O base\n"); in pca_isa_match()
122 static int pca_isa_probe(struct device *dev, unsigned int id) in pca_isa_probe() argument
126 dev_info(dev, "i/o base %#08lx. irq %d\n", base, irq); in pca_isa_probe()
130 dev_err(dev, "I/O address %#08lx is not available\n", base); in pca_isa_probe()
136 dev_err(dev, "I/O address %#08lx is in use\n", base); in pca_isa_probe()
142 dev_err(dev, "Request irq%d failed\n", irq); in pca_isa_probe()
149 dev_err(dev, "Failed to add i2c bus\n"); in pca_isa_probe()
164 static void pca_isa_remove(struct device *dev, unsigned int id) in pca_isa_remove() argument
/openbmc/linux/drivers/net/mdio/
H A Dmdio-mvusb.c32 static int mvusb_mdio_read(struct mii_bus *mdio, int dev, int reg) in mvusb_mdio_read() argument
37 mvusb->buf[MVUSB_CMD_ADDR] = cpu_to_le16(0xa400 | (dev << 5) | reg); in mvusb_mdio_read()
52 static int mvusb_mdio_write(struct mii_bus *mdio, int dev, int reg, u16 val) in mvusb_mdio_write() argument
57 mvusb->buf[MVUSB_CMD_ADDR] = cpu_to_le16(0x8000 | (dev << 5) | reg); in mvusb_mdio_write()
67 struct device *dev = &interface->dev; in mvusb_mdio_probe() local
72 mdio = devm_mdiobus_alloc_size(dev, sizeof(*mvusb)); in mvusb_mdio_probe()
84 snprintf(mdio->id, MII_BUS_ID_SIZE, "mvusb-%s", dev_name(dev)); in mvusb_mdio_probe()
86 mdio->parent = dev; in mvusb_mdio_probe()
91 ret = of_mdiobus_register(mdio, dev->of_node); in mvusb_mdio_probe()
/openbmc/linux/drivers/video/backlight/
H A Dlv5207lp.c70 return !lv->pdata->dev || lv->pdata->dev == info->device; in lv5207lp_backlight_check_fb()
81 struct lv5207lp_platform_data *pdata = dev_get_platdata(&client->dev); in lv5207lp_probe()
87 dev_err(&client->dev, "No platform data supplied\n"); in lv5207lp_probe()
93 dev_warn(&client->dev, in lv5207lp_probe()
98 lv = devm_kzalloc(&client->dev, sizeof(*lv), GFP_KERNEL); in lv5207lp_probe()
112 backlight = devm_backlight_device_register(&client->dev, in lv5207lp_probe()
113 dev_name(&client->dev), &lv->client->dev, in lv5207lp_probe()
116 dev_err(&client->dev, "failed to register backlight\n"); in lv5207lp_probe()
/openbmc/linux/include/linux/can/
H A Dskb.h19 void can_flush_echo_skb(struct net_device *dev);
20 int can_put_echo_skb(struct sk_buff *skb, struct net_device *dev,
22 struct sk_buff *__can_get_echo_skb(struct net_device *dev, unsigned int idx,
25 unsigned int __must_check can_get_echo_skb(struct net_device *dev,
28 void can_free_echo_skb(struct net_device *dev, unsigned int idx,
30 struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf);
31 struct sk_buff *alloc_canfd_skb(struct net_device *dev,
33 struct sk_buff *alloc_canxl_skb(struct net_device *dev,
36 struct sk_buff *alloc_can_err_skb(struct net_device *dev,
38 bool can_dropped_invalid_skb(struct net_device *dev, struct sk_buff *skb);
/openbmc/linux/drivers/hwmon/
H A Dmax31722.c41 dev_err(&spi->dev, "failed to set sensor mode.\n"); in max31722_set_mode()
49 static ssize_t max31722_temp_show(struct device *dev, in max31722_temp_show() argument
53 struct max31722_data *data = dev_get_drvdata(dev); in max31722_temp_show()
76 data = devm_kzalloc(&spi->dev, sizeof(*data), GFP_KERNEL); in max31722_probe()
91 data->hwmon_dev = hwmon_device_register_with_groups(&spi->dev, in max31722_probe()
113 dev_warn(&spi->dev, "Failed to put device in stand-by mode\n"); in max31722_remove()
116 static int max31722_suspend(struct device *dev) in max31722_suspend() argument
118 struct spi_device *spi_device = to_spi_device(dev); in max31722_suspend()
124 static int max31722_resume(struct device *dev) in max31722_resume() argument
126 struct spi_device *spi_device = to_spi_device(dev); in max31722_resume()
H A Dltc4260.c37 static int ltc4260_get_value(struct device *dev, u8 reg) in ltc4260_get_value() argument
39 struct regmap *regmap = dev_get_drvdata(dev); in ltc4260_get_value()
73 static ssize_t ltc4260_value_show(struct device *dev, in ltc4260_value_show() argument
79 value = ltc4260_get_value(dev, attr->index); in ltc4260_value_show()
85 static ssize_t ltc4260_bool_show(struct device *dev, in ltc4260_bool_show() argument
89 struct regmap *regmap = dev_get_drvdata(dev); in ltc4260_bool_show()
146 struct device *dev = &client->dev; in ltc4260_probe() local
152 dev_err(dev, "failed to allocate register map\n"); in ltc4260_probe()
159 hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, in ltc4260_probe()
H A Dmax31760.c80 struct max31760_state *state = dev_get_drvdata(dev); in max31760_read()
239 struct max31760_state *state = dev_get_drvdata(dev); in max31760_write()
382 static int max31760_read_string(struct device *dev, in max31760_read_string() argument
411 static ssize_t lut_show(struct device *dev, in lut_show() argument
415 struct max31760_state *state = dev_get_drvdata(dev); in lut_show()
426 static ssize_t lut_store(struct device *dev, in lut_store() argument
519 struct device *dev = &client->dev; in max31760_probe() local
530 return dev_err_probe(dev, in max31760_probe()
534 dev_set_drvdata(dev, state); in max31760_probe()
563 static int max31760_suspend(struct device *dev) in max31760_suspend() argument
[all …]
/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_xdp.c9 static int lan966x_xdp_setup(struct net_device *dev, struct netdev_bpf *xdp) in lan966x_xdp_setup() argument
11 struct lan966x_port *port = netdev_priv(dev); in lan966x_xdp_setup()
43 int lan966x_xdp(struct net_device *dev, struct netdev_bpf *xdp) in lan966x_xdp() argument
47 return lan966x_xdp_setup(dev, xdp); in lan966x_xdp()
53 int lan966x_xdp_xmit(struct net_device *dev, in lan966x_xdp_xmit() argument
58 struct lan966x_port *port = netdev_priv(dev); in lan966x_xdp_xmit()
96 if (xdp_do_redirect(port->dev, &xdp, xdp_prog)) in lan966x_xdp_run()
101 bpf_warn_invalid_xdp_action(port->dev, xdp_prog, act); in lan966x_xdp_run()
104 trace_xdp_exception(port->dev, xdp_prog, act); in lan966x_xdp_run()
128 return xdp_rxq_info_reg(&port->xdp_rxq, port->dev, 0, in lan966x_xdp_port_init()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dkfree_skb.c43 struct net_device *dev; member
63 struct net_device *dev; in BPF_PROG() local
77 dev = skb->dev; in BPF_PROG()
78 ptr = dev->ifalias->rcuhead.next; in BPF_PROG()
84 meta.ifindex = _(dev->ifindex); in BPF_PROG()
118 int BPF_PROG(fentry_eth_type_trans, struct sk_buff *skb, struct net_device *dev, in BPF_PROG() argument
125 ifindex = dev->ifindex; in BPF_PROG()
136 int BPF_PROG(fexit_eth_type_trans, struct sk_buff *skb, struct net_device *dev, in BPF_PROG() argument
143 ifindex = dev->ifindex; in BPF_PROG()
/openbmc/linux/drivers/mux/
H A Dadg792a.c36 struct i2c_client *i2c = to_i2c_client(mux->chip->dev.parent); in adg792a_set()
63 struct device *dev = &i2c->dev; in adg792a_probe() local
73 ret = device_property_read_u32(dev, "#mux-control-cells", &cells); in adg792a_probe()
79 mux_chip = devm_mux_chip_alloc(dev, cells ? 3 : 1, 0); in adg792a_probe()
89 ret = device_property_read_u32_array(dev, "idle-state", in adg792a_probe()
110 dev_err(dev, "invalid idle-state %d\n", idle_state[i]); in adg792a_probe()
115 ret = devm_mux_chip_register(dev, mux_chip); in adg792a_probe()
120 dev_info(dev, "3x single pole quadruple throw muxes registered\n"); in adg792a_probe()
122 dev_info(dev, "triple pole quadruple throw mux registered\n"); in adg792a_probe()
/openbmc/linux/drivers/parisc/
H A Dlasi.c34 static void lasi_choose_irq(struct parisc_device *dev, void *ctrl) in lasi_choose_irq() argument
38 switch (dev->id.sversion) { in lasi_choose_irq()
48 case 0x8D: irq = (dev->hw_path == 13) ? 16 : 17; break; in lasi_choose_irq()
53 gsc_asic_assign_irq(ctrl, irq, &dev->irq); in lasi_choose_irq()
160 static int __init lasi_init_chip(struct parisc_device *dev) in lasi_init_chip() argument
170 lasi->hpa = dev->hpa.start; in lasi_init_chip()
184 dev->irq = gsc_alloc_irq(&lasi->gsc_irq); in lasi_init_chip()
185 if (dev->irq < 0) { in lasi_init_chip()
204 ret = gsc_common_setup(dev, lasi); in lasi_init_chip()
210 gsc_fixup_irqs(dev, lasi, lasi_choose_irq); in lasi_init_chip()
/openbmc/linux/drivers/hwtracing/coresight/
H A Dcoresight-cti.h181 void (*csdev_release)(struct device *dev);
210 int cti_add_default_connection(struct device *dev,
212 int cti_add_connection_entry(struct device *dev, struct cti_drvdata *drvdata,
216 struct cti_trig_con *cti_allocate_trig_con(struct device *dev, int in_sigs,
221 void cti_write_intack(struct device *dev, u32 ackval);
223 int cti_channel_trig_op(struct device *dev, enum cti_chan_op op,
226 int cti_channel_gate_op(struct device *dev, enum cti_chan_gate_op op,
228 int cti_channel_setop(struct device *dev, enum cti_chan_set_op op,
230 int cti_create_cons_sysfs(struct device *dev, struct cti_drvdata *drvdata);
232 coresight_cti_get_platform_data(struct device *dev);
/openbmc/linux/drivers/regulator/
H A Dqcom-refgen-regulator.c105 struct device *dev = &pdev->dev; in qcom_refgen_probe() local
110 rdesc = of_device_get_match_data(dev); in qcom_refgen_probe()
118 regmap = devm_regmap_init_mmio(dev, base, &qcom_refgen_regmap_config); in qcom_refgen_probe()
122 init_data = of_get_regulator_init_data(dev, dev->of_node, rdesc); in qcom_refgen_probe()
126 config.dev = dev; in qcom_refgen_probe()
128 config.of_node = dev->of_node; in qcom_refgen_probe()
131 rdev = devm_regulator_register(dev, rdesc, &config); in qcom_refgen_probe()
/openbmc/linux/drivers/phy/rockchip/
H A Dphy-rockchip-usb.c62 struct device *dev; member
245 dev_err(base->dev, "phy data not found\n"); in rockchip_usb_phy_init()
250 dev_dbg(base->dev, "phy%d used as uart output\n", i); in rockchip_usb_phy_init()
286 dev_err(base->dev, "failed to create PHY\n"); in rockchip_usb_phy_init()
458 struct device *dev = &pdev->dev; in rockchip_usb_phy_probe() local
469 match = of_match_device(dev->driver->of_match_table, dev); in rockchip_usb_phy_probe()
471 dev_err(dev, "missing phy data\n"); in rockchip_usb_phy_probe()
477 phy_base->dev = dev; in rockchip_usb_phy_probe()
479 if (dev->parent && dev->parent->of_node) in rockchip_usb_phy_probe()
481 dev->parent->of_node); in rockchip_usb_phy_probe()
[all …]
/openbmc/linux/Documentation/networking/dsa/
H A Db53.rst89 ip link set dev wan master br0
90 ip link set dev lan1 master br0
91 ip link set dev lan2 master br0
95 bridge vlan del dev lan1 vid 1
97 bridge vlan del dev lan2 vid 1
132 ip link set dev wan master br0
133 ip link set dev lan1 master br0
134 ip link set dev lan2 master br0
141 ip link set dev br0 up
169 ip link set dev wan master br0
[all …]
/openbmc/qemu/hw/pci/
H A Dpci_bridge.c284 uint8_t *conf = dev->config; in pci_bridge_disable_base_limit()
305 PCIDevice *dev = PCI_DEVICE(qdev); in pci_bridge_reset() local
306 uint8_t *conf = dev->config; in pci_bridge_reset()
344 PCIBus *parent = pci_get_bus(dev); in pci_bridge_initfn()
345 PCIBridge *br = PCI_BRIDGE(dev); in pci_bridge_initfn()
361 dev->config[PCI_HEADER_TYPE] = in pci_bridge_initfn()
364 pci_set_word(dev->config + PCI_SEC_STATUS, in pci_bridge_initfn()
373 if (!br->bus_name && dev->qdev.id && *dev->qdev.id) { in pci_bridge_initfn()
374 br->bus_name = dev->qdev.id; in pci_bridge_initfn()
379 sec_bus->parent_dev = dev; in pci_bridge_initfn()
[all …]
/openbmc/linux/drivers/media/platform/renesas/
H A Drcar-isp.c113 struct device *dev; member
154 ret = pm_runtime_resume_and_get(isp->dev); in risp_power_on()
160 pm_runtime_put(isp->dev); in risp_power_on()
170 pm_runtime_put(isp->dev); in risp_power_off()
182 dev_err(isp->dev, "Unsupported bus format\n"); in risp_start()
448 isp->dev = &pdev->dev; in risp_probe()
460 pm_runtime_enable(&pdev->dev); in risp_probe()
467 isp->subdev.dev = &pdev->dev; in risp_probe()
471 KBUILD_MODNAME, dev_name(&pdev->dev)); in risp_probe()
497 pm_runtime_disable(&pdev->dev); in risp_probe()
[all …]
/openbmc/linux/sound/soc/fsl/
H A Dfsl_asrc_dma.c61 struct device *dev = component->dev; in fsl_asrc_dma_prepare_and_submit() local
145 struct device *dev = component->dev; in fsl_asrc_dma_hw_params() local
166 dev_be = dai->dev; in fsl_asrc_dma_hw_params()
182 dev_err(dev, "failed to request DMA channel\n"); in fsl_asrc_dma_hw_params()
336 struct device *dev = component->dev; in fsl_asrc_dma_startup() local
337 struct fsl_asrc *asrc = dev_get_drvdata(dev); in fsl_asrc_dma_startup()
366 dev_err(dev, "failed to request asrc pair\n"); in fsl_asrc_dma_startup()
373 dev_err(dev, "failed to get dma channel\n"); in fsl_asrc_dma_startup()
386 dev_err(dev, "failed to refine runtime hwparams\n"); in fsl_asrc_dma_startup()
445 dev_err(card->dev, "failed to set DMA mask\n"); in fsl_asrc_dma_pcm_new()
[all …]
/openbmc/linux/drivers/pinctrl/renesas/
H A Dpinctrl-rza2.c43 struct device *dev; member
241 struct device_node *np = priv->dev->of_node; in rza2_gpio_register()
246 chip.parent = priv->dev; in rza2_gpio_register()
252 dev_err(priv->dev, "Unable to parse gpio-ranges\n"); in rza2_gpio_register()
276 dev_dbg(priv->dev, "Registered gpio controller\n"); in rza2_gpio_register()
309 dev_err(priv->dev, "pinctrl enable failed\n"); in rza2_pinctrl_register()
315 dev_err(priv->dev, "GPIO registration failed\n"); in rza2_pinctrl_register()
341 dev_info(priv->dev, "Missing pinmux property\n"); in rza2_dt_node_to_map()
451 dev_dbg(priv->dev, "Setting P%c_%d to PSEL=%d\n", in rza2_set_mux()
482 priv->dev = &pdev->dev; in rza2_pinctrl_probe()
[all …]
/openbmc/linux/drivers/phy/socionext/
H A Dphy-uniphier-ahci.c20 struct device *dev; member
138 dev_err(priv->dev, "Failed to release PM reset\n"); in uniphier_ahciphy_pro4_power_on()
389 struct device *dev = &pdev->dev; in uniphier_ahciphy_probe() local
398 priv->dev = dev; in uniphier_ahciphy_probe()
399 priv->data = of_device_get_match_data(dev); in uniphier_ahciphy_probe()
407 priv->clk_parent = devm_clk_get(dev, "link"); in uniphier_ahciphy_probe()
412 priv->clk = devm_clk_get(dev, "phy"); in uniphier_ahciphy_probe()
426 priv->clk_parent_gio = devm_clk_get(dev, "gio"); in uniphier_ahciphy_probe()
430 devm_reset_control_get_shared(dev, "gio"); in uniphier_ahciphy_probe()
447 phy = devm_phy_create(dev, dev->of_node, &uniphier_ahciphy_ops); in uniphier_ahciphy_probe()
[all …]
/openbmc/linux/drivers/tty/serial/
H A Dtimbuart.c29 struct platform_device *dev; member
92 dev_dbg(port->dev, "%s - total read %d bytes\n", in timbuart_rx_chars()
107 dev_dbg(port->dev, in timbuart_tx_chars()
147 dev_dbg(port->dev, "%s - leaving\n", __func__); in timbuart_handle_tx_port()
169 dev_dbg(port->dev, "%s - leaving\n", __func__); in timbuart_handle_rx_port()
242 dev_dbg(port->dev, "%s\n", __func__); in timbuart_startup()
258 dev_dbg(port->dev, "%s\n", __func__); in timbuart_shutdown()
416 dev_dbg(&dev->dev, "%s\n", __func__); in timbuart_probe()
434 uart->port.dev = &dev->dev; in timbuart_probe()
444 irq = platform_get_irq(dev, 0); in timbuart_probe()
[all …]

1...<<281282283284285286287288289290>>...1072