Lines Matching defs:vptr
1433 #define GET_RD_BY_IDX(vptr, idx) (vptr->rd_ring[idx])
1499 * @vptr: Velocity to query
1509 static inline int velocity_get_ip(struct velocity_info *vptr)
1511 struct in_device *in_dev = (struct in_device *) vptr->dev->ip_ptr;
1517 memcpy(vptr->ip_addr, &ifa->ifa_address, 4);
1526 * @vptr: velocity to update
1535 static inline void velocity_update_hw_mibs(struct velocity_info *vptr)
1539 BYTE_REG_BITS_ON(MIBCR_MIBFLSH, &(vptr->mac_regs->MIBCR));
1541 while (BYTE_REG_BITS_IS_ON(MIBCR_MIBFLSH, &(vptr->mac_regs->MIBCR)));
1543 BYTE_REG_BITS_ON(MIBCR_MPTRINI, &(vptr->mac_regs->MIBCR));
1545 tmp = readl(&(vptr->mac_regs->MIBData)) & 0x00FFFFFFUL;
1546 vptr->mib_counter[i] += tmp;
1552 * @vptr: velocity to configure
1557 static inline void init_flow_control_register(struct velocity_info *vptr)
1559 struct mac_regs __iomem * regs = vptr->mac_regs;
1570 writew(vptr->options.numrx, ®s->RBRDU);