Lines Matching refs:ldesc

194 static inline void mdc_set_read_width(struct mdc_hw_list_desc *ldesc,  in mdc_set_read_width()  argument
197 ldesc->gen_conf |= to_mdc_width(bytes) << in mdc_set_read_width()
201 static inline void mdc_set_write_width(struct mdc_hw_list_desc *ldesc, in mdc_set_write_width() argument
204 ldesc->gen_conf |= to_mdc_width(bytes) << in mdc_set_write_width()
209 struct mdc_hw_list_desc *ldesc, in mdc_list_desc_config() argument
216 ldesc->gen_conf = MDC_GENERAL_CONFIG_IEN | MDC_GENERAL_CONFIG_LIST_IEN | in mdc_list_desc_config()
219 ldesc->readport_conf = in mdc_list_desc_config()
223 ldesc->read_addr = src; in mdc_list_desc_config()
224 ldesc->write_addr = dst; in mdc_list_desc_config()
225 ldesc->xfer_size = len - 1; in mdc_list_desc_config()
226 ldesc->node_addr = 0; in mdc_list_desc_config()
227 ldesc->cmds_done = 0; in mdc_list_desc_config()
228 ldesc->ctrl_status = MDC_CONTROL_AND_STATUS_LIST_EN | in mdc_list_desc_config()
230 ldesc->next_desc = NULL; in mdc_list_desc_config()
239 ldesc->gen_conf |= MDC_GENERAL_CONFIG_INC_R; in mdc_list_desc_config()
240 ldesc->readport_conf |= MDC_READ_PORT_CONFIG_DREQ_ENABLE; in mdc_list_desc_config()
241 mdc_set_read_width(ldesc, mdma->bus_width); in mdc_list_desc_config()
242 mdc_set_write_width(ldesc, mchan->config.dst_addr_width); in mdc_list_desc_config()
246 ldesc->gen_conf |= MDC_GENERAL_CONFIG_INC_W; in mdc_list_desc_config()
247 ldesc->readport_conf |= MDC_READ_PORT_CONFIG_DREQ_ENABLE; in mdc_list_desc_config()
248 mdc_set_read_width(ldesc, mchan->config.src_addr_width); in mdc_list_desc_config()
249 mdc_set_write_width(ldesc, mdma->bus_width); in mdc_list_desc_config()
253 ldesc->gen_conf |= MDC_GENERAL_CONFIG_INC_R | in mdc_list_desc_config()
255 mdc_set_read_width(ldesc, mdma->bus_width); in mdc_list_desc_config()
256 mdc_set_write_width(ldesc, mdma->bus_width); in mdc_list_desc_config()
259 ldesc->readport_conf |= (burst_size - 1) << in mdc_list_desc_config()
597 struct mdc_hw_list_desc *ldesc; in mdc_tx_status() local
633 ldesc = mdesc->list; in mdc_tx_status()
635 bytes -= ldesc->xfer_size + 1; in mdc_tx_status()
636 ldesc = ldesc->next_desc; in mdc_tx_status()
638 if (ldesc) { in mdc_tx_status()
640 bytes -= ldesc->xfer_size - residue; in mdc_tx_status()
642 bytes -= ldesc->xfer_size + 1; in mdc_tx_status()