Home
last modified time | relevance | path

Searched refs:bus_width (Results 1 – 25 of 75) sorted by relevance

123

/drivers/mtd/lpddr/
Dlpddr2_nvm.c85 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 …]
/drivers/memory/
Dmvebu-devbus.c76 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()
/drivers/mmc/core/
Dmmc.c656 static int mmc_compare_ext_csds(struct mmc_card *card, unsigned bus_width) in mmc_compare_ext_csds() argument
661 if (bus_width == MMC_BUS_WIDTH_1) in mmc_compare_ext_csds()
793 unsigned int bus_width) in __mmc_select_powerclass() argument
805 if (bus_width == EXT_CSD_BUS_WIDTH_1) in __mmc_select_powerclass()
813 pwrclass_val = (bus_width <= EXT_CSD_BUS_WIDTH_8) ? in __mmc_select_powerclass()
831 pwrclass_val = (bus_width <= EXT_CSD_BUS_WIDTH_8) ? in __mmc_select_powerclass()
835 pwrclass_val = (bus_width == EXT_CSD_DDR_BUS_WIDTH_8) ? in __mmc_select_powerclass()
845 if (bus_width & (EXT_CSD_BUS_WIDTH_8 | EXT_CSD_DDR_BUS_WIDTH_8)) in __mmc_select_powerclass()
866 u32 bus_width, ext_csd_bits; in mmc_select_powerclass() local
873 bus_width = host->ios.bus_width; in mmc_select_powerclass()
[all …]
Dhost.c310 u32 bus_width; in mmc_of_parse() local
321 if (of_property_read_u32(np, "bus-width", &bus_width) < 0) { in mmc_of_parse()
324 bus_width = 1; in mmc_of_parse()
327 switch (bus_width) { in mmc_of_parse()
338 "Invalid \"bus-width\" value %u!\n", bus_width); in mmc_of_parse()
Dmmc_ops.c623 int mmc_bus_test(struct mmc_card *card, u8 bus_width) in mmc_bus_test() argument
627 if (bus_width == MMC_BUS_WIDTH_8) in mmc_bus_test()
629 else if (bus_width == MMC_BUS_WIDTH_4) in mmc_bus_test()
631 else if (bus_width == MMC_BUS_WIDTH_1) in mmc_bus_test()
Dmmc_ops.h28 int mmc_bus_test(struct mmc_card *card, u8 bus_width);
Ddebugfs.c117 ios->bus_width, 1 << ios->bus_width); in mmc_ios_show()
/drivers/staging/rts5208/
Dsd.c273 u16 blk_cnt, u8 bus_width, u8 *buf, int buf_len, in sd_read_data() argument
305 rtsx_add_cmd(chip, WRITE_REG_CMD, REG_SD_CFG1, 0x03, bus_width); in sd_read_data()
339 u8 *cmd, int cmd_len, u16 byte_cnt, u16 blk_cnt, u8 bus_width, in sd_write_data() argument
380 rtsx_add_cmd(chip, WRITE_REG_CMD, REG_SD_CFG1, 0x03, bus_width); in sd_write_data()
878 static int sd_check_spec(struct rtsx_chip *chip, u8 bus_width) in sd_check_spec() argument
895 retval = sd_read_data(chip, SD_TM_NORMAL_READ, cmd, 5, 8, 1, bus_width, in sd_check_spec()
1024 u8 func_group, u8 func_to_switch, u8 bus_width) in sd_check_switch_mode() argument
1055 retval = sd_read_data(chip, SD_TM_NORMAL_READ, cmd, 5, 64, 1, bus_width, in sd_check_switch_mode()
1120 u8 func_group, u8 func_to_switch, u8 bus_width) in sd_check_switch() argument
1133 func_to_switch, bus_width); in sd_check_switch()
[all …]
/drivers/mmc/host/
Dmxs-mmc.c70 unsigned char bus_width; member
387 ctrl0 = BF_SSP(host->bus_width, CTRL0_BUS_WIDTH) | in mxs_mmc_adtc()
503 if (ios->bus_width == MMC_BUS_WIDTH_8) in mxs_mmc_set_ios()
504 host->bus_width = 2; in mxs_mmc_set_ios()
505 else if (ios->bus_width == MMC_BUS_WIDTH_4) in mxs_mmc_set_ios()
506 host->bus_width = 1; in mxs_mmc_set_ios()
508 host->bus_width = 0; in mxs_mmc_set_ios()
Dsdhci-pxav2.c135 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()
Dsdhci-pltfm.c75 u32 bus_width; in sdhci_get_of_property() local
83 (of_property_read_u32(np, "bus-width", &bus_width) == 0 && in sdhci_get_of_property()
84 bus_width == 1)) in sdhci_get_of_property()
Dsdhci-tegra.c128 static void tegra_sdhci_set_bus_width(struct sdhci_host *host, int bus_width) in tegra_sdhci_set_bus_width() argument
134 (bus_width == MMC_BUS_WIDTH_8)) { in tegra_sdhci_set_bus_width()
139 if (bus_width == MMC_BUS_WIDTH_4) in tegra_sdhci_set_bus_width()
Ds3cmci.h62 int bus_width; member
Dushc.c346 static int ushc_set_bus_width(struct ushc_data *ushc, int bus_width) in ushc_set_bus_width() argument
349 bus_width == 4 ? USHC_HOST_CTRL_4BIT : 0); in ushc_set_bus_width()
380 ushc_set_bus_width(ushc, 1 << ios->bus_width); in ushc_set_ios()
Ddw_mmc-rockchip.c50 if (ios->bus_width == MMC_BUS_WIDTH_8 && in dw_mci_rk3288_set_ios()
Dwbsd.h167 unsigned char bus_width; /* Current bus width */ member
Dtmio_mmc_pio.c763 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4) { in tmio_mmc_start_data()
900 unsigned char bus_width) in tmio_mmc_set_bus_width() argument
902 switch (bus_width) { in tmio_mmc_set_bus_width()
961 tmio_mmc_set_bus_width(host, ios->bus_width); in tmio_mmc_set_ios()
966 tmio_mmc_set_bus_width(host, ios->bus_width); in tmio_mmc_set_ios()
/drivers/block/
Dxsysace.c203 int bus_width; /* 0 := 8 bit; 1 := 16 bit */ member
1012 if (ace->bus_width == ACE_BUS_WIDTH_16) { in ace_setup()
1095 int irq, int bus_width) in ace_alloc() argument
1117 ace->bus_width = bus_width; in ace_alloc()
1155 int bus_width = ACE_BUS_WIDTH_16; /* FIXME: should not be hard coded */ in ace_probe() local
1166 bus_width = ACE_BUS_WIDTH_8; in ace_probe()
1176 return ace_alloc(&dev->dev, id, physaddr, irq, bus_width); in ace_probe()
/drivers/media/platform/exynos4-is/
Dfimc-reg.c591 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()
/drivers/usb/host/
Disp1760-if.c51 u32 bus_width = 0; in of_isp1760_probe() local
81 of_property_read_u32(dp, "bus-width", &bus_width); in of_isp1760_probe()
82 if (bus_width == 16) in of_isp1760_probe()
/drivers/scsi/aic7xxx/
Daic7xxx_core.c173 u_int bus_width);
177 u_int bus_width, u_int ppr_options);
2421 u_int *bus_width, role_t role) in ahc_validate_width() argument
2423 switch (*bus_width) { in ahc_validate_width()
2427 *bus_width = MSG_EXT_WDTR_BUS_16_BIT; in ahc_validate_width()
2432 *bus_width = MSG_EXT_WDTR_BUS_8_BIT; in ahc_validate_width()
2437 *bus_width = min((u_int)tinfo->user.width, *bus_width); in ahc_validate_width()
2439 *bus_width = min((u_int)tinfo->goal.width, *bus_width); in ahc_validate_width()
3081 u_int bus_width) in ahc_construct_wdtr() argument
3084 ahc->msgout_buf + ahc->msgout_index, bus_width); in ahc_construct_wdtr()
[all …]
Daic79xx_core.c147 u_int bus_width);
151 u_int bus_width, u_int ppr_options);
3817 u_int *bus_width, role_t role) in ahd_validate_width() argument
3819 switch (*bus_width) { in ahd_validate_width()
3823 *bus_width = MSG_EXT_WDTR_BUS_16_BIT; in ahd_validate_width()
3828 *bus_width = MSG_EXT_WDTR_BUS_8_BIT; in ahd_validate_width()
3833 *bus_width = min((u_int)tinfo->user.width, *bus_width); in ahd_validate_width()
3835 *bus_width = min((u_int)tinfo->goal.width, *bus_width); in ahd_validate_width()
4639 u_int bus_width) in ahd_construct_wdtr() argument
4642 ahd->msgout_buf + ahd->msgout_index, bus_width); in ahd_construct_wdtr()
[all …]
/drivers/mfd/
Dhtc-egpio.c295 if ((pdata->bus_width != 16) && (pdata->bus_width != 32)) in egpio_probe()
297 ei->bus_shift = fls(pdata->bus_width - 1) - 3; in egpio_probe()
/drivers/media/i2c/
Dsmiapp-pll.h46 uint8_t bus_width; member
/drivers/video/fbdev/via/
Dioctl.h103 unsigned short bus_width; member

123