Lines Matching refs:ifo
2478 struct if_order *ifo = (struct if_order *)(void *)data; in ifioctl_iforder() local
2480 if (ifo->ifo_count > (u_int32_t)if_index) { in ifioctl_iforder()
2485 ordered_indices_length = ifo->ifo_count * sizeof(u_int32_t); in ifioctl_iforder()
2487 if (ifo->ifo_ordered_indices == USER_ADDR_NULL) { in ifioctl_iforder()
2498 error = copyin(CAST_USER_ADDR_T(ifo->ifo_ordered_indices), in ifioctl_iforder()
2506 for (uint32_t i = 0; i < (ifo->ifo_count - 1) && !found_duplicate; i++) { in ifioctl_iforder()
2507 for (uint32_t j = i + 1; j < ifo->ifo_count && !found_duplicate; j++) { in ifioctl_iforder()
2519 error = ifnet_reset_order(ordered_indices, ifo->ifo_count); in ifioctl_iforder()
2529 struct if_order *ifo = (struct if_order *)(void *)data; in ifioctl_iforder() local
2532 if (ifo->ifo_ordered_indices == 0) { in ifioctl_iforder()
2533 ifo->ifo_count = if_ordered_count; in ifioctl_iforder()
2537 count = ifo->ifo_count; in ifioctl_iforder()
2553 ifo->ifo_count = count; in ifioctl_iforder()
2555 CAST_USER_ADDR_T(ifo->ifo_ordered_indices), in ifioctl_iforder()