Home
last modified time | relevance | path

Searched refs:cur_seg (Results 1 – 14 of 14) sorted by relevance

/linux-5.19.10/drivers/usb/cdns3/
Dcdnsp-ring.c537 struct cdnsp_segment *cur_seg; in cdnsp_trb_in_td() local
544 cur_seg = start_seg; in cdnsp_trb_in_td()
550 temp_trb = &cur_seg->trbs[TRBS_PER_SEGMENT - 1]; in cdnsp_trb_in_td()
552 end_seg_dma = cdnsp_trb_virt_to_dma(cur_seg, temp_trb); in cdnsp_trb_in_td()
554 end_trb_dma = cdnsp_trb_virt_to_dma(cur_seg, end_trb); in cdnsp_trb_in_td()
557 end_trb_dma, cur_seg->dma, in cdnsp_trb_in_td()
568 return cur_seg; in cdnsp_trb_in_td()
577 (suspect_dma >= cur_seg->dma && in cdnsp_trb_in_td()
579 return cur_seg; in cdnsp_trb_in_td()
588 return cur_seg; in cdnsp_trb_in_td()
[all …]
/linux-5.19.10/drivers/scsi/elx/efct/
Defct_lio.c448 ocp->cur_seg = 0; in efct_lio_write_pending()
454 curcnt = (ocp->seg_map_cnt - ocp->cur_seg); in efct_lio_write_pending()
457 for (cnt = 0, sg = cmd->t_data_sg; cnt < ocp->cur_seg; cnt++, in efct_lio_write_pending()
466 ocp->cur_seg++; in efct_lio_write_pending()
469 if (ocp->cur_seg == ocp->seg_cnt) in efct_lio_write_pending()
492 ocp->cur_seg = 0; in efct_lio_queue_data_in()
510 curcnt = min(ocp->seg_map_cnt - ocp->cur_seg, io->sgl_allocated); in efct_lio_queue_data_in()
513 sg = &cmd->t_data_sg[ocp->cur_seg]; in efct_lio_queue_data_in()
523 ocp->cur_seg++; in efct_lio_queue_data_in()
531 ocp->seg_cnt = ocp->cur_seg; in efct_lio_queue_data_in()
[all …]
Defct_lio.h118 u32 cur_seg; member
/linux-5.19.10/drivers/infiniband/hw/hfi1/
Drc.c185 qp->s_ack_rdma_psn = mask_psn(e->psn + req->cur_seg); in make_rc_ack()
280 req->cur_seg == req->alloc_seg) { in make_rc_ack()
297 if (req->cur_seg != req->total_segs) in make_rc_ack()
804 req->cur_seg = 0; in hfi1_make_rc_req()
813 wqe->length - req->seg_len * req->cur_seg); in hfi1_make_rc_req()
826 if (req->cur_seg >= req->total_segs && in hfi1_make_rc_req()
1048 req->cur_seg = delta_psn(qp->s_psn, wqe->psn) / priv->pkts_ps; in hfi1_make_rc_req()
1071 wqe->length - req->seg_len * req->cur_seg); in hfi1_make_rc_req()
1084 if (req->cur_seg >= req->total_segs && in hfi1_make_rc_req()
1117 wqe->length - req->seg_len * req->cur_seg); in hfi1_make_rc_req()
[all …]
Dtid_rdma.c1749 req->cur_seg * req->seg_len + flow->sent); in hfi1_build_tid_rdma_read_packet()
1770 req->cur_seg++; in hfi1_build_tid_rdma_read_packet()
1971 req->cur_seg = 0; in tid_rdma_rcv_read_request()
2092 (req->state == TID_REQUEST_SYNC && !req->cur_seg)) { in tid_rdma_rcv_error()
2146 req->cur_seg = delta_psn(psn, e->psn); in tid_rdma_rcv_error()
2165 req->cur_seg == req->comp_seg || in tid_rdma_rcv_error()
2178 req->cur_seg = req->comp_seg; in tid_rdma_rcv_error()
2551 req->comp_seg == req->cur_seg) || in hfi1_rc_rcv_tid_rdma_read_resp()
2943 if (req->comp_seg == req->cur_seg) in hfi1_handle_kdeth_eflags()
3107 rvt_skip_sge(&qpriv->tid_ss, (req->cur_seg * req->seg_len) + in hfi1_tid_rdma_restart_req()
[all …]
Dtid_rdma.h121 u32 cur_seg; /* index of current segment */ member
Dtrace_tid.h1054 __field(u32, cur_seg)
1076 __entry->cur_seg = req->cur_seg;
1099 __entry->cur_seg,
/linux-5.19.10/drivers/usb/host/
Dxhci-ring.c2028 struct xhci_segment *cur_seg; in trb_in_td() local
2031 cur_seg = start_seg; in trb_in_td()
2037 end_seg_dma = xhci_trb_virt_to_dma(cur_seg, in trb_in_td()
2038 &cur_seg->trbs[TRBS_PER_SEGMENT - 1]); in trb_in_td()
2040 end_trb_dma = xhci_trb_virt_to_dma(cur_seg, end_trb); in trb_in_td()
2048 (unsigned long long)cur_seg->dma, in trb_in_td()
2055 return cur_seg; in trb_in_td()
2062 (suspect_dma >= cur_seg->dma && in trb_in_td()
2064 return cur_seg; in trb_in_td()
2070 return cur_seg; in trb_in_td()
[all …]
/linux-5.19.10/drivers/infiniband/core/
Dmad_priv.h141 struct ib_rmpp_segment *cur_seg; member
Dmad.c826 send_wr->cur_seg = container_of(send_wr->rmpp_list.next, in alloc_send_rmpp_list()
828 send_wr->last_ack_seg = send_wr->cur_seg; in alloc_send_rmpp_list()
957 list = &mad_send_wr->cur_seg->list; in ib_get_rmpp_segment()
959 if (mad_send_wr->cur_seg->num < seg_num) { in ib_get_rmpp_segment()
960 list_for_each_entry(mad_send_wr->cur_seg, list, list) in ib_get_rmpp_segment()
961 if (mad_send_wr->cur_seg->num == seg_num) in ib_get_rmpp_segment()
963 } else if (mad_send_wr->cur_seg->num > seg_num) { in ib_get_rmpp_segment()
964 list_for_each_entry_reverse(mad_send_wr->cur_seg, list, list) in ib_get_rmpp_segment()
965 if (mad_send_wr->cur_seg->num == seg_num) in ib_get_rmpp_segment()
968 return mad_send_wr->cur_seg->data; in ib_get_rmpp_segment()
Dmad_rmpp.c953 mad_send_wr->cur_seg = mad_send_wr->last_ack_seg; in ib_retry_rmpp()
/linux-5.19.10/drivers/scsi/aic7xxx/
Daic7xxx_osm.c1504 struct scatterlist *cur_seg; in ahc_linux_run_command() local
1513 scsi_for_each_sg(cmd, cur_seg, nseg, i) { in ahc_linux_run_command()
1518 addr = sg_dma_address(cur_seg); in ahc_linux_run_command()
1519 len = sg_dma_len(cur_seg); in ahc_linux_run_command()
Daic79xx_osm.c1616 struct scatterlist *cur_seg; in ahd_linux_run_command() local
1621 scsi_for_each_sg(cmd, cur_seg, nseg, i) { in ahd_linux_run_command()
1625 addr = sg_dma_address(cur_seg); in ahd_linux_run_command()
1626 len = sg_dma_len(cur_seg); in ahd_linux_run_command()
/linux-5.19.10/drivers/scsi/qla2xxx/
Dqla_iocb.c592 struct scatterlist *cur_seg; in qla24xx_build_scsi_type_6_iocbs() local
625 cur_seg = scsi_sglist(cmd); in qla24xx_build_scsi_type_6_iocbs()
656 append_dsd64(&cur_dsd, cur_seg); in qla24xx_build_scsi_type_6_iocbs()
657 cur_seg = sg_next(cur_seg); in qla24xx_build_scsi_type_6_iocbs()