| /src/contrib/mandoc/ |
| H A D | mdoc_macro.c | 248 lookup(struct roff_man *mdoc, int from, int line, int ppos, const char *p) in lookup() argument 261 mandoc_msg(MANDOCERR_MACRO_CALL, line, ppos, "%s", p); in lookup() 408 find_pending(struct roff_man *mdoc, enum roff_tok tok, int line, int ppos, in find_pending() argument 429 line, ppos, "%s breaks %s", in find_pending() 431 mdoc_endbody_alloc(mdoc, line, ppos, in find_pending() 522 ntok = buf[ppos] == '"' || parsed == 0 || in macro_or_word() 524 lookup(mdoc, tok, line, ppos, p); in macro_or_word() 527 dword(mdoc, line, ppos, p, DELIM_MAX, tok == TOKEN_NONE || in macro_or_word() 534 (*mdoc_macro(ntok)->fp)(mdoc, ntok, line, ppos, pos, buf); in macro_or_word() 640 line, ppos, "%s breaks %s", in blk_exp_close() [all …]
|
| H A D | man_macro.c | 234 line, ppos, "RE %d", target); in blk_close() 257 line, ppos, "%s", roff_name[tok]); in blk_close() 260 roff_elem_alloc(man, line, ppos, ROFF_br); in blk_close() 279 roff_word_alloc(man, line, ppos, buf + *pos); in blk_close() 295 roff_elem_alloc(man, line, ppos, tok); in blk_close() 311 roff_block_alloc(man, line, ppos, tok); in blk_exp() 312 head = roff_head_alloc(man, line, ppos, tok); in blk_exp() 333 roff_body_alloc(man, line, ppos, tok); in blk_exp() 354 roff_block_alloc(man, line, ppos, tok); in blk_imp() 355 n = roff_head_alloc(man, line, ppos, tok); in blk_imp() [all …]
|
| H A D | man.c | 186 int ppos; in man_pmacro() local 191 ppos = offs; in man_pmacro() 196 tok = roffhash_find(man->manmac, buf + ppos, sz); in man_pmacro() 198 mandoc_msg(MANDOCERR_MACRO, ln, ppos, "%s", buf + ppos - 1); in man_pmacro() 251 (*man_macro(tok)->fp)(man, tok, ln, ppos, &offs, buf); in man_pmacro() 275 roff_body_alloc(man, ln, ppos, man->last->tok); in man_pmacro()
|
| H A D | roff.c | 148 int ppos, /* original pos in buffer */ \ 1799 int ppos; /* original offset in buf->buf */ in roff_parseln() local 1802 ppos = pos = *offs; in roff_parseln() 1853 if (r->eqn != NULL && strncmp(buf->buf + ppos, ".EN", 3)) { in roff_parseln() 1854 eqn_read(r->eqn, buf->buf + ppos); in roff_parseln() 1858 tbl_read(r->tbl, ln, buf->buf, ppos); in roff_parseln() 1882 return (*roffs[t].sub)(r, t, buf, ln, ppos, pos, offs); in roff_parseln() 1887 t = roff_parse(r, buf->buf, &pos, ln, ppos); in roff_parseln() 1904 ln, ppos, "%s", buf->buf + ppos); in roff_req_or_macro() 1937 return (*roffs[tok].proc)(r, tok, buf, ln, ppos, pos, offs); in roff_req_or_macro() [all …]
|
| H A D | libman.h | 25 int ppos, \
|
| /src/sys/contrib/dev/iwlwifi/mvm/ |
| H A D | debugfs.c | 25 size_t count, loff_t *ppos) in iwl_dbgfs_ctdp_budget_read() argument 47 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_ctdp_budget_read() 51 size_t count, loff_t *ppos) in iwl_dbgfs_stop_ctdp_write() argument 81 loff_t *ppos) in iwl_dbgfs_start_ctdp_write() argument 110 size_t count, loff_t *ppos) in iwl_dbgfs_force_ctkill_write() argument 122 size_t count, loff_t *ppos) in iwl_dbgfs_tx_flush_write() argument 156 size_t count, loff_t *ppos) in iwl_dbgfs_sram_read() argument 183 ret = simple_read_from_buffer(user_buf, count, ppos, ptr, len); in iwl_dbgfs_sram_read() 191 size_t count, loff_t *ppos) in iwl_dbgfs_sram_write() argument 223 size_t count, loff_t *ppos) in iwl_dbgfs_set_nic_temperature_read() argument [all …]
|
| H A D | debugfs-vif.c | 76 size_t count, loff_t *ppos) in iwl_dbgfs_pm_params_write() argument 140 size_t count, loff_t *ppos) in iwl_dbgfs_tx_pwr_lmt_read() argument 150 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_tx_pwr_lmt_read() 155 size_t count, loff_t *ppos) in iwl_dbgfs_pm_params_read() argument 166 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_pm_params_read() 171 size_t count, loff_t *ppos) in iwl_dbgfs_mac_params_read() argument 250 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_mac_params_read() 299 size_t count, loff_t *ppos) in iwl_dbgfs_bf_params_write() argument 397 size_t count, loff_t *ppos) in iwl_dbgfs_bf_params_read() argument 441 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_bf_params_read() [all …]
|
| H A D | debugfs.h | 17 size_t count, loff_t *ppos) \ 26 return iwl_dbgfs_##name##_write(arg, buf, buf_size, ppos); \
|
| /src/sys/compat/linuxkpi/common/src/ |
| H A D | linux_simple_attr.c | 103 loff_t *ppos) in simple_attr_read() argument 124 ret = simple_read_from_buffer(buf, read_size, ppos, prebuf, in simple_attr_read() 151 size_t write_size, loff_t *ppos, bool is_signed) in simple_attr_write_common() argument 163 if (*ppos != 0 || write_size < 1) in simple_attr_write_common() 199 loff_t *ppos) in simple_attr_write() argument 201 return (simple_attr_write_common(filp, buf, write_size, ppos, false)); in simple_attr_write() 206 size_t write_size, loff_t *ppos) in simple_attr_write_signed() argument 208 return (simple_attr_write_common(filp, buf, write_size, ppos, true)); in simple_attr_write_signed()
|
| H A D | linux_seq_file.c | 43 seq_read(struct linux_file *f, char __user *ubuf, size_t size, off_t *ppos) in seq_read() argument 54 p = m->op->start(m, ppos); in seq_read() 63 return (simple_read_from_buffer(ubuf, size, ppos, sbuf_data(sbuf), in seq_read()
|
| /src/sys/contrib/dev/athk/ath10k/ |
| H A D | debug.c | 196 size_t count, loff_t *ppos) in ath10k_read_wmi_services() argument 232 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_wmi_services() 489 size_t count, loff_t *ppos) in ath10k_fw_stats_read() argument 494 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_fw_stats_read() 507 size_t count, loff_t *ppos) in ath10k_debug_fw_reset_stats_read() argument 531 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_debug_fw_reset_stats_read() 567 size_t count, loff_t *ppos) in ath10k_read_simulate_fw_crash() argument 576 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath10k_read_simulate_fw_crash() 588 size_t count, loff_t *ppos) in ath10k_write_simulate_fw_crash() argument 596 if (*ppos != 0 || count >= sizeof(buf) || count == 0) in ath10k_write_simulate_fw_crash() [all …]
|
| H A D | debugfs_sta.c | 179 size_t count, loff_t *ppos) in ath10k_dbg_sta_read_aggr_mode() argument 193 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_dbg_sta_read_aggr_mode() 198 size_t count, loff_t *ppos) in ath10k_dbg_sta_write_aggr_mode() argument 241 size_t count, loff_t *ppos) in ath10k_dbg_sta_write_addba() argument 250 ret = simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, in ath10k_dbg_sta_write_addba() 292 size_t count, loff_t *ppos) in ath10k_dbg_sta_write_addba_resp() argument 301 ret = simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, in ath10k_dbg_sta_write_addba_resp() 342 size_t count, loff_t *ppos) in ath10k_dbg_sta_write_delba() argument 351 ret = simple_write_to_buffer(buf, sizeof(buf) - 1, ppos, in ath10k_dbg_sta_write_delba() 394 loff_t *ppos) in ath10k_dbg_sta_read_peer_debug_trigger() argument [all …]
|
| H A D | spectral.c | 274 size_t count, loff_t *ppos) in read_file_spec_scan_ctl() argument 298 return simple_read_from_buffer(user_buf, count, ppos, mode, len); in read_file_spec_scan_ctl() 303 size_t count, loff_t *ppos) in write_file_spec_scan_ctl() argument 366 size_t count, loff_t *ppos) in read_file_spectral_count() argument 378 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_spectral_count() 383 size_t count, loff_t *ppos) in write_file_spectral_count() argument 413 size_t count, loff_t *ppos) in read_file_spectral_bins() argument 429 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in read_file_spectral_bins() 434 size_t count, loff_t *ppos) in write_file_spectral_bins() argument
|
| /src/sys/contrib/dev/athk/ath11k/ |
| H A D | debugfs.c | 181 size_t count, loff_t *ppos) in ath11k_read_pdev_stats() argument 186 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_pdev_stats() 252 size_t count, loff_t *ppos) in ath11k_read_vdev_stats() argument 257 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_vdev_stats() 336 size_t count, loff_t *ppos) in ath11k_read_bcn_stats() argument 341 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_bcn_stats() 354 size_t count, loff_t *ppos) in ath11k_read_simulate_fw_crash() argument 361 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath11k_read_simulate_fw_crash() 373 size_t count, loff_t *ppos) in ath11k_write_simulate_fw_crash() argument 391 if (*ppos != 0 || count >= sizeof(buf) || count == 0) in ath11k_write_simulate_fw_crash() [all …]
|
| H A D | debugfs_sta.c | 138 size_t count, loff_t *ppos) in ath11k_dbg_sta_dump_tx_stats() argument 229 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_dbg_sta_dump_tx_stats() 245 size_t count, loff_t *ppos) in ath11k_dbg_sta_dump_rx_stats() argument 327 retval = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_dbg_sta_dump_rx_stats() 394 size_t count, loff_t *ppos) in ath11k_dbg_sta_read_htt_peer_stats() argument 402 return simple_read_from_buffer(user_buf, count, ppos, buf, length); in ath11k_dbg_sta_read_htt_peer_stats() 415 size_t count, loff_t *ppos) in ath11k_dbg_sta_write_peer_pktlog() argument 455 size_t count, loff_t *ppos) in ath11k_dbg_sta_read_peer_pktlog() argument 469 return simple_read_from_buffer(ubuf, count, ppos, buf, len); in ath11k_dbg_sta_read_peer_pktlog() 482 size_t count, loff_t *ppos) in ath11k_dbg_sta_write_delba() argument [all …]
|
| H A D | spectral.c | 272 size_t count, loff_t *ppos) in ath11k_read_file_spec_scan_ctl() argument 296 return simple_read_from_buffer(user_buf, count, ppos, mode, len); in ath11k_read_file_spec_scan_ctl() 301 size_t count, loff_t *ppos) in ath11k_write_file_spec_scan_ctl() argument 366 size_t count, loff_t *ppos) in ath11k_read_file_spectral_count() argument 378 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_file_spectral_count() 383 size_t count, loff_t *ppos) in ath11k_write_file_spectral_count() argument 413 size_t count, loff_t *ppos) in ath11k_read_file_spectral_bins() argument 428 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath11k_read_file_spectral_bins() 433 size_t count, loff_t *ppos) in ath11k_write_file_spectral_bins() argument
|
| /src/sys/contrib/dev/iwlwifi/mld/ |
| H A D | debugfs.h | 37 size_t count, loff_t *ppos) \ 50 return simple_read_from_buffer(user_buf, count, ppos, \ 103 size_t count, loff_t *ppos) \ 148 size_t count, loff_t *ppos) \ 164 size_t count, loff_t *ppos) \ 173 user_buf, count, ppos, \ 180 return simple_read_from_buffer(user_buf, count, ppos, \ 220 size_t count, loff_t *ppos) \
|
| /src/sys/contrib/openzfs/module/os/linux/spl/ |
| H A D | spl-proc.c | 71 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_domemused() argument 83 *ppos += *lenp; in proc_domemused() 86 rc = proc_doulongvec_minmax(&dummy, write, buffer, lenp, ppos); in proc_domemused() 95 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_doslab() argument 108 *ppos += *lenp; in proc_doslab() 134 rc = proc_doulongvec_minmax(&dummy, write, buffer, lenp, ppos); in proc_doslab() 142 void __user *buffer, size_t *lenp, loff_t *ppos) in proc_dohostid() argument 156 proc_dostring(&dummy, write, buffer, lenp, ppos); in proc_dohostid()
|
| /src/sys/compat/linuxkpi/common/include/linux/ |
| H A D | fs.h | 364 simple_read_from_buffer(void __user *dest, size_t read_size, loff_t *ppos, in simple_read_from_buffer() argument 367 void *read_pos = ((char *) orig) + *ppos; in simple_read_from_buffer() 368 size_t buf_remain = buf_size - *ppos; in simple_read_from_buffer() 371 if (*ppos >= buf_size || read_size == 0) in simple_read_from_buffer() 381 *ppos += num_read; in simple_read_from_buffer() 415 loff_t *ppos); 418 size_t write_size, loff_t *ppos); 421 size_t write_size, loff_t *ppos);
|
| /src/usr.sbin/spi/ |
| H A D | spi.c | 406 const char *ppos; in interpret_command_bytes() local 420 ppos = parg; in interpret_command_bytes() 422 while (*ppos) { in interpret_command_bytes() 423 while (*ppos && *ppos <= ' ') { in interpret_command_bytes() 424 ppos++; /* skip (optional) leading white space */ in interpret_command_bytes() 427 if (!*ppos) in interpret_command_bytes() 430 ch = hexval(*(ppos++)); in interpret_command_bytes() 431 if (ch < 0 || !*ppos) { /* must be valid pair of hex characters */ in interpret_command_bytes() 436 ch2 = hexval(*(ppos++)); in interpret_command_bytes()
|
| /src/sys/contrib/vchiq/interface/vchiq_arm/ |
| H A D | vchiq_debugfs.c | 125 size_t count, loff_t *ppos) in debugfs_log_write() argument 150 *ppos += count; in debugfs_log_write() 234 size_t count, loff_t *ppos) in debugfs_trace_write() argument 258 *ppos += count; in debugfs_trace_write()
|
| /src/sys/fs/ext2fs/ |
| H A D | ext2_extents.c | 603 int error, depth, i, ppos, alloc; in ext4_ext_find_extent() local 607 ppos = 0; in ext4_ext_find_extent() 632 ext4_ext_binsearch_index(&path[ppos], block); in ext4_ext_find_extent() 633 blk = ext4_ext_index_pblock(path[ppos].ep_index); in ext4_ext_find_extent() 634 path[ppos].ep_depth = i; in ext4_ext_find_extent() 635 path[ppos].ep_ext = NULL; in ext4_ext_find_extent() 643 ppos++; in ext4_ext_find_extent() 644 if (ppos > depth) { in ext4_ext_find_extent() 652 ext4_ext_fill_path_bdata(&path[ppos], bp, blk); in ext4_ext_find_extent() 655 eh = ext4_ext_block_header(path[ppos].ep_data); in ext4_ext_find_extent() [all …]
|
| /src/sys/compat/lindebugfs/ |
| H A D | lindebugfs.c | 668 loff_t *ppos) in fops_str_read() argument 692 ret = simple_read_from_buffer(ubuf, read_size, ppos, in fops_str_read() 702 loff_t *ppos) in fops_str_write() argument 718 if (*ppos && *ppos != old_len) in fops_str_write() 775 fops_blob_read(struct file *filp, char __user *ubuf, size_t read_size, loff_t *ppos) in fops_blob_read() argument 785 return (simple_read_from_buffer(ubuf, read_size, ppos, blob->data, blob->size)); in fops_blob_read()
|
| /src/contrib/wpa/src/eap_server/ |
| H A D | ikev2.c | 213 const u8 *pend, *ppos; in ikev2_parse_proposal() local 257 ppos = (const u8 *) (p + 1); in ikev2_parse_proposal() 259 if (p->spi_size > pend - ppos) { in ikev2_parse_proposal() 266 ppos, p->spi_size); in ikev2_parse_proposal() 267 ppos += p->spi_size; in ikev2_parse_proposal() 286 int tlen = ikev2_parse_transform(data, prop, ppos, pend); in ikev2_parse_proposal() 289 ppos += tlen; in ikev2_parse_proposal() 292 if (ppos != pend) { in ikev2_parse_proposal()
|
| /src/contrib/wpa/src/eap_peer/ |
| H A D | ikev2.c | 203 const u8 *pend, *ppos; in ikev2_parse_proposal() local 250 ppos = (const u8 *) (p + 1); in ikev2_parse_proposal() 252 if (p->spi_size > pend - ppos) { in ikev2_parse_proposal() 259 ppos, p->spi_size); in ikev2_parse_proposal() 260 ppos += p->spi_size; in ikev2_parse_proposal() 280 int tlen = ikev2_parse_transform(prop, ppos, pend); in ikev2_parse_proposal() 283 ppos += tlen; in ikev2_parse_proposal() 286 if (ppos != pend) { in ikev2_parse_proposal()
|