Lines Matching refs:ch_params
225 s->ch_params.tx_delay = data[1]; in do_kiss_params()
226 PKP("TX delay = %ums", 10 * s->ch_params.tx_delay); in do_kiss_params()
229 s->ch_params.ppersist = data[1]; in do_kiss_params()
230 PKP("p persistence = %u", s->ch_params.ppersist); in do_kiss_params()
233 s->ch_params.slottime = data[1]; in do_kiss_params()
234 PKP("slot time = %ums", s->ch_params.slottime); in do_kiss_params()
237 s->ch_params.tx_tail = data[1]; in do_kiss_params()
238 PKP("TX tail = %ums", s->ch_params.tx_tail); in do_kiss_params()
241 s->ch_params.fulldup = !!data[1]; in do_kiss_params()
242 PKP("%s duplex", s->ch_params.fulldup ? "full" : "half"); in do_kiss_params()
291 int flgs = tenms_to_2flags(s, s->ch_params.tx_tail); in hdlcdrv_transmitter()
355 s->hdlctx.numflags = tenms_to_2flags(s, s->ch_params.tx_delay); in start_tx()
368 if (s->ch_params.fulldup) { in hdlcdrv_arbitrate()
373 s->hdlctx.slotcnt = s->ch_params.slottime; in hdlcdrv_arbitrate()
378 s->hdlctx.slotcnt = s->ch_params.slottime; in hdlcdrv_arbitrate()
379 if ((prandom_u32() % 256) > s->ch_params.ppersist) in hdlcdrv_arbitrate()
454 s->hdlctx.slotcnt = s->ch_params.slottime; in hdlcdrv_open()
506 bi.data.cp.tx_delay = s->ch_params.tx_delay; in hdlcdrv_ioctl()
507 bi.data.cp.tx_tail = s->ch_params.tx_tail; in hdlcdrv_ioctl()
508 bi.data.cp.slottime = s->ch_params.slottime; in hdlcdrv_ioctl()
509 bi.data.cp.ppersist = s->ch_params.ppersist; in hdlcdrv_ioctl()
510 bi.data.cp.fulldup = s->ch_params.fulldup; in hdlcdrv_ioctl()
516 s->ch_params.tx_delay = bi.data.cp.tx_delay; in hdlcdrv_ioctl()
517 s->ch_params.tx_tail = bi.data.cp.tx_tail; in hdlcdrv_ioctl()
518 s->ch_params.slottime = bi.data.cp.slottime; in hdlcdrv_ioctl()
519 s->ch_params.ppersist = bi.data.cp.ppersist; in hdlcdrv_ioctl()
520 s->ch_params.fulldup = bi.data.cp.fulldup; in hdlcdrv_ioctl()
637 s->ch_params = dflt_ch_params; in hdlcdrv_setup()
652 s->hdlctx.slotcnt = s->ch_params.slottime; in hdlcdrv_setup()