Home
last modified time | relevance | path

Searched refs:segs (Results 1 – 25 of 274) sorted by relevance

1234567891011

/freebsd/stand/kboot/kboot/
H A Dseg.c12 static struct memory_segments *segs; variable
19 if (segs) in init_avail()
20 free(segs); in init_avail()
23 segs = malloc(sizeof(*segs) * segalloc); in init_avail()
24 if (segs == NULL) in init_avail()
41 segs = realloc(segs, segalloc * sizeof(*segs)); in need_avail()
42 if (segs == NULL) in need_avail()
58 segs[nr_seg - 1].end + 1 == start && in add_avail()
59 segs[nr_seg - 1].type == type) { in add_avail()
60 segs[nr_seg - 1].end = end; in add_avail()
[all …]
/freebsd/stand/kboot/kboot/arch/amd64/
H A Dload_addr.c66 static struct memory_segments segs[64]; /* make dynamic later */ variable
90 for (n = 0; n < nitems(segs); n++) { in enumerate_memory_arch()
92 if (!file2u64(name, &segs[n].start)) in enumerate_memory_arch()
95 if (!file2u64(name, &segs[n].end)) in enumerate_memory_arch()
100 if (!str2type(str2type_kv, buf, &segs[n].type)) in enumerate_memory_arch()
114 find_ram(struct memory_segments *segs, int nr_seg, uint64_t minpa, uint64_t align, in find_ram() argument
126 if (segs[i].type != system_ram || in find_ram()
127 SZ(segs[i]) < sz || in find_ram()
128 minpa + sz > segs[i].end || in find_ram()
129 maxpa < segs[i].start) in find_ram()
[all …]
/freebsd/sys/kern/
H A Dsubr_bus_dma.c155 struct mbuf *m, bus_dma_segment_t *segs, int *nsegs, int flags) in _bus_dmamap_load_mbuf_epg() argument
178 flags, segs, nsegs); in _bus_dmamap_load_mbuf_epg()
195 m->m_epg_pa[i] + segoff, seglen, flags, segs, nsegs); in _bus_dmamap_load_mbuf_epg()
203 &m->m_epg_trail[off], len, kernel_pmap, flags, segs, in _bus_dmamap_load_mbuf_epg()
214 struct mbuf *m, bus_dma_segment_t *segs, int *nsegs, int flags) in _bus_dmamap_load_single_mbuf() argument
220 error = _bus_dmamap_load_mbuf_epg(dmat, map, m, segs, nsegs, in _bus_dmamap_load_single_mbuf()
224 kernel_pmap, flags | BUS_DMA_LOAD_MBUF, segs, nsegs); in _bus_dmamap_load_single_mbuf()
235 struct mbuf *m0, bus_dma_segment_t *segs, int *nsegs, int flags) in _bus_dmamap_load_mbuf_sg() argument
245 map, m, segs, nsegs, flags); in _bus_dmamap_load_mbuf_sg()
249 flags | BUS_DMA_LOAD_MBUF, segs, nsegs); in _bus_dmamap_load_mbuf_sg()
[all …]
H A Dsubr_busdma_bounce.c451 bus_size_t sgsize, bus_dma_segment_t *segs, int *segp) in _bus_dmamap_addseg() argument
475 segs[seg].ds_addr = curaddr; in _bus_dmamap_addseg()
476 segs[seg].ds_len = sgsize; in _bus_dmamap_addseg()
478 if (curaddr == segs[seg].ds_addr + segs[seg].ds_len && in _bus_dmamap_addseg()
479 (segs[seg].ds_len + sgsize) <= dmat_maxsegsz(dmat) && in _bus_dmamap_addseg()
480 vm_addr_bound_ok(segs[seg].ds_addr, in _bus_dmamap_addseg()
481 segs[seg].ds_len + sgsize, dmat_boundary(dmat))) in _bus_dmamap_addseg()
482 segs[seg].ds_len += sgsize; in _bus_dmamap_addseg()
486 segs[seg].ds_addr = curaddr; in _bus_dmamap_addseg()
487 segs[seg].ds_len = sgsize; in _bus_dmamap_addseg()
[all …]
/freebsd/sys/powerpc/pseries/
H A Dplpar_iommu.c159 phyp_iommu_map(device_t dev, bus_dma_segment_t *segs, int *nsegs, in phyp_iommu_map() argument
178 allocsize = round_page(segs[i].ds_len + in phyp_iommu_map()
179 (segs[i].ds_addr & PAGE_MASK)); in phyp_iommu_map()
188 KASSERT((alloced + (segs[i].ds_addr & PAGE_MASK)) % in phyp_iommu_map()
192 tce = trunc_page(segs[i].ds_addr); in phyp_iommu_map()
203 segs[i].ds_addr = alloced + (segs[i].ds_addr & PAGE_MASK); in phyp_iommu_map()
204 KASSERT(segs[i].ds_addr > 0, ("Address needs to be positive")); in phyp_iommu_map()
205 KASSERT(segs[i].ds_addr + segs[i].ds_len < maxaddr, in phyp_iommu_map()
217 phyp_iommu_unmap(device_t dev, bus_dma_segment_t *segs, int nsegs, void *cookie) in phyp_iommu_unmap() argument
226 pageround = trunc_page(segs[i].ds_addr); in phyp_iommu_unmap()
[all …]
H A Dphyp_llan.c122 static void llan_rx_load_cb(void *xsc, bus_dma_segment_t *segs, int nsegs,
275 llan_rx_load_cb(void *xsc, bus_dma_segment_t *segs, int nsegs, int err) in llan_rx_load_cb() argument
279 sc->rx_buf_phys = segs[0].ds_addr; in llan_rx_load_cb()
280 sc->rx_buf_len = segs[0].ds_len - 2*PAGE_SIZE; in llan_rx_load_cb()
281 sc->input_buf_phys = segs[0].ds_addr + segs[0].ds_len - PAGE_SIZE; in llan_rx_load_cb()
282 sc->filter_buf_phys = segs[0].ds_addr + segs[0].ds_len - 2*PAGE_SIZE; in llan_rx_load_cb()
326 bus_dma_segment_t segs[1]; in llan_add_rxbuf() local
346 segs, &nsegs, BUS_DMA_NOWAIT); in llan_add_rxbuf()
362 rx->rx_bufdesc |= (((uint64_t)segs[0].ds_len) << 32); in llan_add_rxbuf()
363 rx->rx_bufdesc |= segs[0].ds_addr; in llan_add_rxbuf()
[all …]
/freebsd/sys/dev/ice/
H A Dice_flow.c417 * @segs: array of one or more packet segments that describe the flow
420 static int ice_flow_val_hdrs(struct ice_flow_seg_info *segs, u8 segs_cnt)
426 if (segs[i].hdrs & ICE_FLOW_SEG_HDRS_L3_MASK && in ice_flow_val_hdrs()
427 !ice_is_pow2(segs[i].hdrs & ICE_FLOW_SEG_HDRS_L3_MASK)) in ice_flow_val_hdrs()
431 if (segs[i].hdrs & ICE_FLOW_SEG_HDRS_L4_MASK && in ice_flow_val_hdrs()
432 !ice_is_pow2(segs[i].hdrs & ICE_FLOW_SEG_HDRS_L4_MASK)) in ice_flow_val_hdrs()
461 hdrs = prof->segs[i].hdrs; in ice_flow_proc_seg_hdrs()
571 flds = params->prof->segs[seg].fields; in ice_flow_xtract_fld()
644 prot_id = (params->prof->segs[seg].hdrs & ICE_FLOW_SEG_HDR_IPV4) ? in ice_flow_xtract_fld()
728 ice_cp_bitmap(match, params->prof->segs[ in ice_flow_create_xtrct_seq()
422 ice_flow_val_hdrs(struct ice_flow_seg_info * segs,u8 segs_cnt) ice_flow_val_hdrs() argument
791 ice_flow_find_prof_conds(struct ice_hw * hw,enum ice_block blk,enum ice_flow_dir dir,struct ice_flow_seg_info * segs,u8 segs_cnt,u16 vsi_handle,u32 conds) ice_flow_find_prof_conds() argument
841 ice_flow_find_prof(struct ice_hw * hw,enum ice_block blk,enum ice_flow_dir dir,struct ice_flow_seg_info * segs,u8 segs_cnt) ice_flow_find_prof() argument
910 ice_flow_add_prof_sync(struct ice_hw * hw,enum ice_block blk,enum ice_flow_dir dir,u64 prof_id,struct ice_flow_seg_info * segs,u8 segs_cnt,struct ice_flow_action * acts,u8 acts_cnt,struct ice_flow_prof ** prof) ice_flow_add_prof_sync() argument
1103 ice_flow_add_prof(struct ice_hw * hw,enum ice_block blk,enum ice_flow_dir dir,u64 prof_id,struct ice_flow_seg_info * segs,u8 segs_cnt,struct ice_flow_action * acts,u8 acts_cnt,struct ice_flow_prof ** prof) ice_flow_add_prof() argument
1283 ice_flow_set_rss_seg_info(struct ice_flow_seg_info * segs,u8 seg_cnt,const struct ice_rss_hash_cfg * cfg) ice_flow_set_rss_seg_info() argument
1554 struct ice_flow_seg_info *segs; ice_add_rss_cfg_sync() local
1704 struct ice_flow_seg_info *segs; ice_rem_rss_cfg_sync() local
[all...]
/freebsd/libexec/rtld-elf/
H A Dmap_object.c70 Elf_Phdr **segs; in map_object() local
123 segs = alloca(sizeof(segs[0]) * hdr->e_phnum); in map_object()
134 segs[++nsegs] = phdr; in map_object()
135 if ((segs[nsegs]->p_align & (page_size - 1)) != 0) { in map_object()
140 if ((segs[nsegs]->p_flags & PF_X) == PF_X) { in map_object()
142 rtld_round_page(segs[nsegs]->p_vaddr + in map_object()
143 segs[nsegs]->p_memsz)); in map_object()
205 base_vaddr = rtld_trunc_page(segs[0]->p_vaddr); in map_object()
206 base_vlimit = rtld_round_page(segs[nsegs]->p_vaddr + segs[nsegs]->p_memsz); in map_object()
211 if (npagesizes > 1 && rtld_round_page(segs[0]->p_filesz) >= pagesizes[1]) in map_object()
[all …]
/freebsd/sys/powerpc/powerpc/
H A Dbusdma_machdep.c551 bus_dma_segment_t *segs, in _bus_dmamap_addseg()
558 if (segs == NULL) in _bus_dmamap_addseg()
559 segs = map->segments; in _bus_dmamap_addseg()
578 if (!_bus_dmamap_addsegs(dmat, map, curaddr, sgsize, segs,
594 bus_dma_segment_t *segs, int *segp) in _bus_dmamap_load_phys()
598 segs, segp)); in _bus_dmamap_load_phys()
611 bus_dma_segment_t *segs, in _bus_dmamap_load_phys()
619 if (segs == NULL) in _bus_dmamap_load_phys()
620 segs = map->segments; in _bus_dmamap_load_phys()
655 if (!_bus_dmamap_addsegs(dmat, map, curaddr, sgsize, segs, in _bus_dmamap_load_buffer()
543 _bus_dmamap_addseg(bus_dma_tag_t dmat,bus_dmamap_t map,bus_addr_t curaddr,bus_size_t sgsize,bus_dma_segment_t * segs,int * segp) _bus_dmamap_addseg() argument
588 _bus_dmamap_load_phys(bus_dma_tag_t dmat,bus_dmamap_t map,vm_paddr_t buf,bus_size_t buflen,int flags,bus_dma_segment_t * segs,int * segp) _bus_dmamap_load_phys() argument
632 _bus_dmamap_load_ma(bus_dma_tag_t dmat,bus_dmamap_t map,struct vm_page ** ma,bus_size_t tlen,int ma_offs,int flags,bus_dma_segment_t * segs,int * segp) _bus_dmamap_load_ma() argument
649 _bus_dmamap_load_buffer(bus_dma_tag_t dmat,bus_dmamap_t map,void * buf,bus_size_t buflen,pmap_t pmap,int flags,bus_dma_segment_t * segs,int * segp) _bus_dmamap_load_buffer() argument
729 _bus_dmamap_complete(bus_dma_tag_t dmat,bus_dmamap_t map,bus_dma_segment_t * segs,int nsegs,int error) _bus_dmamap_complete() argument
[all...]
/freebsd/sys/riscv/include/
H A Dbus_dma.h87 bus_size_t buflen, int flags, bus_dma_segment_t *segs, int *segp) in _bus_dmamap_load_phys() argument
92 return (tc->impl->load_phys(dmat, map, buf, buflen, flags, segs, in _bus_dmamap_load_phys()
98 bus_size_t tlen, int ma_offs, int flags, bus_dma_segment_t *segs, in _bus_dmamap_load_ma() argument
105 segs, segp)); in _bus_dmamap_load_ma()
110 bus_size_t buflen, struct pmap *pmap, int flags, bus_dma_segment_t *segs, in _bus_dmamap_load_buffer() argument
116 return (tc->impl->load_buffer(dmat, map, buf, buflen, pmap, flags, segs, in _bus_dmamap_load_buffer()
132 bus_dma_segment_t *segs, int nsegs, int error) in _bus_dmamap_complete() argument
137 return (tc->impl->map_complete(dmat, map, segs, nsegs, error)); in _bus_dmamap_complete()
H A Dbus_dma_impl.h60 bus_dma_segment_t *segs, int *segp);
63 bus_dma_segment_t *segs, int *segp);
66 bus_dma_segment_t *segs, int *segp);
71 bus_dma_segment_t *segs, int nsegs, int error);
/freebsd/sys/x86/include/
H A Dbus_dma.h133 bus_size_t buflen, int flags, bus_dma_segment_t *segs, int *segp) in _bus_dmamap_load_phys() argument
138 return (tc->impl->load_phys(dmat, map, buf, buflen, flags, segs, in _bus_dmamap_load_phys()
144 bus_size_t tlen, int ma_offs, int flags, bus_dma_segment_t *segs, in _bus_dmamap_load_ma() argument
151 segs, segp)); in _bus_dmamap_load_ma()
160 bus_size_t buflen, struct pmap *pmap, int flags, bus_dma_segment_t *segs, in _bus_dmamap_load_buffer() argument
166 return (tc->impl->load_buffer(dmat, map, buf, buflen, pmap, flags, segs, in _bus_dmamap_load_buffer()
184 bus_dma_segment_t *segs, int nsegs, int error) in _bus_dmamap_complete() argument
189 return (tc->impl->map_complete(dmat, map, segs, nsegs, error)); in _bus_dmamap_complete()
H A Dbusdma_impl.h65 bus_dma_segment_t *segs, int *segp);
68 bus_dma_segment_t *segs, int *segp);
71 bus_dma_segment_t *segs, int *segp);
76 bus_dma_segment_t *segs, int nsegs, int error);
/freebsd/sys/x86/x86/
H A Dbusdma_bounce.c633 vm_paddr_t buf, bus_size_t buflen, int flags, bus_dma_segment_t *segs, in _bus_dmamap_addseg()
643 if (segs == NULL) in _bus_dmamap_addseg()
644 segs = dmat->segments; in _bus_dmamap_addseg()
666 if (!_bus_dmamap_addsegs(dmat, map, curaddr, sgsize, segs, in _bus_dmamap_addseg()
685 bus_size_t buflen, pmap_t pmap, int flags, bus_dma_segment_t *segs, in bounce_bus_dmamap_load_phys()
696 if (segs == NULL) in bounce_bus_dmamap_load_phys()
697 segs = dmat->segments; in bounce_bus_dmamap_load_phys()
732 if (!_bus_dmamap_addsegs(dmat, map, curaddr, sgsize, segs, in bounce_bus_dmamap_load_buffer()
748 bus_dma_segment_t *segs, int *segp) in bounce_bus_dmamap_load_buffer()
761 flags, segs, seg in bounce_bus_dmamap_load_buffer()
630 _bus_dmamap_addseg(bus_dma_tag_t dmat,bus_dmamap_t map,vm_paddr_t curaddr,bus_size_t sgsize,bus_dma_segment_t * segs,int * segp) _bus_dmamap_addseg() argument
679 bounce_bus_dmamap_load_phys(bus_dma_tag_t dmat,bus_dmamap_t map,vm_paddr_t buf,bus_size_t buflen,int flags,bus_dma_segment_t * segs,int * segp) bounce_bus_dmamap_load_phys() argument
731 bounce_bus_dmamap_load_buffer(bus_dma_tag_t dmat,bus_dmamap_t map,void * buf,bus_size_t buflen,pmap_t pmap,int flags,bus_dma_segment_t * segs,int * segp) bounce_bus_dmamap_load_buffer() argument
799 bounce_bus_dmamap_load_ma(bus_dma_tag_t dmat,bus_dmamap_t map,struct vm_page ** ma,bus_size_t buflen,int ma_offs,int flags,bus_dma_segment_t * segs,int * segp) bounce_bus_dmamap_load_ma() argument
894 bounce_bus_dmamap_complete(bus_dma_tag_t dmat,bus_dmamap_t map,bus_dma_segment_t * segs,int nsegs,int error) bounce_bus_dmamap_complete() argument
[all...]
/freebsd/sys/dev/cxgb/sys/
H A Duipc_mvec.c53 struct mbuf **m, bus_dma_segment_t *segs, int *nsegs) in busdma_map_sg_collapse() argument
63 err = bus_dmamap_load_mbuf_sg(tag, map, *m, segs, &seg_count, 0); in busdma_map_sg_collapse()
94 struct mbuf *m, bus_dma_segment_t *segs, int *nsegs) in busdma_map_sg_vec() argument
98 for (*nsegs = 0; m != NULL; segs += n, *nsegs += n, m = m->m_nextpkt) in busdma_map_sg_vec()
99 bus_dmamap_load_mbuf_sg(tag, map, m, segs, &n, 0); in busdma_map_sg_vec()
/freebsd/sys/dev/qat/qat/
H A Dqat_ocf_mem_pool.c23 qat_ocf_alloc_single_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) in qat_ocf_alloc_single_cb() argument
31 dma_mem->dma_seg = segs[0]; in qat_ocf_alloc_single_cb()
36 bus_dma_segment_t *segs, in qat_ocf_populate_buf_list_cb() argument
49 segment_addr = segs[iseg].ds_addr; in qat_ocf_populate_buf_list_cb()
50 segment_len = segs[iseg].ds_len; in qat_ocf_populate_buf_list_cb()
73 bus_dma_segment_t *segs, in qat_ocf_crypto_load_aadbuf_cb() argument
88 &qat_cookie->src_buffers, segs, nseg, 0, 0); in qat_ocf_crypto_load_aadbuf_cb()
93 bus_dma_segment_t *segs, in qat_ocf_crypto_load_buf_cb() argument
113 &qat_cookie->src_buffers, segs, nseg, start_segment, skip_bytes); in qat_ocf_crypto_load_buf_cb()
118 bus_dma_segment_t *segs, in qat_ocf_crypto_load_obuf_cb() argument
[all …]
/freebsd/sys/sys/
H A Dbus_dma_internal.h39 bus_dmamap_t map, bus_dma_segment_t *segs,
44 int flags, bus_dma_segment_t *segs, int *segp);
48 int flags, bus_dma_segment_t *segs, int *segp);
52 int flags, bus_dma_segment_t *segs, int *segp);
/freebsd/sys/riscv/riscv/
H A Dbusdma_bounce.c560 vm_paddr_t buf, bus_size_t buflen, int flags, bus_dma_segment_t *segs, in _bus_dmamap_addseg()
568 if (segs == NULL) in _bus_dmamap_addseg()
569 segs = dmat->segments; in _bus_dmamap_addseg()
610 if (!_bus_dmamap_addsegs(dmat, map, curaddr, sgsize, segs, in bounce_bus_dmamap_load_phys()
629 bus_size_t buflen, pmap_t pmap, int flags, bus_dma_segment_t *segs, in bounce_bus_dmamap_load_phys()
638 if (segs == NULL) in bounce_bus_dmamap_load_phys()
639 segs = dmat->segments; in bounce_bus_dmamap_load_phys()
704 if (!_bus_dmamap_addsegs(dmat, map, curaddr, sgsize, segs, in bounce_bus_dmamap_load_buffer()
733 bus_dma_segment_t *segs, int nsegs, int error) in bounce_bus_dmamap_load_buffer()
736 if (segs in bounce_bus_dmamap_load_buffer()
555 _bus_dmamap_addseg(bus_dma_tag_t dmat,bus_dmamap_t map,bus_addr_t curaddr,bus_size_t sgsize,bus_dma_segment_t * segs,int * segp) _bus_dmamap_addseg() argument
597 bounce_bus_dmamap_load_phys(bus_dma_tag_t dmat,bus_dmamap_t map,vm_paddr_t buf,bus_size_t buflen,int flags,bus_dma_segment_t * segs,int * segp) bounce_bus_dmamap_load_phys() argument
667 bounce_bus_dmamap_load_buffer(bus_dma_tag_t dmat,bus_dmamap_t map,void * buf,bus_size_t buflen,pmap_t pmap,int flags,bus_dma_segment_t * segs,int * segp) bounce_bus_dmamap_load_buffer() argument
777 bounce_bus_dmamap_complete(bus_dma_tag_t dmat,bus_dmamap_t map,bus_dma_segment_t * segs,int nsegs,int error) bounce_bus_dmamap_complete() argument
[all...]
/freebsd/sys/dev/sfxge/
H A Dsfxge_dma.c50 sfxge_dma_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) in sfxge_dma_cb() argument
61 *addr = segs[0].ds_addr; in sfxge_dma_cb()
66 struct mbuf **mp, bus_dma_segment_t *segs, in sfxge_dma_map_sg_collapse() argument
81 psegs = segs; in sfxge_dma_map_sg_collapse()
84 sfxge_map_mbuf_fast(tag, map, m, segs); in sfxge_dma_map_sg_collapse()
101 err = bus_dmamap_load_mbuf_sg(tag, map, *mp, segs, &seg_count, 0); in sfxge_dma_map_sg_collapse()
/freebsd/sys/arm/arm/
H A Dbusdma_machdep.c854 bus_size_t buflen, int flags, bus_dma_segment_t *segs, int *segp) in _bus_dmamap_addseg()
862 if (segs == NULL) in _bus_dmamap_addseg()
863 segs = map->segments; in _bus_dmamap_addseg()
910 if (!_bus_dmamap_addsegs(dmat, map, curaddr, sgsize, segs, in _bus_dmamap_load_phys()
930 bus_dma_segment_t *segs, int *segp) in _bus_dmamap_load_phys()
934 segs, segp)); in _bus_dmamap_load_phys()
943 bus_size_t buflen, pmap_t pmap, int flags, bus_dma_segment_t *segs, in _bus_dmamap_load_phys()
961 if (segs == NULL) in _bus_dmamap_load_phys()
962 segs = map->segments; in _bus_dmamap_load_phys()
1034 if (!_bus_dmamap_addsegs(dmat, map, curaddr, sgsize, segs, in _bus_dmamap_load_buffer()
850 _bus_dmamap_addseg(bus_dma_tag_t dmat,bus_dmamap_t map,bus_addr_t curaddr,bus_size_t sgsize,bus_dma_segment_t * segs,int * segp) _bus_dmamap_addseg() argument
892 _bus_dmamap_load_phys(bus_dma_tag_t dmat,bus_dmamap_t map,vm_paddr_t buf,bus_size_t buflen,int flags,bus_dma_segment_t * segs,int * segp) _bus_dmamap_load_phys() argument
969 _bus_dmamap_load_ma(bus_dma_tag_t dmat,bus_dmamap_t map,struct vm_page ** ma,bus_size_t tlen,int ma_offs,int flags,bus_dma_segment_t * segs,int * segp) _bus_dmamap_load_ma() argument
982 _bus_dmamap_load_buffer(bus_dma_tag_t dmat,bus_dmamap_t map,void * buf,bus_size_t buflen,pmap_t pmap,int flags,bus_dma_segment_t * segs,int * segp) _bus_dmamap_load_buffer() argument
1109 _bus_dmamap_complete(bus_dma_tag_t dmat,bus_dmamap_t map,bus_dma_segment_t * segs,int nsegs,int error) _bus_dmamap_complete() argument
[all...]
/freebsd/sys/dev/oce/
H A Doce_util.c45 bus_dma_segment_t *segs,
134 oce_dma_map_addr(void *arg, bus_dma_segment_t * segs, int nseg, int error) in oce_dma_map_addr() argument
141 *paddr = segs->ds_addr; in oce_dma_map_addr()
216 oce_dma_map_ring(void *arg, bus_dma_segment_t * segs, int nseg, int error) in oce_dma_map_ring() argument
225 dpt->paddrs[i].lo = ADDR_LO(segs[i].ds_addr); in oce_dma_map_ring()
226 dpt->paddrs[i].hi = ADDR_HI(segs[i].ds_addr); in oce_dma_map_ring()
/freebsd/sys/dev/rtwn/pci/
H A Drtwn_pci_tx.c97 bus_dma_segment_t segs[1]; in rtwn_pci_tx_start_frame() local
135 error = bus_dmamap_load_mbuf_sg(ring->data_dmat, data->map, m, segs, in rtwn_pci_tx_start_frame()
153 segs, &nsegs, BUS_DMA_NOWAIT); in rtwn_pci_tx_start_frame()
167 rtwn_pci_tx_postsetup(pc, txd, segs); in rtwn_pci_tx_start_frame()
204 bus_dma_segment_t segs[1]; in rtwn_pci_tx_start_beacon() local
231 data->map, m, segs, &nsegs, BUS_DMA_NOWAIT); in rtwn_pci_tx_start_beacon()
240 rtwn_pci_tx_postsetup(pc, txd, segs); in rtwn_pci_tx_start_beacon()
/freebsd/sys/arm64/include/
H A Dbus_dma_impl.h63 bus_dma_segment_t *segs, int *segp);
66 bus_dma_segment_t *segs, int *segp);
69 bus_dma_segment_t *segs, int *segp);
74 bus_dma_segment_t *segs, int nsegs, int error);
/freebsd/sys/dev/usb/
H A Dusb_busdma.c414 usb_pc_alloc_mem_cb(void *arg, bus_dma_segment_t *segs, in usb_pc_alloc_mem_cb() argument
417 usb_pc_common_mem_cb(arg, segs, nseg, error, 0); in usb_pc_alloc_mem_cb()
424 usb_pc_load_mem_cb(void *arg, bus_dma_segment_t *segs, in usb_pc_load_mem_cb() argument
427 usb_pc_common_mem_cb(arg, segs, nseg, error, 1); in usb_pc_load_mem_cb()
434 usb_pc_common_mem_cb(void *arg, bus_dma_segment_t *segs, in usb_pc_common_mem_cb() argument
460 pg->physaddr = rounddown2(segs->ds_addr, USB_PAGE_SIZE); in usb_pc_common_mem_cb()
461 rem = segs->ds_addr & (USB_PAGE_SIZE - 1); in usb_pc_common_mem_cb()
469 if (((segs[x].ds_addr + segs[x].ds_len) & (USB_PAGE_SIZE - 1)) == in usb_pc_common_mem_cb()
470 ((segs[x + 1].ds_addr & (USB_PAGE_SIZE - 1)))) in usb_pc_common_mem_cb()
485 if (off >= (segs->ds_len + rem)) { in usb_pc_common_mem_cb()
[all …]
/freebsd/sys/dev/ips/
H A Dips_disk.c41 static void ipsd_dump_map_sg(void *arg, bus_dma_segment_t *segs, int nsegs,
245 ipsd_dump_map_sg(void *arg, bus_dma_segment_t *segs, int nsegs, int error) in ipsd_dump_map_sg() argument
270 sg_list[i].addr = segs[i].ds_addr; in ipsd_dump_map_sg()
271 sg_list[i].len = segs[i].ds_len; in ipsd_dump_map_sg()
272 length += segs[i].ds_len; in ipsd_dump_map_sg()
278 command_struct->buffaddr = segs[0].ds_addr; in ipsd_dump_map_sg()
279 length = segs[0].ds_len; in ipsd_dump_map_sg()

1234567891011