Home
last modified time | relevance | path

Searched refs:dmasize (Results 1 – 25 of 44) sorted by relevance

12

/netbsd/sys/external/bsd/drm2/drm/
H A Ddrm_gem_cma_helper.c51 obj->dmasize = size; in drm_gem_cma_create_internal()
58 error = vmem_xalloc(ddev->cma_pool, obj->dmasize, in drm_gem_cma_create_internal()
66 roundup(obj->dmasize, PAGE_SIZE); in drm_gem_cma_create_internal()
71 error = bus_dmamem_alloc(obj->dmat, obj->dmasize, in drm_gem_cma_create_internal()
79 obj->dmasize, &obj->vaddr, in drm_gem_cma_create_internal()
83 error = bus_dmamap_create(obj->dmat, obj->dmasize, 1, in drm_gem_cma_create_internal()
84 obj->dmasize, 0, BUS_DMA_WAITOK, &obj->dmamap); in drm_gem_cma_create_internal()
88 obj->dmasize, NULL, BUS_DMA_WAITOK); in drm_gem_cma_create_internal()
93 memset(obj->vaddr, 0, obj->dmasize); in drm_gem_cma_create_internal()
102 bus_dmamem_unmap(obj->dmat, obj->vaddr, obj->dmasize); in drm_gem_cma_create_internal()
[all …]
/netbsd/sys/dev/sbus/
H A Dcs4231_sbus.c233 bus_size_t dmasize; in cs4231_sbus_trigger_output() local
242 ret = cs4231_transfer_init(sc, t, &dmaaddr, &dmasize, in cs4231_sbus_trigger_output()
296 cs4231_transfer_advance(t, &dmaaddr, &dmasize); in cs4231_sbus_trigger_output()
365 bus_size_t dmasize; in cs4231_sbus_trigger_input() local
374 ret = cs4231_transfer_init(sc, t, &dmaaddr, &dmasize, in cs4231_sbus_trigger_input()
428 cs4231_transfer_advance(t, &dmaaddr, &dmasize); in cs4231_sbus_trigger_input()
496 bus_size_t dmasize; in cs4231_sbus_intr() local
543 cs4231_transfer_advance(t, &dmaaddr, &dmasize); in cs4231_sbus_intr()
547 APC_DMA_CNC, dmasize); in cs4231_sbus_intr()
566 cs4231_transfer_advance(t, &dmaaddr, &dmasize); in cs4231_sbus_intr()
[all …]
/netbsd/sys/arch/mac68k/obio/
H A Desp.c551 int datain, size_t *dmasize) in esp_dma_setup() argument
558 esc->sc_dmasize = *dmasize; in esp_dma_setup()
652 int datain, size_t *dmasize) in esp_quick_dma_setup() argument
666 esc->sc_dmasize = *dmasize; in esp_quick_dma_setup()
1087 int datain, size_t *dmasize) in esp_av_dma_setup() argument
1100 if (*dmasize == 0) { in esp_av_dma_setup()
1135 *dmasize = uimin(*dmasize, NBPG); in esp_av_dma_setup()
1141 memcpy(esc->sc_obuf, *addr, *dmasize); in esp_av_dma_setup()
1147 *dmasize, NULL, BUS_DMA_NOWAIT); in esp_av_dma_setup()
1152 *dmasize = esc->sc_dmap->dm_segs[0].ds_len; in esp_av_dma_setup()
[all …]
/netbsd/sys/dev/ic/
H A Dlsi64854.c284 int datain, size_t *dmasize) in lsi64854_setup() argument
301 *dmasize = sc->sc_dmasize = in lsi64854_setup()
302 uimin(*dmasize, DMAMAX((size_t)*sc->sc_dmaaddr)); in lsi64854_setup()
316 L64854_REG_CNT, *dmasize); in lsi64854_setup()
542 int datain, size_t *dmasize) in lsi64854_setup_pp() argument
559 *dmasize = sc->sc_dmasize = in lsi64854_setup_pp()
560 uimin(*dmasize, DMAMAX((size_t) *sc->sc_dmaaddr)); in lsi64854_setup_pp()
H A Dahcisata_core.c265 int dmasize; in ahci_attach() local
352 dmasize = in ahci_attach()
362 sc->sc_cmd_hdr_nseg, dmasize, in ahci_attach()
369 error = bus_dmamap_create(sc->sc_dmat, dmasize, 1, dmasize, 0, in ahci_attach()
377 cmdhp, dmasize, NULL, BUS_DMA_NOWAIT); in ahci_attach()
384 memset(cmdhp, 0, dmasize); in ahci_attach()
422 dmasize = AHCI_CMDTBL_SIZE * sc->sc_ncmds; in ahci_attach()
432 achp->ahcic_cmd_tbl_nseg, dmasize, in ahci_attach()
439 error = bus_dmamap_create(sc->sc_dmat, dmasize, 1, dmasize, 0, in ahci_attach()
453 memset(cmdtblp, 0, dmasize); in ahci_attach()
[all …]
H A Dsiisata.c294 int dmasize; in siisata_attach_port() local
313 dmasize = SIISATA_CMD_SIZE * SIISATA_MAX_SLOTS; in siisata_attach_port()
316 __func__, dmasize), DEBUG_FUNCS); in siisata_attach_port()
318 error = bus_dmamem_alloc(sc->sc_dmat, dmasize, PAGE_SIZE, 0, in siisata_attach_port()
329 dmasize, &prbp, BUS_DMA_NOWAIT | BUS_DMA_COHERENT); in siisata_attach_port()
339 error = bus_dmamap_create(sc->sc_dmat, dmasize, 1, dmasize, 0, in siisata_attach_port()
345 bus_dmamem_unmap(sc->sc_dmat, prbp, dmasize); in siisata_attach_port()
352 prbp, dmasize, NULL, BUS_DMA_NOWAIT); in siisata_attach_port()
358 bus_dmamem_unmap(sc->sc_dmat, prbp, dmasize); in siisata_attach_port()
/netbsd/sys/dev/ebus/
H A Dcs4231_ebus.c317 bus_size_t dmasize; in cs4231_ebus_dma_advance() local
319 cs4231_transfer_advance(t, &dmaaddr, &dmasize); in cs4231_ebus_dma_advance()
321 bus_space_write_4(dt, dh, EBUS_DMAC_DNBR, (u_int32_t)dmasize); in cs4231_ebus_dma_advance()
345 bus_size_t dmasize; in cs4231_ebus_trigger_transfer() local
348 ret = cs4231_transfer_init(sc, t, &dmaaddr, &dmasize, in cs4231_ebus_trigger_transfer()
364 bus_space_write_4(dt, dh, EBUS_DMAC_DNBR, (uint32_t)dmasize); in cs4231_ebus_trigger_transfer()
/netbsd/sys/arch/next68k/dev/
H A Dmb8795var.h87 #define MBDMA_SETUP(sc, addr, len, datain, dmasize) \ argument
88 (*(sc)->sc_glue->gl_dma_setup)((sc), (addr), (len), (datain), (dmasize))
/netbsd/sys/dev/pci/
H A Dpcscp.c516 int datain, size_t *dmasize) in pcscp_dma_setup() argument
528 esc->sc_dmasize = *dmasize; in pcscp_dma_setup()
532 if ((*dmasize / MDL_SEG_SIZE) > MDL_SIZE) in pcscp_dma_setup()
540 if (*dmasize == 0) in pcscp_dma_setup()
556 WRITE_DMAREG(esc, DMA_STC, *dmasize); in pcscp_dma_setup()
/netbsd/sys/dev/tc/
H A Dasc_tc.c229 int datain, size_t *dmasize) in asc_tc_setup() argument
242 size = *dmasize; in asc_tc_setup()
245 *dmasize = asc->sc_dmasize = size; in asc_tc_setup()
H A Dasc_tcds.c248 int ispullup, size_t *dmasize) in tcds_dma_setup() argument
263 size = uimin(*dmasize, DMAMAX((size_t)*addr)); in tcds_dma_setup()
267 *dmasize = asc->sc_dmasize = size; in tcds_dma_setup()
/netbsd/sys/arch/amiga/dev/
H A Dflsc.c483 int datain, size_t *dmasize) in flsc_dma_setup() argument
493 fsc->sc_dmasize = *dmasize; in flsc_dma_setup()
496 *dmasize = fsc->sc_dmasize; in flsc_dma_setup()
546 *dmasize = fsc->sc_dmasize; in flsc_dma_setup()
598 *dmasize = fsc->sc_dmasize; in flsc_dma_setup()
H A Dbzivsc.c333 int datain, size_t *dmasize) in bzivsc_dma_setup() argument
343 bsc->sc_dmasize = *dmasize; in bzivsc_dma_setup()
391 *dmasize = bsc->sc_dmasize; in bzivsc_dma_setup()
H A Dbzsc.c341 int datain, size_t *dmasize) in bzsc_dma_setup() argument
351 bsc->sc_dmasize = *dmasize; in bzsc_dma_setup()
399 *dmasize = bsc->sc_dmasize; in bzsc_dma_setup()
H A Dbztzsc.c342 int datain, size_t *dmasize) in bztzsc_dma_setup() argument
352 bsc->sc_dmasize = *dmasize; in bztzsc_dma_setup()
400 *dmasize = bsc->sc_dmasize; in bztzsc_dma_setup()
H A Dcbiisc.c334 int datain, size_t *dmasize) in cbiisc_dma_setup() argument
344 csc->sc_dmasize = *dmasize; in cbiisc_dma_setup()
392 *dmasize = csc->sc_dmasize; in cbiisc_dma_setup()
H A Dcbsc.c341 int datain, size_t *dmasize) in cbsc_dma_setup() argument
351 csc->sc_dmasize = *dmasize; in cbsc_dma_setup()
399 *dmasize = csc->sc_dmasize; in cbsc_dma_setup()
/netbsd/sys/arch/sun3/dev/
H A Ddma.c247 size_t *dmasize) in dma_setup() argument
267 *dmasize = sc->sc_dmasize = in dma_setup()
268 uimin(*dmasize, DMAMAX((size_t) *sc->sc_dmaaddr)); in dma_setup()
H A Desp.c295 int datain, size_t *dmasize) in esp_dma_setup() argument
299 return dma_setup(esc->sc_dma, addr, len, datain, dmasize); in esp_dma_setup()
/netbsd/sys/arch/arc/jazz/
H A Dasc.c379 int datain, size_t *dmasize) in asc_dma_setup() argument
389 asc->sc_dmasize = *dmasize; in asc_dma_setup()
395 if (*dmasize == 0) in asc_dma_setup()
/netbsd/sys/arch/vax/vsa/
H A Dasc_vsbus.c398 int datain, size_t *dmasize) in asc_vsbus_dma_setup() argument
416 *dmasize = asc->sc_dmasize = uimin(*dmasize, ASC_MAXXFERSIZE); in asc_vsbus_dma_setup()
/netbsd/sys/arch/arm/iomd/
H A Diomd_dma.c288 dma_init(int ch, int extp, int dmasize, int ipl) in dma_init() argument
298 dp->dc_dmasize = dmasize; in dma_init()
/netbsd/sys/arch/sparc/dev/
H A Desp_obio.c303 int datain, size_t *dmasize) in esp_dma_setup() argument
307 return DMA_SETUP(esc->sc_dma, addr, len, datain, dmasize); in esp_dma_setup()
/netbsd/sys/arch/pmax/tc/
H A Dasc_ioasic.c214 int ispullup, size_t *dmasize) in asc_ioasic_setup() argument
225 size = uimin(*dmasize, TWOPAGE((size_t)*addr)); in asc_ioasic_setup()
230 *dmasize = size; /* return trimmed transfer size */ in asc_ioasic_setup()
/netbsd/sys/external/bsd/drm2/include/drm/
H A Ddrm_gem_cma_helper.h54 bus_size_t dmasize; member

12