Searched refs:bus_width (Results 1 - 107 of 107) sorted by relevance

/linux-4.1.27/include/linux/
H A Datmel-mci.h11 * @bus_width: Number of data lines wired up the slot
17 * If a given slot is not present on the board, @bus_width should be
27 unsigned int bus_width; member in struct:mci_slot_pdata
/linux-4.1.27/drivers/mtd/lpddr/
H A Dlpddr2_nvm.c81 * &bus_width: memory bus-width (eg: x16 2 Bytes, x32 4 Bytes)
85 int bus_width; member in struct:pcm_int_data
103 static inline u_int build_mr_cfgmask(u_int bus_width) build_mr_cfgmask() argument
107 if (bus_width == 0x0004) /* x32 device */ build_mr_cfgmask()
116 static inline u_int build_sr_ok_datamask(u_int bus_width) build_sr_ok_datamask() argument
120 if (bus_width == 0x0004) /* x32 device */ build_sr_ok_datamask()
134 val = map->pfow_base + offset*pcm_data->bus_width; ow_reg_add()
149 writel_relaxed(build_mr_cfgmask(pcm_data->bus_width) | 0x18, ow_enable()
164 writel_relaxed(build_mr_cfgmask(pcm_data->bus_width) | 0x18, ow_disable()
181 u_int sr_ok_datamask = build_sr_ok_datamask(pcm_data->bus_width); lpddr2_nvm_do_op()
200 if (pcm_data->bus_width == 0x0004) { /* 2x16 devices stacked */ lpddr2_nvm_do_op()
222 if (pcm_data->bus_width == 0x0004) /* 2x16 devices stacked */ lpddr2_nvm_do_op()
229 if (pcm_data->bus_width == 0x0004) {/* 2x16 devices stacked */ lpddr2_nvm_do_op()
347 if (pcm_data->bus_width == 0x0004) {/* 2x16 devices */ lpddr2_nvm_write()
356 add += pcm_data->bus_width; lpddr2_nvm_write()
357 tot_len += pcm_data->bus_width; lpddr2_nvm_write()
427 pcm_data->bus_width = BUS_WIDTH; lpddr2_nvm_probe()
447 .bankwidth = pcm_data->bus_width / 2, lpddr2_nvm_probe()
467 .erasesize = ERASE_BLOCKSIZE * pcm_data->bus_width, lpddr2_nvm_probe()
469 .writebufsize = WRITE_BUFFSIZE * pcm_data->bus_width, lpddr2_nvm_probe()
/linux-4.1.27/drivers/memory/
H A Dmvebu-devbus.c76 u32 bus_width; member in struct:devbus_read_params
127 err = of_property_read_u32(node, "devbus,bus-width", &r->bus_width); devbus_get_timing_params()
139 if (r->bus_width == 8) devbus_get_timing_params()
140 r->bus_width = 0; devbus_get_timing_params()
141 else if (r->bus_width == 16) devbus_get_timing_params()
142 r->bus_width = 1; devbus_get_timing_params()
144 dev_err(devbus->dev, "invalid bus width %d\n", r->bus_width); devbus_get_timing_params()
227 r->bus_width << ORION_DEV_WIDTH_SHIFT | devbus_orion_set_timing_params()
248 value = r->bus_width << ARMADA_DEV_WIDTH_SHIFT | devbus_armada_set_timing_params()
/linux-4.1.27/arch/cris/arch-v10/lib/
H A Ddram_init.S46 ; CAS latency = 2 && bus_width = 32 => 0x40
47 ; CAS latency = 3 && bus_width = 32 => 0x60
48 ; CAS latency = 2 && bus_width = 16 => 0x20
49 ; CAS latency = 3 && bus_width = 16 => 0x30
/linux-4.1.27/arch/cris/arch-v32/mach-fs/
H A Ddram_init.S36 ; CAS latency = 2 && bus_width = 32 => 0x40
37 ; CAS latency = 3 && bus_width = 32 => 0x60
38 ; CAS latency = 2 && bus_width = 16 => 0x20
39 ; CAS latency = 3 && bus_width = 16 => 0x30
/linux-4.1.27/include/linux/mfd/
H A Dhtc-egpio.h35 * @bus_width: alignment of the registers, either 16 or 32 bit
42 int bus_width; member in struct:htc_egpio_platform_data
/linux-4.1.27/drivers/mmc/core/
H A Dmmc_ops.h27 int mmc_bus_test(struct mmc_card *card, u8 bus_width);
H A Dmmc.c634 static int mmc_compare_ext_csds(struct mmc_card *card, unsigned bus_width) mmc_compare_ext_csds() argument
639 if (bus_width == MMC_BUS_WIDTH_1) mmc_compare_ext_csds()
776 unsigned int bus_width) __mmc_select_powerclass()
788 pwrclass_val = (bus_width <= EXT_CSD_BUS_WIDTH_8) ? __mmc_select_powerclass()
806 pwrclass_val = (bus_width <= EXT_CSD_BUS_WIDTH_8) ? __mmc_select_powerclass()
810 pwrclass_val = (bus_width == EXT_CSD_DDR_BUS_WIDTH_8) ? __mmc_select_powerclass()
820 if (bus_width & (EXT_CSD_BUS_WIDTH_8 | EXT_CSD_DDR_BUS_WIDTH_8)) __mmc_select_powerclass()
841 u32 bus_width, ext_csd_bits; mmc_select_powerclass() local
848 bus_width = host->ios.bus_width; mmc_select_powerclass()
850 if (bus_width == MMC_BUS_WIDTH_1) mmc_select_powerclass()
855 ext_csd_bits = (bus_width == MMC_BUS_WIDTH_8) ? mmc_select_powerclass()
858 ext_csd_bits = (bus_width == MMC_BUS_WIDTH_8) ? mmc_select_powerclass()
864 mmc_hostname(host), 1 << bus_width, ddr); mmc_select_powerclass()
903 unsigned idx, bus_width = 0; mmc_select_bus_width() local
933 bus_width = bus_widths[idx]; mmc_select_bus_width()
934 mmc_set_bus_width(host, bus_width); mmc_select_bus_width()
942 err = mmc_compare_ext_csds(card, bus_width); mmc_select_bus_width()
944 err = mmc_bus_test(card, bus_width); mmc_select_bus_width()
947 err = bus_width; mmc_select_bus_width()
981 u32 bus_width, ext_csd_bits; mmc_select_hs_ddr() local
987 bus_width = host->ios.bus_width; mmc_select_hs_ddr()
988 if (bus_width == MMC_BUS_WIDTH_1) mmc_select_hs_ddr()
991 ext_csd_bits = (bus_width == MMC_BUS_WIDTH_8) ? mmc_select_hs_ddr()
1000 mmc_hostname(host), 1 << bus_width); mmc_select_hs_ddr()
1055 host->ios.bus_width == MMC_BUS_WIDTH_8)) mmc_select_hs400()
1188 host->ios.bus_width == MMC_BUS_WIDTH_8) mmc_hs200_tuning()
775 __mmc_select_powerclass(struct mmc_card *card, unsigned int bus_width) __mmc_select_powerclass() argument
H A Dmmc_ops.c592 if (ios->bus_width == MMC_BUS_WIDTH_8) { mmc_send_tuning()
596 } else if (ios->bus_width == MMC_BUS_WIDTH_4) { mmc_send_tuning()
675 pr_err("%s: Invalid bus_width %d\n", mmc_send_bus_test()
726 int mmc_bus_test(struct mmc_card *card, u8 bus_width) mmc_bus_test() argument
730 if (bus_width == MMC_BUS_WIDTH_8) mmc_bus_test()
732 else if (bus_width == MMC_BUS_WIDTH_4) mmc_bus_test()
734 else if (bus_width == MMC_BUS_WIDTH_1) mmc_bus_test()
H A Ddebugfs.c117 ios->bus_width, 1 << ios->bus_width); mmc_ios_show()
H A Dhost.c316 u32 bus_width; mmc_of_parse() local
327 if (of_property_read_u32(np, "bus-width", &bus_width) < 0) { mmc_of_parse()
330 bus_width = 1; mmc_of_parse()
333 switch (bus_width) { mmc_of_parse()
344 "Invalid \"bus-width\" value %u!\n", bus_width); mmc_of_parse()
H A Dcore.c999 ios->bus_width, ios->timing); mmc_set_ios()
1135 host->ios.bus_width = width; mmc_set_bus_width()
1150 host->ios.bus_width = MMC_BUS_WIDTH_1; mmc_set_initial_state()
/linux-4.1.27/include/linux/phy/
H A Dphy.h43 * @bus_width: Data path width implemented by PHY
46 u32 bus_width; member in struct:phy_attrs
124 return phy->attrs.bus_width; phy_get_bus_width()
126 static inline void phy_set_bus_width(struct phy *phy, int bus_width) phy_set_bus_width() argument
128 phy->attrs.bus_width = bus_width; phy_set_bus_width()
230 static inline void phy_set_bus_width(struct phy *phy, int bus_width) phy_set_bus_width() argument
/linux-4.1.27/drivers/dma/
H A Dimg-mdc-dma.c144 unsigned int bus_width; member in struct:mdc_dma
231 if (IS_ALIGNED(dst, mdma->bus_width) && mdc_list_desc_config()
232 IS_ALIGNED(src, mdma->bus_width)) mdc_list_desc_config()
233 max_burst = mdma->bus_width * mdma->max_burst_mult; mdc_list_desc_config()
235 max_burst = mdma->bus_width * (mdma->max_burst_mult - 1); mdc_list_desc_config()
240 mdc_set_read_width(ldesc, mdma->bus_width); mdc_list_desc_config()
248 mdc_set_write_width(ldesc, mdma->bus_width); mdc_list_desc_config()
254 mdc_set_read_width(ldesc, mdma->bus_width); mdc_list_desc_config()
255 mdc_set_write_width(ldesc, mdma->bus_width); mdc_list_desc_config()
363 if (width > mchan->mdma->bus_width) mdc_check_slave_width()
882 mdma->bus_width = mdc_dma_probe()
894 mdma->max_xfer_size = MDC_TRANSFER_SIZE_MASK + 1 - mdma->bus_width; mdc_dma_probe()
916 for (i = 1; i <= mdma->bus_width; i <<= 1) { mdc_dma_probe()
H A Dtegra20-apb-dma.c857 * burst_size from client is in terms of the bus_width. get_burst_size()
/linux-4.1.27/include/media/
H A Dv4l2-of.h46 * @bus_width: bus width in bits
51 unsigned char bus_width; member in struct:v4l2_of_bus_parallel
/linux-4.1.27/drivers/mmc/host/
H A Ds3cmci.h62 int bus_width; member in struct:s3cmci_host
H A Dsdhci-pltfm.c75 u32 bus_width; sdhci_get_of_property() local
82 (of_property_read_u32(np, "bus-width", &bus_width) == 0 && sdhci_get_of_property()
83 bus_width == 1)) sdhci_get_of_property()
H A Dsdhci-pxav2.c135 u32 bus_width; pxav2_get_mmc_pdata() local
145 of_property_read_u32(np, "bus-width", &bus_width); pxav2_get_mmc_pdata()
146 if (bus_width == 8) pxav2_get_mmc_pdata()
H A Dsdhci-tegra.c148 static void tegra_sdhci_set_bus_width(struct sdhci_host *host, int bus_width) tegra_sdhci_set_bus_width() argument
154 (bus_width == MMC_BUS_WIDTH_8)) { tegra_sdhci_set_bus_width()
159 if (bus_width == MMC_BUS_WIDTH_4) tegra_sdhci_set_bus_width()
H A Dmxs-mmc.c70 unsigned char bus_width; member in struct:mxs_mmc_host
387 ctrl0 = BF_SSP(host->bus_width, CTRL0_BUS_WIDTH) | mxs_mmc_adtc()
503 if (ios->bus_width == MMC_BUS_WIDTH_8) mxs_mmc_set_ios()
504 host->bus_width = 2; mxs_mmc_set_ios()
505 else if (ios->bus_width == MMC_BUS_WIDTH_4) mxs_mmc_set_ios()
506 host->bus_width = 1; mxs_mmc_set_ios()
508 host->bus_width = 0; mxs_mmc_set_ios()
H A Ddw_mmc-rockchip.c53 if (ios->bus_width == MMC_BUS_WIDTH_8 && dw_mci_rk3288_set_ios()
H A Dushc.c346 static int ushc_set_bus_width(struct ushc_data *ushc, int bus_width) ushc_set_bus_width() argument
349 bus_width == 4 ? USHC_HOST_CTRL_4BIT : 0); ushc_set_bus_width()
380 ushc_set_bus_width(ushc, 1 << ios->bus_width); ushc_set_ios()
H A Dwbsd.h167 unsigned char bus_width; /* Current bus width */ member in struct:wbsd_host
H A Dtmio_mmc_pio.c763 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4) { tmio_mmc_start_data()
899 unsigned char bus_width) tmio_mmc_set_bus_width()
901 switch (bus_width) { tmio_mmc_set_bus_width()
960 tmio_mmc_set_bus_width(host, ios->bus_width); tmio_mmc_set_ios()
965 tmio_mmc_set_bus_width(host, ios->bus_width); tmio_mmc_set_ios()
898 tmio_mmc_set_bus_width(struct tmio_mmc_host *host, unsigned char bus_width) tmio_mmc_set_bus_width() argument
H A Dvub300.c317 unsigned bus_width:4; member in struct:vub300_mmc_host
516 vub300->bus_width = 0; new_system_port_status()
889 vub300->bus_width = 1; snoop_block_size_and_bus_width()
891 vub300->bus_width = 4; snoop_block_size_and_bus_width()
908 vub300->bus_width = 1; send_command()
910 vub300->bus_width = 4; send_command()
913 "unexpected ACMD6 bus_width=%d\n", send_command()
2188 vub300->bus_width = 0; vub300_probe()
H A Drtsx_pci_sdmmc.c892 unsigned char bus_width) sd_set_bus_width()
901 if (bus_width <= MMC_BUS_WIDTH_8) sd_set_bus_width()
903 0x03, width[bus_width]); sd_set_bus_width()
1065 sd_set_bus_width(host, ios->bus_width); sdmmc_set_ios()
891 sd_set_bus_width(struct realtek_pci_sdmmc *host, unsigned char bus_width) sd_set_bus_width() argument
H A Drtsx_usb_sdmmc.c909 unsigned char bus_width) sd_set_bus_width()
918 if (bus_width <= MMC_BUS_WIDTH_8) sd_set_bus_width()
920 0x03, width[bus_width]); sd_set_bus_width()
1147 sd_set_bus_width(host, ios->bus_width); sdmmc_set_ios()
908 sd_set_bus_width(struct rtsx_usb_sdmmc *host, unsigned char bus_width) sd_set_bus_width() argument
H A Dwbsd.c577 if (host->bus_width == MMC_BUS_WIDTH_1) { wbsd_prepare_data()
582 } else if (host->bus_width == MMC_BUS_WIDTH_4) { wbsd_prepare_data()
898 BUG_ON(ios->bus_width != MMC_BUS_WIDTH_1); wbsd_set_ios()
918 host->bus_width = ios->bus_width; wbsd_set_ios()
H A Datmel-mci.c557 &pdata->slot[slot_id].bus_width)) for_each_child_of_node()
558 pdata->slot[slot_id].bus_width = 1; for_each_child_of_node()
1296 switch (ios->bus_width) { atmci_set_ios()
2169 "slot[%u]: bus_width=%u, detect_pin=%d, " atmci_init_slot()
2171 id, slot_data->bus_width, slot_data->detect_pin, atmci_init_slot()
2188 if ((slot_data->bus_width >= 4) && host->caps.has_rwproof) atmci_init_slot()
2464 if (pdata->slot[0].bus_width) { atmci_probe()
2472 if (pdata->slot[1].bus_width) { atmci_probe()
H A Dmmci.c361 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4) mmci_set_clkreg()
363 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_8) mmci_set_clkreg()
1372 if (ios->bus_width == MMC_BUS_WIDTH_4) mmci_set_ios()
1374 else if (ios->bus_width == MMC_BUS_WIDTH_1) mmci_set_ios()
H A Dsh_mmcif.c233 int bus_width; member in struct:sh_mmcif_host
795 switch (host->bus_width) { sh_mmcif_set_cmd()
1051 host->bus_width = ios->bus_width; sh_mmcif_set_ios()
H A Dtifm_sd.c807 "chip_select = %x, power_mode = %x, bus_width = %x\n", tifm_sd_ios()
809 ios->power_mode, ios->bus_width); tifm_sd_ios()
811 if (ios->bus_width == MMC_BUS_WIDTH_4) { tifm_sd_ios()
H A Ds3cmci.c1014 if (host->bus_width == MMC_BUS_WIDTH_4) s3cmci_setup_data()
1288 host->bus_width = ios->bus_width; s3cmci_set_ios()
H A Dbfin_sdh.c370 switch (ios->bus_width) { sdh_set_ios()
H A Ddw_mmc-exynos.c299 if (ios->bus_width == MMC_BUS_WIDTH_8) dw_mci_exynos_set_ios()
H A Dmoxart-mmc.c527 switch (ios->bus_width) { moxart_set_ios()
H A Dsdricoh_cs.c363 if (ios->bus_width == MMC_BUS_WIDTH_4) { sdricoh_set_ios()
H A Dtoshsd.c125 switch (ios->bus_width) { __toshsd_set_ios()
H A Dau1xmmc.c96 u32 bus_width; member in struct:au1xmmc_host
771 switch (ios->bus_width) { au1xmmc_set_ios()
H A Dmxcmmc.c858 if (ios->bus_width == MMC_BUS_WIDTH_4) mxcmci_set_ios()
875 if (ios->bus_width == MMC_BUS_WIDTH_4) mxcmci_set_ios()
H A Dcb710-mmc.c595 cb710_mmc_enable_4bit_data(slot, ios->bus_width != MMC_BUS_WIDTH_1); cb710_mmc_set_ios()
H A Dmvsdio.c639 if (ios->bus_width == MMC_BUS_WIDTH_4) mvsd_set_ios()
H A Dpxamci.c529 if (ios->bus_width == MMC_BUS_WIDTH_4) pxamci_set_ios()
H A Dwmt-sdmmc.c697 switch (ios->bus_width) { wmt_mci_set_ios()
H A Dusdhi6rol0.c817 ios->clock, ios->vdd, ios->power_mode, ios->bus_width, ios->timing); usdhi6_set_ios()
844 if (ios->bus_width == MMC_BUS_WIDTH_1) { usdhi6_set_ios()
H A Dsdhci.c1549 host->ops->set_bus_width(host, ios->bus_width); sdhci_do_set_ios()
2017 if (mmc->ios.bus_width == MMC_BUS_WIDTH_8) sdhci_execute_tuning()
2020 else if (mmc->ios.bus_width == MMC_BUS_WIDTH_4) sdhci_execute_tuning()
H A Ddavinci_mmc.c751 switch (ios->bus_width) { mmc_davinci_set_ios()
H A Djz4740_mmc.c884 switch (ios->bus_width) { jz4740_mmc_set_ios()
H A Domap.c1147 if (ios->bus_width == MMC_BUS_WIDTH_4) mmc_omap_calc_divisor()
H A Dsunxi-mmc.c714 switch (ios->bus_width) { sunxi_mmc_set_ios()
H A Dvia-sdmmc.c735 if (ios->bus_width == MMC_BUS_WIDTH_1) via_sdc_set_ios()
H A Domap_hsmmc.c587 switch (ios->bus_width) { omap_hsmmc_set_bus_width()
H A Ddw_mmc.c1157 switch (ios->bus_width) { dw_mci_set_ios()
/linux-4.1.27/drivers/media/i2c/
H A Dsmiapp-pll.h45 uint8_t bus_width; member in struct:smiapp_pll::__anon5605::__anon5607
H A Dsmiapp-pll.c435 pll->parallel.bus_width); smiapp_pll_calculate()
/linux-4.1.27/arch/avr32/boards/atngw100/
H A Dflash.c34 .bus_width = 2,
H A Dsetup.c76 .bus_width = 2,
125 .bus_width = 4,
/linux-4.1.27/arch/avr32/boards/atstk1000/
H A Dflash.c34 .bus_width = 2,
H A Datstk1004.c78 .bus_width = 4,
H A Datstk1003.c73 .bus_width = 4,
H A Datstk1002.c76 .bus_width = 1,
265 .bus_width = 4,
/linux-4.1.27/arch/avr32/boards/favr-32/
H A Dflash.c34 .bus_width = 2,
H A Dsetup.c99 .bus_width = 4,
/linux-4.1.27/arch/avr32/boards/merisc/
H A Dflash.c34 .bus_width = 2,
H A Dsetup.c99 .bus_width = 4,
/linux-4.1.27/arch/avr32/boards/mimc200/
H A Dflash.c34 .bus_width = 2,
H A Dsetup.c115 .bus_width = 4,
/linux-4.1.27/arch/avr32/mach-at32ap/include/mach/
H A Dsmc.h64 u8 bus_width; member in struct:smc_config
/linux-4.1.27/drivers/usb/isp1760/
H A Disp1760-if.c207 u32 bus_width = 0; isp1760_plat_probe() local
213 of_property_read_u32(dp, "bus-width", &bus_width); isp1760_plat_probe()
214 if (bus_width == 16) isp1760_plat_probe()
/linux-4.1.27/arch/avr32/boards/hammerhead/
H A Dflash.c52 .bus_width = 2,
119 .bus_width = 2,
259 .bus_width = 4,
H A Dsetup.c94 .bus_width = 4,
/linux-4.1.27/drivers/staging/rts5208/
H A Dsd.c286 u16 blk_cnt, u8 bus_width, u8 *buf, int buf_len, sd_read_data()
320 rtsx_add_cmd(chip, WRITE_REG_CMD, REG_SD_CFG1, 0x03, bus_width); sd_read_data()
357 u8 *cmd, int cmd_len, u16 byte_cnt, u16 blk_cnt, u8 bus_width, sd_write_data()
401 rtsx_add_cmd(chip, WRITE_REG_CMD, REG_SD_CFG1, 0x03, bus_width); sd_write_data()
1062 static int sd_check_spec(struct rtsx_chip *chip, u8 bus_width) sd_check_spec() argument
1081 retval = sd_read_data(chip, SD_TM_NORMAL_READ, cmd, 5, 8, 1, bus_width, sd_check_spec()
1219 u8 func_group, u8 func_to_switch, u8 bus_width) sd_check_switch_mode()
1250 retval = sd_read_data(chip, SD_TM_NORMAL_READ, cmd, 5, 64, 1, bus_width, sd_check_switch_mode()
1330 u8 func_group, u8 func_to_switch, u8 bus_width) sd_check_switch()
1344 func_to_switch, bus_width); sd_check_switch()
1349 func_group, func_to_switch, bus_width); sd_check_switch()
1381 static int sd_switch_function(struct rtsx_chip *chip, u8 bus_width) sd_switch_function() argument
1390 NO_ARGUMENT, NO_ARGUMENT, bus_width); sd_switch_function()
1451 bus_width); sd_switch_function()
1539 bus_width); sd_switch_function()
1658 u8 cmd[5], bus_width; mmc_ddr_tunning_rx_cmd() local
1661 bus_width = SD_BUS_WIDTH_8; mmc_ddr_tunning_rx_cmd()
1663 bus_width = SD_BUS_WIDTH_4; mmc_ddr_tunning_rx_cmd()
1665 bus_width = SD_BUS_WIDTH_1; mmc_ddr_tunning_rx_cmd()
1682 cmd, 5, 0x200, 1, bus_width, NULL, 0, 100); mmc_ddr_tunning_rx_cmd()
1737 u8 cmd[5], bus_width; sd_ddr_tuning_tx_cmd() local
1746 bus_width = SD_BUS_WIDTH_4; sd_ddr_tuning_tx_cmd()
1749 bus_width = SD_BUS_WIDTH_8; sd_ddr_tuning_tx_cmd()
1751 bus_width = SD_BUS_WIDTH_4; sd_ddr_tuning_tx_cmd()
1753 bus_width = SD_BUS_WIDTH_1; sd_ddr_tuning_tx_cmd()
1776 cmd, 5, 16, 1, bus_width, sd_card->raw_csd, 16, 100); sd_ddr_tuning_tx_cmd()
2485 u8 cmd[5], bus_width; sd_read_lba0() local
2494 bus_width = SD_BUS_WIDTH_4; sd_read_lba0()
2497 bus_width = SD_BUS_WIDTH_8; sd_read_lba0()
2499 bus_width = SD_BUS_WIDTH_4; sd_read_lba0()
2501 bus_width = SD_BUS_WIDTH_1; sd_read_lba0()
2505 5, 512, 1, bus_width, NULL, 0, 100); sd_read_lba0()
2984 u8 buf[8] = {0}, bus_width, *ptr; mmc_test_switch_bus() local
3000 bus_width = SD_BUS_WIDTH_8; mmc_test_switch_bus()
3005 bus_width = SD_BUS_WIDTH_4; mmc_test_switch_bus()
3015 NULL, 0, byte_cnt, 1, bus_width, buf, len, 100); mmc_test_switch_bus()
4485 u8 cmd_idx, rsp_type, bus_width; sd_execute_read_data() local
4538 bus_width = SD_BUS_WIDTH_8; sd_execute_read_data()
4540 bus_width = SD_BUS_WIDTH_4; sd_execute_read_data()
4542 bus_width = SD_BUS_WIDTH_1; sd_execute_read_data()
4544 bus_width = SD_BUS_WIDTH_4; sd_execute_read_data()
4546 dev_dbg(rtsx_dev(chip), "bus_width = %d\n", bus_width); sd_execute_read_data() local
4548 bus_width = SD_BUS_WIDTH_4; sd_execute_read_data()
4600 blk_cnt, bus_width, buf, data_len, 2000); sd_execute_read_data()
4638 rtsx_add_cmd(chip, WRITE_REG_CMD, REG_SD_CFG1, 0x03, bus_width); sd_execute_read_data()
284 sd_read_data(struct rtsx_chip *chip, u8 trans_mode, u8 *cmd, int cmd_len, u16 byte_cnt, u16 blk_cnt, u8 bus_width, u8 *buf, int buf_len, int timeout) sd_read_data() argument
356 sd_write_data(struct rtsx_chip *chip, u8 trans_mode, u8 *cmd, int cmd_len, u16 byte_cnt, u16 blk_cnt, u8 bus_width, u8 *buf, int buf_len, int timeout) sd_write_data() argument
1218 sd_check_switch_mode(struct rtsx_chip *chip, u8 mode, u8 func_group, u8 func_to_switch, u8 bus_width) sd_check_switch_mode() argument
1329 sd_check_switch(struct rtsx_chip *chip, u8 func_group, u8 func_to_switch, u8 bus_width) sd_check_switch() argument
H A Drtsx_scsi.c2743 u8 card, bus_width; get_card_bus_width() local
2753 bus_width = chip->card_bus_width[lun]; get_card_bus_width()
2761 rtsx_stor_set_xfer_buf(&bus_width, scsi_bufflen(srb), srb); get_card_bus_width()
/linux-4.1.27/drivers/media/platform/exynos4-is/
H A Dfimc-reg.c591 u16 bus_width; member in struct:mbus_pixfmt_desc
606 u32 bus_width, cfg = 0; fimc_hw_set_camera_source() local
615 bus_width = pix_desc[i].bus_width; fimc_hw_set_camera_source()
628 if (bus_width == 8) fimc_hw_set_camera_source()
630 else if (bus_width == 16) fimc_hw_set_camera_source()
/linux-4.1.27/drivers/mfd/
H A Dhtc-egpio.c295 if ((pdata->bus_width != 16) && (pdata->bus_width != 32)) egpio_probe()
297 ei->bus_shift = fls(pdata->bus_width - 1) - 3; egpio_probe()
/linux-4.1.27/drivers/block/
H A Dxsysace.c203 int bus_width; /* 0 := 8 bit; 1 := 16 bit */ member in struct:ace_device
1012 if (ace->bus_width == ACE_BUS_WIDTH_16) { ace_setup()
1095 int irq, int bus_width) ace_alloc()
1117 ace->bus_width = bus_width; ace_alloc()
1155 int bus_width = ACE_BUS_WIDTH_16; /* FIXME: should not be hard coded */ ace_probe() local
1166 bus_width = ACE_BUS_WIDTH_8; ace_probe()
1176 return ace_alloc(&dev->dev, id, physaddr, irq, bus_width); ace_probe()
1094 ace_alloc(struct device *dev, int id, resource_size_t physaddr, int irq, int bus_width) ace_alloc() argument
/linux-4.1.27/drivers/scsi/sym53c8xx_2/
H A Dsym_nvram.h106 u_char bus_width; /* 0x08/0x10 */ member in struct:Symbios_nvram::Symbios_target
H A Dsym_nvram.c108 tp->usr_width = (tn->bus_width == 0x8) ? 0 : 1; sym_Symbios_setup_target()
179 tn->bus_width, sym_display_Symbios_nvram()
/linux-4.1.27/drivers/video/fbdev/via/
H A Dioctl.h103 unsigned short bus_width; member in struct:device_t
H A Dviafbdev.c537 u.active_dev.bus_width = viafb_bus_width; viafb_ioctl()
/linux-4.1.27/include/uapi/linux/
H A Dmedia-bus-format.h24 * The bus formats are grouped by type, bus_width, bits per component, samples
/linux-4.1.27/arch/avr32/mach-at32ap/
H A Dhsmc.c159 switch (config->bus_width) { smc_set_configuration()
H A Dat32ap700x.c1358 if (!data->slot[0].bus_width && !data->slot[1].bus_width) at32_add_device_mci()
1389 switch (data->slot[0].bus_width) { at32_add_device_mci()
1414 switch (data->slot[1].bus_width) { at32_add_device_mci()
1434 if (!data->slot[0].bus_width) at32_add_device_mci()
1437 data->slot[1].bus_width = 0; at32_add_device_mci()
/linux-4.1.27/arch/arm/mach-sa1100/
H A Dh3xxx.c198 .bus_width = 16,
/linux-4.1.27/drivers/scsi/aic7xxx/
H A Daic7xxx_core.c173 u_int bus_width);
177 u_int bus_width, u_int ppr_options);
2421 u_int *bus_width, role_t role) ahc_validate_width()
2423 switch (*bus_width) { ahc_validate_width()
2427 *bus_width = MSG_EXT_WDTR_BUS_16_BIT; ahc_validate_width()
2432 *bus_width = MSG_EXT_WDTR_BUS_8_BIT; ahc_validate_width()
2437 *bus_width = min((u_int)tinfo->user.width, *bus_width); ahc_validate_width()
2439 *bus_width = min((u_int)tinfo->goal.width, *bus_width); ahc_validate_width()
3081 u_int bus_width) ahc_construct_wdtr()
3084 ahc->msgout_buf + ahc->msgout_index, bus_width); ahc_construct_wdtr()
3089 devinfo->lun, bus_width); ahc_construct_wdtr()
3099 u_int period, u_int offset, u_int bus_width, ahc_construct_ppr()
3106 bus_width, ppr_options); ahc_construct_ppr()
3109 printk("(%s:%c:%d:%d): Sending PPR bus_width %x, period %x, " ahc_construct_ppr()
3112 bus_width, period, offset, ppr_options); ahc_construct_ppr()
3716 u_int bus_width; ahc_parse_msg() local
3736 bus_width = ahc->msgin_buf[3]; ahc_parse_msg()
3737 saved_width = bus_width; ahc_parse_msg()
3738 ahc_validate_width(ahc, tinfo, &bus_width, ahc_parse_msg()
3745 saved_width, bus_width); ahc_parse_msg()
3755 if (saved_width > bus_width) { ahc_parse_msg()
3761 8 * (0x01 << bus_width)); ahc_parse_msg()
3762 bus_width = 0; ahc_parse_msg()
3777 ahc_construct_wdtr(ahc, devinfo, bus_width); ahc_parse_msg()
3793 ahc_set_width(ahc, devinfo, bus_width, ahc_parse_msg()
3815 u_int bus_width; ahc_parse_msg() local
3838 bus_width = ahc->msgin_buf[6]; ahc_parse_msg()
3839 saved_width = bus_width; ahc_parse_msg()
3858 if (bus_width == 0) ahc_parse_msg()
3861 ahc_validate_width(ahc, tinfo, &bus_width, ahc_parse_msg()
3867 &offset, bus_width, ahc_parse_msg()
3876 if (saved_width > bus_width ahc_parse_msg()
3882 bus_width = 0; ahc_parse_msg()
3900 bus_width, ppr_options); ahc_parse_msg()
3913 bus_width, period, offset, ppr_options); ahc_parse_msg()
3915 ahc_set_width(ahc, devinfo, bus_width, ahc_parse_msg()
2420 ahc_validate_width(struct ahc_softc *ahc, struct ahc_initiator_tinfo *tinfo, u_int *bus_width, role_t role) ahc_validate_width() argument
3080 ahc_construct_wdtr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, u_int bus_width) ahc_construct_wdtr() argument
3098 ahc_construct_ppr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, u_int period, u_int offset, u_int bus_width, u_int ppr_options) ahc_construct_ppr() argument
H A Daic79xx_core.c147 u_int bus_width);
151 u_int bus_width, u_int ppr_options);
3817 u_int *bus_width, role_t role) ahd_validate_width()
3819 switch (*bus_width) { ahd_validate_width()
3823 *bus_width = MSG_EXT_WDTR_BUS_16_BIT; ahd_validate_width()
3828 *bus_width = MSG_EXT_WDTR_BUS_8_BIT; ahd_validate_width()
3833 *bus_width = min((u_int)tinfo->user.width, *bus_width); ahd_validate_width()
3835 *bus_width = min((u_int)tinfo->goal.width, *bus_width); ahd_validate_width()
4639 u_int bus_width) ahd_construct_wdtr()
4642 ahd->msgout_buf + ahd->msgout_index, bus_width); ahd_construct_wdtr()
4647 devinfo->lun, bus_width); ahd_construct_wdtr()
4657 u_int period, u_int offset, u_int bus_width, ahd_construct_ppr()
4671 bus_width, ppr_options); ahd_construct_ppr()
4674 printk("(%s:%c:%d:%d): Sending PPR bus_width %x, period %x, " ahd_construct_ppr()
4677 bus_width, period, offset, ppr_options); ahd_construct_ppr()
5228 u_int bus_width; ahd_parse_msg() local
5248 bus_width = ahd->msgin_buf[3]; ahd_parse_msg()
5249 saved_width = bus_width; ahd_parse_msg()
5250 ahd_validate_width(ahd, tinfo, &bus_width, ahd_parse_msg()
5257 saved_width, bus_width); ahd_parse_msg()
5267 if (saved_width > bus_width) { ahd_parse_msg()
5273 8 * (0x01 << bus_width)); ahd_parse_msg()
5274 bus_width = 0; ahd_parse_msg()
5289 ahd_construct_wdtr(ahd, devinfo, bus_width); ahd_parse_msg()
5305 ahd_set_width(ahd, devinfo, bus_width, ahd_parse_msg()
5326 u_int bus_width; ahd_parse_msg() local
5349 bus_width = ahd->msgin_buf[6]; ahd_parse_msg()
5350 saved_width = bus_width; ahd_parse_msg()
5367 if (bus_width == 0) ahd_parse_msg()
5370 ahd_validate_width(ahd, tinfo, &bus_width, ahd_parse_msg()
5375 bus_width, devinfo->role); ahd_parse_msg()
5383 if (saved_width > bus_width ahd_parse_msg()
5389 bus_width = 0; ahd_parse_msg()
5406 bus_width, ppr_options); ahd_parse_msg()
5419 bus_width, period, offset, ppr_options); ahd_parse_msg()
5421 ahd_set_width(ahd, devinfo, bus_width, ahd_parse_msg()
3816 ahd_validate_width(struct ahd_softc *ahd, struct ahd_initiator_tinfo *tinfo, u_int *bus_width, role_t role) ahd_validate_width() argument
4638 ahd_construct_wdtr(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, u_int bus_width) ahd_construct_wdtr() argument
4656 ahd_construct_ppr(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, u_int period, u_int offset, u_int bus_width, u_int ppr_options) ahd_construct_ppr() argument
/linux-4.1.27/drivers/media/platform/am437x/
H A Dam437x-vpfe.h61 unsigned int bus_width; member in struct:vpfe_hw_if_param
H A Dam437x-vpfe.c229 unsigned int bus_width = sdinfo->vpfe_param.bus_width; mbus_to_pix() local
242 *bpp = (bus_width == 10) ? fmt->l.bpp : fmt->s.bpp; mbus_to_pix()
909 if (params->bus_width == 10) vpfe_ccdc_set_hw_if_params()
915 vpfe_dbg(1, vpfe, "params.bus_width: %d\n", vpfe_ccdc_set_hw_if_params()
916 params->bus_width); vpfe_ccdc_set_hw_if_params()
2488 sdinfo->vpfe_param.bus_width = bus_cfg.bus.parallel.bus_width; vpfe_get_pdata()
2490 if (sdinfo->vpfe_param.bus_width < 8 || vpfe_get_pdata()
2491 sdinfo->vpfe_param.bus_width > 16) { vpfe_get_pdata()
/linux-4.1.27/drivers/media/v4l2-core/
H A Dv4l2-of.c117 bus->bus_width = v; v4l2_of_parse_parallel_bus()
/linux-4.1.27/drivers/edac/
H A Dmpc85xx_edac.c818 u32 bus_width; mpc85xx_mc_check() local
845 bus_width = (in_be32(pdata->mc_vbase + MPC85XX_MC_DDR_SDRAM_CFG) & mpc85xx_mc_check()
847 if (bus_width == 64) mpc85xx_mc_check()
868 if ((err_detect & DDR_EDE_SBE) && (bus_width == 64)) { mpc85xx_mc_check()
/linux-4.1.27/drivers/net/ethernet/micrel/
H A Dks8851_mll.c398 * @bus_width : i/o bus width.
444 int bus_width; member in struct:ks_net
656 ks->bus_width = ENUM_BUS_8BIT; ks_read_config()
659 ks->bus_width = ENUM_BUS_16BIT; ks_read_config()
662 ks->bus_width = ENUM_BUS_32BIT; ks_read_config()
/linux-4.1.27/drivers/net/wireless/rsi/
H A Drsi_91x_sdio.c182 host->ios.bus_width = MMC_BUS_WIDTH_1; rsi_reset_card()
326 host->ios.bus_width = MMC_BUS_WIDTH_4; rsi_reset_card()
/linux-4.1.27/drivers/ata/
H A Dpata_at32.c320 info->smc.bus_width = 2; /* 16 bit data bus */ pata_at32_probe()
/linux-4.1.27/arch/arm/mach-pxa/
H A Dmagician.c213 .bus_width = 32,
H A Dhx4700.c345 .bus_width = 16,
/linux-4.1.27/drivers/mtd/nand/
H A Dnandsim.c95 static uint bus_width = CONFIG_NANDSIM_BUS_WIDTH; variable
128 module_param(bus_width, uint, 0400);
153 MODULE_PARM_DESC(bus_width, "Chip's bus width (8- or 16-bit)");
2234 if (bus_width != 8 && bus_width != 16) { ns_init_module()
2235 NS_ERR("wrong bus width (%d), use only 8 or 16\n", bus_width); ns_init_module()
2293 if (bus_width == 16) { ns_init_module()
/linux-4.1.27/include/linux/mmc/
H A Dhost.h47 unsigned char bus_width; /* data bus width */ member in struct:mmc_ios
/linux-4.1.27/drivers/media/platform/soc_camera/
H A Datmel-isi.c910 switch (ep.bus.parallel.bus_width) { atmel_isi_probe_dt()
920 ep.bus.parallel.bus_width); atmel_isi_probe_dt()
H A Dpxa_camera.c1680 switch (ep.bus.parallel.bus_width) { pxa_camera_pdata_from_dt()
/linux-4.1.27/drivers/scsi/
H A Dipr.h781 u8 bus_width; member in struct:ipr_dev_bus_entry
1260 u8 bus_width; member in struct:ipr_bus_attributes
H A Dipr.c2696 * @bus_width: bus width
2704 static u32 ipr_get_max_scsi_speed(struct ipr_ioa_cfg *ioa_cfg, u8 bus, u8 bus_width) ipr_get_max_scsi_speed() argument
2708 u32 max_xfer_rate = IPR_MAX_SCSI_RATE(bus_width); ipr_get_max_scsi_speed()
2721 max_xfer_rate = (ste->max_bus_speed_limit * 10) / (bus_width / 8); ipr_get_max_scsi_speed()
7227 ioa_cfg->bus_attr[i].bus_width); ipr_scsi_bus_speed_limit()
7270 bus->bus_width = bus_attr->bus_width; ipr_modify_ioafp_mode_page_28()
9507 ioa_cfg->bus_attr[i].bus_width = IPR_DEFAULT_BUS_WIDTH; ipr_initialize_bus_attr()
/linux-4.1.27/drivers/net/wireless/libertas/
H A Dif_sdio.c881 (host->ios.bus_width == MMC_BUS_WIDTH_1)) { if_sdio_power_on()
/linux-4.1.27/arch/mips/include/asm/octeon/
H A Dcvmx-mio-defs.h1183 uint64_t bus_width:3; member in struct:cvmx_mio_emm_modex::cvmx_mio_emm_modex_s
1193 uint64_t bus_width:3;
1352 uint64_t bus_width:3; member in struct:cvmx_mio_emm_switch::cvmx_mio_emm_switch_s
1362 uint64_t bus_width:3;
/linux-4.1.27/drivers/net/ethernet/intel/e1000/
H A De1000_hw.c4854 hw->bus_width = e1000_bus_width_unknown; e1000_get_bus_info()
4883 hw->bus_width = (status & E1000_STATUS_BUS64) ? e1000_get_bus_info()
H A De1000_hw.h1364 e1000_bus_width bus_width; member in struct:e1000_hw
H A De1000_main.c1228 ((hw->bus_width == e1000_bus_width_64) ? 64 : 32), e1000_probe()

Completed in 2600 milliseconds