Lines Matching defs:index

296 dmfe_ring_get32(dma_area_t *dma_p, uint_t index, uint_t offset)
301 return (ddi_get32(dma_p->acc_hdl, addr + index*DESC_SIZE + offset));
305 dmfe_ring_put32(dma_area_t *dma_p, uint_t index, uint_t offset, uint32_t value)
310 ddi_put32(dma_p->acc_hdl, addr + index*DESC_SIZE + offset, value);
317 dmfe_setup_get32(dma_area_t *dma_p, uint_t index)
322 return (ddi_get32(dma_p->acc_hdl, addr + index));
326 dmfe_setup_put32(dma_area_t *dma_p, uint_t index, uint32_t value)
331 ddi_put32(dma_p->acc_hdl, addr + index, value);
619 int index;
639 index = dmfep->rx.next_free;
640 desc0 = dmfe_ring_get32(descp, index, DESC0);
697 index * DMFE_BUF_SIZE, DMFE_BUF_SIZE,
699 rxb = &dmfep->rx_buff.mem_va[index*DMFE_BUF_SIZE];
760 dmfe_ring_put32(descp, index, DESC0, RX_OWN);
761 index = NEXT(index, dmfep->rx.n_desc);
762 desc0 = dmfe_ring_get32(descp, index, DESC0);
768 dmfep->rx.next_free = index;
853 dmfe_update_tx_stats(dmfe_t *dmfep, int index, uint32_t desc0, uint32_t desc1)
897 int bit = index % NBBY;
898 int byt = index / NBBY;
972 * Update count & index; we're all done if the ring is
1011 uint32_t index;
1041 * the next-free index and decrementing the free count.
1045 * the next-free index must not match the next-busy index
1048 * entry (and matching buffer) indicated by <index>, so we
1051 index = dmfep->tx.next_free;
1052 dmfep->tx.next_free = NEXT(index, dmfep->tx.n_desc);
1063 ASSERT((dmfe_ring_get32(descp, index, DESC0) & TX_OWN) == 0);
1091 txb = &dmfep->tx_buff.mem_va[index*DMFE_BUF_SIZE];
1111 txb = &dmfep->tx_buff.mem_va[index*DMFE_BUF_SIZE];
1114 dmfep->tx_bcast[index / NBBY] |=
1115 (1 << (index % NBBY));
1117 dmfep->tx_mcast[index / NBBY] |=
1118 (1 << (index % NBBY));
1132 paddr = dmfep->tx_buff.mem_dvma + index*DMFE_BUF_SIZE;
1135 index * DMFE_BUF_SIZE, DMFE_BUF_SIZE, DDI_DMA_SYNC_FORDEV);
1142 if ((index & dmfe_tx_int_factor) == 0)
1145 dmfe_ring_put32(descp, index, BUFFER1, paddr);
1146 dmfe_ring_put32(descp, index, DESC1, desc1);
1147 dmfe_ring_put32(descp, index, DESC0, TX_OWN);
1200 * Find the index of the relevant bit in the setup packet.
1208 uint32_t index;
1228 for (index = 0, bit = 23, shift = 8; shift >= 0; ++bit, --shift)
1229 index |= (((crc >> bit) & 1) << shift);
1231 return (index);
1239 dmfe_update_hash(dmfe_t *dmfep, uint32_t index, boolean_t val)
1247 tmp = dmfe_setup_get32(descp, index/16);
1249 tmp |= 1 << (index%16);
1251 tmp &= ~(1 << (index%16));
1252 dmfe_setup_put32(descp, index/16, tmp);
1265 uint32_t index;
1269 index = dmfe_hash_index(mca);
1270 refp = &dmfep->mcast_refs[index];
1274 dmfe_update_hash(dmfep, index, val);
1320 int index;
1377 for (index = 0; index < ETHERADDRL; index += 2)
1378 dmfe_setup_put32(&dmfep->tx_desc, SETUPBUF_PHYS+index/2,
1379 (macaddr[index+1] << 8) | macaddr[index]);
2473 int index;
2505 kstat_named_init(&knp[ksip->index], ksip->name,