Lines Matching defs:slot
145 } slot;
625 /* Delay the next round with a new future slot with a
643 q->slot.slot_next = now + next_delay;
644 q->slot.packets_left = q->slot_config.max_packets;
645 q->slot.bytes_left = q->slot_config.max_bytes;
696 if (q->slot.slot_next && q->slot.slot_next < time_to_send)
699 if (time_to_send <= now && q->slot.slot_next <= now) {
710 if (q->slot.slot_next) {
711 q->slot.packets_left--;
712 q->slot.bytes_left -= qdisc_pkt_len(skb);
713 if (q->slot.packets_left <= 0 ||
714 q->slot.bytes_left <= 0)
743 q->slot.slot_next));
810 q->slot.packets_left = q->slot_config.max_packets;
811 q->slot.bytes_left = q->slot_config.max_bytes;
814 q->slot.slot_next = ktime_get_ns();
816 q->slot.slot_next = 0;
1141 struct tc_netem_slot slot;
1198 slot = q->slot_config;
1199 if (slot.max_packets == INT_MAX)
1200 slot.max_packets = 0;
1201 if (slot.max_bytes == INT_MAX)
1202 slot.max_bytes = 0;
1203 if (nla_put(skb, TCA_NETEM_SLOT, sizeof(slot), &slot))