Lines Matching refs:ppa

165     char *interf_name, uint_t *ppa);
298 * ppa arena is created after these many
2906 uint_t ppa;
2912 * get ppa ptr
2925 ppa = stoi(&ppa_ptr);
2932 * terminated it contains ppa in addition to the interface
2950 ill = avl_find(&ifp->illif_avl_by_ppa, (void *) &ppa, NULL);
2969 uint_t ppa;
2974 ppa = *((uint_t *)ppa_ptr);
2977 * We want the ill with the lowest ppa to be on the
2980 if (ill_ppa < ppa)
2982 if (ill_ppa > ppa)
3025 * remove from AVL tree and free ppa number
3088 * allocate a ppa, if the number of plumbed interfaces of this type are
3089 * less than ill_no_arena do a linear search to find a unused ppa.
3091 * Note: ppa value of zero cannot be allocated from vmem_arena as it
3100 int ppa;
3114 ppa = (int)(uintptr_t)vmem_xalloc(ifp->illif_ppa_arena,
3124 if (ppa == 0) {
3125 ip1dbg(("ill_alloc_ppa: ppa allocation"
3136 ppa = (int)(uintptr_t)vmem_alloc(ifp->illif_ppa_arena,
3138 if (ppa == 0)
3140 ill->ill_ppa = --ppa;
3142 ppa = (int)(uintptr_t)vmem_xalloc(ifp->illif_ppa_arena,
3152 * the requested ppa was in use.
3154 if (ppa == 0)
3162 * been plumbed to create one. Do a linear search to get a unused ppa.
3262 * When the ppa is choosen by the system, check that there is
3263 * enough space to insert ppa. if a specific ppa was passed in this
3265 * the right ppa in it.
3274 * convert ppa to string to calculate the amount of space
3279 /* Do we have enough space to insert ppa ? */
3282 /* Free ppa and interface type struct */
15619 uint_t ppa = *(uint_t *)mp->b_cont->b_cont->b_rptr;
15634 (void) sprintf(interf_name, "%s%d", cp, ppa);
15641 return (ipif_set_values(q, mp, interf_name, &ppa));
16867 * Common routine for ppa and ifname setting. Should be called exclusive.
16872 * NOTE : If ppa is UNIT_MAX, we assign the next valid ppa and return
16873 * the new name and new ppa in lifr_name and lifr_ppa respectively.
16902 /* The ppa is sent down by ifconfig or is chosen */
16908 * make sure ppa passed in is same as ppa in the name.
16909 * This check is not made when ppa == UINT_MAX in that case ppa
16910 * in the name could be anything. System will choose a ppa and
16911 * update new_ppa_ptr and inter_name to contain the choosen ppa.
16917 * ifconfig passed in 0 for the ppa for DLPI 1 style devices
16918 * (they don't have an externally visible ppa). We assign one
16928 * terminate string before ppa
17056 * If a ppa was choosen by the system (ppa passed in was UINT_MAX)
17057 * the buffer pointed to by new_ppa_ptr would not contain the right ppa
17058 * so copy full name and update the ppa ptr.
17059 * When ppa passed in != UINT_MAX all values are correct just undo