Home
last modified time | relevance | path

Searched refs:work_alloc (Results 1 – 2 of 2) sorted by relevance

/linux-4.4.14/net/rds/
Diw_send.c500 u32 work_alloc; in rds_iw_xmit() local
524 work_alloc = rds_iw_ring_alloc(&ic->i_send_ring, i, &pos); in rds_iw_xmit()
525 if (work_alloc == 0) { in rds_iw_xmit()
532 credit_alloc = work_alloc; in rds_iw_xmit()
534 credit_alloc = rds_iw_send_grab_credits(ic, work_alloc, &posted, 0, RDS_MAX_ADV_CREDIT); in rds_iw_xmit()
536 if (credit_alloc < work_alloc) { in rds_iw_xmit()
537 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc - credit_alloc); in rds_iw_xmit()
538 work_alloc = credit_alloc; in rds_iw_xmit()
541 if (work_alloc == 0) { in rds_iw_xmit()
565 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc); in rds_iw_xmit()
[all …]
Dib_send.c495 u32 work_alloc; in rds_ib_xmit() local
523 work_alloc = rds_ib_ring_alloc(&ic->i_send_ring, i, &pos); in rds_ib_xmit()
524 if (work_alloc == 0) { in rds_ib_xmit()
532 credit_alloc = rds_ib_send_grab_credits(ic, work_alloc, &posted, 0, RDS_MAX_ADV_CREDIT); in rds_ib_xmit()
534 if (credit_alloc < work_alloc) { in rds_ib_xmit()
535 rds_ib_ring_unalloc(&ic->i_send_ring, work_alloc - credit_alloc); in rds_ib_xmit()
536 work_alloc = credit_alloc; in rds_ib_xmit()
539 if (work_alloc == 0) { in rds_ib_xmit()
557 rds_ib_ring_unalloc(&ic->i_send_ring, work_alloc); in rds_ib_xmit()
641 if (i < work_alloc in rds_ib_xmit()
[all …]