Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/cortina/
H A Dgemini.c761 void __iomem *ptr_reg; in gmac_cleanup_rxq() local
769 ptr_reg = &qhdr->word1; in gmac_cleanup_rxq()
771 rw.bits32 = readl(ptr_reg); in gmac_cleanup_rxq()
774 writew(r, ptr_reg + 2); in gmac_cleanup_rxq()
1282 void __iomem *ptr_reg; in gmac_start_xmit() local
1291 ptr_reg = port->dma_base + GMAC_SW_TX_QUEUE_PTR_REG(txq_num); in gmac_start_xmit()
1296 rw.bits32 = readl(ptr_reg); in gmac_start_xmit()
1335 writew(w, ptr_reg + 2); in gmac_start_xmit()
1449 void __iomem *ptr_reg = port->rxq_rwptr; in gmac_rx() local
1469 rw.bits32 = readl(ptr_reg); in gmac_rx()
[all …]
/linux/kernel/bpf/
H A Dverifier.c3646 /* Write the stack: 'stack[ptr_reg + off] = value_regno'. 'ptr_reg' is
3667 struct bpf_reg_state *ptr_reg, int off, int size, in check_stack_write_var_off() argument
3682 min_off = reg_smin(ptr_reg) + off; in check_stack_write_var_off()
3683 max_off = reg_smax(ptr_reg) + off + size; in check_stack_write_var_off()
14269 static int retrieve_ptr_limit(const struct bpf_reg_state *ptr_reg, in retrieve_ptr_limit() argument
14274 switch (ptr_reg->type) { in retrieve_ptr_limit()
14282 ptr_limit = -ptr_reg->var_off.value; in retrieve_ptr_limit()
14285 max = ptr_reg->map_ptr->value_size; in retrieve_ptr_limit()
14286 ptr_limit = mask_to_left ? reg_smin(ptr_reg) in retrieve_ptr_limit()
14366 sanitize_ptr_alu(struct bpf_verifier_env * env,struct bpf_insn * insn,const struct bpf_reg_state * ptr_reg,const struct bpf_reg_state * off_reg,struct bpf_reg_state * dst_reg,struct bpf_sanitize_info * info,const bool commit_window) sanitize_ptr_alu() argument
14578 adjust_ptr_min_max_vals(struct bpf_verifier_env * env,struct bpf_insn * insn,u32 ptr_regno,const struct bpf_reg_state * ptr_reg,const struct bpf_reg_state * off_reg) adjust_ptr_min_max_vals() argument
15742 struct bpf_reg_state *ptr_reg = NULL, off_reg = {0}; adjust_reg_min_max_vals() local
[all...]
/linux/arch/x86/net/
H A Dbpf_jit_comp.c1054 /* Emit the suffix (ModR/M etc) for addressing *(ptr_reg + off) and val_reg */
1055 static void emit_insn_suffix(u8 **pprog, u32 ptr_reg, u32 val_reg, int off) in emit_insn_suffix() argument
1066 EMIT2(add_2reg(0x40, ptr_reg, val_reg), off); in emit_insn_suffix()
1069 EMIT1_off32(add_2reg(0x80, ptr_reg, val_reg), off); in emit_insn_suffix()
1074 static void emit_insn_suffix_SIB(u8 **pprog, u32 ptr_reg, u32 val_reg, u32 index_reg, int off) in emit_insn_suffix_SIB() argument
1079 EMIT3(add_2reg(0x44, BPF_REG_0, val_reg), add_2reg(0, ptr_reg, index_reg) /* SIB */, off); in emit_insn_suffix_SIB()
1081 EMIT2_off32(add_2reg(0x84, BPF_REG_0, val_reg), add_2reg(0, ptr_reg, index_reg) /* SIB */, off); in emit_insn_suffix_SIB()