Lines Matching refs:vptr
1755 #define GET_RD_BY_IDX(vptr, idx) (vptr->rd_ring[idx])
1785 * @vptr: Velocity to query
1795 static inline int velocity_get_ip(struct velocity_info *vptr)
1797 struct in_device *in_dev = (struct in_device *) vptr->dev->ip_ptr;
1803 memcpy(vptr->ip_addr, &ifa->ifa_address, 4);
1812 * @vptr: velocity to update
1821 static inline void velocity_update_hw_mibs(struct velocity_info *vptr)
1825 BYTE_REG_BITS_ON(MIBCR_MIBFLSH, &(vptr->mac_regs->MIBCR));
1827 while (BYTE_REG_BITS_IS_ON(MIBCR_MIBFLSH, &(vptr->mac_regs->MIBCR)));
1829 BYTE_REG_BITS_ON(MIBCR_MPTRINI, &(vptr->mac_regs->MIBCR));
1831 tmp = readl(&(vptr->mac_regs->MIBData)) & 0x00FFFFFFUL;
1832 vptr->mib_counter[i] += tmp;
1838 * @vptr: velocity to configure
1843 static inline void init_flow_control_register(struct velocity_info *vptr)
1845 struct mac_regs __iomem * regs = vptr->mac_regs;
1856 writew(vptr->options.numrx, ®s->RBRDU);