| /freebsd-13.1/sys/dev/bhnd/nvram/ |
| H A D | bhnd_nvram_iores.c | 80 bus_size_t size, u_int bus_width) in bhnd_nvram_iores_new() argument 86 switch (bus_width) { in bhnd_nvram_iores_new() 93 BHND_NV_LOG("invalid bus width %u\n", bus_width); in bhnd_nvram_iores_new() 120 if ((r_start + offset) % bus_width != 0) { in bhnd_nvram_iores_new() 126 if (size % bus_width != 0) { in bhnd_nvram_iores_new() 128 (uintmax_t)size, bus_width); in bhnd_nvram_iores_new() 138 iores->bus_width = bus_width; in bhnd_nvram_iores_new() 202 if (offset % iores->bus_width != 0) in bhnd_nvram_iores_validate_req() 207 if (*nbytes < iores->bus_width && *nbytes % iores->bus_width != 0) in bhnd_nvram_iores_validate_req() 240 switch (iores->bus_width) { in bhnd_nvram_iores_read() [all …]
|
| H A D | bhnd_nvram_io.h | 61 u_int bus_width);
|
| /freebsd-13.1/sys/dev/mmc/ |
| H A D | mmc.c | 769 switch (ivar->bus_width) { in mmc_set_card_bus_width() 782 switch (ivar->bus_width) { in mmc_set_card_bus_width() 835 enum mmc_bus_width bus_width; in mmc_set_power_class() local 839 bus_width = ivar->bus_width; in mmc_set_power_class() 853 bus_width >= bus_width_4) in mmc_set_power_class() 873 bus_width >= bus_width_4) in mmc_set_power_class() 878 if (bus_width == bus_width_8) in mmc_set_power_class() 890 if (bus_width == bus_width_8) in mmc_set_power_class() 1641 ivar->bus_width = bus_width_1; in mmc_discover_cards() 1743 ivar->bus_width = bus_width_4; in mmc_discover_cards() [all …]
|
| H A D | mmc_fdt_helpers.c | 104 uint32_t bus_width; in mmc_fdt_parse() local 112 if (OF_getencprop(node, "bus-width", &bus_width, sizeof(uint32_t)) <= 0) in mmc_fdt_parse() 113 bus_width = 1; in mmc_fdt_parse() 115 if (bus_width >= 4) in mmc_fdt_parse() 117 if (bus_width >= 8) in mmc_fdt_parse()
|
| H A D | mmcvar.h | 94 MMC_ACCESSOR(bus_width, BUS_WIDTH, int)
|
| H A D | mmcbrvar.h | 91 MMCBR_ACCESSOR(bus_width, BUS_WIDTH, int) in MMCBR_ACCESSOR()
|
| H A D | bridge.h | 130 enum mmc_bus_width bus_width; member
|
| H A D | mmcreg.h | 687 uint8_t bus_width; member
|
| /freebsd-13.1/sys/dev/jedec_dimm/ |
| H A D | jedec_dimm.c | 421 uint32_t bus_width; in jedec_dimm_capacity() local 491 bus_width = 1 << bus_width_byte; in jedec_dimm_capacity() 492 bus_width *= 8; in jedec_dimm_capacity() 565 *capacity_mb = sdram_capacity / 8 * bus_width / sdram_width * in jedec_dimm_capacity()
|
| /freebsd-13.1/sys/dev/aic7xxx/ |
| H A D | aic7xxx.c | 180 u_int bus_width); 1834 switch (*bus_width) { in ahc_validate_width() 1848 *bus_width = MIN(tinfo->user.width, *bus_width); in ahc_validate_width() 1850 *bus_width = MIN(tinfo->goal.width, *bus_width); in ahc_validate_width() 2489 u_int bus_width) in ahc_construct_wdtr() argument 3200 u_int bus_width; in ahc_parse_msg() local 3221 saved_width = bus_width; in ahc_parse_msg() 3246 bus_width = 0; in ahc_parse_msg() 3298 u_int bus_width; in ahc_parse_msg() local 3341 if (bus_width == 0) in ahc_parse_msg() [all …]
|
| H A D | aic79xx.c | 153 u_int bus_width); 2989 switch (*bus_width) { in ahd_validate_width() 3003 *bus_width = MIN(tinfo->user.width, *bus_width); in ahd_validate_width() 3005 *bus_width = MIN(tinfo->goal.width, *bus_width); in ahd_validate_width() 3798 u_int bus_width) in ahd_construct_wdtr() argument 4391 u_int bus_width; in ahd_parse_msg() local 4412 saved_width = bus_width; in ahd_parse_msg() 4437 bus_width = 0; in ahd_parse_msg() 4488 u_int bus_width; in ahd_parse_msg() local 4529 if (bus_width == 0) in ahd_parse_msg() [all …]
|
| H A D | aic79xx_osm.c | 778 &spi->bus_width, ROLE_UNKNOWN); in ahd_set_tran_settings() 779 ahd_set_width(ahd, &devinfo, spi->bus_width, in ahd_set_tran_settings() 810 if (spi->bus_width != MSG_EXT_WDTR_BUS_16_BIT) in ahd_set_tran_settings() 820 spi->bus_width, ROLE_UNKNOWN); in ahd_set_tran_settings() 881 spi->bus_width = tinfo->width; in ahd_get_tran_settings()
|
| H A D | aic7xxx_osm.c | 661 &spi->bus_width, ROLE_UNKNOWN); in ahc_action() 662 ahc_set_width(ahc, &devinfo, spi->bus_width, in ahc_action() 699 if (spi->bus_width != MSG_EXT_WDTR_BUS_16_BIT) in ahc_action() 707 spi->bus_width, ROLE_UNKNOWN); in ahc_action() 864 spi->bus_width = tinfo->width; in ahc_get_tran_settings()
|
| /freebsd-13.1/sys/dev/mmc/host/ |
| H A D | dwmmc.c | 902 ios->clock, ios->bus_width, ios->timing); in dwmmc_update_ios() 906 if (ios->bus_width == bus_width_8) in dwmmc_update_ios() 908 else if (ios->bus_width == bus_width_4) in dwmmc_update_ios() 1327 *(int *)result = sc->host.ios.bus_width; in dwmmc_read_ivar() 1386 sc->host.ios.bus_width = value; in dwmmc_write_ivar() 1479 ios->bus_width = new_ios->bus_width; in dwmmc_set_tran_settings() 1481 device_printf(sc->dev, "Bus width => %d\n", ios->bus_width); in dwmmc_set_tran_settings()
|
| /freebsd-13.1/sys/dev/sdhci/ |
| H A D | sdhci.c | 1257 if (ios->bus_width == bus_width_8) { 1260 } else if (ios->bus_width == bus_width_4) { 1263 } else if (ios->bus_width == bus_width_1) { 1267 panic("Invalid bus width: %d", ios->bus_width); 2326 *result = slot->host.ios.bus_width; 2417 slot->host.ios.bus_width = value; 2670 ios->bus_width = new_ios->bus_width; 2716 if (ios->bus_width == bus_width_8) { 2719 } else if (ios->bus_width == bus_width_4) { 2722 } else if (ios->bus_width == bus_width_1) { [all …]
|
| /freebsd-13.1/sys/arm/allwinner/ |
| H A D | aw_mmc.c | 251 ios->bus_width = new_ios->bus_width; in aw_mmc_set_tran_settings() 253 device_printf(sc->aw_dev, "Bus width => %d\n", ios->bus_width); in aw_mmc_set_tran_settings() 1102 *(int *)result = sc->aw_host.ios.bus_width; 1166 sc->aw_host.ios.bus_width = value; 1298 switch (ios->bus_width) { 1373 ios->bus_width == bus_width_8)) {
|
| /freebsd-13.1/lib/libcam/ |
| H A D | camlib.c | 651 device->bus_width = spi->bus_width; in cam_real_open_device() 655 device->bus_width = 0; in cam_real_open_device()
|
| H A D | camlib.h | 124 u_int8_t bus_width; /* Negotiated bus width */ member
|
| /freebsd-13.1/sys/cam/scsi/ |
| H A D | scsi_xpt.c | 2792 spi->bus_width = cur_spi->bus_width; in scsi_set_transfer_settings() 2794 spi->bus_width = 0; in scsi_set_transfer_settings() 2810 switch (spi->bus_width) { in scsi_set_transfer_settings() 2823 spi->bus_width = MSG_EXT_WDTR_BUS_16_BIT; in scsi_set_transfer_settings() 2830 spi->bus_width = MSG_EXT_WDTR_BUS_8_BIT; in scsi_set_transfer_settings() 2849 if (spi->bus_width == 0) in scsi_set_transfer_settings() 3060 *speed *= (0x01 << spi->bus_width); in _scsi_announce_periph() 3109 && spi->bus_width > 0) { in scsi_announce_periph_sbuf() 3115 sbuf_printf(sb, "%dbit)", 8 * (0x01 << spi->bus_width)); in scsi_announce_periph_sbuf() 3165 && spi->bus_width > 0) { in scsi_announce_periph() [all …]
|
| /freebsd-13.1/sys/dev/rtsx/ |
| H A D | rtsx.c | 1716 uint32_t bus_width; local 1720 bus_width = RTSX_BUS_WIDTH_1; 1723 bus_width = RTSX_BUS_WIDTH_4; 1726 bus_width = RTSX_BUS_WIDTH_8; 1731 RTSX_BITOP(sc, RTSX_SD_CFG1, RTSX_BUS_WIDTH_MASK, bus_width); 1739 device_printf(sc->rtsx_dev, "Setting bus width to %s\n", busw[bus_width]); 2964 ios->bus_width = new_ios->bus_width; 3036 *result = sc->rtsx_host.ios.bus_width; 3105 sc->rtsx_host.ios.bus_width = value; 3166 sc->rtsx_ios_bus_width = ios->bus_width; [all …]
|
| /freebsd-13.1/sys/mips/ingenic/ |
| H A D | jz4780_mmc.c | 751 *(int *)result = sc->sc_host.ios.bus_width; in jz4780_mmc_read_ivar() 817 sc->sc_host.ios.bus_width = value; in jz4780_mmc_write_ivar() 915 switch (ios->bus_width) { in jz4780_mmc_update_ios()
|
| /freebsd-13.1/sbin/camcontrol/ |
| H A D | camcontrol.c | 1306 && (spi->bus_width > 0)) { in camxferrate() 6016 int bus_width = -1; in ratecontrol() local 6093 if (bus_width < 0) { in ratecontrol() 6265 if (spi && bus_width != -1) { in ratecontrol() 6272 if ((bus_width == 16) in ratecontrol() 6277 } else if ((bus_width == 32) in ratecontrol() 6282 } else if ((bus_width != 8) in ratecontrol() 6283 && (bus_width != 16) in ratecontrol() 6284 && (bus_width != 32)) { in ratecontrol() 6290 spi->bus_width = bus_width >> 4; in ratecontrol() [all …]
|
| /freebsd-13.1/sys/dev/amr/ |
| H A D | amr_cam.c | 379 spi->bus_width = MSG_EXT_WDTR_BUS_32_BIT; in amr_cam_action()
|
| /freebsd-13.1/sys/arm/ti/ |
| H A D | ti_sdhci.c | 373 if (ios->bus_width == bus_width_8) in ti_sdhci_update_ios()
|
| /freebsd-13.1/sys/dev/sym/ |
| H A D | sym_defs.h | 198 u_char bus_width; /* 0x08/0x10 */ member
|