Searched refs:credits (Results 1 – 9 of 9) sorted by relevance
/net/sched/ |
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() 145 static s64 delay_from_credits(s64 credits, s64 slope) in delay_from_credits() argument 150 return div64_s64(-credits * NSEC_PER_SEC, slope); in delay_from_credits() 182 s64 credits; in cbs_dequeue_soft() local 190 if (q->credits < 0) { in cbs_dequeue_soft() 191 credits = timediff_to_credits(now - q->last, q->idleslope); 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() [all …]
|
/net/sunrpc/xprtrdma/ |
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()
|
D | rpc_rdma.c | 1433 u32 credits; in rpcrdma_reply_handler() local 1450 credits = be32_to_cpu(*p++); in rpcrdma_reply_handler() 1469 if (credits == 0) in rpcrdma_reply_handler() 1470 credits = 1; /* don't deadlock */ in rpcrdma_reply_handler() 1471 else if (credits > r_xprt->rx_ep->re_max_requests) in rpcrdma_reply_handler() 1472 credits = r_xprt->rx_ep->re_max_requests; in rpcrdma_reply_handler() 1473 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/ |
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()
|
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()
|
D | ib.h | 434 void rds_ib_send_add_credits(struct rds_connection *conn, unsigned int credits);
|
/net/bluetooth/rfcomm/ |
D | core.c | 61 static int rfcomm_send_credits(struct rfcomm_session *s, u8 addr, u8 credits); 976 pn->credits = RFCOMM_DEFAULT_CREDITS; in rfcomm_send_pn() 979 pn->credits = 0; in rfcomm_send_pn() 1160 static int rfcomm_send_credits(struct rfcomm_session *s, u8 addr, u8 credits) in rfcomm_send_credits() argument 1165 BT_DBG("%p addr %d credits %d", s, addr, credits); in rfcomm_send_credits() 1172 *ptr = credits; ptr++; in rfcomm_send_credits() 1404 d, d->state, d->dlci, pn->mtu, pn->flow_ctrl, pn->credits); in rfcomm_apply_pn() 1409 d->tx_credits = pn->credits; in rfcomm_apply_pn() 1714 u8 credits = *(u8 *) skb->data; skb_pull(skb, 1); in rfcomm_recv_data() local 1716 d->tx_credits += credits; in rfcomm_recv_data()
|
/net/bluetooth/ |
D | l2cap_core.c | 780 rsp.credits = cpu_to_le16(chan->rx_credits); in l2cap_chan_le_connect_reject() 1402 req.credits = cpu_to_le16(chan->rx_credits); in l2cap_le_connect() 1469 data.pdu.req.credits = cpu_to_le16(chan->rx_credits); in l2cap_ecred_connect() 3931 rsp.credits = cpu_to_le16(chan->rx_credits); in __l2cap_le_connect_rsp_defer() 4000 data.pdu.rsp.credits = cpu_to_le16(chan->rx_credits); in __l2cap_ecred_conn_rsp_defer() 5646 u16 dcid, mtu, mps, credits, result; in l2cap_le_connect_rsp() local 5656 credits = __le16_to_cpu(rsp->credits); in l2cap_le_connect_rsp() 5665 dcid, mtu, mps, credits, result); in l2cap_le_connect_rsp() 5690 chan->tx_credits = credits; in l2cap_le_connect_rsp() 5814 u16 dcid, scid, credits, mtu, mps; in l2cap_le_connect_req() local [all …]
|
/net/nfc/nci/ |
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()
|