Lines Matching refs:entry
557 struct host_cmdq_entry* entry = &cmdq->host_entry[ cmdq->head ];
572 fore200e->bus->write(prom_dma, &entry->cp_entry->cmd.prom_block.prom_haddr);
574 *entry->status = STATUS_PENDING;
576 fore200e->bus->write(*(u32*)&opcode, (u32 __iomem *)&entry->cp_entry->cmd.prom_block.opcode);
578 ok = fore200e_poll(fore200e, entry->status, STATUS_COMPLETE, 400);
580 *entry->status = STATUS_FREE;
771 struct host_txq_entry* entry;
780 entry = &txq->host_entry[ txq->tail ];
782 if ((*entry->status & STATUS_COMPLETE) == 0) {
786 DPRINTK(3, "TX COMPLETED: entry = %p [tail = %d], vc_map = %p, skb = %p\n",
787 entry, txq->tail, entry->vc_map, entry->skb);
790 kfree(entry->data);
793 dma_unmap_single(fore200e->dev, entry->tpd->tsd[ 0 ].buffer, entry->tpd->tsd[ 0 ].length,
796 vc_map = entry->vc_map;
798 /* vcc closed since the time the entry was submitted for tx? */
805 dev_kfree_skb_any(entry->skb);
811 if (vc_map->incarn != entry->incarn) {
819 we thus bind the tx entry to the current incarnation of the vcc
820 when the entry is submitted for tx. When the tx later completes,
821 if the incarnation number of the tx entry does not match the one
828 dev_kfree_skb_any(entry->skb);
836 vcc->pop(vcc, entry->skb);
839 dev_kfree_skb_any(entry->skb);
843 if (*entry->status & STATUS_ERROR)
850 *entry->status = STATUS_FREE;
907 struct host_bsq_entry* entry;
923 entry = &bsq->host_entry[ bsq->head ];
942 entry->rbd_block->rbd[ i ].buffer_haddr = buffer->data.dma_addr;
943 entry->rbd_block->rbd[ i ].handle = FORE200E_BUF2HDL(buffer);
951 *entry->status = STATUS_PENDING;
952 fore200e->bus->write(entry->rbd_block_dma, &entry->cp_entry->rbd_block_haddr);
1088 struct host_rxq_entry* entry;
1094 entry = &rxq->host_entry[ rxq->head ];
1097 if ((*entry->status & STATUS_COMPLETE) == 0)
1100 vc_map = FORE200E_VC_MAP(fore200e, entry->rpd->atm_header.vpi, entry->rpd->atm_header.vci);
1107 entry->rpd->atm_header.vpi, entry->rpd->atm_header.vci);
1113 if ((*entry->status & STATUS_ERROR) == 0) {
1115 fore200e_push_rpd(fore200e, vcc, entry->rpd);
1120 entry->rpd->atm_header.vpi, entry->rpd->atm_header.vci);
1127 fore200e_collect_rpd(fore200e, entry->rpd);
1130 fore200e->bus->write(entry->rpd_dma, &entry->cp_entry->rpd_haddr);
1131 *entry->status = STATUS_FREE;
1226 struct host_cmdq_entry* entry = &cmdq->host_entry[ cmdq->head ];
1251 *entry->status = STATUS_PENDING;
1259 fore200e->bus->write(mtu, &entry->cp_entry->cmd.activate_block.mtu);
1260 fore200e->bus->write(*(u32*)&vpvc, (u32 __iomem *)&entry->cp_entry->cmd.activate_block.vpvc);
1261 fore200e->bus->write(*(u32*)&activ_opcode, (u32 __iomem *)&entry->cp_entry->cmd.activate_block.opcode);
1264 fore200e->bus->write(*(u32*)&vpvc, (u32 __iomem *)&entry->cp_entry->cmd.deactivate_block.vpvc);
1265 fore200e->bus->write(*(u32*)&deactiv_opcode, (u32 __iomem *)&entry->cp_entry->cmd.deactivate_block.opcode);
1268 ok = fore200e_poll(fore200e, entry->status, STATUS_COMPLETE, 400);
1270 *entry->status = STATUS_FREE;
1471 struct host_txq_entry* entry;
1559 entry = &txq->host_entry[ txq->head ];
1561 if ((*entry->status != STATUS_FREE) || (txq->txing >= QUEUE_SIZE_TX - 2)) {
1566 if (*entry->status != STATUS_FREE) {
1595 entry->incarn = vc_map->incarn;
1596 entry->vc_map = vc_map;
1597 entry->skb = skb;
1598 entry->data = tx_copy ? data : NULL;
1600 tpd = entry->tpd;
1655 tpd_haddr.haddr = entry->tpd_dma >> TPD_HADDR_SHIFT; /* shift the address, as we are in a bitfield */
1657 *entry->status = STATUS_PENDING;
1658 fore200e->bus->write(*(u32*)&tpd_haddr, (u32 __iomem *)&entry->cp_entry->tpd_haddr);
1670 struct host_cmdq_entry* entry = &cmdq->host_entry[ cmdq->head ];
1691 fore200e->bus->write(stats_dma_addr, &entry->cp_entry->cmd.stats_block.stats_haddr);
1693 *entry->status = STATUS_PENDING;
1695 fore200e->bus->write(*(u32*)&opcode, (u32 __iomem *)&entry->cp_entry->cmd.stats_block.opcode);
1697 ok = fore200e_poll(fore200e, entry->status, STATUS_COMPLETE, 400);
1699 *entry->status = STATUS_FREE;
1716 struct host_cmdq_entry* entry = &cmdq->host_entry[ cmdq->head ];
1730 fore200e->bus->write(oc3_regs_dma_addr, &entry->cp_entry->cmd.oc3_block.regs_haddr);
1732 *entry->status = STATUS_PENDING;
1734 fore200e->bus->write(*(u32*)&opcode, (u32*)&entry->cp_entry->cmd.oc3_block.opcode);
1736 ok = fore200e_poll(fore200e, entry->status, STATUS_COMPLETE, 400);
1738 *entry->status = STATUS_FREE;
1756 struct host_cmdq_entry* entry = &cmdq->host_entry[ cmdq->head ];
1769 fore200e->bus->write(0, &entry->cp_entry->cmd.oc3_block.regs_haddr);
1771 *entry->status = STATUS_PENDING;
1773 fore200e->bus->write(*(u32*)&opcode, (u32 __iomem *)&entry->cp_entry->cmd.oc3_block.opcode);
1775 ok = fore200e_poll(fore200e, entry->status, STATUS_COMPLETE, 400);
1777 *entry->status = STATUS_FREE;
2160 /* set the head entry of the queue */
2217 the related cp resident entry, because the cp relies on this write
2263 /* set the head entry of the queue */