/Linux-v4.19/drivers/mtd/lpddr/ |
D | lpddr2_nvm.c | 85 int bus_width; member 103 static inline u_int build_mr_cfgmask(u_int bus_width) in build_mr_cfgmask() argument 107 if (bus_width == 0x0004) /* x32 device */ in build_mr_cfgmask() 116 static inline u_int build_sr_ok_datamask(u_int bus_width) in build_sr_ok_datamask() argument 120 if (bus_width == 0x0004) /* x32 device */ in build_sr_ok_datamask() 134 val = map->pfow_base + offset*pcm_data->bus_width; in ow_reg_add() 149 writel_relaxed(build_mr_cfgmask(pcm_data->bus_width) | 0x18, in ow_enable() 164 writel_relaxed(build_mr_cfgmask(pcm_data->bus_width) | 0x18, in ow_disable() 181 u_int sr_ok_datamask = build_sr_ok_datamask(pcm_data->bus_width); in lpddr2_nvm_do_op() 200 if (pcm_data->bus_width == 0x0004) { /* 2x16 devices stacked */ in lpddr2_nvm_do_op() [all …]
|
/Linux-v4.19/drivers/memory/ |
D | mvebu-devbus.c | 76 u32 bus_width; member 127 err = of_property_read_u32(node, "devbus,bus-width", &r->bus_width); in devbus_get_timing_params() 139 if (r->bus_width == 8) in devbus_get_timing_params() 140 r->bus_width = 0; in devbus_get_timing_params() 141 else if (r->bus_width == 16) in devbus_get_timing_params() 142 r->bus_width = 1; in devbus_get_timing_params() 144 dev_err(devbus->dev, "invalid bus width %d\n", r->bus_width); in devbus_get_timing_params() 227 r->bus_width << ORION_DEV_WIDTH_SHIFT | in devbus_orion_set_timing_params() 248 value = r->bus_width << ARMADA_DEV_WIDTH_SHIFT | in devbus_armada_set_timing_params()
|
/Linux-v4.19/drivers/mmc/core/ |
D | mmc.c | 697 static int mmc_compare_ext_csds(struct mmc_card *card, unsigned bus_width) in mmc_compare_ext_csds() argument 702 if (bus_width == MMC_BUS_WIDTH_1) in mmc_compare_ext_csds() 870 unsigned int bus_width) in __mmc_select_powerclass() argument 882 pwrclass_val = (bus_width <= EXT_CSD_BUS_WIDTH_8) ? in __mmc_select_powerclass() 900 pwrclass_val = (bus_width <= EXT_CSD_BUS_WIDTH_8) ? in __mmc_select_powerclass() 904 pwrclass_val = (bus_width == EXT_CSD_DDR_BUS_WIDTH_8) ? in __mmc_select_powerclass() 914 if (bus_width & (EXT_CSD_BUS_WIDTH_8 | EXT_CSD_DDR_BUS_WIDTH_8)) in __mmc_select_powerclass() 935 u32 bus_width, ext_csd_bits; in mmc_select_powerclass() local 942 bus_width = host->ios.bus_width; in mmc_select_powerclass() 944 if (bus_width == MMC_BUS_WIDTH_1) in mmc_select_powerclass() [all …]
|
D | host.c | 179 u32 bus_width, drv_type, cd_debounce_delay_ms; in mmc_of_parse() local 188 if (device_property_read_u32(dev, "bus-width", &bus_width) < 0) { in mmc_of_parse() 191 bus_width = 1; in mmc_of_parse() 194 switch (bus_width) { in mmc_of_parse() 205 "Invalid \"bus-width\" value %u!\n", bus_width); in mmc_of_parse()
|
D | mmc_ops.c | 618 if (ios->bus_width == MMC_BUS_WIDTH_8) { in mmc_send_tuning() 621 } else if (ios->bus_width == MMC_BUS_WIDTH_4) { in mmc_send_tuning() 778 int mmc_bus_test(struct mmc_card *card, u8 bus_width) in mmc_bus_test() argument 782 if (bus_width == MMC_BUS_WIDTH_8) in mmc_bus_test() 784 else if (bus_width == MMC_BUS_WIDTH_4) in mmc_bus_test() 786 else if (bus_width == MMC_BUS_WIDTH_1) in mmc_bus_test()
|
D | debugfs.c | 119 ios->bus_width, 1 << ios->bus_width); in mmc_ios_show()
|
/Linux-v4.19/include/linux/phy/ |
D | phy.h | 72 u32 bus_width; member 174 return phy->attrs.bus_width; in phy_get_bus_width() 176 static inline void phy_set_bus_width(struct phy *phy, int bus_width) in phy_set_bus_width() argument 178 phy->attrs.bus_width = bus_width; in phy_set_bus_width() 310 static inline void phy_set_bus_width(struct phy *phy, int bus_width) in phy_set_bus_width() argument
|
/Linux-v4.19/drivers/dma/ |
D | img-mdc-dma.c | 145 unsigned int bus_width; member 232 if (IS_ALIGNED(dst, mdma->bus_width) && in mdc_list_desc_config() 233 IS_ALIGNED(src, mdma->bus_width)) in mdc_list_desc_config() 234 max_burst = mdma->bus_width * mdma->max_burst_mult; in mdc_list_desc_config() 236 max_burst = mdma->bus_width * (mdma->max_burst_mult - 1); in mdc_list_desc_config() 241 mdc_set_read_width(ldesc, mdma->bus_width); in mdc_list_desc_config() 249 mdc_set_write_width(ldesc, mdma->bus_width); in mdc_list_desc_config() 255 mdc_set_read_width(ldesc, mdma->bus_width); in mdc_list_desc_config() 256 mdc_set_write_width(ldesc, mdma->bus_width); in mdc_list_desc_config() 363 if (width > mchan->mdma->bus_width) in mdc_check_slave_width() [all …]
|
/Linux-v4.19/drivers/mmc/host/ |
D | cavium.c | 827 int clk_period = 0, power_class = 10, bus_width = 0; in cvm_mmc_set_ios() local 855 switch (ios->bus_width) { in cvm_mmc_set_ios() 857 bus_width = 2; in cvm_mmc_set_ios() 860 bus_width = 1; in cvm_mmc_set_ios() 863 bus_width = 0; in cvm_mmc_set_ios() 868 if (ios->bus_width && ios->timing == MMC_TIMING_MMC_DDR52) in cvm_mmc_set_ios() 869 bus_width |= 4; in cvm_mmc_set_ios() 882 FIELD_PREP(MIO_EMM_SWITCH_BUS_WIDTH, bus_width) | in cvm_mmc_set_ios() 952 u32 id, cmd_skew = 0, dat_skew = 0, bus_width = 0; in cvm_mmc_of_parse() local 986 of_property_read_u32(node, "cavium,bus-max-width", &bus_width); in cvm_mmc_of_parse() [all …]
|
D | sdhci-pxav2.c | 135 u32 bus_width; in pxav2_get_mmc_pdata() local 145 of_property_read_u32(np, "bus-width", &bus_width); in pxav2_get_mmc_pdata() 146 if (bus_width == 8) in pxav2_get_mmc_pdata()
|
D | sdhci-pltfm.c | 74 u32 bus_width; in sdhci_get_of_property() local 80 (of_property_read_u32(np, "bus-width", &bus_width) == 0 && in sdhci_get_of_property() 81 bus_width == 1)) in sdhci_get_of_property()
|
D | mxs-mmc.c | 70 unsigned char bus_width; member 394 ctrl0 = BF_SSP(host->bus_width, CTRL0_BUS_WIDTH) | in mxs_mmc_adtc() 513 if (ios->bus_width == MMC_BUS_WIDTH_8) in mxs_mmc_set_ios() 514 host->bus_width = 2; in mxs_mmc_set_ios() 515 else if (ios->bus_width == MMC_BUS_WIDTH_4) in mxs_mmc_set_ios() 516 host->bus_width = 1; in mxs_mmc_set_ios() 518 host->bus_width = 0; in mxs_mmc_set_ios()
|
D | sdhci-xenon.h | 83 unsigned char bus_width; member
|
D | s3cmci.h | 62 int bus_width; member
|
/Linux-v4.19/drivers/staging/rts5208/ |
D | sd.c | 275 u16 blk_cnt, u8 bus_width, u8 *buf, int buf_len, argument 308 rtsx_add_cmd(chip, WRITE_REG_CMD, REG_SD_CFG1, 0x03, bus_width); 344 u8 bus_width, u8 *buf, int buf_len, int timeout) argument 385 rtsx_add_cmd(chip, WRITE_REG_CMD, REG_SD_CFG1, 0x03, bus_width); 1000 static int sd_check_spec(struct rtsx_chip *chip, u8 bus_width) argument 1018 retval = sd_read_data(chip, SD_TM_NORMAL_READ, cmd, 5, 8, 1, bus_width, 1148 u8 func_to_switch, u8 bus_width) argument 1179 retval = sd_read_data(chip, SD_TM_NORMAL_READ, cmd, 5, 64, 1, bus_width, 1254 u8 func_group, u8 func_to_switch, u8 bus_width) argument 1267 func_to_switch, bus_width); [all …]
|
/Linux-v4.19/drivers/usb/isp1760/ |
D | isp1760-if.c | 208 u32 bus_width = 0; in isp1760_plat_probe() local 214 of_property_read_u32(dp, "bus-width", &bus_width); in isp1760_plat_probe() 215 if (bus_width == 16) in isp1760_plat_probe()
|
/Linux-v4.19/include/media/drv-intf/ |
D | renesas-ceu.h | 15 unsigned char bus_width; member
|
/Linux-v4.19/include/linux/ |
D | atmel-mci.h | 28 unsigned int bus_width; member
|
/Linux-v4.19/include/linux/platform_data/ |
D | gpio-htc-egpio.h | 41 int bus_width; member
|
/Linux-v4.19/drivers/staging/greybus/ |
D | sdio.c | 592 u8 bus_width; in gb_mmc_set_ios() local 626 switch (ios->bus_width) { in gb_mmc_set_ios() 628 bus_width = GB_SDIO_BUS_WIDTH_1; in gb_mmc_set_ios() 632 bus_width = GB_SDIO_BUS_WIDTH_4; in gb_mmc_set_ios() 635 bus_width = GB_SDIO_BUS_WIDTH_8; in gb_mmc_set_ios() 638 request.bus_width = bus_width; in gb_mmc_set_ios()
|
/Linux-v4.19/drivers/block/ |
D | xsysace.c | 203 int bus_width; /* 0 := 8 bit; 1 := 16 bit */ member 1013 if (ace->bus_width == ACE_BUS_WIDTH_16) { in ace_setup() 1096 int irq, int bus_width) in ace_alloc() argument 1118 ace->bus_width = bus_width; in ace_alloc() 1156 int bus_width = ACE_BUS_WIDTH_16; /* FIXME: should not be hard coded */ in ace_probe() local 1167 bus_width = ACE_BUS_WIDTH_8; in ace_probe() 1177 return ace_alloc(&dev->dev, id, physaddr, irq, bus_width); in ace_probe()
|
/Linux-v4.19/drivers/gpu/drm/stm/ |
D | ltdc.h | 18 u32 bus_width; /* bus width (32 or 64 bits) */ member
|
/Linux-v4.19/drivers/dma/xilinx/ |
D | zynqmp_dma.c | 239 u32 bus_width; member 886 chan->bus_width = ZYNQMP_DMA_BUS_WIDTH_64; in zynqmp_dma_chan_probe() 889 err = of_property_read_u32(node, "xlnx,bus-width", &chan->bus_width); in zynqmp_dma_chan_probe() 895 if (chan->bus_width != ZYNQMP_DMA_BUS_WIDTH_64 && in zynqmp_dma_chan_probe() 896 chan->bus_width != ZYNQMP_DMA_BUS_WIDTH_128) { in zynqmp_dma_chan_probe() 1085 p->dst_addr_widths = BIT(zdev->chan->bus_width / 8); in zynqmp_dma_probe() 1086 p->src_addr_widths = BIT(zdev->chan->bus_width / 8); in zynqmp_dma_probe()
|
/Linux-v4.19/drivers/edac/ |
D | fsl_ddr_edac.c | 277 u32 bus_width; in fsl_mc_check() local 304 bus_width = (ddr_in32(pdata->mc_vbase + FSL_MC_DDR_SDRAM_CFG) & in fsl_mc_check() 306 if (bus_width == 64) in fsl_mc_check() 329 if ((err_detect & DDR_EDE_SBE) && (bus_width == 64)) { in fsl_mc_check()
|
/Linux-v4.19/drivers/media/platform/exynos4-is/ |
D | fimc-reg.c | 591 u16 bus_width; member 606 u32 bus_width, cfg = 0; in fimc_hw_set_camera_source() local 615 bus_width = pix_desc[i].bus_width; in fimc_hw_set_camera_source() 628 if (bus_width == 8) in fimc_hw_set_camera_source() 630 else if (bus_width == 16) in fimc_hw_set_camera_source()
|