Home
last modified time | relevance | path

Searched refs:ptr_reg (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/drivers/net/ethernet/cortina/
Dgemini.c759 void __iomem *ptr_reg; in gmac_cleanup_rxq() local
767 ptr_reg = &qhdr->word1; in gmac_cleanup_rxq()
769 rw.bits32 = readl(ptr_reg); in gmac_cleanup_rxq()
772 writew(r, ptr_reg + 2); in gmac_cleanup_rxq()
1229 void __iomem *ptr_reg; in gmac_start_xmit() local
1238 ptr_reg = port->dma_base + GMAC_SW_TX_QUEUE_PTR_REG(txq_num); in gmac_start_xmit()
1243 rw.bits32 = readl(ptr_reg); in gmac_start_xmit()
1282 writew(w, ptr_reg + 2); in gmac_start_xmit()
1395 void __iomem *ptr_reg = port->rxq_rwptr; in gmac_rx() local
1410 rw.bits32 = readl(ptr_reg); in gmac_rx()
[all …]
/Linux-v5.10/kernel/bpf/
Dverifier.c5328 static int retrieve_ptr_limit(const struct bpf_reg_state *ptr_reg, in retrieve_ptr_limit() argument
5335 switch (ptr_reg->type) { in retrieve_ptr_limit()
5340 off = ptr_reg->off + ptr_reg->var_off.value; in retrieve_ptr_limit()
5348 *ptr_limit = ptr_reg->umax_value + ptr_reg->off; in retrieve_ptr_limit()
5350 off = ptr_reg->smin_value + ptr_reg->off; in retrieve_ptr_limit()
5351 *ptr_limit = ptr_reg->map_ptr->value_size - off; in retrieve_ptr_limit()
5395 const struct bpf_reg_state *ptr_reg, in sanitize_ptr_alu() argument
5401 bool ptr_is_dst_reg = ptr_reg == dst_reg; in sanitize_ptr_alu()
5421 if (retrieve_ptr_limit(ptr_reg, &alu_limit, opcode, off_is_neg)) in sanitize_ptr_alu()
5437 *dst_reg = *ptr_reg; in sanitize_ptr_alu()
[all …]