unsigned int error_interrupt_enable,
unsigned int error_interrupt_offset)
{
- u64 paddr;
+ uint64_t paddr;
unsigned int count = rq->ring.desc_count;
- paddr = (u64)rq->ring.base_addr | VNIC_PADDR_TARGET;
+ paddr = (uint64_t)rq->ring.base_addr | VNIC_PADDR_TARGET;
writeq(paddr, &rq->ctrl->ring_base);
iowrite32(count, &rq->ctrl->ring_size);
iowrite32(cq_index, &rq->ctrl->cq_index);
unsigned int error_interrupt_enable,
unsigned int error_interrupt_offset)
{
- u32 fetch_index = 0;
+ uint32_t fetch_index = 0;
/* Use current fetch_index as the ring starting point */
fetch_index = ioread32(&rq->ctrl->fetch_index);
for (wait = 0; wait < 1000; wait++) {
if (!(ioread32(&rq->ctrl->running)))
return 0;
- udelay(10);
+ usleep(10);
}
pr_err("Failed to disable RQ[%d]\n", rq->index);
void (*buf_clean)(struct rte_mbuf **buf))
{
struct rte_mbuf **buf;
- u32 fetch_index, i;
+ uint32_t fetch_index, i;
unsigned int count = rq->ring.desc_count;
buf = &rq->mbuf_ring[0];