Lines Matching refs:bitrate
98 int bitrate; member
137 int bitrate; member
337 static unsigned char *add_mcs(unsigned char *bits, int bitrate, in add_mcs() argument
381 if (p->bitrate == bitrate) { in add_mcs()
394 p->bitrate = bitrate; in add_mcs()
402 static unsigned char *get_mcs(int bitrate) in get_mcs() argument
408 if (p->bitrate == bitrate) in get_mcs()
414 switch (bitrate) { in get_mcs()
417 return add_mcs(NULL, bitrate, YAM_1200); in get_mcs()
420 return add_mcs(NULL, bitrate, YAM_9600); in get_mcs()
429 static int fpga_download(int iobase, int bitrate) in fpga_download() argument
434 pbits = get_mcs(bitrate); in fpga_download()
598 yp->tx_count = (yp->bitrate * yp->txd) / 8000; in yam_start_tx()
703 yp->tx_count = (yp->bitrate * yp->txtail) / 8000; in yam_tx_byte()
705 yp->tx_count += (yp->bitrate * yp->holdd) / 8; in yam_tx_byte()
803 seq_printf(seq, " Speed %u\n", yp->bitrate); in yam_seq_show()
843 if (!yp->bitrate) in yam_open()
859 if (fpga_download(dev->base_addr, yp->bitrate)) { in yam_open()
953 if (ym->cmd != SIOCYAMSMCS || ym->bitrate > YAM_MAXBITRATE) { in yam_siocdevprivate()
958 add_mcs(ym->bits, ym->bitrate, 0); in yam_siocdevprivate()
990 if (yi.cfg.bitrate > YAM_MAXBITRATE) in yam_siocdevprivate()
992 yp->bitrate = yi.cfg.bitrate; in yam_siocdevprivate()
1037 yi.cfg.bitrate = yp->bitrate; in yam_siocdevprivate()
1083 yp->bitrate = DEFAULT_BITRATE; in yam_setup()