Lines Matching refs:hwdescr
301 spider_net_get_descr_status(struct spider_net_hw_descr *hwdescr)
303 return hwdescr->dmac_cmd_status & SPIDER_NET_DESCR_IND_PROC_MASK;
321 descr->hwdescr->next_descr_addr = 0;
345 struct spider_net_hw_descr *hwdescr;
361 hwdescr = chain->hwring;
363 for (i=0; i < chain->num_desc; i++, descr++, hwdescr++) {
364 hwdescr->dmac_cmd_status = SPIDER_NET_DESCR_NOT_IN_USE;
365 hwdescr->next_descr_addr = 0;
367 descr->hwdescr = hwdescr;
398 pci_unmap_single(card->pdev, descr->hwdescr->buf_addr,
422 struct spider_net_hw_descr *hwdescr = descr->hwdescr;
443 hwdescr->buf_size = bufsize;
444 hwdescr->result_size = 0;
445 hwdescr->valid_size = 0;
446 hwdescr->data_status = 0;
447 hwdescr->data_error = 0;
462 hwdescr->dmac_cmd_status = SPIDER_NET_DESCR_NOT_IN_USE;
464 hwdescr->buf_addr = buf;
466 hwdescr->dmac_cmd_status = SPIDER_NET_DESCR_CARDOWNED |
537 while (spider_net_get_descr_status(chain->head->hwdescr) ==
562 descr->prev->hwdescr->next_descr_addr = descr->bus_addr;
689 struct spider_net_hw_descr *hwdescr;
709 hwdescr = descr->hwdescr;
713 hwdescr->buf_addr = buf;
714 hwdescr->buf_size = skb->len;
715 hwdescr->next_descr_addr = 0;
716 hwdescr->data_status = 0;
718 hwdescr->dmac_cmd_status =
725 hwdescr->dmac_cmd_status |= SPIDER_NET_DMAC_TCP;
728 hwdescr->dmac_cmd_status |= SPIDER_NET_DMAC_UDP;
734 descr->prev->hwdescr->next_descr_addr = descr->bus_addr;
744 struct spider_net_hw_descr *hwdescr;
753 status = descr->hwdescr->dmac_cmd_status & SPIDER_NET_DESCR_NOT_IN_USE;
772 descr->hwdescr->dmac_cmd_status |= SPIDER_NET_DESCR_TXDESFLG;
774 hwdescr = card->low_watermark->hwdescr;
775 hwdescr->dmac_cmd_status =
776 hwdescr->dmac_cmd_status & ~SPIDER_NET_DESCR_TXDESFLG;
801 struct spider_net_hw_descr *hwdescr;
814 hwdescr = descr->hwdescr;
816 status = spider_net_get_descr_status(hwdescr);
851 hwdescr->dmac_cmd_status |= SPIDER_NET_DESCR_NOT_IN_USE;
854 buf_addr = hwdescr->buf_addr;
889 if (spider_net_get_descr_status(descr->hwdescr) ==
982 struct spider_net_hw_descr *hwdescr = descr->hwdescr;
985 u32 data_status = hwdescr->data_status;
986 u32 data_error = hwdescr->data_error;
988 skb_put(skb, hwdescr->valid_size);
1026 struct spider_net_hw_descr *hwd = start->hwdescr;
1047 hwd = descr->hwdescr;
1088 struct spider_net_hw_descr *hwd = descr->hwdescr;
1127 status = spider_net_get_descr_status(descr->hwdescr);
1135 status = spider_net_get_descr_status(descr->hwdescr);
1139 status = spider_net_get_descr_status(descr->hwdescr);
1154 status = spider_net_get_descr_status(descr->hwdescr);
1160 status = spider_net_get_descr_status(descr->hwdescr);
1186 struct spider_net_hw_descr *hwdescr = descr->hwdescr;
1190 status = spider_net_get_descr_status(hwdescr);
1201 hw_buf_addr = hwdescr->buf_addr;
1202 hwdescr->buf_addr = 0xffffffff;
1226 if (hwdescr->data_error & SPIDER_NET_DESTROY_RX_FLAGS) {
1231 hwdescr->data_status, hwdescr->data_error);
1235 if (hwdescr->dmac_cmd_status & SPIDER_NET_DESCR_BAD_STATUS) {
1237 hwdescr->dmac_cmd_status);
1239 pr_err("buf_size=x%08x\n", hwdescr->buf_size);
1240 pr_err("next_descr_addr=x%08x\n", hwdescr->next_descr_addr);
1241 pr_err("result_size=x%08x\n", hwdescr->result_size);
1242 pr_err("valid_size=x%08x\n", hwdescr->valid_size);
1243 pr_err("data_status=x%08x\n", hwdescr->data_status);
1244 pr_err("data_error=x%08x\n", hwdescr->data_error);
1254 hwdescr->dmac_cmd_status = SPIDER_NET_DESCR_NOT_IN_USE;
1262 hwdescr->dmac_cmd_status = SPIDER_NET_DESCR_NOT_IN_USE;