Lines Matching refs:entry

559     struct host_cmdq_entry* entry = &cmdq->host_entry[ cmdq->head ];
574 fore200e->bus->write(prom_dma, &entry->cp_entry->cmd.prom_block.prom_haddr);
576 *entry->status = STATUS_PENDING;
578 fore200e->bus->write(*(u32*)&opcode, (u32 __iomem *)&entry->cp_entry->cmd.prom_block.opcode);
580 ok = fore200e_poll(fore200e, entry->status, STATUS_COMPLETE, 400);
582 *entry->status = STATUS_FREE;
773 struct host_txq_entry* entry;
782 entry = &txq->host_entry[ txq->tail ];
784 if ((*entry->status & STATUS_COMPLETE) == 0) {
788 DPRINTK(3, "TX COMPLETED: entry = %p [tail = %d], vc_map = %p, skb = %p\n",
789 entry, txq->tail, entry->vc_map, entry->skb);
792 kfree(entry->data);
795 dma_unmap_single(fore200e->dev, entry->tpd->tsd[ 0 ].buffer, entry->tpd->tsd[ 0 ].length,
798 vc_map = entry->vc_map;
800 /* vcc closed since the time the entry was submitted for tx? */
807 dev_kfree_skb_any(entry->skb);
813 if (vc_map->incarn != entry->incarn) {
821 we thus bind the tx entry to the current incarnation of the vcc
822 when the entry is submitted for tx. When the tx later completes,
823 if the incarnation number of the tx entry does not match the one
830 dev_kfree_skb_any(entry->skb);
838 vcc->pop(vcc, entry->skb);
841 dev_kfree_skb_any(entry->skb);
845 if (*entry->status & STATUS_ERROR)
852 *entry->status = STATUS_FREE;
909 struct host_bsq_entry* entry;
925 entry = &bsq->host_entry[ bsq->head ];
944 entry->rbd_block->rbd[ i ].buffer_haddr = buffer->data.dma_addr;
945 entry->rbd_block->rbd[ i ].handle = FORE200E_BUF2HDL(buffer);
953 *entry->status = STATUS_PENDING;
954 fore200e->bus->write(entry->rbd_block_dma, &entry->cp_entry->rbd_block_haddr);
1090 struct host_rxq_entry* entry;
1096 entry = &rxq->host_entry[ rxq->head ];
1099 if ((*entry->status & STATUS_COMPLETE) == 0)
1102 vc_map = FORE200E_VC_MAP(fore200e, entry->rpd->atm_header.vpi, entry->rpd->atm_header.vci);
1109 entry->rpd->atm_header.vpi, entry->rpd->atm_header.vci);
1115 if ((*entry->status & STATUS_ERROR) == 0) {
1117 fore200e_push_rpd(fore200e, vcc, entry->rpd);
1122 entry->rpd->atm_header.vpi, entry->rpd->atm_header.vci);
1129 fore200e_collect_rpd(fore200e, entry->rpd);
1132 fore200e->bus->write(entry->rpd_dma, &entry->cp_entry->rpd_haddr);
1133 *entry->status = STATUS_FREE;
1228 struct host_cmdq_entry* entry = &cmdq->host_entry[ cmdq->head ];
1253 *entry->status = STATUS_PENDING;
1261 fore200e->bus->write(mtu, &entry->cp_entry->cmd.activate_block.mtu);
1262 fore200e->bus->write(*(u32*)&vpvc, (u32 __iomem *)&entry->cp_entry->cmd.activate_block.vpvc);
1263 fore200e->bus->write(*(u32*)&activ_opcode, (u32 __iomem *)&entry->cp_entry->cmd.activate_block.opcode);
1266 fore200e->bus->write(*(u32*)&vpvc, (u32 __iomem *)&entry->cp_entry->cmd.deactivate_block.vpvc);
1267 fore200e->bus->write(*(u32*)&deactiv_opcode, (u32 __iomem *)&entry->cp_entry->cmd.deactivate_block.opcode);
1270 ok = fore200e_poll(fore200e, entry->status, STATUS_COMPLETE, 400);
1272 *entry->status = STATUS_FREE;
1473 struct host_txq_entry* entry;
1561 entry = &txq->host_entry[ txq->head ];
1563 if ((*entry->status != STATUS_FREE) || (txq->txing >= QUEUE_SIZE_TX - 2)) {
1568 if (*entry->status != STATUS_FREE) {
1597 entry->incarn = vc_map->incarn;
1598 entry->vc_map = vc_map;
1599 entry->skb = skb;
1600 entry->data = tx_copy ? data : NULL;
1602 tpd = entry->tpd;
1657 tpd_haddr.haddr = entry->tpd_dma >> TPD_HADDR_SHIFT; /* shift the address, as we are in a bitfield */
1659 *entry->status = STATUS_PENDING;
1660 fore200e->bus->write(*(u32*)&tpd_haddr, (u32 __iomem *)&entry->cp_entry->tpd_haddr);
1672 struct host_cmdq_entry* entry = &cmdq->host_entry[ cmdq->head ];
1693 fore200e->bus->write(stats_dma_addr, &entry->cp_entry->cmd.stats_block.stats_haddr);
1695 *entry->status = STATUS_PENDING;
1697 fore200e->bus->write(*(u32*)&opcode, (u32 __iomem *)&entry->cp_entry->cmd.stats_block.opcode);
1699 ok = fore200e_poll(fore200e, entry->status, STATUS_COMPLETE, 400);
1701 *entry->status = STATUS_FREE;
1718 struct host_cmdq_entry* entry = &cmdq->host_entry[ cmdq->head ];
1732 fore200e->bus->write(oc3_regs_dma_addr, &entry->cp_entry->cmd.oc3_block.regs_haddr);
1734 *entry->status = STATUS_PENDING;
1736 fore200e->bus->write(*(u32*)&opcode, (u32*)&entry->cp_entry->cmd.oc3_block.opcode);
1738 ok = fore200e_poll(fore200e, entry->status, STATUS_COMPLETE, 400);
1740 *entry->status = STATUS_FREE;
1758 struct host_cmdq_entry* entry = &cmdq->host_entry[ cmdq->head ];
1771 fore200e->bus->write(0, &entry->cp_entry->cmd.oc3_block.regs_haddr);
1773 *entry->status = STATUS_PENDING;
1775 fore200e->bus->write(*(u32*)&opcode, (u32 __iomem *)&entry->cp_entry->cmd.oc3_block.opcode);
1777 ok = fore200e_poll(fore200e, entry->status, STATUS_COMPLETE, 400);
1779 *entry->status = STATUS_FREE;
2162 /* set the head entry of the queue */
2219 the related cp resident entry, because the cp relies on this write
2265 /* set the head entry of the queue */