Home
last modified time | relevance | path

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

/linux/tools/lib/api/
H A Dio.h155 int buf_pos = 0; in io__getdelim() local
168 if (buf_pos == sizeof(buf)) { in io__getdelim()
175 buf_pos = 0; in io__getdelim()
177 buf[buf_pos++] = (char)ch; in io__getdelim()
179 temp = realloc(line, line_len + buf_pos + 1); in io__getdelim()
183 memcpy(&line[line_len], buf, buf_pos); in io__getdelim()
184 line[line_len + buf_pos] = '\0'; in io__getdelim()
185 line_len += buf_pos; in io__getdelim()
/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/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/gpu/drm/amd/display/modules/hdcp/
H A Dhdcp_log.c40 uint32_t buf_pos = 0; in mod_hdcp_dump_binary_message() local
46 buf[buf_pos++] = '\n'; in mod_hdcp_dump_binary_message()
47 sprintf(&buf[buf_pos], "%02X ", msg[i]); in mod_hdcp_dump_binary_message()
48 buf_pos += byte_size; in mod_hdcp_dump_binary_message()
50 buf[buf_pos++] = '\0'; in mod_hdcp_dump_binary_message()
/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.c1036 u8 *buf_pos = buf; in hifn_setup_base_command() local
1038 base_cmd = (struct hifn_base_command *)buf_pos; in hifn_setup_base_command()
1060 u8 *buf_pos = buf; in hifn_setup_crypto_command() local
1063 cry_cmd = (struct hifn_crypt_command *)buf_pos; in hifn_setup_crypto_command()
1073 buf_pos += sizeof(struct hifn_crypt_command); in hifn_setup_crypto_command()
1082 memcpy(buf_pos, key, keylen); in hifn_setup_crypto_command()
1083 buf_pos += keylen; in hifn_setup_crypto_command()
1086 memcpy(buf_pos, iv, ivsize); in hifn_setup_crypto_command()
1087 buf_pos += ivsize; in hifn_setup_crypto_command()
1090 cmd_len = buf_pos - buf; in hifn_setup_crypto_command()
[all …]
/linux/drivers/net/wireless/ath/ath11k/
H A Dtestmode.c103 u8 const *buf_pos; in ath11k_tm_process_event() local
132 buf_pos = ftm_msg->data; in ath11k_tm_process_event()
150 memcpy(&ab->testmode.eventdata[data_pos], buf_pos, datalen); in ath11k_tm_process_event()
/linux/sound/drivers/
H A Daloop.c145 unsigned int buf_pos; /* position in buffer */ member
497 dpcm->buf_pos = 0; in loopback_prepare()
528 unsigned int dst_off = dpcm->buf_pos; in clear_capture_buf()
573 unsigned int src_off = play->buf_pos; in copy_play_buf()
574 unsigned int dst_off = capt->buf_pos; in copy_play_buf()
584 appl_ptr1 += play->buf_pos / play->pcm_salign; in copy_play_buf()
640 dpcm->buf_pos += delta; in bytepos_finish()
641 dpcm->buf_pos %= dpcm->pcm_buffer_size; in bytepos_finish()
915 pos = dpcm->buf_pos; in loopback_pointer()
1698 snd_iprintf(buffer, " buffer_pos:\t\t%u\n", dpcm->buf_pos); in print_dpcm_info()
/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()