Home
last modified time | relevance | path

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

/net/rds/
Diw_send.c508 u32 work_alloc; in rds_iw_xmit() local
532 work_alloc = rds_iw_ring_alloc(&ic->i_send_ring, i, &pos); in rds_iw_xmit()
533 if (work_alloc == 0) { in rds_iw_xmit()
540 credit_alloc = work_alloc; in rds_iw_xmit()
542 credit_alloc = rds_iw_send_grab_credits(ic, work_alloc, &posted, 0, RDS_MAX_ADV_CREDIT); in rds_iw_xmit()
544 if (credit_alloc < work_alloc) { in rds_iw_xmit()
545 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc - credit_alloc); in rds_iw_xmit()
546 work_alloc = credit_alloc; in rds_iw_xmit()
549 if (work_alloc == 0) { in rds_iw_xmit()
573 rds_iw_ring_unalloc(&ic->i_send_ring, work_alloc); in rds_iw_xmit()
[all …]
Dib_send.c542 u32 work_alloc; in rds_ib_xmit() local
570 work_alloc = rds_ib_ring_alloc(&ic->i_send_ring, i, &pos); in rds_ib_xmit()
571 if (work_alloc == 0) { in rds_ib_xmit()
579 credit_alloc = rds_ib_send_grab_credits(ic, work_alloc, &posted, 0, RDS_MAX_ADV_CREDIT); in rds_ib_xmit()
581 if (credit_alloc < work_alloc) { in rds_ib_xmit()
582 rds_ib_ring_unalloc(&ic->i_send_ring, work_alloc - credit_alloc); in rds_ib_xmit()
583 work_alloc = credit_alloc; in rds_ib_xmit()
586 if (work_alloc == 0) { in rds_ib_xmit()
604 rds_ib_ring_unalloc(&ic->i_send_ring, work_alloc); in rds_ib_xmit()
686 if (i < work_alloc in rds_ib_xmit()
[all …]