• Home
  • Raw
  • Download

Lines Matching refs:addr

114 static inline bool xskq_cons_read_addr_unchecked(struct xsk_queue *q, u64 *addr)  in xskq_cons_read_addr_unchecked()  argument
121 *addr = ring->desc[idx]; in xskq_cons_read_addr_unchecked()
133 chunk = xp_aligned_extract_addr(pool, desc->addr); in xp_aligned_validate_desc()
135 chunk_end = xp_aligned_extract_addr(pool, desc->addr + desc->len - 1); in xp_aligned_validate_desc()
151 u64 addr, base_addr; in xp_unaligned_validate_desc() local
153 base_addr = xp_unaligned_extract_addr(desc->addr); in xp_unaligned_validate_desc()
154 addr = xp_unaligned_add_offset_to_addr(desc->addr); in xp_unaligned_validate_desc()
159 if (base_addr >= pool->addrs_cnt || addr >= pool->addrs_cnt || in xp_unaligned_validate_desc()
160 addr + desc->len > pool->addrs_cnt || in xp_unaligned_validate_desc()
161 xp_desc_crosses_non_contig_pg(pool, addr, desc->len)) in xp_unaligned_validate_desc()
273 static inline bool xskq_cons_peek_addr_unchecked(struct xsk_queue *q, u64 *addr) in xskq_cons_peek_addr_unchecked() argument
277 return xskq_cons_read_addr_unchecked(q, addr); in xskq_cons_peek_addr_unchecked()
347 static inline int xskq_prod_reserve_addr(struct xsk_queue *q, u64 addr) in xskq_prod_reserve_addr() argument
355 ring->desc[q->cached_prod++ & q->ring_mask] = addr; in xskq_prod_reserve_addr()
368 ring->desc[cached_prod++ & q->ring_mask] = descs[i].addr; in xskq_prod_write_addr_batch()
373 u64 addr, u32 len) in xskq_prod_reserve_desc() argument
383 ring->desc[idx].addr = addr; in xskq_prod_reserve_desc()
399 static inline void xskq_prod_submit_addr(struct xsk_queue *q, u64 addr) in xskq_prod_submit_addr() argument
404 ring->desc[idx++ & q->ring_mask] = addr; in xskq_prod_submit_addr()