Home
last modified time | relevance | path

Searched refs:sge (Results 1 – 25 of 178) sorted by relevance

12345678

/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb/
Dsge.c233 struct sge *sge; member
247 struct sge { struct
275 static void tx_sched_stop(struct sge *sge) in tx_sched_stop() argument
277 struct sched *s = sge->tx_sched; in tx_sched_stop()
290 unsigned int t1_sched_update_parms(struct sge *sge, unsigned int port, in t1_sched_update_parms() argument
293 struct sched *s = sge->tx_sched; in t1_sched_update_parms()
313 if (board_info(sge->adapter)->board == CHBT_BOARD_CHT204) { in t1_sched_update_parms()
336 void t1_sched_set_max_avail_bytes(struct sge *sge, unsigned int val)
338 struct sched *s = sge->tx_sched;
343 t1_sched_update_parms(sge, i, 0, 0);
[all …]
Dsge.h62 struct sge;
64 struct sge *t1_sge_create(struct adapter *, struct sge_params *);
65 int t1_sge_configure(struct sge *, struct sge_params *);
66 int t1_sge_set_coalesce_params(struct sge *, struct sge_params *);
67 void t1_sge_destroy(struct sge *);
74 void t1_sge_start(struct sge *);
75 void t1_sge_stop(struct sge *);
76 bool t1_sge_intr_error_handler(struct sge *sge);
77 void t1_sge_intr_enable(struct sge *);
78 void t1_sge_intr_disable(struct sge *);
[all …]
/linux-6.1.9/include/rdma/
Drdmavt_mr.h78 struct rvt_sge sge; /* progress state for the current SGE */ member
96 rvt_put_mr(ss->sge.mr); in rvt_put_ss()
98 ss->sge = *ss->sg_list++; in rvt_put_ss()
102 static inline u32 rvt_get_sge_length(struct rvt_sge *sge, u32 length) in rvt_get_sge_length() argument
104 u32 len = sge->length; in rvt_get_sge_length()
108 if (len > sge->sge_length) in rvt_get_sge_length()
109 len = sge->sge_length; in rvt_get_sge_length()
117 struct rvt_sge *sge = &ss->sge; in rvt_update_sge() local
119 sge->vaddr += length; in rvt_update_sge()
120 sge->length -= length; in rvt_update_sge()
[all …]
/linux-6.1.9/drivers/scsi/esas2r/
Desas2r_io.c222 if (unlikely(sgc->sge.a64.curr > sgc->sge.a64.limit)) { in esas2r_build_sg_list_sge()
237 sgelen = (u8)((u8 *)sgc->sge.a64.curr in esas2r_build_sg_list_sge()
238 - (u8 *)sgc->sge.a64.last); in esas2r_build_sg_list_sge()
244 memcpy(sgl->virt_addr, sgc->sge.a64.last, sgelen); in esas2r_build_sg_list_sge()
247 sgc->sge.a64.curr = in esas2r_build_sg_list_sge()
252 sgc->sge.a64.limit = in esas2r_build_sg_list_sge()
257 sgc->sge.a64.last->length = cpu_to_le32( in esas2r_build_sg_list_sge()
259 sgc->sge.a64.last->address = in esas2r_build_sg_list_sge()
268 if (sgc->sge.a64.chain) { in esas2r_build_sg_list_sge()
269 sgc->sge.a64.chain->length |= in esas2r_build_sg_list_sge()
[all …]
/linux-6.1.9/drivers/infiniband/sw/rdmavt/
Dtrace_mr.h82 TP_PROTO(struct rvt_sge *sge, struct ib_sge *isge),
83 TP_ARGS(sge, isge),
85 RDI_DEV_ENTRY(ib_to_rvt(sge->mr->pd->device))
87 __field(struct rvt_sge *, sge)
100 RDI_DEV_ASSIGN(ib_to_rvt(sge->mr->pd->device));
101 __entry->mr = sge->mr;
102 __entry->sge = sge;
104 __entry->vaddr = sge->vaddr;
106 __entry->lkey = sge->mr->lkey;
107 __entry->sge_length = sge->sge_length;
[all …]
Dmr.c492 rval = rvt_mr_has_lkey(ss->sge.mr, lkey); in rvt_ss_has_lkey()
682 struct ib_sge *sge) in rvt_sge_adjacent() argument
684 if (last_sge && sge->lkey == last_sge->mr->lkey && in rvt_sge_adjacent()
685 ((uint64_t)(last_sge->vaddr + last_sge->length) == sge->addr)) { in rvt_sge_adjacent()
686 if (sge->lkey) { in rvt_sge_adjacent()
687 if (unlikely((sge->addr - last_sge->mr->user_base + in rvt_sge_adjacent()
688 sge->length > last_sge->mr->length))) in rvt_sge_adjacent()
691 last_sge->length += sge->length; in rvt_sge_adjacent()
693 last_sge->sge_length += sge->length; in rvt_sge_adjacent()
694 trace_rvt_sge_adjacent(last_sge, sge); in rvt_sge_adjacent()
[all …]
/linux-6.1.9/drivers/scsi/csiostor/
Dcsio_wr.c58 csio_get_flbuf_size(struct csio_hw *hw, struct csio_sge *sge, uint32_t reg) in csio_get_flbuf_size() argument
60 sge->sge_fl_buf_size[reg] = csio_rd_reg32(hw, SGE_FL_BUFFER_SIZE0_A + in csio_get_flbuf_size()
66 csio_wr_fl_bufsz(struct csio_sge *sge, struct csio_dma_buf *buf) in csio_wr_fl_bufsz() argument
68 return sge->sge_fl_buf_size[buf->paddr & 0xF]; in csio_wr_fl_bufsz()
75 return (hw->wrm.sge.sge_control & EGRSTATUSPAGESIZE_F) ? 128 : 64; in csio_wr_qstat_pgsz()
118 struct csio_sge *sge = &wrm->sge; in csio_wr_fill_fl() local
126 buf->len = sge->sge_fl_buf_size[sreg]; in csio_wr_fill_fl()
1050 struct csio_sge *sge = &wrm->sge; in csio_wr_process_fl() local
1076 bufsz = csio_wr_fl_bufsz(sge, buf); in csio_wr_process_fl()
1097 flq->un.fl.offset += ALIGN(lastlen, sge->csio_fl_align); in csio_wr_process_fl()
[all …]
/linux-6.1.9/net/core/
Dskmsg.c35 struct scatterlist *sge; in sk_msg_alloc() local
53 sge = &msg->sg.data[i]; in sk_msg_alloc()
56 sg_page(sge) == pfrag->page && in sk_msg_alloc()
57 sge->offset + sge->length == orig_offset) { in sk_msg_alloc()
58 sge->length += use; in sk_msg_alloc()
65 sge = &msg->sg.data[msg->sg.end]; in sk_msg_alloc()
66 sg_unmark_end(sge); in sk_msg_alloc()
67 sg_set_page(sge, pfrag->page, use, orig_offset); in sk_msg_alloc()
90 struct scatterlist *sge = sk_msg_elem(src, i); in sk_msg_clone() local
95 if (sge->length > off) in sk_msg_clone()
[all …]
/linux-6.1.9/drivers/net/ethernet/huawei/hinic/
Dhinic_common.c55 void hinic_set_sge(struct hinic_sge *sge, dma_addr_t addr, int len) in hinic_set_sge() argument
57 sge->hi_addr = upper_32_bits(addr); in hinic_set_sge()
58 sge->lo_addr = lower_32_bits(addr); in hinic_set_sge()
59 sge->len = len; in hinic_set_sge()
68 dma_addr_t hinic_sge_to_dma(struct hinic_sge *sge) in hinic_sge_to_dma() argument
70 return (dma_addr_t)((((u64)sge->hi_addr) << 32) | sge->lo_addr); in hinic_sge_to_dma()
/linux-6.1.9/drivers/infiniband/hw/qib/
Dqib_ud.c61 struct rvt_sge *sge; in qib_ud_loopback() local
172 ssge.sge = *swqe->sg_list; in qib_ud_loopback()
174 sge = &ssge.sge; in qib_ud_loopback()
176 u32 len = rvt_get_sge_length(sge, length); in qib_ud_loopback()
178 rvt_copy_sge(qp, &qp->r_sge, sge->vaddr, len, true, false); in qib_ud_loopback()
179 sge->vaddr += len; in qib_ud_loopback()
180 sge->length -= len; in qib_ud_loopback()
181 sge->sge_length -= len; in qib_ud_loopback()
182 if (sge->sge_length == 0) { in qib_ud_loopback()
184 *sge = *ssge.sg_list++; in qib_ud_loopback()
[all …]
Dqib_verbs.c141 struct rvt_sge sge = ss->sge; in qib_count_sge() local
146 u32 len = rvt_get_sge_length(&sge, length); in qib_count_sge()
148 if (((long) sge.vaddr & (sizeof(u32) - 1)) || in qib_count_sge()
154 sge.vaddr += len; in qib_count_sge()
155 sge.length -= len; in qib_count_sge()
156 sge.sge_length -= len; in qib_count_sge()
157 if (sge.sge_length == 0) { in qib_count_sge()
159 sge = *sg_list++; in qib_count_sge()
160 } else if (sge.length == 0 && sge.mr->lkey) { in qib_count_sge()
161 if (++sge.n >= RVT_SEGSZ) { in qib_count_sge()
[all …]
/linux-6.1.9/drivers/infiniband/sw/siw/
Dsiw_qp_tx.c43 struct siw_sge *sge = &wqe->sqe.sge[0]; in siw_try_1seg() local
44 u32 bytes = sge->length; in siw_try_1seg()
53 memcpy(paddr, &wqe->sqe.sge[1], bytes); in siw_try_1seg()
60 (const void *)(uintptr_t)sge->laddr, bytes); in siw_try_1seg()
62 if (copy_from_user(paddr, u64_to_user_ptr(sge->laddr), in siw_try_1seg()
66 unsigned int off = sge->laddr & ~PAGE_MASK; in siw_try_1seg()
72 p = siw_get_upage(mem->umem, sge->laddr); in siw_try_1seg()
74 p = siw_get_pblpage(mem, sge->laddr, &pbl_idx); in siw_try_1seg()
91 sge->laddr + part); in siw_try_1seg()
94 sge->laddr + part, in siw_try_1seg()
[all …]
Dsiw_qp_rx.c176 srx->ddp_stag = wqe->sqe.sge[0].lkey; in siw_rresp_check_ntoh()
177 srx->ddp_to = wqe->sqe.sge[0].laddr; in siw_rresp_check_ntoh()
367 wqe->rqe.sge[i].laddr = rqe->sge[i].laddr; in siw_rqe_get()
368 wqe->rqe.sge[i].lkey = rqe->sge[i].lkey; in siw_rqe_get()
369 wqe->rqe.sge[i].length = rqe->sge[i].length; in siw_rqe_get()
370 wqe->bytes += wqe->rqe.sge[i].length; in siw_rqe_get()
457 struct siw_sge *sge; in siw_proc_send() local
460 sge = &wqe->rqe.sge[frx->sge_idx]; in siw_proc_send()
462 if (!sge->length) { in siw_proc_send()
469 sge_bytes = min(data_bytes, sge->length - frx->sge_off); in siw_proc_send()
[all …]
Dsiw_qp.c277 wqe->sqe.sge[0].length = 0; in siw_qp_mpa_rts()
278 wqe->sqe.sge[0].laddr = 0; in siw_qp_mpa_rts()
279 wqe->sqe.sge[0].lkey = 0; in siw_qp_mpa_rts()
480 rreq->ddp_msn = htonl(wqe->sqe.sge[0].length); in siw_send_terminate()
485 rreq->read_size = htonl(wqe->sqe.sge[0].length); in siw_send_terminate()
486 rreq->source_stag = htonl(wqe->sqe.sge[0].lkey); in siw_send_terminate()
488 cpu_to_be64(wqe->sqe.sge[0].laddr); in siw_send_terminate()
873 rreq->sge[0].laddr = sqe->sge[0].laddr; in siw_read_to_orq()
874 rreq->sge[0].length = sqe->sge[0].length; in siw_read_to_orq()
875 rreq->sge[0].lkey = sqe->sge[0].lkey; in siw_read_to_orq()
[all …]
/linux-6.1.9/drivers/infiniband/ulp/iser/
Diser_memory.c128 reg->sge.lkey = device->pd->local_dma_lkey; in iser_reg_dma()
138 reg->sge.addr = sg_dma_address(&sg[0]); in iser_reg_dma()
139 reg->sge.length = sg_dma_len(&sg[0]); in iser_reg_dma()
142 " length=0x%x\n", reg->sge.lkey, reg->rkey, in iser_reg_dma()
143 reg->sge.addr, reg->sge.length); in iser_reg_dma()
293 sig_reg->sge.lkey = mr->lkey; in iser_reg_sig_mr()
295 sig_reg->sge.addr = mr->iova; in iser_reg_sig_mr()
296 sig_reg->sge.length = mr->length; in iser_reg_sig_mr()
299 sig_reg->sge.lkey, sig_reg->rkey, sig_reg->sge.addr, in iser_reg_sig_mr()
300 sig_reg->sge.length); in iser_reg_sig_mr()
[all …]
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_uld.c115 struct sge *s = &adap->sge; in alloc_uld_rxqs()
176 struct sge_uld_rxq_info *rxq_info = adap->sge.uld_rxq_info[uld_type]; in setup_sge_queues_uld()
185 struct sge *s = &adap->sge; in setup_sge_queues_uld()
214 struct sge_uld_rxq_info *rxq_info = adap->sge.uld_rxq_info[uld_type]; in free_sge_queues_uld()
217 struct sge *s = &adap->sge; in free_sge_queues_uld()
240 struct sge *s = &adap->sge; in cfg_queues_uld()
308 adap->sge.uld_rxq_info[uld_type] = rxq_info; in cfg_queues_uld()
315 struct sge_uld_rxq_info *rxq_info = adap->sge.uld_rxq_info[uld_type]; in free_queues_uld()
317 adap->sge.uld_rxq_info[uld_type] = NULL; in free_queues_uld()
326 struct sge_uld_rxq_info *rxq_info = adap->sge.uld_rxq_info[uld_type]; in request_msix_queue_irqs_uld()
[all …]
Dcxgb4_tc_mqprio.c160 adap->sge.eohw_rxq = kcalloc(adap->sge.eoqsets, in cxgb4_mqprio_alloc_hw_resources()
163 if (!adap->sge.eohw_rxq) in cxgb4_mqprio_alloc_hw_resources()
166 adap->sge.eohw_txq = kcalloc(adap->sge.eoqsets, in cxgb4_mqprio_alloc_hw_resources()
169 if (!adap->sge.eohw_txq) { in cxgb4_mqprio_alloc_hw_resources()
170 kfree(adap->sge.eohw_rxq); in cxgb4_mqprio_alloc_hw_resources()
180 msix = -((int)adap->sge.intrq.abs_id + 1); in cxgb4_mqprio_alloc_hw_resources()
183 eorxq = &adap->sge.eohw_rxq[pi->first_qset + i]; in cxgb4_mqprio_alloc_hw_resources()
184 eotxq = &adap->sge.eohw_txq[pi->first_qset + i]; in cxgb4_mqprio_alloc_hw_resources()
241 eorxq = &adap->sge.eohw_rxq[pi->first_qset + i]; in cxgb4_mqprio_alloc_hw_resources()
255 eorxq = &adap->sge.eohw_rxq[pi->first_qset + i]; in cxgb4_mqprio_alloc_hw_resources()
[all …]
Dsge.c151 struct sge *s = &adapter->sge; in fl_mtu_bufsize()
238 const struct sge *s = &adapter->sge; in fl_starving()
401 struct sge *s = &adapter->sge; in get_buf_size()
538 struct sge *s = &adap->sge; in refill_fl()
547 if (test_bit(q->cntxt_id - adap->sge.egr_start, adap->sge.blocked_fl)) in refill_fl()
625 set_bit(q->cntxt_id - adap->sge.egr_start, in refill_fl()
626 adap->sge.starving_fl); in refill_fl()
866 to = (u8 *)end > (u8 *)q->stat ? buf : sgl->sge; in cxgb4_write_sgl()
880 unsigned int part0 = (u8 *)q->stat - (u8 *)sgl->sge, part1; in cxgb4_write_sgl()
883 memcpy(sgl->sge, buf, part0); in cxgb4_write_sgl()
[all …]
/linux-6.1.9/drivers/infiniband/sw/rxe/
Drxe_mr.c373 struct rxe_sge *sge = &dma->sge[dma->cur_sge]; in copy_data() local
388 if (sge->length && (offset < sge->length)) { in copy_data()
389 mr = lookup_mr(pd, access, sge->lkey, RXE_LOOKUP_LOCAL); in copy_data()
399 if (offset >= sge->length) { in copy_data()
404 sge++; in copy_data()
413 if (sge->length) { in copy_data()
414 mr = lookup_mr(pd, access, sge->lkey, in copy_data()
425 if (bytes > sge->length - offset) in copy_data()
426 bytes = sge->length - offset; in copy_data()
429 iova = sge->addr + offset; in copy_data()
[all …]
/linux-6.1.9/drivers/infiniband/core/
Drw.c119 reg->sge.addr = reg->mr->iova; in rdma_rw_init_one_mr()
120 reg->sge.length = reg->mr->length; in rdma_rw_init_one_mr()
159 reg->wr.wr.sg_list = &reg->sge; in rdma_rw_init_mr_wrs()
173 remote_addr += reg->sge.length; in rdma_rw_init_mr_wrs()
201 struct ib_sge *sge; in rdma_rw_init_map_wrs() local
206 ctx->map.sges = sge = kcalloc(sg_cnt, sizeof(*sge), GFP_KERNEL); in rdma_rw_init_map_wrs()
225 rdma_wr->wr.sg_list = sge; in rdma_rw_init_map_wrs()
228 sge->addr = sg_dma_address(sg) + offset; in rdma_rw_init_map_wrs()
229 sge->length = sg_dma_len(sg) - offset; in rdma_rw_init_map_wrs()
230 sge->lkey = qp->pd->local_dma_lkey; in rdma_rw_init_map_wrs()
[all …]
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c264 const struct sge *s = &adapter->sge; in fl_starving()
325 for (p = sgl->sge; nfrags >= 2; nfrags -= 2) { in unmap_sgl()
457 const struct sge *s = &adapter->sge; in get_buf_size()
607 struct sge *s = &adapter->sge; in refill_fl()
715 set_bit(fl->cntxt_id, adapter->sge.starving_fl); in refill_fl()
930 to = (u8 *)end > (u8 *)tq->stat ? buf : sgl->sge; in write_sgl()
944 unsigned int part0 = (u8 *)tq->stat - (u8 *)sgl->sge, part1; in write_sgl()
947 memcpy(sgl->sge, buf, part0); in write_sgl()
1195 txq = &adapter->sge.ethtxq[pi->first_qset + qidx]; in t4vf_eth_xmit()
1568 struct sge *s = &adapter->sge; in do_gro()
[all …]
Dcxgb4vf_main.c382 struct sge *s = &adapter->sge; in request_msix_queue_irqs()
420 struct sge *s = &adapter->sge; in free_msix_queue_irqs()
453 struct sge *s = &adapter->sge; in enable_rx()
476 struct sge *s = &adapter->sge; in quiesce_rx()
534 struct sge *s = &adapter->sge; in fwevtq_handler()
590 struct sge *s = &adapter->sge; in setup_sge_queues()
705 struct sge_eth_rxq *rxq = &adapter->sge.ethrxq[pi->first_qset]; in setup_rss()
1019 static int closest_timer(const struct sge *s, int us) in closest_timer()
1035 static int closest_thres(const struct sge *s, int thres) in closest_thres()
1060 ? adapter->sge.timer_val[timer_idx] in qtimer_val()
[all …]
/linux-6.1.9/net/sunrpc/xprtrdma/
Drpc_rdma.c537 struct ib_sge *sge; in rpcrdma_sendctx_unmap() local
546 for (sge = &sc->sc_sges[2]; sc->sc_unmap_count; in rpcrdma_sendctx_unmap()
547 ++sge, --sc->sc_unmap_count) in rpcrdma_sendctx_unmap()
548 ib_dma_unmap_page(rdmab_device(rb), sge->addr, sge->length, in rpcrdma_sendctx_unmap()
561 struct ib_sge *sge = &sc->sc_sges[req->rl_wr.num_sge++]; in rpcrdma_prepare_hdr_sge() local
563 sge->addr = rdmab_addr(rb); in rpcrdma_prepare_hdr_sge()
564 sge->length = len; 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()
578 struct ib_sge *sge = &sc->sc_sges[req->rl_wr.num_sge++]; in rpcrdma_prepare_head_iov() local
[all …]
/linux-6.1.9/net/rds/
Dib_recv.c53 struct ib_sge *sge; in rds_ib_recv_init_ring() local
63 sge = &recv->r_sge[0]; in rds_ib_recv_init_ring()
64 sge->addr = ic->i_recv_hdrs_dma[i]; in rds_ib_recv_init_ring()
65 sge->length = sizeof(struct rds_header); in rds_ib_recv_init_ring()
66 sge->lkey = ic->i_pd->local_dma_lkey; in rds_ib_recv_init_ring()
68 sge = &recv->r_sge[1]; in rds_ib_recv_init_ring()
69 sge->addr = 0; in rds_ib_recv_init_ring()
70 sge->length = RDS_FRAG_SIZE; in rds_ib_recv_init_ring()
71 sge->lkey = ic->i_pd->local_dma_lkey; in rds_ib_recv_init_ring()
311 struct ib_sge *sge; in rds_ib_recv_refill_one() local
[all …]
/linux-6.1.9/net/ipv4/
Dtcp_bpf.c17 struct scatterlist *sge; in bpf_tcp_ingress() local
30 sge = sk_msg_elem(msg, i); in bpf_tcp_ingress()
31 size = (apply && apply_bytes < sge->length) ? in bpf_tcp_ingress()
32 apply_bytes : sge->length; in bpf_tcp_ingress()
42 if (sge->length) in bpf_tcp_ingress()
49 if (sge->length) in bpf_tcp_ingress()
73 struct scatterlist *sge; in tcp_bpf_push() local
81 sge = sk_msg_elem(msg, msg->sg.start); in tcp_bpf_push()
82 size = (apply && apply_bytes < sge->length) ? in tcp_bpf_push()
83 apply_bytes : sge->length; in tcp_bpf_push()
[all …]

12345678