Lines Matching refs:remainder
236 u32 remainder = sg_dma_len(sg); in adm_process_fc_descriptors() local
254 while (remainder >= burst) { in adm_process_fc_descriptors()
261 rows = remainder / burst; in adm_process_fc_descriptors()
267 remainder -= burst * rows; in adm_process_fc_descriptors()
272 if (remainder) { in adm_process_fc_descriptors()
275 single_desc->len = remainder; in adm_process_fc_descriptors()
303 u32 remainder = sg_dma_len(sg); in adm_process_non_fc_descriptors() local
321 single_desc->len = (remainder > ADM_MAX_XFER) ? in adm_process_non_fc_descriptors()
322 ADM_MAX_XFER : remainder; in adm_process_non_fc_descriptors()
324 remainder -= single_desc->len; in adm_process_non_fc_descriptors()
327 } while (remainder); in adm_process_non_fc_descriptors()