Lines Matching refs:counter
555 unsigned counter;
573 for (counter = 0; counter < ISL38XX_CB_QCOUNT; counter++) {
574 cb->driver_curr_frag[counter] = cpu_to_le32(0);
575 cb->device_curr_frag[counter] = cpu_to_le32(0);
579 for (counter = 0; counter < ISL38XX_CB_MGMT_QSIZE; counter++) {
580 isl38xx_fragment *frag = &cb->rx_data_mgmt[counter];
583 frag->address = cpu_to_le32(priv->mgmt_rx[counter].pci_addr);
586 for (counter = 0; counter < ISL38XX_CB_RX_QSIZE; counter++) {
587 cb->rx_data_low[counter].address =
588 cpu_to_le32((u32) priv->pci_map_rx_address[counter]);
627 int counter;
672 for (counter = 0; counter < ISL38XX_CB_QCOUNT; counter++) {
673 priv->control_block->driver_curr_frag[counter] = cpu_to_le32(0);
674 priv->control_block->device_curr_frag[counter] = cpu_to_le32(0);
689 for (counter = 0; counter < ISL38XX_CB_RX_QSIZE; counter++) {
703 priv->data_low_rx[counter] = skb;
706 priv->pci_map_rx_address[counter] =
710 if (!priv->pci_map_rx_address[counter]) {
732 int counter;
751 for (counter = 0; counter < ISL38XX_CB_MGMT_QSIZE; counter++) {
752 struct islpci_membuf *buf = &priv->mgmt_rx[counter];
763 for (counter = 0; counter < ISL38XX_CB_RX_QSIZE; counter++) {
764 if (priv->pci_map_rx_address[counter])
766 priv->pci_map_rx_address[counter],
769 priv->pci_map_rx_address[counter] = 0;
771 if (priv->data_low_rx[counter])
772 dev_kfree_skb(priv->data_low_rx[counter]);
773 priv->data_low_rx[counter] = NULL;
859 /* init the queue read locks, process wait counter */