Home | History | Annotate | Download | only in ppc32

Lines Matching defs:func_buf

125  * uint32_t func_buf[2];               // our new stack based 'function'
127 * init_function( &func, func_buf ); // copy insns, set func ptr
128 * patch_op_imm16(&func_buf[0], imm); // patch 'addi' insn
139 * after patch_op_imm16(), func_buf[0] becomes:
4760 /* Copy the 2 insn function starting at p_func_F to func_buf[], and
4762 copy in func_buf[]. */
4764 test_func_t init_function( test_func_t p_func_F, uint32_t func_buf[] )
4768 func_buf[0] = p_func[0];
4769 func_buf[1] = p_func[1];
4770 return (test_func_t)&func_buf[0];
4777 func_buf[0] = entry[0];
4778 func_buf[1] = entry[1];
4779 descr[0] = (uint64_t)&func_buf[0];
4790 uint32_t* func_buf = get_rwx_area();
4798 func = init_function( func_IN, func_buf );
4799 patch_op_imm16(&func_buf[0], ii16[j]);
4847 uint32_t* func_buf = get_rwx_area();
4861 func = init_function( func_IN, func_buf );
4862 _patch_op_imm(&func_buf[0], j, 11, 5);
4863 _patch_op_imm(&func_buf[0], k, 6, 5);
4864 patch_op_imm(&func_buf[0], l, 1, 5);
4890 uint32_t* func_buf = get_rwx_area();
4902 func = init_function( func_IN, func_buf );
4903 _patch_op_imm(&func_buf[0], k, 6, 5);
4904 patch_op_imm(&func_buf[0], l, 1, 5);
4931 uint32_t* func_buf = get_rwx_area();
4941 func = init_function( func_IN, func_buf );
4942 patch_op_imm(&func_buf[0], j, 11, 5);
4966 uint32_t* func_buf = get_rwx_area();
4976 func = init_function( func_IN, func_buf );
4977 _patch_op_imm(&func_buf[0], j, 23, 3);
4978 patch_op_imm(&func_buf[0], k, 18, 3);
5003 uint32_t* func_buf = get_rwx_area();
5013 func = init_function( func_IN, func_buf );
5014 patch_op_imm(&func_buf[0], k, 23, 3);
5122 uint32_t* func_buf = get_rwx_area();
5131 func = init_function( func_IN, func_buf );
5132 patch_op_imm(&func_buf[0], j, 12, 8);
5162 uint32_t* func_buf = get_rwx_area();
5173 func = init_function( func_IN, func_buf );
5174 patch_op_imm(&func_buf[0], (((k & 0x1F)<<1) | ((k>>5)&1)), 5, 6);
5196 uint32_t* func_buf = get_rwx_area();
5207 func = init_function( func_IN, func_buf );
5208 _patch_op_imm(&func_buf[0], (j & 0x1F), 11, 5);
5209 _patch_op_imm(&func_buf[0], ((j>>5)&1), 1, 1);
5210 patch_op_imm(&func_buf[0], (((k & 0x1F)<<1) | ((k>>5)&1)), 5, 6);
5231 uint32_t* func_buf = get_rwx_area();
5241 func = init_function( func_IN, func_buf );
5242 _patch_op_imm(&func_buf[0], (j & 0x1F), 11, 5);
5243 patch_op_imm(&func_buf[0], ((j>>5)&1), 1, 1);
5436 uint32_t* func_buf = get_rwx_area();
5451 func = init_function( func_IN, func_buf );
5453 patch_op_imm(&func_buf[0], offs>>2, 2, 14);
5455 patch_op_imm16(&func_buf[0], offs);
5479 func = init_function( func, func_buf );
5480 patch_op_imm16(&func_buf[0], offs);
5532 uint32_t* func_buf = get_rwx_area();
5549 func = init_function( func_IN, func_buf );
5550 patch_op_imm16(&func_buf[0], offs);
5577 func = init_function( func, func_buf );
5578 patch_op_imm16(&func_buf[0], offs);
5860 uint32_t* func_buf = get_rwx_area();
5878 func = init_function( func_IN, func_buf );
5879 patch_op_imm16(&func_buf[0], offs);
5951 uint32_t* func_buf = get_rwx_area();
5988 func = init_function( func_IN, func_buf );
5989 patch_op_imm16(&func_buf[0], offs);
6410 uint32_t* func_buf = get_rwx_area();
6427 func = init_function( func_IN, func_buf );
6428 patch_op_imm(&func_buf[0], j, 16, 5);
6480 uint32_t* func_buf = get_rwx_area();
6494 func = init_function( func_IN, func_buf );
6495 patch_op_imm(&func_buf[0], i, 16, 5);
6538 uint32_t* func_buf = get_rwx_area();
6556 func = init_function( func_IN, func_buf );
6557 patch_op_imm(&func_buf[0], k, 6, 4);
7129 uint32_t* func_buf = get_rwx_area();
7146 func = init_function( func_IN, func_buf );
7147 patch_op_imm(&func_buf[0], j, 16, 5);