Lines Matching refs:brx

268 	struct			qup_i2c_bam brx;  member
615 if (qup->brx.dma) in qup_i2c_rel_dma()
616 dma_release_channel(qup->brx.dma); in qup_i2c_rel_dma()
618 qup->brx.dma = NULL; in qup_i2c_rel_dma()
635 if (!qup->brx.dma) { in qup_i2c_req_dma()
636 qup->brx.dma = dma_request_chan(qup->dev, "rx"); in qup_i2c_req_dma()
637 if (IS_ERR(qup->brx.dma)) { in qup_i2c_req_dma()
639 err = PTR_ERR(qup->brx.dma); in qup_i2c_req_dma()
640 qup->brx.dma = NULL; in qup_i2c_req_dma()
669 ret = qup_sg_set_buf(&qup->brx.sg[qup->brx.sg_cnt++], in qup_i2c_bam_make_desc()
670 &qup->brx.tag.start[0], in qup_i2c_bam_make_desc()
676 ret = qup_sg_set_buf(&qup->brx.sg[qup->brx.sg_cnt++], in qup_i2c_bam_make_desc()
728 u32 tx_cnt = qup->btx.sg_cnt, rx_cnt = qup->brx.sg_cnt; in qup_i2c_bam_schedule_desc()
737 ret = qup_sg_set_buf(&qup->brx.sg[rx_cnt++], in qup_i2c_bam_schedule_desc()
738 &qup->brx.tag.start[0], in qup_i2c_bam_schedule_desc()
773 rxd = dmaengine_prep_slave_sg(qup->brx.dma, qup->brx.sg, in qup_i2c_bam_schedule_desc()
793 dma_async_issue_pending(qup->brx.dma); in qup_i2c_bam_schedule_desc()
823 dma_unmap_sg(qup->dev, qup->brx.sg, rx_cnt, in qup_i2c_bam_schedule_desc()
832 qup->brx.sg_cnt = 0; in qup_i2c_bam_clear_tag_buffers()
882 qup->brx.sg_cnt > qup->max_xfer_sg_len || in qup_i2c_bam_xfer()
1717 qup->brx.sg = devm_kcalloc(&pdev->dev, in qup_i2c_probe()
1718 blocks, sizeof(*qup->brx.sg), in qup_i2c_probe()
1720 if (!qup->brx.sg) { in qup_i2c_probe()
1724 sg_init_table(qup->brx.sg, blocks); in qup_i2c_probe()
1736 qup->brx.tag.start = devm_kzalloc(&pdev->dev, 2, GFP_KERNEL); in qup_i2c_probe()
1737 if (!qup->brx.tag.start) { in qup_i2c_probe()
1902 if (qup->brx.dma) in qup_i2c_probe()
1903 dma_release_channel(qup->brx.dma); in qup_i2c_probe()
1913 dma_release_channel(qup->brx.dma); in qup_i2c_remove()