Lines Matching refs:nexops

124 iommulib_nexus_register(dev_info_t *dip, iommulib_nexops_t *nexops,
133 ASSERT(nexops);
144 "or busy held for nexops vector (%p). Failing registration",
145 f, (void *)nexops);
149 if (nexops->nops_vers != IOMMU_NEXOPS_VERSION) {
150 cmn_err(CE_WARN, "%s: %s%d: Invalid IOMMULIB nexops version "
151 "in nexops vector (%p). Failing NEXUS registration",
152 f, driver, instance, (void *)nexops);
156 ASSERT(nexops->nops_data == NULL);
158 if (nexops->nops_id == NULL) {
160 "Failing registration for nexops vector: %p",
161 f, driver, instance, (void *)nexops);
165 if (nexops->nops_dma_allochdl == NULL) {
168 driver, instance, (void *)nexops);
172 if (nexops->nops_dma_freehdl == NULL) {
175 driver, instance, (void *)nexops);
179 if (nexops->nops_dma_bindhdl == NULL) {
182 driver, instance, (void *)nexops);
186 if (nexops->nops_dma_sync == NULL) {
189 driver, instance, (void *)nexops);
193 if (nexops->nops_dma_reset_cookies == NULL) {
196 driver, instance, (void *)nexops);
200 if (nexops->nops_dma_get_cookies == NULL) {
203 driver, instance, (void *)nexops);
207 if (nexops->nops_dma_set_cookies == NULL) {
210 driver, instance, (void *)nexops);
214 if (nexops->nops_dma_clear_cookies == NULL) {
217 driver, instance, (void *)nexops);
221 if (nexops->nops_dma_get_sleep_flags == NULL) {
224 driver, instance, (void *)nexops);
228 if (nexops->nops_dma_win == NULL) {
231 driver, instance, (void *)nexops);
235 if (nexops->nops_dmahdl_setprivate == NULL) {
238 driver, instance, (void *)nexops);
242 if (nexops->nops_dmahdl_getprivate == NULL) {
245 driver, instance, (void *)nexops);
266 nexp->nex_ops = *nexops;
289 "nexops=%p", f, driver, instance, ddi_node_name(dip),
290 (void *)nexops);
760 iommulib_nexops_t *nexops;
762 nexops = &DEVI(dip)->devi_iommulib_nex_handle->nex_ops;
763 return (nexops->nops_dma_allochdl(dip, rdip, attr, waitfp, arg,
771 iommulib_nexops_t *nexops;
773 nexops = &DEVI(dip)->devi_iommulib_nex_handle->nex_ops;
774 ASSERT(nexops);
775 return (nexops->nops_dma_freehdl(dip, rdip, handle));
783 iommulib_nexops_t *nexops;
785 nexops = &DEVI(dip)->devi_iommulib_nex_handle->nex_ops;
786 return (nexops->nops_dma_bindhdl(dip, rdip, handle, dmareq,
794 iommulib_nexops_t *nexops;
796 nexops = &DEVI(dip)->devi_iommulib_nex_handle->nex_ops;
797 return (nexops->nops_dma_unbindhdl(dip, rdip, handle));
803 iommulib_nexops_t *nexops;
805 nexops = &DEVI(dip)->devi_iommulib_nex_handle->nex_ops;
806 nexops->nops_dma_reset_cookies(dip, handle);
813 iommulib_nexops_t *nexops;
815 nexops = &DEVI(dip)->devi_iommulib_nex_handle->nex_ops;
816 return (nexops->nops_dma_get_cookies(dip, handle, cookiepp, ccountp));
823 iommulib_nexops_t *nexops;
825 nexops = &DEVI(dip)->devi_iommulib_nex_handle->nex_ops;
826 return (nexops->nops_dma_set_cookies(dip, handle, cookiep, ccount));
832 iommulib_nexops_t *nexops;
834 nexops = &DEVI(dip)->devi_iommulib_nex_handle->nex_ops;
835 return (nexops->nops_dma_clear_cookies(dip, handle));
841 iommulib_nexops_t *nexops;
843 nexops = &DEVI(dip)->devi_iommulib_nex_handle->nex_ops;
844 return (nexops->nops_dma_get_sleep_flags(handle));
851 iommulib_nexops_t *nexops;
853 nexops = &DEVI(dip)->devi_iommulib_nex_handle->nex_ops;
854 return (nexops->nops_dma_sync(dip, rdip, handle, off, len,
863 iommulib_nexops_t *nexops;
865 nexops = &DEVI(dip)->devi_iommulib_nex_handle->nex_ops;
866 return (nexops->nops_dma_win(dip, rdip, handle, win, offp, lenp,
874 iommulib_nexops_t *nexops;
876 nexops = &DEVI(dip)->devi_iommulib_nex_handle->nex_ops;
877 return (nexops->nops_dmahdl_setprivate(dip, rdip, handle, priv));
884 iommulib_nexops_t *nexops;
886 nexops = &DEVI(dip)->devi_iommulib_nex_handle->nex_ops;
887 return (nexops->nops_dmahdl_getprivate(dip, rdip, handle));