/linux-6.6.21/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() 265 intel_priv = (struct intel_priv_data *)priv->plat->bsp_priv; in intel_mgbe_ptp_clk_freq_config() 323 intel_priv = priv->plat->bsp_priv; in intel_crosststamp() 328 if (priv->plat->flags & STMMAC_FLAG_EXT_SNAPSHOT_EN) in intel_crosststamp() 331 priv->plat->flags |= STMMAC_FLAG_INT_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 | 59 xmac = priv->plat->has_gmac4 || priv->plat->has_xgmac; in stmmac_adjust_time() 71 if (priv->plat->est && priv->plat->est->enable) { in stmmac_adjust_time() 73 mutex_lock(&priv->plat->est->lock); in stmmac_adjust_time() 74 priv->plat->est->enable = false; in stmmac_adjust_time() 75 stmmac_est_configure(priv, priv->ioaddr, priv->plat->est, in stmmac_adjust_time() 76 priv->plat->clk_ptp_rate); in stmmac_adjust_time() 77 mutex_unlock(&priv->plat->est->lock); in stmmac_adjust_time() 90 mutex_lock(&priv->plat->est->lock); in stmmac_adjust_time() 93 time.tv_nsec = priv->plat->est->btr_reserve[0]; in stmmac_adjust_time() 94 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 | dwmac-tegra.c | 204 struct plat_stmmacenet_data *plat; in tegra_mgbe_probe() local 287 plat = stmmac_probe_config_dt(pdev, res.mac); in tegra_mgbe_probe() 288 if (IS_ERR(plat)) { in tegra_mgbe_probe() 289 err = PTR_ERR(plat); in tegra_mgbe_probe() 293 plat->has_xgmac = 1; in tegra_mgbe_probe() 294 plat->flags |= STMMAC_FLAG_TSO_EN; in tegra_mgbe_probe() 295 plat->pmt = 1; in tegra_mgbe_probe() 296 plat->bsp_priv = mgbe; in tegra_mgbe_probe() 298 if (!plat->mdio_node) in tegra_mgbe_probe() 299 plat->mdio_node = of_get_child_by_name(pdev->dev.of_node, "mdio"); in tegra_mgbe_probe() [all …]
|
D | stmmac_main.c | 155 ret = clk_prepare_enable(priv->plat->stmmac_clk); in stmmac_bus_clks_config() 158 ret = clk_prepare_enable(priv->plat->pclk); in stmmac_bus_clks_config() 160 clk_disable_unprepare(priv->plat->stmmac_clk); in stmmac_bus_clks_config() 163 if (priv->plat->clks_config) { in stmmac_bus_clks_config() 164 ret = priv->plat->clks_config(priv->plat->bsp_priv, enabled); in stmmac_bus_clks_config() 166 clk_disable_unprepare(priv->plat->stmmac_clk); in stmmac_bus_clks_config() 167 clk_disable_unprepare(priv->plat->pclk); in stmmac_bus_clks_config() 172 clk_disable_unprepare(priv->plat->stmmac_clk); in stmmac_bus_clks_config() 173 clk_disable_unprepare(priv->plat->pclk); in stmmac_bus_clks_config() 174 if (priv->plat->clks_config) in stmmac_bus_clks_config() [all …]
|
D | stmmac_platform.h | 19 struct plat_stmmacenet_data *plat); 25 struct plat_stmmacenet_data *plat); 27 struct plat_stmmacenet_data *plat); 30 struct plat_stmmacenet_data *plat, 33 struct plat_stmmacenet_data *plat, 44 return priv->plat->bsp_priv; in get_stmmac_bsp_priv()
|
D | dwmac4_lib.c | 32 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_set_rx_tail_ptr() 40 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_set_tx_tail_ptr() 48 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_dma_start_tx() 62 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_dma_stop_tx() 73 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_dma_start_rx() 89 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_dma_stop_rx() 99 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_set_tx_ring_len() 107 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_set_rx_ring_len() 115 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac4_enable_dma_irq() 129 const struct dwmac4_addrs *dwmac4_addrs = priv->plat->dwmac4_addrs; in dwmac410_enable_dma_irq() [all …]
|
D | hwif.c | 57 if (priv->plat->enh_desc) { in stmmac_dwmac1_quirks() 92 struct plat_stmmacenet_data *plat = priv ? priv->plat : NULL; in stmmac_reset() local 97 if (plat && plat->fix_soc_reset) in stmmac_reset() 98 return plat->fix_soc_reset(plat, ioaddr); in stmmac_reset() 272 bool needs_xgmac = priv->plat->has_xgmac; in stmmac_hwif_init() 273 bool needs_gmac4 = priv->plat->has_gmac4; in stmmac_hwif_init() 274 bool needs_gmac = priv->plat->has_gmac; in stmmac_hwif_init() 301 if (priv->plat->setup) { in stmmac_hwif_init() 302 mac = priv->plat->setup(priv); in stmmac_hwif_init()
|
/linux-6.6.21/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.6.21/drivers/ata/ |
D | ahci_mtk.c | 48 struct mtk_ahci_plat *plat = hpriv->plat_data; in mtk_ahci_platform_resets() local 52 plat->axi_rst = devm_reset_control_get_optional_exclusive(dev, "axi"); in mtk_ahci_platform_resets() 53 if (PTR_ERR(plat->axi_rst) == -EPROBE_DEFER) in mtk_ahci_platform_resets() 54 return PTR_ERR(plat->axi_rst); in mtk_ahci_platform_resets() 56 plat->sw_rst = devm_reset_control_get_optional_exclusive(dev, "sw"); in mtk_ahci_platform_resets() 57 if (PTR_ERR(plat->sw_rst) == -EPROBE_DEFER) in mtk_ahci_platform_resets() 58 return PTR_ERR(plat->sw_rst); in mtk_ahci_platform_resets() 60 plat->reg_rst = devm_reset_control_get_optional_exclusive(dev, "reg"); in mtk_ahci_platform_resets() 61 if (PTR_ERR(plat->reg_rst) == -EPROBE_DEFER) in mtk_ahci_platform_resets() 62 return PTR_ERR(plat->reg_rst); in mtk_ahci_platform_resets() [all …]
|
/linux-6.6.21/drivers/media/platform/mediatek/mdp3/ |
D | mtk-img-ipi.h | 119 #define CFG_CHECK(plat, p_id) ((plat) == (p_id)) argument 121 #define _CFG_OFST(plat, cfg, ofst) ((void *)(&((cfg)->config_##plat) + (ofst))) argument 122 #define CFG_OFST(plat, cfg, ofst) \ argument 123 (IS_ERR_OR_NULL(cfg) ? NULL : _CFG_OFST(plat, cfg, ofst)) 125 #define _CFG_ADDR(plat, cfg, mem) (&((cfg)->config_##plat.mem)) argument 126 #define CFG_ADDR(plat, cfg, mem) \ argument 127 (IS_ERR_OR_NULL(cfg) ? NULL : _CFG_ADDR(plat, cfg, mem)) 129 #define _CFG_GET(plat, cfg, mem) ((cfg)->config_##plat.mem) argument 130 #define CFG_GET(plat, cfg, mem) \ argument 131 (IS_ERR_OR_NULL(cfg) ? 0 : _CFG_GET(plat, cfg, mem)) [all …]
|
/linux-6.6.21/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.6.21/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.6.21/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.6.21/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() 314 ret = gpio_nand_get_config(dev, &gpiomtd->plat); in gpio_nand_probe() 352 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.6.21/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.6.21/drivers/usb/typec/ |
D | anx7411.c | 1445 struct anx7411_data *plat; in anx7411_i2c_probe() local 1452 plat = devm_kzalloc(dev, sizeof(*plat), GFP_KERNEL); in anx7411_i2c_probe() 1453 if (!plat) in anx7411_i2c_probe() 1456 plat->tcpc_client = client; in anx7411_i2c_probe() 1457 i2c_set_clientdata(client, plat); in anx7411_i2c_probe() 1459 mutex_init(&plat->lock); in anx7411_i2c_probe() 1461 ret = anx7411_register_i2c_dummy_clients(plat, client); in anx7411_i2c_probe() 1467 ret = anx7411_typec_switch_probe(plat, dev); in anx7411_i2c_probe() 1473 ret = anx7411_typec_port_probe(plat, dev); in anx7411_i2c_probe() 1480 plat->intp_irq = client->irq; in anx7411_i2c_probe() [all …]
|
/linux-6.6.21/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.6.21/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.6.21/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 …]
|