Lines Matching refs:save
85 int diagCall(struct savearea *save) {
106 switch(save->save_r3) { /* Select the routine */
114 adj.tb[1] = save->save_r4; /* Set low order */
142 save->save_r3 = pmap_find_phys(current_thread()->map->pmap, save->save_r4); /* Get read address */
153 src = (save->save_r4 << 32) | (0x00000000FFFFFFFFULL & save->save_r5); /* Merge into 64-bit */
154 snk = (save->save_r6 << 32) | (0x00000000FFFFFFFFULL & save->save_r7); /* Merge into 64-bit */
155 save->save_r3 = copypv(src, snk, save->save_r8, save->save_r9); /* Copy the physical page */
164 src = (save->save_r5 << 32) | (0x00000000FFFFFFFFULL & save->save_r6); /* Merge into 64-bit */
166 switch(save->save_r4) { /* Select the actual function */
169 save->save_r3 = (uint64_t)ml_phys_read_byte((unsigned int)src);
173 save->save_r3 = (uint64_t)ml_phys_read_byte_64(src);
177 save->save_r3 = (uint64_t)ml_phys_read((unsigned int)src);
181 save->save_r3 = (uint64_t)ml_phys_read_64(src);
185 ml_phys_write_byte((unsigned int)src, (unsigned int)save->save_r7);
189 ml_phys_write_byte_64(src, (unsigned int)save->save_r7);
193 ml_phys_write((unsigned int)src, (unsigned int)save->save_r7);
197 ml_phys_write_64(src, (unsigned int)save->save_r7);
209 cpu = save->save_r4; /* Get the requested CPU number */
212 save->save_r3 = KERN_FAILURE; /* Set failure */
223 save->save_r3 = KERN_SUCCESS; /* Set scuuess */
256 pmap_map_block(current_thread()->map->pmap, (addr64_t)save->save_r4, /* Map in the block */
257 save->save_r5, save->save_r6, save->save_r7, save->save_r8, 0);
269 (void)mapping_remove(current_thread()->map->pmap, save->save_r4); /* Remove mapping */
282 temp2 = (save->save_r4 & 1) << (31 - enaNotifyEMb); /* Move parms into flag format */
285 save->save_r3 = (temp >> (31 - enaNotifyEMb)) & 1; /* Return the original */
295 (void)copyout((char *)&vinfo, save->save_r4, sizeof(struct vc_info)); /* Copy out the video info */
305 (void)copyout((char *)&vinfo, save->save_r4, 0); /* Copy out nothing */
315 fwEmMck(save->save_r4, save->save_r5, save->save_r6, save->save_r7, save->save_r8, save->save_r9); /* Start injecting */
325 srrwrk = save->save_srr1 >> 63; /* Save the old 64-bit bit */
327 save->save_srr1 = (save->save_srr1 & 0x7FFFFFFFFFFFFFFFULL) | (save->save_r4 << 63); /* Set the requested mode */
328 save->save_r3 = srrwrk; /* Return the old value */
331 if((save->save_r4 & 1)) task_set_64BitAddr(current_thread()->task);
341 src = (save->save_r4 << 32) | (0x00000000FFFFFFFFULL & save->save_r5); /* Merge into 64-bit */
342 save->save_r3 = ml_probe_read_64(src, &temp); /* Try the address */
343 save->save_r4 = temp; /* Return the data */
352 setPmon(save->save_r4, save->save_r5); /* Go load up MMCR0 and MMCR1 */
363 (addr64_t)(((save->save_r5 & 0xFFFFFFFF) << 32) | (save->save_r5 & 0xFFFFFFFF)), save->save_r6, 0, 1, VM_PROT_READ|VM_PROT_WRITE);
373 ret = copyin(save->save_r4, (void *)&sarea, sizeof(scomcomm)); /* Get the data */
394 ret = copyout((void *)&sarea, save->save_r4, sizeof(scomcomm)); /* Get the data */
405 if(save->save_r4 == 0) { /* Are we unbinding? */
407 save->save_r3 = KERN_SUCCESS; /* Set success */
411 ret = ipc_right_lookup_write(current_space(), (mach_port_name_t)save->save_r4,
415 save->save_r3 = ret; /* Pass back return */
423 save->save_r3 = KERN_INVALID_ARGUMENT; /* This port is not a processor */
436 save->save_r3 = KERN_INVALID_ARGUMENT; /* This processor is offline */
443 save->save_r3 = KERN_SUCCESS; /* Set success */
452 ret = ipc_right_lookup_write(current_space(), (mach_port_name_t)save->save_r4,
456 save->save_r3 = 0; /* Pass back return */
464 save->save_r3 = 0; /* This port is not a processor */
471 save->save_r3 = (uint64_t)(uint32_t)PerProcTable[prssr->cpu_num].ppe_vaddr; /* Pass back ther per proc */
487 ret = kmem_alloc_contig(kernel_map, &addrs, (vm_size_t)save->save_r4,
491 save->save_r3 = (uint64_t)addrs; /* Pass back whatever */
500 save->save_r3 = pmap_find_phys(kernel_pmap, save->save_r4); /* Get read address */
508 kmem_free( kernel_map, (vm_address_t) save->save_r4, (vm_size_t)save->save_r5);
514 save->save_r3 = (uint32_t)warFlags; /* Get the old flags */
517 subc = (int32_t)save->save_r4; /* Extract the subcommand */
520 warFlags = (uint32_t)save->save_r5; /* Do them all */
524 warFlags = warFlags | (uint32_t)save->save_r5;
528 warFlags = warFlags & ~((uint32_t)save->save_r5);
549 save->save_r3 = oldwar; /* Pass back original */