···3232static void trace_write_gather(struct host1x_cdma *cdma, struct host1x_bo *bo,3333 u32 offset, u32 words)3434{3535+ struct device *dev = cdma_to_channel(cdma)->dev;3536 void *mem = NULL;36373738 if (host1x_debug_trace_cmdbuf)···4544 * of how much you can output to ftrace at once.4645 */4746 for (i = 0; i < words; i += TRACE_MAX_LENGTH) {4848- trace_host1x_cdma_push_gather(4949- dev_name(cdma_to_channel(cdma)->dev),5050- (u32)bo, min(words - i, TRACE_MAX_LENGTH),5151- offset + i * sizeof(u32), mem);4747+ u32 num_words = min(words - i, TRACE_MAX_LENGTH);4848+ offset += i * sizeof(u32);4949+5050+ trace_host1x_cdma_push_gather(dev_name(dev), bo,5151+ num_words, offset,5252+ mem);5253 }5454+5355 host1x_bo_munmap(bo, mem);5456 }5557}