/linux-6.1.9/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_platform.c | 132 struct plat_stmmacenet_data *plat) in stmmac_mtl_setup() argument 144 plat->rx_queues_to_use = 1; in stmmac_mtl_setup() 145 plat->tx_queues_to_use = 1; in stmmac_mtl_setup() 151 plat->rx_queues_cfg[0].mode_to_use = MTL_QUEUE_DCB; in stmmac_mtl_setup() 152 plat->tx_queues_cfg[0].mode_to_use = MTL_QUEUE_DCB; in stmmac_mtl_setup() 166 &plat->rx_queues_to_use)) in stmmac_mtl_setup() 167 plat->rx_queues_to_use = 1; in stmmac_mtl_setup() 170 plat->rx_sched_algorithm = MTL_RX_ALGORITHM_SP; in stmmac_mtl_setup() 172 plat->rx_sched_algorithm = MTL_RX_ALGORITHM_WSP; in stmmac_mtl_setup() 174 plat->rx_sched_algorithm = MTL_RX_ALGORITHM_SP; in stmmac_mtl_setup() [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-intel.c | 35 int (*setup)(struct pci_dev *pdev, struct plat_stmmacenet_data *plat); 96 if (priv->plat->max_speed == 2500) in intel_serdes_powerup() 249 priv->plat->max_speed = 2500; in intel_speed_mode_2500() 250 priv->plat->phy_interface = PHY_INTERFACE_MODE_2500BASEX; in intel_speed_mode_2500() 251 priv->plat->mdio_bus_data->xpcs_an_inband = false; in intel_speed_mode_2500() 253 priv->plat->max_speed = 1000; in intel_speed_mode_2500() 254 priv->plat->mdio_bus_data->xpcs_an_inband = true; in intel_speed_mode_2500() 267 intel_priv = (struct intel_priv_data *)priv->plat->bsp_priv; in intel_mgbe_ptp_clk_freq_config() 325 intel_priv = priv->plat->bsp_priv; in intel_crosststamp() 330 if (priv->plat->ext_snapshot_en) in intel_crosststamp() [all …]
|
D | dwmac-mediatek.c | 91 int (*dwmac_set_phy_interface)(struct mediatek_dwmac_plat_data *plat); 92 int (*dwmac_set_delay)(struct mediatek_dwmac_plat_data *plat); 112 static int mt2712_set_interface(struct mediatek_dwmac_plat_data *plat) in mt2712_set_interface() argument 114 int rmii_clk_from_mac = plat->rmii_clk_from_mac ? RMII_CLK_SRC_INTERNAL : 0; in mt2712_set_interface() 115 int rmii_rxc = plat->rmii_rxc ? RMII_CLK_SRC_RXC : 0; in mt2712_set_interface() 119 switch (plat->phy_mode) { in mt2712_set_interface() 133 dev_err(plat->dev, "phy interface not supported\n"); in mt2712_set_interface() 137 regmap_write(plat->peri_regmap, PERI_ETH_PHY_INTF_SEL, intf_val); in mt2712_set_interface() 142 static void mt2712_delay_ps2stage(struct mediatek_dwmac_plat_data *plat) in mt2712_delay_ps2stage() argument 144 struct mac_delay_struct *mac_delay = &plat->mac_delay; in mt2712_delay_ps2stage() [all …]
|
D | dwmac-loongson.c | 12 static int loongson_default_data(struct plat_stmmacenet_data *plat) in loongson_default_data() argument 14 plat->clk_csr = 2; /* clk_csr_i = 20-35MHz & MDC = clk_csr_i/16 */ in loongson_default_data() 15 plat->has_gmac = 1; in loongson_default_data() 16 plat->force_sf_dma_mode = 1; in loongson_default_data() 19 plat->multicast_filter_bins = HASH_TABLE_SIZE; in loongson_default_data() 22 plat->unicast_filter_entries = 1; in loongson_default_data() 25 plat->maxmtu = JUMBO_LEN; in loongson_default_data() 28 plat->tx_queues_to_use = 1; in loongson_default_data() 29 plat->rx_queues_to_use = 1; in loongson_default_data() 32 plat->tx_queues_cfg[0].use_prio = false; in loongson_default_data() [all …]
|
D | stmmac_ptp.c | 68 xmac = priv->plat->has_gmac4 || priv->plat->has_xgmac; in stmmac_adjust_time() 80 if (priv->plat->est && priv->plat->est->enable) { in stmmac_adjust_time() 82 mutex_lock(&priv->plat->est->lock); in stmmac_adjust_time() 83 priv->plat->est->enable = false; in stmmac_adjust_time() 84 stmmac_est_configure(priv, priv->ioaddr, priv->plat->est, in stmmac_adjust_time() 85 priv->plat->clk_ptp_rate); in stmmac_adjust_time() 86 mutex_unlock(&priv->plat->est->lock); in stmmac_adjust_time() 99 mutex_lock(&priv->plat->est->lock); in stmmac_adjust_time() 102 time.tv_nsec = priv->plat->est->btr_reserve[0]; in stmmac_adjust_time() 103 time.tv_sec = priv->plat->est->btr_reserve[1]; in stmmac_adjust_time() [all …]
|
D | stmmac_tc.c | 285 if (!priv->plat->fpe_cfg) { in tc_init() 286 priv->plat->fpe_cfg = devm_kzalloc(priv->device, in tc_init() 287 sizeof(*priv->plat->fpe_cfg), in tc_init() 289 if (!priv->plat->fpe_cfg) in tc_init() 292 memset(priv->plat->fpe_cfg, 0, sizeof(*priv->plat->fpe_cfg)); in tc_init() 345 u32 tx_queues_count = priv->plat->tx_queues_to_use; in tc_setup_cbs() 384 mode_to_use = priv->plat->tx_queues_cfg[queue].mode_to_use; in tc_setup_cbs() 390 priv->plat->tx_queues_cfg[queue].mode_to_use = MTL_QUEUE_AVB; in tc_setup_cbs() 397 priv->plat->tx_queues_cfg[queue].mode_to_use = MTL_QUEUE_DCB; in tc_setup_cbs() 402 priv->plat->tx_queues_cfg[queue].idle_slope = value & GENMASK(31, 0); in tc_setup_cbs() [all …]
|
D | stmmac_main.c | 154 ret = clk_prepare_enable(priv->plat->stmmac_clk); in stmmac_bus_clks_config() 157 ret = clk_prepare_enable(priv->plat->pclk); in stmmac_bus_clks_config() 159 clk_disable_unprepare(priv->plat->stmmac_clk); in stmmac_bus_clks_config() 162 if (priv->plat->clks_config) { in stmmac_bus_clks_config() 163 ret = priv->plat->clks_config(priv->plat->bsp_priv, enabled); in stmmac_bus_clks_config() 165 clk_disable_unprepare(priv->plat->stmmac_clk); in stmmac_bus_clks_config() 166 clk_disable_unprepare(priv->plat->pclk); in stmmac_bus_clks_config() 171 clk_disable_unprepare(priv->plat->stmmac_clk); in stmmac_bus_clks_config() 172 clk_disable_unprepare(priv->plat->pclk); in stmmac_bus_clks_config() 173 if (priv->plat->clks_config) in stmmac_bus_clks_config() [all …]
|
D | stmmac_ethtool.c | 289 if (priv->plat->has_gmac || priv->plat->has_gmac4) in stmmac_ethtool_getdrvinfo() 291 else if (priv->plat->has_xgmac) in stmmac_ethtool_getdrvinfo() 297 if (priv->plat->pdev) { in stmmac_ethtool_getdrvinfo() 298 strscpy(info->bus_info, pci_name(priv->plat->pdev), in stmmac_ethtool_getdrvinfo() 443 if (priv->plat->has_xgmac) in stmmac_ethtool_get_regs_len() 445 else if (priv->plat->has_gmac4) in stmmac_ethtool_get_regs_len() 460 if (priv->plat->has_gmac4) { in stmmac_ethtool_gregs() 465 } else if (!priv->plat->has_xgmac) { in stmmac_ethtool_gregs() 545 u32 tx_cnt = priv->plat->tx_queues_to_use; in stmmac_get_per_qstats() 546 u32 rx_cnt = priv->plat->rx_queues_to_use; in stmmac_get_per_qstats() [all …]
|
D | stmmac_mdio.c | 237 if (priv->plat->has_gmac4) { in stmmac_mdio_read() 304 if (priv->plat->has_gmac4) { in stmmac_mdio_write() 386 if (!priv->plat->has_gmac4) in stmmac_mdio_reset() 401 mode = priv->plat->phy_interface; in stmmac_xpcs_setup() 437 struct fwnode_handle *fwnode = of_fwnode_handle(priv->plat->phylink_node); in stmmac_mdio_register() 438 struct stmmac_mdio_bus_data *mdio_bus_data = priv->plat->mdio_bus_data; in stmmac_mdio_register() 439 struct device_node *mdio_node = priv->plat->mdio_node; in stmmac_mdio_register() 456 if (priv->plat->has_gmac4) in stmmac_mdio_register() 459 if (priv->plat->has_xgmac) { in stmmac_mdio_register() 467 if (priv->plat->phy_addr > MII_XGMAC_MAX_C22ADDR) in stmmac_mdio_register() [all …]
|
/linux-6.1.9/drivers/media/platform/qcom/venus/ |
D | hfi_platform.c | 26 const struct hfi_platform *plat; in hfi_platform_get_codec_vpp_freq() local 29 plat = hfi_platform_get(version); in hfi_platform_get_codec_vpp_freq() 30 if (!plat) in hfi_platform_get_codec_vpp_freq() 33 if (plat->codec_vpp_freq) in hfi_platform_get_codec_vpp_freq() 34 freq = plat->codec_vpp_freq(session_type, codec); in hfi_platform_get_codec_vpp_freq() 42 const struct hfi_platform *plat; in hfi_platform_get_codec_vsp_freq() local 45 plat = hfi_platform_get(version); in hfi_platform_get_codec_vsp_freq() 46 if (!plat) in hfi_platform_get_codec_vsp_freq() 49 if (plat->codec_vpp_freq) in hfi_platform_get_codec_vsp_freq() 50 freq = plat->codec_vsp_freq(session_type, codec); in hfi_platform_get_codec_vsp_freq() [all …]
|
/linux-6.1.9/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-6.1.9/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 …]
|
/linux-6.1.9/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-6.1.9/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-6.1.9/drivers/mtd/nand/raw/ |
D | gpio.c | 35 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() 316 ret = gpio_nand_get_config(dev, &gpiomtd->plat); in gpio_nand_probe() 354 chip->options = gpiomtd->plat.options; in gpio_nand_probe() [all …]
|
D | txx9ndfmc.c | 85 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-6.1.9/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_platform.c | 28 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
|
/linux-6.1.9/drivers/usb/typec/ |
D | anx7411.c | 1446 struct anx7411_data *plat; in anx7411_i2c_probe() local 1453 plat = devm_kzalloc(dev, sizeof(*plat), GFP_KERNEL); in anx7411_i2c_probe() 1454 if (!plat) in anx7411_i2c_probe() 1457 plat->tcpc_client = client; in anx7411_i2c_probe() 1458 i2c_set_clientdata(client, plat); in anx7411_i2c_probe() 1460 mutex_init(&plat->lock); in anx7411_i2c_probe() 1462 ret = anx7411_register_i2c_dummy_clients(plat, client); in anx7411_i2c_probe() 1468 ret = anx7411_typec_switch_probe(plat, dev); in anx7411_i2c_probe() 1474 ret = anx7411_typec_port_probe(plat, dev); in anx7411_i2c_probe() 1481 plat->intp_irq = client->irq; in anx7411_i2c_probe() [all …]
|
/linux-6.1.9/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-6.1.9/drivers/net/ethernet/xscale/ |
D | ixp4xx_eth.c | 191 struct eth_plat_info *plat; member 686 qmgr_disable_irq(port->plat->rxq); in eth_rx_irq() 694 unsigned int rxq = port->plat->rxq, rxfreeq = RXFREE_QUEUE(port->id); in eth_poll() 832 start = qmgr_stat_below_low_watermark(port->plat->txreadyq); in eth_txdone_irq() 833 queue_put_desc(port->plat->txreadyq, phys, desc); in eth_txdone_irq() 847 unsigned int txreadyq = port->plat->txreadyq; in eth_xmit() 1059 err = qmgr_request_queue(port->plat->rxq, RX_DESCS, 0, 0, in request_queues() 1069 err = qmgr_request_queue(port->plat->txreadyq, TX_DESCS, 0, 0, in request_queues() 1084 qmgr_release_queue(port->plat->txreadyq); in request_queues() 1088 qmgr_release_queue(port->plat->rxq); in request_queues() [all …]
|
/linux-6.1.9/drivers/net/ethernet/8390/ |
D | ax88796.c | 89 const struct ax_plat_data *plat; member 180 if (!ax->plat->check_irq(pdev)) in ax_ei_interrupt_filtered() 397 u8 reg_gpoc = ax->plat->gpoc_val; in ax_phy_switch() 502 if (ax->plat->check_irq) in ax_open() 669 ei_outb(ax->plat->dcr_val & ~1, ioaddr + EN0_DCFG); in ax_initial_setup() 670 ei_outb(ax->plat->gpoc_val, ioaddr + EI_SHIFT(0x17)); in ax_initial_setup() 701 if (ax->plat->flags & AXFLG_HAS_EEPROM) { in ax_init_dev() 715 if (ax->plat->wordlength == 2) in ax_init_dev() 723 if (ax->plat->flags & AXFLG_HAS_93CX6) { in ax_init_dev() 739 if (ax->plat->wordlength == 2) { in ax_init_dev() [all …]
|
/linux-6.1.9/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-6.1.9/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-6.1.9/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
|