Home
last modified time | relevance | path

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

123

/linux/drivers/media/platform/mediatek/mdp3/
H A Dmtk-img-ipi.h122 #define CFG_CHECK(plat, p_id) ((plat) == (p_id)) argument
124 #define _CFG_OFST(plat, cfg, ofst) ((void *)(&((cfg)->config_##plat) + (ofst))) argument
125 #define CFG_OFST(plat, cfg, ofst) \ argument
126 (IS_ERR_OR_NULL(cfg) ? NULL : _CFG_OFST(plat, cfg, ofst))
128 #define _CFG_ADDR(plat, cfg, mem) (&((cfg)->config_##plat.mem)) argument
129 #define CFG_ADDR(plat, cfg, mem) \ argument
130 (IS_ERR_OR_NULL(cfg) ? NULL : _CFG_ADDR(plat, cfg, mem))
132 #define _CFG_GET(plat, cfg, mem) ((cfg)->config_##plat.mem) argument
133 #define CFG_GET(plat, cfg, mem) \ argument
134 (IS_ERR_OR_NULL(cfg) ? 0 : _CFG_GET(plat, cfg, mem))
[all …]
/linux/drivers/mtd/maps/
H A Dsa1100-flash.c31 struct flash_platform_data *plat; member
50 subdev->plat->set_vpp(1); in sa1100_set_vpp()
53 subdev->plat->set_vpp(0); in sa1100_set_vpp()
99 if (subdev->plat->set_vpp) in sa1100_probe_subdev()
116 subdev->mtd = do_map_probe(subdev->plat->map_name, &subdev->map); in sa1100_probe_subdev()
134 static void sa1100_destroy(struct sa_info *info, struct flash_platform_data *plat) in sa1100_destroy() argument
148 if (plat->exit) in sa1100_destroy()
149 plat->exit(); in sa1100_destroy()
153 struct flash_platform_data *plat) in sa1100_setup_mtd() argument
179 if (plat->init) { in sa1100_setup_mtd()
[all …]
/linux/drivers/input/keyboard/
H A Dtc3589x-keypad.c325 struct tc3589x_keypad_platform_data *plat; in tc3589x_keypad_of_probe() local
332 plat = devm_kzalloc(dev, sizeof(*plat), GFP_KERNEL); in tc3589x_keypad_of_probe()
333 if (!plat) in tc3589x_keypad_of_probe()
338 plat->kcol = (u8) cols; in tc3589x_keypad_of_probe()
339 plat->krow = (u8) rows; in tc3589x_keypad_of_probe()
340 if (!plat->krow || !plat->kcol || in tc3589x_keypad_of_probe()
341 plat->krow > TC_KPD_ROWS || plat->kcol > TC_KPD_COLUMNS) { in tc3589x_keypad_of_probe()
344 plat->kcol, plat->krow); in tc3589x_keypad_of_probe()
353 plat->no_autorepeat = of_property_read_bool(np, "linux,no-autorepeat"); in tc3589x_keypad_of_probe()
355 plat->enable_wakeup = of_property_read_bool(np, "wakeup-source") || in tc3589x_keypad_of_probe()
[all …]
/linux/drivers/net/ethernet/broadcom/
H A Dbgmac-platform.c38 return readl(bgmac->plat.base + offset); in platform_bgmac_read()
43 writel(value, bgmac->plat.base + offset); in platform_bgmac_write()
48 return readl(bgmac->plat.idm_base + offset); in platform_bgmac_idm_read()
53 writel(value, bgmac->plat.idm_base + offset); in platform_bgmac_idm_write()
58 if (!bgmac->plat.idm_base) in platform_bgmac_clk_enabled()
72 if (!bgmac->plat.idm_base) in platform_bgmac_clk_enable()
123 if (!bgmac->plat.nicpm_base) in bgmac_nicpm_speed_set()
128 bgmac->plat.nicpm_base + NICPM_PADRING_CFG); in bgmac_nicpm_speed_set()
146 writel(val, bgmac->plat.nicpm_base + NICPM_IOMUX_CTRL); in bgmac_nicpm_speed_set()
155 if (bgmac->plat.nicpm_base) in platform_phy_connect()
[all …]
/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_main.c265 u32 rx_queues_cnt = priv->plat->rx_queues_to_use; in __stmmac_disable_all_queues()
266 u32 tx_queues_cnt = priv->plat->tx_queues_to_use; in __stmmac_disable_all_queues()
292 u32 rx_queues_cnt = priv->plat->rx_queues_to_use; in stmmac_disable_all_queues()
314 u32 rx_queues_cnt = priv->plat->rx_queues_to_use; in stmmac_enable_all_queues()
315 u32 tx_queues_cnt = priv->plat->tx_queues_to_use; in stmmac_enable_all_queues()
388 u32 tx_cnt = priv->plat->tx_queues_to_use; in stmmac_eee_tx_busy()
483 ns -= priv->plat->cdc_error_adj; in stmmac_get_tx_hwtstamp()
513 if (dwmac_is_xmac(priv->plat->core_type)) in stmmac_get_rx_hwtstamp()
520 ns -= priv->plat->cdc_error_adj; in stmmac_get_rx_hwtstamp()
533 bool xmac = dwmac_is_xmac(priv->plat->core_type); in stmmac_update_subsecond_increment()
[all …]
H A Dstmmac_tc.c335 u32 tx_queues_count = priv->plat->tx_queues_to_use; in tc_setup_cbs()
375 mode_to_use = priv->plat->tx_queues_cfg[queue].mode_to_use; in tc_setup_cbs()
381 priv->plat->tx_queues_cfg[queue].mode_to_use = MTL_QUEUE_AVB; in tc_setup_cbs()
388 priv->plat->tx_queues_cfg[queue].mode_to_use = MTL_QUEUE_DCB; in tc_setup_cbs()
394 priv->plat->tx_queues_cfg[queue].idle_slope = value & GENMASK(31, 0); in tc_setup_cbs()
397 priv->plat->tx_queues_cfg[queue].send_slope = value & GENMASK(31, 0); in tc_setup_cbs()
400 priv->plat->tx_queues_cfg[queue].high_credit = value & GENMASK(31, 0); in tc_setup_cbs()
403 priv->plat->tx_queues_cfg[queue].low_credit = value & GENMASK(31, 0); in tc_setup_cbs()
406 priv->plat->tx_queues_cfg[queue].send_slope, in tc_setup_cbs()
407 priv->plat->tx_queues_cfg[queue].idle_slope, in tc_setup_cbs()
[all …]
/linux/drivers/mtd/nand/raw/
H A Dgpio.c35 struct gpio_nand_platdata plat; member
186 struct gpio_nand_platdata *plat) in gpio_nand_get_config_of() argument
195 plat->options |= NAND_BUSWIDTH_16; in gpio_nand_get_config_of()
203 plat->chip_delay = val; in gpio_nand_get_config_of()
229 struct gpio_nand_platdata *plat) in gpio_nand_get_config_of() argument
242 struct gpio_nand_platdata *plat) in gpio_nand_get_config() argument
244 int ret = gpio_nand_get_config_of(dev, plat); in gpio_nand_get_config()
250 memcpy(plat, dev_get_platdata(dev), sizeof(*plat)); in gpio_nand_get_config()
314 ret = gpio_nand_get_config(dev, &gpiomtd->plat); in gpio_nand_probe()
352 chip->options = gpiomtd->plat.options; in gpio_nand_probe()
[all …]
H A Dtxx9ndfmc.c85 struct txx9ndfmc_platform_data *plat = dev_get_platdata(&dev->dev); in ndregaddr() local
87 return drvdata->base + (reg << plat->shift); in ndregaddr()
135 struct txx9ndfmc_platform_data *plat = dev_get_platdata(&dev->dev); in txx9ndfmc_cmd_ctrl() local
153 if (plat->flags & NDFMC_PLAT_FLAG_DUMMYWRITE) { in txx9ndfmc_cmd_ctrl()
221 struct txx9ndfmc_platform_data *plat = dev_get_platdata(&dev->dev); in txx9ndfmc_initialize() local
225 if (plat->flags & NDFMC_PLAT_FLAG_NO_RSTR) in txx9ndfmc_initialize()
244 (plat->flags & NDFMC_PLAT_FLAG_USE_BSPRT) ? in txx9ndfmc_initialize()
281 struct txx9ndfmc_platform_data *plat = dev_get_platdata(&dev->dev); in txx9ndfmc_probe() local
285 unsigned long gbusclk = plat->gbus_clock; in txx9ndfmc_probe()
294 hold = plat->hold ?: 20; /* tDH */ in txx9ndfmc_probe()
[all …]
/linux/drivers/usb/typec/
H A Danx7411.c1464 struct anx7411_data *plat; in anx7411_i2c_probe() local
1471 plat = devm_kzalloc(dev, sizeof(*plat), GFP_KERNEL); in anx7411_i2c_probe()
1472 if (!plat) in anx7411_i2c_probe()
1475 plat->tcpc_client = client; in anx7411_i2c_probe()
1476 i2c_set_clientdata(client, plat); in anx7411_i2c_probe()
1478 mutex_init(&plat->lock); in anx7411_i2c_probe()
1480 ret = anx7411_register_i2c_dummy_clients(plat, client); in anx7411_i2c_probe()
1486 ret = anx7411_typec_switch_probe(plat, dev); in anx7411_i2c_probe()
1492 ret = anx7411_typec_port_probe(plat, dev); in anx7411_i2c_probe()
1499 plat->intp_irq = client->irq; in anx7411_i2c_probe()
[all …]
/linux/sound/soc/ux500/
H A DMakefile4 snd-soc-ux500-plat-msp-i2s-y := ux500_msp_dai.o ux500_msp_i2s.o
5 obj-$(CONFIG_SND_SOC_UX500_PLAT_MSP_I2S) += snd-soc-ux500-plat-msp-i2s.o
7 snd-soc-ux500-plat-dma-y := ux500_pcm.o
8 obj-$(CONFIG_SND_SOC_UX500_PLAT_DMA) += snd-soc-ux500-plat-dma.o
/linux/drivers/video/fbdev/mmp/panel/
H A Dtpo_tj032md01bw.c77 struct tpohvga_plat_data *plat = panel->plat_data; in tpohvga_onoff() local
81 plat->plat_onoff(1); in tpohvga_onoff()
83 ret = spi_write(plat->spi, init, sizeof(init)); in tpohvga_onoff()
87 ret = spi_write(plat->spi, poweroff, sizeof(poweroff)); in tpohvga_onoff()
91 plat->plat_onoff(0); in tpohvga_onoff()
/linux/arch/powerpc/boot/
H A DMakefile155 src-plat-y := of.c epapr.c
156 src-plat-$(CONFIG_44x) += treeboot-ebony.c cuboot-ebony.c treeboot-bamboo.c \
164 src-plat-$(CONFIG_PPC_8xx) += cuboot-8xx.c fixed-head.S ep88xc.c redboot-8xx.c
165 src-plat-$(CONFIG_PPC_MPC52xx) += cuboot-52xx.c
166 src-plat-$(CONFIG_PPC_82xx) += cuboot-pq2.c fixed-head.S ep8248e.c cuboot-824x.c
167 src-plat-$(CONFIG_PPC_83xx) += cuboot-83xx.c fixed-head.S redboot-83xx.c
168 src-plat-$(CONFIG_FSL_SOC_BOOKE) += cuboot-85xx.c cuboot-85xx-cpm2.c
169 src-plat-$(CONFIG_EMBEDDED6xx) += cuboot-pq2.c \
173 src-plat-$(CONFIG_AMIGAONE) += cuboot-amigaone.c
174 src-plat-$(CONFIG_PPC_PS3) += ps3-head.S ps3-hvcall.S ps3.c
[all …]
/linux/Documentation/arch/arm/samsung/
H A Doverview.rst38 plat-samsung provides the base for all the implementations, and is the
43 plat-s5p is for s5p specific builds, and contains common support for the
51 The old plat-s3c and plat-s5pc1xx directories have been removed, with
52 support moved to either plat-samsung or plat-s5p as necessary. These moves
/linux/drivers/watchdog/
H A Dsimatic-ipc-wdt.c151 struct simatic_ipc_platform *plat = pdev->dev.platform_data; in simatic_ipc_wdt_probe() local
156 switch (plat->devmode) { in simatic_ipc_wdt_probe()
191 if (plat->devmode == SIMATIC_IPC_DEVICE_427E) { in simatic_ipc_wdt_probe()
208 wdd_data.bootstatus = wd_setup(plat->devmode); in simatic_ipc_wdt_probe()
212 if (plat->devmode == SIMATIC_IPC_DEVICE_227E) in simatic_ipc_wdt_probe()
/linux/tools/usb/usbip/libsrc/
H A Dusbip_device_driver.c70 struct udev_device *plat; in read_usb_vudc_device() local
74 plat = udev_device_get_parent(sdev); in read_usb_vudc_device()
75 path = udev_device_get_syspath(plat); in read_usb_vudc_device()
115 name = udev_device_get_sysname(plat); in read_usb_vudc_device()
/linux/drivers/acpi/
H A Dutils.c1057 int acpi_match_platform_list(const struct acpi_platform_list *plat) in acpi_match_platform_list() argument
1065 for (; plat->oem_id[0]; plat++, idx++) { in acpi_match_platform_list()
1066 if (ACPI_FAILURE(acpi_get_table_header(plat->table, 0, &hdr))) in acpi_match_platform_list()
1069 if (strncmp(plat->oem_id, hdr.oem_id, ACPI_OEM_ID_SIZE)) in acpi_match_platform_list()
1072 if (strncmp(plat->oem_table_id, hdr.oem_table_id, ACPI_OEM_TABLE_ID_SIZE)) in acpi_match_platform_list()
1075 if ((plat->pred == all_versions) || in acpi_match_platform_list()
1076 (plat->pred == less_than_or_equal && hdr.oem_revision <= plat->oem_revision) || in acpi_match_platform_list()
1077 (plat->pred == greater_than_or_equal && hdr.oem_revision >= plat->oem_revision) || in acpi_match_platform_list()
1078 (plat->pred == equal && hdr.oem_revision == plat->oem_revision)) in acpi_match_platform_list()
/linux/drivers/net/ethernet/samsung/sxgbe/
H A Dsxgbe_mdio.c199 struct sxgbe_mdio_bus_data *mdio_data = priv->plat->mdio_bus_data; in sxgbe_mdio_register()
224 mdio_bus->name, priv->plat->bus_id); in sxgbe_mdio_register()
255 if (priv->plat->phy_addr == -1) in sxgbe_mdio_register()
256 priv->plat->phy_addr = phy_addr; in sxgbe_mdio_register()
258 act = (priv->plat->phy_addr == phy_addr); in sxgbe_mdio_register()
H A Dsxgbe_main.c270 int phy_iface = priv->plat->interface; in sxgbe_init_phy()
277 if (priv->plat->phy_bus_name) in sxgbe_init_phy()
279 priv->plat->phy_bus_name, priv->plat->bus_id); in sxgbe_init_phy()
282 priv->plat->bus_id); in sxgbe_init_phy()
285 priv->plat->phy_addr); in sxgbe_init_phy()
702 if (likely(priv->plat->force_sf_dma_mode)) { in sxgbe_mtl_operation_mode()
714 } else if (unlikely(priv->plat->force_thresh_dma_mode)) { in sxgbe_mtl_operation_mode()
958 if (priv->plat->dma_cfg) { in sxgbe_init_dma_engine()
959 pbl = priv->plat->dma_cfg->pbl; in sxgbe_init_dma_engine()
960 fixed_burst = priv->plat->dma_cfg->fixed_burst; in sxgbe_init_dma_engine()
[all …]
/linux/drivers/usb/dwc2/
H A Dplatform.c118 } else if (hsotg->plat && hsotg->plat->phy_init) { in __dwc2_lowlevel_hw_enable()
119 ret = hsotg->plat->phy_init(pdev, hsotg->plat->phy_type); in __dwc2_lowlevel_hw_enable()
171 } else if (hsotg->plat && hsotg->plat->phy_exit) { in __dwc2_lowlevel_hw_disable()
172 ret = hsotg->plat->phy_exit(pdev, hsotg->plat->phy_type); in __dwc2_lowlevel_hw_disable()
269 hsotg->plat = dev_get_platdata(hsotg->dev); in dwc2_lowlevel_hw_init()
/linux/drivers/dma/ti/
H A Domap-dma.c47 struct omap_system_dma_plat_info *plat; member
417 c->channel_base = od->base + od->plat->channel_stride * lch; in omap_dma_assign()
427 if (__dma_omap15xx(od->plat->dma_attr)) in omap_dma_start()
496 if (od->plat->errata & DMA_ERRATA_i541 && val & CCR_TRIGGER_SRC) { in omap_dma_stop()
525 if (!__dma_omap15xx(od->plat->dma_attr) && c->cyclic) { in omap_dma_stop()
743 if (__dma_omap16xx(od->plat->dma_attr)) { in omap_dma_alloc_chan_resources()
754 if (od->plat->errata & DMA_ERRATA_IFRAME_BUFFERING) in omap_dma_alloc_chan_resources()
829 if (val == 0 && od->plat->errata & DMA_ERRATA_3_3) in omap_dma_chan_read_3_3()
840 if (__dma_omap15xx(od->plat->dma_attr)) { in omap_dma_get_src_pos()
866 if (__dma_omap15xx(od->plat->dma_attr)) { in omap_dma_get_dst_pos()
[all …]
/linux/sound/soc/loongson/
H A DMakefile6 snd-soc-loongson-i2s-plat-y := loongson_i2s_plat.o
7 obj-$(CONFIG_SND_SOC_LOONGSON_I2S_PLATFORM) += snd-soc-loongson-i2s-plat.o snd-soc-loongson-i2s.o
/linux/drivers/tty/serial/
H A Damba-pl011.c402 struct amba_pl011_data *plat = dev_get_platdata(uap->port.dev); in pl011_dma_probe() local
424 if (!plat || !plat->dma_filter) { in pl011_dma_probe()
433 chan = dma_request_channel(mask, plat->dma_filter, in pl011_dma_probe()
434 plat->dma_tx_param); in pl011_dma_probe()
450 if (IS_ERR(chan) && plat && plat->dma_rx_param) { in pl011_dma_probe()
451 chan = dma_request_channel(mask, plat->dma_filter, plat->dma_rx_param); in pl011_dma_probe()
488 if (plat && plat->dma_rx_poll_enable) { in pl011_dma_probe()
490 if (plat->dma_rx_poll_rate) { in pl011_dma_probe()
492 uap->dmarx.poll_rate = plat->dma_rx_poll_rate; in pl011_dma_probe()
503 if (plat->dma_rx_poll_timeout) in pl011_dma_probe()
[all …]
/linux/arch/mips/kernel/
H A Dcpu-r3k-probe.c58 static inline void set_elf_platform(int cpu, const char *plat) in set_elf_platform() argument
61 __elf_platform = plat; in set_elf_platform()
/linux/Documentation/arch/arm/spear/
H A Doverview.rst49 SPEAr13xx) are located in the platform code contained in arch/arm/plat-spear
50 with headers in plat/.
/linux/drivers/i2c/busses/
H A Di2c-pxa.c1278 struct i2c_pxa_platform_data *plat = dev_get_platdata(&pdev->dev); in i2c_pxa_probe_pdata() local
1282 if (plat) { in i2c_pxa_probe_pdata()
1283 i2c->use_pio = plat->use_pio; in i2c_pxa_probe_pdata()
1284 i2c->fast_mode = plat->fast_mode; in i2c_pxa_probe_pdata()
1285 i2c->high_mode = plat->high_mode; in i2c_pxa_probe_pdata()
1286 i2c->master_code = plat->master_code; in i2c_pxa_probe_pdata()
1289 i2c->rate = plat->rate; in i2c_pxa_probe_pdata()
1421 struct i2c_pxa_platform_data *plat = dev_get_platdata(&dev->dev); in i2c_pxa_probe() local
1492 if (plat) { in i2c_pxa_probe()
1493 i2c->adap.class = plat->class; in i2c_pxa_probe()

123