Searched refs:credits (Results 1 – 10 of 10) sorted by relevance
| /net/sched/ |
| A D | sch_cbs.c | 75 s64 credits; /* in bytes */ member 120 if (sch->q.qlen == 0 && q->credits > 0) { in cbs_enqueue_soft() 124 q->credits = 0; in cbs_enqueue_soft() 182 s64 credits; in cbs_dequeue_soft() local 190 if (q->credits < 0) { in cbs_dequeue_soft() 193 credits = q->credits + credits; in cbs_dequeue_soft() 194 q->credits = min_t(s64, credits, q->hicredit); in cbs_dequeue_soft() 196 if (q->credits < 0) { in cbs_dequeue_soft() 216 credits = credits_from_len(len, q->sendslope, in cbs_dequeue_soft() 218 credits += q->credits; in cbs_dequeue_soft() [all …]
|
| /net/sunrpc/xprtrdma/ |
| A D | svc_rdma_backchannel.c | 29 u32 credits; in svc_rdma_handle_bc_reply() local 44 credits = be32_to_cpup(rdma_resp + 2); in svc_rdma_handle_bc_reply() 45 if (credits == 0) in svc_rdma_handle_bc_reply() 46 credits = 1; /* don't deadlock */ in svc_rdma_handle_bc_reply() 47 else if (credits > r_xprt->rx_buf.rb_bc_max_requests) in svc_rdma_handle_bc_reply() 48 credits = r_xprt->rx_buf.rb_bc_max_requests; in svc_rdma_handle_bc_reply() 50 xprt->cwnd = credits << RPC_CWNDSHIFT; in svc_rdma_handle_bc_reply()
|
| A D | rpc_rdma.c | 1434 u32 credits; in rpcrdma_reply_handler() local 1451 credits = be32_to_cpu(*p++); in rpcrdma_reply_handler() 1470 if (credits == 0) in rpcrdma_reply_handler() 1471 credits = 1; /* don't deadlock */ in rpcrdma_reply_handler() 1472 else if (credits > r_xprt->rx_ep->re_max_requests) in rpcrdma_reply_handler() 1473 credits = r_xprt->rx_ep->re_max_requests; in rpcrdma_reply_handler() 1474 rpcrdma_post_recvs(r_xprt, credits + (buf->rb_bc_srv_max_requests << 1)); in rpcrdma_reply_handler() 1475 if (buf->rb_credits != credits) in rpcrdma_reply_handler() 1476 rpcrdma_update_cwnd(r_xprt, credits); in rpcrdma_reply_handler() 1484 trace_xprtrdma_reply(rqst->rq_task, rep, credits); in rpcrdma_reply_handler()
|
| /net/rds/ |
| A D | ib_cm.c | 57 static void rds_ib_set_flow_control(struct rds_connection *conn, u32 credits) in rds_ib_set_flow_control() argument 61 if (rds_ib_sysctl_flow_control && credits != 0) { in rds_ib_set_flow_control() 64 rds_ib_send_add_credits(conn, credits); in rds_ib_set_flow_control() 219 unsigned int credits; in rds_ib_cm_fill_conn_param() local 221 credits = IB_GET_POST_CREDITS in rds_ib_cm_fill_conn_param() 224 dp->ricp_v6.dp_credit = cpu_to_be32(credits); in rds_ib_cm_fill_conn_param() 226 dp->ricp_v4.dp_credit = cpu_to_be32(credits); in rds_ib_cm_fill_conn_param() 227 atomic_sub(IB_SET_POST_CREDITS(credits), in rds_ib_cm_fill_conn_param()
|
| A D | ib_send.c | 408 void rds_ib_send_add_credits(struct rds_connection *conn, unsigned int credits) in rds_ib_send_add_credits() argument 412 if (credits == 0) in rds_ib_send_add_credits() 416 credits, in rds_ib_send_add_credits() 420 atomic_add(IB_SET_SEND_CREDITS(credits), &ic->i_credits); in rds_ib_send_add_credits() 424 WARN_ON(IB_GET_SEND_CREDITS(credits) >= 16384); in rds_ib_send_add_credits()
|
| A D | ib.h | 430 void rds_ib_send_add_credits(struct rds_connection *conn, unsigned int credits);
|
| /net/bluetooth/rfcomm/ |
| A D | core.c | 63 static int rfcomm_send_credits(struct rfcomm_session *s, u8 addr, u8 credits); 980 pn->credits = RFCOMM_DEFAULT_CREDITS; in rfcomm_send_pn() 983 pn->credits = 0; in rfcomm_send_pn() 1164 static int rfcomm_send_credits(struct rfcomm_session *s, u8 addr, u8 credits) in rfcomm_send_credits() argument 1169 BT_DBG("%p addr %d credits %d", s, addr, credits); in rfcomm_send_credits() 1176 *ptr = credits; ptr++; in rfcomm_send_credits() 1408 d, d->state, d->dlci, pn->mtu, pn->flow_ctrl, pn->credits); in rfcomm_apply_pn() 1413 d->tx_credits = pn->credits; in rfcomm_apply_pn() 1718 u8 credits = *(u8 *) skb->data; skb_pull(skb, 1); in rfcomm_recv_data() local 1720 d->tx_credits += credits; in rfcomm_recv_data()
|
| /net/bluetooth/ |
| A D | l2cap_core.c | 4720 credits = __le16_to_cpu(rsp->credits); in l2cap_le_connect_rsp() 4750 chan->tx_credits = credits; in l2cap_le_connect_rsp() 4862 credits = 0; in l2cap_le_connect_req() 4936 credits = chan->rx_credits; in l2cap_le_connect_req() 4973 rsp.credits = cpu_to_le16(credits); in l2cap_le_connect_req() 4994 credits = __le16_to_cpu(pkt->credits); in l2cap_le_credits() 5003 if (credits > max_credits) { in l2cap_le_credits() 5013 chan->tx_credits += credits; in l2cap_le_credits() 5141 if (!pdu->credits) { in l2cap_ecred_conn_req() 5195 credits = __le16_to_cpu(rsp->credits); in l2cap_ecred_conn_rsp() [all …]
|
| /net/ipv4/ |
| A D | icmp.c | 266 int credits = get_random_u32_below(3); in icmp_global_consume() local 269 if (credits) in icmp_global_consume() 270 atomic_sub(credits, &net->ipv4.icmp_global_credit); in icmp_global_consume()
|
| /net/nfc/nci/ |
| A D | ntf.c | 66 ntf->conn_entries[i].credits); in nci_core_conn_credits_ntf_packet() 73 atomic_add(ntf->conn_entries[i].credits, in nci_core_conn_credits_ntf_packet()
|
Completed in 40 milliseconds