Home
last modified time | relevance | path

Searched refs:ds_len (Results 1 – 25 of 97) sorted by relevance

1234

/dragonfly/sbin/iscontrol/
H A Dpdu.c115 if((pp->ds_len + len) > 0xffffff) { in addText()
121 if((pp->ds_len + len) > pp->ds_size) { in addText()
133 memcpy(pp->ds + pp->ds_len, str, len); in addText()
134 pp->ds_len += len; in addText()
150 pp->ds_size = pp->ds_len = 0; in freePDU()
160 len = pp->ds_len; in pukeText()
H A Dlogin.c103 len = pp->ds_len; in getkeyval()
159 len = pp->ds_len; in processParams()
/dragonfly/sys/dev/disk/iscsi/initiator/
H A Disc_soc.c147 len = pp->ds_len; in isc_sendPDU()
177 pp->ds_dig = sp->dataDigest(pp->ds, pp->ds_len, 0); in isc_sendPDU()
234 iv->iov_len = pp->ds_len; in isc_sendPDU()
396 pp->ds_len = ((n & 0x00ff0000) >> 16) in so_recv()
400 pp->ds_len = n; in so_recv()
402 len += pp->ds_len; in so_recv()
450 && (ntohl(cmd->edtlen) >= pq->pdu.ds_len)) { in so_recv()
453 iov->iov_len = pq->pdu.ds_len; in so_recv()
459 if(len > pq->pdu.ds_len) { in so_recv()
461 pq->iov[1].iov_len = len - pq->pdu.ds_len; in so_recv()
[all …]
H A Discsi_subr.c119 wpq->pdu.ds_len = bs; in iscsi_r2t()
174 pp->ds_len, sense->error_code, sense->flags); in getSenseData()
540 pq, opq, bhp->opcode, pq->pdu.ds_len); in scsi_decap()
544 pq, opq, bhp->opcode, pq->pdu.ds_len); in scsi_decap()
548 if(pq->pdu.ds_len != 0) { in scsi_decap()
565 ntohl(cmd->edtlen), pq->pdu.ds_len, pq->mp); in scsi_decap()
566 if(ntohl(cmd->edtlen) >= pq->pdu.ds_len) { in scsi_decap()
567 int offset, len = pq->pdu.ds_len; in scsi_decap()
579 ntohl(cmd->edtlen), pq->pdu.ds_len); in scsi_decap()
H A Discsi.c459 sdebug(3, "len=%d ahs_len=%d ds_len=%d", pq->len, pp->ahs_len, pp->ds_len); in i_send()
477 if(pp->ds_len) { in i_send()
478 n = pp->ds_len; in i_send()
549 up->ds_len = 0; in i_recv()
563 if(pp->ds_len) { in i_recv()
564 len += pp->ds_len; in i_recv()
588 if(!error && pp->ds_len) { in i_recv()
589 need = pp->ds_len; in i_recv()
598 up->ds_len = n; in i_recv()
605 sdebug(6, "len=%d ahs_len=%d ds_len=%d", pq->len, pp->ahs_len, pp->ds_len); in i_recv()
H A Disc_sm.c205 if(pp->ds_len != 0) { in _nop_in()
273 if(pp->ds_len) { in i_prepPDU()
274 n = pp->ds_len; in i_prepPDU()
H A Discsi.h434 u_int ds_len; member
/dragonfly/sys/platform/vkernel64/platform/
H A Dbusdma_machdep.c631 sg->ds_len = size; in _bus_dmamap_load_buffer()
634 sg->ds_len += size; in _bus_dmamap_load_buffer()
641 sg->ds_len = size; in _bus_dmamap_load_buffer()
659 KKASSERT(tmpsize < sg->ds_len); in _bus_dmamap_load_buffer()
660 } else if (sg->ds_len > dmat->maxsegsz) { in _bus_dmamap_load_buffer()
671 sg[1].ds_len = sg[0].ds_len - tmpsize; in _bus_dmamap_load_buffer()
673 sg[0].ds_len = tmpsize; in _bus_dmamap_load_buffer()
/dragonfly/sys/dev/raid/ips/
H A Dips_disk.c301 sg_list[i].len = segs[i].ds_len; in ipsd_dump_map_sg()
302 length += segs[i].ds_len; in ipsd_dump_map_sg()
309 length = segs[0].ds_len; in ipsd_dump_map_sg()
H A Dips_commands.c140 sg_list[i].len = segments[i].ds_len; in ips_io_request_callback()
141 length += segments[i].ds_len; in ips_io_request_callback()
151 length = segments[0].ds_len; in ips_io_request_callback()
169 length, segments[0].ds_len); in ips_io_request_callback()
/dragonfly/sys/platform/pc64/x86_64/
H A Dbusdma_machdep.c694 sg->ds_len = size; in _bus_dmamap_load_buffer()
697 sg->ds_len += size; in _bus_dmamap_load_buffer()
704 sg->ds_len = size; in _bus_dmamap_load_buffer()
722 KKASSERT(tmpsize < sg->ds_len); in _bus_dmamap_load_buffer()
723 } else if (sg->ds_len > dmat->maxsegsz) { in _bus_dmamap_load_buffer()
734 sg[1].ds_len = sg[0].ds_len - tmpsize; in _bus_dmamap_load_buffer()
736 sg[0].ds_len = tmpsize; in _bus_dmamap_load_buffer()
/dragonfly/sys/dev/raid/aac/
H A Daac_disk.c207 sg->SgEntry[i].SgByteCount = segs[i].ds_len; in aac_dump_map_sg()
232 sg->SgEntry64[i].SgByteCount = segs[i].ds_len; in aac_dump_map_sg64()
/dragonfly/sys/sys/
H A Dbus_dma.h148 bus_size_t ds_len; /* length of transfer */ member
/dragonfly/sys/dev/disk/nata/chipsets/
H A Data-promise.c895 prd[i].count = htole32(segs[i].ds_len); in ata_promise_mio_setprd()
897 if (segs[i - 1].ds_len > MAXLASTSGSIZE) { in ata_promise_mio_setprd()
899 prd[i - 1].count = htole32(segs[i - 1].ds_len - MAXLASTSGSIZE); in ata_promise_mio_setprd()
902 (segs[i - 1].ds_len - MAXLASTSGSIZE)); in ata_promise_mio_setprd()
/dragonfly/sys/dev/disk/sbp/
H A Dsbp.c2513 (uintmax_t)segments[i].ds_len); in sbp_execute_ocb()
2520 if (s->ds_len > SBP_SEG_MAX) in sbp_execute_ocb()
2523 ocb->orb[4] |= htonl(s->ds_len); in sbp_execute_ocb()
2530 if (s->ds_len < 16) in sbp_execute_ocb()
2534 (size_t)s->ds_len, i+1, (intmax_t)seg); in sbp_execute_ocb()
2536 if (s->ds_len > SBP_SEG_MAX) in sbp_execute_ocb()
2538 ocb->ind_ptr[i].hi = htonl(s->ds_len << 16); in sbp_execute_ocb()
/dragonfly/sys/dev/disk/isp/
H A Disp_freebsd.h405 d->ds_count = e->ds_len; \
414 d->ds_count = e->ds_len; \
H A Disp_pci.c1443 …GDEBUG0, "request/result area @ 0x%jx/0x%jx", (uintmax_t) segs->ds_addr, (uintmax_t) segs->ds_len); in imc()
1473 …p->isp, ISP_LOGDEBUG0, "scdma @ 0x%jx/0x%jx", (uintmax_t) segs->ds_addr, (uintmax_t) segs->ds_len); in imc1()
1883 seg.ds_len = csio->dxfer_len; in isp_pci_dmasetup()
/dragonfly/sys/dev/raid/mpr/
H A Dmpr.c1394 for (bo = 0; bo + sc->chain_frame_size <= segs[s].ds_len; in mpr_load_chains_cb()
1402 if (bo != segs[s].ds_len) in mpr_load_chains_cb()
1403 o += segs[s].ds_len - bo; in mpr_load_chains_cb()
2901 buff_len += htole32(segs[i].ds_len); in mpr_check_pcie_native_sgl()
2953 if (htole32(segs[0].ds_len) < in mpr_check_pcie_native_sgl()
3045 length = segs[i].ds_len; in mpr_check_pcie_native_sgl()
3493 error = mpr_add_dmaseg(cm, segs[i].ds_addr, segs[i].ds_len, in mpr_data_cb()
/dragonfly/sys/dev/raid/hpt27xx/
H A Dhpt27xx_osm_bsd.c485 pSg[idx].size = sgList[idx].ds_len; in os_buildsgl()
518 psg->size = segs[idx].ds_len; in hpt_io_dmamap_callback()
726 pCmd->psg[idx].size = sgList[idx].ds_len; in hpt_scsi_io()
/dragonfly/sys/dev/disk/nata/
H A Data-dma.c211 prd[i].count = htole32(segs[i].ds_len); in ata_dmasetprd()
/dragonfly/sys/dev/crypto/hifn/
H A Dhifn7751.c1706 if ((i != (op->nsegs - 1)) && (op->segs[i].ds_len & 3)) in hifn_dmamap_aligned()
1739 HIFN_D_MASKDONEIRQ | dst->segs[i].ds_len); in hifn_dmamap_load_dst()
1750 dst->segs[i].ds_len; in hifn_dmamap_load_dst()
1757 if ((dst->segs[i].ds_len - cmd->sloplen) != 0) { in hifn_dmamap_load_dst()
1761 (dst->segs[i].ds_len - cmd->sloplen)); in hifn_dmamap_load_dst()
1810 dma->srcr[idx].l = htole32(src->segs[i].ds_len | in hifn_dmamap_load_src()
/dragonfly/sys/dev/crypto/safe/
H A Dsafe.c1203 pd->pd_size = re->re_src_segs[i].ds_len; in safe_process()
2042 if (i != (op->nsegs - 1) && (op->segs[i].ds_len & 3)) in safe_dmamap_aligned()
2066 if (op->segs[i].ds_len % SAFE_MAX_DSIZE) in safe_dmamap_uniform()
2068 if (op->segs[i].ds_len != SAFE_MAX_DSIZE) in safe_dmamap_uniform()
/dragonfly/sys/dev/raid/ida/
H A Dida.c311 hwqcb->seg[i].length = segs[i].ds_len; in ida_setup_dmamap()
/dragonfly/sys/dev/sound/pci/
H A Denvy24ht.c2092 (unsigned long)segs->ds_len); in envy24ht_dmapsetmap()
2096 envy24ht_wrmt(sc, ENVY24HT_MT_PCNT, (uint32_t)(segs->ds_len / 4 - 1), 2); in envy24ht_dmapsetmap()
2110 (unsigned long)segs->ds_len); in envy24ht_dmarsetmap()
2114 envy24ht_wrmt(sc, ENVY24HT_MT_RCNT, (uint32_t)(segs->ds_len / 4 - 1), 2); in envy24ht_dmarsetmap()
/dragonfly/sys/dev/disk/advansys/
H A Dadvansys.c249 seg.ds_len = csio->dxfer_len; in adv_action()
576 scsiq.q1.data_cnt = dm_segs->ds_len; in adv_execute_ccb()

1234