Lines Matching refs:regs
385 static inline void newport_vc2_set(struct newport_regs *regs, in newport_vc2_set() argument
389 regs->set.dcbmode = (NPORT_DMODE_AVC2 | VC2_REGADDR_INDEX | NPORT_DMODE_W3 | in newport_vc2_set()
391 regs->set.dcbdata0.byword = (vc2ireg << 24) | (val << 8); in newport_vc2_set()
394 static inline unsigned short newport_vc2_get(struct newport_regs *regs, in newport_vc2_get() argument
397 regs->set.dcbmode = (NPORT_DMODE_AVC2 | VC2_REGADDR_INDEX | NPORT_DMODE_W1 | in newport_vc2_get()
399 regs->set.dcbdata0.bybytes.b3 = vc2ireg; in newport_vc2_get()
400 regs->set.dcbmode = (NPORT_DMODE_AVC2 | VC2_REGADDR_IREG | NPORT_DMODE_W2 | in newport_vc2_get()
402 return regs->set.dcbdata0.byshort.s1; in newport_vc2_get()
428 static __inline__ void newport_cmap_setaddr(struct newport_regs *regs, in newport_cmap_setaddr() argument
431 regs->set.dcbmode = (NPORT_DMODE_ACMALL | NCMAP_PROTOCOL | in newport_cmap_setaddr()
434 regs->set.dcbdata0.byshort.s1 = addr; in newport_cmap_setaddr()
435 regs->set.dcbmode = (NPORT_DMODE_ACMALL | NCMAP_PROTOCOL | in newport_cmap_setaddr()
439 static __inline__ void newport_cmap_setrgb(struct newport_regs *regs, in newport_cmap_setrgb() argument
444 regs->set.dcbdata0.byword = in newport_cmap_setrgb()
452 static __inline__ int newport_wait(struct newport_regs *regs) in newport_wait() argument
457 if (!(regs->cset.status & NPORT_STAT_GBUSY)) in newport_wait()
462 static __inline__ int newport_bfwait(struct newport_regs *regs) in newport_bfwait() argument
467 if(!(regs->cset.status & NPORT_STAT_BBUSY)) in newport_bfwait()