Home
last modified time | relevance | path

Searched refs:i_credits (Results 1 – 6 of 6) sorted by relevance

/net/rds/
Diw_send.c360 oldval = newval = atomic_read(&ic->i_credits); in rds_iw_send_grab_credits()
394 if (atomic_cmpxchg(&ic->i_credits, oldval, newval) != oldval) in rds_iw_send_grab_credits()
410 IB_GET_SEND_CREDITS(atomic_read(&ic->i_credits)), in rds_iw_send_add_credits()
413 atomic_add(IB_SET_SEND_CREDITS(credits), &ic->i_credits); in rds_iw_send_add_credits()
429 atomic_add(IB_SET_POST_CREDITS(posted), &ic->i_credits); in rds_iw_advertise_credits()
443 if (IB_GET_POST_CREDITS(atomic_read(&ic->i_credits)) >= 16) in rds_iw_advertise_credits()
Dib_send.c408 oldval = newval = atomic_read(&ic->i_credits); in rds_ib_send_grab_credits()
442 if (atomic_cmpxchg(&ic->i_credits, oldval, newval) != oldval) in rds_ib_send_grab_credits()
458 IB_GET_SEND_CREDITS(atomic_read(&ic->i_credits)), in rds_ib_send_add_credits()
461 atomic_add(IB_SET_SEND_CREDITS(credits), &ic->i_credits); in rds_ib_send_add_credits()
477 atomic_add(IB_SET_POST_CREDITS(posted), &ic->i_credits); in rds_ib_advertise_credits()
491 if (IB_GET_POST_CREDITS(atomic_read(&ic->i_credits)) >= 16) in rds_ib_advertise_credits()
Diw_cm.c132 credits = IB_GET_POST_CREDITS(atomic_read(&ic->i_credits)); in rds_iw_cm_fill_conn_param()
134 atomic_sub(IB_SET_POST_CREDITS(credits), &ic->i_credits); in rds_iw_cm_fill_conn_param()
674 atomic_set(&ic->i_credits, 0); in rds_iw_conn_shutdown()
Dib_cm.c224 credits = IB_GET_POST_CREDITS(atomic_read(&ic->i_credits)); in rds_ib_cm_fill_conn_param()
226 atomic_sub(IB_SET_POST_CREDITS(credits), &ic->i_credits); in rds_ib_cm_fill_conn_param()
728 atomic_set(&ic->i_credits, 0); in rds_ib_conn_shutdown()
Dib.h150 atomic_t i_credits; member
Diw.h156 atomic_t i_credits; member