Lines Matching full:rxb

717 il3945_hdl_alive(struct il_priv *il, struct il_rx_buf *rxb)  in il3945_hdl_alive()  argument
719 struct il_rx_pkt *pkt = rxb_addr(rxb); in il3945_hdl_alive()
750 il3945_hdl_add_sta(struct il_priv *il, struct il_rx_buf *rxb) in il3945_hdl_add_sta() argument
752 struct il_rx_pkt *pkt = rxb_addr(rxb); in il3945_hdl_add_sta()
758 il3945_hdl_beacon(struct il_priv *il, struct il_rx_buf *rxb) in il3945_hdl_beacon() argument
760 struct il_rx_pkt *pkt = rxb_addr(rxb); in il3945_hdl_beacon()
779 il3945_hdl_card_state(struct il_priv *il, struct il_rx_buf *rxb) in il3945_hdl_card_state() argument
781 struct il_rx_pkt *pkt = rxb_addr(rxb); in il3945_hdl_card_state()
931 struct il_rx_buf *rxb; in il3945_rx_queue_restock() local
938 rxb = list_entry(element, struct il_rx_buf, list); in il3945_rx_queue_restock()
943 il3945_dma_addr2rbd_ptr(il, rxb->page_dma); in il3945_rx_queue_restock()
944 rxq->queue[rxq->write] = rxb; in il3945_rx_queue_restock()
978 struct il_rx_buf *rxb; in il3945_rx_allocate() local
1037 rxb = list_entry(element, struct il_rx_buf, list); in il3945_rx_allocate()
1040 rxb->page = page; in il3945_rx_allocate()
1041 rxb->page_dma = page_dma; in il3945_rx_allocate()
1042 list_add_tail(&rxb->list, &rxq->rx_free); in il3945_rx_allocate()
1178 struct il_rx_buf *rxb; in il3945_rx_handle() local
1205 rxb = rxq->queue[i]; in il3945_rx_handle()
1207 /* If an RXB doesn't have a Rx queue slot associated with it, in il3945_rx_handle()
1210 BUG_ON(rxb == NULL); in il3945_rx_handle()
1214 dma_unmap_page(&il->pci_dev->dev, rxb->page_dma, in il3945_rx_handle()
1217 pkt = rxb_addr(rxb); in il3945_rx_handle()
1227 il->handlers[pkt->hdr.cmd] (il, rxb); in il3945_rx_handle()
1235 * XXX: After here, we should always check rxb->page in il3945_rx_handle()
1245 if (rxb->page) in il3945_rx_handle()
1246 il_tx_cmd_complete(il, rxb); in il3945_rx_handle()
1248 IL_WARN("Claim null rxb?\n"); in il3945_rx_handle()
1255 if (rxb->page != NULL) { in il3945_rx_handle()
1256 rxb->page_dma = in il3945_rx_handle()
1257 dma_map_page(&il->pci_dev->dev, rxb->page, 0, in il3945_rx_handle()
1261 rxb->page_dma))) { in il3945_rx_handle()
1262 __il_free_pages(il, rxb->page); in il3945_rx_handle()
1263 rxb->page = NULL; in il3945_rx_handle()
1264 list_add_tail(&rxb->list, &rxq->rx_used); in il3945_rx_handle()
1266 list_add_tail(&rxb->list, &rxq->rx_free); in il3945_rx_handle()
1270 list_add_tail(&rxb->list, &rxq->rx_used); in il3945_rx_handle()