Home
last modified time | relevance | path

Searched refs:pptr (Results 1 – 25 of 33) sorted by relevance

12

/linux/fs/hfsplus/
H A Dbitmap.c25 __be32 *pptr, *curr, *end; in hfsplus_block_allocate() local
42 pptr = kmap_local_page(page); in hfsplus_block_allocate()
43 curr = pptr + (offset & (PAGE_CACHE_BITS - 1)) / 32; in hfsplus_block_allocate()
47 end = pptr + PAGE_CACHE_BITS / 32; in hfsplus_block_allocate()
49 end = pptr + ((size + 31) & (PAGE_CACHE_BITS - 1)) / 32; in hfsplus_block_allocate()
77 kunmap_local(pptr); in hfsplus_block_allocate()
87 curr = pptr = kmap_local_page(page); in hfsplus_block_allocate()
89 end = pptr + PAGE_CACHE_BITS / 32; in hfsplus_block_allocate()
91 end = pptr + ((size + 31) & (PAGE_CACHE_BITS - 1)) / 32; in hfsplus_block_allocate()
98 start = offset + (curr - pptr) * 32 + i; in hfsplus_block_allocate()
[all …]
/linux/net/bridge/netfilter/
H A Debt_ip.c43 const union pkthdr *pptr; in ebt_ip_mt() local
70 pptr = skb_header_pointer(skb, ih->ihl*4, in ebt_ip_mt()
72 if (pptr == NULL) in ebt_ip_mt()
75 u32 dst = ntohs(pptr->tcpudphdr.dst); in ebt_ip_mt()
82 u32 src = ntohs(pptr->tcpudphdr.src); in ebt_ip_mt()
90 pptr->icmphdr.type < info->icmp_type[0] || in ebt_ip_mt()
91 pptr->icmphdr.type > info->icmp_type[1] || in ebt_ip_mt()
92 pptr->icmphdr.code < info->icmp_code[0] || in ebt_ip_mt()
93 pptr->icmphdr.code > info->icmp_code[1])) in ebt_ip_mt()
97 pptr->igmphdr.type < info->igmp_type[0] || in ebt_ip_mt()
[all …]
H A Debt_ip6.c43 const union pkthdr *pptr; in ebt_ip6_mt() local
77 pptr = skb_header_pointer(skb, offset_ph, sizeof(_pkthdr), in ebt_ip6_mt()
79 if (pptr == NULL) in ebt_ip6_mt()
82 u16 dst = ntohs(pptr->tcpudphdr.dst); in ebt_ip6_mt()
89 u16 src = ntohs(pptr->tcpudphdr.src); in ebt_ip6_mt()
97 pptr->icmphdr.type < info->icmpv6_type[0] || in ebt_ip6_mt()
98 pptr->icmphdr.type > info->icmpv6_type[1] || in ebt_ip6_mt()
99 pptr->icmphdr.code < info->icmpv6_code[0] || in ebt_ip6_mt()
100 pptr->icmphdr.code > info->icmpv6_code[1])) in ebt_ip6_mt()
H A Debt_log.c60 const struct tcpudphdr *pptr; in print_ports() local
63 pptr = skb_header_pointer(skb, offset, in print_ports()
65 if (pptr == NULL) { in print_ports()
69 pr_cont(" SPT=%u DPT=%u", ntohs(pptr->src), ntohs(pptr->dst)); in print_ports()
/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace-tm-spd-gpr.c13 int *cptr, *pptr; variable
110 pptr[0] = 1; in trace_tm_spd_gpr()
111 pptr[1] = 1; in trace_tm_spd_gpr()
134 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_tm_spd_gpr()
135 pptr[0] = 0; in ptrace_tm_spd_gpr()
136 pptr[1] = 0; in ptrace_tm_spd_gpr()
138 while (!pptr[2]) in ptrace_tm_spd_gpr()
143 shmdt((void *)pptr); in ptrace_tm_spd_gpr()
148 shmdt((void *)pptr); in ptrace_tm_spd_gpr()
H A Dptrace-tm-spd-tar.c12 int *cptr, *pptr; variable
120 pptr[0] = 1; in trace_tm_spd_tar()
121 pptr[1] = 1; in trace_tm_spd_tar()
138 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_tm_spd_tar()
139 pptr[0] = 0; in ptrace_tm_spd_tar()
140 pptr[1] = 0; in ptrace_tm_spd_tar()
143 while (!pptr[2]) in ptrace_tm_spd_tar()
148 shmdt(&pptr); in ptrace_tm_spd_tar()
153 shmdt(&pptr); in ptrace_tm_spd_tar()
H A Dptrace-tm-spr.c18 struct shared *cptr, *pptr; variable
100 FAIL_IF(show_tm_spr(child, (struct tm_spr_regs *)&pptr->regs)); in trace_tm_spr()
102 printf("TFHAR: %lx TEXASR: %lx TFIAR: %lx\n", pptr->regs.tm_tfhar, in trace_tm_spr()
103 pptr->regs.tm_texasr, pptr->regs.tm_tfiar); in trace_tm_spr()
105 pptr->flag = 1; in trace_tm_spr()
130 pptr = (struct shared *)shmat(shm_id, NULL, 0); in ptrace_tm_spr()
138 shmdt((void *)pptr); in ptrace_tm_spr()
145 shmdt((void *)pptr); in ptrace_tm_spr()
H A Dptrace-tar.c13 int *pptr; variable
95 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_tar()
96 pptr[0] = 0; in ptrace_tar()
97 pptr[1] = 0; in ptrace_tar()
99 while (!pptr[2]) in ptrace_tar()
110 pptr[0] = 1; in ptrace_tar()
113 while (!pptr[1]) in ptrace_tar()
116 shmdt((int *)pptr); in ptrace_tar()
H A Dptrace-tm-tar.c12 unsigned long *cptr, *pptr; variable
109 pptr[0] = 1; in trace_tm_tar()
126 pptr = (unsigned long *)shmat(shm_id, NULL, 0); in ptrace_tm_tar()
127 pptr[0] = 0; in ptrace_tm_tar()
130 while (!pptr[1]) in ptrace_tm_tar()
135 shmdt(&pptr); in ptrace_tm_tar()
139 shmdt(&pptr); in ptrace_tm_tar()
H A Dptrace-tm-spd-vsx.c12 int *cptr, *pptr; variable
119 pptr[0] = 1; in trace_tm_spd_vsx()
120 pptr[1] = 1; in trace_tm_spd_vsx()
152 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_tm_spd_vsx()
153 while (!pptr[2]) in ptrace_tm_spd_vsx()
159 shmdt((void *)pptr); in ptrace_tm_spd_vsx()
164 shmdt((void *)pptr); in ptrace_tm_spd_vsx()
H A Dptrace-vsx.c12 int *cptr, *pptr; variable
84 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_vsx()
85 while (!pptr[1]) in ptrace_vsx()
91 shmdt((void *)pptr); in ptrace_vsx()
96 pptr[0] = 1; in ptrace_vsx()
97 shmdt((void *)pptr); in ptrace_vsx()
H A Dptrace-tm-vsx.c12 unsigned long *cptr, *pptr; variable
105 pptr[0] = 1; in trace_tm_vsx()
135 pptr = (unsigned long *)shmat(shm_id, NULL, 0); in ptrace_tm_vsx()
136 while (!pptr[1]) in ptrace_tm_vsx()
142 shmdt((void *)pptr); in ptrace_tm_vsx()
147 shmdt((void *)pptr); in ptrace_tm_vsx()
H A Dptrace-gpr.c14 int *cptr, *pptr; variable
142 pptr = (int *)shmat(shm_id, NULL, 0); in ptrace_gpr()
143 while (!pptr[1]) in ptrace_gpr()
149 shmdt((void *)pptr); in ptrace_gpr()
154 pptr[0] = 1; in ptrace_gpr()
155 shmdt((void *)pptr); in ptrace_gpr()
H A Dptrace-tm-gpr.c13 unsigned long *cptr, *pptr; variable
104 pptr[0] = 1; in trace_tm_gpr()
127 pptr = (unsigned long *)shmat(shm_id, NULL, 0); in ptrace_tm_gpr()
129 while (!pptr[1]) in ptrace_tm_gpr()
137 shmdt((void *)pptr); in ptrace_tm_gpr()
/linux/net/netfilter/ipvs/
H A Dip_vs_proto.c229 __be16 _ports[2], *pptr; in ip_vs_tcpudp_debug_packet_v4() local
231 pptr = skb_header_pointer(skb, offset + ih->ihl*4, in ip_vs_tcpudp_debug_packet_v4()
233 if (pptr == NULL) in ip_vs_tcpudp_debug_packet_v4()
238 &ih->saddr, ntohs(pptr[0]), in ip_vs_tcpudp_debug_packet_v4()
239 &ih->daddr, ntohs(pptr[1])); in ip_vs_tcpudp_debug_packet_v4()
261 __be16 _ports[2], *pptr; in ip_vs_tcpudp_debug_packet_v6() local
263 pptr = skb_header_pointer(skb, offset + sizeof(struct ipv6hdr), in ip_vs_tcpudp_debug_packet_v6()
265 if (pptr == NULL) in ip_vs_tcpudp_debug_packet_v6()
270 &ih->saddr, ntohs(pptr[0]), in ip_vs_tcpudp_debug_packet_v6()
271 &ih->daddr, ntohs(pptr[1])); in ip_vs_tcpudp_debug_packet_v6()
H A Dip_vs_core.c449 __be16 _ports[2], *pptr, cport, vport; in ip_vs_schedule() local
457 pptr = frag_safe_skb_hp(skb, iph->len, sizeof(_ports), _ports); in ip_vs_schedule()
458 if (pptr == NULL) in ip_vs_schedule()
462 cport = pptr[0]; in ip_vs_schedule()
464 vport = pptr[1]; in ip_vs_schedule()
467 cport = pptr[1]; in ip_vs_schedule()
469 vport = pptr[0]; in ip_vs_schedule()
588 __be16 _ports[2], *pptr, dport; in ip_vs_leave() local
592 pptr = frag_safe_skb_hp(skb, iph->len, sizeof(_ports), _ports); in ip_vs_leave()
593 if (!pptr) in ip_vs_leave()
[all …]
H A Dip_vs_conn.c319 __be16 _ports[2], *pptr; in ip_vs_conn_fill_param_proto() local
321 pptr = frag_safe_skb_hp(skb, iph->len, sizeof(_ports), _ports); in ip_vs_conn_fill_param_proto()
322 if (pptr == NULL) in ip_vs_conn_fill_param_proto()
327 pptr[0], &iph->daddr, pptr[1], p); in ip_vs_conn_fill_param_proto()
330 pptr[1], &iph->saddr, pptr[0], p); in ip_vs_conn_fill_param_proto()
/linux/tools/bpf/
H A Dbpf_jit_disasm.c176 char *ptr, *pptr, *tmp; in get_last_jit_image() local
229 pptr = ptr; in get_last_jit_image()
230 while ((ptr = strstr(pptr, ":"))) in get_last_jit_image()
231 pptr = ptr + 1; in get_last_jit_image()
232 ptr = pptr; in get_last_jit_image()
234 image[ulen++] = (uint8_t) strtoul(pptr, &pptr, 16); in get_last_jit_image()
235 if (ptr == pptr) { in get_last_jit_image()
241 ptr = pptr; in get_last_jit_image()
/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_bpf_percpu_array_map.c25 void *pptr = ctx->value; in dump_bpf_percpu_array_map() local
29 if (key == (void *)0 || pptr == (void *)0) in dump_bpf_percpu_array_map()
36 val_sum += *(__u32 *)pptr; in dump_bpf_percpu_array_map()
37 pptr += step; in dump_bpf_percpu_array_map()
H A Dbpf_iter_bpf_percpu_hash_map.c33 void *pptr = ctx->value; in dump_bpf_percpu_hash_map() local
37 if (key == (void *)0 || pptr == (void *)0) in dump_bpf_percpu_hash_map()
46 val_sum += *(__u32 *)pptr; in dump_bpf_percpu_hash_map()
47 pptr += step; in dump_bpf_percpu_hash_map()
/linux/kernel/bpf/
H A Dhashtab.c199 void __percpu *pptr) in htab_elem_set_ptr() argument
201 *(void __percpu **)(l->key + key_size) = pptr; in htab_elem_set_ptr()
260 void __percpu *pptr = htab_elem_get_ptr(elem, htab->map.key_size); in htab_free_prealloced_fields() local
264 bpf_obj_free_fields(htab->map.record, per_cpu_ptr(pptr, cpu)); in htab_free_prealloced_fields()
283 void __percpu *pptr; in htab_free_elems() local
285 pptr = htab_elem_get_ptr(get_htab_elem(htab, i), in htab_free_elems()
287 free_percpu(pptr); in htab_free_elems()
339 void __percpu *pptr; in prealloc_init() local
341 pptr = bpf_map_alloc_percpu(&htab->map, size, 8, in prealloc_init()
343 if (!pptr) in prealloc_init()
[all …]
H A Darraymap.c299 void __percpu *pptr; in bpf_percpu_array_copy() local
312 pptr = array->pptrs[index & array->index_mask]; in bpf_percpu_array_copy()
314 copy_map_value_long(map, value + off, per_cpu_ptr(pptr, cpu)); in bpf_percpu_array_copy()
386 void __percpu *pptr; in bpf_percpu_array_update() local
410 pptr = array->pptrs[index & array->index_mask]; in bpf_percpu_array_update()
412 copy_map_value_long(map, per_cpu_ptr(pptr, cpu), value + off); in bpf_percpu_array_update()
413 bpf_obj_free_fields(array->map.record, per_cpu_ptr(pptr, cpu)); in bpf_percpu_array_update()
458 void __percpu *pptr = array->pptrs[i & array->index_mask]; in array_map_free() local
462 bpf_obj_free_fields(map->record, per_cpu_ptr(pptr, cpu)); in array_map_free()
507 void __percpu *pptr; in percpu_array_map_seq_show_elem() local
[all …]
/linux/fs/xfs/scrub/
H A Dparent.c399 const struct xfs_parent_rec *pptr, in xchk_parent_iget() argument
404 xfs_ino_t parent_ino = be64_to_cpu(pptr->p_ino); in xchk_parent_iget()
429 if (VFS_I(ip)->i_generation != be32_to_cpu(pptr->p_gen)) { in xchk_parent_iget()
537 struct xfs_parent_rec *pptr) in xchk_parent_revalidate_pptr() argument
542 error = xfs_parent_lookup(sc->tp, sc->ip, xname, pptr, &pp->pptr_args); in xchk_parent_revalidate_pptr()
559 struct xfs_parent_rec *pptr) in xchk_parent_slow_pptr() argument
568 error = xchk_parent_revalidate_pptr(pp, xname, pptr); in xchk_parent_slow_pptr()
576 error = xchk_parent_iget(pp, pptr, &dp); in xchk_parent_slow_pptr()
606 error = xchk_parent_revalidate_pptr(pp, xname, pptr); in xchk_parent_slow_pptr()
632 struct xchk_pptr pptr; in xchk_parent_finish_slow_pptrs() local
[all …]
/linux/net/netfilter/
H A Dxt_multiport.c88 const __be16 *pptr; in multiport_mt() local
95 pptr = skb_header_pointer(skb, par->thoff, sizeof(_ports), _ports); in multiport_mt()
96 if (pptr == NULL) { in multiport_mt()
105 return ports_match_v1(multiinfo, ntohs(pptr[0]), ntohs(pptr[1])); in multiport_mt()
/linux/net/sched/
H A Dsch_htb.c819 struct rb_node **pptr; in htb_lookup_leaf() member
825 sp->pptr = &hprio->ptr; in htb_lookup_leaf()
829 if (!*sp->pptr && *sp->pid) { in htb_lookup_leaf()
833 *sp->pptr = in htb_lookup_leaf()
839 if (!*sp->pptr) { /* we are at right end; rewind & go up */ in htb_lookup_leaf()
840 *sp->pptr = sp->root; in htb_lookup_leaf()
841 while ((*sp->pptr)->rb_left) in htb_lookup_leaf()
842 *sp->pptr = (*sp->pptr)->rb_left; in htb_lookup_leaf()
845 if (!*sp->pptr) { in htb_lookup_leaf()
849 htb_next_rb_node(sp->pptr); in htb_lookup_leaf()
[all …]

12