Lines Matching refs:MEM_ALLOC
1867 regs[regno].type = PTR_TO_BTF_ID | MEM_ALLOC; in mark_reg_graph_node()
4562 perm_flags = PTR_MAYBE_NULL | MEM_ALLOC; in map_kptr_match_type()
4694 ret |= MEM_ALLOC; in btf_ld_kptr_type()
7977 PTR_TO_BTF_ID | MEM_ALLOC,
8007 PTR_TO_BTF_ID | MEM_ALLOC,
8008 PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF,
8009 PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF | MEM_RCU,
8082 type &= ~MEM_ALLOC; in check_reg_type()
8171 case PTR_TO_BTF_ID | MEM_ALLOC: in check_reg_type()
8172 case PTR_TO_BTF_ID | MEM_PERCPU | MEM_ALLOC: in check_reg_type()
8173 case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF: in check_reg_type()
8174 case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF | MEM_RCU: in check_reg_type()
8267 case PTR_TO_BTF_ID | MEM_ALLOC: in check_func_arg_reg_off()
8270 case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF: in check_func_arg_reg_off()
8271 case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF | MEM_RCU: in check_func_arg_reg_off()
10369 if (in_rcu && (reg->type & MEM_ALLOC) && (reg->type & MEM_PERCPU)) { in check_helper_call()
10371 reg->type &= ~MEM_ALLOC; in check_helper_call()
10632 regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC | MEM_RCU; in check_helper_call()
10659 regs[BPF_REG_0].type |= MEM_ALLOC; in check_helper_call()
11690 case PTR_TO_BTF_ID | MEM_ALLOC: in check_reg_allocation_locked()
12248 if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
12253 } else if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC | MEM_PERCPU)) { in check_kfunc_args()
12341 reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
12345 if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC) && !reg->ref_obj_id) { in check_kfunc_args()
12355 reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
12359 if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC) && !reg->ref_obj_id) { in check_kfunc_args()
12368 if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
12382 if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
12547 if (reg->type != PTR_TO_MAP_VALUE && reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { in check_kfunc_args()
12877 regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; in check_special_kfunc()
12887 regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; in check_special_kfunc()