Searched refs:rb (Results 1 – 7 of 7) sorted by relevance
/net/sunrpc/xprtrdma/ |
D | verbs.c | 80 static void rpcrdma_regbuf_dma_unmap(struct rpcrdma_regbuf *rb); 81 static void rpcrdma_regbuf_free(struct rpcrdma_regbuf *rb); 854 struct rpcrdma_regbuf *rb; in rpcrdma_req_setup() local 861 rb = rpcrdma_regbuf_alloc(__roundup_pow_of_two(maxhdrsize), in rpcrdma_req_setup() 863 if (!rb) in rpcrdma_req_setup() 866 if (!__rpcrdma_regbuf_dma_map(r_xprt, rb)) in rpcrdma_req_setup() 869 req->rl_rdmabuf = rb; in rpcrdma_req_setup() 870 xdr_buf_init(&req->rl_hdrbuf, rdmab_data(rb), rdmab_length(rb)); in rpcrdma_req_setup() 874 rpcrdma_regbuf_free(rb); in rpcrdma_req_setup() 1250 struct rpcrdma_regbuf *rb; in rpcrdma_regbuf_alloc() local [all …]
|
D | xprt_rdma.h | 127 static inline u64 rdmab_addr(struct rpcrdma_regbuf *rb) in rdmab_addr() argument 129 return rb->rg_iov.addr; in rdmab_addr() 132 static inline u32 rdmab_length(struct rpcrdma_regbuf *rb) in rdmab_length() argument 134 return rb->rg_iov.length; in rdmab_length() 137 static inline u32 rdmab_lkey(struct rpcrdma_regbuf *rb) in rdmab_lkey() argument 139 return rb->rg_iov.lkey; in rdmab_lkey() 142 static inline struct ib_device *rdmab_device(struct rpcrdma_regbuf *rb) in rdmab_device() argument 144 return rb->rg_device; in rdmab_device() 147 static inline void *rdmab_data(const struct rpcrdma_regbuf *rb) in rdmab_data() argument 149 return rb->rg_data; in rdmab_data() [all …]
|
D | rpc_rdma.c | 536 struct rpcrdma_regbuf *rb = sc->sc_req->rl_sendbuf; in rpcrdma_sendctx_unmap() local 548 ib_dma_unmap_page(rdmab_device(rb), sge->addr, sge->length, in rpcrdma_sendctx_unmap() 560 struct rpcrdma_regbuf *rb = req->rl_rdmabuf; in rpcrdma_prepare_hdr_sge() local 563 sge->addr = rdmab_addr(rb); in rpcrdma_prepare_hdr_sge() 565 sge->lkey = rdmab_lkey(rb); in rpcrdma_prepare_hdr_sge() 567 ib_dma_sync_single_for_device(rdmab_device(rb), sge->addr, sge->length, in rpcrdma_prepare_hdr_sge() 579 struct rpcrdma_regbuf *rb = req->rl_sendbuf; in rpcrdma_prepare_head_iov() local 581 if (!rpcrdma_regbuf_dma_map(r_xprt, rb)) in rpcrdma_prepare_head_iov() 584 sge->addr = rdmab_addr(rb); in rpcrdma_prepare_head_iov() 586 sge->lkey = rdmab_lkey(rb); in rpcrdma_prepare_head_iov() [all …]
|
D | transport.c | 538 struct rpcrdma_regbuf *rb, size_t size, in rpcrdma_check_regbuf() argument 541 if (unlikely(rdmab_length(rb) < size)) { in rpcrdma_check_regbuf() 542 if (!rpcrdma_regbuf_realloc(rb, size, flags)) in rpcrdma_check_regbuf()
|
/net/packet/ |
D | af_packet.c | 195 struct packet_ring_buffer *rb, 515 const struct packet_ring_buffer *rb, in packet_lookup_frame() argument 522 pg_vec_pos = position / rb->frames_per_block; in packet_lookup_frame() 523 frame_offset = position % rb->frames_per_block; in packet_lookup_frame() 525 h.raw = rb->pg_vec[pg_vec_pos].buffer + in packet_lookup_frame() 526 (frame_offset * rb->frame_size); in packet_lookup_frame() 535 struct packet_ring_buffer *rb, in packet_current_frame() argument 538 return packet_lookup_frame(po, rb, rb->head, status); in packet_current_frame() 669 struct packet_ring_buffer *rb, in init_prb_bdqc() argument 673 struct tpacket_kbdq_core *p1 = GET_PBDQC_FROM_RB(rb); in init_prb_bdqc() [all …]
|
/net/sched/ |
D | sch_htb.c | 375 static void htb_safe_rb_erase(struct rb_node *rb, struct rb_root *root) in htb_safe_rb_erase() argument 377 if (RB_EMPTY_NODE(rb)) { in htb_safe_rb_erase() 380 rb_erase(rb, root); in htb_safe_rb_erase() 381 RB_CLEAR_NODE(rb); in htb_safe_rb_erase()
|
D | sch_cake.c | 1436 u32 rb = cake_heap_get_backlog(q, r); in cake_heapify() local 1438 if (rb > mb) { in cake_heapify() 1440 mb = rb; in cake_heapify()
|