Searched refs:credits (Results 1 - 10 of 10) sorted by relevance
/net/rds/ |
H A D | ib_cm.c | 83 static void rds_ib_set_flow_control(struct rds_connection *conn, u32 credits) argument 87 if (rds_ib_sysctl_flow_control && credits != 0) { 90 rds_ib_send_add_credits(conn, credits); 222 unsigned int credits; local 224 credits = IB_GET_POST_CREDITS(atomic_read(&ic->i_credits)); 225 dp->dp_credit = cpu_to_be32(credits); 226 atomic_sub(IB_SET_POST_CREDITS(credits), &ic->i_credits);
|
H A D | iw_cm.c | 53 static void rds_iw_set_flow_control(struct rds_connection *conn, u32 credits) argument 57 if (rds_iw_sysctl_flow_control && credits != 0) { 60 rds_iw_send_add_credits(conn, credits); 130 unsigned int credits; local 132 credits = IB_GET_POST_CREDITS(atomic_read(&ic->i_credits)); 133 dp->dp_credit = cpu_to_be32(credits); 134 atomic_sub(IB_SET_POST_CREDITS(credits), &ic->i_credits);
|
H A D | ib_send.c | 353 * This is the main function for allocating credits when sending 357 * - send credits: this tells us how many WRs we're allowed 361 * - posted credits: this tells us how many WRs we recently 364 * Every time we transmit credits to the peer, we subtract 365 * the amount of transferred credits from this counter. 368 * exhausted their send credits, and are unable to send new credits 370 * one credit update to the peer before exhausting our credits. 371 * When new credits arrive, we subtract one credit that is withheld 373 * credits (se 449 rds_ib_send_add_credits(struct rds_connection *conn, unsigned int credits) argument [all...] |
H A D | iw_send.c | 305 * This is the main function for allocating credits when sending 309 * - send credits: this tells us how many WRs we're allowed 313 * - posted credits: this tells us how many WRs we recently 316 * Every time we transmit credits to the peer, we subtract 317 * the amount of transferred credits from this counter. 320 * exhausted their send credits, and are unable to send new credits 322 * one credit update to the peer before exhausting our credits. 323 * When new credits arrive, we subtract one credit that is withheld 325 * credits (se 401 rds_iw_send_add_credits(struct rds_connection *conn, unsigned int credits) argument [all...] |
H A D | ib.h | 145 * atomically - one for the send credits, and one posted 146 * recv credits we need to transfer to remote. 351 void rds_ib_send_add_credits(struct rds_connection *conn, unsigned int credits);
|
H A D | iw.h | 151 * atomically - one for the send credits, and one posted 152 * recv credits we need to transfer to remote. 359 void rds_iw_send_add_credits(struct rds_connection *conn, unsigned int credits);
|
/net/sunrpc/xprtrdma/ |
H A D | verbs.c | 181 /* Keep (only) the most recent credits, after check validity */ 185 unsigned int credits = ntohl(p->rm_credit); local 186 if (credits == 0) { 188 " dropped credits to 0!\n", __func__); 190 credits = 1; 191 } else if (credits > rep->rr_buffer->rb_max_requests) { 194 __func__, credits, 196 credits = rep->rr_buffer->rb_max_requests; 198 atomic_set(&rep->rr_buffer->rb_credits, credits); 238 * ordering of receives to keep server credits [all...] |
H A D | transport.c | 454 int credits = atomic_read(&r_xprt->rx_buf.rb_credits); local 463 xprt->cwnd = credits * r_xprt->rx_buf.rb_cwndscale; 651 /* Must suppress retransmit to maintain credits */
|
/net/bluetooth/rfcomm/ |
H A D | core.c | 62 static int rfcomm_send_credits(struct rfcomm_session *s, u8 addr, u8 credits); 890 pn->credits = RFCOMM_DEFAULT_CREDITS; 893 pn->credits = 0; 1074 static int rfcomm_send_credits(struct rfcomm_session *s, u8 addr, u8 credits) argument 1079 BT_DBG("%p addr %d credits %d", s, addr, credits); 1086 *ptr = credits; ptr++; 1317 BT_DBG("dlc %p state %ld dlci %d mtu %d fc 0x%x credits %d", 1318 d, d->state, d->dlci, pn->mtu, pn->flow_ctrl, pn->credits); 1323 d->tx_credits = pn->credits; 1628 u8 credits = *(u8 *) skb->data; skb_pull(skb, 1); local [all...] |
/net/nfc/nci/ |
H A D | ntf.c | 53 /* update the credits */ 58 pr_debug("entry[%d]: conn_id %d, credits %d\n", 60 ntf->conn_entries[i].credits); 64 atomic_add(ntf->conn_entries[i].credits, 508 /* set the available credits to initial value */
|
Completed in 1247 milliseconds