• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/contrib/ncsw/Peripherals/BM/

Lines Matching defs:portal

101 #define bm_in(reg)        __bm_in(&portal->addr, REG_##reg)
102 #define bm_out(reg, val) __bm_out(&portal->addr, REG_##reg, val)
131 #define bm_cl_touch_ro(reg) __bm_cl_touch_ro(&portal->addr, CL_##reg##_CENA)
132 #define bm_cl_touch_rw(reg) __bm_cl_touch_rw(&portal->addr, CL_##reg##_CENA)
133 #define bm_cl_in(reg) __bm_cl_in(&portal->addr, CL_##reg##_CENA)
134 #define bm_cl_out(reg, val) __bm_cl_out(&portal->addr, CL_##reg##_CENA, val)
135 #define bm_cl_invalidate(reg) __bm_cl_invalidate(&portal->addr, CL_##reg##_CENA)
151 /* It's safer to code in terms of the 'rcr' object than the 'portal' object,
153 * we could manipulate some other structure within 'portal'. */
154 /* #define RCR_API_START() register struct bm_rcr *rcr = &portal->rcr */
178 t_Error bm_rcr_init(struct bm_portal *portal,
182 register struct bm_rcr *rcr = &portal->rcr;
186 rcr->ring = ptr_ADD(portal->addr.addr_ce, CL_RCR);
205 void bm_rcr_finish(struct bm_portal *portal)
207 register struct bm_rcr *rcr = &portal->rcr;
219 struct bm_rcr_entry *bm_rcr_start(struct bm_portal *portal)
221 register struct bm_rcr *rcr = &portal->rcr;
232 void bm_rcr_abort(struct bm_portal *portal)
234 register struct bm_rcr *rcr = &portal->rcr;
243 struct bm_rcr_entry *bm_rcr_pend_and_next(struct bm_portal *portal, uint8_t myverb)
245 register struct bm_rcr *rcr = &portal->rcr;
258 void bm_rcr_pci_commit(struct bm_portal *portal, uint8_t myverb)
260 register struct bm_rcr *rcr = &portal->rcr;
273 void bm_rcr_pce_prefetch(struct bm_portal *portal)
275 ASSERT_COND(((struct bm_rcr *)&portal->rcr)->pmode == e_BmPortalPCE);
280 void bm_rcr_pce_commit(struct bm_portal *portal, uint8_t myverb)
282 register struct bm_rcr *rcr = &portal->rcr;
295 void bm_rcr_pvb_commit(struct bm_portal *portal, uint8_t myverb)
297 register struct bm_rcr *rcr = &portal->rcr;
313 uint8_t bm_rcr_cci_update(struct bm_portal *portal)
315 register struct bm_rcr *rcr = &portal->rcr;
325 void bm_rcr_cce_prefetch(struct bm_portal *portal)
327 ASSERT_COND(((struct bm_rcr *)&portal->rcr)->cmode == e_BmPortalRcrCCE);
332 uint8_t bm_rcr_cce_update(struct bm_portal *portal)
334 register struct bm_rcr *rcr = &portal->rcr;
345 uint8_t bm_rcr_get_ithresh(struct bm_portal *portal)
347 register struct bm_rcr *rcr = &portal->rcr;
352 void bm_rcr_set_ithresh(struct bm_portal *portal, uint8_t ithresh)
354 register struct bm_rcr *rcr = &portal->rcr;
360 uint8_t bm_rcr_get_avail(struct bm_portal *portal)
362 register struct bm_rcr *rcr = &portal->rcr;
367 uint8_t bm_rcr_get_fill(struct bm_portal *portal)
369 register struct bm_rcr *rcr = &portal->rcr;
377 /* It's safer to code in terms of the 'mc' object than the 'portal' object,
379 * we could manipulate some other structure within 'portal'. */
380 /* #define MC_API_START() register struct bm_mc *mc = &portal->mc */
383 t_Error bm_mc_init(struct bm_portal *portal)
385 register struct bm_mc *mc = &portal->mc;
386 mc->cr = ptr_ADD(portal->addr.addr_ce, CL_CR);
387 mc->rr = ptr_ADD(portal->addr.addr_ce, CL_RR0);
398 void bm_mc_finish(struct bm_portal *portal)
400 register struct bm_mc *mc = &portal->mc;
411 struct bm_mc_command *bm_mc_start(struct bm_portal *portal)
413 register struct bm_mc *mc = &portal->mc;
423 void bm_mc_abort(struct bm_portal *portal)
425 register struct bm_mc *mc = &portal->mc;
435 void bm_mc_commit(struct bm_portal *portal, uint8_t myverb)
437 register struct bm_mc *mc = &portal->mc;
449 struct bm_mc_result *bm_mc_result(struct bm_portal *portal)
451 register struct bm_mc *mc = &portal->mc;
474 void bm_isr_bscn_mask(struct bm_portal *portal, uint8_t bpid, int enable)
479 val = __bm_in(&portal->addr, SCN_REG(bpid));
484 __bm_out(&portal->addr, SCN_REG(bpid), val);
488 uint32_t __bm_isr_read(struct bm_portal *portal, enum bm_isr_reg n)
490 return __bm_in(&portal->addr, REG_ISR + (n << 2));
494 void __bm_isr_write(struct bm_portal *portal, enum bm_isr_reg n, uint32_t val)
496 __bm_out(&portal->addr, REG_ISR + (n << 2), val);