Lines Matching full:dsr

252  * Reserve & get pointers to the DSR/CBRs reserved for the current cpu.
255 static int gru_get_cpu_resources(int dsr_bytes, void **cb, void **dsr) in gru_get_cpu_resources() argument
264 *dsr = bs->kernel_dsr + lcpu * GRU_NUM_KERNEL_DSR_BYTES; in gru_get_cpu_resources()
269 * Free the current cpus reserved DSR/CBR resources.
271 static void gru_free_cpu_resources(void *cb, void *dsr) in gru_free_cpu_resources() argument
283 * dsr_bytes - number of DSR bytes needed
355 * dsr - pointer to first DSR
357 void gru_lock_async_resource(unsigned long han, void **cb, void **dsr) in gru_lock_async_resource() argument
367 if (dsr) in gru_lock_async_resource()
368 *dsr = bs->kernel_dsr + ncpus * GRU_NUM_KERNEL_DSR_BYTES; in gru_lock_async_resource()
799 void *dsr; in gru_send_message_gpa() local
806 if (gru_get_cpu_resources(bytes, &cb, &dsr)) in gru_send_message_gpa()
808 memcpy(dsr, mesg, bytes); in gru_send_message_gpa()
809 mhdr = dsr; in gru_send_message_gpa()
822 ret = send_message_failure(cb, mqd, dsr, clines); in gru_send_message_gpa()
824 gru_free_cpu_resources(cb, dsr); in gru_send_message_gpa()
906 void *dsr; in gru_read_gpa() local
910 if (gru_get_cpu_resources(GRU_NUM_KERNEL_DSR_BYTES, &cb, &dsr)) in gru_read_gpa()
913 gru_vload_phys(cb, gpa, gru_get_tri(dsr), iaa, IMA); in gru_read_gpa()
916 *value = *(unsigned long *)dsr; in gru_read_gpa()
917 gru_free_cpu_resources(cb, dsr); in gru_read_gpa()
930 void *dsr; in gru_copy_gpa() local
934 if (gru_get_cpu_resources(GRU_NUM_KERNEL_DSR_BYTES, &cb, &dsr)) in gru_copy_gpa()
936 gru_bcopy(cb, src_gpa, dest_gpa, gru_get_tri(dsr), in gru_copy_gpa()
939 gru_free_cpu_resources(cb, dsr); in gru_copy_gpa()
952 void *dsr; in quicktest0() local
956 if (gru_get_cpu_resources(GRU_CACHE_LINE_BYTES, &cb, &dsr)) in quicktest0()
958 p = dsr; in quicktest0()
962 gru_vload(cb, uv_gpa(&word0), gru_get_tri(dsr), XTYPE_DW, 1, 1, IMA); in quicktest0()
972 gru_vstore(cb, uv_gpa(&word1), gru_get_tri(dsr), XTYPE_DW, 1, 1, IMA); in quicktest0()
987 gru_free_cpu_resources(cb, dsr); in quicktest0()