Lines Matching full:hd
100 void qm_push(struct qm_host_desc *hd, u32 qnum) in qm_push() argument
104 cpu_to_bus((u32 *)hd, sizeof(struct qm_host_desc)/4); in qm_push()
105 regd = (u32)hd | ((sizeof(struct qm_host_desc) >> 4) - 1); in qm_push()
109 void qm_buff_push(struct qm_host_desc *hd, u32 qnum, in qm_buff_push() argument
112 hd->orig_buff_len = buff_len; in qm_buff_push()
113 hd->buff_len = buff_len; in qm_buff_push()
114 hd->orig_buff_ptr = (u32)buff_ptr; in qm_buff_push()
115 hd->buff_ptr = (u32)buff_ptr; in qm_buff_push()
116 qm_push(hd, qnum); in qm_buff_push()
137 struct qm_host_desc *hd; in queue_close() local
139 while ((hd = qm_pop(qnum))) in queue_close()
206 struct qm_host_desc *hd; in ksnav_init() local
219 hd = qm_pop(qm_cfg->qpool_num); in ksnav_init()
220 if (hd == NULL) in ksnav_init()
223 qm_buff_push(hd, pktdma->rx_free_q, in ksnav_init()
282 struct qm_host_desc *hd; in ksnav_send() local
284 hd = qm_pop(qm_cfg->qpool_num); in ksnav_send()
285 if (hd == NULL) in ksnav_send()
288 hd->desc_info = num_bytes; in ksnav_send()
289 hd->swinfo[2] = swinfo2; in ksnav_send()
290 hd->packet_info = qm_cfg->qpool_num; in ksnav_send()
292 qm_buff_push(hd, pktdma->tx_snd_q, pkt, num_bytes); in ksnav_send()
299 struct qm_host_desc *hd; in ksnav_recv() local
301 hd = qm_pop(pktdma->rx_rcv_q); in ksnav_recv()
302 if (!hd) in ksnav_recv()
305 *pkt = (u32 *)hd->buff_ptr; in ksnav_recv()
306 *num_bytes = hd->desc_info & 0x3fffff; in ksnav_recv()
308 return hd; in ksnav_recv()
311 void ksnav_release_rxhd(struct pktdma_cfg *pktdma, void *hd) in ksnav_release_rxhd() argument
313 struct qm_host_desc *_hd = (struct qm_host_desc *)hd; in ksnav_release_rxhd()