Searched refs:buf_pos (Results 1 – 8 of 8) sorted by relevance
/Linux-v5.4/drivers/media/usb/tm6000/ |
D | tm6000-alsa.c | 207 unsigned int stride, buf_pos; in tm6000_fillbuf() local 224 buf_pos = chip->buf_pos; in tm6000_fillbuf() 239 runtime->dma_area, buf_pos, in tm6000_fillbuf() 242 if (buf_pos + length >= runtime->buffer_size) { in tm6000_fillbuf() 243 unsigned int cnt = runtime->buffer_size - buf_pos; in tm6000_fillbuf() 244 memcpy(runtime->dma_area + buf_pos * stride, buf, cnt * stride); in tm6000_fillbuf() 248 memcpy(runtime->dma_area + buf_pos * stride, buf, in tm6000_fillbuf() 253 chip->buf_pos += length; in tm6000_fillbuf() 254 if (chip->buf_pos >= runtime->buffer_size) in tm6000_fillbuf() 255 chip->buf_pos -= runtime->buffer_size; in tm6000_fillbuf() [all …]
|
D | tm6000.h | 148 unsigned buf_pos; member
|
/Linux-v5.4/drivers/base/regmap/ |
D | regmap-debugfs.c | 220 size_t buf_pos = 0; in regmap_read_debugfs() local 245 if (buf_pos + map->debugfs_tot_len > count) in regmap_read_debugfs() 249 snprintf(buf + buf_pos, count - buf_pos, "%.*x: ", in regmap_read_debugfs() 251 buf_pos += map->debugfs_reg_len + 2; in regmap_read_debugfs() 256 snprintf(buf + buf_pos, count - buf_pos, in regmap_read_debugfs() 259 memset(buf + buf_pos, 'X', in regmap_read_debugfs() 261 buf_pos += 2 * map->format.val_bytes; in regmap_read_debugfs() 263 buf[buf_pos++] = '\n'; in regmap_read_debugfs() 268 ret = buf_pos; in regmap_read_debugfs() 270 if (copy_to_user(user_buf, buf, buf_pos)) { in regmap_read_debugfs() [all …]
|
/Linux-v5.4/drivers/media/pci/mantis/ |
D | mantis_dma.c | 140 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-v5.4/drivers/media/pci/bt8xx/ |
D | bt878.c | 145 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-v5.4/sound/drivers/ |
D | aloop.c | 95 unsigned int buf_pos; /* position in buffer */ member 332 dpcm->buf_pos = 0; in loopback_prepare() 362 unsigned int dst_off = dpcm->buf_pos; in clear_capture_buf() 391 unsigned int src_off = play->buf_pos; in copy_play_buf() 392 unsigned int dst_off = capt->buf_pos; in copy_play_buf() 402 appl_ptr1 += play->buf_pos / play->pcm_salign; in copy_play_buf() 455 dpcm->buf_pos += delta; in bytepos_finish() 456 dpcm->buf_pos %= dpcm->pcm_buffer_size; in bytepos_finish() 540 pos = dpcm->buf_pos; in loopback_pointer() 1073 snd_iprintf(buffer, " buffer_pos:\t\t%u\n", dpcm->buf_pos); in print_dpcm_info()
|
/Linux-v5.4/drivers/crypto/ |
D | hifn_795x.c | 1052 u8 *buf_pos = buf; in hifn_setup_base_command() local 1054 base_cmd = (struct hifn_base_command *)buf_pos; in hifn_setup_base_command() 1076 u8 *buf_pos = buf; in hifn_setup_crypto_command() local 1079 cry_cmd = (struct hifn_crypt_command *)buf_pos; in hifn_setup_crypto_command() 1089 buf_pos += sizeof(struct hifn_crypt_command); in hifn_setup_crypto_command() 1098 memcpy(buf_pos, key, keylen); in hifn_setup_crypto_command() 1099 buf_pos += keylen; in hifn_setup_crypto_command() 1102 memcpy(buf_pos, iv, ivsize); in hifn_setup_crypto_command() 1103 buf_pos += ivsize; in hifn_setup_crypto_command() 1106 cmd_len = buf_pos - buf; in hifn_setup_crypto_command() [all …]
|
/Linux-v5.4/drivers/usb/dwc2/ |
D | gadget.c | 497 int buf_pos = hs_req->req.actual; in dwc2_hsotg_write_fifo() local 504 to_write -= (buf_pos - hs_ep->last_load); in dwc2_hsotg_write_fifo() 629 to_write, hs_req->req.length, can_write, buf_pos); in dwc2_hsotg_write_fifo() 634 hs_req->req.actual = buf_pos + to_write; in dwc2_hsotg_write_fifo() 641 data = hs_req->req.buf + buf_pos; in dwc2_hsotg_write_fifo()
|