| /freebsd-14.2/sys/dev/bhnd/nvram/ |
| H A D | bhnd_nvram_iores.c | 78 bus_size_t size, u_int bus_width) in bhnd_nvram_iores_new() argument 84 switch (bus_width) { in bhnd_nvram_iores_new() 91 BHND_NV_LOG("invalid bus width %u\n", bus_width); in bhnd_nvram_iores_new() 118 if ((r_start + offset) % bus_width != 0) { in bhnd_nvram_iores_new() 124 if (size % bus_width != 0) { in bhnd_nvram_iores_new() 126 (uintmax_t)size, bus_width); in bhnd_nvram_iores_new() 136 iores->bus_width = bus_width; in bhnd_nvram_iores_new() 200 if (offset % iores->bus_width != 0) in bhnd_nvram_iores_validate_req() 205 if (*nbytes < iores->bus_width && *nbytes % iores->bus_width != 0) in bhnd_nvram_iores_validate_req() 238 switch (iores->bus_width) { in bhnd_nvram_iores_read() [all …]
|
| H A D | bhnd_nvram_io.h | 60 u_int bus_width);
|
| /freebsd-14.2/sys/dev/mmc/ |
| H A D | mmc_helpers.c | 90 uint32_t bus_width, max_freq; in mmc_parse() local 92 bus_width = 0; in mmc_parse() 93 if (device_get_property(dev, "bus-width", &bus_width, in mmc_parse() 94 sizeof(bus_width), DEVICE_PROP_UINT32) <= 0) in mmc_parse() 95 bus_width = 1; in mmc_parse() 97 if (bus_width >= 4) in mmc_parse() 99 if (bus_width >= 8) in mmc_parse()
|
| H A D | mmc.c | 761 switch (ivar->bus_width) { in mmc_set_card_bus_width() 774 switch (ivar->bus_width) { in mmc_set_card_bus_width() 827 enum mmc_bus_width bus_width; in mmc_set_power_class() local 831 bus_width = ivar->bus_width; in mmc_set_power_class() 845 bus_width >= bus_width_4) in mmc_set_power_class() 865 bus_width >= bus_width_4) in mmc_set_power_class() 870 if (bus_width == bus_width_8) in mmc_set_power_class() 882 if (bus_width == bus_width_8) in mmc_set_power_class() 1633 ivar->bus_width = bus_width_1; in mmc_discover_cards() 1735 ivar->bus_width = bus_width_4; in mmc_discover_cards() [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-14.2/sys/dev/aic7xxx/ |
| H A D | aic7xxx.c | 179 u_int bus_width); 1833 switch (*bus_width) { in ahc_validate_width() 1847 *bus_width = MIN(tinfo->user.width, *bus_width); in ahc_validate_width() 1849 *bus_width = MIN(tinfo->goal.width, *bus_width); in ahc_validate_width() 2488 u_int bus_width) in ahc_construct_wdtr() argument 3199 u_int bus_width; in ahc_parse_msg() local 3220 saved_width = bus_width; in ahc_parse_msg() 3245 bus_width = 0; in ahc_parse_msg() 3297 u_int bus_width; in ahc_parse_msg() local 3340 if (bus_width == 0) in ahc_parse_msg() [all …]
|
| H A D | aic79xx.c | 152 u_int bus_width); 2988 switch (*bus_width) { in ahd_validate_width() 3002 *bus_width = MIN(tinfo->user.width, *bus_width); in ahd_validate_width() 3004 *bus_width = MIN(tinfo->goal.width, *bus_width); in ahd_validate_width() 3797 u_int bus_width) in ahd_construct_wdtr() argument 4390 u_int bus_width; in ahd_parse_msg() local 4411 saved_width = bus_width; in ahd_parse_msg() 4436 bus_width = 0; in ahd_parse_msg() 4487 u_int bus_width; in ahd_parse_msg() local 4528 if (bus_width == 0) in ahd_parse_msg() [all …]
|
| H A D | aic79xx_osm.c | 790 &spi->bus_width, ROLE_UNKNOWN); in ahd_set_tran_settings() 791 ahd_set_width(ahd, &devinfo, spi->bus_width, in ahd_set_tran_settings() 822 if (spi->bus_width != MSG_EXT_WDTR_BUS_16_BIT) in ahd_set_tran_settings() 832 spi->bus_width, ROLE_UNKNOWN); in ahd_set_tran_settings() 893 spi->bus_width = tinfo->width; in ahd_get_tran_settings()
|
| H A D | aic7xxx_osm.c | 671 &spi->bus_width, ROLE_UNKNOWN); in ahc_action() 672 ahc_set_width(ahc, &devinfo, spi->bus_width, in ahc_action() 709 if (spi->bus_width != MSG_EXT_WDTR_BUS_16_BIT) in ahc_action() 717 spi->bus_width, ROLE_UNKNOWN); in ahc_action() 874 spi->bus_width = tinfo->width; in ahc_get_tran_settings()
|
| H A D | aic7xxx.h | 1296 u_int *bus_width,
|
| H A D | aic79xx.h | 1506 u_int *bus_width,
|
| /freebsd-14.2/sys/dev/mmc/host/ |
| H A D | dwmmc.c | 883 ios->clock, ios->bus_width, ios->timing); in dwmmc_update_ios() 898 if (ios->bus_width == bus_width_8) in dwmmc_update_ios() 900 else if (ios->bus_width == bus_width_4) in dwmmc_update_ios() 1324 *(int *)result = sc->host.ios.bus_width; in dwmmc_read_ivar() 1383 sc->host.ios.bus_width = value; in dwmmc_write_ivar() 1476 ios->bus_width = new_ios->bus_width; in dwmmc_set_tran_settings() 1478 device_printf(sc->dev, "Bus width => %d\n", ios->bus_width); in dwmmc_set_tran_settings()
|
| /freebsd-14.2/sys/dev/sdhci/ |
| H A D | sdhci.c | 1373 if (ios->bus_width == bus_width_8) { 1376 } else if (ios->bus_width == bus_width_4) { 1379 } else if (ios->bus_width == bus_width_1) { 1383 panic("Invalid bus width: %d", ios->bus_width); 2444 *result = slot->host.ios.bus_width; 2535 slot->host.ios.bus_width = value; 2788 ios->bus_width = new_ios->bus_width; 2834 if (ios->bus_width == bus_width_8) { 2837 } else if (ios->bus_width == bus_width_4) { 2840 } else if (ios->bus_width == bus_width_1) { [all …]
|
| /freebsd-14.2/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-14.2/sys/arm/allwinner/ |
| H A D | aw_mmc.c | 250 ios->bus_width = new_ios->bus_width; in aw_mmc_set_tran_settings() 252 device_printf(sc->aw_dev, "Bus width => %d\n", ios->bus_width); in aw_mmc_set_tran_settings() 1113 *(int *)result = sc->aw_host.ios.bus_width; 1177 sc->aw_host.ios.bus_width = value; 1309 switch (ios->bus_width) { 1384 ios->bus_width == bus_width_8)) {
|
| /freebsd-14.2/lib/libcam/ |
| H A D | camlib.c | 649 device->bus_width = spi->bus_width; in cam_real_open_device() 653 device->bus_width = 0; in cam_real_open_device()
|
| H A D | camlib.h | 122 uint8_t bus_width; /* Negotiated bus width */ member
|
| /freebsd-14.2/sys/cam/scsi/ |
| H A D | scsi_xpt.c | 2800 spi->bus_width = cur_spi->bus_width; in scsi_set_transfer_settings() 2802 spi->bus_width = 0; in scsi_set_transfer_settings() 2818 switch (spi->bus_width) { in scsi_set_transfer_settings() 2831 spi->bus_width = MSG_EXT_WDTR_BUS_16_BIT; in scsi_set_transfer_settings() 2838 spi->bus_width = MSG_EXT_WDTR_BUS_8_BIT; in scsi_set_transfer_settings() 2857 if (spi->bus_width == 0) in scsi_set_transfer_settings() 3070 *speed *= (0x01 << spi->bus_width); in _scsi_announce_periph() 3120 && spi->bus_width > 0) { in scsi_announce_periph_sbuf() 3126 sbuf_printf(sb, "%dbit)", 8 * (0x01 << spi->bus_width)); in scsi_announce_periph_sbuf()
|
| /freebsd-14.2/sys/dev/rtsx/ |
| H A D | rtsx.c | 1751 uint32_t bus_width; local 1755 bus_width = RTSX_BUS_WIDTH_1; 1758 bus_width = RTSX_BUS_WIDTH_4; 1761 bus_width = RTSX_BUS_WIDTH_8; 1766 RTSX_BITOP(sc, RTSX_SD_CFG1, RTSX_BUS_WIDTH_MASK, bus_width); 1774 device_printf(sc->rtsx_dev, "Setting bus width to %s\n", busw[bus_width]); 3000 ios->bus_width = new_ios->bus_width; 3072 *result = sc->rtsx_host.ios.bus_width; 3141 sc->rtsx_host.ios.bus_width = value; 3202 sc->rtsx_ios_bus_width = ios->bus_width; [all …]
|
| /freebsd-14.2/sbin/camcontrol/ |
| H A D | camcontrol.c | 1407 && (spi->bus_width > 0)) { in camxferrate() 6088 int bus_width = -1; in ratecontrol() local 6165 if (bus_width < 0) { in ratecontrol() 6336 if (spi && bus_width != -1) { in ratecontrol() 6343 if ((bus_width == 16) in ratecontrol() 6348 } else if ((bus_width == 32) in ratecontrol() 6353 } else if ((bus_width != 8) in ratecontrol() 6354 && (bus_width != 16) in ratecontrol() 6355 && (bus_width != 32)) { in ratecontrol() 6361 spi->bus_width = bus_width >> 4; in ratecontrol() [all …]
|
| /freebsd-14.2/sys/arm/ti/ |
| H A D | ti_sdhci.c | 371 if (ios->bus_width == bus_width_8) in ti_sdhci_update_ios()
|
| /freebsd-14.2/sys/dev/sym/ |
| H A D | sym_defs.h | 197 u_char bus_width; /* 0x08/0x10 */ member
|