plat               86 arch/alpha/include/asm/core_titan.h 	titan_64	plat;
plat               78 arch/alpha/include/asm/core_tsunami.h 	tsunami_64	plat;
plat              496 arch/mips/kernel/cpu-probe.c static inline void set_elf_platform(int cpu, const char *plat)
plat              499 arch/mips/kernel/cpu-probe.c 		__elf_platform = plat;
plat              842 drivers/acpi/utils.c int acpi_match_platform_list(const struct acpi_platform_list *plat)
plat              850 drivers/acpi/utils.c 	for (; plat->oem_id[0]; plat++, idx++) {
plat              851 drivers/acpi/utils.c 		if (ACPI_FAILURE(acpi_get_table_header(plat->table, 0, &hdr)))
plat              854 drivers/acpi/utils.c 		if (strncmp(plat->oem_id, hdr.oem_id, ACPI_OEM_ID_SIZE))
plat              857 drivers/acpi/utils.c 		if (strncmp(plat->oem_table_id, hdr.oem_table_id, ACPI_OEM_TABLE_ID_SIZE))
plat              860 drivers/acpi/utils.c 		if ((plat->pred == all_versions) ||
plat              861 drivers/acpi/utils.c 		    (plat->pred == less_than_or_equal && hdr.oem_revision <= plat->oem_revision) ||
plat              862 drivers/acpi/utils.c 		    (plat->pred == greater_than_or_equal && hdr.oem_revision >= plat->oem_revision) ||
plat              863 drivers/acpi/utils.c 		    (plat->pred == equal && hdr.oem_revision == plat->oem_revision))
plat               47 drivers/ata/ahci_mtk.c 	struct mtk_ahci_plat *plat = hpriv->plat_data;
plat               51 drivers/ata/ahci_mtk.c 	plat->axi_rst = devm_reset_control_get_optional_exclusive(dev, "axi");
plat               52 drivers/ata/ahci_mtk.c 	if (PTR_ERR(plat->axi_rst) == -EPROBE_DEFER)
plat               53 drivers/ata/ahci_mtk.c 		return PTR_ERR(plat->axi_rst);
plat               55 drivers/ata/ahci_mtk.c 	plat->sw_rst = devm_reset_control_get_optional_exclusive(dev, "sw");
plat               56 drivers/ata/ahci_mtk.c 	if (PTR_ERR(plat->sw_rst) == -EPROBE_DEFER)
plat               57 drivers/ata/ahci_mtk.c 		return PTR_ERR(plat->sw_rst);
plat               59 drivers/ata/ahci_mtk.c 	plat->reg_rst = devm_reset_control_get_optional_exclusive(dev, "reg");
plat               60 drivers/ata/ahci_mtk.c 	if (PTR_ERR(plat->reg_rst) == -EPROBE_DEFER)
plat               61 drivers/ata/ahci_mtk.c 		return PTR_ERR(plat->reg_rst);
plat               63 drivers/ata/ahci_mtk.c 	err = reset_control_assert(plat->axi_rst);
plat               69 drivers/ata/ahci_mtk.c 	err = reset_control_assert(plat->sw_rst);
plat               75 drivers/ata/ahci_mtk.c 	err = reset_control_assert(plat->reg_rst);
plat               81 drivers/ata/ahci_mtk.c 	err = reset_control_deassert(plat->reg_rst);
plat               87 drivers/ata/ahci_mtk.c 	err = reset_control_deassert(plat->sw_rst);
plat               93 drivers/ata/ahci_mtk.c 	err = reset_control_deassert(plat->axi_rst);
plat              105 drivers/ata/ahci_mtk.c 	struct mtk_ahci_plat *plat = hpriv->plat_data;
plat              110 drivers/ata/ahci_mtk.c 		plat->mode = syscon_regmap_lookup_by_phandle(
plat              112 drivers/ata/ahci_mtk.c 		if (IS_ERR(plat->mode)) {
plat              114 drivers/ata/ahci_mtk.c 			return PTR_ERR(plat->mode);
plat              117 drivers/ata/ahci_mtk.c 		regmap_update_bits(plat->mode, SYS_CFG, SYS_CFG_SATA_MSK,
plat              129 drivers/ata/ahci_mtk.c 	struct mtk_ahci_plat *plat;
plat              133 drivers/ata/ahci_mtk.c 	plat = devm_kzalloc(dev, sizeof(*plat), GFP_KERNEL);
plat              134 drivers/ata/ahci_mtk.c 	if (!plat)
plat              141 drivers/ata/ahci_mtk.c 	hpriv->plat_data = plat;
plat               31 drivers/dma/ti/omap-dma.c 	struct omap_system_dma_plat_info *plat;
plat              382 drivers/dma/ti/omap-dma.c 	c->channel_base = od->base + od->plat->channel_stride * lch;
plat              392 drivers/dma/ti/omap-dma.c 	if (__dma_omap15xx(od->plat->dma_attr))
plat              461 drivers/dma/ti/omap-dma.c 	if (od->plat->errata & DMA_ERRATA_i541 && val & CCR_TRIGGER_SRC) {
plat              490 drivers/dma/ti/omap-dma.c 	if (!__dma_omap15xx(od->plat->dma_attr) && c->cyclic) {
plat              673 drivers/dma/ti/omap-dma.c 		if (__dma_omap16xx(od->plat->dma_attr)) {
plat              684 drivers/dma/ti/omap-dma.c 	if (od->plat->errata & DMA_ERRATA_IFRAME_BUFFERING)
plat              755 drivers/dma/ti/omap-dma.c 	if (val == 0 && od->plat->errata & DMA_ERRATA_3_3)
plat              766 drivers/dma/ti/omap-dma.c 	if (__dma_omap15xx(od->plat->dma_attr)) {
plat              792 drivers/dma/ti/omap-dma.c 	if (__dma_omap15xx(od->plat->dma_attr)) {
plat             1009 drivers/dma/ti/omap-dma.c 	if (od->plat->errata & DMA_ERRATA_PARALLEL_CHANNELS)
plat             1158 drivers/dma/ti/omap-dma.c 	if (__dma_omap15xx(od->plat->dma_attr))
plat             1476 drivers/dma/ti/omap-dma.c 	od->plat = omap_get_plat_info();
plat             1477 drivers/dma/ti/omap-dma.c 	if (!od->plat)
plat             1480 drivers/dma/ti/omap-dma.c 	od->reg_map = od->plat->reg_map;
plat             1502 drivers/dma/ti/omap-dma.c 	if (__dma_omap15xx(od->plat->dma_attr))
plat             1525 drivers/dma/ti/omap-dma.c 		lch_count = od->plat->dma_attr->lch_count;
plat             1569 drivers/dma/ti/omap-dma.c 	od->ddev.filter.map = od->plat->slave_map;
plat             1570 drivers/dma/ti/omap-dma.c 	od->ddev.filter.mapcnt = od->plat->slavecnt;
plat             1187 drivers/i2c/busses/i2c-pxa.c 	struct i2c_pxa_platform_data *plat = dev_get_platdata(&pdev->dev);
plat             1191 drivers/i2c/busses/i2c-pxa.c 	if (plat) {
plat             1192 drivers/i2c/busses/i2c-pxa.c 		i2c->use_pio = plat->use_pio;
plat             1193 drivers/i2c/busses/i2c-pxa.c 		i2c->fast_mode = plat->fast_mode;
plat             1194 drivers/i2c/busses/i2c-pxa.c 		i2c->high_mode = plat->high_mode;
plat             1195 drivers/i2c/busses/i2c-pxa.c 		i2c->master_code = plat->master_code;
plat             1198 drivers/i2c/busses/i2c-pxa.c 		i2c->rate = plat->rate;
plat             1205 drivers/i2c/busses/i2c-pxa.c 	struct i2c_pxa_platform_data *plat = dev_get_platdata(&dev->dev);
plat             1272 drivers/i2c/busses/i2c-pxa.c 	if (plat) {
plat             1274 drivers/i2c/busses/i2c-pxa.c 		i2c->slave_addr = plat->slave_addr;
plat             1275 drivers/i2c/busses/i2c-pxa.c 		i2c->slave = plat->slave;
plat             1277 drivers/i2c/busses/i2c-pxa.c 		i2c->adap.class = plat->class;
plat              224 drivers/input/keyboard/nomadik-ske-keypad.c 	const struct ske_keypad_platform_data *plat =
plat              232 drivers/input/keyboard/nomadik-ske-keypad.c 	if (!plat) {
plat              256 drivers/input/keyboard/nomadik-ske-keypad.c 	keypad->board = plat;
plat              291 drivers/input/keyboard/nomadik-ske-keypad.c 	error = matrix_keypad_build_keymap(plat->keymap_data, NULL,
plat              300 drivers/input/keyboard/nomadik-ske-keypad.c 	if (!plat->no_autorepeat)
plat              340 drivers/input/keyboard/nomadik-ske-keypad.c 	if (plat->wakeup_enable)
plat              325 drivers/input/keyboard/tc3589x-keypad.c 	struct tc3589x_keypad_platform_data *plat;
plat              333 drivers/input/keyboard/tc3589x-keypad.c 	plat = devm_kzalloc(dev, sizeof(*plat), GFP_KERNEL);
plat              334 drivers/input/keyboard/tc3589x-keypad.c 	if (!plat)
plat              339 drivers/input/keyboard/tc3589x-keypad.c 	plat->kcol = (u8) cols;
plat              340 drivers/input/keyboard/tc3589x-keypad.c 	plat->krow = (u8) rows;
plat              341 drivers/input/keyboard/tc3589x-keypad.c 	if (!plat->krow || !plat->kcol ||
plat              342 drivers/input/keyboard/tc3589x-keypad.c 	     plat->krow > TC_KPD_ROWS || plat->kcol > TC_KPD_COLUMNS) {
plat              345 drivers/input/keyboard/tc3589x-keypad.c 			plat->kcol, plat->krow);
plat              354 drivers/input/keyboard/tc3589x-keypad.c 	plat->no_autorepeat = of_property_read_bool(np, "linux,no-autorepeat");
plat              356 drivers/input/keyboard/tc3589x-keypad.c 	plat->enable_wakeup = of_property_read_bool(np, "wakeup-source") ||
plat              363 drivers/input/keyboard/tc3589x-keypad.c 		plat->debounce_period = debounce_ms * 16;
plat              365 drivers/input/keyboard/tc3589x-keypad.c 		plat->debounce_period = TC_KPD_DEBOUNCE_PERIOD;
plat              367 drivers/input/keyboard/tc3589x-keypad.c 	plat->settle_time = TC_KPD_SETTLE_TIME;
plat              369 drivers/input/keyboard/tc3589x-keypad.c 	plat->irqtype = IRQF_TRIGGER_FALLING;
plat              371 drivers/input/keyboard/tc3589x-keypad.c 	return plat;
plat              379 drivers/input/keyboard/tc3589x-keypad.c 	const struct tc3589x_keypad_platform_data *plat;
plat              382 drivers/input/keyboard/tc3589x-keypad.c 	plat = tc3589x_keypad_of_probe(&pdev->dev);
plat              383 drivers/input/keyboard/tc3589x-keypad.c 	if (IS_ERR(plat)) {
plat              385 drivers/input/keyboard/tc3589x-keypad.c 		return PTR_ERR(plat);
plat              403 drivers/input/keyboard/tc3589x-keypad.c 	keypad->board = plat;
plat              414 drivers/input/keyboard/tc3589x-keypad.c 	error = matrix_keypad_build_keymap(plat->keymap_data, NULL,
plat              425 drivers/input/keyboard/tc3589x-keypad.c 	if (!plat->no_autorepeat)
plat              434 drivers/input/keyboard/tc3589x-keypad.c 					  plat->irqtype | IRQF_ONESHOT,
plat              450 drivers/input/keyboard/tc3589x-keypad.c 	device_init_wakeup(&pdev->dev, plat->enable_wakeup);
plat              451 drivers/input/keyboard/tc3589x-keypad.c 	device_set_wakeup_capable(&pdev->dev, plat->enable_wakeup);
plat               77 drivers/memory/mtk-smi.c 	const struct mtk_smi_common_plat *plat;
plat              429 drivers/memory/mtk-smi.c 	common->plat = of_device_get_match_data(dev);
plat              439 drivers/memory/mtk-smi.c 	if (common->plat->has_gals) {
plat              455 drivers/memory/mtk-smi.c 	if (common->plat->gen == MTK_SMI_GEN1) {
plat              488 drivers/memory/mtk-smi.c 	u32 bus_sel = common->plat->bus_sel;
plat              497 drivers/memory/mtk-smi.c 	if (common->plat->gen == MTK_SMI_GEN2 && bus_sel)
plat             1594 drivers/mmc/host/mmci.c 	if (host->plat->ios_handler &&
plat             1595 drivers/mmc/host/mmci.c 		host->plat->ios_handler(mmc_dev(mmc), ios))
plat             1703 drivers/mmc/host/mmci.c 	struct mmci_platform_data *plat = host->plat;
plat             1707 drivers/mmc/host/mmci.c 		if (!plat->status)
plat             1710 drivers/mmc/host/mmci.c 		status = plat->status(mmc_dev(host->mmc));
plat             1791 drivers/mmc/host/mmci.c 	struct mmci_platform_data *plat = dev->dev.platform_data;
plat             1799 drivers/mmc/host/mmci.c 	if (!plat && !np) {
plat             1804 drivers/mmc/host/mmci.c 	if (!plat) {
plat             1805 drivers/mmc/host/mmci.c 		plat = devm_kzalloc(&dev->dev, sizeof(*plat), GFP_KERNEL);
plat             1806 drivers/mmc/host/mmci.c 		if (!plat)
plat             1870 drivers/mmc/host/mmci.c 	host->plat = plat;
plat             1940 drivers/mmc/host/mmci.c 		mmc->ocr_avail = plat->ocr_mask;
plat             1941 drivers/mmc/host/mmci.c 	else if (plat->ocr_mask)
plat              398 drivers/mmc/host/mmci.h 	struct mmci_platform_data *plat;
plat              156 drivers/mtd/maps/ixp4xx.c 	struct flash_platform_data *plat = dev_get_platdata(&dev->dev);
plat              167 drivers/mtd/maps/ixp4xx.c 	if (plat->exit)
plat              168 drivers/mtd/maps/ixp4xx.c 		plat->exit();
plat              175 drivers/mtd/maps/ixp4xx.c 	struct flash_platform_data *plat = dev_get_platdata(&dev->dev);
plat              182 drivers/mtd/maps/ixp4xx.c 	if (!plat)
plat              185 drivers/mtd/maps/ixp4xx.c 	if (plat->init) {
plat              186 drivers/mtd/maps/ixp4xx.c 		err = plat->init();
plat              224 drivers/mtd/maps/ixp4xx.c 	info->mtd = do_map_probe(plat->map_name, &info->map);
plat              236 drivers/mtd/maps/ixp4xx.c 			plat->parts, plat->nr_parts);
plat               31 drivers/mtd/maps/sa1100-flash.c 	struct flash_platform_data *plat;
plat               50 drivers/mtd/maps/sa1100-flash.c 			subdev->plat->set_vpp(1);
plat               53 drivers/mtd/maps/sa1100-flash.c 			subdev->plat->set_vpp(0);
plat              100 drivers/mtd/maps/sa1100-flash.c 	if (subdev->plat->set_vpp)
plat              117 drivers/mtd/maps/sa1100-flash.c 	subdev->mtd = do_map_probe(subdev->plat->map_name, &subdev->map);
plat              135 drivers/mtd/maps/sa1100-flash.c static void sa1100_destroy(struct sa_info *info, struct flash_platform_data *plat)
plat              149 drivers/mtd/maps/sa1100-flash.c 	if (plat->exit)
plat              150 drivers/mtd/maps/sa1100-flash.c 		plat->exit();
plat              154 drivers/mtd/maps/sa1100-flash.c 					struct flash_platform_data *plat)
plat              182 drivers/mtd/maps/sa1100-flash.c 	if (plat->init) {
plat              183 drivers/mtd/maps/sa1100-flash.c 		ret = plat->init();
plat              200 drivers/mtd/maps/sa1100-flash.c 		sprintf(subdev->name, "%s-%d", plat->name, i);
plat              201 drivers/mtd/maps/sa1100-flash.c 		subdev->plat = plat;
plat              222 drivers/mtd/maps/sa1100-flash.c 		strcpy(info->subdev[0].name, plat->name);
plat              241 drivers/mtd/maps/sa1100-flash.c 					      plat->name);
plat              254 drivers/mtd/maps/sa1100-flash.c 	sa1100_destroy(info, plat);
plat              263 drivers/mtd/maps/sa1100-flash.c 	struct flash_platform_data *plat = dev_get_platdata(&pdev->dev);
plat              267 drivers/mtd/maps/sa1100-flash.c 	if (!plat)
plat              270 drivers/mtd/maps/sa1100-flash.c 	info = sa1100_setup_mtd(pdev, plat);
plat              279 drivers/mtd/maps/sa1100-flash.c 	mtd_device_parse_register(info->mtd, part_probes, NULL, plat->parts,
plat              280 drivers/mtd/maps/sa1100-flash.c 				  plat->nr_parts);
plat              292 drivers/mtd/maps/sa1100-flash.c 	struct flash_platform_data *plat = dev_get_platdata(&pdev->dev);
plat              294 drivers/mtd/maps/sa1100-flash.c 	sa1100_destroy(info, plat);
plat               32 drivers/mtd/nand/raw/gpio.c 	struct gpio_nand_platdata plat;
plat              108 drivers/mtd/nand/raw/gpio.c 				   struct gpio_nand_platdata *plat)
plat              117 drivers/mtd/nand/raw/gpio.c 			plat->options |= NAND_BUSWIDTH_16;
plat              125 drivers/mtd/nand/raw/gpio.c 		plat->chip_delay = val;
plat              151 drivers/mtd/nand/raw/gpio.c 					  struct gpio_nand_platdata *plat)
plat              164 drivers/mtd/nand/raw/gpio.c 				       struct gpio_nand_platdata *plat)
plat              166 drivers/mtd/nand/raw/gpio.c 	int ret = gpio_nand_get_config_of(dev, plat);
plat              172 drivers/mtd/nand/raw/gpio.c 		memcpy(plat, dev_get_platdata(dev), sizeof(*plat));
plat              235 drivers/mtd/nand/raw/gpio.c 	ret = gpio_nand_get_config(dev, &gpiomtd->plat);
plat              276 drivers/mtd/nand/raw/gpio.c 	chip->options		= gpiomtd->plat.options;
plat              277 drivers/mtd/nand/raw/gpio.c 	chip->legacy.chip_delay	= gpiomtd->plat.chip_delay;
plat              293 drivers/mtd/nand/raw/gpio.c 	if (gpiomtd->plat.adjust_parts)
plat              294 drivers/mtd/nand/raw/gpio.c 		gpiomtd->plat.adjust_parts(&gpiomtd->plat, mtd->size);
plat              296 drivers/mtd/nand/raw/gpio.c 	ret = mtd_device_register(mtd, gpiomtd->plat.parts,
plat              297 drivers/mtd/nand/raw/gpio.c 				  gpiomtd->plat.num_parts);
plat              290 drivers/mtd/nand/raw/s3c2410.c 	struct s3c2410_platform_nand *plat = info->platform;
plat              302 drivers/mtd/nand/raw/s3c2410.c 	if (plat != NULL) {
plat              303 drivers/mtd/nand/raw/s3c2410.c 		tacls = s3c_nand_calc_rate(plat->tacls, clkrate, tacls_max);
plat              304 drivers/mtd/nand/raw/s3c2410.c 		twrph0 = s3c_nand_calc_rate(plat->twrph0, clkrate, 8);
plat              305 drivers/mtd/nand/raw/s3c2410.c 		twrph1 = s3c_nand_calc_rate(plat->twrph1, clkrate, 8);
plat             1082 drivers/mtd/nand/raw/s3c2410.c 	struct s3c2410_platform_nand *plat;
plat             1122 drivers/mtd/nand/raw/s3c2410.c 	plat = to_nand_plat(pdev);
plat             1131 drivers/mtd/nand/raw/s3c2410.c 	info->platform	= plat;
plat             1141 drivers/mtd/nand/raw/s3c2410.c 	if (!plat->sets || plat->nr_sets < 1) {
plat             1146 drivers/mtd/nand/raw/s3c2410.c 	sets = plat->sets;
plat             1147 drivers/mtd/nand/raw/s3c2410.c 	nr_sets = plat->nr_sets;
plat               86 drivers/mtd/nand/raw/txx9ndfmc.c 	struct txx9ndfmc_platform_data *plat = dev_get_platdata(&dev->dev);
plat               88 drivers/mtd/nand/raw/txx9ndfmc.c 	return drvdata->base + (reg << plat->shift);
plat              136 drivers/mtd/nand/raw/txx9ndfmc.c 	struct txx9ndfmc_platform_data *plat = dev_get_platdata(&dev->dev);
plat              154 drivers/mtd/nand/raw/txx9ndfmc.c 	if (plat->flags & NDFMC_PLAT_FLAG_DUMMYWRITE) {
plat              222 drivers/mtd/nand/raw/txx9ndfmc.c 	struct txx9ndfmc_platform_data *plat = dev_get_platdata(&dev->dev);
plat              226 drivers/mtd/nand/raw/txx9ndfmc.c 	if (plat->flags & NDFMC_PLAT_FLAG_NO_RSTR)
plat              245 drivers/mtd/nand/raw/txx9ndfmc.c 			(plat->flags & NDFMC_PLAT_FLAG_USE_BSPRT) ?
plat              273 drivers/mtd/nand/raw/txx9ndfmc.c 	struct txx9ndfmc_platform_data *plat = dev_get_platdata(&dev->dev);
plat              277 drivers/mtd/nand/raw/txx9ndfmc.c 	unsigned long gbusclk = plat->gbus_clock;
plat              288 drivers/mtd/nand/raw/txx9ndfmc.c 	hold = plat->hold ?: 20; /* tDH */
plat              289 drivers/mtd/nand/raw/txx9ndfmc.c 	spw = plat->spw ?: 90; /* max(tREADID, tWP, tRP) */
plat              293 drivers/mtd/nand/raw/txx9ndfmc.c 	if (plat->flags & NDFMC_PLAT_FLAG_HOLDADD)
plat              314 drivers/mtd/nand/raw/txx9ndfmc.c 		if (!(plat->ch_mask & (1 << i)))
plat              340 drivers/mtd/nand/raw/txx9ndfmc.c 		if (plat->ch_mask != 1) {
plat              354 drivers/mtd/nand/raw/txx9ndfmc.c 		if (plat->wide_mask & (1 << i))
plat               89 drivers/net/ethernet/8390/ax88796.c 	const struct ax_plat_data *plat;
plat              173 drivers/net/ethernet/8390/ax88796.c 	if (!ax->plat->check_irq(pdev))
plat              390 drivers/net/ethernet/8390/ax88796.c 	u8 reg_gpoc =  ax->plat->gpoc_val;
plat              495 drivers/net/ethernet/8390/ax88796.c 	if (ax->plat->check_irq)
plat              662 drivers/net/ethernet/8390/ax88796.c 	ei_outb(ax->plat->dcr_val & ~1, ioaddr + EN0_DCFG);
plat              663 drivers/net/ethernet/8390/ax88796.c 	ei_outb(ax->plat->gpoc_val, ioaddr + EI_SHIFT(0x17));
plat              694 drivers/net/ethernet/8390/ax88796.c 	if (ax->plat->flags & AXFLG_HAS_EEPROM) {
plat              708 drivers/net/ethernet/8390/ax88796.c 		if (ax->plat->wordlength == 2)
plat              716 drivers/net/ethernet/8390/ax88796.c 	if (ax->plat->flags & AXFLG_HAS_93CX6) {
plat              732 drivers/net/ethernet/8390/ax88796.c 	if (ax->plat->wordlength == 2) {
plat              734 drivers/net/ethernet/8390/ax88796.c 		ei_outb(ax->plat->dcr_val, ei_local->mem + EN0_DCFG);
plat              743 drivers/net/ethernet/8390/ax88796.c 	if (ax->plat->flags & AXFLG_MAC_FROMDEV) {
plat              751 drivers/net/ethernet/8390/ax88796.c 	if ((ax->plat->flags & AXFLG_MAC_FROMPLATFORM) &&
plat              752 drivers/net/ethernet/8390/ax88796.c 	    ax->plat->mac_addr)
plat              753 drivers/net/ethernet/8390/ax88796.c 		memcpy(dev->dev_addr, ax->plat->mac_addr, ETH_ALEN);
plat              766 drivers/net/ethernet/8390/ax88796.c 	ei_local->word16 = (ax->plat->wordlength == 2);
plat              775 drivers/net/ethernet/8390/ax88796.c 	if (ax->plat->block_input)
plat              776 drivers/net/ethernet/8390/ax88796.c 		ei_local->block_input = ax->plat->block_input;
plat              779 drivers/net/ethernet/8390/ax88796.c 	if (ax->plat->block_output)
plat              780 drivers/net/ethernet/8390/ax88796.c 		ei_local->block_output = ax->plat->block_output;
plat              855 drivers/net/ethernet/8390/ax88796.c 	ax->plat = dev_get_platdata(&pdev->dev);
plat              858 drivers/net/ethernet/8390/ax88796.c 	ei_local->rxcr_base = ax->plat->rcr_val;
plat              887 drivers/net/ethernet/8390/ax88796.c 	if (ax->plat->reg_offsets)
plat              888 drivers/net/ethernet/8390/ax88796.c 		ei_local->reg_offset = ax->plat->reg_offsets;
plat              914 drivers/net/ethernet/8390/ax88796.c 		if (!ax->plat->reg_offsets) {
plat               38 drivers/net/ethernet/broadcom/bgmac-platform.c 	return readl(bgmac->plat.base + offset);
plat               43 drivers/net/ethernet/broadcom/bgmac-platform.c 	writel(value, bgmac->plat.base + offset);
plat               48 drivers/net/ethernet/broadcom/bgmac-platform.c 	return readl(bgmac->plat.idm_base + offset);
plat               53 drivers/net/ethernet/broadcom/bgmac-platform.c 	writel(value, bgmac->plat.idm_base + offset);
plat               58 drivers/net/ethernet/broadcom/bgmac-platform.c 	if (!bgmac->plat.idm_base)
plat               72 drivers/net/ethernet/broadcom/bgmac-platform.c 	if (!bgmac->plat.idm_base)
plat              123 drivers/net/ethernet/broadcom/bgmac-platform.c 	if (!bgmac->plat.nicpm_base)
plat              128 drivers/net/ethernet/broadcom/bgmac-platform.c 	       bgmac->plat.nicpm_base + NICPM_PADRING_CFG);
plat              146 drivers/net/ethernet/broadcom/bgmac-platform.c 	writel(val, bgmac->plat.nicpm_base + NICPM_IOMUX_CTRL);
plat              155 drivers/net/ethernet/broadcom/bgmac-platform.c 	if (bgmac->plat.nicpm_base)
plat              211 drivers/net/ethernet/broadcom/bgmac-platform.c 	bgmac->plat.base = devm_ioremap_resource(&pdev->dev, regs);
plat              212 drivers/net/ethernet/broadcom/bgmac-platform.c 	if (IS_ERR(bgmac->plat.base))
plat              213 drivers/net/ethernet/broadcom/bgmac-platform.c 		return PTR_ERR(bgmac->plat.base);
plat              217 drivers/net/ethernet/broadcom/bgmac-platform.c 		bgmac->plat.idm_base = devm_ioremap_resource(&pdev->dev, regs);
plat              218 drivers/net/ethernet/broadcom/bgmac-platform.c 		if (IS_ERR(bgmac->plat.idm_base))
plat              219 drivers/net/ethernet/broadcom/bgmac-platform.c 			return PTR_ERR(bgmac->plat.idm_base);
plat              225 drivers/net/ethernet/broadcom/bgmac-platform.c 		bgmac->plat.nicpm_base = devm_ioremap_resource(&pdev->dev,
plat              227 drivers/net/ethernet/broadcom/bgmac-platform.c 		if (IS_ERR(bgmac->plat.nicpm_base))
plat              228 drivers/net/ethernet/broadcom/bgmac-platform.c 			return PTR_ERR(bgmac->plat.nicpm_base);
plat              485 drivers/net/ethernet/broadcom/bgmac.h 		} plat;
plat              483 drivers/net/ethernet/samsung/sxgbe/sxgbe_common.h 	struct sxgbe_plat_data *plat;
plat              270 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 	int phy_iface = priv->plat->interface;
plat              277 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 	if (priv->plat->phy_bus_name)
plat              279 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 			 priv->plat->phy_bus_name, priv->plat->bus_id);
plat              282 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 			 priv->plat->bus_id);
plat              285 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 		 priv->plat->phy_addr);
plat              699 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 	if (likely(priv->plat->force_sf_dma_mode)) {
plat              711 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 	} else if (unlikely(priv->plat->force_thresh_dma_mode)) {
plat              951 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 	if (priv->plat->dma_cfg) {
plat              952 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 		pbl = priv->plat->dma_cfg->pbl;
plat              953 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 		fixed_burst = priv->plat->dma_cfg->fixed_burst;
plat              954 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 		burst_map = priv->plat->dma_cfg->burst_map;
plat             2074 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 	priv->plat = plat_dat;
plat             2133 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 	if (!priv->plat->riwt_off) {
plat             2155 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 	if (!priv->plat->clk_csr)
plat             2158 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 		priv->clk_csr = priv->plat->clk_csr;
plat             2164 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c 			   __func__, priv->plat->bus_id);
plat              144 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 	struct sxgbe_mdio_bus_data *mdio_data = priv->plat->mdio_bus_data;
plat              167 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 		 mdio_bus->name, priv->plat->bus_id);
plat              198 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 			if (priv->plat->phy_addr == -1)
plat              199 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 				priv->plat->phy_addr = phy_addr;
plat              201 drivers/net/ethernet/samsung/sxgbe/sxgbe_mdio.c 			act = (priv->plat->phy_addr == phy_addr);
plat               28 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c 				 struct sxgbe_plat_data *plat,
plat               38 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c 	plat->interface = of_get_phy_mode(np);
plat               40 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c 	plat->bus_id = of_alias_get_id(np, "ethernet");
plat               41 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c 	if (plat->bus_id < 0)
plat               42 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c 		plat->bus_id = 0;
plat               44 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c 	plat->mdio_bus_data = devm_kzalloc(&pdev->dev,
plat               45 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c 					   sizeof(*plat->mdio_bus_data),
plat               47 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c 	if (!plat->mdio_bus_data)
plat               54 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c 	plat->dma_cfg = dma_cfg;
plat               63 drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c 				 struct sxgbe_plat_data *plat,
plat               29 drivers/net/ethernet/stmicro/stmmac/chain_mode.c 	if (priv->plat->enh_desc)
plat              166 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c 	clk_disable_unprepare(priv->plat->pclk);
plat              167 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c 	clk_disable_unprepare(priv->plat->stmmac_clk);
plat              491 drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c 	stmmac_remove_config_dt(pdev, priv->plat);
plat               62 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	int (*dwmac_set_phy_interface)(struct mediatek_dwmac_plat_data *plat);
plat               63 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	int (*dwmac_set_delay)(struct mediatek_dwmac_plat_data *plat);
plat               79 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c static int mt2712_set_interface(struct mediatek_dwmac_plat_data *plat)
plat               81 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	int rmii_rxc = plat->rmii_rxc ? RMII_CLK_SRC_RXC : 0;
plat               85 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	switch (plat->phy_mode) {
plat               99 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 		dev_err(plat->dev, "phy interface not supported\n");
plat              103 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	regmap_write(plat->peri_regmap, PERI_ETH_PHY_INTF_SEL, intf_val);
plat              108 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c static void mt2712_delay_ps2stage(struct mediatek_dwmac_plat_data *plat)
plat              110 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	struct mac_delay_struct *mac_delay = &plat->mac_delay;
plat              112 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	switch (plat->phy_mode) {
plat              128 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 		dev_err(plat->dev, "phy interface not supported\n");
plat              133 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c static int mt2712_set_delay(struct mediatek_dwmac_plat_data *plat)
plat              135 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	struct mac_delay_struct *mac_delay = &plat->mac_delay;
plat              138 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	mt2712_delay_ps2stage(plat);
plat              140 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	switch (plat->phy_mode) {
plat              157 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 		if (plat->rmii_rxc) {
plat              196 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 		dev_err(plat->dev, "phy interface not supported\n");
plat              199 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	regmap_write(plat->peri_regmap, PERI_ETH_DLY, delay_val);
plat              200 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	regmap_write(plat->peri_regmap, PERI_ETH_DLY_FINE, fine_val);
plat              215 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c static int mediatek_dwmac_config_dt(struct mediatek_dwmac_plat_data *plat)
plat              217 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	struct mac_delay_struct *mac_delay = &plat->mac_delay;
plat              220 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	plat->peri_regmap = syscon_regmap_lookup_by_phandle(plat->np, "mediatek,pericfg");
plat              221 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	if (IS_ERR(plat->peri_regmap)) {
plat              222 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 		dev_err(plat->dev, "Failed to get pericfg syscon\n");
plat              223 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 		return PTR_ERR(plat->peri_regmap);
plat              226 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	plat->phy_mode = of_get_phy_mode(plat->np);
plat              227 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	if (plat->phy_mode < 0) {
plat              228 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 		dev_err(plat->dev, "not find phy-mode\n");
plat              232 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	if (!of_property_read_u32(plat->np, "mediatek,tx-delay-ps", &tx_delay_ps)) {
plat              233 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 		if (tx_delay_ps < plat->variant->tx_delay_max) {
plat              236 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 			dev_err(plat->dev, "Invalid TX clock delay: %dps\n", tx_delay_ps);
plat              241 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	if (!of_property_read_u32(plat->np, "mediatek,rx-delay-ps", &rx_delay_ps)) {
plat              242 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 		if (rx_delay_ps < plat->variant->rx_delay_max) {
plat              245 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 			dev_err(plat->dev, "Invalid RX clock delay: %dps\n", rx_delay_ps);
plat              250 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	mac_delay->tx_inv = of_property_read_bool(plat->np, "mediatek,txc-inverse");
plat              251 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	mac_delay->rx_inv = of_property_read_bool(plat->np, "mediatek,rxc-inverse");
plat              252 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	plat->rmii_rxc = of_property_read_bool(plat->np, "mediatek,rmii-rxc");
plat              257 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c static int mediatek_dwmac_clk_init(struct mediatek_dwmac_plat_data *plat)
plat              259 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	const struct mediatek_dwmac_variant *variant = plat->variant;
plat              262 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	plat->clks = devm_kcalloc(plat->dev, num, sizeof(*plat->clks), GFP_KERNEL);
plat              263 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	if (!plat->clks)
plat              267 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 		plat->clks[i].id = variant->clk_list[i];
plat              269 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	return devm_clk_bulk_get(plat->dev, num, plat->clks);
plat              274 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	struct mediatek_dwmac_plat_data *plat = priv;
plat              275 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	const struct mediatek_dwmac_variant *variant = plat->variant;
plat              278 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	ret = dma_set_mask_and_coherent(plat->dev, DMA_BIT_MASK(variant->dma_bit_mask));
plat              280 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 		dev_err(plat->dev, "No suitable DMA available, err = %d\n", ret);
plat              284 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	ret = variant->dwmac_set_phy_interface(plat);
plat              286 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 		dev_err(plat->dev, "failed to set phy interface, err = %d\n", ret);
plat              290 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	ret = variant->dwmac_set_delay(plat);
plat              292 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 		dev_err(plat->dev, "failed to set delay value, err = %d\n", ret);
plat              296 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	ret = clk_bulk_prepare_enable(variant->num_clks, plat->clks);
plat              298 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 		dev_err(plat->dev, "failed to enable clks, err = %d\n", ret);
plat              310 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	struct mediatek_dwmac_plat_data *plat = priv;
plat              311 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	const struct mediatek_dwmac_variant *variant = plat->variant;
plat              313 drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c 	clk_bulk_disable_unprepare(variant->num_clks, plat->clks);
plat             1047 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c static int rk_gmac_clk_init(struct plat_stmmacenet_data *plat)
plat             1049 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c 	struct rk_priv_data *bsp_priv = plat->bsp_priv;
plat             1106 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c 	if (plat->phy_node && bsp_priv->integrated_phy) {
plat             1107 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c 		bsp_priv->clk_phy = of_clk_get(plat->phy_node, 0);
plat             1214 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c 					  struct plat_stmmacenet_data *plat,
plat             1278 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c 	if (plat->phy_node) {
plat             1279 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c 		bsp_priv->integrated_phy = of_property_read_bool(plat->phy_node,
plat             1282 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c 			bsp_priv->phy_reset = of_reset_control_get(plat->phy_node, NULL);
plat              236 drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c 	return priv->plat->interface;
plat              441 drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c 	dwmac->stmmac_rst = stpriv->plat->stmmac_rst;
plat              464 drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c 	dwmac_priv->ops->set_phy_mode(priv->plat->bsp_priv);
plat              418 drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c 	struct stm32_dwmac *dwmac = priv->plat->bsp_priv;
plat              420 drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c 	stm32_dwmac_clk_disable(priv->plat->bsp_priv);
plat              464 drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c 	struct stm32_dwmac *dwmac = priv->plat->bsp_priv;
plat              480 drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c 	struct stm32_dwmac *dwmac = priv->plat->bsp_priv;
plat              486 drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c 	ret = stm32_dwmac_init(priv->plat);
plat              712 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c 	struct sunxi_priv_data *gmac = priv->plat->bsp_priv;
plat              758 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c 	struct sunxi_priv_data *gmac = priv->plat->bsp_priv;
plat              815 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c 	struct sunxi_priv_data *gmac = priv->plat->bsp_priv;
plat              859 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c 	struct sunxi_priv_data *gmac = priv->plat->bsp_priv;
plat              872 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c 	struct sunxi_priv_data *gmac = priv->plat->bsp_priv;
plat              898 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c 		ret = of_mdio_parse_addr(priv->device, priv->plat->phy_node);
plat              955 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c 	switch (priv->plat->interface) {
plat              970 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c 			phy_modes(priv->plat->interface));
plat               39 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c 	if (netdev_uses_dsa(dev) || !priv->plat->enh_desc)
plat              542 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c 	mac->multicast_filter_bins = priv->plat->multicast_filter_bins;
plat              543 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c 	mac->unicast_filter_entries = priv->plat->unicast_filter_entries;
plat              923 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c 	mac->multicast_filter_bins = priv->plat->multicast_filter_bins;
plat              924 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c 	mac->unicast_filter_entries = priv->plat->unicast_filter_entries;
plat             1400 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c 	mac->multicast_filter_bins = priv->plat->multicast_filter_bins;
plat             1401 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c 	mac->unicast_filter_entries = priv->plat->unicast_filter_entries;
plat               45 drivers/net/ethernet/stmicro/stmmac/hwif.c 	if (priv->plat->enh_desc) {
plat              220 drivers/net/ethernet/stmicro/stmmac/hwif.c 	bool needs_xgmac = priv->plat->has_xgmac;
plat              221 drivers/net/ethernet/stmicro/stmmac/hwif.c 	bool needs_gmac4 = priv->plat->has_gmac4;
plat              222 drivers/net/ethernet/stmicro/stmmac/hwif.c 	bool needs_gmac = priv->plat->has_gmac;
plat              247 drivers/net/ethernet/stmicro/stmmac/hwif.c 	if (priv->plat->setup) {
plat              248 drivers/net/ethernet/stmicro/stmmac/hwif.c 		mac = priv->plat->setup(priv);
plat               31 drivers/net/ethernet/stmicro/stmmac/ring_mode.c 	if (priv->plat->enh_desc)
plat              186 drivers/net/ethernet/stmicro/stmmac/stmmac.h 	struct plat_stmmacenet_data *plat;
plat              263 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c 	if (priv->plat->has_gmac || priv->plat->has_gmac4)
plat              265 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c 	else if (priv->plat->has_xgmac)
plat              414 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c 	if (priv->plat->has_xgmac)
plat              428 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c 	if (!priv->plat->has_xgmac) {
plat              480 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c 	u32 rx_queues_count = priv->plat->rx_queues_to_use;
plat              481 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c 	u32 tx_queues_count = priv->plat->tx_queues_to_use;
plat              688 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c 	unsigned long clk = clk_get_rate(priv->plat->stmmac_clk);
plat              691 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c 		clk = priv->plat->clk_ref_rate;
plat              701 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c 	unsigned long clk = clk_get_rate(priv->plat->stmmac_clk);
plat              704 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c 		clk = priv->plat->clk_ref_rate;
plat              732 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c 	u32 rx_cnt = priv->plat->rx_queues_to_use;
plat              781 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c 		rxnfc->data = priv->plat->rx_queues_to_use;
plat              841 drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c 				    priv->plat->rx_queues_to_use);
plat              142 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_queues_cnt = priv->plat->rx_queues_to_use;
plat              143 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_queues_cnt = priv->plat->tx_queues_to_use;
plat              163 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_queues_cnt = priv->plat->rx_queues_to_use;
plat              164 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_queues_cnt = priv->plat->tx_queues_to_use;
plat              184 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_queues_cnt = priv->plat->tx_queues_to_use;
plat              197 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_queues_cnt = priv->plat->tx_queues_to_use;
plat              234 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	clk_rate = clk_get_rate(priv->plat->stmmac_clk);
plat              258 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (priv->plat->has_sun8i) {
plat              269 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (priv->plat->has_xgmac) {
plat              330 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_cnt = priv->plat->tx_queues_to_use;
plat              344 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 				priv->plat->en_tx_lpi_clockgating);
plat              483 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (priv->plat->has_gmac4 || priv->plat->has_xgmac)
plat              527 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	xmac = priv->plat->has_gmac4 || priv->plat->has_xgmac;
plat              700 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 				priv->ptpaddr, priv->plat->clk_ptp_rate,
plat              714 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		priv->default_addend = div_u64(temp, priv->plat->clk_ptp_rate);
plat              761 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	bool xmac = priv->plat->has_gmac4 || priv->plat->has_xgmac;
plat              791 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (priv->plat->clk_ptp_ref)
plat              792 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		clk_disable_unprepare(priv->plat->clk_ptp_ref);
plat              803 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_cnt = priv->plat->tx_queues_to_use;
plat              816 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	int tx_cnt = priv->plat->tx_queues_to_use;
plat              817 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	int max_speed = priv->plat->max_speed;
plat              836 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	} else if (priv->plat->has_xgmac) {
plat              922 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (priv->plat->fix_mac_speed)
plat              923 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		priv->plat->fix_mac_speed(priv->plat->bsp_priv, state->speed);
plat              985 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	int interface = priv->plat->interface;
plat             1015 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	node = priv->plat->phylink_node;
plat             1024 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		int addr = priv->plat->phy_addr;
plat             1041 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	struct fwnode_handle *fwnode = of_fwnode_handle(priv->plat->phylink_node);
plat             1042 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	int mode = priv->plat->phy_interface;
plat             1059 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_cnt = priv->plat->rx_queues_to_use;
plat             1081 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_cnt = priv->plat->tx_queues_to_use;
plat             1183 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_queue_cnt = priv->plat->rx_queues_to_use;
plat             1184 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_queue_cnt = priv->plat->tx_queues_to_use;
plat             1297 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_count = priv->plat->rx_queues_to_use;
plat             1370 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_queue_cnt = priv->plat->tx_queues_to_use;
plat             1476 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_count = priv->plat->rx_queues_to_use;
plat             1508 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_count = priv->plat->tx_queues_to_use;
plat             1543 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_count = priv->plat->rx_queues_to_use;
plat             1612 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_count = priv->plat->tx_queues_to_use;
plat             1701 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_queues_count = priv->plat->rx_queues_to_use;
plat             1706 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		mode = priv->plat->rx_queues_cfg[queue].mode_to_use;
plat             1771 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_channels_count = priv->plat->rx_queues_to_use;
plat             1772 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_channels_count = priv->plat->tx_queues_to_use;
plat             1790 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_channels_count = priv->plat->rx_queues_to_use;
plat             1791 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_channels_count = priv->plat->tx_queues_to_use;
plat             1809 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_channels_count = priv->plat->rx_queues_to_use;
plat             1810 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_channels_count = priv->plat->tx_queues_to_use;
plat             1811 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	int rxfifosz = priv->plat->rx_fifo_size;
plat             1812 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	int txfifosz = priv->plat->tx_fifo_size;
plat             1827 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (priv->plat->force_thresh_dma_mode) {
plat             1830 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	} else if (priv->plat->force_sf_dma_mode || priv->plat->tx_coe) {
plat             1848 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		qmode = priv->plat->rx_queues_cfg[chan].mode_to_use;
plat             1857 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		qmode = priv->plat->tx_queues_cfg[chan].mode_to_use;
plat             2022 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u8 rxqmode = priv->plat->rx_queues_cfg[chan].mode_to_use;
plat             2023 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u8 txqmode = priv->plat->tx_queues_cfg[chan].mode_to_use;
plat             2024 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_channels_count = priv->plat->rx_queues_to_use;
plat             2025 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_channels_count = priv->plat->tx_queues_to_use;
plat             2026 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	int rxfifosz = priv->plat->rx_fifo_size;
plat             2027 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	int txfifosz = priv->plat->tx_fifo_size;
plat             2062 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if ((status & handle_rx) && (chan < priv->plat->rx_queues_to_use)) {
plat             2070 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if ((status & handle_tx) && (chan < priv->plat->tx_queues_to_use))
plat             2085 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_channel_count = priv->plat->tx_queues_to_use;
plat             2086 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_channel_count = priv->plat->rx_queues_to_use;
plat             2105 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 				if (priv->plat->force_thresh_dma_mode)
plat             2184 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_channels_count = priv->plat->rx_queues_to_use;
plat             2185 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_channels_count = priv->plat->tx_queues_to_use;
plat             2193 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (!priv->plat->dma_cfg || !priv->plat->dma_cfg->pbl) {
plat             2208 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	stmmac_dma_init(priv, priv->ioaddr, priv->plat->dma_cfg, atds);
plat             2210 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (priv->plat->axi)
plat             2211 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		stmmac_axi(priv, priv->ioaddr, priv->plat->axi);
plat             2215 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		stmmac_init_chan(priv, priv->ioaddr, priv->plat->dma_cfg, chan);
plat             2221 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		stmmac_init_rx_chan(priv, priv->ioaddr, priv->plat->dma_cfg,
plat             2234 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		stmmac_init_tx_chan(priv, priv->ioaddr, priv->plat->dma_cfg,
plat             2286 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_channel_count = priv->plat->tx_queues_to_use;
plat             2302 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_channels_count = priv->plat->rx_queues_to_use;
plat             2303 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_channels_count = priv->plat->tx_queues_to_use;
plat             2324 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_queues_count = priv->plat->tx_queues_to_use;
plat             2329 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		weight = priv->plat->tx_queues_cfg[queue].weight;
plat             2341 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_queues_count = priv->plat->tx_queues_to_use;
plat             2347 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		mode_to_use = priv->plat->tx_queues_cfg[queue].mode_to_use;
plat             2352 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 				priv->plat->tx_queues_cfg[queue].send_slope,
plat             2353 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 				priv->plat->tx_queues_cfg[queue].idle_slope,
plat             2354 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 				priv->plat->tx_queues_cfg[queue].high_credit,
plat             2355 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 				priv->plat->tx_queues_cfg[queue].low_credit,
plat             2367 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_queues_count = priv->plat->rx_queues_to_use;
plat             2372 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		chan = priv->plat->rx_queues_cfg[queue].chan;
plat             2384 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_queues_count = priv->plat->rx_queues_to_use;
plat             2389 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		if (!priv->plat->rx_queues_cfg[queue].use_prio)
plat             2392 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		prio = priv->plat->rx_queues_cfg[queue].prio;
plat             2404 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_queues_count = priv->plat->tx_queues_to_use;
plat             2409 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		if (!priv->plat->tx_queues_cfg[queue].use_prio)
plat             2412 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		prio = priv->plat->tx_queues_cfg[queue].prio;
plat             2424 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_queues_count = priv->plat->rx_queues_to_use;
plat             2430 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		if (priv->plat->rx_queues_cfg[queue].pkt_route == 0x0)
plat             2433 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		packet = priv->plat->rx_queues_cfg[queue].pkt_route;
plat             2440 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (!priv->dma_cap.rssen || !priv->plat->rss_en) {
plat             2451 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			     priv->plat->rx_queues_to_use);
plat             2461 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_queues_count = priv->plat->rx_queues_to_use;
plat             2462 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_queues_count = priv->plat->tx_queues_to_use;
plat             2470 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 				priv->plat->rx_sched_algorithm);
plat             2475 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 				priv->plat->tx_sched_algorithm);
plat             2529 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_cnt = priv->plat->rx_queues_to_use;
plat             2530 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_cnt = priv->plat->tx_queues_to_use;
plat             2547 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		int speed = priv->plat->mac_port_sel_speed;
plat             2570 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		priv->plat->rx_coe = STMMAC_RX_COE_NONE;
plat             2583 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		ret = clk_prepare_enable(priv->plat->clk_ptp_ref);
plat             2634 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	clk_disable_unprepare(priv->plat->clk_ptp_ref);
plat             2752 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	for (chan = 0; chan < priv->plat->tx_queues_to_use; chan++)
plat             2785 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	for (chan = 0; chan < priv->plat->tx_queues_to_use; chan++)
plat             3184 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	enh_desc = priv->plat->enh_desc;
plat             3754 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	int txfifosz = priv->plat->tx_fifo_size;
plat             3759 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	txfifosz /= priv->plat->tx_queues_to_use;
plat             3784 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (priv->plat->rx_coe == STMMAC_RX_COE_NONE)
plat             3787 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (!priv->plat->tx_coe)
plat             3795 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (priv->plat->bugged_jumbo && (dev->mtu > ETH_DATA_LEN))
plat             3799 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if ((priv->plat->tso_en) && (priv->dma_cap.tsoen)) {
plat             3818 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		priv->hw->rx_csum = priv->plat->rx_coe;
plat             3827 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	for (chan = 0; chan < priv->plat->rx_queues_to_use; chan++)
plat             3848 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_cnt = priv->plat->rx_queues_to_use;
plat             3849 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_cnt = priv->plat->tx_queues_to_use;
plat             3854 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	xmac = priv->plat->has_gmac4 || priv->plat->has_xgmac;
plat             3868 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if ((priv->plat->has_gmac) || xmac) {
plat             4067 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_count = priv->plat->rx_queues_to_use;
plat             4068 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_count = priv->plat->tx_queues_to_use;
plat             4368 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (priv->plat->has_sun8i)
plat             4387 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		priv->plat->enh_desc = priv->dma_cap.enh_desc;
plat             4388 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		priv->plat->pmt = priv->dma_cap.pmt_remote_wake_up;
plat             4389 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		priv->hw->pmt = priv->plat->pmt;
plat             4398 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		if (priv->plat->force_thresh_dma_mode)
plat             4399 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			priv->plat->tx_coe = 0;
plat             4401 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			priv->plat->tx_coe = priv->dma_cap.tx_coe;
plat             4404 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		priv->plat->rx_coe = priv->dma_cap.rx_coe;
plat             4407 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			priv->plat->rx_coe = STMMAC_RX_COE_TYPE2;
plat             4409 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			priv->plat->rx_coe = STMMAC_RX_COE_TYPE1;
plat             4415 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (priv->plat->rx_coe) {
plat             4416 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		priv->hw->rx_csum = priv->plat->rx_coe;
plat             4421 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (priv->plat->tx_coe)
plat             4424 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (priv->plat->pmt) {
plat             4445 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	    (priv->plat->has_xgmac)) && (!priv->plat->riwt_off)) {
plat             4486 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	priv->plat = plat_dat;
plat             4515 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		priv->plat->phy_addr = phyaddr;
plat             4517 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (priv->plat->stmmac_rst) {
plat             4518 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		ret = reset_control_assert(priv->plat->stmmac_rst);
plat             4519 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		reset_control_deassert(priv->plat->stmmac_rst);
plat             4524 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			reset_control_reset(priv->plat->stmmac_rst);
plat             4535 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	netif_set_real_num_rx_queues(ndev, priv->plat->rx_queues_to_use);
plat             4536 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	netif_set_real_num_tx_queues(ndev, priv->plat->tx_queues_to_use);
plat             4548 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if ((priv->plat->tso_en) && (priv->dma_cap.tsoen)) {
plat             4595 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	rxq = priv->plat->rx_queues_to_use;
plat             4600 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (priv->dma_cap.rssen && priv->plat->rss_en)
plat             4605 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (priv->plat->has_xgmac)
plat             4607 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	else if ((priv->plat->enh_desc) || (priv->synopsys_id >= DWMAC_CORE_4_00))
plat             4614 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if ((priv->plat->maxmtu < ndev->max_mtu) &&
plat             4615 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	    (priv->plat->maxmtu >= ndev->min_mtu))
plat             4616 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		ndev->max_mtu = priv->plat->maxmtu;
plat             4617 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	else if (priv->plat->maxmtu < ndev->min_mtu)
plat             4620 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			 __func__, priv->plat->maxmtu);
plat             4626 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	maxq = max(priv->plat->rx_queues_to_use, priv->plat->tx_queues_to_use);
plat             4634 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		if (queue < priv->plat->rx_queues_to_use) {
plat             4638 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		if (queue < priv->plat->tx_queues_to_use) {
plat             4653 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (priv->plat->clk_csr >= 0)
plat             4654 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		priv->clk_csr = priv->plat->clk_csr;
plat             4668 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 				__func__, priv->plat->bus_id);
plat             4703 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		if (queue < priv->plat->rx_queues_to_use)
plat             4705 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		if (queue < priv->plat->tx_queues_to_use)
plat             4737 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	if (priv->plat->stmmac_rst)
plat             4738 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		reset_control_assert(priv->plat->stmmac_rst);
plat             4739 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	clk_disable_unprepare(priv->plat->pclk);
plat             4740 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	clk_disable_unprepare(priv->plat->stmmac_clk);
plat             4777 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	for (chan = 0; chan < priv->plat->tx_queues_to_use; chan++)
plat             4797 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		if (priv->plat->clk_ptp_ref)
plat             4798 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			clk_disable_unprepare(priv->plat->clk_ptp_ref);
plat             4799 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		clk_disable_unprepare(priv->plat->pclk);
plat             4800 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		clk_disable_unprepare(priv->plat->stmmac_clk);
plat             4815 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 rx_cnt = priv->plat->rx_queues_to_use;
plat             4816 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 	u32 tx_cnt = priv->plat->tx_queues_to_use;
plat             4863 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		clk_prepare_enable(priv->plat->stmmac_clk);
plat             4864 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		clk_prepare_enable(priv->plat->pclk);
plat             4865 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 		if (priv->plat->clk_ptp_ref)
plat             4866 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c 			clk_prepare_enable(priv->plat->clk_ptp_ref);
plat              170 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c 	if (priv->plat->has_gmac4) {
plat              226 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c 	if (priv->plat->has_gmac4) {
plat              301 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c 	if (!priv->plat->has_gmac4)
plat              317 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c 	struct stmmac_mdio_bus_data *mdio_bus_data = priv->plat->mdio_bus_data;
plat              318 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c 	struct device_node *mdio_node = priv->plat->mdio_node;
plat              334 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c 	if (priv->plat->has_xgmac) {
plat              342 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c 		if (priv->plat->phy_addr > MII_XGMAC_MAX_C22ADDR)
plat              355 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c 		 new_bus->name, priv->plat->bus_id);
plat              366 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c 	if (priv->plat->phy_node || mdio_node)
plat              391 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c 		if (priv->plat->phy_addr == -1)
plat              392 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c 			priv->plat->phy_addr = addr;
plat               35 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	int (*setup)(struct pci_dev *pdev, struct plat_stmmacenet_data *plat);
plat               61 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c static void common_default_data(struct plat_stmmacenet_data *plat)
plat               63 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->clk_csr = 2;	/* clk_csr_i = 20-35MHz & MDC = clk_csr_i/16 */
plat               64 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->has_gmac = 1;
plat               65 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->force_sf_dma_mode = 1;
plat               67 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->mdio_bus_data->needs_reset = true;
plat               68 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->mdio_bus_data->phy_mask = 0;
plat               71 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->multicast_filter_bins = HASH_TABLE_SIZE;
plat               74 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->unicast_filter_entries = 1;
plat               77 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->maxmtu = JUMBO_LEN;
plat               80 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->tx_queues_to_use = 1;
plat               81 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->rx_queues_to_use = 1;
plat               84 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->tx_queues_cfg[0].use_prio = false;
plat               85 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->rx_queues_cfg[0].use_prio = false;
plat               88 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->rx_queues_cfg[0].pkt_route = 0x0;
plat               92 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 			       struct plat_stmmacenet_data *plat)
plat               95 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	common_default_data(plat);
plat               97 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->bus_id = 1;
plat               98 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->phy_addr = 0;
plat               99 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->interface = PHY_INTERFACE_MODE_GMII;
plat              101 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->dma_cfg->pbl = 32;
plat              102 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->dma_cfg->pblx8 = true;
plat              113 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 				  struct plat_stmmacenet_data *plat)
plat              117 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->clk_csr = 5;
plat              118 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->has_gmac = 0;
plat              119 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->has_gmac4 = 1;
plat              120 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->force_sf_dma_mode = 0;
plat              121 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->tso_en = 1;
plat              123 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->rx_sched_algorithm = MTL_RX_ALGORITHM_SP;
plat              125 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	for (i = 0; i < plat->rx_queues_to_use; i++) {
plat              126 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 		plat->rx_queues_cfg[i].mode_to_use = MTL_QUEUE_DCB;
plat              127 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 		plat->rx_queues_cfg[i].chan = i;
plat              130 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 		plat->rx_queues_cfg[i].use_prio = false;
plat              133 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 		plat->rx_queues_cfg[i].pkt_route = 0x0;
plat              136 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	for (i = 0; i < plat->tx_queues_to_use; i++) {
plat              137 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 		plat->tx_queues_cfg[i].mode_to_use = MTL_QUEUE_DCB;
plat              140 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 		plat->tx_queues_cfg[i].use_prio = false;
plat              144 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->tx_fifo_size = plat->tx_queues_to_use * 4096;
plat              145 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->rx_fifo_size = plat->rx_queues_to_use * 4096;
plat              147 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->tx_sched_algorithm = MTL_TX_ALGORITHM_WRR;
plat              148 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->tx_queues_cfg[0].weight = 0x09;
plat              149 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->tx_queues_cfg[1].weight = 0x0A;
plat              150 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->tx_queues_cfg[2].weight = 0x0B;
plat              151 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->tx_queues_cfg[3].weight = 0x0C;
plat              152 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->tx_queues_cfg[4].weight = 0x0D;
plat              153 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->tx_queues_cfg[5].weight = 0x0E;
plat              154 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->tx_queues_cfg[6].weight = 0x0F;
plat              155 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->tx_queues_cfg[7].weight = 0x10;
plat              157 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->mdio_bus_data->phy_mask = 0;
plat              159 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->dma_cfg->pbl = 32;
plat              160 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->dma_cfg->pblx8 = true;
plat              161 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->dma_cfg->fixed_burst = 0;
plat              162 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->dma_cfg->mixed_burst = 0;
plat              163 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->dma_cfg->aal = 0;
plat              165 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->axi = devm_kzalloc(&pdev->dev, sizeof(*plat->axi),
plat              167 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	if (!plat->axi)
plat              170 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->axi->axi_lpi_en = 0;
plat              171 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->axi->axi_xit_frm = 0;
plat              172 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->axi->axi_wr_osr_lmt = 1;
plat              173 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->axi->axi_rd_osr_lmt = 1;
plat              174 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->axi->axi_blen[0] = 4;
plat              175 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->axi->axi_blen[1] = 8;
plat              176 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->axi->axi_blen[2] = 16;
plat              178 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->ptp_max_adj = plat->clk_ptp_rate;
plat              181 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->stmmac_clk = clk_register_fixed_rate(&pdev->dev,
plat              183 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 						   plat->clk_ptp_rate);
plat              185 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	if (IS_ERR(plat->stmmac_clk)) {
plat              187 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 		plat->stmmac_clk = NULL;
plat              189 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	clk_prepare_enable(plat->stmmac_clk);
plat              192 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->multicast_filter_bins = HASH_TABLE_SIZE;
plat              195 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->unicast_filter_entries = 1;
plat              198 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->maxmtu = JUMBO_LEN;
plat              204 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 			   struct plat_stmmacenet_data *plat)
plat              208 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->rx_queues_to_use = 8;
plat              209 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->tx_queues_to_use = 8;
plat              210 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->clk_ptp_rate = 200000000;
plat              211 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	ret = intel_mgbe_common_data(pdev, plat);
plat              219 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 			  struct plat_stmmacenet_data *plat)
plat              221 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->bus_id = 1;
plat              222 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->phy_addr = 0;
plat              223 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->interface = PHY_INTERFACE_MODE_SGMII;
plat              224 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	return ehl_common_data(pdev, plat);
plat              232 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 			  struct plat_stmmacenet_data *plat)
plat              234 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->bus_id = 1;
plat              235 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->phy_addr = 0;
plat              236 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->interface = PHY_INTERFACE_MODE_RGMII;
plat              237 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	return ehl_common_data(pdev, plat);
plat              245 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 			   struct plat_stmmacenet_data *plat)
plat              249 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->rx_queues_to_use = 6;
plat              250 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->tx_queues_to_use = 4;
plat              251 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->clk_ptp_rate = 200000000;
plat              252 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	ret = intel_mgbe_common_data(pdev, plat);
plat              260 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 			  struct plat_stmmacenet_data *plat)
plat              262 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->bus_id = 1;
plat              263 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->phy_addr = 0;
plat              264 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->interface = PHY_INTERFACE_MODE_SGMII;
plat              265 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	return tgl_common_data(pdev, plat);
plat              337 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 			      struct plat_stmmacenet_data *plat)
plat              342 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	common_default_data(plat);
plat              362 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->bus_id = pci_dev_id(pdev);
plat              363 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->phy_addr = ret;
plat              364 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->interface = PHY_INTERFACE_MODE_RMII;
plat              366 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->dma_cfg->pbl = 16;
plat              367 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->dma_cfg->pblx8 = true;
plat              368 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->dma_cfg->fixed_burst = 1;
plat              379 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 				   struct plat_stmmacenet_data *plat)
plat              383 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->clk_csr = 5;
plat              384 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->has_gmac4 = 1;
plat              385 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->force_sf_dma_mode = 1;
plat              386 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->tso_en = 1;
plat              387 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->pmt = 1;
plat              389 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->mdio_bus_data->phy_mask = 0;
plat              392 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->multicast_filter_bins = HASH_TABLE_SIZE;
plat              395 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->unicast_filter_entries = 1;
plat              398 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->maxmtu = JUMBO_LEN;
plat              401 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->tx_queues_to_use = 4;
plat              402 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->rx_queues_to_use = 4;
plat              404 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->tx_sched_algorithm = MTL_TX_ALGORITHM_WRR;
plat              405 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	for (i = 0; i < plat->tx_queues_to_use; i++) {
plat              406 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 		plat->tx_queues_cfg[i].use_prio = false;
plat              407 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 		plat->tx_queues_cfg[i].mode_to_use = MTL_QUEUE_DCB;
plat              408 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 		plat->tx_queues_cfg[i].weight = 25;
plat              411 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->rx_sched_algorithm = MTL_RX_ALGORITHM_SP;
plat              412 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	for (i = 0; i < plat->rx_queues_to_use; i++) {
plat              413 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 		plat->rx_queues_cfg[i].use_prio = false;
plat              414 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 		plat->rx_queues_cfg[i].mode_to_use = MTL_QUEUE_DCB;
plat              415 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 		plat->rx_queues_cfg[i].pkt_route = 0x0;
plat              416 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 		plat->rx_queues_cfg[i].chan = i;
plat              419 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->bus_id = 1;
plat              420 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->phy_addr = -1;
plat              421 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->interface = PHY_INTERFACE_MODE_GMII;
plat              423 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->dma_cfg->pbl = 32;
plat              424 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->dma_cfg->pblx8 = true;
plat              427 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->axi = devm_kzalloc(&pdev->dev, sizeof(*plat->axi), GFP_KERNEL);
plat              428 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	if (!plat->axi)
plat              431 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->axi->axi_wr_osr_lmt = 31;
plat              432 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->axi->axi_rd_osr_lmt = 31;
plat              434 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->axi->axi_fb = false;
plat              435 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->axi->axi_blen[0] = 4;
plat              436 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->axi->axi_blen[1] = 8;
plat              437 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->axi->axi_blen[2] = 16;
plat              438 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->axi->axi_blen[3] = 32;
plat              463 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	struct plat_stmmacenet_data *plat;
plat              468 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat = devm_kzalloc(&pdev->dev, sizeof(*plat), GFP_KERNEL);
plat              469 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	if (!plat)
plat              472 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->mdio_bus_data = devm_kzalloc(&pdev->dev,
plat              473 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 					   sizeof(*plat->mdio_bus_data),
plat              475 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	if (!plat->mdio_bus_data)
plat              478 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	plat->dma_cfg = devm_kzalloc(&pdev->dev, sizeof(*plat->dma_cfg),
plat              480 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	if (!plat->dma_cfg)
plat              503 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	ret = info->setup(pdev, plat);
plat              514 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	return stmmac_dvr_probe(&pdev->dev, plat, &res);
plat              532 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 	if (priv->plat->stmmac_clk)
plat              533 drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c 		clk_unregister_fixed_rate(priv->plat->stmmac_clk);
plat              130 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			    struct plat_stmmacenet_data *plat)
plat              142 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->rx_queues_to_use = 1;
plat              143 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->tx_queues_to_use = 1;
plat              149 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->rx_queues_cfg[0].mode_to_use = MTL_QUEUE_DCB;
plat              150 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->tx_queues_cfg[0].mode_to_use = MTL_QUEUE_DCB;
plat              164 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 				 &plat->rx_queues_to_use))
plat              165 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->rx_queues_to_use = 1;
plat              168 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->rx_sched_algorithm = MTL_RX_ALGORITHM_SP;
plat              170 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->rx_sched_algorithm = MTL_RX_ALGORITHM_WSP;
plat              172 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->rx_sched_algorithm = MTL_RX_ALGORITHM_SP;
plat              176 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		if (queue >= plat->rx_queues_to_use)
plat              180 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			plat->rx_queues_cfg[queue].mode_to_use = MTL_QUEUE_DCB;
plat              182 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			plat->rx_queues_cfg[queue].mode_to_use = MTL_QUEUE_AVB;
plat              184 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			plat->rx_queues_cfg[queue].mode_to_use = MTL_QUEUE_DCB;
plat              187 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 					 &plat->rx_queues_cfg[queue].chan))
plat              188 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			plat->rx_queues_cfg[queue].chan = queue;
plat              192 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 					&plat->rx_queues_cfg[queue].prio)) {
plat              193 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			plat->rx_queues_cfg[queue].prio = 0;
plat              194 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			plat->rx_queues_cfg[queue].use_prio = false;
plat              196 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			plat->rx_queues_cfg[queue].use_prio = true;
plat              201 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			plat->rx_queues_cfg[queue].pkt_route = PACKET_AVCPQ;
plat              203 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			plat->rx_queues_cfg[queue].pkt_route = PACKET_PTPQ;
plat              205 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			plat->rx_queues_cfg[queue].pkt_route = PACKET_DCBCPQ;
plat              207 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			plat->rx_queues_cfg[queue].pkt_route = PACKET_UPQ;
plat              209 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			plat->rx_queues_cfg[queue].pkt_route = PACKET_MCBCQ;
plat              211 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			plat->rx_queues_cfg[queue].pkt_route = 0x0;
plat              215 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	if (queue != plat->rx_queues_to_use) {
plat              223 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 				 &plat->tx_queues_to_use))
plat              224 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->tx_queues_to_use = 1;
plat              227 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->tx_sched_algorithm = MTL_TX_ALGORITHM_WRR;
plat              229 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->tx_sched_algorithm = MTL_TX_ALGORITHM_WFQ;
plat              231 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->tx_sched_algorithm = MTL_TX_ALGORITHM_DWRR;
plat              233 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->tx_sched_algorithm = MTL_TX_ALGORITHM_SP;
plat              235 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->tx_sched_algorithm = MTL_TX_ALGORITHM_SP;
plat              241 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		if (queue >= plat->tx_queues_to_use)
plat              245 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 					 &plat->tx_queues_cfg[queue].weight))
plat              246 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			plat->tx_queues_cfg[queue].weight = 0x10 + queue;
plat              249 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			plat->tx_queues_cfg[queue].mode_to_use = MTL_QUEUE_DCB;
plat              252 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			plat->tx_queues_cfg[queue].mode_to_use = MTL_QUEUE_AVB;
plat              256 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 				&plat->tx_queues_cfg[queue].send_slope))
plat              257 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 				plat->tx_queues_cfg[queue].send_slope = 0x0;
plat              259 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 				&plat->tx_queues_cfg[queue].idle_slope))
plat              260 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 				plat->tx_queues_cfg[queue].idle_slope = 0x0;
plat              262 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 				&plat->tx_queues_cfg[queue].high_credit))
plat              263 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 				plat->tx_queues_cfg[queue].high_credit = 0x0;
plat              265 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 				&plat->tx_queues_cfg[queue].low_credit))
plat              266 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 				plat->tx_queues_cfg[queue].low_credit = 0x0;
plat              268 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			plat->tx_queues_cfg[queue].mode_to_use = MTL_QUEUE_DCB;
plat              272 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 					&plat->tx_queues_cfg[queue].prio)) {
plat              273 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			plat->tx_queues_cfg[queue].prio = 0;
plat              274 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			plat->tx_queues_cfg[queue].use_prio = false;
plat              276 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			plat->tx_queues_cfg[queue].use_prio = true;
plat              281 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	if (queue != plat->tx_queues_to_use) {
plat              320 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c static int stmmac_dt_phy(struct plat_stmmacenet_data *plat,
plat              330 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->mdio_node = of_get_child_by_name(np, "mdio");
plat              336 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		for_each_child_of_node(np, plat->mdio_node) {
plat              337 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			if (of_device_is_compatible(plat->mdio_node,
plat              343 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	if (plat->mdio_node) {
plat              349 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->mdio_bus_data =
plat              352 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		if (!plat->mdio_bus_data)
plat              355 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->mdio_bus_data->needs_reset = true;
plat              399 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	struct plat_stmmacenet_data *plat;
plat              403 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat = devm_kzalloc(&pdev->dev, sizeof(*plat), GFP_KERNEL);
plat              404 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	if (!plat)
plat              415 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->phy_interface = of_get_phy_mode(np);
plat              416 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	if (plat->phy_interface < 0)
plat              417 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		return ERR_PTR(plat->phy_interface);
plat              419 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->interface = stmmac_of_get_mac_mode(np);
plat              420 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	if (plat->interface < 0)
plat              421 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->interface = plat->phy_interface;
plat              425 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->phy_node = of_parse_phandle(np, "phy-handle", 0);
plat              428 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->phylink_node = np;
plat              431 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	if (of_property_read_u32(np, "max-speed", &plat->max_speed))
plat              432 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->max_speed = -1;
plat              434 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->bus_id = of_alias_get_id(np, "ethernet");
plat              435 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	if (plat->bus_id < 0)
plat              436 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->bus_id = 0;
plat              439 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->phy_addr = -1;
plat              444 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->clk_csr = -1;
plat              445 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	of_property_read_u32(np, "clk_csr", &plat->clk_csr);
plat              450 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	if (of_property_read_u32(np, "snps,phy-addr", &plat->phy_addr) == 0)
plat              454 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	rc = stmmac_dt_phy(plat, np, &pdev->dev);
plat              458 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	of_property_read_u32(np, "tx-fifo-depth", &plat->tx_fifo_size);
plat              460 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	of_property_read_u32(np, "rx-fifo-depth", &plat->rx_fifo_size);
plat              462 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->force_sf_dma_mode =
plat              465 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->en_tx_lpi_clockgating =
plat              471 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->maxmtu = JUMBO_LEN;
plat              474 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->multicast_filter_bins = HASH_TABLE_SIZE;
plat              477 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->unicast_filter_entries = 1;
plat              495 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		of_property_read_u32(np, "max-frame-size", &plat->maxmtu);
plat              497 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 				     &plat->multicast_filter_bins);
plat              499 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 				     &plat->unicast_filter_entries);
plat              500 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->unicast_filter_entries = dwmac1000_validate_ucast_entries(
plat              501 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 				&pdev->dev, plat->unicast_filter_entries);
plat              502 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->multicast_filter_bins = dwmac1000_validate_mcast_bins(
plat              503 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 				&pdev->dev, plat->multicast_filter_bins);
plat              504 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->has_gmac = 1;
plat              505 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->pmt = 1;
plat              511 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->has_gmac4 = 1;
plat              512 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->has_gmac = 0;
plat              513 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->pmt = 1;
plat              514 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->tso_en = of_property_read_bool(np, "snps,tso");
plat              519 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->enh_desc = 1;
plat              520 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->bugged_jumbo = 1;
plat              521 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->force_sf_dma_mode = 1;
plat              525 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->has_xgmac = 1;
plat              526 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->pmt = 1;
plat              527 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->tso_en = of_property_read_bool(np, "snps,tso");
plat              533 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		stmmac_remove_config_dt(pdev, plat);
plat              536 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->dma_cfg = dma_cfg;
plat              549 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->force_thresh_dma_mode = of_property_read_bool(np, "snps,force_thresh_dma_mode");
plat              550 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	if (plat->force_thresh_dma_mode) {
plat              551 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->force_sf_dma_mode = 0;
plat              556 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	of_property_read_u32(np, "snps,ps-speed", &plat->mac_port_sel_speed);
plat              558 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->axi = stmmac_axi_setup(pdev);
plat              560 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	rc = stmmac_mtl_setup(pdev, plat);
plat              562 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		stmmac_remove_config_dt(pdev, plat);
plat              568 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->stmmac_clk = devm_clk_get(&pdev->dev,
plat              570 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		if (IS_ERR(plat->stmmac_clk)) {
plat              572 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			plat->stmmac_clk = NULL;
plat              574 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		clk_prepare_enable(plat->stmmac_clk);
plat              577 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->pclk = devm_clk_get(&pdev->dev, "pclk");
plat              578 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	if (IS_ERR(plat->pclk)) {
plat              579 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		if (PTR_ERR(plat->pclk) == -EPROBE_DEFER)
plat              582 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->pclk = NULL;
plat              584 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	clk_prepare_enable(plat->pclk);
plat              587 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->clk_ptp_ref = devm_clk_get(&pdev->dev, "ptp_ref");
plat              588 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	if (IS_ERR(plat->clk_ptp_ref)) {
plat              589 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->clk_ptp_rate = clk_get_rate(plat->stmmac_clk);
plat              590 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->clk_ptp_ref = NULL;
plat              593 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->clk_ptp_rate = clk_get_rate(plat->clk_ptp_ref);
plat              594 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		dev_dbg(&pdev->dev, "PTP rate %d\n", plat->clk_ptp_rate);
plat              597 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	plat->stmmac_rst = devm_reset_control_get(&pdev->dev,
plat              599 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	if (IS_ERR(plat->stmmac_rst)) {
plat              600 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		if (PTR_ERR(plat->stmmac_rst) == -EPROBE_DEFER)
plat              604 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->stmmac_rst = NULL;
plat              607 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	return plat;
plat              610 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	clk_disable_unprepare(plat->pclk);
plat              612 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	clk_disable_unprepare(plat->stmmac_clk);
plat              625 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			     struct plat_stmmacenet_data *plat)
plat              627 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	of_node_put(plat->phy_node);
plat              628 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	of_node_put(plat->mdio_node);
plat              638 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 			     struct plat_stmmacenet_data *plat)
plat              700 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	struct plat_stmmacenet_data *plat = priv->plat;
plat              703 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	if (plat->exit)
plat              704 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		plat->exit(pdev, plat->bsp_priv);
plat              706 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	stmmac_remove_config_dt(pdev, plat);
plat              728 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	if (priv->plat->exit)
plat              729 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		priv->plat->exit(pdev, priv->plat->bsp_priv);
plat              747 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 	if (priv->plat->init)
plat              748 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 		priv->plat->init(pdev, priv->plat->bsp_priv);
plat               17 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h 			     struct plat_stmmacenet_data *plat);
plat               30 drivers/net/ethernet/stmicro/stmmac/stmmac_platform.h 	return priv->plat->bsp_priv;
plat               66 drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c 	xmac = priv->plat->has_gmac4 || priv->plat->has_xgmac;
plat              201 drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c 	if (priv->plat->ptp_max_adj)
plat              202 drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c 		stmmac_ptp_clock_ops.max_adj = priv->plat->ptp_max_adj;
plat              735 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	u32 rx_cnt = priv->plat->rx_queues_to_use;
plat              756 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	pkt_count = priv->plat->rx_fifo_size;
plat             1311 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 				     priv->plat->rx_queues_to_use);
plat             1382 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 				     priv->plat->rx_queues_to_use);
plat             1436 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 				     priv->plat->rx_queues_to_use);
plat             1512 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 				     priv->plat->rx_queues_to_use);
plat             1660 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	u32 chan, tx_cnt = priv->plat->tx_queues_to_use;
plat              312 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c 	u32 tx_queues_count = priv->plat->tx_queues_to_use;
plat              327 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c 	mode_to_use = priv->plat->tx_queues_cfg[queue].mode_to_use;
plat              333 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c 		priv->plat->tx_queues_cfg[queue].mode_to_use = MTL_QUEUE_AVB;
plat              344 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c 	priv->plat->tx_queues_cfg[queue].idle_slope = value & GENMASK(31, 0);
plat              347 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c 	priv->plat->tx_queues_cfg[queue].send_slope = value & GENMASK(31, 0);
plat              350 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c 	priv->plat->tx_queues_cfg[queue].high_credit = value & GENMASK(31, 0);
plat              353 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c 	priv->plat->tx_queues_cfg[queue].low_credit = value & GENMASK(31, 0);
plat              356 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c 				priv->plat->tx_queues_cfg[queue].send_slope,
plat              357 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c 				priv->plat->tx_queues_cfg[queue].idle_slope,
plat              358 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c 				priv->plat->tx_queues_cfg[queue].high_credit,
plat              359 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c 				priv->plat->tx_queues_cfg[queue].low_credit,
plat              171 drivers/net/ethernet/xscale/ixp4xx_eth.c 	struct eth_plat_info *plat;
plat              663 drivers/net/ethernet/xscale/ixp4xx_eth.c 	qmgr_disable_irq(port->plat->rxq);
plat              671 drivers/net/ethernet/xscale/ixp4xx_eth.c 	unsigned int rxq = port->plat->rxq, rxfreeq = RXFREE_QUEUE(port->id);
plat              812 drivers/net/ethernet/xscale/ixp4xx_eth.c 		start = qmgr_stat_below_low_watermark(port->plat->txreadyq);
plat              813 drivers/net/ethernet/xscale/ixp4xx_eth.c 		queue_put_desc(port->plat->txreadyq, phys, desc);
plat              827 drivers/net/ethernet/xscale/ixp4xx_eth.c 	unsigned int txreadyq = port->plat->txreadyq;
plat             1038 drivers/net/ethernet/xscale/ixp4xx_eth.c 	err = qmgr_request_queue(port->plat->rxq, RX_DESCS, 0, 0,
plat             1048 drivers/net/ethernet/xscale/ixp4xx_eth.c 	err = qmgr_request_queue(port->plat->txreadyq, TX_DESCS, 0, 0,
plat             1063 drivers/net/ethernet/xscale/ixp4xx_eth.c 	qmgr_release_queue(port->plat->txreadyq);
plat             1067 drivers/net/ethernet/xscale/ixp4xx_eth.c 	qmgr_release_queue(port->plat->rxq);
plat             1078 drivers/net/ethernet/xscale/ixp4xx_eth.c 	qmgr_release_queue(port->plat->rxq);
plat             1080 drivers/net/ethernet/xscale/ixp4xx_eth.c 	qmgr_release_queue(port->plat->txreadyq);
plat             1191 drivers/net/ethernet/xscale/ixp4xx_eth.c 	msg.byte5 = port->plat->rxq | 0x80;
plat             1192 drivers/net/ethernet/xscale/ixp4xx_eth.c 	msg.byte7 = port->plat->rxq << 4;
plat             1242 drivers/net/ethernet/xscale/ixp4xx_eth.c 		queue_put_desc(port->plat->txreadyq,
plat             1258 drivers/net/ethernet/xscale/ixp4xx_eth.c 	qmgr_set_irq(port->plat->rxq, QUEUE_IRQ_SRC_NOT_EMPTY,
plat             1279 drivers/net/ethernet/xscale/ixp4xx_eth.c 	qmgr_disable_irq(port->plat->rxq);
plat             1295 drivers/net/ethernet/xscale/ixp4xx_eth.c 		while (queue_get_desc(port->plat->rxq, port, 0) >= 0)
plat             1303 drivers/net/ethernet/xscale/ixp4xx_eth.c 			int n = queue_get_desc(port->plat->txreadyq, port, 1);
plat             1328 drivers/net/ethernet/xscale/ixp4xx_eth.c 		while (queue_get_desc(port->plat->txreadyq, port, 1) >= 0)
plat             1370 drivers/net/ethernet/xscale/ixp4xx_eth.c 	struct eth_plat_info *plat = dev_get_platdata(&pdev->dev);
plat             1448 drivers/net/ethernet/xscale/ixp4xx_eth.c 	port->plat = plat;
plat             1450 drivers/net/ethernet/xscale/ixp4xx_eth.c 	memcpy(dev->dev_addr, plat->hwaddr, ETH_ALEN);
plat             1461 drivers/net/ethernet/xscale/ixp4xx_eth.c 		mdio_bus->id, plat->phy);
plat             1474 drivers/net/ethernet/xscale/ixp4xx_eth.c 	printk(KERN_INFO "%s: MII PHY %i on %s\n", dev->name, plat->phy,
plat              258 drivers/net/wan/ixp4xx_hss.c 	struct hss_plat_info *plat;
plat              814 drivers/net/wan/ixp4xx_hss.c 		start = qmgr_stat_below_low_watermark(port->plat->txreadyq);
plat              815 drivers/net/wan/ixp4xx_hss.c 		queue_put_desc(port->plat->txreadyq,
plat              830 drivers/net/wan/ixp4xx_hss.c 	unsigned int txreadyq = port->plat->txreadyq;
plat              932 drivers/net/wan/ixp4xx_hss.c 	err = qmgr_request_queue(port->plat->txreadyq, TX_DESCS, 0, 0,
plat              944 drivers/net/wan/ixp4xx_hss.c 	qmgr_release_queue(port->plat->txreadyq);
plat              962 drivers/net/wan/ixp4xx_hss.c 	qmgr_release_queue(port->plat->txreadyq);
plat             1062 drivers/net/wan/ixp4xx_hss.c 	if (port->plat->open)
plat             1063 drivers/net/wan/ixp4xx_hss.c 		if ((err = port->plat->open(port->id, dev,
plat             1070 drivers/net/wan/ixp4xx_hss.c 		queue_put_desc(port->plat->txreadyq,
plat             1137 drivers/net/wan/ixp4xx_hss.c 		while (queue_get_desc(port->plat->txreadyq, port, 1) >= 0)
plat             1152 drivers/net/wan/ixp4xx_hss.c 	if (port->plat->close)
plat             1153 drivers/net/wan/ixp4xx_hss.c 		port->plat->close(port->id, dev);
plat             1277 drivers/net/wan/ixp4xx_hss.c 		if (port->plat->set_clock)
plat             1278 drivers/net/wan/ixp4xx_hss.c 			clk = port->plat->set_clock(port->id, clk);
plat             1356 drivers/net/wan/ixp4xx_hss.c 	port->plat = pdev->dev.platform_data;
plat             1213 drivers/net/wireless/realtek/rtw88/main.h 	u32 plat:4;
plat             1225 drivers/net/wireless/realtek/rtw88/main.h 	u32 plat:4;
plat              780 drivers/net/wireless/realtek/rtw88/phy.c 	cond.plat = 0x04;
plat               83 drivers/platform/mellanox/mlxreg-hotplug.c 	struct mlxreg_hotplug_platform_data *plat;
plat              998 drivers/power/supply/ab8500_btemp.c 	struct abx500_bm_data *plat = pdev->dev.platform_data;
plat             1010 drivers/power/supply/ab8500_btemp.c 	if (!plat) {
plat             1014 drivers/power/supply/ab8500_btemp.c 	di->bm = plat;
plat             3344 drivers/power/supply/ab8500_charger.c 	struct abx500_bm_data *plat = pdev->dev.platform_data;
plat             3355 drivers/power/supply/ab8500_charger.c 	if (!plat) {
plat             3359 drivers/power/supply/ab8500_charger.c 	di->bm = plat;
plat             3038 drivers/power/supply/ab8500_fg.c 	struct abx500_bm_data *plat = pdev->dev.platform_data;
plat             3050 drivers/power/supply/ab8500_fg.c 	if (!plat) {
plat             3054 drivers/power/supply/ab8500_fg.c 	di->bm = plat;
plat             1989 drivers/power/supply/abx500_chargalg.c 	struct abx500_bm_data *plat = pdev->dev.platform_data;
plat             2000 drivers/power/supply/abx500_chargalg.c 	if (!plat) {
plat             2004 drivers/power/supply/abx500_chargalg.c 	di->bm = plat;
plat              403 drivers/tty/serial/amba-pl011.c 	struct amba_pl011_data *plat = dev_get_platdata(uap->port.dev);
plat              425 drivers/tty/serial/amba-pl011.c 		if (!plat || !plat->dma_filter) {
plat              434 drivers/tty/serial/amba-pl011.c 		chan = dma_request_channel(mask, plat->dma_filter,
plat              435 drivers/tty/serial/amba-pl011.c 						plat->dma_tx_param);
plat              451 drivers/tty/serial/amba-pl011.c 	if (!chan && plat && plat->dma_rx_param) {
plat              452 drivers/tty/serial/amba-pl011.c 		chan = dma_request_channel(mask, plat->dma_filter, plat->dma_rx_param);
plat              489 drivers/tty/serial/amba-pl011.c 		if (plat && plat->dma_rx_poll_enable) {
plat              491 drivers/tty/serial/amba-pl011.c 			if (plat->dma_rx_poll_rate) {
plat              493 drivers/tty/serial/amba-pl011.c 				uap->dmarx.poll_rate = plat->dma_rx_poll_rate;
plat              504 drivers/tty/serial/amba-pl011.c 			if (plat->dma_rx_poll_timeout)
plat              506 drivers/tty/serial/amba-pl011.c 					plat->dma_rx_poll_timeout;
plat              509 drivers/tty/serial/amba-pl011.c 		} else if (!plat && dev->of_node) {
plat             1684 drivers/tty/serial/amba-pl011.c 		struct amba_pl011_data *plat;
plat             1686 drivers/tty/serial/amba-pl011.c 		plat = dev_get_platdata(uap->port.dev);
plat             1687 drivers/tty/serial/amba-pl011.c 		if (plat->init)
plat             1688 drivers/tty/serial/amba-pl011.c 			plat->init();
plat             1889 drivers/tty/serial/amba-pl011.c 		struct amba_pl011_data *plat;
plat             1891 drivers/tty/serial/amba-pl011.c 		plat = dev_get_platdata(uap->port.dev);
plat             1892 drivers/tty/serial/amba-pl011.c 		if (plat->exit)
plat             1893 drivers/tty/serial/amba-pl011.c 			plat->exit();
plat             2318 drivers/tty/serial/amba-pl011.c 		struct amba_pl011_data *plat;
plat             2320 drivers/tty/serial/amba-pl011.c 		plat = dev_get_platdata(uap->port.dev);
plat             2321 drivers/tty/serial/amba-pl011.c 		if (plat->init)
plat             2322 drivers/tty/serial/amba-pl011.c 			plat->init();
plat             1061 drivers/usb/dwc2/core.h 	struct dwc2_hsotg_plat *plat;
plat              142 drivers/usb/dwc2/platform.c 	} else if (hsotg->plat && hsotg->plat->phy_init) {
plat              143 drivers/usb/dwc2/platform.c 		ret = hsotg->plat->phy_init(pdev, hsotg->plat->phy_type);
plat              176 drivers/usb/dwc2/platform.c 	} else if (hsotg->plat && hsotg->plat->phy_exit) {
plat              177 drivers/usb/dwc2/platform.c 		ret = hsotg->plat->phy_exit(pdev, hsotg->plat->phy_type);
plat              272 drivers/usb/dwc2/platform.c 	hsotg->plat = dev_get_platdata(hsotg->dev);
plat              202 drivers/usb/musb/am35x.c 	struct musb_hdrc_platform_data *plat = dev_get_platdata(dev);
plat              203 drivers/usb/musb/am35x.c 	struct omap_musb_board_data *data = plat->board_data;
plat              316 drivers/usb/musb/am35x.c 	struct musb_hdrc_platform_data *plat = dev_get_platdata(dev);
plat              317 drivers/usb/musb/am35x.c 	struct omap_musb_board_data *data = plat->board_data;
plat              331 drivers/usb/musb/am35x.c 	struct musb_hdrc_platform_data *plat = dev_get_platdata(dev);
plat              332 drivers/usb/musb/am35x.c 	struct omap_musb_board_data *data = plat->board_data;
plat              374 drivers/usb/musb/am35x.c 	struct musb_hdrc_platform_data *plat = dev_get_platdata(dev);
plat              375 drivers/usb/musb/am35x.c 	struct omap_musb_board_data *data = plat->board_data;
plat              554 drivers/usb/musb/am35x.c 	struct musb_hdrc_platform_data *plat = dev_get_platdata(dev);
plat              555 drivers/usb/musb/am35x.c 	struct omap_musb_board_data *data = plat->board_data;
plat              570 drivers/usb/musb/am35x.c 	struct musb_hdrc_platform_data *plat = dev_get_platdata(dev);
plat              571 drivers/usb/musb/am35x.c 	struct omap_musb_board_data *data = plat->board_data;
plat             2163 drivers/usb/musb/musb_core.c 	struct musb_hdrc_platform_data *plat = dev_get_platdata(dev);
plat             2168 drivers/usb/musb/musb_core.c 	if (!plat) {
plat             2175 drivers/usb/musb/musb_core.c 	musb = allocate_instance(dev, plat->config, ctrl);
plat             2183 drivers/usb/musb/musb_core.c 	musb->board_set_power = plat->set_power;
plat             2184 drivers/usb/musb/musb_core.c 	musb->min_power = plat->min_power;
plat             2185 drivers/usb/musb/musb_core.c 	musb->ops = plat->platform_ops;
plat             2186 drivers/usb/musb/musb_core.c 	musb->port_mode = plat->mode;
plat             2330 drivers/usb/musb/musb_core.c 	status = musb_core_init(plat->config->multipoint
plat             2354 drivers/usb/musb/musb_core.c 	if (plat->extvbus) {
plat             2365 drivers/usb/musb/musb_core.c 		status = musb_host_setup(musb, plat->power);
plat             2377 drivers/usb/musb/musb_core.c 		status = musb_host_setup(musb, plat->power);
plat              230 drivers/usb/musb/omap2430.c 	struct musb_hdrc_platform_data *plat = dev_get_platdata(dev);
plat              231 drivers/usb/musb/omap2430.c 	struct omap_musb_board_data *data = plat->board_data;
plat              271 drivers/usb/musb/ux500_dma.c 	struct musb_hdrc_platform_data *plat = dev_get_platdata(dev);
plat              283 drivers/usb/musb/ux500_dma.c 	if (!plat) {
plat              288 drivers/usb/musb/ux500_dma.c 	data = plat->board_data;
plat               77 drivers/video/fbdev/mmp/panel/tpo_tj032md01bw.c 	struct tpohvga_plat_data *plat = panel->plat_data;
plat               81 drivers/video/fbdev/mmp/panel/tpo_tj032md01bw.c 		plat->plat_onoff(1);
plat               83 drivers/video/fbdev/mmp/panel/tpo_tj032md01bw.c 		ret = spi_write(plat->spi, init, sizeof(init));
plat               87 drivers/video/fbdev/mmp/panel/tpo_tj032md01bw.c 		ret = spi_write(plat->spi, poweroff, sizeof(poweroff));
plat               91 drivers/video/fbdev/mmp/panel/tpo_tj032md01bw.c 		plat->plat_onoff(0);
plat              312 drivers/w1/masters/ds1wm.c 	struct ds1wm_driver_data *plat = dev_get_platdata(dev);
plat              317 drivers/w1/masters/ds1wm.c 	divisor = ds1wm_find_divisor(plat->clock_rate);
plat              319 drivers/w1/masters/ds1wm.c 		divisor, plat->clock_rate);
plat              322 drivers/w1/masters/ds1wm.c 			plat->clock_rate);
plat              509 drivers/w1/masters/ds1wm.c 	struct ds1wm_driver_data *plat;
plat              535 drivers/w1/masters/ds1wm.c 	plat = dev_get_platdata(&pdev->dev);
plat              536 drivers/w1/masters/ds1wm.c 	if (!plat)
plat              540 drivers/w1/masters/ds1wm.c 	if (plat->bus_shift > 2) {
plat              547 drivers/w1/masters/ds1wm.c 	ds1wm_data->bus_shift = plat->bus_shift;
plat              557 drivers/w1/masters/ds1wm.c 	ds1wm_data->is_hw_big_endian = plat->is_hw_big_endian;
plat              563 drivers/w1/masters/ds1wm.c 	ds1wm_data->int_en_reg_none = (plat->active_high ? DS1WM_INTEN_IAS : 0);
plat              564 drivers/w1/masters/ds1wm.c 	ds1wm_data->reset_recover_delay = plat->reset_recover_delay;
plat              601 drivers/w1/masters/ds1wm.c 		plat->active_high,
plat              602 drivers/w1/masters/ds1wm.c 		plat->reset_recover_delay,
plat              603 drivers/w1/masters/ds1wm.c 		plat->clock_rate,
plat              601 include/linux/acpi.h int acpi_match_platform_list(const struct acpi_platform_list *plat);
plat              258 sound/soc/generic/simple-card.c 	struct device_node *plat = NULL;
plat              283 sound/soc/generic/simple-card.c 	plat = of_get_child_by_name(node, prop);
plat              305 sound/soc/generic/simple-card.c 	ret = asoc_simple_parse_platform(plat, dai_link);
plat              339 sound/soc/generic/simple-card.c 	of_node_put(plat);
plat               70 tools/usb/usbip/libsrc/usbip_device_driver.c 	struct udev_device *plat;
plat               74 tools/usb/usbip/libsrc/usbip_device_driver.c 	plat = udev_device_get_parent(sdev);
plat               75 tools/usb/usbip/libsrc/usbip_device_driver.c 	path = udev_device_get_syspath(plat);
plat              115 tools/usb/usbip/libsrc/usbip_device_driver.c 	name = udev_device_get_sysname(plat);