Home
last modified time | relevance | path

Searched refs:res_ptr (Results 1 – 13 of 13) sorted by relevance

/openbmc/linux/lib/crypto/mpi/
H A Dmpi-inline.h24 mpihelp_add_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, in mpihelp_add_1() argument
31 *res_ptr++ = s2_limb; in mpihelp_add_1()
35 *res_ptr++ = x; /* and store */ in mpihelp_add_1()
43 if (res_ptr != s1_ptr) { /* not the same variable */ in mpihelp_add_1()
46 res_ptr[i] = s1_ptr[i]; in mpihelp_add_1()
52 mpihelp_add(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, mpi_size_t s1_size, in mpihelp_add() argument
58 cy = mpihelp_add_n(res_ptr, s1_ptr, s2_ptr, s2_size); in mpihelp_add()
61 cy = mpihelp_add_1(res_ptr + s2_size, s1_ptr + s2_size, in mpihelp_add()
67 mpihelp_sub_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, in mpihelp_sub_1() argument
74 *res_ptr++ = s2_limb; in mpihelp_sub_1()
[all …]
H A Dmpi-internal.h146 static inline mpi_limb_t mpihelp_add_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
148 mpi_limb_t mpihelp_add_n(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
150 static inline mpi_limb_t mpihelp_add(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, mpi_size_t s1_size,
153 static inline mpi_limb_t mpihelp_sub_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
155 mpi_limb_t mpihelp_sub_n(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
157 static inline mpi_limb_t mpihelp_sub(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, mpi_size_t s1_size,
175 mpi_limb_t mpihelp_addmul_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
177 mpi_limb_t mpihelp_submul_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
193 mpi_limb_t mpihelp_mul_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
H A Dgeneric_mpih-mul2.c20 mpihelp_addmul_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, in mpihelp_addmul_1() argument
31 res_ptr -= j; in mpihelp_addmul_1()
41 x = res_ptr[j]; in mpihelp_addmul_1()
44 res_ptr[j] = prod_low; in mpihelp_addmul_1()
H A Dgeneric_mpih-mul3.c20 mpihelp_submul_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, in mpihelp_submul_1() argument
31 res_ptr -= j; in mpihelp_submul_1()
41 x = res_ptr[j]; in mpihelp_submul_1()
44 res_ptr[j] = prod_low; in mpihelp_submul_1()
H A Dgeneric_mpih-mul1.c20 mpihelp_mul_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, mpi_size_t s1_size, in mpihelp_mul_1() argument
33 res_ptr -= j; in mpihelp_mul_1()
40 res_ptr[j] = prod_low; in mpihelp_mul_1()
H A Dgeneric_mpih-add1.c21 mpihelp_add_n(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, in mpihelp_add_n() argument
34 res_ptr -= j; in mpihelp_add_n()
44 res_ptr[j] = y; in mpihelp_add_n()
H A Dgeneric_mpih-sub1.c20 mpihelp_sub_n(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, in mpihelp_sub_n() argument
33 res_ptr -= j; in mpihelp_sub_n()
43 res_ptr[j] = y; in mpihelp_sub_n()
/openbmc/linux/arch/parisc/kernel/
H A Dpci-dma.c63 u_long *res_ptr = (unsigned long *)pcxl_res_map; in dump_resmap() local
67 for(; i < (pcxl_res_size / sizeof(unsigned long)); ++i, ++res_ptr) in dump_resmap()
68 printk("%08lx ", *res_ptr); in dump_resmap()
230 for(; res_ptr < res_end; ++res_ptr) \
232 if(0 == ((*res_ptr) & mask)) { \
233 *res_ptr |= mask; \
234 idx = (int)((u_long)res_ptr - (u_long)pcxl_res_map); \
241 u##size *res_ptr = (u##size *)&(pcxl_res_map[pcxl_res_hint & ~((size >> 3) - 1)]); \
244 res_ptr = (u##size *)&pcxl_res_map[0]; \
297 …u##size *res_ptr = (u##size *)&(pcxl_res_map[(idx) + (((size >> 3) - 1) & (~((size >> 3) - 1)))]);…
[all …]
/openbmc/linux/arch/ia64/hp/common/
H A Dsba_iommu.c457 static unsigned long ptr_to_pide(struct ioc *ioc, unsigned long *res_ptr, in ptr_to_pide() argument
460 return (((unsigned long)res_ptr - (unsigned long)ioc->res_map) << 3) in ptr_to_pide()
478 unsigned long *res_ptr; in sba_search_bitmap() local
486 ASSERT(res_ptr < res_end); in sba_search_bitmap()
497 res_ptr = ioc->res_hint; in sba_search_bitmap()
499 res_ptr = (ulong *)ioc->res_map; in sba_search_bitmap()
513 for(; res_ptr < res_end ; res_ptr++) { in sba_search_bitmap()
514 if (likely(*res_ptr != ~0UL)) { in sba_search_bitmap()
515 bitshiftcnt = ffz(*res_ptr); in sba_search_bitmap()
516 *res_ptr |= (1UL << bitshiftcnt); in sba_search_bitmap()
[all …]
/openbmc/linux/drivers/parisc/
H A Dsba_iommu.c323 static unsigned long ptr_to_pide(struct ioc *ioc, unsigned long *res_ptr, in ptr_to_pide() argument
326 return (((unsigned long)res_ptr - (unsigned long)ioc->res_map) << 3) in ptr_to_pide()
344 unsigned long *res_ptr = ioc->res_hint; in sba_search_bitmap() local
362 for(; res_ptr < res_end; ++res_ptr) { in sba_search_bitmap()
363 tpide = ptr_to_pide(ioc, res_ptr, 0); in sba_search_bitmap()
367 if ((*res_ptr == 0) && !ret) { in sba_search_bitmap()
368 *res_ptr = RESMAP_MASK(bits_wanted); in sba_search_bitmap()
374 res_ptr++; in sba_search_bitmap()
389 res_ptr++; in sba_search_bitmap()
393 DBG_RES("%s() o %ld %p", __func__, o, res_ptr); in sba_search_bitmap()
[all …]
H A Dccio-dma.c285 for (; res_ptr < res_end; ++res_ptr) { \
288 idx = (unsigned int)((unsigned long)res_ptr - (unsigned long)ioc->res_map); \
290 if ((0 == (*res_ptr & mask)) && !ret) { \
291 *res_ptr |= mask; \
299 u##size *res_ptr = (u##size *)&((ioc)->res_map[ioa->res_hint & ~((size >> 3) - 1)]); \
302 res_ptr = (u##size *)&(ioc)->res_map[0]; \
407 u##size *res_ptr = (u##size *)&((ioc)->res_map[res_idx]); \
408 BUG_ON((*res_ptr & mask) != mask); \
409 *res_ptr &= ~(mask);
1162 u8 *res_ptr; in ccio_cujo20_fixup() local
[all …]
/openbmc/linux/drivers/nubus/
H A Dproc.c90 unsigned char *res_ptr; member
103 pded->res_ptr = ptr; in nubus_proc_alloc_pde_data()
128 ent.base = pded->res_ptr; in nubus_proc_rsrc_show()
132 unsigned int data = (unsigned int)pded->res_ptr; in nubus_proc_rsrc_show()
/openbmc/linux/drivers/gpu/drm/ttm/
H A Dttm_resource.c228 struct ttm_resource **res_ptr) in ttm_resource_alloc() argument
234 ret = man->func->alloc(man, bo, place, res_ptr); in ttm_resource_alloc()
239 ttm_resource_add_bulk_move(*res_ptr, bo); in ttm_resource_alloc()