• Home
  • Raw
  • Download

Lines Matching refs:ud

425 	struct cs_struct *ud;  in cs_errno()  local
429 ud = (struct cs_struct *)(uintptr_t)handle; in cs_errno()
431 return ud->errnum; in cs_errno()
477 struct cs_struct *ud; in cs_open() local
490 ud = cs_mem_calloc(1, sizeof(*ud)); in cs_open()
491 if (!ud) { in cs_open()
496 ud->errnum = CS_ERR_OK; in cs_open()
497 ud->arch = arch; in cs_open()
498 ud->mode = mode; in cs_open()
500 ud->detail = CS_OPT_OFF; in cs_open()
503 ud->skipdata_setup.mnemonic = SKIPDATA_MNEM; in cs_open()
505 err = cs_arch_init[ud->arch](ud); in cs_open()
507 cs_mem_free(ud); in cs_open()
512 *handle = (uintptr_t)ud; in cs_open()
524 struct cs_struct *ud; in cs_close() local
531 ud = (struct cs_struct *)(*handle); in cs_close()
533 if (ud->printer_info) in cs_close()
534 cs_mem_free(ud->printer_info); in cs_close()
537 tmp = ud->mnem_list; in cs_close()
544 cs_mem_free(ud->insn_cache); in cs_close()
546 memset(ud, 0, sizeof(*ud)); in cs_close()
547 cs_mem_free(ud); in cs_close()
670 cs_err CAPSTONE_API cs_option(csh ud, cs_opt_type type, size_t value) in cs_option() argument
689 handle = (struct cs_struct *)(uintptr_t)ud; in cs_option()
822 size_t CAPSTONE_API cs_disasm(csh ud, const uint8_t *buffer, size_t size, uint64_t offset, size_t c… in cs_disasm() argument
841 handle = (struct cs_struct *)(uintptr_t)ud; in cs_disasm()
897 r = handle->disasm(ud, buffer, size, &mci, &insn_size, offset, handle->getinsn_info); in cs_disasm()
1033 size_t CAPSTONE_API cs_disasm_ex(csh ud, const uint8_t *buffer, size_t size, uint64_t offset, size_… in cs_disasm_ex() argument
1035 return cs_disasm(ud, buffer, size, offset, count, insn); in cs_disasm_ex()
1052 cs_insn * CAPSTONE_API cs_malloc(csh ud) in cs_malloc() argument
1055 struct cs_struct *handle = (struct cs_struct *)(uintptr_t)ud; in cs_malloc()
1080 bool CAPSTONE_API cs_disasm_iter(csh ud, const uint8_t **code, size_t *size, in cs_disasm_iter() argument
1088 handle = (struct cs_struct *)(uintptr_t)ud; in cs_disasm_iter()
1110 r = handle->disasm(ud, *code, *size, &mci, &insn_size, *address, handle->getinsn_info); in cs_disasm_iter()
1176 const char * CAPSTONE_API cs_reg_name(csh ud, unsigned int reg) in cs_reg_name() argument
1178 struct cs_struct *handle = (struct cs_struct *)(uintptr_t)ud; in cs_reg_name()
1184 return handle->reg_name(ud, reg); in cs_reg_name()
1188 const char * CAPSTONE_API cs_insn_name(csh ud, unsigned int insn) in cs_insn_name() argument
1190 struct cs_struct *handle = (struct cs_struct *)(uintptr_t)ud; in cs_insn_name()
1196 return handle->insn_name(ud, insn); in cs_insn_name()
1200 const char * CAPSTONE_API cs_group_name(csh ud, unsigned int group) in cs_group_name() argument
1202 struct cs_struct *handle = (struct cs_struct *)(uintptr_t)ud; in cs_group_name()
1208 return handle->group_name(ud, group); in cs_group_name()
1212 bool CAPSTONE_API cs_insn_group(csh ud, const cs_insn *insn, unsigned int group_id) in cs_insn_group() argument
1215 if (!ud) in cs_insn_group()
1218 handle = (struct cs_struct *)(uintptr_t)ud; in cs_insn_group()
1239 bool CAPSTONE_API cs_reg_read(csh ud, const cs_insn *insn, unsigned int reg_id) in cs_reg_read() argument
1242 if (!ud) in cs_reg_read()
1245 handle = (struct cs_struct *)(uintptr_t)ud; in cs_reg_read()
1266 bool CAPSTONE_API cs_reg_write(csh ud, const cs_insn *insn, unsigned int reg_id) in cs_reg_write() argument
1269 if (!ud) in cs_reg_write()
1272 handle = (struct cs_struct *)(uintptr_t)ud; in cs_reg_write()
1293 int CAPSTONE_API cs_op_count(csh ud, const cs_insn *insn, unsigned int op_type) in cs_op_count() argument
1297 if (!ud) in cs_op_count()
1300 handle = (struct cs_struct *)(uintptr_t)ud; in cs_op_count()
1396 int CAPSTONE_API cs_op_index(csh ud, const cs_insn *insn, unsigned int op_type, in cs_op_index() argument
1401 if (!ud) in cs_op_index()
1404 handle = (struct cs_struct *)(uintptr_t)ud; in cs_op_index()
1539 cs_err CAPSTONE_API cs_regs_access(csh ud, const cs_insn *insn, in cs_regs_access() argument
1545 if (!ud) in cs_regs_access()
1548 handle = (struct cs_struct *)(uintptr_t)ud; in cs_regs_access()