Searched refs:segs (Results 1 - 25 of 301) sorted by last modified time

1234567891011>>

/freebsd-11-stable/sys/dev/arcmsr/
H A Darcmsr.c4382 static void arcmsr_map_free_srb(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
4387 unsigned long srb_phyaddr = (unsigned long)segs->ds_addr;
/freebsd-11-stable/sys/dev/oce/
H A Doce_if.c1059 bus_dma_segment_t segs[OCE_MAX_TX_ELEMENTS]; local
1128 m, segs, &pd->nsegs, BUS_DMA_NOWAIT);
1188 nicfrag->u0.s.frag_pa_hi = ADDR_HI(segs[i].ds_addr);
1189 nicfrag->u0.s.frag_pa_lo = ADDR_LO(segs[i].ds_addr);
1190 nicfrag->u0.s.frag_len = segs[i].ds_len;
1933 bus_dma_segment_t segs[6]; local
1957 segs, &nsegs, BUS_DMA_NOWAIT);
1972 rqe->u0.s.frag_pa_hi = ADDR_HI(segs[0].ds_addr);
1973 rqe->u0.s.frag_pa_lo = ADDR_LO(segs[0].ds_addr);
/freebsd-11-stable/sys/dev/ena/
H A Dena.c190 ena_dmamap_callback(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
194 *(bus_addr_t *) arg = segs[0].ds_addr;
999 bus_dma_segment_t segs[1]; local
1030 rx_info->mbuf, segs, &nsegs, BUS_DMA_NOWAIT);
1042 ena_buf->paddr = segs[0].ds_addr;
H A Dena_datapath.c807 bus_dma_segment_t segs[ENA_BUS_DMA_SEGS]; local
822 segs, &nsegs, BUS_DMA_NOWAIT);
870 if (offset >= segs[iseg].ds_len) {
871 offset -= segs[iseg].ds_len;
873 ena_buf->paddr = segs[iseg].ds_addr + offset;
874 ena_buf->len = segs[iseg].ds_len - offset;
896 ena_buf->paddr = segs[iseg].ds_addr;
897 ena_buf->len = segs[iseg].ds_len;
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Dscatterlist.h311 unsigned int i, segs, cur, len; local
319 for (segs = i = 1; i < count; ++i) {
323 ++segs;
327 if (__predict_false((rc = sg_alloc_table(sgt, segs, gfp_mask))))
/freebsd-11-stable/sys/contrib/ena-com/
H A Dena_plat.h298 void ena_dmamap_callback(void *arg, bus_dma_segment_t *segs, int nseg,
/freebsd-11-stable/libexec/rtld-elf/
H A Dmap_object.c70 Elf_Phdr **segs; local
121 segs = alloca(sizeof(segs[0]) * hdr->e_phnum);
131 segs[++nsegs] = phdr;
132 if ((segs[nsegs]->p_align & (PAGE_SIZE - 1)) != 0) {
197 base_vaddr = trunc_page(segs[0]->p_vaddr);
198 base_vlimit = round_page(segs[nsegs]->p_vaddr + segs[nsegs]->p_memsz);
204 if (npagesizes > 1 && round_page(segs[0]->p_filesz) >= pagesizes[1])
223 data_offset = trunc_page(segs[
[all...]
/freebsd-11-stable/sys/dev/sume/
H A Dif_sume.c1192 callback_dma(void *arg, bus_dma_segment_t *segs, int nseg, int err) argument
1199 *(bus_addr_t *) arg = segs[0].ds_addr;
/freebsd-11-stable/sys/dev/qlxgb/
H A Dqla_os.c73 static void qla_dmamap_callback(void *arg, bus_dma_segment_t *segs, int nsegs,
521 qla_dmamap_callback(void *arg, bus_dma_segment_t *segs, int nsegs, int error) argument
532 *((bus_addr_t *)arg) = segs[0].ds_addr;
1048 bus_dma_segment_t segs[QLA_MAX_SEGMENTS]; local
1065 ret = bus_dmamap_load_mbuf_sg(ha->tx_tag, map, m_head, segs, &nsegs,
1088 segs, &nsegs, BUS_DMA_NOWAIT))) {
1123 if (!(ret = qla_hw_send(ha, segs, nsegs, &tx_idx, m_head))) {
/freebsd-11-stable/sys/dev/e1000/
H A Dif_em.c1918 bus_dma_segment_t segs[EM_MAX_SCATTER]; local
2067 *m_headp, segs, &nsegs, BUS_DMA_NOWAIT);
2145 seg_addr = segs[j].ds_addr;
2146 seg_len = segs[j].ds_len;
3335 em_dmamap_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
3339 *(bus_addr_t *) arg = segs[0].ds_addr;
4262 bus_dma_segment_t segs; local
4298 m, &segs, &nsegs, BUS_DMA_NOWAIT);
4307 rxbuf->paddr = segs.ds_addr;
4855 if (!eop) /* Catch subsequent segs */
[all...]
/freebsd-11-stable/sys/dev/mxge/
H A Dif_mxge.c205 mxge_dmamap_callback(void *arg, bus_dma_segment_t *segs, int nsegs, argument
209 *(bus_addr_t *) arg = segs->ds_addr;
237 1, /* num segs */
3342 1, /* num segs */
3365 3, /* num segs */
3368 1, /* num segs */
3450 ss->tx.max_desc - 2, /* num segs */
4775 MXGE_MAX_SEND_DESC, /* num segs */
/freebsd-11-stable/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_tx.c268 bus_dma_segment_t segs[MLX5E_MAX_TX_MBUF_FRAGS]; local
427 mb, segs, &nsegs, BUS_DMA_NOWAIT);
439 mb, segs, &nsegs, BUS_DMA_NOWAIT);
457 if (segs[x].ds_len == 0)
459 dseg->addr = cpu_to_be64((uint64_t)segs[x].ds_addr);
461 dseg->byte_count = cpu_to_be32((uint32_t)segs[x].ds_len);
/freebsd-11-stable/sys/net/
H A Diflib.c1247 _iflib_dmamap_cb(void *arg, bus_dma_segment_t *segs, int nseg, int err) argument
1251 *(bus_addr_t *) arg = segs[0].ds_addr;
1798 _rxq_refill_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
1803 cb_arg->seg = segs[0];
3036 struct mbuf **m0, bus_dma_segment_t *segs, int *nsegs,
3063 *m0, segs, nsegs, BUS_DMA_NOWAIT);
3134 segs[i].ds_addr = curaddr;
3135 segs[i].ds_len = sgsize;
3219 bus_dma_segment_t *segs; local
3228 segs
3035 iflib_busdma_load_mbuf_sg(iflib_txq_t txq, bus_dma_tag_t tag, bus_dmamap_t map, struct mbuf **m0, bus_dma_segment_t *segs, int *nsegs, int max_segs, int flags) argument
[all...]
/freebsd-11-stable/sys/dev/ubsec/
H A Dubsec.c1028 bcopy(seg, op->segs, nsegs * sizeof (seg[0]));
1830 ubsec_dmamap_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
1833 *paddr = segs->ds_addr;
2054 if (op->segs[i].ds_addr & 3)
2057 (op->segs[i].ds_len & 3))
/freebsd-11-stable/sys/dev/mfi/
H A Dmfi.c356 mfi_addr_cb(void *arg, bus_dma_segment_t *segs, int nsegs, int error) argument
361 *addr = segs[0].ds_addr;
2337 mfi_data_cb(void *arg, bus_dma_segment_t *segs, int nsegs, int error) argument
2378 sgl->sg_skinny[i].addr = segs[i].ds_addr;
2379 sgl->sg_skinny[i].len = segs[i].ds_len;
2390 sgl->sg32[j].addr = segs[0].ds_addr;
2393 sgl->sg64[j].addr = segs[0].ds_addr;
2400 sgl->sg32[j].addr = segs[i].ds_addr + first;
2401 sgl->sg32[j++].len = segs[i].ds_len - first;
2406 sgl->sg64[j].addr = segs[
[all...]
/freebsd-11-stable/sys/dev/sound/pci/
H A Demu10k1.c1308 emu_setmap(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
1312 *phys = error ? 0 : (bus_addr_t)segs->ds_addr;
1316 (unsigned long)segs->ds_addr, (unsigned long)segs->ds_len,
/freebsd-11-stable/sys/dev/mrsas/
H A Dmrsas_cam.c103 mrsas_data_load_cb(void *arg, bus_dma_segment_t *segs,
110 bus_dma_segment_t *segs, int nsegs);
112 bus_dma_segment_t *segs, int nseg);
114 bus_dma_segment_t *segs, int nseg);
1406 bus_dma_segment_t *segs, int nsegs)
1422 if ((segs[0].ds_len) < (data_length - (mr_nvme_pg_size * 4)))
1430 if ((segs[i].ds_addr % mr_nvme_pg_size) ||
1431 (segs[i].ds_len % mr_nvme_pg_size)) {
1440 if ((segs[i].ds_addr + segs[
1405 mrsas_is_prp_possible(struct mrsas_mpt_cmd *cmd, bus_dma_segment_t *segs, int nsegs) argument
1531 mrsas_build_ieee_sgl(struct mrsas_mpt_cmd *cmd, bus_dma_segment_t *segs, int nseg) argument
1591 mrsas_build_prp_nvme(struct mrsas_mpt_cmd *cmd, bus_dma_segment_t *segs, int nseg) argument
1708 mrsas_data_load_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
[all...]
/freebsd-11-stable/sys/kern/
H A Dlink_elf.c782 Elf_Phdr *segs[MAXSEGS]; local
899 segs[nsegs] = phdr;
934 base_offset = trunc_page(segs[0]->p_offset);
935 base_vaddr = trunc_page(segs[0]->p_vaddr);
936 base_vlimit = round_page(segs[nsegs - 1]->p_vaddr +
937 segs[nsegs - 1]->p_memsz);
971 caddr_t segbase = mapbase + segs[i]->p_vaddr - base_vaddr;
973 segbase, segs[i]->p_filesz, segs[i]->p_offset,
978 bzero(segbase + segs[
[all...]
/freebsd-11-stable/sys/dev/ciss/
H A Dciss.c129 static void ciss_command_map_helper(void *arg, bus_dma_segment_t *segs,
173 static void ciss_request_map_helper(void *arg, bus_dma_segment_t *segs,
1176 ciss_command_map_helper(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
1181 *addr = segs[0].ds_addr;
2762 ciss_request_map_helper(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
2776 cc->sg[i].address = segs[i].ds_addr;
2777 cc->sg[i].length = segs[i].ds_len;
/freebsd-11-stable/sys/dev/sound/pci/hda/
H A Dhdac.c525 hdac_dma_cb(void *callback_arg, bus_dma_segment_t *segs, int nseg, int error) argument
531 dma->dma_paddr = segs[0].ds_addr;
/freebsd-11-stable/sys/dev/cx/
H A Dif_cx.c570 cx_bus_dmamap_addr (void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
579 *addr = segs->ds_addr;
/freebsd-11-stable/sys/dev/ctau/
H A Dif_ct.c470 ct_bus_dmamap_addr (void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
479 *addr = segs->ds_addr;
/freebsd-11-stable/sys/dev/netmap/
H A Dnetmap_kern.h1669 __unused bus_dma_segment_t * segs, __unused int nseg, __unused int error)
1668 netmap_dmamap_cb(__unused void *arg, __unused bus_dma_segment_t * segs, __unused int nseg, __unused int error) argument
/freebsd-11-stable/usr.sbin/camdd/
H A Dcamdd.c202 bus_dma_segment_t *segs; member in struct:camdd_buf_data
729 if (data->segs != NULL) {
734 data->segs[data->sg_count - 1].ds_addr;
738 free(data->segs);
739 data->segs = NULL;
842 data->segs = calloc(data->sg_count, sizeof(bus_dma_segment_t));
843 if (data->segs == NULL) {
870 data->segs[i].ds_addr =
872 data->segs[i].ds_len = tmp_data->fill_len -
887 data->segs[
[all...]
/freebsd-11-stable/sys/dev/ioat/
H A Dioat.c75 static void ioat_dmamap_cb(void *arg, bus_dma_segment_t *segs, int nseg,
572 ioat_dmamap_cb(void *arg, bus_dma_segment_t *segs, int nseg, int error) argument
578 *baddr = segs->ds_addr;

Completed in 530 milliseconds

1234567891011>>