lcnt1 = 256;
cyc = bursts / 256;
} else {
- lcnt1 = bursts;
+ lcnt1 = (unsigned int)bursts;
cyc = 1;
}
off += _emit_LPEND(dry_run, &buf[off], &lpend);
/* remainder */
- lcnt1 = bursts - (lcnt1 * cyc);
+ lcnt1 = (unsigned int)(bursts - (lcnt1 * cyc));
if (lcnt1) {
off += _emit_LP(dry_run, &buf[off], 1, lcnt1);
cyc = *bursts / lcnt1 / lcnt0;
} else if (*bursts > 256) {
lcnt1 = 256;
- lcnt0 = *bursts / lcnt1;
+ lcnt0 = (unsigned int)((unsigned int)(*bursts) / lcnt1);
cyc = 1;
} else {
- lcnt1 = *bursts;
+ lcnt1 = (unsigned int)(*bursts);
lcnt0 = 0;
cyc = 1;
}
static inline void fill_px(struct pl330_xfer *px,
dma_addr_t dst, dma_addr_t src, size_t len)
{
- px->bytes = len;
+ px->bytes = (u32)len;
px->dst_addr = dst;
px->src_addr = src;
}