Lines Matching refs:k
100 int k; in sh_msiof_modify_ctr_wait() local
107 for (k = 100; k > 0; k--) { in sh_msiof_modify_ctr_wait()
114 return k > 0 ? 0 : -ETIMEDOUT; in sh_msiof_modify_ctr_wait()
150 size_t k; in sh_msiof_spi_set_clk_regs() local
157 for (k = 0; k < ARRAY_SIZE(sh_msiof_spi_clk_table); k++) { in sh_msiof_spi_set_clk_regs()
158 if (sh_msiof_spi_clk_table[k].div >= div) in sh_msiof_spi_set_clk_regs()
162 k = min_t(int, k, ARRAY_SIZE(sh_msiof_spi_clk_table) - 1); in sh_msiof_spi_set_clk_regs()
164 sh_msiof_write(p, TSCR, sh_msiof_spi_clk_table[k].scr); in sh_msiof_spi_set_clk_regs()
165 sh_msiof_write(p, RSCR, sh_msiof_spi_clk_table[k].scr); in sh_msiof_spi_set_clk_regs()
224 int k; in sh_msiof_spi_write_fifo_8() local
226 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_8()
227 sh_msiof_write(p, TFDR, buf_8[k] << fs); in sh_msiof_spi_write_fifo_8()
234 int k; in sh_msiof_spi_write_fifo_16() local
236 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_16()
237 sh_msiof_write(p, TFDR, buf_16[k] << fs); in sh_msiof_spi_write_fifo_16()
244 int k; in sh_msiof_spi_write_fifo_16u() local
246 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_16u()
247 sh_msiof_write(p, TFDR, get_unaligned(&buf_16[k]) << fs); in sh_msiof_spi_write_fifo_16u()
254 int k; in sh_msiof_spi_write_fifo_32() local
256 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_32()
257 sh_msiof_write(p, TFDR, buf_32[k] << fs); in sh_msiof_spi_write_fifo_32()
264 int k; in sh_msiof_spi_write_fifo_32u() local
266 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_32u()
267 sh_msiof_write(p, TFDR, get_unaligned(&buf_32[k]) << fs); in sh_msiof_spi_write_fifo_32u()
274 int k; in sh_msiof_spi_write_fifo_s32() local
276 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_s32()
277 sh_msiof_write(p, TFDR, swab32(buf_32[k] << fs)); in sh_msiof_spi_write_fifo_s32()
284 int k; in sh_msiof_spi_write_fifo_s32u() local
286 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_s32u()
287 sh_msiof_write(p, TFDR, swab32(get_unaligned(&buf_32[k]) << fs)); in sh_msiof_spi_write_fifo_s32u()
294 int k; in sh_msiof_spi_read_fifo_8() local
296 for (k = 0; k < words; k++) in sh_msiof_spi_read_fifo_8()
297 buf_8[k] = sh_msiof_read(p, RFDR) >> fs; in sh_msiof_spi_read_fifo_8()
304 int k; in sh_msiof_spi_read_fifo_16() local
306 for (k = 0; k < words; k++) in sh_msiof_spi_read_fifo_16()
307 buf_16[k] = sh_msiof_read(p, RFDR) >> fs; in sh_msiof_spi_read_fifo_16()
314 int k; in sh_msiof_spi_read_fifo_16u() local
316 for (k = 0; k < words; k++) in sh_msiof_spi_read_fifo_16u()
317 put_unaligned(sh_msiof_read(p, RFDR) >> fs, &buf_16[k]); in sh_msiof_spi_read_fifo_16u()
324 int k; in sh_msiof_spi_read_fifo_32() local
326 for (k = 0; k < words; k++) in sh_msiof_spi_read_fifo_32()
327 buf_32[k] = sh_msiof_read(p, RFDR) >> fs; in sh_msiof_spi_read_fifo_32()
334 int k; in sh_msiof_spi_read_fifo_32u() local
336 for (k = 0; k < words; k++) in sh_msiof_spi_read_fifo_32u()
337 put_unaligned(sh_msiof_read(p, RFDR) >> fs, &buf_32[k]); in sh_msiof_spi_read_fifo_32u()
344 int k; in sh_msiof_spi_read_fifo_s32() local
346 for (k = 0; k < words; k++) in sh_msiof_spi_read_fifo_s32()
347 buf_32[k] = swab32(sh_msiof_read(p, RFDR) >> fs); in sh_msiof_spi_read_fifo_s32()
354 int k; in sh_msiof_spi_read_fifo_s32u() local
356 for (k = 0; k < words; k++) in sh_msiof_spi_read_fifo_s32u()
357 put_unaligned(swab32(sh_msiof_read(p, RFDR) >> fs), &buf_32[k]); in sh_msiof_spi_read_fifo_s32u()