Lines Matching refs:idx

179 static int	vdc_map_to_shared_dring(vdc_t *vdcp, int idx);
192 static int vdc_depopulate_descriptor(vdc_t *vdc, uint_t idx);
2254 int idx;
2313 for (idx = 0; idx < num_vdevs; idx++) {
2314 status = md_get_prop_str(mdp, listp[idx], "name", &node_name);
2323 status = md_get_prop_val(mdp, listp[idx],
2341 *vd_nodep = listp[idx];
2368 int idx;
2405 for (idx = 0; idx < num_vports; idx++) {
2408 vd_port = portp[idx];
2864 * idx - descriptor ring index
2870 vdc_map_to_shared_dring(vdc_t *vdcp, int idx)
2876 ldep = &(vdcp->local_dring[idx]);
3069 int idx; /* Index of DRing entry used */
3082 idx = VDC_DRING_FIRST_RESV;
3083 local_dep = &(vdcp->local_dring[idx]);
3086 idx = vdcp->dring_curr_idx;
3087 local_dep = &(vdcp->local_dring[idx]);
3101 next_idx = idx + 1;
3120 rv = vdc_map_to_shared_dring(vdcp, idx);
3137 vdcp->dring_curr_idx = idx;
3153 dmsg.start_idx = idx;
3154 dmsg.end_idx = idx;
3434 int rv, idx, retries;
3495 idx = dmsg.start_idx;
3496 if (idx >= vdc->dring_len) {
3498 vdc->instance, idx);
3501 ldep = &vdc->local_dring[idx];
3504 vdc->instance, idx, ldep->dep->hdr.dstate);
3514 rv = vdc_depopulate_descriptor(vdc, idx);
3521 if ((idx + 1) % vdc->dring_len == vdc->dring_curr_idx) {
3534 DMSG(vdc, 0, "End idx=%d\n", idx);
3548 * idx - Index of the Descriptor Ring entry being modified
3554 vdc_depopulate_descriptor(vdc_t *vdc, uint_t idx)
3562 ASSERT(idx < vdc->dring_len);
3563 ldep = &vdc->local_dring[idx];
3568 DMSG(vdc, 2, ": idx = %d\n", idx);
3575 VDC_MARK_DRING_ENTRY_FREE(vdc, idx);
3609 DMSG(vdc, 0, "?[%d] unbind mhdl 0x%lx @ idx %d failed (%d)",
3610 vdc->instance, ldep->desc_mhdl, idx, rv);
3634 * idx - Index of the Descriptor Ring entry being modified
3971 DMSG(vdcp, 1, "resubmitting entry idx=%x\n", b_idx);
4062 DMSG(vdcp, 1, "cancelling entry idx=%x\n", b_idx);
4952 int idx;
4965 idx = start = dring_msg->start_idx;
5028 ldep = &vdcp->local_dring[idx];
5066 (void) vdc_eio_queue(vdcp, idx);
5079 (void) vdc_depopulate_descriptor(vdcp, idx);
7290 int idx = 0; /* index into dk_ioctl[] */
7318 for (idx = 0; idx < nioctls; idx++) {
7319 if (cmd == dk_ioctl[idx].cmd)
7323 if (idx >= nioctls) {
7329 iop = &(dk_ioctl[idx]);