Searched refs:pptr (Results 1 - 25 of 29) sorted by relevance

12

/linux-master/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_bpf_percpu_array_map.c31 void *pptr = ctx->value; local
35 if (key == (void *)0 || pptr == (void *)0)
42 val_sum += *(__u32 *)pptr;
43 pptr += step;
H A Dbpf_iter_bpf_percpu_hash_map.c33 void *pptr = ctx->value; local
37 if (key == (void *)0 || pptr == (void *)0)
46 val_sum += *(__u32 *)pptr;
47 pptr += step;
/linux-master/fs/hfsplus/
H A Dbitmap.c25 __be32 *pptr, *curr, *end; local
42 pptr = kmap_local_page(page);
43 curr = pptr + (offset & (PAGE_CACHE_BITS - 1)) / 32;
47 end = pptr + PAGE_CACHE_BITS / 32;
49 end = pptr + ((size + 31) & (PAGE_CACHE_BITS - 1)) / 32;
77 kunmap_local(pptr);
87 curr = pptr = kmap_local_page(page);
89 end = pptr + PAGE_CACHE_BITS / 32;
91 end = pptr + ((size + 31) & (PAGE_CACHE_BITS - 1)) / 32;
98 start = offset + (curr - pptr) * 3
169 __be32 *pptr, *curr, *end; local
[all...]
/linux-master/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-tar.c13 int *pptr; variable
95 pptr = (int *)shmat(shm_id, NULL, 0);
96 pptr[0] = 0;
97 pptr[1] = 0;
99 while (!pptr[2])
110 pptr[0] = 1;
113 while (!pptr[1])
116 shmdt((int *)pptr);
H A Dptrace-tm-spd-gpr.c13 int *cptr, *pptr; variable
110 pptr[0] = 1;
111 pptr[1] = 1;
134 pptr = (int *)shmat(shm_id, NULL, 0);
135 pptr[0] = 0;
136 pptr[1] = 0;
138 while (!pptr[2])
143 shmdt((void *)pptr);
148 shmdt((void *)pptr);
H A Dptrace-tm-spd-tar.c12 int *cptr, *pptr; variable
120 pptr[0] = 1;
121 pptr[1] = 1;
138 pptr = (int *)shmat(shm_id, NULL, 0);
139 pptr[0] = 0;
140 pptr[1] = 0;
143 while (!pptr[2])
148 shmdt(&pptr);
153 shmdt(&pptr);
H A Dptrace-tm-spr.c18 struct shared *cptr, *pptr; variable in typeref:struct:
100 FAIL_IF(show_tm_spr(child, (struct tm_spr_regs *)&pptr->regs));
102 printf("TFHAR: %lx TEXASR: %lx TFIAR: %lx\n", pptr->regs.tm_tfhar,
103 pptr->regs.tm_texasr, pptr->regs.tm_tfiar);
105 pptr->flag = 1;
130 pptr = (struct shared *)shmat(shm_id, NULL, 0);
138 shmdt((void *)pptr);
145 shmdt((void *)pptr);
H A Dptrace-vsx.c12 int *cptr, *pptr; variable
84 pptr = (int *)shmat(shm_id, NULL, 0);
85 while (!pptr[1])
91 shmdt((void *)pptr);
96 pptr[0] = 1;
97 shmdt((void *)pptr);
H A Dptrace-tm-spd-vsx.c12 int *cptr, *pptr; variable
119 pptr[0] = 1;
120 pptr[1] = 1;
152 pptr = (int *)shmat(shm_id, NULL, 0);
153 while (!pptr[2])
159 shmdt((void *)pptr);
164 shmdt((void *)pptr);
H A Dptrace-tm-tar.c12 unsigned long *cptr, *pptr; variable
109 pptr[0] = 1;
126 pptr = (unsigned long *)shmat(shm_id, NULL, 0);
127 pptr[0] = 0;
130 while (!pptr[1])
135 shmdt(&pptr);
139 shmdt(&pptr);
H A Dptrace-gpr.c14 int *cptr, *pptr; variable
142 pptr = (int *)shmat(shm_id, NULL, 0);
143 while (!pptr[1])
149 shmdt((void *)pptr);
154 pptr[0] = 1;
155 shmdt((void *)pptr);
H A Dptrace-tm-vsx.c12 unsigned long *cptr, *pptr; variable
105 pptr[0] = 1;
135 pptr = (unsigned long *)shmat(shm_id, NULL, 0);
136 while (!pptr[1])
142 shmdt((void *)pptr);
147 shmdt((void *)pptr);
H A Dptrace-tm-gpr.c13 unsigned long *cptr, *pptr; variable
104 pptr[0] = 1;
127 pptr = (unsigned long *)shmat(shm_id, NULL, 0);
129 while (!pptr[1])
137 shmdt((void *)pptr);
/linux-master/net/bridge/netfilter/
H A Debt_ip6.c43 const union pkthdr *pptr; local
77 pptr = skb_header_pointer(skb, offset_ph, sizeof(_pkthdr),
79 if (pptr == NULL)
82 u16 dst = ntohs(pptr->tcpudphdr.dst);
89 u16 src = ntohs(pptr->tcpudphdr.src);
97 pptr->icmphdr.type < info->icmpv6_type[0] ||
98 pptr->icmphdr.type > info->icmpv6_type[1] ||
99 pptr->icmphdr.code < info->icmpv6_code[0] ||
100 pptr->icmphdr.code > info->icmpv6_code[1]))
H A Debt_ip.c43 const union pkthdr *pptr; local
70 pptr = skb_header_pointer(skb, ih->ihl*4,
72 if (pptr == NULL)
75 u32 dst = ntohs(pptr->tcpudphdr.dst);
82 u32 src = ntohs(pptr->tcpudphdr.src);
90 pptr->icmphdr.type < info->icmp_type[0] ||
91 pptr->icmphdr.type > info->icmp_type[1] ||
92 pptr->icmphdr.code < info->icmp_code[0] ||
93 pptr->icmphdr.code > info->icmp_code[1]))
97 pptr
[all...]
H A Debt_log.c60 const struct tcpudphdr *pptr; local
63 pptr = skb_header_pointer(skb, offset,
65 if (pptr == NULL) {
69 pr_cont(" SPT=%u DPT=%u", ntohs(pptr->src), ntohs(pptr->dst));
/linux-master/tools/bpf/
H A Dbpf_jit_disasm.c176 char *ptr, *pptr, *tmp; local
229 pptr = ptr;
230 while ((ptr = strstr(pptr, ":")))
231 pptr = ptr + 1;
232 ptr = pptr;
234 image[ulen++] = (uint8_t) strtoul(pptr, &pptr, 16);
235 if (ptr == pptr) {
241 ptr = pptr;
/linux-master/net/netfilter/
H A Dxt_multiport.c88 const __be16 *pptr; local
95 pptr = skb_header_pointer(skb, par->thoff, sizeof(_ports), _ports);
96 if (pptr == NULL) {
105 return ports_match_v1(multiinfo, ntohs(pptr[0]), ntohs(pptr[1]));
/linux-master/net/netfilter/ipvs/
H A Dip_vs_proto.c229 __be16 _ports[2], *pptr; local
231 pptr = skb_header_pointer(skb, offset + ih->ihl*4,
233 if (pptr == NULL)
238 &ih->saddr, ntohs(pptr[0]),
239 &ih->daddr, ntohs(pptr[1]));
261 __be16 _ports[2], *pptr; local
263 pptr = skb_header_pointer(skb, offset + sizeof(struct ipv6hdr),
265 if (pptr == NULL)
270 &ih->saddr, ntohs(pptr[0]),
271 &ih->daddr, ntohs(pptr[
[all...]
H A Dip_vs_core.c449 __be16 _ports[2], *pptr, cport, vport; local
457 pptr = frag_safe_skb_hp(skb, iph->len, sizeof(_ports), _ports);
458 if (pptr == NULL)
462 cport = pptr[0];
464 vport = pptr[1];
467 cport = pptr[1];
469 vport = pptr[0];
588 __be16 _ports[2], *pptr, dport; local
592 pptr = frag_safe_skb_hp(skb, iph->len, sizeof(_ports), _ports);
593 if (!pptr)
1227 __be16 _ports[2], *pptr; local
1425 __be16 _ports[2], *pptr; local
[all...]
H A Dip_vs_conn.c319 __be16 _ports[2], *pptr; local
321 pptr = frag_safe_skb_hp(skb, iph->len, sizeof(_ports), _ports);
322 if (pptr == NULL)
327 pptr[0], &iph->daddr, pptr[1], p);
330 pptr[1], &iph->saddr, pptr[0], p);
/linux-master/kernel/bpf/
H A Dhashtab.c199 void __percpu *pptr)
201 *(void __percpu **)(l->key + key_size) = pptr;
257 void __percpu *pptr = htab_elem_get_ptr(elem, htab->map.key_size); local
261 bpf_obj_free_fields(htab->map.record, per_cpu_ptr(pptr, cpu));
280 void __percpu *pptr; local
282 pptr = htab_elem_get_ptr(get_htab_elem(htab, i),
284 free_percpu(pptr);
336 void __percpu *pptr; local
338 pptr = bpf_map_alloc_percpu(&htab->map, size, 8,
340 if (!pptr)
198 htab_elem_set_ptr(struct htab_elem *l, u32 key_size, void __percpu *pptr) argument
389 struct htab_elem *__percpu *pptr, *l_new; local
785 void __percpu *pptr = htab_elem_get_ptr(elem, htab->map.key_size); local
952 pcpu_copy_value(struct bpf_htab *htab, void __percpu *pptr, void *value, bool onallcpus) argument
969 pcpu_init_value(struct bpf_htab *htab, void __percpu *pptr, void *value, bool onallcpus) argument
1006 void __percpu *pptr; local
1613 void __percpu *pptr; local
1810 void __percpu *pptr; local
2072 void __percpu *pptr; local
2170 void __percpu *pptr; local
2355 void __percpu *pptr; local
2406 void __percpu *pptr; local
[all...]
H A Darraymap.c267 void __percpu *pptr; local
280 pptr = array->pptrs[index & array->index_mask];
282 copy_map_value_long(map, value + off, per_cpu_ptr(pptr, cpu));
354 void __percpu *pptr; local
378 pptr = array->pptrs[index & array->index_mask];
380 copy_map_value_long(map, per_cpu_ptr(pptr, cpu), value + off);
381 bpf_obj_free_fields(array->map.record, per_cpu_ptr(pptr, cpu));
421 void __percpu *pptr = array->pptrs[i & array->index_mask]; local
425 bpf_obj_free_fields(map->record, per_cpu_ptr(pptr, cpu));
470 void __percpu *pptr; local
598 void __percpu **pptr; local
[all...]
H A Dmemalloc.c142 void *pptr = __alloc_percpu_gfp(c->unit_size, 8, flags); local
144 if (!obj || !pptr) {
145 free_percpu(pptr);
149 obj[1] = pptr;
/linux-master/net/sched/
H A Dsch_htb.c819 struct rb_node **pptr; member in struct:__anon3046
825 sp->pptr = &hprio->ptr;
829 if (!*sp->pptr && *sp->pid) {
833 *sp->pptr =
839 if (!*sp->pptr) { /* we are at right end; rewind & go up */
840 *sp->pptr = sp->root;
841 while ((*sp->pptr)->rb_left)
842 *sp->pptr = (*sp->pptr)->rb_left;
845 if (!*sp->pptr) {
[all...]

Completed in 266 milliseconds

12