Home
last modified time | relevance | path

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

/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()
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()
311 get_random_bytes(&runtime->dma_area[v_iter->buf_pos], v_iter->b_rw); in fill_block_rand_i()
[all …]
H A Daloop.c149 unsigned int buf_pos; /* position in buffer */
517 dpcm->buf_pos = 0; in loopback_prepare()
547 unsigned int dst_off = dpcm->buf_pos; in clear_capture_buf()
592 unsigned int src_off = play->buf_pos; in copy_play_buf()
593 unsigned int dst_off = capt->buf_pos; in copy_play_buf()
603 appl_ptr1 += play->buf_pos / play->pcm_salign; in copy_play_buf()
659 dpcm->buf_pos += delta; in loopback_jiffies_timer_pos_update()
660 dpcm->buf_pos %= dpcm->pcm_buffer_size; in loopback_jiffies_timer_pos_update()
935 pos = dpcm->buf_pos;
1711 snd_iprintf(buffer, " buffer_pos:\t\t%u\n", dpcm->buf_pos); in print_substream_info()
146 unsigned int buf_pos; /* position in buffer */ global() member
[all...]
/linux/net/smc/
H A Dsmc_llc.c566 struct smc_buf_desc *buf_pos; in _smc_llc_get_next_rmb() local
569 buf_pos = list_first_entry_or_null(&lgr->rmbs[*buf_lst], in _smc_llc_get_next_rmb()
571 if (buf_pos) in _smc_llc_get_next_rmb()
572 return buf_pos; in _smc_llc_get_next_rmb()
581 struct smc_buf_desc *buf_pos) in smc_llc_get_next_rmb() argument
585 if (!buf_pos) in smc_llc_get_next_rmb()
588 if (list_is_last(&buf_pos->list, &lgr->rmbs[*buf_lst])) { in smc_llc_get_next_rmb()
592 buf_next = list_next_entry(buf_pos, list); in smc_llc_get_next_rmb()
607 struct smc_buf_desc *buf_pos; in smc_llc_fill_ext_v2() local
622 buf_pos = smc_llc_get_first_rmb(lgr, &buf_lst); in smc_llc_fill_ext_v2()
[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/tools/perf/tests/
H A Dparse-events.c2620 char buf[1024], *buf_pos = buf; in test_events()
2625 strncpy(buf_pos, pos, len); in test_events()
2627 buf_pos += len; in test_events()
2628 strcpy(buf_pos, core_pmu->name); in test_events()
2629 buf_pos += strlen(core_pmu->name); in test_events()
2631 strcpy(buf_pos, pos); in test_events()
2613 char buf[1024], *buf_pos = buf; test_events() local
/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()