Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/cortina/
Dgemini.c763 void __iomem *ptr_reg; in gmac_cleanup_rxq() local
771 ptr_reg = &qhdr->word1; in gmac_cleanup_rxq()
773 rw.bits32 = readl(ptr_reg); in gmac_cleanup_rxq()
776 writew(r, ptr_reg + 2); in gmac_cleanup_rxq()
1232 void __iomem *ptr_reg; in gmac_start_xmit() local
1241 ptr_reg = port->dma_base + GMAC_SW_TX_QUEUE_PTR_REG(txq_num); in gmac_start_xmit()
1246 rw.bits32 = readl(ptr_reg); in gmac_start_xmit()
1285 writew(w, ptr_reg + 2); in gmac_start_xmit()
1398 void __iomem *ptr_reg = port->rxq_rwptr; in gmac_rx() local
1413 rw.bits32 = readl(ptr_reg); in gmac_rx()
[all …]
/Linux-v5.4/kernel/bpf/
Dverifier.c4203 static int retrieve_ptr_limit(const struct bpf_reg_state *ptr_reg, in retrieve_ptr_limit() argument
4210 switch (ptr_reg->type) { in retrieve_ptr_limit()
4215 off = ptr_reg->off + ptr_reg->var_off.value; in retrieve_ptr_limit()
4223 *ptr_limit = ptr_reg->umax_value + ptr_reg->off; in retrieve_ptr_limit()
4225 off = ptr_reg->smin_value + ptr_reg->off; in retrieve_ptr_limit()
4226 *ptr_limit = ptr_reg->map_ptr->value_size - off; in retrieve_ptr_limit()
4270 const struct bpf_reg_state *ptr_reg, in sanitize_ptr_alu() argument
4276 bool ptr_is_dst_reg = ptr_reg == dst_reg; in sanitize_ptr_alu()
4296 if (retrieve_ptr_limit(ptr_reg, &alu_limit, opcode, off_is_neg)) in sanitize_ptr_alu()
4312 *dst_reg = *ptr_reg; in sanitize_ptr_alu()
[all …]