Lines Matching refs:dma_len
522 static u32 esp_dma_length_limit(struct esp *esp, u32 dma_addr, u32 dma_len) in esp_dma_length_limit() argument
526 if (dma_len > (1U << 24)) in esp_dma_length_limit()
527 dma_len = (1U << 24); in esp_dma_length_limit()
537 if (dma_len > (1U << 16)) in esp_dma_length_limit()
538 dma_len = (1U << 16); in esp_dma_length_limit()
544 end = base + dma_len; in esp_dma_length_limit()
547 dma_len = end - base; in esp_dma_length_limit()
549 return dma_len; in esp_dma_length_limit()
1744 unsigned int dma_len = esp_cur_dma_len(ent, cmd); in esp_process_event() local
1755 dma_len = esp->ops->dma_length_limit(esp, dma_addr, in esp_process_event()
1756 dma_len); in esp_process_event()
1758 dma_len = esp_dma_length_limit(esp, dma_addr, dma_len); in esp_process_event()
1760 esp->data_dma_len = dma_len; in esp_process_event()
1762 if (!dma_len) { in esp_process_event()
1774 (unsigned long long)dma_addr, dma_len, write); in esp_process_event()
1776 esp->ops->send_dma_cmd(esp, dma_addr, dma_len, dma_len, in esp_process_event()