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:
4856 /* Copy the 2 insn function starting at p_func_F to func_buf[], and
4858 copy in func_buf[]. */
4860 test_func_t init_function( test_func_t p_func_F, uint32_t func_buf[] )
4864 func_buf[0] = p_func[0];
4865 func_buf[1] = p_func[1];
4866 return (test_func_t)&func_buf[0];
4873 func_buf[0] = entry[0];
4874 func_buf[1] = entry[1];
4875 descr[0] = (uint64_t)&func_buf[0];
4886 uint32_t* func_buf = get_rwx_area();
4894 func = init_function( func_IN, func_buf );
4895 patch_op_imm16(&func_buf[0], ii16[j]);
4943 uint32_t* func_buf = get_rwx_area();
4957 func = init_function( func_IN, func_buf );
4958 _patch_op_imm(&func_buf[0], j, 11, 5);
4959 _patch_op_imm(&func_buf[0], k, 6, 5);
4960 patch_op_imm(&func_buf[0], l, 1, 5);
4986 uint32_t* func_buf = get_rwx_area();
4998 func = init_function( func_IN, func_buf );
4999 _patch_op_imm(&func_buf[0], k, 6, 5);
5000 patch_op_imm(&func_buf[0], l, 1, 5);
5027 uint32_t* func_buf = get_rwx_area();
5037 func = init_function( func_IN, func_buf );
5038 patch_op_imm(&func_buf[0], j, 11, 5);
5062 uint32_t* func_buf = get_rwx_area();
5072 func = init_function( func_IN, func_buf );
5073 _patch_op_imm(&func_buf[0], j, 23, 3);
5074 patch_op_imm(&func_buf[0], k, 18, 3);
5099 uint32_t* func_buf = get_rwx_area();
5109 func = init_function( func_IN, func_buf );
5110 patch_op_imm(&func_buf[0], k, 23, 3);
5218 uint32_t* func_buf = get_rwx_area();
5227 func = init_function( func_IN, func_buf );
5228 patch_op_imm(&func_buf[0], j, 12, 8);
5258 uint32_t* func_buf = get_rwx_area();
5269 func = init_function( func_IN, func_buf );
5270 patch_op_imm(&func_buf[0], (((k & 0x1F)<<1) | ((k>>5)&1)), 5, 6);
5292 uint32_t* func_buf = get_rwx_area();
5303 func = init_function( func_IN, func_buf );
5304 _patch_op_imm(&func_buf[0], (j & 0x1F), 11, 5);
5305 _patch_op_imm(&func_buf[0], ((j>>5)&1), 1, 1);
5306 patch_op_imm(&func_buf[0], (((k & 0x1F)<<1) | ((k>>5)&1)), 5, 6);
5327 uint32_t* func_buf = get_rwx_area();
5337 func = init_function( func_IN, func_buf );
5338 _patch_op_imm(&func_buf[0], (j & 0x1F), 11, 5);
5339 patch_op_imm(&func_buf[0], ((j>>5)&1), 1, 1);
5532 uint32_t* func_buf = get_rwx_area();
5548 func = init_function( func_IN, func_buf );
5550 patch_op_imm(&func_buf[0], offs>>2, 2, 14);
5552 patch_op_imm16(&func_buf[0], offs);
5576 func = init_function( func, func_buf );
5577 patch_op_imm16(&func_buf[0], offs);
5629 uint32_t* func_buf = get_rwx_area();
5646 func = init_function( func_IN, func_buf );
5647 patch_op_imm16(&func_buf[0], offs);
5674 func = init_function( func, func_buf );
5675 patch_op_imm16(&func_buf[0], offs);
5978 uint32_t* func_buf = get_rwx_area();
5997 func = init_function( func_IN, func_buf );
5998 patch_op_imm16(&func_buf[0], offs);
6070 uint32_t* func_buf = get_rwx_area();
6107 func = init_function( func_IN, func_buf );
6108 patch_op_imm16(&func_buf[0], offs);
6529 uint32_t* func_buf = get_rwx_area();
6546 func = init_function( func_IN, func_buf );
6547 patch_op_imm(&func_buf[0], j, 16, 5);
6599 uint32_t* func_buf = get_rwx_area();
6613 func = init_function( func_IN, func_buf );
6614 patch_op_imm(&func_buf[0], i, 16, 5);
6657 uint32_t* func_buf = get_rwx_area();
6675 func = init_function( func_IN, func_buf );
6676 patch_op_imm(&func_buf[0], k, 6, 4);
7257 uint32_t* func_buf = get_rwx_area();
7274 func = init_function( func_IN, func_buf );
7275 patch_op_imm(&func_buf[0], j, 16, 5);