• Home
  • Raw
  • Download

Lines Matching refs:slave

135 static void eql_kill_one_slave(slave_queue_t *queue, slave_t *slave);
145 slave_t *slave = list_entry(this, slave_t, list); in eql_timer() local
147 if ((slave->dev->flags & IFF_UP) == IFF_UP) { in eql_timer()
148 slave->bytes_queued -= slave->priority_Bps; in eql_timer()
149 if (slave->bytes_queued < 0) in eql_timer()
150 slave->bytes_queued = 0; in eql_timer()
152 eql_kill_one_slave(&eql->queue, slave); in eql_timer()
217 static void eql_kill_one_slave(slave_queue_t *queue, slave_t *slave) in eql_kill_one_slave() argument
219 list_del(&slave->list); in eql_kill_one_slave()
221 slave->dev->flags &= ~IFF_SLAVE; in eql_kill_one_slave()
222 dev_put(slave->dev); in eql_kill_one_slave()
223 kfree(slave); in eql_kill_one_slave()
303 slave_t *slave = list_entry(this, slave_t, list); in __eql_schedule_slaves() local
309 bytes_queued = slave->bytes_queued; in __eql_schedule_slaves()
310 priority_Bps = slave->priority_Bps; in __eql_schedule_slaves()
311 if ((slave->dev->flags & IFF_UP) == IFF_UP) { in __eql_schedule_slaves()
317 best_slave = slave; in __eql_schedule_slaves()
321 eql_kill_one_slave(queue, slave); in __eql_schedule_slaves()
330 slave_t *slave; in eql_slave_xmit() local
334 slave = __eql_schedule_slaves(&eql->queue); in eql_slave_xmit()
335 if (slave) { in eql_slave_xmit()
336 struct net_device *slave_dev = slave->dev; in eql_slave_xmit()
340 slave->bytes_queued += skb->len; in eql_slave_xmit()
364 slave_t *slave = list_entry(this, slave_t, list); in __eql_find_slave_dev() local
366 if (slave->dev == dev) in __eql_find_slave_dev()
367 return slave; in __eql_find_slave_dev()
383 static int __eql_insert_slave(slave_queue_t *queue, slave_t *slave) in __eql_insert_slave() argument
388 duplicate_slave = __eql_find_slave_dev(queue, slave->dev); in __eql_insert_slave()
392 list_add(&slave->list, &queue->all_slaves); in __eql_insert_slave()
394 slave->dev->flags |= IFF_SLAVE; in __eql_insert_slave()
464 slave_t *slave = __eql_find_slave_dev(&eql->queue, in eql_emancipate() local
467 if (slave) { in eql_emancipate()
468 eql_kill_one_slave(&eql->queue, slave); in eql_emancipate()
483 slave_t *slave; in eql_g_slave_cfg() local
499 slave = __eql_find_slave_dev(&eql->queue, slave_dev); in eql_g_slave_cfg()
500 if (slave) { in eql_g_slave_cfg()
501 sc.priority = slave->priority; in eql_g_slave_cfg()
517 slave_t *slave; in eql_s_slave_cfg() local
535 slave = __eql_find_slave_dev(&eql->queue, slave_dev); in eql_s_slave_cfg()
536 if (slave) { in eql_s_slave_cfg()
537 slave->priority = sc.priority; in eql_s_slave_cfg()
538 slave->priority_bps = sc.priority; in eql_s_slave_cfg()
539 slave->priority_Bps = sc.priority / 8; in eql_s_slave_cfg()