• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/pms/freebsd/driver/common/

Lines Matching defs:pmsc

63   struct agtiapi_softc *pmsc = thisCardInst->pCard;
73 pmsc->typhn, // maxsize (size)
75 pmsc->typhn, // maxsegsize
79 &pmsc->typh_dmat ) ) {
84 if( bus_dmamem_alloc( pmsc->typh_dmat,
85 &pmsc->typh_mem,
87 &pmsc->typh_mapp ) ) {
89 pmsc->typhn );
93 if ( bus_dmamap_load( pmsc->typh_dmat,
94 pmsc->typh_mapp,
95 pmsc->typh_mem,
96 pmsc->typhn,
98 &pmsc->typh_busaddr,
99 0 ) || !pmsc->typh_busaddr ) {
101 if( pmsc->typh_busaddr ) break;
105 if( ! pmsc->typh_busaddr ) {
107 pmsc->typhn );
112 pmsc->typhIdx = 0;
113 pmsc->tyPhsIx = 0;
133 struct agtiapi_softc *pmsc = thisCardInst->pCard;
146 (void*) pmsc->typh_busaddr,
147 (void*) ( (U32_64)pmsc->typh_busaddr + pmsc->typhn ) );
325 if ( pmsc->flags & AGTIAPI_INITIATOR ) {
493 struct agtiapi_softc *pmsc = thisCardInst->pCard;
581 pmsc->typhn = lAllMem;
645 struct agtiapi_softc *pmsc = thisCardInst->pCard; // get card reference
648 *VirtAlloc = (void*)( (U64)pmsc->typh_mem + pmsc->typhIdx );
652 pmsc->typhIdx += residAlign + MemSize; // update index
655 pDmaAddr = (vm_paddr_t*)( (U64)pmsc->typh_busaddr + pmsc->tyPhsIx );
660 pmsc->tyPhsIx += residAlign + MemSize; // update index
665 // pmsc->tyPhsIx, MemSize, residAlign, pDmaAddr, lPhysAligned,
700 struct agtiapi_softc *pmsc = pCardInfo->pCard; // get card reference
701 if( pmsc->typh_busaddr != 0 ) {
702 bus_dmamap_unload( pmsc->typh_dmat, pmsc->typh_mapp );
704 if( pmsc->typh_mem != NULL ) {
705 bus_dmamem_free( pmsc->typh_dmat, pmsc->typh_mem, pmsc->typh_mapp );
707 if( pmsc->typh_dmat != NULL ) {
708 bus_dma_tag_destroy( pmsc->typh_dmat );