Home
last modified time | relevance | path

Searched refs:plat (Results 1 – 25 of 74) sorted by relevance

123

/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac-intel.c51 int (*setup)(struct pci_dev *pdev, struct plat_stmmacenet_data *plat);
151 if (priv->plat->phy_interface == PHY_INTERFACE_MODE_2500BASEX) in intel_serdes_powerup()
302 priv->plat->default_an_inband = false; in tgl_get_interfaces()
309 priv->plat->phy_interface = interface; in tgl_get_interfaces()
320 intel_priv = (struct intel_priv_data *)priv->plat->bsp_priv; in intel_mgbe_ptp_clk_freq_config()
375 intel_priv = priv->plat->bsp_priv; in intel_crosststamp()
380 if (priv->plat->flags & STMMAC_FLAG_EXT_SNAPSHOT_EN) in intel_crosststamp()
383 priv->plat->flags |= STMMAC_FLAG_INT_SNAPSHOT_EN; in intel_crosststamp()
389 switch (priv->plat->int_snapshot_num) { in intel_crosststamp()
404 priv->plat->flags &= ~STMMAC_FLAG_INT_SNAPSHOT_EN; in intel_crosststamp()
[all …]
H A Dstmmac_platform.c131 struct plat_stmmacenet_data *plat) in stmmac_mtl_setup() argument
143 plat->rx_queues_cfg[0].mode_to_use = MTL_QUEUE_DCB; in stmmac_mtl_setup()
144 plat->tx_queues_cfg[0].mode_to_use = MTL_QUEUE_DCB; in stmmac_mtl_setup()
160 plat->rx_queues_to_use = value; in stmmac_mtl_setup()
164 plat->rx_sched_algorithm = MTL_RX_ALGORITHM_SP; in stmmac_mtl_setup()
166 plat->rx_sched_algorithm = MTL_RX_ALGORITHM_WSP; in stmmac_mtl_setup()
168 plat->rx_sched_algorithm = MTL_RX_ALGORITHM_SP; in stmmac_mtl_setup()
172 if (queue >= plat->rx_queues_to_use) in stmmac_mtl_setup()
176 plat->rx_queues_cfg[queue].mode_to_use = MTL_QUEUE_DCB; in stmmac_mtl_setup()
178 plat->rx_queues_cfg[queue].mode_to_use = MTL_QUEUE_AVB; in stmmac_mtl_setup()
[all …]
H A Ddwmac-motorcomm.c210 struct plat_stmmacenet_data *plat; in motorcomm_default_plat_data() local
213 plat = stmmac_plat_dat_alloc(dev); in motorcomm_default_plat_data()
214 if (!plat) in motorcomm_default_plat_data()
217 plat->mdio_bus_data = devm_kzalloc(dev, sizeof(*plat->mdio_bus_data), in motorcomm_default_plat_data()
219 if (!plat->mdio_bus_data) in motorcomm_default_plat_data()
222 plat->axi = devm_kzalloc(dev, sizeof(*plat->axi), GFP_KERNEL); in motorcomm_default_plat_data()
223 if (!plat->axi) in motorcomm_default_plat_data()
226 plat->dma_cfg->pbl = DEFAULT_DMA_PBL; in motorcomm_default_plat_data()
227 plat->dma_cfg->pblx8 = true; in motorcomm_default_plat_data()
228 plat->dma_cfg->txpbl = 32; in motorcomm_default_plat_data()
[all …]
H A Ddwmac-tegra.c216 struct plat_stmmacenet_data *plat; in tegra_mgbe_probe() local
320 plat = devm_stmmac_probe_config_dt(pdev, res.mac); in tegra_mgbe_probe()
321 if (IS_ERR(plat)) { in tegra_mgbe_probe()
322 err = PTR_ERR(plat); in tegra_mgbe_probe()
326 plat->core_type = DWMAC_CORE_XGMAC; in tegra_mgbe_probe()
327 plat->flags |= STMMAC_FLAG_TSO_EN; in tegra_mgbe_probe()
328 plat->pmt = true; in tegra_mgbe_probe()
329 plat->bsp_priv = mgbe; in tegra_mgbe_probe()
331 if (!plat->mdio_node) in tegra_mgbe_probe()
332 plat->mdio_node = of_get_child_by_name(pdev->dev.of_node, "mdio"); in tegra_mgbe_probe()
[all …]
H A Dstmmac_main.c267 u8 rx_queues_cnt = priv->plat->rx_queues_to_use; in __stmmac_disable_all_queues()
268 u8 tx_queues_cnt = priv->plat->tx_queues_to_use; in __stmmac_disable_all_queues()
294 u8 rx_queues_cnt = priv->plat->rx_queues_to_use; in stmmac_disable_all_queues()
316 u8 rx_queues_cnt = priv->plat->rx_queues_to_use; in stmmac_enable_all_queues()
317 u8 tx_queues_cnt = priv->plat->tx_queues_to_use; in stmmac_enable_all_queues()
461 u8 tx_cnt = priv->plat->tx_queues_to_use; in stmmac_eee_tx_busy()
556 ns -= priv->plat->cdc_error_adj; in stmmac_get_tx_hwtstamp()
586 if (dwmac_is_xmac(priv->plat->core_type)) in stmmac_get_rx_hwtstamp()
593 ns -= priv->plat->cdc_error_adj; in stmmac_get_rx_hwtstamp()
606 bool xmac = dwmac_is_xmac(priv->plat in stmmac_update_subsecond_increment()
[all...]
H A Dstmmac_ptp.c60 xmac = dwmac_is_xmac(priv->plat->core_type); in stmmac_adjust_time()
77 priv->plat->clk_ptp_rate); in stmmac_adjust_time()
107 priv->plat->clk_ptp_rate); in stmmac_adjust_time()
242 priv->plat->flags |= STMMAC_FLAG_EXT_SNAPSHOT_EN; in stmmac_enable()
248 priv->plat->flags &= ~STMMAC_FLAG_EXT_SNAPSHOT_EN; in stmmac_enable()
282 return priv->plat->crosststamp(device, system, ctx); in stmmac_get_syncdevicetime()
348 priv->plat->cdc_error_adj = 0; in stmmac_ptp_register()
349 if (priv->plat->core_type == DWMAC_CORE_GMAC4) in stmmac_ptp_register()
350 priv->plat->cdc_error_adj = (2 * NSEC_PER_SEC) / priv->plat->clk_ptp_rate; in stmmac_ptp_register()
362 if (priv->plat->ptp_max_adj) in stmmac_ptp_register()
[all …]
H A Dstmmac_ethtool.c306 if (priv->plat->core_type == DWMAC_CORE_GMAC || in stmmac_ethtool_getdrvinfo()
307 priv->plat->core_type == DWMAC_CORE_GMAC4) in stmmac_ethtool_getdrvinfo()
309 else if (priv->plat->core_type == DWMAC_CORE_XGMAC) in stmmac_ethtool_getdrvinfo()
315 if (priv->plat->provide_bus_info) in stmmac_ethtool_getdrvinfo()
354 if (priv->plat->core_type == DWMAC_CORE_XGMAC) in stmmac_ethtool_get_regs_len()
356 else if (priv->plat->core_type == DWMAC_CORE_GMAC4) in stmmac_ethtool_get_regs_len()
371 if (priv->plat->core_type == DWMAC_CORE_GMAC4) { in stmmac_ethtool_gregs()
376 } else if (priv->plat->core_type != DWMAC_CORE_XGMAC) { in stmmac_ethtool_gregs()
483 u32 tx_cnt = priv->plat->tx_queues_to_use; in stmmac_get_per_qstats()
484 u32 rx_cnt = priv->plat->rx_queues_to_use; in stmmac_get_per_qstats()
[all …]
H A Dhwif.c24 enum dwmac_core_type core_type = priv->plat->core_type; in stmmac_get_version()
73 if (priv->plat->enh_desc) { in stmmac_dwmac1_quirks()
102 struct plat_stmmacenet_data *plat = priv->plat; in stmmac_reset() local
105 if (plat && plat->fix_soc_reset) in stmmac_reset()
106 return plat->fix_soc_reset(priv); in stmmac_reset()
319 enum dwmac_core_type core_type = priv->plat->core_type; in stmmac_hwif_init()
336 if (priv->plat->mac_setup) { in stmmac_hwif_init()
337 ret = priv->plat->mac_setup(priv, mac); in stmmac_hwif_init()
H A Ddwmac4_dma.c50 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_dma_init_rx_chan()
71 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_dma_init_tx_chan()
95 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_dma_init_channel()
112 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_dma_deinit_channel()
124 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac410_dma_init_channel()
142 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac410_dma_deinit_channel()
188 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in _dwmac4_dump_dma_regs()
250 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_rx_watchdog()
259 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_dma_rx_chan_op_mode()
329 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_dma_tx_chan_op_mode()
[all …]
H A Dstmmac_tc.c335 u32 tx_queues_count = priv->plat->tx_queues_to_use; in tc_setup_cbs()
375 mode_to_use = priv->plat->tx_queues_cfg[queue].mode_to_use; in tc_setup_cbs()
381 priv->plat->tx_queues_cfg[queue].mode_to_use = MTL_QUEUE_AVB; in tc_setup_cbs()
388 priv->plat->tx_queues_cfg[queue].mode_to_use = MTL_QUEUE_DCB; in tc_setup_cbs()
394 priv->plat->tx_queues_cfg[queue].idle_slope = value & GENMASK(31, 0); in tc_setup_cbs()
397 priv->plat->tx_queues_cfg[queue].send_slope = value & GENMASK(31, 0); in tc_setup_cbs()
400 priv->plat->tx_queues_cfg[queue].high_credit = value & GENMASK(31, 0); in tc_setup_cbs()
403 priv->plat->tx_queues_cfg[queue].low_credit = value & GENMASK(31, 0); in tc_setup_cbs()
406 priv->plat->tx_queues_cfg[queue].send_slope, in tc_setup_cbs()
407 priv->plat->tx_queues_cfg[queue].idle_slope, in tc_setup_cbs()
[all …]
/linux/drivers/media/platform/mediatek/mdp3/
H A Dmtk-img-ipi.h122 #define CFG_CHECK(plat, p_id) ((plat) == (p_id)) argument
124 #define _CFG_OFST(plat, cfg, ofst) ((void *)(&((cfg)->config_##plat) + (ofst))) argument
125 #define CFG_OFST(plat, cfg, ofst) \ argument
126 (IS_ERR_OR_NULL(cfg) ? NULL : _CFG_OFST(plat, cfg, ofst))
128 #define _CFG_ADDR(plat, cfg, mem) (&((cfg)->config_##plat.mem)) argument
129 #define CFG_ADDR(plat, cfg, mem) \ argument
130 (IS_ERR_OR_NULL(cfg) ? NULL : _CFG_ADDR(plat, cfg, mem))
132 #define _CFG_GET(plat, cfg, mem) ((cfg)->config_##plat.mem) argument
133 #define CFG_GET(plat, cfg, mem) \ argument
134 (IS_ERR_OR_NULL(cfg) ? 0 : _CFG_GET(plat, cfg, mem))
[all …]
/linux/drivers/mtd/maps/
H A Dsa1100-flash.c31 struct flash_platform_data *plat; member
50 subdev->plat->set_vpp(1); in sa1100_set_vpp()
53 subdev->plat->set_vpp(0); in sa1100_set_vpp()
99 if (subdev->plat->set_vpp) in sa1100_probe_subdev()
116 subdev->mtd = do_map_probe(subdev->plat->map_name, &subdev->map); in sa1100_probe_subdev()
134 static void sa1100_destroy(struct sa_info *info, struct flash_platform_data *plat) in sa1100_destroy() argument
148 if (plat->exit) in sa1100_destroy()
149 plat->exit(); in sa1100_destroy()
153 struct flash_platform_data *plat) in sa1100_setup_mtd() argument
179 if (plat->init) { in sa1100_setup_mtd()
[all …]
/linux/drivers/input/keyboard/
H A Dtc3589x-keypad.c325 struct tc3589x_keypad_platform_data *plat; in tc3589x_keypad_of_probe() local
332 plat = devm_kzalloc(dev, sizeof(*plat), GFP_KERNEL); in tc3589x_keypad_of_probe()
333 if (!plat) in tc3589x_keypad_of_probe()
338 plat->kcol = (u8) cols; in tc3589x_keypad_of_probe()
339 plat->krow = (u8) rows; in tc3589x_keypad_of_probe()
340 if (!plat->krow || !plat->kcol || in tc3589x_keypad_of_probe()
341 plat->krow > TC_KPD_ROWS || plat->kcol > TC_KPD_COLUMNS) { in tc3589x_keypad_of_probe()
344 plat->kcol, plat->krow); in tc3589x_keypad_of_probe()
353 plat->no_autorepeat = of_property_read_bool(np, "linux,no-autorepeat"); in tc3589x_keypad_of_probe()
355 plat->enable_wakeup = of_property_read_bool(np, "wakeup-source") || in tc3589x_keypad_of_probe()
[all …]
/linux/drivers/net/ethernet/broadcom/
H A Dbgmac-platform.c38 return readl(bgmac->plat.base + offset); in platform_bgmac_read()
43 writel(value, bgmac->plat.base + offset); in platform_bgmac_write()
48 return readl(bgmac->plat.idm_base + offset); in platform_bgmac_idm_read()
53 writel(value, bgmac->plat.idm_base + offset); in platform_bgmac_idm_write()
58 if (!bgmac->plat.idm_base) in platform_bgmac_clk_enabled()
72 if (!bgmac->plat.idm_base) in platform_bgmac_clk_enable()
123 if (!bgmac->plat.nicpm_base) in bgmac_nicpm_speed_set()
128 bgmac->plat.nicpm_base + NICPM_PADRING_CFG); in bgmac_nicpm_speed_set()
146 writel(val, bgmac->plat.nicpm_base + NICPM_IOMUX_CTRL); in bgmac_nicpm_speed_set()
155 if (bgmac->plat.nicpm_base) in platform_phy_connect()
[all …]
/linux/drivers/mtd/nand/raw/
H A Dgpio.c35 struct gpio_nand_platdata plat; member
186 struct gpio_nand_platdata *plat) in gpio_nand_get_config_of() argument
195 plat->options |= NAND_BUSWIDTH_16; in gpio_nand_get_config_of()
203 plat->chip_delay = val; in gpio_nand_get_config_of()
229 struct gpio_nand_platdata *plat) in gpio_nand_get_config_of() argument
242 struct gpio_nand_platdata *plat) in gpio_nand_get_config() argument
244 int ret = gpio_nand_get_config_of(dev, plat); in gpio_nand_get_config()
250 memcpy(plat, dev_get_platdata(dev), sizeof(*plat)); in gpio_nand_get_config()
314 ret = gpio_nand_get_config(dev, &gpiomtd->plat); in gpio_nand_probe()
352 chip->options = gpiomtd->plat.options; in gpio_nand_probe()
[all …]
H A Dtxx9ndfmc.c85 struct txx9ndfmc_platform_data *plat = dev_get_platdata(&dev->dev); in ndregaddr() local
87 return drvdata->base + (reg << plat->shift); in ndregaddr()
135 struct txx9ndfmc_platform_data *plat = dev_get_platdata(&dev->dev); in txx9ndfmc_cmd_ctrl() local
153 if (plat->flags & NDFMC_PLAT_FLAG_DUMMYWRITE) { in txx9ndfmc_cmd_ctrl()
221 struct txx9ndfmc_platform_data *plat = dev_get_platdata(&dev->dev); in txx9ndfmc_initialize() local
225 if (plat->flags & NDFMC_PLAT_FLAG_NO_RSTR) in txx9ndfmc_initialize()
244 (plat->flags & NDFMC_PLAT_FLAG_USE_BSPRT) ? in txx9ndfmc_initialize()
281 struct txx9ndfmc_platform_data *plat = dev_get_platdata(&dev->dev); in txx9ndfmc_probe() local
285 unsigned long gbusclk = plat->gbus_clock; in txx9ndfmc_probe()
294 hold = plat->hold ?: 20; /* tDH */ in txx9ndfmc_probe()
[all …]
/linux/drivers/net/ethernet/samsung/sxgbe/
H A Dsxgbe_platform.c28 struct sxgbe_plat_data *plat) in sxgbe_probe_config_dt() argument
37 err = of_get_phy_mode(np, &plat->interface); in sxgbe_probe_config_dt()
41 plat->bus_id = of_alias_get_id(np, "ethernet"); in sxgbe_probe_config_dt()
42 if (plat->bus_id < 0) in sxgbe_probe_config_dt()
43 plat->bus_id = 0; in sxgbe_probe_config_dt()
45 plat->mdio_bus_data = devm_kzalloc(&pdev->dev, in sxgbe_probe_config_dt()
46 sizeof(*plat->mdio_bus_data), in sxgbe_probe_config_dt()
48 if (!plat->mdio_bus_data) in sxgbe_probe_config_dt()
55 plat->dma_cfg = dma_cfg; in sxgbe_probe_config_dt()
64 struct sxgbe_plat_data *plat) in sxgbe_probe_config_dt() argument
H A Dsxgbe_mdio.c199 struct sxgbe_mdio_bus_data *mdio_data = priv->plat->mdio_bus_data; in sxgbe_mdio_register()
224 mdio_bus->name, priv->plat->bus_id); in sxgbe_mdio_register()
255 if (priv->plat->phy_addr == -1) in sxgbe_mdio_register()
256 priv->plat->phy_addr = phy_addr; in sxgbe_mdio_register()
258 act = (priv->plat->phy_addr == phy_addr); in sxgbe_mdio_register()
/linux/drivers/usb/typec/
H A Danx7411.c1464 struct anx7411_data *plat; in anx7411_i2c_probe() local
1471 plat = devm_kzalloc(dev, sizeof(*plat), GFP_KERNEL); in anx7411_i2c_probe()
1472 if (!plat) in anx7411_i2c_probe()
1475 plat->tcpc_client = client; in anx7411_i2c_probe()
1476 i2c_set_clientdata(client, plat); in anx7411_i2c_probe()
1478 mutex_init(&plat->lock); in anx7411_i2c_probe()
1480 ret = anx7411_register_i2c_dummy_clients(plat, client); in anx7411_i2c_probe()
1486 ret = anx7411_typec_switch_probe(plat, dev); in anx7411_i2c_probe()
1492 ret = anx7411_typec_port_probe(plat, de in anx7411_i2c_probe()
1564 struct anx7411_data *plat = i2c_get_clientdata(client); anx7411_i2c_remove() local
[all...]
/linux/sound/soc/ux500/
H A DMakefile4 snd-soc-ux500-plat-msp-i2s-y := ux500_msp_dai.o ux500_msp_i2s.o
5 obj-$(CONFIG_SND_SOC_UX500_PLAT_MSP_I2S) += snd-soc-ux500-plat-msp-i2s.o
7 snd-soc-ux500-plat-dma-y := ux500_pcm.o
8 obj-$(CONFIG_SND_SOC_UX500_PLAT_DMA) += snd-soc-ux500-plat-dma.o
/linux/drivers/video/fbdev/mmp/panel/
H A Dtpo_tj032md01bw.c77 struct tpohvga_plat_data *plat = panel->plat_data; in tpohvga_onoff() local
81 plat->plat_onoff(1); in tpohvga_onoff()
83 ret = spi_write(plat->spi, init, sizeof(init)); in tpohvga_onoff()
87 ret = spi_write(plat->spi, poweroff, sizeof(poweroff)); in tpohvga_onoff()
91 plat->plat_onoff(0); in tpohvga_onoff()
/linux/drivers/net/ethernet/xscale/
H A Dixp4xx_eth.c199 struct eth_plat_info *plat; member
701 qmgr_disable_irq(port->plat->rxq); in eth_rx_irq()
709 unsigned int rxq = port->plat->rxq, rxfreeq = RXFREE_QUEUE(port->id); in eth_poll()
847 start = qmgr_stat_below_low_watermark(port->plat->txreadyq); in eth_txdone_irq()
848 queue_put_desc(port->plat->txreadyq, phys, desc); in eth_txdone_irq()
862 unsigned int txreadyq = port->plat->txreadyq; in eth_xmit()
1057 err = qmgr_request_queue(port->plat->rxq, RX_DESCS, 0, 0, in request_queues()
1067 err = qmgr_request_queue(port->plat->txreadyq, TX_DESCS, 0, 0, in request_queues()
1082 qmgr_release_queue(port->plat->txreadyq); in request_queues()
1086 qmgr_release_queue(port->plat->rxq); in request_queues()
[all …]
/linux/Documentation/arch/arm/samsung/
H A Doverview.rst38 plat-samsung provides the base for all the implementations, and is the
43 plat-s5p is for s5p specific builds, and contains common support for the
51 The old plat-s3c and plat-s5pc1xx directories have been removed, with
52 support moved to either plat-samsung or plat-s5p as necessary. These moves
/linux/drivers/watchdog/
H A Dsimatic-ipc-wdt.c151 struct simatic_ipc_platform *plat = pdev->dev.platform_data; in simatic_ipc_wdt_probe() local
156 switch (plat->devmode) { in simatic_ipc_wdt_probe()
191 if (plat->devmode == SIMATIC_IPC_DEVICE_427E) { in simatic_ipc_wdt_probe()
208 wdd_data.bootstatus = wd_setup(plat->devmode); in simatic_ipc_wdt_probe()
212 if (plat->devmode == SIMATIC_IPC_DEVICE_227E) in simatic_ipc_wdt_probe()
/linux/tools/usb/usbip/libsrc/
H A Dusbip_device_driver.c74 struct udev_device *plat; in read_usb_vudc_device() local
78 plat = udev_device_get_parent(sdev); in read_usb_vudc_device()
79 path = udev_device_get_syspath(plat); in read_usb_vudc_device()
119 name = udev_device_get_sysname(plat); in read_usb_vudc_device()

123