Lines Matching refs:curr

660 	i_nvp_t *curr = NVPAIR2I_NVP(nvp);  in nvp_buf_link()  local
664 priv->nvp_list = priv->nvp_last = curr; in nvp_buf_link()
666 curr->nvi_prev = priv->nvp_last; in nvp_buf_link()
667 priv->nvp_last->nvi_next = curr; in nvp_buf_link()
668 priv->nvp_last = curr; in nvp_buf_link()
679 i_nvp_t *curr = NVPAIR2I_NVP(nvp); in nvp_buf_unlink() local
684 if (priv->nvp_curr == curr) in nvp_buf_unlink()
685 priv->nvp_curr = curr->nvi_next; in nvp_buf_unlink()
687 if (curr == priv->nvp_list) in nvp_buf_unlink()
688 priv->nvp_list = curr->nvi_next; in nvp_buf_unlink()
690 curr->nvi_prev->nvi_next = curr->nvi_next; in nvp_buf_unlink()
692 if (curr == priv->nvp_last) in nvp_buf_unlink()
693 priv->nvp_last = curr->nvi_prev; in nvp_buf_unlink()
695 curr->nvi_next->nvi_prev = curr->nvi_prev; in nvp_buf_unlink()
824 const i_nvp_t *curr; in nvlist_copy_pairs() local
829 for (curr = priv->nvp_list; curr != NULL; curr = curr->nvi_next) { in nvlist_copy_pairs()
830 const nvpair_t *nvp = &curr->nvi_nvp; in nvlist_copy_pairs()
873 i_nvp_t *curr; in nvlist_free() local
882 curr = priv->nvp_list; in nvlist_free()
883 while (curr != NULL) { in nvlist_free()
884 nvpair_t *nvp = &curr->nvi_nvp; in nvlist_free()
885 curr = curr->nvi_next; in nvlist_free()
904 const i_nvp_t *curr; in nvlist_contains_nvp() local
909 for (curr = priv->nvp_list; curr != NULL; curr = curr->nvi_next) in nvlist_contains_nvp()
910 if (&curr->nvi_nvp == nvp) in nvlist_contains_nvp()
1460 i_nvp_t *curr; in nvlist_next_nvpair() local
1466 curr = NVPAIR2I_NVP(nvp); in nvlist_next_nvpair()
1474 curr = priv->nvp_list; in nvlist_next_nvpair()
1475 else if (priv->nvp_curr == curr || nvlist_contains_nvp(nvl, nvp)) in nvlist_next_nvpair()
1476 curr = curr->nvi_next; in nvlist_next_nvpair()
1478 curr = NULL; in nvlist_next_nvpair()
1480 priv->nvp_curr = curr; in nvlist_next_nvpair()
1482 return (curr != NULL ? &curr->nvi_nvp : NULL); in nvlist_next_nvpair()
1489 i_nvp_t *curr; in nvlist_prev_nvpair() local
1495 curr = NVPAIR2I_NVP(nvp); in nvlist_prev_nvpair()
1498 curr = priv->nvp_last; in nvlist_prev_nvpair()
1499 else if (priv->nvp_curr == curr || nvlist_contains_nvp(nvl, nvp)) in nvlist_prev_nvpair()
1500 curr = curr->nvi_prev; in nvlist_prev_nvpair()
1502 curr = NULL; in nvlist_prev_nvpair()
1504 priv->nvp_curr = curr; in nvlist_prev_nvpair()
1506 return (curr != NULL ? &curr->nvi_nvp : NULL); in nvlist_prev_nvpair()
2111 i_nvp_t *curr; in nvlist_exists() local
2117 for (curr = priv->nvp_list; curr != NULL; curr = curr->nvi_next) { in nvlist_exists()
2118 nvp = &curr->nvi_nvp; in nvlist_exists()
2373 i_nvp_t *curr; in nvs_encode_pairs() local
2378 for (curr = priv->nvp_list; curr != NULL; curr = curr->nvi_next) in nvs_encode_pairs()
2379 if (nvs->nvs_ops->nvs_nvpair(nvs, &curr->nvi_nvp, NULL) != 0) in nvs_encode_pairs()
2433 i_nvp_t *curr; in nvs_getsize_pairs() local
2440 for (curr = priv->nvp_list; curr != NULL; curr = curr->nvi_next) { in nvs_getsize_pairs()
2441 if (nvs->nvs_ops->nvs_nvp_size(nvs, &curr->nvi_nvp, &size) != 0) in nvs_getsize_pairs()