Home
last modified time | relevance | path

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

123456

/linux/drivers/mtd/lpddr/
A Dlpddr2_nvm.c76 int bus_width; member
94 static inline u_int build_mr_cfgmask(u_int bus_width) in build_mr_cfgmask() argument
98 if (bus_width == 0x0004) /* x32 device */ in build_mr_cfgmask()
107 static inline u_int build_sr_ok_datamask(u_int bus_width) in build_sr_ok_datamask() argument
111 if (bus_width == 0x0004) /* x32 device */ in build_sr_ok_datamask()
125 val = map->pfow_base + offset*pcm_data->bus_width; in ow_reg_add()
338 if (pcm_data->bus_width == 0x0004) {/* 2x16 devices */ in lpddr2_nvm_write()
347 add += pcm_data->bus_width; in lpddr2_nvm_write()
348 tot_len += pcm_data->bus_width; in lpddr2_nvm_write()
423 pcm_data->bus_width = BUS_WIDTH; in lpddr2_nvm_probe()
[all …]
/linux/drivers/memory/
A Dmvebu-devbus.c64 u32 bus_width; member
115 err = of_property_read_u32(node, "devbus,bus-width", &r->bus_width); in devbus_get_timing_params()
127 if (r->bus_width == 8) { in devbus_get_timing_params()
128 r->bus_width = 0; in devbus_get_timing_params()
129 } else if (r->bus_width == 16) { in devbus_get_timing_params()
130 r->bus_width = 1; in devbus_get_timing_params()
132 dev_err(devbus->dev, "invalid bus width %d\n", r->bus_width); in devbus_get_timing_params()
215 r->bus_width << ORION_DEV_WIDTH_SHIFT | in devbus_orion_set_timing_params()
236 value = r->bus_width << ARMADA_DEV_WIDTH_SHIFT | in devbus_armada_set_timing_params()
/linux/drivers/media/platform/rockchip/rkisp1/
A Drkisp1-isp.c67 .bus_width = 10,
74 .bus_width = 10,
81 .bus_width = 10,
88 .bus_width = 10,
95 .bus_width = 12,
102 .bus_width = 12,
109 .bus_width = 12,
123 .bus_width = 8,
130 .bus_width = 8,
137 .bus_width = 8,
[all …]
/linux/drivers/mmc/core/
A Dmmc.c711 if (bus_width == MMC_BUS_WIDTH_1) in mmc_compare_ext_csds()
882 unsigned int bus_width) in __mmc_select_powerclass() argument
947 u32 bus_width, ext_csd_bits; in mmc_select_powerclass() local
954 bus_width = host->ios.bus_width; in mmc_select_powerclass()
956 if (bus_width == MMC_BUS_WIDTH_1) in mmc_select_powerclass()
1009 unsigned idx, bus_width = 0; in mmc_select_bus_width() local
1039 bus_width = bus_widths[idx]; in mmc_select_bus_width()
1053 err = bus_width; in mmc_select_bus_width()
1088 u32 bus_width, ext_csd_bits; in mmc_select_hs_ddr() local
1094 bus_width = host->ios.bus_width; in mmc_select_hs_ddr()
[all …]
A Dhost.c279 u32 bus_width, drv_type, cd_debounce_delay_ms; in mmc_of_parse() local
286 if (device_property_read_u32(dev, "bus-width", &bus_width) < 0) { in mmc_of_parse()
289 bus_width = 1; in mmc_of_parse()
292 switch (bus_width) { in mmc_of_parse()
303 "Invalid \"bus-width\" value %u!\n", bus_width); in mmc_of_parse()
A Dmmc_ops.c648 if (ios->bus_width == MMC_BUS_WIDTH_8) { in mmc_send_tuning()
651 } else if (ios->bus_width == MMC_BUS_WIDTH_4) { in mmc_send_tuning()
808 int mmc_bus_test(struct mmc_card *card, u8 bus_width) in mmc_bus_test() argument
812 if (bus_width == MMC_BUS_WIDTH_8) in mmc_bus_test()
814 else if (bus_width == MMC_BUS_WIDTH_4) in mmc_bus_test()
816 else if (bus_width == MMC_BUS_WIDTH_1) in mmc_bus_test()
A Ddebugfs.c117 ios->bus_width, 1 << ios->bus_width); in mmc_ios_show()
/linux/drivers/gpu/drm/atmel-hlcdc/
A Datmel_hlcdc_output.c43 u32 bus_width; in atmel_hlcdc_of_bus_fmt() local
46 ret = of_property_read_u32(ep, "bus-width", &bus_width); in atmel_hlcdc_of_bus_fmt()
52 switch (bus_width) { in atmel_hlcdc_of_bus_fmt()
/linux/drivers/usb/isp1760/
A Disp1760-if.c208 u32 bus_width = 0; in isp1760_plat_probe() local
220 of_property_read_u32(dp, "bus-width", &bus_width); in isp1760_plat_probe()
221 if (bus_width == 16) in isp1760_plat_probe()
223 else if (bus_width == 8) in isp1760_plat_probe()
/linux/include/linux/phy/
A Dphy.h132 u32 bus_width; member
242 return phy->attrs.bus_width; in phy_get_bus_width()
244 static inline void phy_set_bus_width(struct phy *phy, int bus_width) in phy_set_bus_width() argument
246 phy->attrs.bus_width = bus_width; in phy_set_bus_width()
415 static inline void phy_set_bus_width(struct phy *phy, int bus_width) in phy_set_bus_width() argument
/linux/drivers/dma/
A Dimg-mdc-dma.c142 unsigned int bus_width; member
229 if (IS_ALIGNED(dst, mdma->bus_width) && in mdc_list_desc_config()
230 IS_ALIGNED(src, mdma->bus_width)) in mdc_list_desc_config()
231 max_burst = mdma->bus_width * mdma->max_burst_mult; in mdc_list_desc_config()
238 mdc_set_read_width(ldesc, mdma->bus_width); in mdc_list_desc_config()
246 mdc_set_write_width(ldesc, mdma->bus_width); in mdc_list_desc_config()
252 mdc_set_read_width(ldesc, mdma->bus_width); in mdc_list_desc_config()
253 mdc_set_write_width(ldesc, mdma->bus_width); in mdc_list_desc_config()
360 if (width > mchan->mdma->bus_width) in mdc_check_slave_width()
927 mdma->bus_width = in mdc_dma_probe()
[all …]
/linux/drivers/mmc/host/
A Dcavium.c826 int clk_period = 0, power_class = 10, bus_width = 0; in cvm_mmc_set_ios() local
854 switch (ios->bus_width) { in cvm_mmc_set_ios()
856 bus_width = 2; in cvm_mmc_set_ios()
859 bus_width = 1; in cvm_mmc_set_ios()
862 bus_width = 0; in cvm_mmc_set_ios()
867 if (ios->bus_width && ios->timing == MMC_TIMING_MMC_DDR52) in cvm_mmc_set_ios()
868 bus_width |= 4; in cvm_mmc_set_ios()
881 FIELD_PREP(MIO_EMM_SWITCH_BUS_WIDTH, bus_width) | in cvm_mmc_set_ios()
951 u32 id, cmd_skew = 0, dat_skew = 0, bus_width = 0; in cvm_mmc_of_parse() local
986 if (bus_width == 8) in cvm_mmc_of_parse()
[all …]
A Dmxs-mmc.c56 unsigned char bus_width; member
380 ctrl0 = BF_SSP(host->bus_width, CTRL0_BUS_WIDTH) | in mxs_mmc_adtc()
499 if (ios->bus_width == MMC_BUS_WIDTH_8) in mxs_mmc_set_ios()
500 host->bus_width = 2; in mxs_mmc_set_ios()
501 else if (ios->bus_width == MMC_BUS_WIDTH_4) in mxs_mmc_set_ios()
502 host->bus_width = 1; in mxs_mmc_set_ios()
504 host->bus_width = 0; in mxs_mmc_set_ios()
A Dsdhci-pltfm.c84 u32 bus_width; in sdhci_get_property() local
90 (device_property_read_u32(dev, "bus-width", &bus_width) == 0 && in sdhci_get_property()
91 bus_width == 1)) in sdhci_get_property()
A Dsdhci-pxav2.c125 u32 bus_width; in pxav2_get_mmc_pdata() local
135 of_property_read_u32(np, "bus-width", &bus_width); in pxav2_get_mmc_pdata()
136 if (bus_width == 8) in pxav2_get_mmc_pdata()
A Dtmio_mmc_core.c168 unsigned char bus_width) in tmio_mmc_set_bus_width() argument
174 if (bus_width == MMC_BUS_WIDTH_1) in tmio_mmc_set_bus_width()
176 else if (bus_width == MMC_BUS_WIDTH_8) in tmio_mmc_set_bus_width()
202 tmio_mmc_set_bus_width(host, host->mmc->ios.bus_width); in tmio_mmc_reset()
717 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4 || in tmio_mmc_start_data()
718 host->mmc->ios.bus_width == MMC_BUS_WIDTH_8) { in tmio_mmc_start_data()
977 tmio_mmc_set_bus_width(host, ios->bus_width); in tmio_mmc_set_ios()
981 tmio_mmc_set_bus_width(host, ios->bus_width); in tmio_mmc_set_ios()
/linux/drivers/staging/rts5208/
A Dsd.c1211 bus_width);
1304 bus_width);
1387 bus_width);
1492 u8 cmd[5], bus_width; local
1495 bus_width = SD_BUS_WIDTH_8;
1497 bus_width = SD_BUS_WIDTH_4;
1499 bus_width = SD_BUS_WIDTH_1;
1561 u8 cmd[5], bus_width; local
1568 bus_width = SD_BUS_WIDTH_4;
2209 u8 cmd[5], bus_width; local
[all …]
/linux/drivers/spi/
A Dspi-synquacer.c135 unsigned int bus_width; member
233 unsigned int speed, mode, bpw, cs, bus_width, transfer_mode; in synquacer_spi_config() local
245 bus_width = xfer->tx_nbits; in synquacer_spi_config()
248 bus_width = xfer->rx_nbits; in synquacer_spi_config()
259 bus_width == sspi->bus_width && bpw == sspi->bpw && in synquacer_spi_config()
341 val |= ((bus_width >> 1) << SYNQUACER_HSSPI_DMTRP_BUS_WIDTH_SHIFT); in synquacer_spi_config()
348 sspi->bus_width = bus_width; in synquacer_spi_config()
/linux/drivers/media/platform/sunxi/sun6i-csi/
A Dsun6i_csi.c62 && sdev->csi.v4l2_ep.bus.parallel.bus_width == 16) { in sun6i_csi_is_format_supported()
377 unsigned char bus_width; in sun6i_csi_setup_bus() local
387 bus_width = endpoint->bus.parallel.bus_width; in sun6i_csi_setup_bus()
408 cfg |= (bus_width == 16) ? CSI_IF_CFG_CSI_IF_YUV422_16BIT : in sun6i_csi_setup_bus()
427 cfg |= (bus_width == 16) ? CSI_IF_CFG_CSI_IF_BT1120 : in sun6i_csi_setup_bus()
442 switch (bus_width) { in sun6i_csi_setup_bus()
455 dev_warn(sdev->dev, "Unsupported bus width: %u\n", bus_width); in sun6i_csi_setup_bus()
/linux/drivers/staging/greybus/
A Dsdio.c594 u8 bus_width; in gb_mmc_set_ios() local
628 switch (ios->bus_width) { in gb_mmc_set_ios()
630 bus_width = GB_SDIO_BUS_WIDTH_1; in gb_mmc_set_ios()
634 bus_width = GB_SDIO_BUS_WIDTH_4; in gb_mmc_set_ios()
637 bus_width = GB_SDIO_BUS_WIDTH_8; in gb_mmc_set_ios()
640 request.bus_width = bus_width; in gb_mmc_set_ios()
/linux/drivers/gpu/drm/bridge/
A Dite-it66121.c216 u32 bus_width; member
275 if (ctx->bus_width == 12) in it66121_configure_input()
655 if (ctx->bus_width == 12) in it66121_bridge_atomic_get_input_bus_fmts()
768 max_clock = (ctx->bus_width == 12) ? 74250 : 148500; in it66121_bridge_mode_valid()
914 of_property_read_u32(ep, "bus-width", &ctx->bus_width); in it66121_probe()
917 if (ctx->bus_width != 12 && ctx->bus_width != 24) in it66121_probe()
A Dti-tfp410.c227 u32 bus_width = 24; in tfp410_parse_timings() local
252 of_property_read_u32(ep, "bus-width", &bus_width); in tfp410_parse_timings()
270 switch (bus_width) { in tfp410_parse_timings()
/linux/drivers/dma/xilinx/
A Dzynqmp_dma.c234 u32 bus_width; member
896 chan->bus_width = ZYNQMP_DMA_BUS_WIDTH_64; in zynqmp_dma_chan_probe()
899 err = of_property_read_u32(node, "xlnx,bus-width", &chan->bus_width); in zynqmp_dma_chan_probe()
905 if (chan->bus_width != ZYNQMP_DMA_BUS_WIDTH_64 && in zynqmp_dma_chan_probe()
906 chan->bus_width != ZYNQMP_DMA_BUS_WIDTH_128) { in zynqmp_dma_chan_probe()
1093 p->dst_addr_widths = BIT(zdev->chan->bus_width / 8); in zynqmp_dma_probe()
1094 p->src_addr_widths = BIT(zdev->chan->bus_width / 8); in zynqmp_dma_probe()
/linux/sound/soc/sprd/
A Dsprd-pcm-compress.c145 enum dma_slave_buswidth bus_width; in sprd_platform_compr_dma_config() local
171 bus_width = DMA_SLAVE_BUSWIDTH_4_BYTES; in sprd_platform_compr_dma_config()
183 bus_width = DMA_SLAVE_BUSWIDTH_2_BYTES; in sprd_platform_compr_dma_config()
202 config.src_addr_width = bus_width; in sprd_platform_compr_dma_config()
203 config.dst_addr_width = bus_width; in sprd_platform_compr_dma_config()
/linux/drivers/edac/
A Dfsl_ddr_edac.c281 u32 bus_width; in fsl_mc_check() local
308 bus_width = (ddr_in32(pdata->mc_vbase + FSL_MC_DDR_SDRAM_CFG) & in fsl_mc_check()
310 if (bus_width == 64) in fsl_mc_check()
333 if ((err_detect & DDR_EDE_SBE) && (bus_width == 64)) { in fsl_mc_check()

Completed in 146 milliseconds

123456