Lines Matching refs:p

621 static void bl_setup_gt64120_jump_kernel(void **p, uint64_t run_addr,  in bl_setup_gt64120_jump_kernel()  argument
638 bl_gen_write_u32(p, /* GT_ISD */ in bl_setup_gt64120_jump_kernel()
643 bl_gen_write_u32(p, /* GT_PCI0IOLD */ in bl_setup_gt64120_jump_kernel()
646 bl_gen_write_u32(p, /* GT_PCI0IOHD */ in bl_setup_gt64120_jump_kernel()
651 bl_gen_write_u32(p, /* GT_PCI0M0LD */ in bl_setup_gt64120_jump_kernel()
654 bl_gen_write_u32(p, /* GT_PCI0M0HD */ in bl_setup_gt64120_jump_kernel()
657 bl_gen_write_u32(p, /* GT_PCI0M1LD */ in bl_setup_gt64120_jump_kernel()
660 bl_gen_write_u32(p, /* GT_PCI0M1HD */ in bl_setup_gt64120_jump_kernel()
671 bl_gen_write_u32(p, /* GT_PCI0_CFGADDR */ in bl_setup_gt64120_jump_kernel()
676 bl_gen_write_u32(p, /* GT_PCI0_CFGDATA */ in bl_setup_gt64120_jump_kernel()
680 bl_gen_jump_kernel(p, in bl_setup_gt64120_jump_kernel()
696 uint16_t *p; in write_bootloader_nanomips() local
699 p = (uint16_t *)base; in write_bootloader_nanomips()
701 stw_p(p++, 0x2800); stw_p(p++, 0x001c); in write_bootloader_nanomips()
703 stw_p(p++, 0x8000); stw_p(p++, 0xc000); in write_bootloader_nanomips()
705 stw_p(p++, 0x8000); stw_p(p++, 0xc000); in write_bootloader_nanomips()
707 stw_p(p++, 0x8000); stw_p(p++, 0xc000); in write_bootloader_nanomips()
709 stw_p(p++, 0x8000); stw_p(p++, 0xc000); in write_bootloader_nanomips()
711 stw_p(p++, 0x8000); stw_p(p++, 0xc000); in write_bootloader_nanomips()
713 stw_p(p++, 0x8000); stw_p(p++, 0xc000); in write_bootloader_nanomips()
715 stw_p(p++, 0x8000); stw_p(p++, 0xc000); in write_bootloader_nanomips()
720 bl_setup_gt64120_jump_kernel((void **)&p, run_addr, kernel_entry); in write_bootloader_nanomips()
748 uint32_t *p; in write_bootloader() local
751 p = (uint32_t *)base; in write_bootloader()
753 stl_p(p++, 0x08000000 | /* j 0x1fc00580 */ in write_bootloader()
755 stl_p(p++, 0x00000000); /* nop */ in write_bootloader()
774 p = (uint32_t *) (base + 0x580); in write_bootloader()
785 bl_setup_gt64120_jump_kernel((void **)&p, run_addr, kernel_entry); in write_bootloader()
788 p = (uint32_t *) (base + 0x800); in write_bootloader()
789 stl_p(p++, 0x03e00009); /* jalr ra */ in write_bootloader()
790 stl_p(p++, 0x24020000); /* li v0,0 */ in write_bootloader()
792 stl_p(p++, 0x03e06821); /* move t5,ra */ in write_bootloader()
793 stl_p(p++, 0x00805821); /* move t3,a0 */ in write_bootloader()
794 stl_p(p++, 0x00a05021); /* move t2,a1 */ in write_bootloader()
795 stl_p(p++, 0x91440000); /* lbu a0,0(t2) */ in write_bootloader()
796 stl_p(p++, 0x254a0001); /* addiu t2,t2,1 */ in write_bootloader()
797 stl_p(p++, 0x10800005); /* beqz a0,834 */ in write_bootloader()
798 stl_p(p++, 0x00000000); /* nop */ in write_bootloader()
799 stl_p(p++, 0x0ff0021c); /* jal 870 */ in write_bootloader()
800 stl_p(p++, 0x00000000); /* nop */ in write_bootloader()
801 stl_p(p++, 0x1000fff9); /* b 814 */ in write_bootloader()
802 stl_p(p++, 0x00000000); /* nop */ in write_bootloader()
803 stl_p(p++, 0x01a00009); /* jalr t5 */ in write_bootloader()
804 stl_p(p++, 0x01602021); /* move a0,t3 */ in write_bootloader()
806 stl_p(p++, 0x03e06821); /* move t5,ra */ in write_bootloader()
807 stl_p(p++, 0x00805821); /* move t3,a0 */ in write_bootloader()
808 stl_p(p++, 0x00a05021); /* move t2,a1 */ in write_bootloader()
809 stl_p(p++, 0x00c06021); /* move t4,a2 */ in write_bootloader()
810 stl_p(p++, 0x91440000); /* lbu a0,0(t2) */ in write_bootloader()
811 stl_p(p++, 0x0ff0021c); /* jal 870 */ in write_bootloader()
812 stl_p(p++, 0x00000000); /* nop */ in write_bootloader()
813 stl_p(p++, 0x254a0001); /* addiu t2,t2,1 */ in write_bootloader()
814 stl_p(p++, 0x258cffff); /* addiu t4,t4,-1 */ in write_bootloader()
815 stl_p(p++, 0x1580fffa); /* bnez t4,84c */ in write_bootloader()
816 stl_p(p++, 0x00000000); /* nop */ in write_bootloader()
817 stl_p(p++, 0x01a00009); /* jalr t5 */ in write_bootloader()
818 stl_p(p++, 0x01602021); /* move a0,t3 */ in write_bootloader()
820 stl_p(p++, 0x3c08b800); /* lui t0,0xb400 */ in write_bootloader()
821 stl_p(p++, 0x350803f8); /* ori t0,t0,0x3f8 */ in write_bootloader()
822 stl_p(p++, 0x91090005); /* lbu t1,5(t0) */ in write_bootloader()
823 stl_p(p++, 0x00000000); /* nop */ in write_bootloader()
824 stl_p(p++, 0x31290040); /* andi t1,t1,0x40 */ in write_bootloader()
825 stl_p(p++, 0x1120fffc); /* beqz t1,878 <outch+0x8> */ in write_bootloader()
826 stl_p(p++, 0x00000000); /* nop */ in write_bootloader()
827 stl_p(p++, 0x03e00009); /* jalr ra */ in write_bootloader()
828 stl_p(p++, 0xa1040000); /* sb a0,0(t0) */ in write_bootloader()