Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 44) sorted by relevance

12

/lib/mpi/
Dmpicoder.c140 uint8_t *p, *buffer; in mpi_get_buffer() local
150 p = buffer = kmalloc(n, GFP_KERNEL); in mpi_get_buffer()
151 if (!p) in mpi_get_buffer()
157 *p++ = alimb >> 24; in mpi_get_buffer()
158 *p++ = alimb >> 16; in mpi_get_buffer()
159 *p++ = alimb >> 8; in mpi_get_buffer()
160 *p++ = alimb; in mpi_get_buffer()
162 *p++ = alimb >> 56; in mpi_get_buffer()
163 *p++ = alimb >> 48; in mpi_get_buffer()
164 *p++ = alimb >> 40; in mpi_get_buffer()
[all …]
/lib/
Dflex_proportions.c37 int fprop_global_init(struct fprop_global *p) in fprop_global_init() argument
41 p->period = 0; in fprop_global_init()
43 err = percpu_counter_init(&p->events, 1); in fprop_global_init()
46 seqcount_init(&p->sequence); in fprop_global_init()
50 void fprop_global_destroy(struct fprop_global *p) in fprop_global_destroy() argument
52 percpu_counter_destroy(&p->events); in fprop_global_destroy()
63 bool fprop_new_period(struct fprop_global *p, int periods) in fprop_new_period() argument
69 events = percpu_counter_sum(&p->events); in fprop_new_period()
77 write_seqcount_begin(&p->sequence); in fprop_new_period()
81 percpu_counter_add(&p->events, -events); in fprop_new_period()
[all …]
Didr.c75 struct idr_layer *p; in get_from_free_list() local
79 if ((p = idp->id_free)) { in get_from_free_list()
80 idp->id_free = p->ary[0]; in get_from_free_list()
82 p->ary[0] = NULL; in get_from_free_list()
85 return(p); in get_from_free_list()
152 static inline void free_layer(struct idr *idr, struct idr_layer *p) in free_layer() argument
154 if (idr->hint && idr->hint == p) in free_layer()
156 call_rcu(&p->rcu_head, idr_layer_rcu_free); in free_layer()
160 static void __move_to_free_list(struct idr *idp, struct idr_layer *p) in __move_to_free_list() argument
162 p->ary[0] = idp->id_free; in __move_to_free_list()
[all …]
Dparser.c26 static int match_one(char *s, const char *p, substring_t args[]) in match_one() argument
31 if (!p) in match_one()
36 meta = strchr(p, '%'); in match_one()
38 return strcmp(p, s) == 0; in match_one()
40 if (strncmp(p, s, meta-p)) in match_one()
43 s += meta - p; in match_one()
44 p = meta + 1; in match_one()
46 if (isdigit(*p)) in match_one()
47 len = simple_strtoul(p, (char **) &p, 10); in match_one()
48 else if (*p == '%') { in match_one()
[all …]
Dfind_next_bit.c26 const unsigned long *p = addr + BITOP_WORD(offset); in find_next_bit() local
35 tmp = *(p++); in find_next_bit()
45 if ((tmp = *(p++))) in find_next_bit()
52 tmp = *p; in find_next_bit()
72 const unsigned long *p = addr + BITOP_WORD(offset); in find_next_zero_bit() local
81 tmp = *(p++); in find_next_zero_bit()
91 if (~(tmp = *(p++))) in find_next_zero_bit()
98 tmp = *p; in find_next_zero_bit()
116 const unsigned long *p = addr; in find_first_bit() local
121 if ((tmp = *(p++))) in find_first_bit()
[all …]
Dearlycpio.c71 const char *p, *dptr, *nptr; in find_cpio_data() local
77 p = data; in find_cpio_data()
80 if (!*p) { in find_cpio_data()
82 p += 4; in find_cpio_data()
93 c = *p++; in find_cpio_data()
118 dptr = PTR_ALIGN(p + ch[C_NAMESIZE], 4); in find_cpio_data()
121 if (nptr > p + len || dptr < p || nptr < dptr) in find_cpio_data()
126 !memcmp(p, path, mypathsize)) { in find_cpio_data()
131 p, MAX_CPIO_FILE_NAME); in find_cpio_data()
133 strlcpy(cd.name, p + mypathsize, MAX_CPIO_FILE_NAME); in find_cpio_data()
[all …]
Dstring_helpers.c74 char *p = *dst, *q = *src; in unescape_space() local
78 *p = '\n'; in unescape_space()
81 *p = '\r'; in unescape_space()
84 *p = '\t'; in unescape_space()
87 *p = '\v'; in unescape_space()
90 *p = '\f'; in unescape_space()
102 char *p = *dst, *q = *src; in unescape_octal() local
113 *p = num; in unescape_octal()
121 char *p = *dst, *q = *src; in unescape_hex() local
137 *p = num; in unescape_hex()
[all …]
Dkasprintf.c17 char *p; in kvasprintf() local
24 p = kmalloc_track_caller(len+1, gfp); in kvasprintf()
25 if (!p) in kvasprintf()
28 vsnprintf(p, len+1, fmt, ap); in kvasprintf()
30 return p; in kvasprintf()
37 char *p; in kasprintf() local
40 p = kvasprintf(gfp, fmt, ap); in kasprintf()
43 return p; in kasprintf()
Dcrc32.c116 u8 *p = (u8 *)(b + 1) - 1; local
119 DO_CRC(*++p); /* use pre increment for speed */
122 DO_CRC(*++p); /* use pre increment for speed */
140 static inline u32 __pure crc32_le_generic(u32 crc, unsigned char const *p, argument
147 crc ^= *p++;
153 crc ^= *p++;
161 crc ^= *p++;
168 crc ^= *p++;
173 crc = crc32_body(crc, p, len, tab);
180 u32 __pure crc32_le(u32 crc, unsigned char const *p, size_t len) argument
[all …]
Dprio_heap.c26 void *heap_insert(struct ptr_heap *heap, void *p) in heap_insert() argument
35 while (pos > 0 && heap->gt(p, ptrs[(pos-1)/2])) { in heap_insert()
39 ptrs[pos] = p; in heap_insert()
46 if (heap->gt(p, ptrs[0])) in heap_insert()
47 return p; in heap_insert()
51 ptrs[0] = p; in heap_insert()
58 if (left < heap->size && heap->gt(ptrs[left], p)) in heap_insert()
66 ptrs[largest] = p; in heap_insert()
Dis_single_threaded.c22 struct task_struct *p, *t; in current_is_single_threaded() local
33 for_each_process(p) { in current_is_single_threaded()
34 if (unlikely(p->flags & PF_KTHREAD)) in current_is_single_threaded()
36 if (unlikely(p == task->group_leader)) in current_is_single_threaded()
39 t = p; in current_is_single_threaded()
51 } while_each_thread(p, t); in current_is_single_threaded()
Dtimerqueue.c41 struct rb_node **p = &head->head.rb_node; in timerqueue_add() local
48 while (*p) { in timerqueue_add()
49 parent = *p; in timerqueue_add()
52 p = &(*p)->rb_left; in timerqueue_add()
54 p = &(*p)->rb_right; in timerqueue_add()
56 rb_link_node(&node->node, parent, p); in timerqueue_add()
Dvsprintf.c620 char *p = sym, *pend = sym + sizeof(sym); in resource_string() local
624 *p++ = '['; in resource_string()
626 p = string(p, pend, "io ", str_spec); in resource_string()
629 p = string(p, pend, "mem ", str_spec); in resource_string()
632 p = string(p, pend, "irq ", str_spec); in resource_string()
635 p = string(p, pend, "dma ", str_spec); in resource_string()
638 p = string(p, pend, "bus ", str_spec); in resource_string()
641 p = string(p, pend, "??? ", str_spec); in resource_string()
645 p = number(p, pend, res->start, *specp); in resource_string()
647 *p++ = '-'; in resource_string()
[all …]
Ddecompress_unlzma.c148 static inline uint32_t INIT rc_is_bit_0_helper(struct rc *rc, uint16_t *p) in rc_is_bit_0_helper() argument
151 rc->bound = *p * (rc->range >> RC_MODEL_TOTAL_BITS); in rc_is_bit_0_helper()
154 static inline int INIT rc_is_bit_0(struct rc *rc, uint16_t *p) in rc_is_bit_0() argument
156 uint32_t t = rc_is_bit_0_helper(rc, p); in rc_is_bit_0()
161 static inline void INIT rc_update_bit_0(struct rc *rc, uint16_t *p) in rc_update_bit_0() argument
164 *p += ((1 << RC_MODEL_TOTAL_BITS) - *p) >> RC_MOVE_BITS; in rc_update_bit_0()
166 static inline void INIT rc_update_bit_1(struct rc *rc, uint16_t *p) in rc_update_bit_1() argument
170 *p -= *p >> RC_MOVE_BITS; in rc_update_bit_1()
174 static int INIT rc_get_bit(struct rc *rc, uint16_t *p, int *symbol) in rc_get_bit() argument
176 if (rc_is_bit_0(rc, p)) { in rc_get_bit()
[all …]
Dstring.c312 const char *p = s + strlen(s); in strrchr() local
314 if (*p == (char)c) in strrchr()
315 return (char *)p; in strrchr()
316 } while (--p >= s); in strrchr()
420 const char *p; in strspn() local
424 for (p = s; *p != '\0'; ++p) { in strspn()
426 if (*p == *a) in strspn()
447 const char *p; in strcspn() local
451 for (p = s; *p != '\0'; ++p) { in strcspn()
453 if (*p == *r) in strcspn()
[all …]
Dinflate.c246 void *p; in malloc() local
255 p = (void *)malloc_ptr; in malloc()
262 return p; in malloc()
344 register unsigned *p; /* pointer into c[], b[], or v[] */ in huft_build() local
374 p = b; i = n; in huft_build()
376 Tracecv(*p, (stderr, (n-i >= ' ' && n-i <= '~' ? "%c %d\n" : "0x%x %d\n"), in huft_build()
377 n-i, *p)); in huft_build()
378 c[*p]++; /* assume all entries <= BMAX */ in huft_build()
379 p++; /* Can't combine with above line (Solaris bug) */ in huft_build()
425 p = c + 1; xp = x + 2; in huft_build()
[all …]
Dtest-string_helpers.c47 int i, p = 0, q_test = 0, q_real = sizeof(out_real); in test_string_unescape() local
54 memcpy(&in[p], s, len); in test_string_unescape()
55 p += len; in test_string_unescape()
65 in[p++] = '\0'; in test_string_unescape()
69 memcpy(out_real, in, p); in test_string_unescape()
83 DUMP_PREFIX_NONE, 16, 1, in, p - 1, true); in test_string_unescape()
/lib/raid6/
Drecov_avx2.c25 u8 *p, *q, *dp, *dq; in raid6_2data_recov_avx2() local
30 p = (u8 *)ptrs[disks-2]; in raid6_2data_recov_avx2()
48 ptrs[disks-2] = p; in raid6_2data_recov_avx2()
65 asm volatile("vmovdqa %0, %%ymm0" : : "m" (p[0])); in raid6_2data_recov_avx2()
66 asm volatile("vmovdqa %0, %%ymm8" : : "m" (p[32])); in raid6_2data_recov_avx2()
135 p += 64; in raid6_2data_recov_avx2()
141 asm volatile("vmovdqa %0, %%ymm0" : : "m" (*p)); in raid6_2data_recov_avx2()
182 p += 32; in raid6_2data_recov_avx2()
195 u8 *p, *q, *dq; in raid6_datap_recov_avx2() local
199 p = (u8 *)ptrs[disks-2]; in raid6_datap_recov_avx2()
[all …]
Drecov_ssse3.c23 u8 *p, *q, *dp, *dq; in raid6_2data_recov_ssse3() local
30 p = (u8 *)ptrs[disks-2]; in raid6_2data_recov_ssse3()
48 ptrs[disks-2] = p; in raid6_2data_recov_ssse3()
73 asm volatile("movdqa %0,%%xmm0" : : "m" (p[0])); in raid6_2data_recov_ssse3()
74 asm volatile("movdqa %0,%%xmm8" : : "m" (p[16])); in raid6_2data_recov_ssse3()
137 p += 32; in raid6_2data_recov_ssse3()
143 asm volatile("movdqa %0,%%xmm0" : : "m" (*p)); in raid6_2data_recov_ssse3()
184 p += 16; in raid6_2data_recov_ssse3()
198 u8 *p, *q, *dq; in raid6_datap_recov_ssse3() local
204 p = (u8 *)ptrs[disks-2]; in raid6_datap_recov_ssse3()
[all …]
Dsse2.c44 u8 *p, *q; in raid6_sse21_gen_syndrome() local
48 p = dptr[z0+1]; /* XOR parity */ in raid6_sse21_gen_syndrome()
81 asm volatile("movntdq %%xmm2,%0" : "=m" (p[d])); in raid6_sse21_gen_syndrome()
104 u8 *p, *q; in raid6_sse22_gen_syndrome() local
108 p = dptr[z0+1]; /* XOR parity */ in raid6_sse22_gen_syndrome()
143 asm volatile("movntdq %%xmm2,%0" : "=m" (p[d])); in raid6_sse22_gen_syndrome()
144 asm volatile("movntdq %%xmm3,%0" : "=m" (p[d+16])); in raid6_sse22_gen_syndrome()
168 u8 *p, *q; in raid6_sse24_gen_syndrome() local
172 p = dptr[z0+1]; /* XOR parity */ in raid6_sse24_gen_syndrome()
229 asm volatile("movntdq %%xmm2,%0" : "=m" (p[d])); in raid6_sse24_gen_syndrome()
[all …]
Davx2.c45 u8 *p, *q; in raid6_avx21_gen_syndrome() local
49 p = dptr[z0+1]; /* XOR parity */ in raid6_avx21_gen_syndrome()
80 asm volatile("vmovntdq %%ymm2,%0" : "=m" (p[d])); in raid6_avx21_gen_syndrome()
103 u8 *p, *q; in raid6_avx22_gen_syndrome() local
107 p = dptr[z0+1]; /* XOR parity */ in raid6_avx22_gen_syndrome()
141 asm volatile("vmovntdq %%ymm2,%0" : "=m" (p[d])); in raid6_avx22_gen_syndrome()
142 asm volatile("vmovntdq %%ymm3,%0" : "=m" (p[d+32])); in raid6_avx22_gen_syndrome()
166 u8 *p, *q; in raid6_avx24_gen_syndrome() local
170 p = dptr[z0+1]; /* XOR parity */ in raid6_avx24_gen_syndrome()
221 asm volatile("vmovntdq %%ymm2,%0" : "=m" (p[d])); in raid6_avx24_gen_syndrome()
[all …]
Dmmx.c43 u8 *p, *q; in raid6_mmx1_gen_syndrome() local
47 p = dptr[z0+1]; /* XOR parity */ in raid6_mmx1_gen_syndrome()
68 asm volatile("movq %%mm2,%0" : "=m" (p[d])); in raid6_mmx1_gen_syndrome()
90 u8 *p, *q; in raid6_mmx2_gen_syndrome() local
94 p = dptr[z0+1]; /* XOR parity */ in raid6_mmx2_gen_syndrome()
126 asm volatile("movq %%mm2,%0" : "=m" (p[d])); in raid6_mmx2_gen_syndrome()
127 asm volatile("movq %%mm3,%0" : "=m" (p[d+8])); in raid6_mmx2_gen_syndrome()
Dsse1.c48 u8 *p, *q; in raid6_sse11_gen_syndrome() local
52 p = dptr[z0+1]; /* XOR parity */ in raid6_sse11_gen_syndrome()
85 asm volatile("movntq %%mm2,%0" : "=m" (p[d])); in raid6_sse11_gen_syndrome()
106 u8 *p, *q; in raid6_sse12_gen_syndrome() local
110 p = dptr[z0+1]; /* XOR parity */ in raid6_sse12_gen_syndrome()
145 asm volatile("movntq %%mm2,%0" : "=m" (p[d])); in raid6_sse12_gen_syndrome()
146 asm volatile("movntq %%mm3,%0" : "=m" (p[d+8])); in raid6_sse12_gen_syndrome()
Drecov.c28 u8 *p, *q, *dp, *dq; in raid6_2data_recov_intx1() local
33 p = (u8 *)ptrs[disks-2]; in raid6_2data_recov_intx1()
51 ptrs[disks-2] = p; in raid6_2data_recov_intx1()
60 px = *p ^ *dp; in raid6_2data_recov_intx1()
64 p++; q++; in raid6_2data_recov_intx1()
72 u8 *p, *q, *dq; in raid6_datap_recov_intx1() local
75 p = (u8 *)ptrs[disks-2]; in raid6_datap_recov_intx1()
95 *p++ ^= *dq = qmul[*q ^ *dq]; in raid6_datap_recov_intx1()
/lib/lz4/
Dlz4defs.h38 #define LZ4_WRITE_LITTLEENDIAN_16(p, v) \ argument
40 A16(p) = v; \
41 p += 2; \
54 #define LZ4_WRITE_LITTLEENDIAN_16(p, v) \ argument
56 put_unaligned(v, (u16 *)(p)); \
57 p += 2; \
83 #define LZ4_HASH_VALUE(p) (((A32(p)) * 2654435761U) >> \ argument
85 #define LZ4_HASH64K_VALUE(p) (((A32(p)) * 2654435761U) >> \ argument
87 #define HASH_VALUE(p) (((A32(p)) * 2654435761U) >> \ argument
143 #define LZ4_READ_LITTLEENDIAN_16(d, s, p) \ argument
[all …]

12