Home
last modified time | relevance | path

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

12

/freebsd-12.1/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_iores.c80 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()
241 switch (iores->bus_width) { in bhnd_nvram_iores_read()
[all …]
H A Dbhnd_nvram_io.h61 u_int bus_width);
/freebsd-12.1/sys/dev/mmc/
H A Dmmc.c768 switch (ivar->bus_width) { in mmc_set_card_bus_width()
781 switch (ivar->bus_width) { in mmc_set_card_bus_width()
834 enum mmc_bus_width bus_width; in mmc_set_power_class() local
838 bus_width = ivar->bus_width; in mmc_set_power_class()
852 bus_width >= bus_width_4) in mmc_set_power_class()
872 bus_width >= bus_width_4) in mmc_set_power_class()
877 if (bus_width == bus_width_8) in mmc_set_power_class()
889 if (bus_width == bus_width_8) in mmc_set_power_class()
1638 ivar->bus_width = bus_width_1; in mmc_discover_cards()
1740 ivar->bus_width = bus_width_4; in mmc_discover_cards()
[all …]
H A Dmmcvar.h94 MMC_ACCESSOR(bus_width, BUS_WIDTH, int)
H A Dmmcbrvar.h91 MMCBR_ACCESSOR(bus_width, BUS_WIDTH, int) in MMCBR_ACCESSOR()
H A Dbridge.h130 enum mmc_bus_width bus_width; member
H A Dmmcreg.h675 uint8_t bus_width; member
/freebsd-12.1/sys/dev/mmc/host/
H A Ddwmmc.c413 uint32_t bus_hz = 0, bus_width; in parse_fdt() local
423 if (OF_getencprop(node, "bus-width", &bus_width, sizeof(uint32_t)) <= 0) in parse_fdt()
424 bus_width = 4; in parse_fdt()
425 if (bus_width >= 4) in parse_fdt()
427 if (bus_width >= 8) in parse_fdt()
669 ios->clock, ios->bus_width); in dwmmc_update_ios()
671 if (ios->bus_width == bus_width_8) in dwmmc_update_ios()
673 else if (ios->bus_width == bus_width_4) in dwmmc_update_ios()
1063 *(int *)result = sc->host.ios.bus_width; in dwmmc_read_ivar()
1115 sc->host.ios.bus_width = value; in dwmmc_write_ivar()
/freebsd-12.1/sys/arm/amlogic/aml8726/
H A Daml8726_mmc.c219 uint32_t bus_width; in aml8726_mmc_start_command() local
296 bus_width = (ios->bus_width == bus_width_4) ? 4 : 1; in aml8726_mmc_start_command()
297 nbits_per_pkg = block_size * 8 + 16 * bus_width - bus_width; in aml8726_mmc_start_command()
858 switch (ios->bus_width) { in aml8726_mmc_update_ios()
942 *(int *)result = sc->host.ios.bus_width; in aml8726_mmc_read_ivar()
995 sc->host.ios.bus_width = value; in aml8726_mmc_write_ivar()
H A Daml8726_sdxc-m8.c1046 switch (ios->bus_width) { in aml8726_sdxc_update_ios()
1222 *(int *)result = sc->host.ios.bus_width; in aml8726_sdxc_read_ivar()
1275 sc->host.ios.bus_width = value; in aml8726_sdxc_write_ivar()
/freebsd-12.1/sys/arm/allwinner/
H A Daw_mmc.c329 ios->bus_width = new_ios->bus_width; in aw_mmc_cam_settran_settings()
330 device_printf(sc->aw_dev, "Bus width => %d\n", ios->bus_width); in aw_mmc_cam_settran_settings()
404 uint32_t bus_width, max_freq; in aw_mmc_attach() local
486 if (OF_getencprop(node, "bus-width", &bus_width, sizeof(uint32_t)) <= 0) in aw_mmc_attach()
487 bus_width = 4; in aw_mmc_attach()
514 if (bus_width >= 4) in aw_mmc_attach()
516 if (bus_width >= 8) in aw_mmc_attach()
1159 *(int *)result = sc->aw_host.ios.bus_width;
1223 sc->aw_host.ios.bus_width = value;
1351 switch (ios->bus_width) {
[all …]
/freebsd-12.1/sys/dev/aic7xxx/
H A Daic7xxx.c180 u_int bus_width);
1840 switch (*bus_width) { in ahc_validate_width()
1854 *bus_width = MIN(tinfo->user.width, *bus_width); in ahc_validate_width()
1856 *bus_width = MIN(tinfo->goal.width, *bus_width); in ahc_validate_width()
2499 u_int bus_width) in ahc_construct_wdtr() argument
3214 u_int bus_width; in ahc_parse_msg() local
3235 saved_width = bus_width; in ahc_parse_msg()
3260 bus_width = 0; in ahc_parse_msg()
3313 u_int bus_width; in ahc_parse_msg() local
3356 if (bus_width == 0) in ahc_parse_msg()
[all …]
H A Daic79xx.c153 u_int bus_width);
3006 switch (*bus_width) { in ahd_validate_width()
3020 *bus_width = MIN(tinfo->user.width, *bus_width); in ahd_validate_width()
3022 *bus_width = MIN(tinfo->goal.width, *bus_width); in ahd_validate_width()
3821 u_int bus_width) in ahd_construct_wdtr() argument
4417 u_int bus_width; in ahd_parse_msg() local
4438 saved_width = bus_width; in ahd_parse_msg()
4463 bus_width = 0; in ahd_parse_msg()
4515 u_int bus_width; in ahd_parse_msg() local
4556 if (bus_width == 0) in ahd_parse_msg()
[all …]
H A Daic7xxx_osm.c667 &spi->bus_width, ROLE_UNKNOWN); in ahc_action()
668 ahc_set_width(ahc, &devinfo, spi->bus_width, in ahc_action()
705 if (spi->bus_width != MSG_EXT_WDTR_BUS_16_BIT) in ahc_action()
713 spi->bus_width, ROLE_UNKNOWN); in ahc_action()
871 spi->bus_width = tinfo->width; in ahc_get_tran_settings()
H A Daic79xx_osm.c784 &spi->bus_width, ROLE_UNKNOWN); in ahd_set_tran_settings()
785 ahd_set_width(ahd, &devinfo, spi->bus_width, in ahd_set_tran_settings()
816 if (spi->bus_width != MSG_EXT_WDTR_BUS_16_BIT) in ahd_set_tran_settings()
826 spi->bus_width, ROLE_UNKNOWN); in ahd_set_tran_settings()
887 spi->bus_width = tinfo->width; in ahd_get_tran_settings()
/freebsd-12.1/sys/dev/jedec_dimm/
H A Djedec_dimm.c422 uint32_t bus_width; in jedec_dimm_capacity() local
492 bus_width = 1 << bus_width_byte; in jedec_dimm_capacity()
493 bus_width *= 8; in jedec_dimm_capacity()
566 *capacity_mb = sdram_capacity / 8 * bus_width / sdram_width * in jedec_dimm_capacity()
/freebsd-12.1/sys/dev/sdhci/
H A Dsdhci.c1281 if (ios->bus_width == bus_width_8) {
1284 } else if (ios->bus_width == bus_width_4) {
1287 } else if (ios->bus_width == bus_width_1) {
1291 panic("Invalid bus width: %d", ios->bus_width);
2336 *result = slot->host.ios.bus_width;
2427 slot->host.ios.bus_width = value;
2699 ios->bus_width = new_ios->bus_width;
2735 if (ios->bus_width == bus_width_8) {
2738 } else if (ios->bus_width == bus_width_4) {
2741 } else if (ios->bus_width == bus_width_1) {
[all …]
/freebsd-12.1/lib/libcam/
H A Dcamlib.c649 device->bus_width = spi->bus_width; in cam_real_open_device()
653 device->bus_width = 0; in cam_real_open_device()
H A Dcamlib.h124 u_int8_t bus_width; /* Negotiated bus width */ member
/freebsd-12.1/sys/cam/scsi/
H A Dscsi_xpt.c2801 spi->bus_width = cur_spi->bus_width; in scsi_set_transfer_settings()
2803 spi->bus_width = 0; in scsi_set_transfer_settings()
2819 switch (spi->bus_width) { in scsi_set_transfer_settings()
2832 spi->bus_width = MSG_EXT_WDTR_BUS_16_BIT; in scsi_set_transfer_settings()
2839 spi->bus_width = MSG_EXT_WDTR_BUS_8_BIT; in scsi_set_transfer_settings()
2858 if (spi->bus_width == 0) in scsi_set_transfer_settings()
3071 *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()
3176 && spi->bus_width > 0) { in scsi_announce_periph()
[all …]
/freebsd-12.1/sys/dev/buslogic/
H A Dbt.c1278 spi->bus_width = MSG_EXT_WDTR_BUS_16_BIT; in btaction()
1280 spi->bus_width = MSG_EXT_WDTR_BUS_8_BIT; in btaction()
2126 u_int bus_width; in btfetchtransinfo() local
2168 bus_width = MSG_EXT_WDTR_BUS_8_BIT; in btfetchtransinfo()
2177 bus_width = MSG_EXT_WDTR_BUS_16_BIT; in btfetchtransinfo()
2193 bus_width = MSG_EXT_WDTR_BUS_16_BIT; in btfetchtransinfo()
2230 spi->bus_width = bus_width; in btfetchtransinfo()
/freebsd-12.1/sys/dev/advansys/
H A Dadwcam.c510 switch (spi->bus_width) { in adw_action()
614 spi->bus_width = MSG_EXT_WDTR_BUS_16_BIT; in adw_action()
616 spi->bus_width = MSG_EXT_WDTR_BUS_8_BIT; in adw_action()
643 spi->bus_width = MSG_EXT_WDTR_BUS_16_BIT; in adw_action()
645 spi->bus_width = MSG_EXT_WDTR_BUS_8_BIT; in adw_action()
/freebsd-12.1/sys/mips/ingenic/
H A Djz4780_mmc.c751 *(int *)result = sc->sc_host.ios.bus_width; in jz4780_mmc_read_ivar()
808 sc->sc_host.ios.bus_width = value; in jz4780_mmc_write_ivar()
903 switch (ios->bus_width) { in jz4780_mmc_update_ios()
/freebsd-12.1/sbin/camcontrol/
H A Dcamcontrol.c1325 && (spi->bus_width > 0)) { in camxferrate()
6037 int bus_width = -1; in ratecontrol() local
6114 if (bus_width < 0) { in ratecontrol()
6286 if (spi && bus_width != -1) { in ratecontrol()
6293 if ((bus_width == 16) in ratecontrol()
6298 } else if ((bus_width == 32) in ratecontrol()
6303 } else if ((bus_width != 8) in ratecontrol()
6304 && (bus_width != 16) in ratecontrol()
6305 && (bus_width != 32)) { in ratecontrol()
6311 spi->bus_width = bus_width >> 4; in ratecontrol()
[all …]
/freebsd-12.1/sys/dev/amr/
H A Damr_cam.c382 spi->bus_width = MSG_EXT_WDTR_BUS_32_BIT; in amr_cam_action()

12