Lines Matching refs:index

2265 	int					i;			/* used as index in for loop */
2464 int i; /* used as index */
2547 int i = 0; /* used as index */
2600 * 3. Command Request consumer index is polled until it indicates that request
2602 * 4. Command Response consumer index is polled until it indicates that response
2636 bp->descr_block_virt->cmd_rsp[bp->cmd_rsp_reg.index.prod].long_0 = (u32) (PI_RCV_DESCR_M_SOP |
2638 bp->descr_block_virt->cmd_rsp[bp->cmd_rsp_reg.index.prod].long_1 = bp->cmd_rsp_phys;
2640 /* Bump (and wrap) the producer index and write out to register */
2642 bp->cmd_rsp_reg.index.prod += 1;
2643 bp->cmd_rsp_reg.index.prod &= PI_CMD_RSP_K_NUM_ENTRIES-1;
2648 bp->descr_block_virt->cmd_req[bp->cmd_req_reg.index.prod].long_0 = (u32) (PI_XMT_DESCR_M_SOP |
2650 bp->descr_block_virt->cmd_req[bp->cmd_req_reg.index.prod].long_1 = bp->cmd_req_phys;
2652 /* Bump (and wrap) the producer index and write out to register */
2654 bp->cmd_req_reg.index.prod += 1;
2655 bp->cmd_req_reg.index.prod &= PI_CMD_REQ_K_NUM_ENTRIES-1;
2659 * Here we wait for the command request consumer index to be equal
2665 if (bp->cmd_req_reg.index.prod == (u8)(bp->cons_block_virt->cmd_req))
2672 /* Bump (and wrap) the completion index and write out to register */
2674 bp->cmd_req_reg.index.comp += 1;
2675 bp->cmd_req_reg.index.comp &= PI_CMD_REQ_K_NUM_ENTRIES-1;
2679 * Here we wait for the command response consumer index to be equal
2685 if (bp->cmd_rsp_reg.index.prod == (u8)(bp->cons_block_virt->cmd_rsp))
2692 /* Bump (and wrap) the completion index and write out to register */
2694 bp->cmd_rsp_reg.index.comp += 1;
2695 bp->cmd_rsp_reg.index.comp &= PI_CMD_RSP_K_NUM_ENTRIES-1;
2989 * producer index.
3054 bp->rcv_xmt_reg.index.rcv_prod = bp->rcv_bufs_to_post;
3105 while (bp->rcv_xmt_reg.index.rcv_comp != p_type_2_cons->index.rcv_cons)
3111 entry = bp->rcv_xmt_reg.index.rcv_comp;
3222 * completion index because they are both advanced at the same
3226 bp->rcv_xmt_reg.index.rcv_prod += 1;
3227 bp->rcv_xmt_reg.index.rcv_comp += 1;
3297 u8 prod; /* local transmit producer index */
3366 prod = bp->rcv_xmt_reg.index.xmt_prod;
3373 * Note: The current xmt producer index will become the
3374 * current xmt completion index when we complete this
3377 * producer index.
3380 p_xmt_drv_descr = &(bp->xmt_drv_descr_blk[prod++]); /* also bump producer index */
3423 if (prod == bp->rcv_xmt_reg.index.xmt_comp)
3433 * Normally, we'd save the producer index in the p_xmt_drv_descr
3437 * entire packet, we can simply bump the completion index by
3443 * transmit producer index.
3450 bp->rcv_xmt_reg.index.xmt_prod = prod;
3494 u8 comp; /* local transmit completion index */
3500 while (bp->rcv_xmt_reg.index.xmt_comp != p_type_2_cons->index.xmt_cons)
3504 p_xmt_drv_descr = &(bp->xmt_drv_descr_blk[bp->rcv_xmt_reg.index.xmt_comp]);
3512 comp = bp->rcv_xmt_reg.index.xmt_comp;
3520 * Move to start of next packet by updating completion index
3525 * completion index by one. This code will need to be
3530 bp->rcv_xmt_reg.index.xmt_comp += 1;
3608 * update the consumer index to match the producer.
3626 u8 comp; /* local transmit completion index */
3630 while (bp->rcv_xmt_reg.index.xmt_comp != bp->rcv_xmt_reg.index.xmt_prod)
3634 p_xmt_drv_descr = &(bp->xmt_drv_descr_blk[bp->rcv_xmt_reg.index.xmt_comp]);
3637 comp = bp->rcv_xmt_reg.index.xmt_comp;
3649 * Move to start of next packet by updating completion index
3654 * completion index by one. This code will need to be
3659 bp->rcv_xmt_reg.index.xmt_comp += 1;
3662 /* Update the transmit consumer index in the consumer block */
3665 prod_cons |= (u32)(bp->rcv_xmt_reg.index.xmt_prod << PI_CONS_V_XMT_INDEX);