• Home
  • Raw
  • Download

Lines Matching refs:ptr

175 				 int *ptr, uint32_t *saved, int print)  in atom_get_src_int()  argument
183 idx = U16(*ptr); in atom_get_src_int()
184 (*ptr) += 2; in atom_get_src_int()
218 idx = U8(*ptr); in atom_get_src_int()
219 (*ptr)++; in atom_get_src_int()
227 idx = U8(*ptr); in atom_get_src_int()
228 (*ptr)++; in atom_get_src_int()
264 idx = U16(*ptr); in atom_get_src_int()
265 (*ptr) += 2; in atom_get_src_int()
275 idx = U8(*ptr); in atom_get_src_int()
276 (*ptr)++; in atom_get_src_int()
289 val = U32(*ptr); in atom_get_src_int()
290 (*ptr) += 4; in atom_get_src_int()
297 val = U16(*ptr); in atom_get_src_int()
298 (*ptr) += 2; in atom_get_src_int()
306 val = U8(*ptr); in atom_get_src_int()
307 (*ptr)++; in atom_get_src_int()
314 idx = U8(*ptr); in atom_get_src_int()
315 (*ptr)++; in atom_get_src_int()
321 idx = U8(*ptr); in atom_get_src_int()
322 (*ptr)++; in atom_get_src_int()
362 static void atom_skip_src_int(atom_exec_context *ctx, uint8_t attr, int *ptr) in atom_skip_src_int() argument
368 (*ptr) += 2; in atom_skip_src_int()
375 (*ptr)++; in atom_skip_src_int()
380 (*ptr) += 4; in atom_skip_src_int()
385 (*ptr) += 2; in atom_skip_src_int()
391 (*ptr)++; in atom_skip_src_int()
398 static uint32_t atom_get_src(atom_exec_context *ctx, uint8_t attr, int *ptr) in atom_get_src() argument
400 return atom_get_src_int(ctx, attr, ptr, NULL, 1); in atom_get_src()
403 static uint32_t atom_get_src_direct(atom_exec_context *ctx, uint8_t align, int *ptr) in atom_get_src_direct() argument
409 val = U32(*ptr); in atom_get_src_direct()
410 (*ptr) += 4; in atom_get_src_direct()
415 val = U16(*ptr); in atom_get_src_direct()
416 (*ptr) += 2; in atom_get_src_direct()
422 val = U8(*ptr); in atom_get_src_direct()
423 (*ptr)++; in atom_get_src_direct()
430 int *ptr, uint32_t *saved, int print) in atom_get_dst() argument
435 ptr, saved, print); in atom_get_dst()
438 static void atom_skip_dst(atom_exec_context *ctx, int arg, uint8_t attr, int *ptr) in atom_skip_dst() argument
442 3] << 3, ptr); in atom_skip_dst()
446 int *ptr, uint32_t val, uint32_t saved) in atom_put_dst() argument
459 idx = U16(*ptr); in atom_put_dst()
460 (*ptr) += 2; in atom_put_dst()
495 idx = U8(*ptr); in atom_put_dst()
496 (*ptr)++; in atom_put_dst()
501 idx = U8(*ptr); in atom_put_dst()
502 (*ptr)++; in atom_put_dst()
534 idx = U8(*ptr); in atom_put_dst()
535 (*ptr)++; in atom_put_dst()
544 idx = U8(*ptr); in atom_put_dst()
545 (*ptr)++; in atom_put_dst()
550 idx = U8(*ptr); in atom_put_dst()
551 (*ptr)++; in atom_put_dst()
584 static void atom_op_add(atom_exec_context *ctx, int *ptr, int arg) in atom_op_add() argument
586 uint8_t attr = U8((*ptr)++); in atom_op_add()
588 int dptr = *ptr; in atom_op_add()
590 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); in atom_op_add()
592 src = atom_get_src(ctx, attr, ptr); in atom_op_add()
598 static void atom_op_and(atom_exec_context *ctx, int *ptr, int arg) in atom_op_and() argument
600 uint8_t attr = U8((*ptr)++); in atom_op_and()
602 int dptr = *ptr; in atom_op_and()
604 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); in atom_op_and()
606 src = atom_get_src(ctx, attr, ptr); in atom_op_and()
612 static void atom_op_beep(atom_exec_context *ctx, int *ptr, int arg) in atom_op_beep() argument
617 static void atom_op_calltable(atom_exec_context *ctx, int *ptr, int arg) in atom_op_calltable() argument
619 int idx = U8((*ptr)++); in atom_op_calltable()
633 static void atom_op_clear(atom_exec_context *ctx, int *ptr, int arg) in atom_op_clear() argument
635 uint8_t attr = U8((*ptr)++); in atom_op_clear()
637 int dptr = *ptr; in atom_op_clear()
640 atom_get_dst(ctx, arg, attr, ptr, &saved, 0); in atom_op_clear()
645 static void atom_op_compare(atom_exec_context *ctx, int *ptr, int arg) in atom_op_compare() argument
647 uint8_t attr = U8((*ptr)++); in atom_op_compare()
650 dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); in atom_op_compare()
652 src = atom_get_src(ctx, attr, ptr); in atom_op_compare()
659 static void atom_op_delay(atom_exec_context *ctx, int *ptr, int arg) in atom_op_delay() argument
661 unsigned count = U8((*ptr)++); in atom_op_delay()
671 static void atom_op_div(atom_exec_context *ctx, int *ptr, int arg) in atom_op_div() argument
673 uint8_t attr = U8((*ptr)++); in atom_op_div()
676 dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); in atom_op_div()
678 src = atom_get_src(ctx, attr, ptr); in atom_op_div()
688 static void atom_op_div32(atom_exec_context *ctx, int *ptr, int arg) in atom_op_div32() argument
691 uint8_t attr = U8((*ptr)++); in atom_op_div32()
694 dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); in atom_op_div32()
696 src = atom_get_src(ctx, attr, ptr); in atom_op_div32()
709 static void atom_op_eot(atom_exec_context *ctx, int *ptr, int arg) in atom_op_eot() argument
714 static void atom_op_jump(atom_exec_context *ctx, int *ptr, int arg) in atom_op_jump() argument
716 int execute = 0, target = U16(*ptr); in atom_op_jump()
719 (*ptr) += 2; in atom_op_jump()
763 *ptr = ctx->start + target; in atom_op_jump()
767 static void atom_op_mask(atom_exec_context *ctx, int *ptr, int arg) in atom_op_mask() argument
769 uint8_t attr = U8((*ptr)++); in atom_op_mask()
771 int dptr = *ptr; in atom_op_mask()
773 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); in atom_op_mask()
774 mask = atom_get_src_direct(ctx, ((attr >> 3) & 7), ptr); in atom_op_mask()
777 src = atom_get_src(ctx, attr, ptr); in atom_op_mask()
784 static void atom_op_move(atom_exec_context *ctx, int *ptr, int arg) in atom_op_move() argument
786 uint8_t attr = U8((*ptr)++); in atom_op_move()
788 int dptr = *ptr; in atom_op_move()
790 atom_get_dst(ctx, arg, attr, ptr, &saved, 0); in atom_op_move()
792 atom_skip_dst(ctx, arg, attr, ptr); in atom_op_move()
796 src = atom_get_src(ctx, attr, ptr); in atom_op_move()
801 static void atom_op_mul(atom_exec_context *ctx, int *ptr, int arg) in atom_op_mul() argument
803 uint8_t attr = U8((*ptr)++); in atom_op_mul()
806 dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); in atom_op_mul()
808 src = atom_get_src(ctx, attr, ptr); in atom_op_mul()
812 static void atom_op_mul32(atom_exec_context *ctx, int *ptr, int arg) in atom_op_mul32() argument
815 uint8_t attr = U8((*ptr)++); in atom_op_mul32()
818 dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); in atom_op_mul32()
820 src = atom_get_src(ctx, attr, ptr); in atom_op_mul32()
826 static void atom_op_nop(atom_exec_context *ctx, int *ptr, int arg) in atom_op_nop() argument
831 static void atom_op_or(atom_exec_context *ctx, int *ptr, int arg) in atom_op_or() argument
833 uint8_t attr = U8((*ptr)++); in atom_op_or()
835 int dptr = *ptr; in atom_op_or()
837 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); in atom_op_or()
839 src = atom_get_src(ctx, attr, ptr); in atom_op_or()
845 static void atom_op_postcard(atom_exec_context *ctx, int *ptr, int arg) in atom_op_postcard() argument
847 uint8_t val = U8((*ptr)++); in atom_op_postcard()
851 static void atom_op_repeat(atom_exec_context *ctx, int *ptr, int arg) in atom_op_repeat() argument
856 static void atom_op_restorereg(atom_exec_context *ctx, int *ptr, int arg) in atom_op_restorereg() argument
861 static void atom_op_savereg(atom_exec_context *ctx, int *ptr, int arg) in atom_op_savereg() argument
866 static void atom_op_setdatablock(atom_exec_context *ctx, int *ptr, int arg) in atom_op_setdatablock() argument
868 int idx = U8(*ptr); in atom_op_setdatablock()
869 (*ptr)++; in atom_op_setdatablock()
880 static void atom_op_setfbbase(atom_exec_context *ctx, int *ptr, int arg) in atom_op_setfbbase() argument
882 uint8_t attr = U8((*ptr)++); in atom_op_setfbbase()
884 ctx->ctx->fb_base = atom_get_src(ctx, attr, ptr); in atom_op_setfbbase()
887 static void atom_op_setport(atom_exec_context *ctx, int *ptr, int arg) in atom_op_setport() argument
892 port = U16(*ptr); in atom_op_setport()
901 (*ptr) += 2; in atom_op_setport()
905 (*ptr)++; in atom_op_setport()
909 (*ptr)++; in atom_op_setport()
914 static void atom_op_setregblock(atom_exec_context *ctx, int *ptr, int arg) in atom_op_setregblock() argument
916 ctx->ctx->reg_block = U16(*ptr); in atom_op_setregblock()
917 (*ptr) += 2; in atom_op_setregblock()
921 static void atom_op_shift_left(atom_exec_context *ctx, int *ptr, int arg) in atom_op_shift_left() argument
923 uint8_t attr = U8((*ptr)++), shift; in atom_op_shift_left()
925 int dptr = *ptr; in atom_op_shift_left()
929 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); in atom_op_shift_left()
930 shift = atom_get_src_direct(ctx, ATOM_SRC_BYTE0, ptr); in atom_op_shift_left()
937 static void atom_op_shift_right(atom_exec_context *ctx, int *ptr, int arg) in atom_op_shift_right() argument
939 uint8_t attr = U8((*ptr)++), shift; in atom_op_shift_right()
941 int dptr = *ptr; in atom_op_shift_right()
945 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); in atom_op_shift_right()
946 shift = atom_get_src_direct(ctx, ATOM_SRC_BYTE0, ptr); in atom_op_shift_right()
953 static void atom_op_shl(atom_exec_context *ctx, int *ptr, int arg) in atom_op_shl() argument
955 uint8_t attr = U8((*ptr)++), shift; in atom_op_shl()
957 int dptr = *ptr; in atom_op_shl()
960 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); in atom_op_shl()
963 shift = atom_get_src(ctx, attr, ptr); in atom_op_shl()
972 static void atom_op_shr(atom_exec_context *ctx, int *ptr, int arg) in atom_op_shr() argument
974 uint8_t attr = U8((*ptr)++), shift; in atom_op_shr()
976 int dptr = *ptr; in atom_op_shr()
979 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); in atom_op_shr()
982 shift = atom_get_src(ctx, attr, ptr); in atom_op_shr()
991 static void atom_op_sub(atom_exec_context *ctx, int *ptr, int arg) in atom_op_sub() argument
993 uint8_t attr = U8((*ptr)++); in atom_op_sub()
995 int dptr = *ptr; in atom_op_sub()
997 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); in atom_op_sub()
999 src = atom_get_src(ctx, attr, ptr); in atom_op_sub()
1005 static void atom_op_switch(atom_exec_context *ctx, int *ptr, int arg) in atom_op_switch() argument
1007 uint8_t attr = U8((*ptr)++); in atom_op_switch()
1010 src = atom_get_src(ctx, attr, ptr); in atom_op_switch()
1011 while (U16(*ptr) != ATOM_CASE_END) in atom_op_switch()
1012 if (U8(*ptr) == ATOM_CASE_MAGIC) { in atom_op_switch()
1013 (*ptr)++; in atom_op_switch()
1017 ptr); in atom_op_switch()
1018 target = U16(*ptr); in atom_op_switch()
1021 *ptr = ctx->start + target; in atom_op_switch()
1024 (*ptr) += 2; in atom_op_switch()
1029 (*ptr) += 2; in atom_op_switch()
1032 static void atom_op_test(atom_exec_context *ctx, int *ptr, int arg) in atom_op_test() argument
1034 uint8_t attr = U8((*ptr)++); in atom_op_test()
1037 dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); in atom_op_test()
1039 src = atom_get_src(ctx, attr, ptr); in atom_op_test()
1044 static void atom_op_xor(atom_exec_context *ctx, int *ptr, int arg) in atom_op_xor() argument
1046 uint8_t attr = U8((*ptr)++); in atom_op_xor()
1048 int dptr = *ptr; in atom_op_xor()
1050 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); in atom_op_xor()
1052 src = atom_get_src(ctx, attr, ptr); in atom_op_xor()
1058 static void atom_op_debug(atom_exec_context *ctx, int *ptr, int arg) in atom_op_debug() argument
1060 uint8_t val = U8((*ptr)++); in atom_op_debug()
1064 static void atom_op_processds(atom_exec_context *ctx, int *ptr, int arg) in atom_op_processds() argument
1066 uint16_t val = U16(*ptr); in atom_op_processds()
1067 (*ptr) += val + 2; in atom_op_processds()
1208 int len, ws, ps, ptr; in amdgpu_atom_execute_table_locked() local
1219 ptr = base + ATOM_CT_CODE_PTR; in amdgpu_atom_execute_table_locked()
1236 op = CU8(ptr++); in amdgpu_atom_execute_table_locked()
1238 SDEBUG("%s @ 0x%04X\n", atom_op_names[op], ptr - 1); in amdgpu_atom_execute_table_locked()
1240 SDEBUG("[%d] @ 0x%04X\n", op, ptr - 1); in amdgpu_atom_execute_table_locked()
1243 base, len, ws, ps, ptr - 1); in amdgpu_atom_execute_table_locked()
1249 opcode_table[op].func(&ectx, &ptr, in amdgpu_atom_execute_table_locked()