Lines Matching refs:slot
216 const int slot) in inet_twdr_do_twkill_work() argument
231 inet_twsk_for_each_inmate(tw, &twdr->cells[slot]) { in inet_twdr_do_twkill_work()
274 if (inet_twdr_do_twkill_work(twdr, twdr->slot)) { in inet_twdr_hangman()
275 twdr->thread_slots |= (1 << twdr->slot); in inet_twdr_hangman()
282 twdr->slot = ((twdr->slot + 1) & (INET_TWDR_TWKILL_SLOTS - 1)); in inet_twdr_hangman()
345 int slot; in inet_twsk_schedule() local
371 slot = (timeo + (1 << INET_TWDR_RECYCLE_TICK) - 1) >> INET_TWDR_RECYCLE_TICK; in inet_twsk_schedule()
381 if (slot >= INET_TWDR_RECYCLE_SLOTS) { in inet_twsk_schedule()
384 slot = INET_TWDR_TWKILL_SLOTS - 1; in inet_twsk_schedule()
386 slot = DIV_ROUND_UP(timeo, twdr->period); in inet_twsk_schedule()
387 if (slot >= INET_TWDR_TWKILL_SLOTS) in inet_twsk_schedule()
388 slot = INET_TWDR_TWKILL_SLOTS - 1; in inet_twsk_schedule()
391 slot = (twdr->slot + slot) & (INET_TWDR_TWKILL_SLOTS - 1); in inet_twsk_schedule()
392 list = &twdr->cells[slot]; in inet_twsk_schedule()
394 tw->tw_ttd = jiffies + (slot << INET_TWDR_RECYCLE_TICK); in inet_twsk_schedule()
400 (slot << INET_TWDR_RECYCLE_TICK); in inet_twsk_schedule()
404 jiffies + (slot << INET_TWDR_RECYCLE_TICK))) in inet_twsk_schedule()
406 jiffies + (slot << INET_TWDR_RECYCLE_TICK)); in inet_twsk_schedule()
407 slot = (twdr->twcal_hand + slot) & (INET_TWDR_RECYCLE_SLOTS - 1); in inet_twsk_schedule()
409 list = &twdr->twcal_row[slot]; in inet_twsk_schedule()
423 int n, slot; in inet_twdr_twcal_tick() local
435 slot = twdr->twcal_hand; in inet_twdr_twcal_tick()
444 &twdr->twcal_row[slot]) { in inet_twdr_twcal_tick()
457 twdr->twcal_hand = slot; in inet_twdr_twcal_tick()
460 if (!hlist_empty(&twdr->twcal_row[slot])) { in inet_twdr_twcal_tick()
466 slot = (slot + 1) & (INET_TWDR_RECYCLE_SLOTS - 1); in inet_twdr_twcal_tick()
486 unsigned int slot; in inet_twsk_purge() local
488 for (slot = 0; slot <= hashinfo->ehash_mask; slot++) { in inet_twsk_purge()
489 struct inet_ehash_bucket *head = &hashinfo->ehash[slot]; in inet_twsk_purge()
519 if (get_nulls_value(node) != slot) in inet_twsk_purge()