Home
last modified time | relevance | path

Searched refs:buf_ptr (Results 1 – 25 of 28) sorted by relevance

12

/freebsd-11-stable/usr.bin/indent/
HDlexi.c143 while (*buf_ptr == ' ' || *buf_ptr == '\t') { /* get rid of blanks */ in lexi()
146 if (++buf_ptr >= buf_end) in lexi()
151 if (chartype[(int)*buf_ptr] == alphanum || (buf_ptr[0] == '.' && isdigit(buf_ptr[1]))) { in lexi()
160 if (isdigit(*buf_ptr) || (buf_ptr[0] == '.' && isdigit(buf_ptr[1]))) { in lexi()
169 if (*buf_ptr == '0') { in lexi()
170 if (buf_ptr[1] == 'b' || buf_ptr[1] == 'B') in lexi()
172 else if (buf_ptr[1] == 'x' || buf_ptr[1] == 'X') in lexi()
174 else if (isdigit(buf_ptr[1])) in lexi()
179 *e_token++ = *buf_ptr++; in lexi()
180 *e_token++ = *buf_ptr++; in lexi()
[all …]
HDpr_comment.c111 if (*buf_ptr == '-' || *buf_ptr == '*' || in pr_comment()
112 (*buf_ptr == '\n' && !format_block_comments)) { in pr_comment()
159 char *start = buf_ptr >= save_com && buf_ptr < save_com + sc_size ? bp_save : buf_ptr; in pr_comment()
164 while (*buf_ptr == ' ' || *buf_ptr == '\t') in pr_comment()
165 buf_ptr++; in pr_comment()
170 if (*buf_ptr != ' ' && !ps.box_com) in pr_comment()
177 for (t_ptr = buf_ptr; *t_ptr != '\0' && *t_ptr != '\n'; t_ptr++) { in pr_comment()
181 if (adj_max_col >= count_spaces_until(ps.com_col, buf_ptr, t_ptr + 2)) in pr_comment()
207 switch (*buf_ptr) { /* this checks for various spcl cases */ in pr_comment()
216 while (*++buf_ptr == ' ' || *buf_ptr == '\t') in pr_comment()
[all …]
HDindent.c144 buf_ptr = buf_end = in_buffer; in main()
290 char *p = buf_ptr; in main()
383 *sc_end = *buf_ptr++; in main()
384 if (buf_ptr >= buf_end) in main()
387 if (*sc_end++ == '*' && *buf_ptr == '/') in main()
398 if (++buf_ptr >= buf_end) /* get past / in buffer */ in main()
436 bp_save = buf_ptr; /* save current input buffer */ in main()
438 buf_ptr = save_com; /* fix so that subsequent calls to in main()
1066 while (*buf_ptr == ' ' || *buf_ptr == '\t') { in main()
1067 buf_ptr++; in main()
[all …]
HDio.c346 buf_ptr = bp_save; /* do not read anything, just switch buffers */ in fill_buffer()
349 if (buf_ptr < buf_end) in fill_buffer()
373 buf_ptr = in_buffer; in fill_buffer()
HDindent_globs.h127 char *buf_ptr; /* ptr to next character to be taken from variable
/freebsd-11-stable/contrib/byacc/
HDmstring.c17 static char *buf_ptr; variable
34 buf_ptr = malloc(buf_len = 4096); in msprintf()
36 if (buf_ptr == 0) in msprintf()
45 len = (size_t) vsnprintf(buf_ptr, buf_len, fmt, args); in msprintf()
49 char *new_ptr = realloc(buf_ptr, (buf_len * 3) / 2); in msprintf()
52 free(buf_ptr); in msprintf()
53 buf_ptr = 0; in msprintf()
56 buf_ptr = new_ptr; in msprintf()
62 len = (size_t) vsprintf(buf_ptr, fmt, args); in msprintf()
91 memcpy(s->ptr, buf_ptr, len); in msprintf()
[all …]
/freebsd-11-stable/contrib/gdb/gdb/tui/
HDtui-win.c843 char *buf_ptr = (char *) xstrdup (arg); in tui_set_focus() local
847 for (i = 0; (i < strlen (buf_ptr)); i++) in tui_set_focus()
848 buf_ptr[i] = toupper (arg[i]); in tui_set_focus()
850 if (subset_compare (buf_ptr, "NEXT")) in tui_set_focus()
852 else if (subset_compare (buf_ptr, "PREV")) in tui_set_focus()
855 win_info = tui_partial_win_by_name (buf_ptr); in tui_set_focus()
868 xfree (buf_ptr); in tui_set_focus()
944 char *buf_ptr = buf; in tui_set_win_height() local
949 wname = buf_ptr; in tui_set_win_height()
950 buf_ptr = strchr (buf_ptr, ' '); in tui_set_win_height()
[all …]
HDtui-layout.c414 char *buf_ptr; in tui_set_layout_for_display_command() local
419 buf_ptr = (char *) xstrdup (layout_name); in tui_set_layout_for_display_command()
421 buf_ptr[i] = toupper (buf_ptr[i]); in tui_set_layout_for_display_command()
424 if (strlen (buf_ptr) <= 1 && (*buf_ptr == 'S' || *buf_ptr == '$')) in tui_set_layout_for_display_command()
431 if (subset_compare (buf_ptr, "SRC")) in tui_set_layout_for_display_command()
433 else if (subset_compare (buf_ptr, "ASM")) in tui_set_layout_for_display_command()
435 else if (subset_compare (buf_ptr, "SPLIT")) in tui_set_layout_for_display_command()
437 else if (subset_compare (buf_ptr, "REGS") || in tui_set_layout_for_display_command()
438 subset_compare (buf_ptr, TUI_GENERAL_SPECIAL_REGS_NAME) || in tui_set_layout_for_display_command()
439 subset_compare (buf_ptr, TUI_GENERAL_REGS_NAME) || in tui_set_layout_for_display_command()
[all …]
/freebsd-11-stable/contrib/subversion/subversion/libsvn_subr/
HDsubst.c450 char *buf_ptr; in translate_keyword_subst() local
469 buf_ptr = buf + 1 + keyword_len; in translate_keyword_subst()
478 if ((buf_ptr[0] == ':') /* first char after keyword is ':' */ in translate_keyword_subst()
479 && (buf_ptr[1] == ':') /* second char after keyword is ':' */ in translate_keyword_subst()
480 && (buf_ptr[2] == ' ') /* third char after keyword is ' ' */ in translate_keyword_subst()
492 buf_ptr += 2; in translate_keyword_subst()
493 while (*buf_ptr != '$') in translate_keyword_subst()
494 *(buf_ptr++) = ' '; in translate_keyword_subst()
500 strncpy(buf_ptr + 3, value->data, value->len); in translate_keyword_subst()
501 buf_ptr += 3 + value->len; in translate_keyword_subst()
[all …]
/freebsd-11-stable/sys/contrib/octeon-sdk/
HDcvmx-pko.c291 uint64_t *buf_ptr = NULL; in __cvmx_pko_iport_config() local
420 buf_ptr = (uint64_t*)cvmx_cmd_queue_buffer( in __cvmx_pko_iport_config()
422 config.s.buf_ptr = cvmx_ptr_to_phys(buf_ptr) >> 7; in __cvmx_pko_iport_config()
755 config.s.buf_ptr = 0; in cvmx_pko_shutdown()
873 uint64_t *buf_ptr = NULL; in cvmx_pko_config_port() local
942 buf_ptr = (uint64_t*)cvmx_cmd_queue_buffer( in cvmx_pko_config_port()
944 config.s.buf_ptr = cvmx_ptr_to_phys(buf_ptr); in cvmx_pko_config_port()
947 config.s.buf_ptr = 0; in cvmx_pko_config_port()
HDocteon-pci-console.c312 char *buf_ptr; in octeon_pci_console_write() local
321 buf_ptr = (char*)cvmx_phys_to_ptr(cons_ptr->output_base_addr); in octeon_pci_console_write()
335 memcpy(buf_ptr + cons_ptr->output_write_index, buffer + bytes_written, write_size); in octeon_pci_console_write()
367 char *buf_ptr; in octeon_pci_console_read() local
375 buf_ptr = (char*)cvmx_phys_to_ptr(cons_ptr->input_base_addr); in octeon_pci_console_read()
406 memcpy(buffer, buf_ptr + cons_ptr->input_read_index, read_size); in octeon_pci_console_read()
HDcvmx-srio.c1563 int cvmx_srio_omsg_desc (uint64_t port, cvmx_buf_ptr_t *buf_ptr, in cvmx_srio_omsg_desc() argument
1574 if (buf_ptr == NULL) in cvmx_srio_omsg_desc()
1586 desc_addr = (uint64_t *) cvmx_phys_to_ptr ((*buf_ptr).s.addr); in cvmx_srio_omsg_desc()
1593 hdr_addr = (uint64_t *) cvmx_phys_to_ptr ((*buf_ptr).s.addr); in cvmx_srio_omsg_desc()
1597 (*buf_ptr).s.addr += 8; in cvmx_srio_omsg_desc()
1598 (*buf_ptr).s.size -= 8; /* last buffer or not */ in cvmx_srio_omsg_desc()
1599 if ((*buf_ptr).s.addr >> 7 > ((*buf_ptr).s.addr - 8) >> 7) in cvmx_srio_omsg_desc()
1600 (*buf_ptr).s.back++; in cvmx_srio_omsg_desc()
1602 cvmx_phys_to_ptr ((*buf_ptr).s.addr); in cvmx_srio_omsg_desc()
HDcvmx-pko-defs.h1450 uint64_t buf_ptr : 33; /**< Command word pointer */ member
1456 uint64_t buf_ptr : 33;
1477 uint64_t buf_ptr : 33; /**< Command word pointer */ member
1483 uint64_t buf_ptr : 33;
1522 uint64_t buf_ptr : 33; /**< Command word pointer */ member
1528 uint64_t buf_ptr : 33;
1880 uint64_t buf_ptr : 31; /**< Command buffer pointer[37:7] */ member
1892 uint64_t buf_ptr : 31;
2219 uint64_t buf_ptr : 36; /**< Command buffer pointer, <23:17> MBZ */ member
2229 uint64_t buf_ptr : 36;
HDcvmx-srio.h544 int cvmx_srio_omsg_desc (uint64_t port, cvmx_buf_ptr_t *buf_ptr,
/freebsd-11-stable/sys/dev/cfe/
HDcfe_api.c256 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(name); in cfe_getdevinfo()
407 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(buffer); in cfe_ioctl()
430 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(name); in cfe_open()
461 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(buffer); in cfe_readblk()
529 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(buffer); in cfe_writeblk()
HDcfe_api_int.h96 cfe_xptr_t buf_ptr; /* pointer to a buffer */ member
/freebsd-11-stable/contrib/hyperv/tools/
HDhv_kvp_daemon.c611 char *buf_ptr, *p; in kvp_mac_to_if_name() local
620 buf_ptr = strdup(ether_ntoa((struct ether_addr *)(LLADDR(sdl)))); in kvp_mac_to_if_name()
621 if (buf_ptr != NULL) { in kvp_mac_to_if_name()
622 for (p = buf_ptr; *p != '\0'; p++) in kvp_mac_to_if_name()
625 if (strncmp(buf_ptr, mac, strlen(mac)) == 0) { in kvp_mac_to_if_name()
628 free(buf_ptr); in kvp_mac_to_if_name()
631 free(buf_ptr); in kvp_mac_to_if_name()
/freebsd-11-stable/contrib/flex/
HDFlexLexer.h137 void yyunput( int c, char* buf_ptr );
/freebsd-11-stable/sys/dev/drm/
HDmach64_dma.c1185 u32 *buf_ptr; in mach64_do_dispatch_pseudo_dma() local
1257 buf_ptr = (u32 *) ((char *)GETBUFPTR(buf) + offset); in mach64_do_dispatch_pseudo_dma()
1268 reg = le32_to_cpu(*buf_ptr++); in mach64_do_dispatch_pseudo_dma()
1295 MACH64_WRITE(reg, le32_to_cpu(*buf_ptr++)); in mach64_do_dispatch_pseudo_dma()
/freebsd-11-stable/sys/contrib/alpine-hal/
HDal_hal_udma.h87 uint64_t buf_ptr; member
/freebsd-11-stable/sbin/camcontrol/
HDcamcontrol.c4620 u_int8_t *buf_ptr = data_ptr; in scsicmd() local
4623 amt_read = read(STDIN_FILENO, buf_ptr, amt_to_read)) { in scsicmd()
4630 buf_ptr += amt_read; in scsicmd()
4769 u_int8_t *buf_ptr = data_ptr; in scsicmd() local
4772 (amt_written =write(1, buf_ptr,amt_to_write))> 0;){ in scsicmd()
4774 buf_ptr += amt_written; in scsicmd()
7555 u_int8_t *buf_ptr = smp_request; in smpcmd() local
7558 amt_read = read(STDIN_FILENO, buf_ptr, amt_to_read)) { in smpcmd()
7565 buf_ptr += amt_read; in smpcmd()
7615 u_int8_t *buf_ptr = smp_response; in smpcmd() local
[all …]
/freebsd-11-stable/usr.sbin/ctladm/
HDctladm.c877 u_int8_t *buf_ptr = (uint8_t *)&err_desc.custom_sense; in cctl_error_inject() local
880 amt_read = read(STDIN_FILENO, buf_ptr, amt_to_read)) { in cctl_error_inject()
887 buf_ptr += amt_read; in cctl_error_inject()
/freebsd-11-stable/crypto/heimdal/lib/asn1/
HDlex.c909 static void yyunput (int c,char *buf_ptr );
/freebsd-11-stable/sys/cam/scsi/
HDscsi_all.c4704 uint8_t *buf_ptr; in scsi_sense_generic_sbuf() local
4708 buf_ptr = (uint8_t *)&header[1]; in scsi_sense_generic_sbuf()
4710 for (i = 0; i < header->length; i++, buf_ptr++) in scsi_sense_generic_sbuf()
4711 sbuf_printf(sb, " %02x", *buf_ptr); in scsi_sense_generic_sbuf()
/freebsd-11-stable/usr.bin/lex/
HDinitscan.c2073 static void yyunput (int c,char *buf_ptr );

12