Lines Matching refs:ldesc
193 static inline void mdc_set_read_width(struct mdc_hw_list_desc *ldesc, in mdc_set_read_width() argument
196 ldesc->gen_conf |= to_mdc_width(bytes) << in mdc_set_read_width()
200 static inline void mdc_set_write_width(struct mdc_hw_list_desc *ldesc, in mdc_set_write_width() argument
203 ldesc->gen_conf |= to_mdc_width(bytes) << in mdc_set_write_width()
208 struct mdc_hw_list_desc *ldesc, in mdc_list_desc_config() argument
215 ldesc->gen_conf = MDC_GENERAL_CONFIG_IEN | MDC_GENERAL_CONFIG_LIST_IEN | in mdc_list_desc_config()
218 ldesc->readport_conf = in mdc_list_desc_config()
222 ldesc->read_addr = src; in mdc_list_desc_config()
223 ldesc->write_addr = dst; in mdc_list_desc_config()
224 ldesc->xfer_size = len - 1; in mdc_list_desc_config()
225 ldesc->node_addr = 0; in mdc_list_desc_config()
226 ldesc->cmds_done = 0; in mdc_list_desc_config()
227 ldesc->ctrl_status = MDC_CONTROL_AND_STATUS_LIST_EN | in mdc_list_desc_config()
229 ldesc->next_desc = NULL; in mdc_list_desc_config()
238 ldesc->gen_conf |= MDC_GENERAL_CONFIG_INC_R; in mdc_list_desc_config()
239 ldesc->readport_conf |= MDC_READ_PORT_CONFIG_DREQ_ENABLE; in mdc_list_desc_config()
240 mdc_set_read_width(ldesc, mdma->bus_width); in mdc_list_desc_config()
241 mdc_set_write_width(ldesc, mchan->config.dst_addr_width); in mdc_list_desc_config()
245 ldesc->gen_conf |= MDC_GENERAL_CONFIG_INC_W; in mdc_list_desc_config()
246 ldesc->readport_conf |= MDC_READ_PORT_CONFIG_DREQ_ENABLE; in mdc_list_desc_config()
247 mdc_set_read_width(ldesc, mchan->config.src_addr_width); in mdc_list_desc_config()
248 mdc_set_write_width(ldesc, mdma->bus_width); in mdc_list_desc_config()
252 ldesc->gen_conf |= MDC_GENERAL_CONFIG_INC_R | in mdc_list_desc_config()
254 mdc_set_read_width(ldesc, mdma->bus_width); in mdc_list_desc_config()
255 mdc_set_write_width(ldesc, mdma->bus_width); in mdc_list_desc_config()
258 ldesc->readport_conf |= (burst_size - 1) << in mdc_list_desc_config()
599 struct mdc_hw_list_desc *ldesc; in mdc_tx_status() local
635 ldesc = mdesc->list; in mdc_tx_status()
637 bytes -= ldesc->xfer_size + 1; in mdc_tx_status()
638 ldesc = ldesc->next_desc; in mdc_tx_status()
640 if (ldesc) { in mdc_tx_status()
642 bytes -= ldesc->xfer_size - residue; in mdc_tx_status()
644 bytes -= ldesc->xfer_size + 1; in mdc_tx_status()