• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/crystalhd/

Lines Matching refs:ioreq

680 static enum BC_STATUS crystalhd_hw_fill_desc(struct crystalhd_dio_req *ioreq,
690 if (!ioreq || !desc || !desc_paddr_base || !xfr_sz ||
691 (!sg_cnt && !ioreq->uinfo.dir_tx)) {
702 len = crystalhd_get_sgle_len(ioreq, sg_ix);
708 addr_temp.full_addr = crystalhd_get_sgle_paddr(ioreq, sg_ix);
716 desc[ix].dma_dir = ioreq->uinfo.dir_tx;
727 if ((!len) || (len > crystalhd_get_sgle_len(ioreq, sg_ix))) {
743 if (ioreq->fb_size) {
745 addr_temp.full_addr = ioreq->fb_pa;
748 desc[ix].dma_dir = ioreq->uinfo.dir_tx;
750 desc[ix].fill_bytes = 4 - ioreq->fb_size;
751 count += ioreq->fb_size;
771 static enum BC_STATUS crystalhd_xlat_sgl_to_dma_desc(struct crystalhd_dio_req *ioreq,
782 if (!ioreq || !pdesc_mem || !uv_desc_index) {
788 !ioreq->sg || (!ioreq->sg_cnt && !ioreq->uinfo.dir_tx)) {
793 if ((ioreq->uinfo.dir_tx) && (ioreq->uinfo.uv_offset)) {
802 if (ioreq->uinfo.dir_tx || (ioreq->uinfo.uv_offset == 0)) {
803 sg_cnt = ioreq->sg_cnt;
804 xfr_sz = ioreq->uinfo.xfr_len;
806 sg_cnt = ioreq->uinfo.uv_sg_ix + 1;
807 xfr_sz = ioreq->uinfo.uv_offset;
810 sts = crystalhd_hw_fill_desc(ioreq, desc, desc_paddr_base, sg_cnt,
813 if ((sts != BC_STS_SUCCESS) || !ioreq->uinfo.uv_offset)
822 sg_cnt = ioreq->sg_cnt - ioreq->uinfo.uv_sg_ix;
823 xfr_sz = ioreq->uinfo.xfr_len - ioreq->uinfo.uv_offset;
824 sg_st_ix = ioreq->uinfo.uv_sg_ix;
825 sg_st_off = ioreq->uinfo.uv_sg_off;
827 sts = crystalhd_hw_fill_desc(ioreq, desc, desc_paddr_base, sg_cnt,
2008 enum BC_STATUS crystalhd_hw_post_tx(struct crystalhd_hw *hw, struct crystalhd_dio_req *ioreq,
2022 if (!hw || !ioreq || !call_back || !cb_event || !list_id) {
2034 rc = crystalhd_code_in_full(hw->adp, ioreq->uinfo.xfr_len,
2048 sts = crystalhd_xlat_sgl_to_dma_desc(ioreq,
2068 tx_dma_packet->dio_req = ioreq;
2129 struct crystalhd_dio_req *ioreq, bool en_post)
2135 if (!hw || !ioreq) {
2146 rpkt->dio_req = ioreq;
2149 sts = crystalhd_xlat_sgl_to_dma_desc(ioreq, &rpkt->desc_mem, &uv_desc_ix);
2170 struct crystalhd_dio_req **ioreq)
2177 if (!hw || !ioreq || !pib) {
2197 *ioreq = rpkt->dio_req;