/Linux-v5.10/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_platform.c | 131 struct plat_stmmacenet_data *plat) in stmmac_mtl_setup() argument 143 plat->rx_queues_to_use = 1; in stmmac_mtl_setup() 144 plat->tx_queues_to_use = 1; in stmmac_mtl_setup() 150 plat->rx_queues_cfg[0].mode_to_use = MTL_QUEUE_DCB; in stmmac_mtl_setup() 151 plat->tx_queues_cfg[0].mode_to_use = MTL_QUEUE_DCB; in stmmac_mtl_setup() 165 &plat->rx_queues_to_use)) in stmmac_mtl_setup() 166 plat->rx_queues_to_use = 1; in stmmac_mtl_setup() 169 plat->rx_sched_algorithm = MTL_RX_ALGORITHM_SP; in stmmac_mtl_setup() 171 plat->rx_sched_algorithm = MTL_RX_ALGORITHM_WSP; in stmmac_mtl_setup() 173 plat->rx_sched_algorithm = MTL_RX_ALGORITHM_SP; in stmmac_mtl_setup() [all …]
|
D | dwmac-intel.c | 32 int (*setup)(struct pci_dev *pdev, struct plat_stmmacenet_data *plat); 204 static void common_default_data(struct plat_stmmacenet_data *plat) in common_default_data() argument 206 plat->clk_csr = 2; /* clk_csr_i = 20-35MHz & MDC = clk_csr_i/16 */ in common_default_data() 207 plat->has_gmac = 1; in common_default_data() 208 plat->force_sf_dma_mode = 1; in common_default_data() 210 plat->mdio_bus_data->needs_reset = true; in common_default_data() 213 plat->multicast_filter_bins = HASH_TABLE_SIZE; in common_default_data() 216 plat->unicast_filter_entries = 1; in common_default_data() 219 plat->maxmtu = JUMBO_LEN; in common_default_data() 222 plat->tx_queues_to_use = 1; in common_default_data() [all …]
|
D | stmmac_pci.c | 19 int (*setup)(struct pci_dev *pdev, struct plat_stmmacenet_data *plat); 22 static void common_default_data(struct plat_stmmacenet_data *plat) in common_default_data() argument 24 plat->clk_csr = 2; /* clk_csr_i = 20-35MHz & MDC = clk_csr_i/16 */ in common_default_data() 25 plat->has_gmac = 1; in common_default_data() 26 plat->force_sf_dma_mode = 1; in common_default_data() 28 plat->mdio_bus_data->needs_reset = true; in common_default_data() 31 plat->multicast_filter_bins = HASH_TABLE_SIZE; in common_default_data() 34 plat->unicast_filter_entries = 1; in common_default_data() 37 plat->maxmtu = JUMBO_LEN; in common_default_data() 40 plat->tx_queues_to_use = 1; in common_default_data() [all …]
|
D | dwmac-mediatek.c | 64 int (*dwmac_set_phy_interface)(struct mediatek_dwmac_plat_data *plat); 65 int (*dwmac_set_delay)(struct mediatek_dwmac_plat_data *plat); 81 static int mt2712_set_interface(struct mediatek_dwmac_plat_data *plat) in mt2712_set_interface() argument 83 int rmii_clk_from_mac = plat->rmii_clk_from_mac ? RMII_CLK_SRC_INTERNAL : 0; in mt2712_set_interface() 84 int rmii_rxc = plat->rmii_rxc ? RMII_CLK_SRC_RXC : 0; in mt2712_set_interface() 94 plat->num_clks_to_config = plat->variant->num_clks - 1; in mt2712_set_interface() 97 switch (plat->phy_mode) { in mt2712_set_interface() 102 if (plat->rmii_clk_from_mac) in mt2712_set_interface() 103 plat->num_clks_to_config++; in mt2712_set_interface() 113 dev_err(plat->dev, "phy interface not supported\n"); in mt2712_set_interface() [all …]
|
D | stmmac_main.c | 143 u32 rx_queues_cnt = priv->plat->rx_queues_to_use; in stmmac_disable_all_queues() 144 u32 tx_queues_cnt = priv->plat->tx_queues_to_use; in stmmac_disable_all_queues() 164 u32 rx_queues_cnt = priv->plat->rx_queues_to_use; in stmmac_enable_all_queues() 165 u32 tx_queues_cnt = priv->plat->tx_queues_to_use; in stmmac_enable_all_queues() 209 clk_rate = clk_get_rate(priv->plat->stmmac_clk); in stmmac_clk_csr_set() 233 if (priv->plat->has_sun8i) { in stmmac_clk_csr_set() 244 if (priv->plat->has_xgmac) { in stmmac_clk_csr_set() 305 u32 tx_cnt = priv->plat->tx_queues_to_use; in stmmac_enable_eee_mode() 319 priv->plat->en_tx_lpi_clockgating); in stmmac_enable_eee_mode() 458 if (priv->plat->has_gmac4 || priv->plat->has_xgmac) in stmmac_get_rx_hwtstamp() [all …]
|
D | stmmac_tc.c | 312 u32 tx_queues_count = priv->plat->tx_queues_to_use; in tc_setup_cbs() 325 mode_to_use = priv->plat->tx_queues_cfg[queue].mode_to_use; in tc_setup_cbs() 331 priv->plat->tx_queues_cfg[queue].mode_to_use = MTL_QUEUE_AVB; in tc_setup_cbs() 342 priv->plat->tx_queues_cfg[queue].idle_slope = value & GENMASK(31, 0); in tc_setup_cbs() 345 priv->plat->tx_queues_cfg[queue].send_slope = value & GENMASK(31, 0); in tc_setup_cbs() 348 priv->plat->tx_queues_cfg[queue].high_credit = value & GENMASK(31, 0); in tc_setup_cbs() 351 priv->plat->tx_queues_cfg[queue].low_credit = value & GENMASK(31, 0); in tc_setup_cbs() 354 priv->plat->tx_queues_cfg[queue].send_slope, in tc_setup_cbs() 355 priv->plat->tx_queues_cfg[queue].idle_slope, in tc_setup_cbs() 356 priv->plat->tx_queues_cfg[queue].high_credit, in tc_setup_cbs() [all …]
|
D | stmmac_mdio.c | 204 if (priv->plat->has_gmac4) { in stmmac_mdio_read() 260 if (priv->plat->has_gmac4) { in stmmac_mdio_write() 335 if (!priv->plat->has_gmac4) in stmmac_mdio_reset() 351 struct stmmac_mdio_bus_data *mdio_bus_data = priv->plat->mdio_bus_data; in stmmac_mdio_register() 352 struct device_node *mdio_node = priv->plat->mdio_node; in stmmac_mdio_register() 368 if (priv->plat->has_xgmac) { in stmmac_mdio_register() 376 if (priv->plat->phy_addr > MII_XGMAC_MAX_C22ADDR) in stmmac_mdio_register() 397 new_bus->name, priv->plat->bus_id); in stmmac_mdio_register() 409 if (priv->plat->has_xgmac) in stmmac_mdio_register() 412 if (priv->plat->phy_node || mdio_node) in stmmac_mdio_register() [all …]
|
D | stmmac_ethtool.c | 263 if (priv->plat->has_gmac || priv->plat->has_gmac4) in stmmac_ethtool_getdrvinfo() 265 else if (priv->plat->has_xgmac) in stmmac_ethtool_getdrvinfo() 414 if (priv->plat->has_xgmac) in stmmac_ethtool_get_regs_len() 428 if (!priv->plat->has_xgmac) { in stmmac_ethtool_gregs() 507 u32 rx_queues_count = priv->plat->rx_queues_to_use; in stmmac_get_ethtool_stats() 508 u32 tx_queues_count = priv->plat->tx_queues_to_use; in stmmac_get_ethtool_stats() 630 if (!priv->plat->pmt) in stmmac_get_wol() 651 if (!priv->plat->pmt) { in stmmac_set_wol() 731 unsigned long clk = clk_get_rate(priv->plat->stmmac_clk); in stmmac_usec2riwt() 734 clk = priv->plat->clk_ref_rate; in stmmac_usec2riwt() [all …]
|
/Linux-v5.10/drivers/ata/ |
D | ahci_mtk.c | 47 struct mtk_ahci_plat *plat = hpriv->plat_data; in mtk_ahci_platform_resets() local 51 plat->axi_rst = devm_reset_control_get_optional_exclusive(dev, "axi"); in mtk_ahci_platform_resets() 52 if (PTR_ERR(plat->axi_rst) == -EPROBE_DEFER) in mtk_ahci_platform_resets() 53 return PTR_ERR(plat->axi_rst); in mtk_ahci_platform_resets() 55 plat->sw_rst = devm_reset_control_get_optional_exclusive(dev, "sw"); in mtk_ahci_platform_resets() 56 if (PTR_ERR(plat->sw_rst) == -EPROBE_DEFER) in mtk_ahci_platform_resets() 57 return PTR_ERR(plat->sw_rst); in mtk_ahci_platform_resets() 59 plat->reg_rst = devm_reset_control_get_optional_exclusive(dev, "reg"); in mtk_ahci_platform_resets() 60 if (PTR_ERR(plat->reg_rst) == -EPROBE_DEFER) in mtk_ahci_platform_resets() 61 return PTR_ERR(plat->reg_rst); in mtk_ahci_platform_resets() [all …]
|
/Linux-v5.10/drivers/mtd/maps/ |
D | sa1100-flash.c | 31 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 181 if (plat->init) { in sa1100_setup_mtd() [all …]
|
D | ixp4xx.c | 156 struct flash_platform_data *plat = dev_get_platdata(&dev->dev); in ixp4xx_flash_remove() local 167 if (plat->exit) in ixp4xx_flash_remove() 168 plat->exit(); in ixp4xx_flash_remove() 175 struct flash_platform_data *plat = dev_get_platdata(&dev->dev); in ixp4xx_flash_probe() local 182 if (!plat) in ixp4xx_flash_probe() 185 if (plat->init) { in ixp4xx_flash_probe() 186 err = plat->init(); in ixp4xx_flash_probe() 224 info->mtd = do_map_probe(plat->map_name, &info->map); in ixp4xx_flash_probe() 236 plat->parts, plat->nr_parts); in ixp4xx_flash_probe()
|
/Linux-v5.10/drivers/input/keyboard/ |
D | tc3589x-keypad.c | 325 struct tc3589x_keypad_platform_data *plat; in tc3589x_keypad_of_probe() local 333 plat = devm_kzalloc(dev, sizeof(*plat), GFP_KERNEL); in tc3589x_keypad_of_probe() 334 if (!plat) in tc3589x_keypad_of_probe() 339 plat->kcol = (u8) cols; in tc3589x_keypad_of_probe() 340 plat->krow = (u8) rows; in tc3589x_keypad_of_probe() 341 if (!plat->krow || !plat->kcol || in tc3589x_keypad_of_probe() 342 plat->krow > TC_KPD_ROWS || plat->kcol > TC_KPD_COLUMNS) { in tc3589x_keypad_of_probe() 345 plat->kcol, plat->krow); in tc3589x_keypad_of_probe() 354 plat->no_autorepeat = of_property_read_bool(np, "linux,no-autorepeat"); in tc3589x_keypad_of_probe() 356 plat->enable_wakeup = of_property_read_bool(np, "wakeup-source") || in tc3589x_keypad_of_probe() [all …]
|
/Linux-v5.10/drivers/net/ethernet/broadcom/ |
D | bgmac-platform.c | 38 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-v5.10/drivers/mtd/nand/raw/ |
D | gpio.c | 35 struct gpio_nand_platdata plat; member 187 struct gpio_nand_platdata *plat) in gpio_nand_get_config_of() argument 196 plat->options |= NAND_BUSWIDTH_16; in gpio_nand_get_config_of() 204 plat->chip_delay = val; in gpio_nand_get_config_of() 230 struct gpio_nand_platdata *plat) in gpio_nand_get_config_of() argument 243 struct gpio_nand_platdata *plat) in gpio_nand_get_config() argument 245 int ret = gpio_nand_get_config_of(dev, plat); in gpio_nand_get_config() 251 memcpy(plat, dev_get_platdata(dev), sizeof(*plat)); in gpio_nand_get_config() 318 ret = gpio_nand_get_config(dev, &gpiomtd->plat); in gpio_nand_probe() 356 chip->options = gpiomtd->plat.options; in gpio_nand_probe() [all …]
|
D | txx9ndfmc.c | 86 struct txx9ndfmc_platform_data *plat = dev_get_platdata(&dev->dev); in ndregaddr() local 88 return drvdata->base + (reg << plat->shift); in ndregaddr() 136 struct txx9ndfmc_platform_data *plat = dev_get_platdata(&dev->dev); in txx9ndfmc_cmd_ctrl() local 154 if (plat->flags & NDFMC_PLAT_FLAG_DUMMYWRITE) { in txx9ndfmc_cmd_ctrl() 222 struct txx9ndfmc_platform_data *plat = dev_get_platdata(&dev->dev); in txx9ndfmc_initialize() local 226 if (plat->flags & NDFMC_PLAT_FLAG_NO_RSTR) in txx9ndfmc_initialize() 245 (plat->flags & NDFMC_PLAT_FLAG_USE_BSPRT) ? in txx9ndfmc_initialize() 282 struct txx9ndfmc_platform_data *plat = dev_get_platdata(&dev->dev); in txx9ndfmc_probe() local 286 unsigned long gbusclk = plat->gbus_clock; in txx9ndfmc_probe() 297 hold = plat->hold ?: 20; /* tDH */ in txx9ndfmc_probe() [all …]
|
/Linux-v5.10/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_platform.c | 28 struct sxgbe_plat_data *plat, in sxgbe_probe_config_dt() argument 39 err = of_get_phy_mode(np, &plat->interface); in sxgbe_probe_config_dt() 43 plat->bus_id = of_alias_get_id(np, "ethernet"); in sxgbe_probe_config_dt() 44 if (plat->bus_id < 0) in sxgbe_probe_config_dt() 45 plat->bus_id = 0; in sxgbe_probe_config_dt() 47 plat->mdio_bus_data = devm_kzalloc(&pdev->dev, in sxgbe_probe_config_dt() 48 sizeof(*plat->mdio_bus_data), in sxgbe_probe_config_dt() 50 if (!plat->mdio_bus_data) in sxgbe_probe_config_dt() 57 plat->dma_cfg = dma_cfg; in sxgbe_probe_config_dt() 66 struct sxgbe_plat_data *plat, in sxgbe_probe_config_dt() argument
|
/Linux-v5.10/arch/powerpc/boot/ |
D | Makefile | 132 src-plat-y := of.c epapr.c 133 src-plat-$(CONFIG_40x) += fixed-head.S cuboot-hotfoot.c \ 136 src-plat-$(CONFIG_44x) += treeboot-ebony.c cuboot-ebony.c treeboot-bamboo.c \ 144 src-plat-$(CONFIG_PPC_8xx) += cuboot-8xx.c fixed-head.S ep88xc.c redboot-8xx.c 145 src-plat-$(CONFIG_PPC_MPC52xx) += cuboot-52xx.c 146 src-plat-$(CONFIG_PPC_82xx) += cuboot-pq2.c fixed-head.S ep8248e.c cuboot-824x.c 147 src-plat-$(CONFIG_PPC_83xx) += cuboot-83xx.c fixed-head.S redboot-83xx.c 148 src-plat-$(CONFIG_FSL_SOC_BOOKE) += cuboot-85xx.c cuboot-85xx-cpm2.c 149 src-plat-$(CONFIG_EMBEDDED6xx) += cuboot-pq2.c cuboot-mpc7448hpc2.c \ 153 src-plat-$(CONFIG_AMIGAONE) += cuboot-amigaone.c [all …]
|
/Linux-v5.10/sound/soc/ux500/ |
D | Makefile | 4 snd-soc-ux500-plat-msp-i2s-objs := 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-objs := ux500_pcm.o 8 obj-$(CONFIG_SND_SOC_UX500_PLAT_DMA) += snd-soc-ux500-plat-dma.o
|
/Linux-v5.10/drivers/net/ethernet/8390/ |
D | ax88796.c | 89 const struct ax_plat_data *plat; member 173 if (!ax->plat->check_irq(pdev)) in ax_ei_interrupt_filtered() 390 u8 reg_gpoc = ax->plat->gpoc_val; in ax_phy_switch() 495 if (ax->plat->check_irq) in ax_open() 662 ei_outb(ax->plat->dcr_val & ~1, ioaddr + EN0_DCFG); in ax_initial_setup() 663 ei_outb(ax->plat->gpoc_val, ioaddr + EI_SHIFT(0x17)); in ax_initial_setup() 694 if (ax->plat->flags & AXFLG_HAS_EEPROM) { in ax_init_dev() 708 if (ax->plat->wordlength == 2) in ax_init_dev() 716 if (ax->plat->flags & AXFLG_HAS_93CX6) { in ax_init_dev() 732 if (ax->plat->wordlength == 2) { in ax_init_dev() [all …]
|
/Linux-v5.10/drivers/w1/masters/ |
D | ds1wm.c | 312 struct ds1wm_driver_data *plat = dev_get_platdata(dev); in ds1wm_up() local 317 divisor = ds1wm_find_divisor(plat->clock_rate); in ds1wm_up() 319 divisor, plat->clock_rate); in ds1wm_up() 322 plat->clock_rate); in ds1wm_up() 509 struct ds1wm_driver_data *plat; in ds1wm_probe() local 535 plat = dev_get_platdata(&pdev->dev); in ds1wm_probe() 536 if (!plat) in ds1wm_probe() 540 if (plat->bus_shift > 2) { in ds1wm_probe() 547 ds1wm_data->bus_shift = plat->bus_shift; in ds1wm_probe() 557 ds1wm_data->is_hw_big_endian = plat->is_hw_big_endian; in ds1wm_probe() [all …]
|
/Linux-v5.10/drivers/video/fbdev/mmp/panel/ |
D | tpo_tj032md01bw.c | 77 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-v5.10/Documentation/arm/samsung/ |
D | overview.rst | 49 plat-samsung provides the base for all the implementations, and is the 54 plat-s3c24xx is for s3c24xx specific builds, see the S3C24XX docs. 56 plat-s5p is for s5p specific builds, and contains common support for the 64 The old plat-s3c and plat-s5pc1xx directories have been removed, with 65 support moved to either plat-samsung or plat-s5p as necessary. These moves
|
/Linux-v5.10/drivers/usb/musb/ |
D | am35x.c | 202 struct musb_hdrc_platform_data *plat = dev_get_platdata(dev); in am35x_musb_interrupt() local 203 struct omap_musb_board_data *data = plat->board_data; in am35x_musb_interrupt() 316 struct musb_hdrc_platform_data *plat = dev_get_platdata(dev); in am35x_musb_set_mode() local 317 struct omap_musb_board_data *data = plat->board_data; in am35x_musb_set_mode() 331 struct musb_hdrc_platform_data *plat = dev_get_platdata(dev); in am35x_musb_init() local 332 struct omap_musb_board_data *data = plat->board_data; in am35x_musb_init() 374 struct musb_hdrc_platform_data *plat = dev_get_platdata(dev); in am35x_musb_exit() local 375 struct omap_musb_board_data *data = plat->board_data; in am35x_musb_exit() 554 struct musb_hdrc_platform_data *plat = dev_get_platdata(dev); in am35x_suspend() local 555 struct omap_musb_board_data *data = plat->board_data; in am35x_suspend() [all …]
|
/Linux-v5.10/drivers/acpi/ |
D | utils.c | 895 int acpi_match_platform_list(const struct acpi_platform_list *plat) in acpi_match_platform_list() argument 903 for (; plat->oem_id[0]; plat++, idx++) { in acpi_match_platform_list() 904 if (ACPI_FAILURE(acpi_get_table_header(plat->table, 0, &hdr))) in acpi_match_platform_list() 907 if (strncmp(plat->oem_id, hdr.oem_id, ACPI_OEM_ID_SIZE)) in acpi_match_platform_list() 910 if (strncmp(plat->oem_table_id, hdr.oem_table_id, ACPI_OEM_TABLE_ID_SIZE)) in acpi_match_platform_list() 913 if ((plat->pred == all_versions) || in acpi_match_platform_list() 914 (plat->pred == less_than_or_equal && hdr.oem_revision <= plat->oem_revision) || in acpi_match_platform_list() 915 (plat->pred == greater_than_or_equal && hdr.oem_revision >= plat->oem_revision) || in acpi_match_platform_list() 916 (plat->pred == equal && hdr.oem_revision == plat->oem_revision)) in acpi_match_platform_list()
|
/Linux-v5.10/drivers/net/ethernet/xscale/ |
D | ixp4xx_eth.c | 173 struct eth_plat_info *plat; member 665 qmgr_disable_irq(port->plat->rxq); in eth_rx_irq() 673 unsigned int rxq = port->plat->rxq, rxfreeq = RXFREE_QUEUE(port->id); in eth_poll() 811 start = qmgr_stat_below_low_watermark(port->plat->txreadyq); in eth_txdone_irq() 812 queue_put_desc(port->plat->txreadyq, phys, desc); in eth_txdone_irq() 826 unsigned int txreadyq = port->plat->txreadyq; in eth_xmit() 1036 err = qmgr_request_queue(port->plat->rxq, RX_DESCS, 0, 0, in request_queues() 1046 err = qmgr_request_queue(port->plat->txreadyq, TX_DESCS, 0, 0, in request_queues() 1061 qmgr_release_queue(port->plat->txreadyq); in request_queues() 1065 qmgr_release_queue(port->plat->rxq); in request_queues() [all …]
|