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

12

/freebsd-11.0-release/sys/dev/mmc/
H A Dmmcvar.h90 MMC_ACCESSOR(bus_width, BUS_WIDTH, int)
H A Dbridge.h118 enum mmc_bus_width bus_width; member in struct:mmc_ios
H A Dmmcbrvar.h86 MMCBR_ACCESSOR(bus_width, BUS_WIDTH, int)
H A Dmmc.c103 u_char bus_width; /* Bus width to use */ member in struct:mmc_ivars
310 (ivar->bus_width == bus_width_4) ? 4 :
311 (ivar->bus_width == bus_width_8) ? 8 : 1);
313 mmc_set_card_bus_width(sc, rca, ivar->bus_width);
314 mmcbr_set_bus_width(busdev, ivar->bus_width);
1087 sd_status->bus_width = mmc_get_bits(raw_sd_status, 512, 510, 2);
1276 (ivar->bus_width == bus_width_1 ? 1 :
1277 (ivar->bus_width == bus_width_4 ? 4 : 8)),
1332 ivar->bus_width = bus_width_1;
1407 ivar->bus_width
[all...]
H A Dmmcreg.h428 uint8_t bus_width; member in struct:mmc_sd_status
/freebsd-11.0-release/lib/libcam/
H A Dcamlib.h122 u_int8_t bus_width; /* Negotiated bus width */ member in struct:cam_device
H A Dcamlib.c642 device->bus_width = spi->bus_width;
646 device->bus_width = 0;
/freebsd-11.0-release/sys/arm/allwinner/
H A Da10_mmc.c155 uint32_t bus_width; local
257 if (OF_getencprop(node, "bus-width", &bus_width, sizeof(uint32_t)) <= 0)
258 bus_width = 1;
265 if (bus_width >= 4)
267 if (bus_width >= 8)
717 *(int *)result = sc->a10_host.ios.bus_width;
771 sc->a10_host.ios.bus_width = value;
873 switch (ios->bus_width) {
/freebsd-11.0-release/sys/arm/amlogic/aml8726/
H A Daml8726_mmc.c222 uint32_t bus_width; local
297 * on the mode) which is why bus_width is subtracted.
299 bus_width = (ios->bus_width == bus_width_4) ? 4 : 1;
300 nbits_per_pkg = block_size * 8 + 16 * bus_width - bus_width;
861 switch (ios->bus_width) {
945 *(int *)result = sc->host.ios.bus_width;
998 sc->host.ios.bus_width = value;
H A Daml8726_sdxc-m8.c1048 switch (ios->bus_width) {
1224 *(int *)result = sc->host.ios.bus_width;
1277 sc->host.ios.bus_width = value;
/freebsd-11.0-release/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 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 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.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.0-release/sys/dev/mmc/host/
H A Ddwmmc.c683 dprintf("Setting up clk %u bus_width %d\n",
684 ios->clock, ios->bus_width);
688 if (ios->bus_width == bus_width_8)
690 else if (ios->bus_width == bus_width_4)
1075 *(int *)result = sc->host.ios.bus_width;
1128 sc->host.ios.bus_width = value;
/freebsd-11.0-release/sys/dev/sdhci/
H A Dsdhci.c736 if (ios->bus_width == bus_width_8) {
739 } else if (ios->bus_width == bus_width_4) {
742 } else if (ios->bus_width == bus_width_1) {
746 panic("Invalid bus width: %d", ios->bus_width);
1394 *result = slot->host.ios.bus_width;
1448 slot->host.ios.bus_width = value;
/freebsd-11.0-release/sys/dev/buslogic/
H A Dbt.c1295 spi->bus_width = MSG_EXT_WDTR_BUS_16_BIT;
1297 spi->bus_width = MSG_EXT_WDTR_BUS_8_BIT;
2143 u_int bus_width; local
2185 bus_width = MSG_EXT_WDTR_BUS_8_BIT;
2194 bus_width = MSG_EXT_WDTR_BUS_16_BIT;
2210 bus_width = MSG_EXT_WDTR_BUS_16_BIT;
2247 spi->bus_width = bus_width;
/freebsd-11.0-release/sys/arm/lpc/
H A Dlpc_mmc.c552 *(int *)result = sc->lm_host.ios.bus_width;
605 sc->lm_host.ios.bus_width = value;
643 if (ios->bus_width == bus_width_4)
655 if (ios->bus_width == bus_width_4) {
/freebsd-11.0-release/sys/cam/scsi/
H A Dscsi_xpt.c2759 spi->bus_width = cur_spi->bus_width;
2761 spi->bus_width = 0;
2777 switch (spi->bus_width) {
2790 spi->bus_width = MSG_EXT_WDTR_BUS_16_BIT;
2797 spi->bus_width = MSG_EXT_WDTR_BUS_8_BIT;
2816 if (spi->bus_width == 0)
3030 speed *= (0x01 << spi->bus_width);
3067 && spi->bus_width > 0) {
3073 printf("%dbit)", 8 * (0x01 << spi->bus_width));
[all...]
/freebsd-11.0-release/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.0-release/sys/dev/nxge/include/
H A Dxgehal-device.h392 xge_hal_pci_bus_width_e bus_width; member in struct:__anon11196
799 xge_hal_pci_bus_width_e *bus_width);
/freebsd-11.0-release/sys/arm/at91/
H A Dat91_mci.c600 if (ios->bus_width == bus_width_4)
1282 *(int *)result = sc->host.ios.bus_width;
1348 sc->host.ios.bus_width = value;
/freebsd-11.0-release/sys/powerpc/mpc85xx/
H A Dfsl_sdhc.c1145 *(int *)result = host->ios.bus_width;
1192 host->ios.bus_width = value;
1243 set_bus_width(sc, ios->bus_width);
/freebsd-11.0-release/sbin/camcontrol/
H A Dcamcontrol.c1087 speed *= (0x01 << spi->bus_width);
1136 && (spi->bus_width > 0)) {
1143 fprintf(stdout, "%dbit)", 8 * (0x01 << spi->bus_width));
4759 (0x01 << spi->bus_width) * 8);
5488 int bus_width = -1; local
5564 bus_width = strtol(optarg, NULL, 0);
5565 if (bus_width < 0) {
5566 warnx("bus width %d is < 0", bus_width);
5748 * The bus_width argument goes like this:
5756 if (spi && bus_width !
[all...]
/freebsd-11.0-release/sys/dev/amr/
H A Damr_cam.c380 spi->bus_width = MSG_EXT_WDTR_BUS_32_BIT;

Completed in 224 milliseconds

12