/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/net/hamradio/soundmodem/ |
H A D | sm.c | 267 int ptt = /*hdlcdrv_ptt(&sm->hdrv)*/(sm->dma.ptt_cnt > 0) ^ invert_ptt; 268 int dcd = (!!sm->hdrv.hdlcrx.dcd) ^ invert_dcd; 270 if (sm->hdrv.ptt_out.flags & SP_SER) { 271 outb(dcd | (ptt << 1), UART_MCR(sm->hdrv.ptt_out.seriobase)); 272 outb(0x40 & (-ptt), UART_LCR(sm->hdrv.ptt_out.seriobase)); 274 if (sm->hdrv.ptt_out.flags & SP_PAR && sm->pardev && sm->pardev->port) 276 if (sm->hdrv.ptt_out.flags & SP_MIDI && hdlcdrv_ptt(&sm->hdrv)) 277 outb(0, MIDI_DATA(sm->hdrv.ptt_out.midiiobase)); 287 sm->hdrv [all...] |
H A D | sm_fsk9600.c | 74 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; 99 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; 135 hdlcdrv_channelbit(&sm->hdrv, st->last_sample); 137 hdlcdrv_setdcd(&sm->hdrv, (st->dcd_sum0 + 154 hdlcdrv_putbits(&sm->hdrv, st->shreg >> 1); 183 hdlcdrv_channelbit(&sm->hdrv, st->last_sample); 185 hdlcdrv_setdcd(&sm->hdrv, (st->dcd_sum0 + 202 hdlcdrv_putbits(&sm->hdrv, st->shreg >> 1); 220 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; 245 st->shreg = hdlcdrv_getbits(&sm->hdrv) | [all...] |
H A D | sm_afsk1200.c | 66 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; 85 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; 174 hdlcdrv_channelbit(&sm->hdrv, st->last_sample); 176 hdlcdrv_setdcd(&sm->hdrv, (st->dcd_sum0 + 192 hdlcdrv_putbits(&sm->hdrv, st->shreg >> 1); 223 hdlcdrv_channelbit(&sm->hdrv, st->last_sample); 225 hdlcdrv_setdcd(&sm->hdrv, (st->dcd_sum0 + 241 hdlcdrv_putbits(&sm->hdrv, st->shreg >> 1);
|
H A D | sm_hapn4800.c | 71 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; 94 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; 117 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; 139 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; 161 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; 184 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; 207 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; 229 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; 278 hdlcdrv_channelbit(&sm->hdrv, cursync); 280 hdlcdrv_setdcd(&sm->hdrv, (s [all...] |
H A D | sm_wss.c | 364 sm->hdrv.magic != HDLCDRV_MAGIC) 378 hdlcdrv_arbitrate(dev, &sm->hdrv); 379 if (hdlcdrv_ptt(&sm->hdrv)) { 382 hdlcdrv_transmitter(dev, &sm->hdrv); /* prefill HDLC buffer */ 395 hdlcdrv_transmitter(dev, &sm->hdrv); 396 hdlcdrv_receiver(dev, &sm->hdrv); 599 bi.data.mix.bit_rate = sm->hdrv.par.bitrate; 657 dma_setup(sm, 0, sm->hdrv.ptt_out.dma2); 663 isamps = dma_setup(sm, 0, sm->hdrv.ptt_out.dma2) - 1; 685 sm->hdrv [all...] |
H A D | sm_sbc.c | 204 switch (sm->hdrv.ptt_out.dma2) { 301 if (!dev || !sm || sm->hdrv.magic != HDLCDRV_MAGIC) 313 hdlcdrv_arbitrate(dev, &sm->hdrv); 314 if (hdlcdrv_ptt(&sm->hdrv)) { 317 hdlcdrv_transmitter(dev, &sm->hdrv); /* prefill HDLC buffer */ 331 hdlcdrv_transmitter(dev, &sm->hdrv); 332 hdlcdrv_receiver(dev, &sm->hdrv); 523 bi.data.mix.bit_rate = sm->hdrv.par.bitrate; 620 osamps = dma_setup(sm, 1, sm->hdrv.ptt_out.dma2) - 1; 636 isamps = dma_setup(sm, 0, sm->hdrv [all...] |
H A D | sm_afsk2400_7.c | 72 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; 93 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; 196 hdlcdrv_channelbit(&sm->hdrv, st->last_sample); 198 hdlcdrv_setdcd(&sm->hdrv, (st->dcd_sum0 + 214 hdlcdrv_putbits(&sm->hdrv, st->shreg >> 1); 247 hdlcdrv_channelbit(&sm->hdrv, st->last_sample); 249 hdlcdrv_setdcd(&sm->hdrv, (st->dcd_sum0 + 265 hdlcdrv_putbits(&sm->hdrv, st->shreg >> 1);
|
H A D | sm_afsk2400_8.c | 72 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; 93 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; 196 hdlcdrv_channelbit(&sm->hdrv, st->last_sample); 198 hdlcdrv_setdcd(&sm->hdrv, (st->dcd_sum0 + 214 hdlcdrv_putbits(&sm->hdrv, st->shreg >> 1); 247 hdlcdrv_channelbit(&sm->hdrv, st->last_sample); 249 hdlcdrv_setdcd(&sm->hdrv, (st->dcd_sum0 + 265 hdlcdrv_putbits(&sm->hdrv, st->shreg >> 1);
|
H A D | sm_psk4800.c | 106 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; 143 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; 235 hdlcdrv_setdcd(&sm->hdrv, (st->dcd_sum0 + st->dcd_sum1 + 257 hdlcdrv_channelbit(&sm->hdrv, st->descram & 4); 258 hdlcdrv_channelbit(&sm->hdrv, st->descram & 2); 259 hdlcdrv_channelbit(&sm->hdrv, st->descram & 1); 267 hdlcdrv_putbits(&sm->hdrv, st->shreg >> 1);
|
H A D | sm_afsk2666.c | 76 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; 100 st->shreg = hdlcdrv_getbits(&sm->hdrv) | 0x10000; 224 hdlcdrv_channelbit(&sm->hdrv, curbit); 226 hdlcdrv_setdcd(&sm->hdrv, (st->dcd_sum0 + st->dcd_sum1 + 242 hdlcdrv_putbits(&sm->hdrv, st->shreg >> 1);
|
H A D | sm.h | 47 struct hdlcdrv_state hdrv; member in struct:sm_state 164 if (!(sm->diag.flags & SM_DIAGFLAG_DCDGATE) || sm->hdrv.hdlcrx.dcd)
|
H A D | smdma.h | 144 while (sm->dma.ptt_cnt < NUM_FRAGMENTS && hdlcdrv_ptt(&sm->hdrv)) {
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/net/hamradio/ |
H A D | baycom_par.c | 130 struct hdlcdrv_state hdrv; member in struct:baycom_state 199 unsigned int data = hdlcdrv_getbits(&bc->hdrv); 244 hdlcdrv_putbits(&bc->hdrv, data); 265 hdlcdrv_setdcd(&bc->hdrv, bc->modem.par96.dcd_count > 0); 267 hdlcdrv_setdcd(&bc->hdrv, !!(pp->ops->read_status(pp) & PAR96_DCD)); 278 if (!dev || !bc || bc->hdrv.magic != HDLCDRV_MAGIC) 285 if (hdlcdrv_ptt(&bc->hdrv)) 292 hdlcdrv_arbitrate(dev, &bc->hdrv); 296 hdlcdrv_transmitter(dev, &bc->hdrv); 297 hdlcdrv_receiver(dev, &bc->hdrv); [all...] |
H A D | baycom_ser_fdx.c | 123 struct hdlcdrv_state hdrv; member in struct:baycom_state 222 hdlcdrv_putbits(&bc->hdrv, (bc->modem.shreg >> 1) ^ 0xffff); 230 hdlcdrv_setdcd(&bc->hdrv, (bc->modem.ser12.dcd_sum0 + 269 if (!bc || bc->hdrv.magic != HDLCDRV_MAGIC) 279 hdlcdrv_setdcd(&bc->hdrv, !((msr ^ bc->opt_dcd) & 0x80)); 313 hdlcdrv_setdcd(&bc->hdrv, !((msr ^ bc->opt_dcd) & 0x80)); 321 bc->modem.ser12.txshreg = 0x10000 | hdlcdrv_getbits(&bc->hdrv); 322 if (!hdlcdrv_ptt(&bc->hdrv)) { 334 hdlcdrv_arbitrate(dev, &bc->hdrv); 335 if (hdlcdrv_ptt(&bc->hdrv)) { [all...] |
H A D | baycom_ser_hdx.c | 113 struct hdlcdrv_state hdrv; member in struct:baycom_state 209 bc->modem.shreg = 0x10000 | hdlcdrv_getbits(&bc->hdrv); 224 hdlcdrv_channelbit(&bc->hdrv, cur_s); 245 hdlcdrv_setdcd(&bc->hdrv, (bc->modem.ser12.dcd_sum0 + 355 hdlcdrv_putbits(&bc->hdrv, bc->modem.shreg >> 1); 360 hdlcdrv_setdcd(&bc->hdrv, !((inb(MSR(dev->base_addr)) ^ bc->opt_dcd) & 0x80)); 362 hdlcdrv_setdcd(&bc->hdrv, (bc->modem.ser12.dcd_sum0 + 382 if (!dev || !bc || bc->hdrv.magic != HDLCDRV_MAGIC) 402 if (hdlcdrv_ptt(&bc->hdrv)) 420 hdlcdrv_arbitrate(dev, &bc->hdrv); [all...] |