Lines Matching defs:kdsp_actual

566 	struct	kd_storage *kdsp_actual;
588 kdsp_actual = POINTER_FROM_KDS_PTR(kdsp);
589 kdbp->kd_list_head = kdsp_actual->kds_next;
591 kdsp_actual->kds_next = kd_ctrl_page.kds_free_list;
605 struct kd_storage *kdsp_actual, *kdsp_next_actual;
618 kdsp_actual = POINTER_FROM_KDS_PTR(kdbp->kd_list_tail);
620 if (kdsp_actual->kds_bufindx < EVENTS_PER_STORAGE_UNIT)
625 kdsp_actual = POINTER_FROM_KDS_PTR(kdsp);
626 kd_ctrl_page.kds_free_list = kdsp_actual->kds_next;
648 kdsp_actual = POINTER_FROM_KDS_PTR(kdbp_try->kd_list_head);
650 if (kdsp_actual->kds_bufcnt < EVENTS_PER_STORAGE_UNIT) {
659 ts = kdbg_get_timestamp(&kdsp_actual->kds_records[0]);
678 kdsp_actual = POINTER_FROM_KDS_PTR(kdsp);
679 kdbp_vict->kd_list_head = kdsp_actual->kds_next;
689 kdsp_actual->kds_timestamp = mach_absolute_time();
690 kdsp_actual->kds_next.raw = KDS_PTR_NULL;
691 kdsp_actual->kds_bufcnt = 0;
692 kdsp_actual->kds_readlast = 0;
694 kdsp_actual->kds_lostevents = kdbp->kd_lostevents;
696 kdsp_actual->kds_bufindx = 0;
738 struct kd_storage *kdsp_actual;
843 kdsp_actual = POINTER_FROM_KDS_PTR(kds_raw);
844 bindx = kdsp_actual->kds_bufindx;
846 kdsp_actual = NULL;
848 if (kdsp_actual == NULL || bindx >= EVENTS_PER_STORAGE_UNIT) {
860 if ( !OSCompareAndSwap(bindx, bindx + 1, &kdsp_actual->kds_bufindx))
863 kd = &kdsp_actual->kds_records[bindx];
874 OSAddAtomic(1, &kdsp_actual->kds_bufcnt);
2160 struct kd_storage *kdsp_actual;
2213 kdsp_actual = POINTER_FROM_KDS_PTR(kdsp);
2216 rcursor = kdsp_actual->kds_readlast;
2218 if (rcursor == kdsp_actual->kds_bufindx)
2221 t = kdbg_get_timestamp(&kdsp_actual->kds_records[rcursor]);
2223 if (t < kdsp_actual->kds_timestamp) {
2254 kdsp_actual = POINTER_FROM_KDS_PTR(kdsp);
2256 if (kdsp_actual->kds_lostevents == TRUE) {
2257 kdbg_set_timestamp_and_cpu(&lostevent, kdsp_actual->kds_records[kdsp_actual->kds_readlast].timestamp, min_cpu);
2260 kdsp_actual->kds_lostevents = FALSE;
2267 *tempbuf = kdsp_actual->kds_records[kdsp_actual->kds_readlast++];
2269 if (kdsp_actual->kds_readlast == EVENTS_PER_STORAGE_UNIT)