Home
last modified time | relevance | path

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

1234

/linux/drivers/media/platform/rockchip/rkisp1/
H A Drkisp1-common.c23 .bus_width = 10,
30 .bus_width = 10,
37 .bus_width = 10,
44 .bus_width = 10,
51 .bus_width = 12,
58 .bus_width = 12,
65 .bus_width = 12,
72 .bus_width = 12,
79 .bus_width = 8,
86 .bus_width = 8,
[all …]
/linux/drivers/mtd/lpddr/
H 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()
140 writel_relaxed(build_mr_cfgmask(pcm_data->bus_width) | 0x18, in ow_enable()
155 writel_relaxed(build_mr_cfgmask(pcm_data->bus_width) | 0x18, in ow_disable()
172 u_int sr_ok_datamask = build_sr_ok_datamask(pcm_data->bus_width); in lpddr2_nvm_do_op()
191 if (pcm_data->bus_width == 0x0004) { /* 2x16 devices stacked */ in lpddr2_nvm_do_op()
[all …]
/linux/drivers/memory/
H 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/mmc/core/
H A Dmmc.c706 static int mmc_compare_ext_csds(struct mmc_card *card, unsigned bus_width) in mmc_compare_ext_csds() argument
711 if (bus_width == MMC_BUS_WIDTH_1) in mmc_compare_ext_csds()
883 unsigned int bus_width) in __mmc_select_powerclass() argument
895 pwrclass_val = (bus_width <= EXT_CSD_BUS_WIDTH_8) ? in __mmc_select_powerclass()
913 pwrclass_val = (bus_width <= EXT_CSD_BUS_WIDTH_8) ? in __mmc_select_powerclass()
917 pwrclass_val = (bus_width == EXT_CSD_DDR_BUS_WIDTH_8) ? in __mmc_select_powerclass()
927 if (bus_width & (EXT_CSD_BUS_WIDTH_8 | EXT_CSD_DDR_BUS_WIDTH_8)) in __mmc_select_powerclass()
948 u32 bus_width, ext_csd_bits; in mmc_select_powerclass() local
955 bus_width = host->ios.bus_width; in mmc_select_powerclass()
957 if (bus_width == MMC_BUS_WIDTH_1) in mmc_select_powerclass()
[all …]
H A Dhost.c275 u32 bus_width, drv_type, cd_debounce_delay_ms; in mmc_of_parse() local
282 if (device_property_read_u32(dev, "bus-width", &bus_width) < 0) { in mmc_of_parse()
285 bus_width = 1; in mmc_of_parse()
288 switch (bus_width) { in mmc_of_parse()
299 "Invalid \"bus-width\" value %u!\n", bus_width); in mmc_of_parse()
H A Ddebugfs.c120 ios->bus_width, 1 << ios->bus_width); in mmc_ios_show()
/linux/drivers/gpu/drm/atmel-hlcdc/
H A Datmel_hlcdc_output.c44 u32 bus_width; in atmel_hlcdc_of_bus_fmt() local
47 ret = of_property_read_u32(ep, "bus-width", &bus_width); in atmel_hlcdc_of_bus_fmt()
53 switch (bus_width) { in atmel_hlcdc_of_bus_fmt()
/linux/include/linux/phy/
H A Dphy.h141 u32 bus_width; member
255 return phy->attrs.bus_width; in phy_get_bus_width()
257 static inline void phy_set_bus_width(struct phy *phy, int bus_width) in phy_set_bus_width() argument
259 phy->attrs.bus_width = bus_width; in phy_set_bus_width()
443 static inline void phy_set_bus_width(struct phy *phy, int bus_width) in phy_set_bus_width() argument
/linux/drivers/mmc/host/
H 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
985 of_property_read_u32(node, "cavium,bus-max-width", &bus_width); in cvm_mmc_of_parse()
[all …]
H A Dsdhci-pltfm.c76 u32 bus_width; in sdhci_get_property() local
82 (device_property_read_u32(dev, "bus-width", &bus_width) == 0 && in sdhci_get_property()
83 bus_width == 1)) in sdhci_get_property()
H A Dsdhci-pxav2.c223 u32 bus_width; in pxav2_get_mmc_pdata() local
233 of_property_read_u32(np, "bus-width", &bus_width); in pxav2_get_mmc_pdata()
234 if (bus_width == 8) in pxav2_get_mmc_pdata()
H A Dtmio_mmc_core.c169 unsigned char bus_width) in tmio_mmc_set_bus_width() argument
175 if (bus_width == MMC_BUS_WIDTH_1) in tmio_mmc_set_bus_width()
177 else if (bus_width == MMC_BUS_WIDTH_8) in tmio_mmc_set_bus_width()
212 tmio_mmc_set_bus_width(host, host->mmc->ios.bus_width); in tmio_mmc_reset()
738 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4 || in tmio_mmc_start_data()
739 host->mmc->ios.bus_width == MMC_BUS_WIDTH_8) { in tmio_mmc_start_data()
986 tmio_mmc_set_bus_width(host, ios->bus_width); in tmio_mmc_set_ios()
990 tmio_mmc_set_bus_width(host, ios->bus_width); in tmio_mmc_set_ios()
H A Dsdhci-xenon.h88 unsigned char bus_width; member
/linux/drivers/media/platform/sunxi/sun6i-csi/
H A Dsun6i_csi_bridge.c235 unsigned char bus_width = endpoint->bus.parallel.bus_width; in sun6i_csi_bridge_configure_parallel() local
253 if (bus_width == 16) in sun6i_csi_bridge_configure_parallel()
279 if (bus_width == 16) in sun6i_csi_bridge_configure_parallel()
299 switch (bus_width) { in sun6i_csi_bridge_configure_parallel()
312 dev_warn(dev, "unsupported bus width: %u\n", bus_width); in sun6i_csi_bridge_configure_parallel()
/linux/drivers/staging/greybus/
H 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/sound/soc/sprd/
H 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/dma/
H A Dloongson1-apb-dma.c71 unsigned int bus_width; member
230 chan->bus_width = chan->dst_addr_width; in ls1x_dma_prep_lli()
235 chan->bus_width = chan->src_addr_width; in ls1x_dma_prep_lli()
265 lli->hw[LS1X_DMADESC_LENGTH] = buf_len / chan->bus_width; in ls1x_dma_prep_lli()
459 chan->bus_width; in ls1x_dma_tx_status()
/linux/include/media/drv-intf/
H A Drenesas-ceu.h15 unsigned char bus_width; member
/linux/include/linux/platform_data/
H A Dgpio-htc-egpio.h41 int bus_width; member
/linux/drivers/media/platform/samsung/exynos4-is/
H A Dfimc-reg.c588 u16 bus_width; member
603 u32 bus_width, cfg = 0; in fimc_hw_set_camera_source() local
617 bus_width = pix_desc[i].bus_width; in fimc_hw_set_camera_source()
630 if (bus_width == 8) in fimc_hw_set_camera_source()
632 else if (bus_width == 16) in fimc_hw_set_camera_source()
/linux/drivers/gpu/drm/bridge/
H A Dti-tfp410.c267 u32 bus_width = 24; in tfp410_parse_timings() local
292 of_property_read_u32(ep, "bus-width", &bus_width); in tfp410_parse_timings()
310 switch (bus_width) { in tfp410_parse_timings()
/linux/drivers/gpio/
H A Dgpio-htc-egpio.c289 if ((pdata->bus_width != 16) && (pdata->bus_width != 32)) in egpio_probe()
292 ei->bus_shift = fls(pdata->bus_width - 1) - 3; in egpio_probe()
/linux/drivers/scsi/aic7xxx/
H A Daic7xxx_core.c166 u_int bus_width);
170 u_int bus_width, u_int ppr_options);
2396 u_int *bus_width, role_t role) in ahc_validate_width() argument
2398 switch (*bus_width) { in ahc_validate_width()
2402 *bus_width = MSG_EXT_WDTR_BUS_16_BIT; in ahc_validate_width()
2407 *bus_width = MSG_EXT_WDTR_BUS_8_BIT; in ahc_validate_width()
2412 *bus_width = min((u_int)tinfo->user.width, *bus_width); in ahc_validate_width()
2414 *bus_width = min((u_int)tinfo->goal.width, *bus_width); in ahc_validate_width()
3056 u_int bus_width) in ahc_construct_wdtr() argument
3059 ahc->msgout_buf + ahc->msgout_index, bus_width); in ahc_construct_wdtr()
[all …]
/linux/drivers/media/i2c/
H A Dmax9286.c191 u32 bus_width; member
1152 if (priv->bus_width) { in max9286_setup()
1155 if (priv->bus_width == 27) in max9286_setup()
1157 else if (priv->bus_width == 32) in max9286_setup()
1489 of_property_read_u32(dev->of_node, "maxim,bus-width", &priv->bus_width); in max9286_parse_dt()
1490 switch (priv->bus_width) { in max9286_parse_dt()
1502 priv->bus_width); in max9286_parse_dt()
/linux/drivers/gpu/drm/stm/
H A Dltdc.h19 u32 bus_width; /* bus width (32 or 64 bits) */ member

1234