Lines Matching full:hd
101 void qm_push(struct qm_host_desc *hd, u32 qnum) in qm_push() argument
105 cpu_to_bus((u32 *)hd, sizeof(struct qm_host_desc)/4); in qm_push()
106 regd = (u32)hd | ((sizeof(struct qm_host_desc) >> 4) - 1); in qm_push()
110 void qm_buff_push(struct qm_host_desc *hd, u32 qnum, in qm_buff_push() argument
113 hd->orig_buff_len = buff_len; in qm_buff_push()
114 hd->buff_len = buff_len; in qm_buff_push()
115 hd->orig_buff_ptr = (u32)buff_ptr; in qm_buff_push()
116 hd->buff_ptr = (u32)buff_ptr; in qm_buff_push()
117 qm_push(hd, qnum); in qm_buff_push()
138 struct qm_host_desc *hd; in queue_close() local
140 while ((hd = qm_pop(qnum))) in queue_close()
207 struct qm_host_desc *hd; in ksnav_init() local
220 hd = qm_pop(qm_cfg->qpool_num); in ksnav_init()
221 if (hd == NULL) in ksnav_init()
224 qm_buff_push(hd, pktdma->rx_free_q, in ksnav_init()
283 struct qm_host_desc *hd; in ksnav_send() local
285 hd = qm_pop(qm_cfg->qpool_num); in ksnav_send()
286 if (hd == NULL) in ksnav_send()
289 hd->desc_info = num_bytes; in ksnav_send()
290 hd->swinfo[2] = swinfo2; in ksnav_send()
291 hd->packet_info = qm_cfg->qpool_num; in ksnav_send()
293 qm_buff_push(hd, pktdma->tx_snd_q, pkt, num_bytes); in ksnav_send()
300 struct qm_host_desc *hd; in ksnav_recv() local
302 hd = qm_pop(pktdma->rx_rcv_q); in ksnav_recv()
303 if (!hd) in ksnav_recv()
306 *pkt = (u32 *)hd->buff_ptr; in ksnav_recv()
307 *num_bytes = hd->desc_info & 0x3fffff; in ksnav_recv()
309 return hd; in ksnav_recv()
312 void ksnav_release_rxhd(struct pktdma_cfg *pktdma, void *hd) in ksnav_release_rxhd() argument
314 struct qm_host_desc *_hd = (struct qm_host_desc *)hd; in ksnav_release_rxhd()