/freebsd/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_iores.c | 52 u_int bus_width; /**< data type byte width to be used member 77 bus_size_t size, u_int bus_width) in bhnd_nvram_iores_new() argument 83 switch (bus_width) { in bhnd_nvram_iores_new() 90 BHND_NV_LOG("invalid bus width %u\n", bus_width); in bhnd_nvram_iores_new() 117 if ((r_start + offset) % bus_width != 0) { in bhnd_nvram_iores_new() 119 "%u\n", (uintmax_t)r_start, (uintmax_t)offset, bus_width); in bhnd_nvram_iores_new() 123 if (size % bus_width != 0) { in bhnd_nvram_iores_new() 125 (uintmax_t)size, bus_width); in bhnd_nvram_iores_new() 135 iores->bus_width = bus_width; in bhnd_nvram_iores_new() 199 if (offset % iores->bus_width != 0) in bhnd_nvram_iores_validate_req() [all …]
|
H A D | bhnd_nvram_io.h | 60 u_int bus_width);
|
/freebsd/sys/dev/mmc/ |
H A D | mmc_helpers.c | 89 uint32_t bus_width, max_freq; in mmc_parse() local 91 bus_width = 0; in mmc_parse() 92 if (device_get_property(dev, "bus-width", &bus_width, in mmc_parse() 93 sizeof(bus_width), DEVICE_PROP_UINT32) <= 0) in mmc_parse() 94 bus_width = 1; in mmc_parse() 96 if (bus_width >= 4) in mmc_parse() 98 if (bus_width >= 8) in mmc_parse()
|
H A D | mmc.c | 94 enum mmc_bus_width bus_width; /* Bus width to use */ member 369 (ivar->bus_width == bus_width_4) ? 4 : in mmc_acquire_bus() 370 (ivar->bus_width == bus_width_8) ? 8 : 1, in mmc_acquire_bus() 380 mmcbr_set_bus_width(busdev, ivar->bus_width); in mmc_acquire_bus() 760 switch (ivar->bus_width) { in mmc_set_card_bus_width() 773 switch (ivar->bus_width) { in mmc_set_card_bus_width() 826 enum mmc_bus_width bus_width; in mmc_set_power_class() local 830 bus_width = ivar->bus_width; in mmc_set_power_class() 832 timing == bus_timing_normal || bus_width == bus_width_1) in mmc_set_power_class() 844 bus_width >= bus_width_4) in mmc_set_power_class() [all …]
|
H A D | mmcvar.h | 92 MMC_ACCESSOR(bus_width, BUS_WIDTH, int)
|
H A D | mmcbrvar.h | 89 MMCBR_ACCESSOR(bus_width, BUS_WIDTH, int) in MMCBR_ACCESSOR()
|
H A D | bridge.h | 128 enum mmc_bus_width bus_width; member
|
H A D | mmcreg.h | 697 uint8_t bus_width; member
|
/freebsd/sys/dev/mmc/host/ |
H A D | dwmmc.c | 878 ios->clock, ios->bus_width, ios->timing); in dwmmc_update_ios() 893 if (ios->bus_width == bus_width_8) in dwmmc_update_ios() 895 else if (ios->bus_width == bus_width_4) in dwmmc_update_ios() 1319 *(int *)result = sc->host.ios.bus_width; in dwmmc_read_ivar() 1378 sc->host.ios.bus_width = value; in dwmmc_write_ivar() 1471 ios->bus_width = new_ios->bus_width; in dwmmc_set_tran_settings() 1473 device_printf(sc->dev, "Bus width => %d\n", ios->bus_width); in dwmmc_set_tran_settings()
|
/freebsd/sys/dev/sdhci/ |
H A D | sdhci.c | 1379 if (ios->bus_width == bus_width_8) { 1382 } else if (ios->bus_width == bus_width_4) { 1385 } else if (ios->bus_width == bus_width_1) { 1389 panic("Invalid bus width: %d", ios->bus_width); 1514 ios->bus_width == bus_width_8) ? MMC_TUNING_LEN_HS200 : 2450 *result = slot->host.ios.bus_width; 2541 slot->host.ios.bus_width = value; 2794 ios->bus_width = new_ios->bus_width; 2796 slot_printf(slot, "Bus width => %d\n", ios->bus_width); 2830 __func__, ios->power_mode, ios->clock, ios->bus_width, ios->timing); [all …]
|
/freebsd/sys/dev/jedec_dimm/ |
H A D | jedec_dimm.c | 495 uint32_t bus_width; in jedec_dimm_capacity() local 563 bus_width = 1 << bus_width_byte; in jedec_dimm_capacity() 564 bus_width *= 8; in jedec_dimm_capacity() 637 *capacity_mb = sdram_capacity / 8 * bus_width / sdram_width * in jedec_dimm_capacity()
|
/freebsd/sys/arm/allwinner/ |
H A D | aw_mmc.c | 249 ios->bus_width = new_ios->bus_width; in aw_mmc_set_tran_settings() 251 device_printf(sc->aw_dev, "Bus width => %d\n", ios->bus_width); in aw_mmc_set_tran_settings() 1103 *(int *)result = sc->aw_host.ios.bus_width; 1167 sc->aw_host.ios.bus_width = value; 1299 switch (ios->bus_width) { 1374 ios->bus_width == bus_width_8)) {
|
/freebsd/lib/libcam/ |
H A D | camlib.c | 648 device->bus_width = spi->bus_width; in cam_real_open_device() 652 device->bus_width = 0; in cam_real_open_device()
|
H A D | camlib.h | 121 uint8_t bus_width; /* Negotiated bus width */ member
|
/freebsd/sys/dev/aic7xxx/ |
H A D | aic79xx.c | 145 u_int bus_width); 149 u_int bus_width, u_int ppr_options); 2977 u_int *bus_width, role_t role) in ahd_validate_width() argument 2979 switch (*bus_width) { in ahd_validate_width() 2983 *bus_width = MSG_EXT_WDTR_BUS_16_BIT; in ahd_validate_width() 2988 *bus_width = MSG_EXT_WDTR_BUS_8_BIT; in ahd_validate_width() 2993 *bus_width = MIN(tinfo->user.width, *bus_width); in ahd_validate_width() 2995 *bus_width = MIN(tinfo->goal.width, *bus_width); in ahd_validate_width() 3788 u_int bus_width) in ahd_construct_wdtr() argument 3793 ahd->msgout_buf[ahd->msgout_index++] = bus_width; in ahd_construct_wdtr() [all …]
|
H A D | aic79xx_osm.c | 789 &spi->bus_width, ROLE_UNKNOWN); in ahd_set_tran_settings() 790 ahd_set_width(ahd, &devinfo, spi->bus_width, in ahd_set_tran_settings() 821 if (spi->bus_width != MSG_EXT_WDTR_BUS_16_BIT) in ahd_set_tran_settings() 831 spi->bus_width, ROLE_UNKNOWN); in ahd_set_tran_settings() 892 spi->bus_width = tinfo->width; in ahd_get_tran_settings()
|
H A D | aic7xxx_osm.c | 670 &spi->bus_width, ROLE_UNKNOWN); in ahc_action() 671 ahc_set_width(ahc, &devinfo, spi->bus_width, in ahc_action() 708 if (spi->bus_width != MSG_EXT_WDTR_BUS_16_BIT) in ahc_action() 716 spi->bus_width, ROLE_UNKNOWN); in ahc_action() 873 spi->bus_width = tinfo->width; in ahc_get_tran_settings()
|
H A D | aic7xxx.h | 1292 u_int *bus_width,
|
H A D | aic79xx.h | 1502 u_int *bus_width,
|
/freebsd/sys/cam/scsi/ |
H A D | scsi_xpt.c | 2797 spi->bus_width = cur_spi->bus_width; in scsi_set_transfer_settings() 2799 spi->bus_width = 0; in scsi_set_transfer_settings() 2815 switch (spi->bus_width) { in scsi_set_transfer_settings() 2828 spi->bus_width = MSG_EXT_WDTR_BUS_16_BIT; in scsi_set_transfer_settings() 2835 spi->bus_width = MSG_EXT_WDTR_BUS_8_BIT; in scsi_set_transfer_settings() 2854 if (spi->bus_width == 0) in scsi_set_transfer_settings() 3067 *speed *= (0x01 << spi->bus_width); in _scsi_announce_periph() 3117 && spi->bus_width > 0) { in scsi_announce_periph_sbuf() 3123 sbuf_printf(sb, "%dbit)", 8 * (0x01 << spi->bus_width)); in scsi_announce_periph_sbuf()
|
/freebsd/sys/dev/rtsx/ |
H A D | rtsx.c | 1754 uint32_t bus_width; local 1758 bus_width = RTSX_BUS_WIDTH_1; 1761 bus_width = RTSX_BUS_WIDTH_4; 1764 bus_width = RTSX_BUS_WIDTH_8; 1769 RTSX_BITOP(sc, RTSX_SD_CFG1, RTSX_BUS_WIDTH_MASK, bus_width); 1777 device_printf(sc->rtsx_dev, "Setting bus width to %s\n", busw[bus_width]); 3003 ios->bus_width = new_ios->bus_width; 3006 device_printf(sc->rtsx_dev, "rtsx_set_tran_settings() - bus width: %d\n", ios->bus_width); 3075 *result = sc->rtsx_host.ios.bus_width; 3144 sc->rtsx_host.ios.bus_width = value; [all …]
|
/freebsd/sbin/camcontrol/ |
H A D | camcontrol.c | 1360 speed *= (0x01 << spi->bus_width); in camxferrate() 1409 && (spi->bus_width > 0)) { in camxferrate() 1416 fprintf(stdout, "%dbit)", 8 * (0x01 << spi->bus_width)); in camxferrate() 5300 (0x01 << spi->bus_width) * 8); in cts_print() 6104 int bus_width = -1; in ratecontrol() 6180 bus_width = strtol(optarg, NULL, 0); in ratecontrol() 6181 if (bus_width < 0) { in ratecontrol() 6182 warnx("bus width %d is < 0", bus_width); in ratecontrol() 6344 * The bus_width argument goes like this: in ratecontrol() 6352 if (spi && bus_width ! in ratecontrol() 6102 int bus_width = -1; ratecontrol() local [all...] |
/freebsd/sys/dev/sym/ |
H A D | sym_defs.h | 197 u_char bus_width; /* 0x08/0x10 */ member
|
/freebsd/sys/arm/ti/ |
H A D | ti_sdhci.c | 371 if (ios->bus_width == bus_width_8) in ti_sdhci_update_ios()
|
/freebsd/sys/cam/mmc/ |
H A D | mmc_da.c | 1138 cts->ios.bus_width = width; in sdda_set_bus_width() 1313 if (cts->ios.bus_width != bus_width_1) in sdda_start_init()
|