Lines Matching refs:index
702 static void ar_context_link_page(struct ar_context *ctx, unsigned int index)
706 d = &ctx->descriptors[index];
715 ctx->last_buffer_index = index;
747 static inline unsigned int ar_next_buffer_index(unsigned int index)
749 return (index + 1) % AR_BUFFERS;
2984 int index, ret = -EBUSY;
2992 index = ffs(*mask) - 1;
2993 if (index >= 0) {
2994 *mask &= ~(1 << index);
2995 regs = OHCI1394_IsoXmitContextBase(index);
2996 ctx = &ohci->it_context_list[index];
3004 index = *channels & 1ULL << channel ? ffs(*mask) - 1 : -1;
3005 if (index >= 0) {
3007 *mask &= ~(1 << index);
3008 regs = OHCI1394_IsoRcvContextBase(index);
3009 ctx = &ohci->ir_context_list[index];
3016 index = !ohci->mc_allocated ? ffs(*mask) - 1 : -1;
3017 if (index >= 0) {
3019 *mask &= ~(1 << index);
3020 regs = OHCI1394_IsoRcvContextBase(index);
3021 ctx = &ohci->ir_context_list[index];
3026 index = -1;
3032 if (index < 0)
3067 *mask |= 1 << index;
3080 int index;
3088 index = ctx - ohci->it_context_list;
3094 reg_write(ohci, OHCI1394_IsoXmitIntEventClear, 1 << index);
3095 reg_write(ohci, OHCI1394_IsoXmitIntMaskSet, 1 << index);
3103 index = ctx - ohci->ir_context_list;
3110 reg_write(ohci, OHCI1394_IsoRecvIntEventClear, 1 << index);
3111 reg_write(ohci, OHCI1394_IsoRecvIntMaskSet, 1 << index);
3128 int index;
3132 index = ctx - ohci->it_context_list;
3133 reg_write(ohci, OHCI1394_IsoXmitIntMaskClear, 1 << index);
3138 index = ctx - ohci->ir_context_list;
3139 reg_write(ohci, OHCI1394_IsoRecvIntMaskClear, 1 << index);
3154 int index;
3164 index = ctx - ohci->it_context_list;
3165 ohci->it_context_mask |= 1 << index;
3169 index = ctx - ohci->ir_context_list;
3170 ohci->ir_context_mask |= 1 << index;
3175 index = ctx - ohci->ir_context_list;
3176 ohci->ir_context_mask |= 1 << index;
3759 version >> 16, version & 0xff, ohci->card.index,