Home | History | Annotate | Download | only in p2p

Lines Matching defs:tu

255 	unsigned int r, tu;
276 tu = (r % ((p2p->max_disc_int - p2p->min_disc_int) + 1) +
278 if (p2p->max_disc_tu >= 0 && tu > (unsigned int) p2p->max_disc_tu)
279 tu = p2p->max_disc_tu;
280 if (!dev_disc && tu < 100)
281 tu = 100; /* Need to wait in non-device discovery use cases */
282 if (p2p->cfg->max_listen && 1024 * tu / 1000 > p2p->cfg->max_listen)
283 tu = p2p->cfg->max_listen * 1000 / 1024;
285 if (tu == 0) {
286 p2p_dbg(p2p, "Skip listen state since duration was 0 TU");
297 p2p->pending_listen_usec = 1024 * tu;
299 if (p2p->cfg->start_listen(p2p->cfg->cb_ctx, freq, 1024 * tu / 1000,