Lines Matching full:speed

65 	uint32_t speed;  member
96 hdspe_adat_width(uint32_t speed) in hdspe_adat_width() argument
98 if (speed > 96000) in hdspe_adat_width()
100 if (speed > 48000) in hdspe_adat_width()
269 hdspe_port_slot_offset(port, hdspe_adat_width(sc->speed)); in hdspechan_setgain()
271 hdspe_port_slot_width(port, hdspe_adat_width(sc->speed)); in hdspechan_setgain()
376 hdspe_port_slot_offset(row, hdspe_adat_width(sc->speed)); in hdspechan_enable()
378 hdspe_port_slot_width(row, hdspe_adat_width(sc->speed)); in hdspechan_enable()
555 adat_width = hdspe_adat_width(sc->speed); in buffer_copy()
639 hdspe_adat_width(sc->speed)); in clean()
640 slots = hdspe_port_slot_width(row, hdspe_adat_width(sc->speed)); in clean()
827 hdspechan_setspeed(kobj_t obj, void *data, uint32_t speed) in hdspechan_setspeed() argument
843 device_printf(scp->dev, "hdspechan_setspeed(%d)\n", speed); in hdspechan_setspeed()
850 speed = sc->force_speed; in hdspechan_setspeed()
853 for (i = 0; rate_map[i].speed != 0; i++) { in hdspechan_setspeed()
854 if (rate_map[i].speed == speed) in hdspechan_setspeed()
860 for (i = 0; rate_map[i].speed != 0; i++) { in hdspechan_setspeed()
862 threshold = hr->speed + ((rate_map[i + 1].speed != 0) ? in hdspechan_setspeed()
863 ((rate_map[i + 1].speed - hr->speed) >> 1) : 0); in hdspechan_setspeed()
864 if (speed < threshold) in hdspechan_setspeed()
884 speed = hr->speed; in hdspechan_setspeed()
885 if (speed > 96000) in hdspechan_setspeed()
886 speed /= 4; in hdspechan_setspeed()
887 else if (speed > 48000) in hdspechan_setspeed()
888 speed /= 2; in hdspechan_setspeed()
891 period /= speed; in hdspechan_setspeed()
894 sc->speed = hr->speed; in hdspechan_setspeed()
897 return (sc->speed); in hdspechan_setspeed()