Lines Matching defs:hint
150 * first. fh->next_tag_alloc is only a hint; it is updated
189 fprintf(stderr, "alloc_block (%d): read hint (%d, %d)\n",
265 * Read the hint one more time, only update it if we'll be increasing
289 fprintf(stderr, "alloc_block (%d): wrote hint (%d, %d)\n",
405 fprintf(stderr, "alloc hint initialized to (%d, %d, %d)\n",
427 mutex_init(&hintlock, "tnf buffer hint lock", MUTEX_SPIN_DEFAULT,
696 uint_t *hint = (uint_t *)((uintptr_t)fh + fh->next_fw_alloc);
709 sprintf(tmp_buf, "tnfw_b_vw_alloc: (1)hint=%p\n", hint);
713 while ((uintptr_t)hint != (uintptr_t)zone_end) {
715 sprintf(tmp_buf, "tnfw_b_vw_alloc: (2)hint=%p,zone_end=%p\n",
716 hint, zone_end);
725 sprintf(tmp_buf, "tnfw_b_vw_alloc: about to deref hint\n");
728 sprintf(tmp_buf, "tnfw_b_vw_alloc: *hint=%ld\n", *hint);
731 if (*hint == 0) {
732 swapin = tnfw_b_atomic_swap(hint, TNFW_B_FW_INVALID);
736 *hint = swapin;
742 ++hint;
744 sprintf(tmp_buf, "tnfw_b_vw_alloc: (3)hint=%p\n", hint);
750 fh->next_fw_alloc = (uint_t) ((char *)hint - (char *)fh);
751 retval = (((uintptr_t)hint != (uintptr_t)zone_end) ?
752 (tnf_uint32_t *)hint : NULL);