Lines Matching refs:regs
4013 dtrace_dif_subr(uint_t subr, uint_t rd, uint64_t *regs,
4033 regs[rd] = (dtrace_gethrtime() * 2416 + 374441) % 1771875;
4039 regs[rd] = NULL;
4045 regs[rd] = MUTEX_OWNER(&m.mi) != MUTEX_NO_OWNER;
4047 regs[rd] = LOCK_HELD(&m.mi.m_spin.m_spinlock);
4053 regs[rd] = NULL;
4060 regs[rd] = (uintptr_t)MUTEX_OWNER(&m.mi);
4062 regs[rd] = 0;
4068 regs[rd] = NULL;
4073 regs[rd] = MUTEX_TYPE_ADAPTIVE(&m.mi);
4079 regs[rd] = NULL;
4084 regs[rd] = MUTEX_TYPE_SPIN(&m.mi);
4092 regs[rd] = NULL;
4097 regs[rd] = _RW_READ_HELD(&r.ri, tmp);
4104 regs[rd] = NULL;
4109 regs[rd] = _RW_WRITE_HELD(&r.ri);
4115 regs[rd] = NULL;
4120 regs[rd] = _RW_ISWRITER(&r.ri);
4134 *illval = regs[rd];
4139 regs[rd] = NULL;
4167 regs[rd] = NULL;
4178 regs[rd] = dest;
4193 *illval = regs[rd];
4217 regs[rd] = NULL;
4227 regs[rd] = dest;
4242 regs[rd] = NULL;
4284 regs[rd] = count;
4305 regs[rd] = rval;
4310 regs[rd] = dtrace_speculation(state);
4352 regs[rd] = NULL;
4355 regs[rd] = dtrace_strlen((char *)addr, lim);
4376 regs[rd] = NULL;
4381 for (regs[rd] = NULL; addr < addr_limit; addr++) {
4383 regs[rd] = addr;
4416 regs[rd] = notfound;
4419 regs[rd] = NULL;
4425 regs[rd] = NULL;
4437 regs[rd] = (uintptr_t)addr;
4439 regs[rd] = 0;
4499 regs[rd] = 0;
4511 regs[rd] = len;
4520 for (regs[rd] = notfound; addr != limit; addr += inc) {
4532 regs[rd] = (uintptr_t)(addr - orig);
4537 regs[rd] = (uintptr_t)addr;
4560 regs[rd] = NULL;
4567 regs[rd] = NULL;
4592 regs[rd] = NULL;
4633 regs[rd] = NULL;
4655 regs[rd] = (uintptr_t)dest;
4672 regs[rd] = NULL;
4678 regs[rd] = NULL;
4710 regs[rd] = (uintptr_t)d;
4729 regs[rd] = NULL;
4735 regs[rd] = NULL;
4767 if ((regs[rd] = (uintptr_t)dtrace_json(size, json, elemlist,
4793 regs[rd] = NULL;
4799 regs[rd] = NULL;
4815 regs[rd] = (uintptr_t)dest;
4822 regs[rd] = (tupregs[0].dttk_value >> NBITSMINOR64) & MAXMAJ64;
4824 regs[rd] = (tupregs[0].dttk_value >> NBITSMINOR) & MAXMAJ;
4830 regs[rd] = tupregs[0].dttk_value & MAXMIN64;
4832 regs[rd] = tupregs[0].dttk_value & MAXMIN;
4859 regs[rd] = NULL;
4864 regs[rd] = NULL;
5022 regs[rd] = (uintptr_t)end;
5040 regs[rd] = NULL;
5046 regs[rd] = NULL;
5053 regs[rd] = NULL;
5066 regs[rd] = NULL;
5077 regs[rd] = (uintptr_t)d;
5098 regs[rd] = INT64_MIN;
5102 regs[rd] = dtrace_strtoll((char *)s, base, lim);
5125 regs[rd] = NULL;
5149 regs[rd] = (uintptr_t)end + 1;
5157 regs[rd] = (uint16_t)tupregs[0].dttk_value;
5159 regs[rd] = DT_BSWAP_16((uint16_t)tupregs[0].dttk_value);
5167 regs[rd] = (uint32_t)tupregs[0].dttk_value;
5169 regs[rd] = DT_BSWAP_32((uint32_t)tupregs[0].dttk_value);
5177 regs[rd] = (uint64_t)tupregs[0].dttk_value;
5179 regs[rd] = DT_BSWAP_64((uint64_t)tupregs[0].dttk_value);
5194 regs[rd] = NULL;
5200 regs[rd] = NULL;
5310 regs[rd] = (uintptr_t)dest;
5321 regs[rd] = NULL;
5334 regs[rd] = (uintptr_t)fp;
5347 regs[rd] = NULL;
5353 regs[rd] = NULL;
5460 regs[rd] = (uintptr_t)dest;
5486 regs[rd] = NULL;
5501 regs[rd] = NULL;
5545 regs[rd] = NULL;
5562 regs[rd] = NULL;
5672 regs[rd] = NULL;
5676 inetout: regs[rd] = (uintptr_t)end + 1;
5706 uint64_t regs[DIF_DIR_NREGS];
5722 regs[DIF_REG_R0] = 0; /* %r0 is fixed at zero */
5734 regs[rd] = regs[r1] | regs[r2];
5737 regs[rd] = regs[r1] ^ regs[r2];
5740 regs[rd] = regs[r1] & regs[r2];
5743 regs[rd] = regs[r1] << regs[r2];
5746 regs[rd] = regs[r1] >> regs[r2];
5749 regs[rd] = regs[r1] - regs[r2];
5752 regs[rd] = regs[r1] + regs[r2];
5755 regs[rd] = regs[r1] * regs[r2];
5758 if (regs[r2] == 0) {
5759 regs[rd] = 0;
5763 regs[rd] = (int64_t)regs[r1] /
5764 (int64_t)regs[r2];
5770 if (regs[r2] == 0) {
5771 regs[rd] = 0;
5775 regs[rd] = regs[r1] / regs[r2];
5781 if (regs[r2] == 0) {
5782 regs[rd] = 0;
5786 regs[rd] = (int64_t)regs[r1] %
5787 (int64_t)regs[r2];
5793 if (regs[r2] == 0) {
5794 regs[rd] = 0;
5798 regs[rd] = regs[r1] % regs[r2];
5804 regs[rd] = ~regs[r1];
5807 regs[rd] = regs[r1];
5810 cc_r = regs[r1] - regs[r2];
5814 cc_c = regs[r1] < regs[r2];
5818 cc_z = regs[r1] == 0;
5864 if (!dtrace_canload(regs[r1], 1, mstate, vstate))
5868 regs[rd] = (int8_t)dtrace_load8(regs[r1]);
5871 if (!dtrace_canload(regs[r1], 2, mstate, vstate))
5875 regs[rd] = (int16_t)dtrace_load16(regs[r1]);
5878 if (!dtrace_canload(regs[r1], 4, mstate, vstate))
5882 regs[rd] = (int32_t)dtrace_load32(regs[r1]);
5885 if (!dtrace_canload(regs[r1], 1, mstate, vstate))
5889 regs[rd] = dtrace_load8(regs[r1]);
5892 if (!dtrace_canload(regs[r1], 2, mstate, vstate))
5896 regs[rd] = dtrace_load16(regs[r1]);
5899 if (!dtrace_canload(regs[r1], 4, mstate, vstate))
5903 regs[rd] = dtrace_load32(regs[r1]);
5906 if (!dtrace_canload(regs[r1], 8, mstate, vstate))
5910 regs[rd] = dtrace_load64(regs[r1]);
5914 regs[rd] = (int8_t)
5915 dtrace_fuword8((void *)(uintptr_t)regs[r1]);
5920 regs[rd] = (int16_t)
5921 dtrace_fuword16((void *)(uintptr_t)regs[r1]);
5926 regs[rd] = (int32_t)
5927 dtrace_fuword32((void *)(uintptr_t)regs[r1]);
5932 regs[rd] =
5933 dtrace_fuword8((void *)(uintptr_t)regs[r1]);
5938 regs[rd] =
5939 dtrace_fuword16((void *)(uintptr_t)regs[r1]);
5944 regs[rd] =
5945 dtrace_fuword32((void *)(uintptr_t)regs[r1]);
5950 regs[rd] =
5951 dtrace_fuword64((void *)(uintptr_t)regs[r1]);
5955 rval = regs[rd];
5961 regs[rd] = inttab[DIF_INSTR_INTEGER(instr)];
5964 regs[rd] = (uint64_t)(uintptr_t)
5969 uintptr_t s1 = regs[r1];
5970 uintptr_t s2 = regs[r2];
5989 regs[rd] = dtrace_dif_variable(mstate, state,
5990 r1, regs[r2]);
6004 regs[rd] = svar->dtsv_data;
6016 regs[rd] = NULL;
6018 regs[rd] = a + sizeof (uint64_t);
6024 regs[rd] = dtrace_dif_variable(mstate, state, id, 0);
6045 if (regs[rd] == NULL) {
6053 (void *)(uintptr_t)regs[rd], &v->dtdv_type,
6057 dtrace_vcopy((void *)(uintptr_t)regs[rd],
6062 svar->dtsv_data = regs[rd];
6071 regs[rd] = 0;
6081 regs[rd] = 0;
6108 regs[rd] = NULL;
6110 regs[rd] = a + sizeof (uint64_t);
6118 regs[rd] = tmp[CPU->cpu_id];
6142 if (regs[rd] == NULL) {
6151 (void *)(uintptr_t)regs[rd], &v->dtdv_type,
6155 dtrace_vcopy((void *)(uintptr_t)regs[rd],
6162 tmp[CPU->cpu_id] = regs[rd];
6185 regs[rd] = 0;
6190 regs[rd] = (uint64_t)(uintptr_t)dvar->dtdv_data;
6192 regs[rd] = *((uint64_t *)dvar->dtdv_data);
6217 regs[rd] ? DTRACE_DYNVAR_ALLOC :
6233 (void *)(uintptr_t)regs[rd],
6237 dtrace_vcopy((void *)(uintptr_t)regs[rd],
6240 *((uint64_t *)dvar->dtdv_data) = regs[rd];
6247 regs[rd] = (int64_t)regs[r1] >> regs[r2];
6252 regs, tupregs, ttop, mstate, state);
6271 dtrace_strlen((char *)(uintptr_t)regs[rd],
6272 regs[r2] ? regs[r2] :
6275 if (regs[r2] > LONG_MAX) {
6280 tupregs[ttop].dttk_size = regs[r2];
6283 tupregs[ttop++].dttk_value = regs[rd];
6292 tupregs[ttop].dttk_value = regs[rd];
6334 regs[rd] = 0;
6339 regs[rd] = (uint64_t)(uintptr_t)dvar->dtdv_data;
6341 regs[rd] = *((uint64_t *)dvar->dtdv_data);
6373 regs[rd] ? DTRACE_DYNVAR_ALLOC :
6383 (void *)(uintptr_t)regs[rd], &v->dtdv_type,
6387 dtrace_vcopy((void *)(uintptr_t)regs[rd],
6390 *((uint64_t *)dvar->dtdv_data) = regs[rd];
6398 size_t size = ptr - mstate->dtms_scratch_ptr + regs[r1];
6405 if (size < regs[r1] ||
6408 regs[rd] = NULL;
6414 regs[rd] = ptr;
6419 if (!dtrace_canstore(regs[rd], regs[r2],
6422 *illval = regs[rd];
6426 if (!dtrace_canload(regs[r1], regs[r2], mstate, vstate))
6429 dtrace_bcopy((void *)(uintptr_t)regs[r1],
6430 (void *)(uintptr_t)regs[rd], (size_t)regs[r2]);
6434 if (!dtrace_canstore(regs[rd], 1, mstate, vstate)) {
6436 *illval = regs[rd];
6439 *((uint8_t *)(uintptr_t)regs[rd]) = (uint8_t)regs[r1];
6443 if (!dtrace_canstore(regs[rd], 2, mstate, vstate)) {
6445 *illval = regs[rd];
6448 if (regs[rd] & 1) {
6450 *illval = regs[rd];
6453 *((uint16_t *)(uintptr_t)regs[rd]) = (uint16_t)regs[r1];
6457 if (!dtrace_canstore(regs[rd], 4, mstate, vstate)) {
6459 *illval = regs[rd];
6462 if (regs[rd] & 3) {
6464 *illval = regs[rd];
6467 *((uint32_t *)(uintptr_t)regs[rd]) = (uint32_t)regs[r1];
6471 if (!dtrace_canstore(regs[rd], 8, mstate, vstate)) {
6473 *illval = regs[rd];
6476 if (regs[rd] & 7) {
6478 *illval = regs[rd];
6481 *((uint64_t *)(uintptr_t)regs[rd]) = regs[r1];