Home
last modified time | relevance | path

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

12

/freebsd-13-stable/usr.bin/indent/
HDlexi.c185 while (*buf_ptr == ' ' || *buf_ptr == '\t') { /* get rid of blanks */ in lexi()
188 if (++buf_ptr >= buf_end) in lexi()
193 if (isalnum((unsigned char)*buf_ptr) || in lexi()
194 *buf_ptr == '_' || *buf_ptr == '$' || in lexi()
195 (buf_ptr[0] == '.' && isdigit((unsigned char)buf_ptr[1]))) { in lexi()
201 if (isdigit((unsigned char)*buf_ptr) || in lexi()
202 (buf_ptr[0] == '.' && isdigit((unsigned char)buf_ptr[1]))) { in lexi()
207 i = (unsigned char)*buf_ptr; in lexi()
215 *e_token++ = *buf_ptr++; in lexi()
216 if (buf_ptr >= buf_end) in lexi()
[all …]
HDpr_comment.c112 if (*buf_ptr == '-' || *buf_ptr == '*' || in pr_comment()
113 (*buf_ptr == '\n' && !opt.format_block_comments)) { in pr_comment()
162 start = buf_ptr >= save_com && buf_ptr < save_com + sc_size ? in pr_comment()
164 ps.n_comment_delta = 1 - count_spaces_until(1, start, buf_ptr - 2); in pr_comment()
168 while (*buf_ptr == ' ' || *buf_ptr == '\t') in pr_comment()
169 buf_ptr++; in pr_comment()
174 if (*buf_ptr != ' ' && !ps.box_com) in pr_comment()
181 for (t_ptr = buf_ptr; *t_ptr != '\0' && *t_ptr != '\n'; t_ptr++) { in pr_comment()
185 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()
[all …]
HDindent.c67 char *buf_ptr, *buf_end; variable
163 buf_ptr = buf_end = in_buffer; in main()
292 char *p = buf_ptr; in main()
355 memcpy(sc_buf, in_buffer, buf_ptr - in_buffer - 4); in main()
356 save_com = sc_buf + (buf_ptr - in_buffer - 4); in main()
364 *sc_end = *buf_ptr++; in main()
365 if (buf_ptr >= buf_end) in main()
367 if (*sc_end++ == '*' && *buf_ptr == '/') in main()
377 if (++buf_ptr >= buf_end) /* get past / in buffer */ in main()
394 while (isspace((unsigned char)*buf_ptr)) { in main()
[all …]
HDio.c291 buf_ptr = bp_save; /* do not read anything, just switch buffers */ in fill_buffer()
294 if (buf_ptr < buf_end) in fill_buffer()
319 buf_ptr = in_buffer; in fill_buffer()
HDindent_globs.h129 extern char *buf_ptr; /* ptr to next character to be taken
/freebsd-13-stable/contrib/byacc/
HDmstring.c15 static char *buf_ptr; variable
32 buf_ptr = malloc(buf_len = 4096); in msprintf()
34 if (buf_ptr == 0) in msprintf()
43 len = (size_t) vsnprintf(buf_ptr, buf_len, fmt, args); in msprintf()
47 char *new_ptr = realloc(buf_ptr, (buf_len * 3) / 2); in msprintf()
50 free(buf_ptr); in msprintf()
51 buf_ptr = 0; in msprintf()
54 buf_ptr = new_ptr; in msprintf()
60 len = (size_t) vsprintf(buf_ptr, fmt, args); in msprintf()
89 memcpy(s->ptr, buf_ptr, len); in msprintf()
[all …]
/freebsd-13-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-13-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-13-stable/sys/dev/cfe/
HDcfe_api.c276 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(name); in cfe_getdevinfo()
427 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(buffer); in cfe_ioctl()
450 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(name); in cfe_open()
481 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(buffer); in cfe_readblk()
549 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(buffer); in cfe_writeblk()
HDcfe_api_int.h95 cfe_xptr_t buf_ptr; /* pointer to a buffer */ member
/freebsd-13-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-13-stable/sys/contrib/openzfs/module/os/linux/zfs/
HDabd_os.c1043 bio_map(struct bio *bio, void *buf_ptr, unsigned int bio_size) in bio_map() argument
1048 offset = offset_in_page(buf_ptr); in bio_map()
1058 if (is_vmalloc_addr(buf_ptr)) in bio_map()
1059 page = vmalloc_to_page(buf_ptr); in bio_map()
1061 page = virt_to_page(buf_ptr); in bio_map()
1073 buf_ptr += size; in bio_map()
/freebsd-13-stable/contrib/flex/src/
HDFlexLexer.h152 void yyunput( int c, char* buf_ptr );
HDflex.skl929 static void yyunput ( int c, char *buf_ptr M4_YY_PROTO_LAST_ARG);
/freebsd-13-stable/contrib/bmake/
HDparse.c143 char *buf_ptr; /* next char to be read */ member
2148 curFile->buf_ptr = curFile->buf.data; in Parse_PushInput()
2277 curFile->buf_ptr = curFile->buf.data; in ParseEOF()
2327 char *line = curFile->buf_ptr; in ParseRawLine()
2387 curFile->buf_ptr = p; in ParseRawLine()
/freebsd-13-stable/sys/contrib/alpine-hal/
HDal_hal_udma.h86 uint64_t buf_ptr; member
/freebsd-13-stable/sbin/camcontrol/
HDcamcontrol.c4887 u_int8_t *buf_ptr = data_ptr; in scsicmd() local
4890 amt_read = read(STDIN_FILENO, buf_ptr, amt_to_read)) { in scsicmd()
4897 buf_ptr += amt_read; in scsicmd()
5036 u_int8_t *buf_ptr = data_ptr; in scsicmd() local
5039 (amt_written =write(1, buf_ptr,amt_to_write))> 0;){ in scsicmd()
5041 buf_ptr += amt_written; in scsicmd()
7848 u_int8_t *buf_ptr = smp_request; in smpcmd() local
7851 amt_read = read(STDIN_FILENO, buf_ptr, amt_to_read)) { in smpcmd()
7858 buf_ptr += amt_read; in smpcmd()
7908 u_int8_t *buf_ptr = smp_response; in smpcmd() local
[all …]
/freebsd-13-stable/usr.sbin/ctladm/
HDctladm.c1000 u_int8_t *buf_ptr = (uint8_t *)&err_desc.custom_sense; in cctl_error_inject() local
1003 amt_read = read(STDIN_FILENO, buf_ptr, amt_to_read)) { in cctl_error_inject()
1010 buf_ptr += amt_read; in cctl_error_inject()
/freebsd-13-stable/crypto/heimdal/lib/asn1/
HDlex.c909 static void yyunput (int c,char *buf_ptr );
/freebsd-13-stable/sys/cam/scsi/
HDscsi_all.c4714 uint8_t *buf_ptr; in scsi_sense_generic_sbuf() local
4718 buf_ptr = (uint8_t *)&header[1]; in scsi_sense_generic_sbuf()
4720 for (i = 0; i < header->length; i++, buf_ptr++) in scsi_sense_generic_sbuf()
4721 sbuf_printf(sb, " %02x", *buf_ptr); in scsi_sense_generic_sbuf()
/freebsd-13-stable/usr.bin/lex/
HDinitscan.c2057 static void yyunput ( int c, char *buf_ptr );

12