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

12

/freebsd-11-stable/sys/dev/mmc/
H A Dmmcvar.h92 MMC_ACCESSOR(bus_width, BUS_WIDTH, int)
H A Dmmcbrvar.h89 MMCBR_ACCESSOR(bus_width, BUS_WIDTH, int)
H A Dmmc.c94 enum mmc_bus_width bus_width; /* Bus width to use */ member in struct:mmc_ivars
369 (ivar->bus_width == bus_width_4) ? 4 :
370 (ivar->bus_width == bus_width_8) ? 8 : 1,
380 mmcbr_set_bus_width(busdev, ivar->bus_width);
766 switch (ivar->bus_width) {
779 switch (ivar->bus_width) {
832 enum mmc_bus_width bus_width; local
836 bus_width = ivar->bus_width;
838 timing == bus_timing_normal || bus_width
[all...]
H A Dbridge.h128 enum mmc_bus_width bus_width; member in struct:mmc_ios
H A Dmmcreg.h570 uint8_t bus_width; member in struct:mmc_sd_status
/freebsd-11-stable/lib/libcam/
H A Dcamlib.h122 u_int8_t bus_width; /* Negotiated bus width */ member in struct:cam_device
H A Dcamlib.c647 device->bus_width = spi->bus_width;
651 device->bus_width = 0;
/freebsd-11-stable/sys/arm/allwinner/
H A Da10_mmc.c145 uint32_t bus_width; local
228 if (OF_getencprop(node, "bus-width", &bus_width, sizeof(uint32_t)) <= 0)
229 bus_width = 4;
236 if (bus_width >= 4)
238 if (bus_width >= 8)
673 *(int *)result = sc->a10_host.ios.bus_width;
727 sc->a10_host.ios.bus_width = value;
804 switch (ios->bus_width) {
/freebsd-11-stable/sys/arm/amlogic/aml8726/
H A Daml8726_mmc.c220 uint32_t bus_width; local
295 * on the mode) which is why bus_width is subtracted.
297 bus_width = (ios->bus_width == bus_width_4) ? 4 : 1;
298 nbits_per_pkg = block_size * 8 + 16 * bus_width - bus_width;
859 switch (ios->bus_width) {
943 *(int *)result = sc->host.ios.bus_width;
996 sc->host.ios.bus_width = value;
H A Daml8726_sdxc-m8.c1047 switch (ios->bus_width) {
1223 *(int *)result = sc->host.ios.bus_width;
1276 sc->host.ios.bus_width = value;
/freebsd-11-stable/sys/dev/jedec_dimm/
H A Djedec_dimm.c421 uint32_t bus_width; local
451 device_printf(sc->dev, "failed to read bus_width: %d\n", rc);
491 bus_width = 1 << bus_width_byte;
492 bus_width *= 8;
565 *capacity_mb = sdram_capacity / 8 * bus_width / sdram_width *
/freebsd-11-stable/sys/dev/aic7xxx/
H A Daic7xxx.c178 u_int bus_width);
182 u_int bus_width, u_int ppr_options);
1836 u_int *bus_width, role_t role)
1838 switch (*bus_width) {
1842 *bus_width = MSG_EXT_WDTR_BUS_16_BIT;
1847 *bus_width = MSG_EXT_WDTR_BUS_8_BIT;
1852 *bus_width = MIN(tinfo->user.width, *bus_width);
1854 *bus_width = MIN(tinfo->goal.width, *bus_width);
1835 ahc_validate_width(struct ahc_softc *ahc, struct ahc_initiator_tinfo *tinfo, u_int *bus_width, role_t role) argument
2496 ahc_construct_wdtr(struct ahc_softc *ahc, struct ahc_devinfo *devinfo, u_int bus_width) argument
2516 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) argument
3212 u_int bus_width; local
3311 u_int bus_width; local
[all...]
H A Daic7xxx_osm.c667 &spi->bus_width, ROLE_UNKNOWN);
668 ahc_set_width(ahc, &devinfo, spi->bus_width,
705 if (spi->bus_width != MSG_EXT_WDTR_BUS_16_BIT)
713 spi->bus_width, ROLE_UNKNOWN);
871 spi->bus_width = tinfo->width;
H A Daic79xx_osm.c784 &spi->bus_width, ROLE_UNKNOWN);
785 ahd_set_width(ahd, &devinfo, spi->bus_width,
816 if (spi->bus_width != MSG_EXT_WDTR_BUS_16_BIT)
826 spi->bus_width, ROLE_UNKNOWN);
887 spi->bus_width = tinfo->width;
H A Daic79xx.c151 u_int bus_width);
155 u_int bus_width, u_int ppr_options);
3002 u_int *bus_width, role_t role)
3004 switch (*bus_width) {
3008 *bus_width = MSG_EXT_WDTR_BUS_16_BIT;
3013 *bus_width = MSG_EXT_WDTR_BUS_8_BIT;
3018 *bus_width = MIN(tinfo->user.width, *bus_width);
3020 *bus_width = MIN(tinfo->goal.width, *bus_width);
3001 ahd_validate_width(struct ahd_softc *ahd, struct ahd_initiator_tinfo *tinfo, u_int *bus_width, role_t role) argument
3818 ahd_construct_wdtr(struct ahd_softc *ahd, struct ahd_devinfo *devinfo, u_int bus_width) argument
3838 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) argument
4415 u_int bus_width; local
4513 u_int bus_width; local
[all...]
/freebsd-11-stable/sys/dev/mmc/host/
H A Ddwmmc.c680 dprintf("Setting up clk %u bus_width %d\n",
681 ios->clock, ios->bus_width);
685 if (ios->bus_width == bus_width_8)
687 else if (ios->bus_width == bus_width_4)
1072 *(int *)result = sc->host.ios.bus_width;
1125 sc->host.ios.bus_width = value;
/freebsd-11-stable/sys/dev/buslogic/
H A Dbt.c1291 spi->bus_width = MSG_EXT_WDTR_BUS_16_BIT;
1293 spi->bus_width = MSG_EXT_WDTR_BUS_8_BIT;
2139 u_int bus_width; local
2181 bus_width = MSG_EXT_WDTR_BUS_8_BIT;
2190 bus_width = MSG_EXT_WDTR_BUS_16_BIT;
2206 bus_width = MSG_EXT_WDTR_BUS_16_BIT;
2243 spi->bus_width = bus_width;
/freebsd-11-stable/sys/arm/lpc/
H A Dlpc_mmc.c539 *(int *)result = sc->lm_host.ios.bus_width;
592 sc->lm_host.ios.bus_width = value;
630 if (ios->bus_width == bus_width_4)
642 if (ios->bus_width == bus_width_4) {
/freebsd-11-stable/sys/cam/scsi/
H A Dscsi_xpt.c2798 spi->bus_width = cur_spi->bus_width;
2800 spi->bus_width = 0;
2816 switch (spi->bus_width) {
2829 spi->bus_width = MSG_EXT_WDTR_BUS_16_BIT;
2836 spi->bus_width = MSG_EXT_WDTR_BUS_8_BIT;
2855 if (spi->bus_width == 0)
3069 speed *= (0x01 << spi->bus_width);
3106 && spi->bus_width > 0) {
3112 printf("%dbit)", 8 * (0x01 << spi->bus_width));
[all...]
/freebsd-11-stable/sys/dev/advansys/
H A Dadwcam.c508 switch (spi->bus_width) {
612 spi->bus_width = MSG_EXT_WDTR_BUS_16_BIT;
614 spi->bus_width = MSG_EXT_WDTR_BUS_8_BIT;
641 spi->bus_width = MSG_EXT_WDTR_BUS_16_BIT;
643 spi->bus_width = MSG_EXT_WDTR_BUS_8_BIT;
/freebsd-11-stable/sys/dev/nxge/include/
H A Dxgehal-device.h392 xge_hal_pci_bus_width_e bus_width; member in struct:__anon11198
799 xge_hal_pci_bus_width_e *bus_width);
/freebsd-11-stable/sys/arm/at91/
H A Dat91_mci.c590 if (ios->bus_width == bus_width_4)
1272 *(int *)result = sc->host.ios.bus_width;
1338 sc->host.ios.bus_width = value;
/freebsd-11-stable/sys/dev/sdhci/
H A Dsdhci.c1185 if (ios->bus_width == bus_width_8) {
1188 } else if (ios->bus_width == bus_width_4) {
1191 } else if (ios->bus_width == bus_width_1) {
1195 panic("Invalid bus width: %d", ios->bus_width);
1317 ios->bus_width == bus_width_8) ? MMC_TUNING_LEN_HS200 :
2149 *result = slot->host.ios.bus_width;
2238 slot->host.ios.bus_width = value;
/freebsd-11-stable/sbin/camcontrol/
H A Dcamcontrol.c1109 speed *= (0x01 << spi->bus_width);
1158 && (spi->bus_width > 0)) {
1165 fprintf(stdout, "%dbit)", 8 * (0x01 << spi->bus_width));
5062 (0x01 << spi->bus_width) * 8);
5835 int bus_width = -1; local
5911 bus_width = strtol(optarg, NULL, 0);
5912 if (bus_width < 0) {
5913 warnx("bus width %d is < 0", bus_width);
6076 * The bus_width argument goes like this:
6084 if (spi && bus_width !
[all...]
/freebsd-11-stable/sys/dev/amr/
H A Damr_cam.c380 spi->bus_width = MSG_EXT_WDTR_BUS_32_BIT;

Completed in 541 milliseconds

12