Searched refs:nseg (Results 1 - 25 of 137) sorted by relevance

123456

/freebsd-9.3-release/sys/dev/firewire/
H A Dfwdma.c65 fwdma_map_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
160 int nseg; local
165 nseg = n;
169 nseg = howmany(n, ssize / esize);
172 + sizeof(struct fwdma_seg)*nseg, M_FW, M_WAITOK);
179 am->nseg = 0;
203 printf("malloc_multi: ssize=%d nseg=%d\n", ssize, nseg);
205 printf("malloc_multi: ssize=%td nseg=%d\n", ssize, nseg);
[all...]
H A Dfwdma.h53 int nseg; member in struct:fwdma_alloc_multi
101 for (i = 0; i < am->nseg; i++, seg++)
/freebsd-9.3-release/sys/dev/oce/
H A Doce_util.c45 int nseg,
132 * @param nseg number of dma memory segments
136 oce_dma_map_addr(void *arg, bus_dma_segment_t * segs, int nseg, int error) argument
224 * @param nseg number of dma memory segments
228 oce_dma_map_ring(void *arg, bus_dma_segment_t * segs, int nseg, int error) argument
235 if (nseg <= dpt->max_entries) {
236 for (i = 0; i < nseg; i++) {
240 dpt->num_entries = nseg;
/freebsd-9.3-release/sys/dev/advansys/
H A Dadvansys.h43 int nseg, int error);
H A Dadwvar.h44 int nseg, int error);
H A Dadwcam.c83 int nseg, int error);
89 int nseg, int error);
144 adwmapmem(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
226 adwexecuteacb(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error) argument
251 if (nseg != 0) {
256 if (nseg > 1) {
263 end_seg = dm_segs + nseg;
315 if (nseg != 0)
/freebsd-9.3-release/sys/dev/usb/
H A Dusb_busdma.c392 int nseg, int error)
394 usb_pc_common_mem_cb(arg, segs, nseg, error, 0);
402 int nseg, int error)
404 usb_pc_common_mem_cb(arg, segs, nseg, error, 1);
412 int nseg, int error, uint8_t isload)
455 nseg--;
459 if (nseg == 0)
391 usb_pc_alloc_mem_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
401 usb_pc_load_mem_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
411 usb_pc_common_mem_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error, uint8_t isload) argument
/freebsd-9.3-release/sys/mips/adm5120/
H A Dif_admsw.c157 admsw_dma_map_addr(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
164 KASSERT(nseg == 1, ("too many DMA segments, %d should be 1", nseg));
170 admsw_rxbuf_map_addr(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
177 KASSERT(nseg == 1, ("too many DMA segments, %d should be 1", nseg));
180 ds->ds_nsegs = nseg;
187 admsw_mbuf_map_addr(void *arg, bus_dma_segment_t *segs, int nseg, argument
197 if((nseg != 1) && (nseg !
[all...]
/freebsd-9.3-release/sys/dev/isp/
H A Disp_pci.c1456 imc(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
1465 if (nseg != 1) {
1504 imc1(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
1511 if (nseg != 1) {
1770 tdma2_2(void *arg, bus_dma_segment_t *dm_segs, int nseg, bus_size_t mapsize, int error) argument
1775 tdma2(arg, dm_segs, nseg, error);
1779 tdma2(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error) argument
1795 if (nseg) {
1797 if (nseg >= ISP_NSEG64_MAX) {
1798 isp_prt(isp, ISP_LOGERR, "number of segments (%d) exceed maximum we can support (%d)", nseg, ISP_NSEG64_MA
1845 dma2_2(void *arg, bus_dma_segment_t *dm_segs, int nseg, bus_size_t mapsize, int error) argument
1854 dma2(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error) argument
[all...]
/freebsd-9.3-release/contrib/groff/src/preproc/grn/
H A Dhgraph.cpp640 register int nseg; /* effective resolution for each curve */ local
668 nseg = (int) groff_hypot((double) xp, (double) yp);
671 /* `nseg' is the number of line */
674 nseg = (int) ((double) (nseg + (int) groff_hypot((double) xp, (double) yp)) /
677 for (i = 1; i < nseg; i++) {
678 w = (double) i / (double) nseg;
/freebsd-9.3-release/sys/dev/mrsas/
H A Dmrsas_cam.c87 int nseg, int error);
808 io_request->RaidContext.nseg = 0x1;
832 io_request->RaidContext.nseg = 0x1;
973 mrsas_data_load_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
997 if (nseg > sc->max_num_sge) {
1011 if (nseg != 0) {
1012 for (i=0; i < nseg; i++) {
1017 if (i == nseg - 1)
1026 (nseg > sc->max_sge_in_main_msg)) {
1041 sg_chain->Length = (sizeof(MPI2_SGE_IO_UNION) * (nseg
[all...]
/freebsd-9.3-release/sys/dev/aacraid/
H A Daacraid.c81 int pages, int nseg, int nseg_new);
91 int nseg, int error);
98 static void aac_common_map(void *arg, bus_dma_segment_t *segs, int nseg,
1174 aac_map_command_helper(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
1303 aacraid_map_command_sg(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
1313 fwprintf(sc, HBA_FLAGS_DBG_FUNCTION_ENTRY_B, "nseg %d", nseg);
1326 raw->sgeCnt = nseg;
1328 for (i = 0; i < nseg; i++) {
1339 } else if ((i+1) < nseg
1453 aac_convert_sgraw2(struct aac_softc *sc, struct aac_raw_io2 *raw, int pages, int nseg, int nseg_new) argument
1524 aac_common_map(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
[all...]
/freebsd-9.3-release/sys/dev/isci/
H A Disci.c65 int nseg, int error);
382 int nseg, int error)
388 if (nseg != 1 || error != 0)
381 isci_allocate_dma_buffer_callback(void *arg, bus_dma_segment_t *seg, int nseg, int error) argument
/freebsd-9.3-release/sys/dev/sfxge/
H A Dsfxge_dma.c43 sfxge_dma_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
/freebsd-9.3-release/sys/dev/ahb/
H A Dahb.c77 int nseg, int error);
474 ahbmapecbs(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
902 ahbexecuteecb(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error) argument
930 if (nseg != 0) {
935 end_seg = dm_segs + nseg;
946 if (nseg > 1) {
949 ecb->hecb.data_len = sizeof(ahb_sg_t) * nseg;
975 if (nseg != 0)
/freebsd-9.3-release/sys/ia64/isa/
H A Disa_dma.c209 static void isa_dmastart_cb(void *arg, bus_dma_segment_t *segs, int nseg, argument
221 if (nseg != 1)
/freebsd-9.3-release/sys/dev/iir/
H A Diir.c179 int nseg, int error);
181 int nseg, int error);
1169 gdtmapmem(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error) argument
1178 gdtexecuteccb(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error) argument
1192 gdt, gccb, dm_segs, nseg, error));
1193 gdt_stat.sg_count_act = nseg;
1194 if (nseg > gdt_stat.sg_count_max)
1195 gdt_stat.sg_count_max = nseg;
1199 for (i = 0; i < nseg; ++i) {
1207 nseg);
[all...]
/freebsd-9.3-release/sys/dev/mpt/
H A Dmpt_cam.c1259 mpt_execute_req_a64(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error) argument
1283 if (error == 0 && ((uint32_t)nseg) >= mpt->max_seg_cnt) {
1306 if (error == 0 && ((uint32_t)nseg) >= mpt->max_seg_cnt) {
1309 nseg, mpt->max_seg_cnt);
1359 if (nseg == 0) {
1408 if (nseg < MPT_NSGL_FIRST(mpt)) {
1409 first_lim = nseg;
1436 if (seg == nseg - 1) {
1444 if (seg == nseg) {
1461 while (seg < nseg) {
1663 mpt_execute_req(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error) argument
[all...]
/freebsd-9.3-release/sys/dev/aha/
H A Daha.c972 ahaexecuteccb(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error) argument
997 if (nseg != 0) {
1002 end_seg = dm_segs + nseg;
1013 if (nseg > 1) {
1015 ahautoa24((sizeof(aha_sg_t) * nseg),
1041 if (nseg != 0)
1068 if (nseg != 0)
1687 ahamapmboxes(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
1696 ahamapccbs(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
1705 ahamapsgs(void *arg, bus_dma_segment_t *segs, int nseg, in argument
[all...]
/freebsd-9.3-release/sys/dev/buslogic/
H A Dbt.c1392 btexecuteccb(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error) argument
1416 if (nseg != 0) {
1421 end_seg = dm_segs + nseg;
1432 if (nseg > 1) {
1434 bccb->hccb.data_len = sizeof(bt_sg_t) * nseg;
1459 if (nseg != 0)
1488 if (nseg != 0)
2259 btmapmboxes(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
2268 btmapccbs(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
2277 btmapsgs(void *arg, bus_dma_segment_t *segs, int nseg, in argument
[all...]
/freebsd-9.3-release/sys/dev/cesa/
H A Dcesa.c143 cesa_alloc_dma_mem_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
150 KASSERT(nseg == 1, ("Got wrong number of DMA segments, should be 1."));
597 cesa_create_chain_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
643 cesa_create_chain_cb(cci, segs, nseg, cci->cci_error);
648 cesa_create_chain_cb(cci, segs, nseg, cci->cci_error);
655 cesa_create_chain_cb(cci, segs, nseg, cci->cci_error);
660 cesa_create_chain_cb(cci, segs, nseg, cci->cci_error);
685 while (nseg-- && len > 0) {
800 cesa_create_chain_cb2(void *arg, bus_dma_segment_t *segs, int nseg, argument
804 cesa_create_chain_cb(arg, segs, nseg, erro
[all...]
/freebsd-9.3-release/sys/dev/xen/blkback/
H A Dblkback.c1511 u_int nseg; local
1611 nseg = ring_req->nr_segments;
1613 nreq->nr_pages = nseg;
1619 if (unlikely(nseg == 0)
1620 || unlikely(nseg > xbb->max_request_segments)) {
1622 nseg);
1674 block_segs = MIN(nseg - req_seg_idx,
2070 u_int nseg; local
2111 nseg = reqlist->nr_segments;
2113 for (seg_idx = 0; seg_idx < nseg; seg_id
2244 u_int nseg; local
[all...]
/freebsd-9.3-release/sys/dev/xl/
H A Dif_xl.c335 xl_dma_map_addr(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
1761 int error, nseg; local
1775 segs, &nseg, BUS_DMA_NOWAIT);
1782 KASSERT(nseg == 1,
1783 ("%s: too many DMA segments (%d)", __func__, nseg));
2339 int error, i, nseg, total_len; local
2345 sc->xl_cdata.xl_tx_segs, &nseg, BUS_DMA_NOWAIT);
2370 *m_head, sc->xl_cdata.xl_tx_segs, &nseg, BUS_DMA_NOWAIT);
2379 KASSERT(nseg <= XL_MAXFRAGS,
2380 ("%s: too many DMA segments (%d)", __func__, nseg));
[all...]
/freebsd-9.3-release/sys/arm/xscale/ixp425/
H A Dif_npe.c1064 int error, nseg; local
1077 segs, &nseg, 0);
1300 int nseg, len, error, i; local
1317 m, segs, &nseg, 0);
1322 __func__, nseg);
1328 m, segs, &nseg, 0);
1330 if (error != 0 || nseg == 0) {
1331 if_printf(ifp, "%s: error %u nseg %u\n",
1332 __func__, error, nseg);
1349 for (i = 0; i < nseg;
[all...]
/freebsd-9.3-release/sys/dev/tx/
H A Dif_tx.c203 epic_dma_map_addr(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
210 KASSERT(nseg == 1, ("too many DMA segments, %d should be 1", nseg));
600 epic_dma_map_txbuf(void *arg, bus_dma_segment_t *segs, int nseg, argument
609 KASSERT(nseg <= EPIC_MAX_FRAGS, ("too many DMA segments"));
612 for (i = 0; i < nseg; i++) {
617 flist->numfrags = nseg;
621 epic_dma_map_rxbuf(void *arg, bus_dma_segment_t *segs, int nseg, argument
629 KASSERT(nseg == 1, ("too many DMA segments"));

Completed in 192 milliseconds

123456