Home
last modified time | relevance | path

Searched refs:buf_pos (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/base/regmap/
H A Dregmap-debugfs.c219 size_t buf_pos = 0; in regmap_read_debugfs() local
247 if (buf_pos + map->debugfs_tot_len > count) in regmap_read_debugfs()
251 snprintf(buf + buf_pos, count - buf_pos, "%.*x: ", in regmap_read_debugfs()
253 buf_pos += map->debugfs_reg_len + 2; in regmap_read_debugfs()
258 snprintf(buf + buf_pos, count - buf_pos, in regmap_read_debugfs()
261 memset(buf + buf_pos, 'X', in regmap_read_debugfs()
263 buf_pos += 2 * map->format.val_bytes; in regmap_read_debugfs()
265 buf[buf_pos++] = '\n'; in regmap_read_debugfs()
270 ret = buf_pos; in regmap_read_debugfs()
272 if (copy_to_user(user_buf, buf, buf_pos)) { in regmap_read_debugfs()
[all …]
/linux/sound/drivers/
H A Dpcmtest.c101 size_t buf_pos; // position in the DMA buffer member
146 v_iter->buf_pos += by; in inc_buf_pos()
147 if (v_iter->buf_pos >= bytes) in inc_buf_pos()
148 v_iter->buf_pos %= bytes; in inc_buf_pos()
152 * Position in the DMA buffer when we are in the non-interleaved mode. We increment buf_pos
159 return v_iter->buf_pos / channels + v_iter->chan_block * chan_num; in buf_pos_n()
179 current_byte = runtime->dma_area[v_iter->buf_pos]; in check_buf_block_i()
268 runtime->dma_area[v_iter->buf_pos] = patt_bufs[ch].buf[pos_pattern]; in fill_block_pattern_i()
287 size_t bytes_remain = runtime->dma_bytes - v_iter->buf_pos; in fill_block_rand_n()
308 size_t in_cur_block = runtime->dma_bytes - v_iter->buf_pos; in fill_block_rand_i()
[all...]
/linux/drivers/media/pci/mantis/
H A Dmantis_dma.c140 u32 buf_pos = 0; in mantis_risc_program() local
161 RISC_INSTR(risc_pos, mantis->buf_dma + buf_pos); in mantis_risc_program()
162 buf_pos += MANTIS_DMA_TR_BYTES; in mantis_risc_program()
/linux/drivers/media/pci/bt8xx/
H A Dbt878.c145 u32 buf_pos = 0; in bt878_risc_program() local
156 if (!(buf_pos % bt->block_bytes)) in bt878_risc_program()
159 RISC_STATUS(((buf_pos / in bt878_risc_program()
168 RISC_INSTR(bt->buf_dma + buf_pos); in bt878_risc_program()
169 buf_pos += bt->line_bytes; in bt878_risc_program()
/linux/drivers/crypto/
H A Dhifn_795x.c1035 u8 *buf_pos = buf; in hifn_setup_base_command() local
1037 base_cmd = (struct hifn_base_command *)buf_pos; in hifn_setup_base_command()
1059 u8 *buf_pos = buf; in hifn_setup_crypto_command() local
1062 cry_cmd = (struct hifn_crypt_command *)buf_pos; in hifn_setup_crypto_command()
1072 buf_pos += sizeof(struct hifn_crypt_command); in hifn_setup_crypto_command()
1081 memcpy(buf_pos, key, keylen); in hifn_setup_crypto_command()
1082 buf_pos += keylen; in hifn_setup_crypto_command()
1085 memcpy(buf_pos, iv, ivsize); in hifn_setup_crypto_command()
1086 buf_pos += ivsize; in hifn_setup_crypto_command()
1089 cmd_len = buf_pos - buf; in hifn_setup_crypto_command()
[all …]
/linux/tools/perf/tests/
H A Dparse-events.c2613 char buf[1024], *buf_pos = buf, *end; in test_events() local
2618 strncpy(buf_pos, pos, len); in test_events()
2620 buf_pos += len; in test_events()
2621 strcpy(buf_pos, core_pmu->name); in test_events()
2622 buf_pos += strlen(core_pmu->name); in test_events()
2624 strcpy(buf_pos, pos); in test_events()
/linux/drivers/usb/dwc2/
H A Dgadget.c509 int buf_pos = hs_req->req.actual; in dwc2_hsotg_write_fifo() local
516 to_write -= (buf_pos - hs_ep->last_load); in dwc2_hsotg_write_fifo()
641 to_write, hs_req->req.length, can_write, buf_pos); in dwc2_hsotg_write_fifo()
646 hs_req->req.actual = buf_pos + to_write; in dwc2_hsotg_write_fifo()
653 data = hs_req->req.buf + buf_pos; in dwc2_hsotg_write_fifo()