/drivers/mfd/ |
H A D | wm831x-spi.c | 33 wm831x = devm_kzalloc(&spi->dev, sizeof(struct wm831x), GFP_KERNEL); 40 wm831x->dev = &spi->dev; 45 dev_err(wm831x->dev, "Failed to allocate register map: %d\n", 62 static int wm831x_spi_suspend(struct device *dev) argument 64 struct wm831x *wm831x = dev_get_drvdata(dev); 69 static int wm831x_spi_poweroff(struct device *dev) argument 71 struct wm831x *wm831x = dev_get_drvdata(dev);
|
H A D | wm8350-regmap.c | 285 static bool wm8350_readable(struct device *dev, unsigned int reg) argument 290 static bool wm8350_writeable(struct device *dev, unsigned int reg) argument 292 struct wm8350 *wm8350 = dev_get_drvdata(dev); 305 static bool wm8350_volatile(struct device *dev, unsigned int reg) argument 310 static bool wm8350_precious(struct device *dev, unsigned int reg) argument
|
H A D | wm8994-regmap.c | 769 static bool wm1811_readable_register(struct device *dev, unsigned int reg) argument 1016 static bool wm8994_readable_register(struct device *dev, unsigned int reg) argument 1066 return wm1811_readable_register(dev, reg); 1070 static bool wm8958_readable_register(struct device *dev, unsigned int reg) argument 1176 return wm8994_readable_register(dev, reg); 1180 static bool wm8994_volatile_register(struct device *dev, unsigned int reg) argument 1197 static bool wm1811_volatile_register(struct device *dev, unsigned int reg) argument 1199 struct wm8994 *wm8994 = dev_get_drvdata(dev); 1208 return wm8994_volatile_register(dev, reg); 1212 static bool wm8958_volatile_register(struct device *dev, unsigne argument [all...] |
H A D | wm8997-tables.c | 794 static bool wm8997_readable_register(struct device *dev, unsigned int reg) argument 1469 static bool wm8997_volatile_register(struct device *dev, unsigned int reg) argument
|
/drivers/misc/ |
H A D | ti_dac7512.c | 26 static ssize_t dac7512_store_val(struct device *dev, argument 30 struct spi_device *spi = to_spi_device(dev); 66 return sysfs_create_group(&spi->dev.kobj, &dac7512_attr_group); 71 sysfs_remove_group(&spi->dev.kobj, &dac7512_attr_group);
|
/drivers/mmc/host/ |
H A D | dw_mmc-k3.c | 27 dev_warn(host->dev, "failed to set rate %uHz\n", ios->clock); 47 match = of_match_node(dw_mci_k3_match, pdev->dev.of_node); 54 static int dw_mci_k3_suspend(struct device *dev) argument 56 struct dw_mci *host = dev_get_drvdata(dev); 66 static int dw_mci_k3_resume(struct device *dev) argument 68 struct dw_mci *host = dev_get_drvdata(dev); 73 dev_err(host->dev, "failed to enable ciu clock\n");
|
H A D | dw_mmc-pci.c | 49 host = devm_kzalloc(&pdev->dev, sizeof(struct dw_mci), GFP_KERNEL); 55 host->dev = &pdev->dev; 83 static int dw_mci_pci_suspend(struct device *dev) argument 85 struct pci_dev *pdev = to_pci_dev(dev); 91 static int dw_mci_pci_resume(struct device *dev) argument 93 struct pci_dev *pdev = to_pci_dev(dev);
|
H A D | sdhci-cns3xxx.c | 28 struct device *dev = mmc_dev(host->mmc); local 53 dev_dbg(dev, "desired SD clock: %d, actual: %d\n", 68 dev_warn(dev, "clock is unstable");
|
H A D | tmio_mmc.c | 27 static int tmio_mmc_suspend(struct device *dev) argument 29 struct platform_device *pdev = to_platform_device(dev); 33 ret = pm_runtime_force_suspend(dev); 42 static int tmio_mmc_resume(struct device *dev) argument 44 struct platform_device *pdev = to_platform_device(dev); 53 ret = pm_runtime_force_resume(dev); 70 pdata = pdev->dev.platform_data; 100 dev_name(&pdev->dev), host);
|
/drivers/mtd/maps/ |
H A D | rbtx4939-flash.c | 29 static int rbtx4939_flash_remove(struct platform_device *dev) argument 33 info = platform_get_drvdata(dev); 47 static int rbtx4939_flash_probe(struct platform_device *dev) argument 56 pdata = dev_get_platdata(&dev->dev); 60 res = platform_get_resource(dev, IORESOURCE_MEM, 0); 63 info = devm_kzalloc(&dev->dev, sizeof(struct rbtx4939_flash_info), 68 platform_set_drvdata(dev, info); 73 if (!devm_request_mem_region(&dev 113 rbtx4939_flash_shutdown(struct platform_device *dev) argument [all...] |
/drivers/mtd/ |
H A D | mtdblock_ro.c | 29 static int mtdblock_readsect(struct mtd_blktrans_dev *dev, argument 34 if (mtd_read(dev->mtd, (block * 512), 512, &retlen, buf)) 39 static int mtdblock_writesect(struct mtd_blktrans_dev *dev, argument 44 if (mtd_write(dev->mtd, (block * 512), 512, &retlen, buf)) 51 struct mtd_blktrans_dev *dev = kzalloc(sizeof(*dev), GFP_KERNEL); local 53 if (!dev) 56 dev->mtd = mtd; 57 dev->devnum = mtd->index; 59 dev 67 mtdblock_remove_dev(struct mtd_blktrans_dev *dev) argument [all...] |
/drivers/mtd/nand/ |
H A D | denali_pci.c | 31 static int denali_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) argument 42 ret = pci_enable_device(dev); 50 mem_base = pci_resource_start(dev, 0); 51 mem_len = pci_resource_len(dev, 1); 52 csr_base = pci_resource_start(dev, 1); 53 csr_len = pci_resource_len(dev, 1); 56 csr_base = pci_resource_start(dev, 0); 57 csr_len = pci_resource_len(dev, 0); 58 mem_base = pci_resource_start(dev, 1); 59 mem_len = pci_resource_len(dev, 113 denali_pci_remove(struct pci_dev *dev) argument [all...] |
/drivers/net/ |
H A D | Space.c | 16 * - get rid of pre-linked dev list, dynamic device allocation 48 struct net_device *dev; local 52 dev = p->probe(unit); 53 if (!IS_ERR(dev)) 56 p->status = PTR_ERR(dev);
|
/drivers/net/appletalk/ |
H A D | ipddp.h | 16 struct net_device *dev; /* Carrier device */ member in struct:ipddp_route
|
/drivers/net/can/ |
H A D | vcan.c | 48 #include <linux/can/dev.h> 72 static void vcan_rx(struct sk_buff *skb, struct net_device *dev) argument 75 struct net_device_stats *stats = &dev->stats; 81 skb->dev = dev; 87 static netdev_tx_t vcan_tx(struct sk_buff *skb, struct net_device *dev) argument 90 struct net_device_stats *stats = &dev->stats; 93 if (can_dropped_invalid_skb(dev, skb)) 126 vcan_rx(skb, dev); 134 static int vcan_change_mtu(struct net_device *dev, in argument 152 vcan_setup(struct net_device *dev) argument [all...] |
/drivers/net/ethernet/arc/ |
H A D | emac_arc.c | 31 struct device *dev = &pdev->dev; local 36 if (!dev->of_node) 43 SET_NETDEV_DEV(ndev, dev); 49 interface = of_get_phy_mode(dev->of_node); 53 priv->clk = devm_clk_get(dev, "hclk"); 55 dev_err(dev, "failed to retrieve host clock from device tree\n");
|
/drivers/net/ethernet/broadcom/genet/ |
H A D | bcmgenet_wol.c | 44 void bcmgenet_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) argument 46 struct bcmgenet_priv *priv = netdev_priv(dev); 64 int bcmgenet_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) argument 66 struct bcmgenet_priv *priv = netdev_priv(dev); 67 struct device *kdev = &priv->pdev->dev; 108 struct net_device *dev = priv->dev; local 115 netdev_crit(dev, "polling wol mode timeout\n"); 127 struct net_device *dev = priv->dev; local [all...] |
/drivers/net/ethernet/dec/tulip/ |
H A D | pnic.c | 19 void pnic_do_nway(struct net_device *dev) argument 21 struct tulip_private *tp = netdev_priv(dev); 27 if (phy_reg & 0x20000000) dev->if_port = 5; 28 else if (phy_reg & 0x40000000) dev->if_port = 3; 29 else if (phy_reg & 0x10000000) dev->if_port = 4; 30 else if (phy_reg & 0x08000000) dev->if_port = 0; 32 new_csr6 = (dev->if_port & 1) ? 0x01860000 : 0x00420000; 33 iowrite32(0x32 | (dev->if_port & 1), ioaddr + CSR12); 34 if (dev->if_port & 1) 41 netdev_dbg(dev, "PNI 52 pnic_lnk_change(struct net_device *dev, int csr5) argument 89 struct net_device *dev = (struct net_device *)data; local [all...] |
H A D | pnic2.c | 81 struct net_device *dev = (struct net_device *)data; local 82 struct tulip_private *tp = netdev_priv(dev); 87 dev_info(&dev->dev, "PNIC2 negotiation status %08x\n", 96 void pnic2_start_nway(struct net_device *dev) argument 98 struct tulip_private *tp = netdev_priv(dev); 125 netdev_dbg(dev, "Restarting PNIC2 autonegotiation, csr14=%08x\n", 129 dev->if_port = 0; 137 netdev_dbg(dev, "On Entry to Nway, csr6=%08x\n", tp->csr6); 170 void pnic2_lnk_change(struct net_device *dev, in argument [all...] |
H A D | timer.c | 21 struct net_device *dev = tp->dev; local 28 netdev_dbg(dev, "Media selection tick, %s, status %08x mode %08x SIA %08x %08x %08x %08x\n", 29 medianame[dev->if_port], 48 netdev_dbg(dev, "network media monitor CSR6 %08x CSR12 0x%02x\n", 62 netdev_dbg(dev, "Transceiver monitor tick CSR12=%#02x, no media sense\n", 71 netdev_dbg(dev, "Transceiver monitor tick: CSR12=%#02x bit %d is %d, expecting %d\n", 79 netdev_dbg(dev, "Link beat detected for %s\n", 83 netif_carrier_on(dev); 86 netif_carrier_off(dev); 142 struct net_device *dev = (struct net_device *)data; local 159 struct net_device *dev = (struct net_device *)data; local [all...] |
/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | mcg.c | 64 int mlx5_core_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn) argument 75 err = mlx5_cmd_exec(dev, &in, sizeof(in), &out, sizeof(out)); 86 int mlx5_core_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn) argument 97 err = mlx5_cmd_exec(dev, &in, sizeof(in), &out, sizeof(out));
|
H A D | pd.c | 61 int mlx5_core_alloc_pd(struct mlx5_core_dev *dev, u32 *pdn) argument 70 err = mlx5_cmd_exec(dev, &in, sizeof(in), &out, sizeof(out)); 82 int mlx5_core_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn) argument 92 err = mlx5_cmd_exec(dev, &in, sizeof(in), &out, sizeof(out));
|
/drivers/net/ethernet/stmicro/stmmac/ |
H A D | dwmac-meson.c | 24 struct device *dev; member in struct:meson_dwmac 52 dwmac = devm_kzalloc(&pdev->dev, sizeof(*dwmac), GFP_KERNEL); 57 dwmac->reg = devm_ioremap_resource(&pdev->dev, res);
|
/drivers/net/irda/ |
H A D | actisys-sir.c | 49 #include "sir-dev.h" 117 static int actisys_open(struct sir_dev *dev) argument 119 struct qos_info *qos = &dev->qos; 121 sirdev_set_dtr_rts(dev, TRUE, TRUE); 127 if (dev->dongle_drv->type == IRDA_ACTISYS_DONGLE) 138 static int actisys_close(struct sir_dev *dev) argument 141 sirdev_set_dtr_rts(dev, FALSE, FALSE); 163 static int actisys_change_speed(struct sir_dev *dev, unsigned speed) argument 169 speed, dev->speed); 181 dev 225 actisys_reset(struct sir_dev *dev) argument [all...] |
H A D | esi-sir.c | 38 #include "sir-dev.h" 65 static int esi_open(struct sir_dev *dev) argument 67 struct qos_info *qos = &dev->qos; 70 sirdev_set_dtr_rts(dev, FALSE, TRUE); 81 static int esi_close(struct sir_dev *dev) argument 84 sirdev_set_dtr_rts(dev, FALSE, FALSE); 96 static int esi_change_speed(struct sir_dev *dev, unsigned speed) argument 120 sirdev_set_dtr_rts(dev, dtr, rts); 121 dev->speed = speed; 132 static int esi_reset(struct sir_dev *dev) argument [all...] |