Home
last modified time | relevance | path

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

12

/freebsd-13.1/usr.bin/indent/
H A Dlexi.c196 *buf_ptr == '_' || *buf_ptr == '$' || in lexi()
197 (buf_ptr[0] == '.' && isdigit((unsigned char)buf_ptr[1]))) { in lexi()
204 (buf_ptr[0] == '.' && isdigit((unsigned char)buf_ptr[1]))) { in lexi()
226 *buf_ptr == '_' || *buf_ptr == '$') { in lexi()
230 buf_ptr += 2; in lexi()
245 (*buf_ptr == '"' || *buf_ptr == '\'')) in lexi()
345 ((*buf_ptr == '*' && buf_ptr[1] != '=') || in lexi()
507 buf_ptr++; in lexi()
518 if (*buf_ptr == '>' || *buf_ptr == '<' || *buf_ptr == '=') { in lexi()
537 while (*buf_ptr == '*' || isspace((unsigned char)*buf_ptr)) { in lexi()
[all …]
H A Dpr_comment.c114 if (*buf_ptr == '-' || *buf_ptr == '*' || in pr_comment()
164 start = buf_ptr >= save_com && buf_ptr < save_com + sc_size ? in pr_comment()
170 while (*buf_ptr == ' ' || *buf_ptr == '\t') in pr_comment()
171 buf_ptr++; in pr_comment()
219 while (*++buf_ptr == ' ' || *buf_ptr == '\t') in pr_comment()
223 if (++buf_ptr >= buf_end) in pr_comment()
273 if (*buf_ptr == '/') in pr_comment()
276 } while (*buf_ptr == ' ' || *buf_ptr == '\t'); in pr_comment()
289 if (++buf_ptr >= buf_end) in pr_comment()
312 *e_com = *buf_ptr++; in pr_comment()
[all …]
H A Dindent.c69 char *buf_ptr, *buf_end; variable
294 char *p = buf_ptr; in main()
366 *sc_end = *buf_ptr++; in main()
367 if (buf_ptr >= buf_end) in main()
397 if (++buf_ptr >= buf_end) in main()
399 if (*buf_ptr == '\n') in main()
486 while (*buf_ptr == ' ' || *buf_ptr == '\t') { in main()
487 *sc_end++ = *buf_ptr++; in main()
1098 while (*buf_ptr == ' ' || *buf_ptr == '\t') { in main()
1099 buf_ptr++; in main()
[all …]
H A Dio.c293 buf_ptr = bp_save; /* do not read anything, just switch buffers */ in fill_buffer()
296 if (buf_ptr < buf_end) in fill_buffer()
321 buf_ptr = in_buffer; in fill_buffer()
H A Dindent_globs.h130 extern char *buf_ptr; /* ptr to next character to be taken
/freebsd-13.1/contrib/byacc/
H A Dmstring.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()
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()
212 free(buf_ptr); in mstring_leaks()
[all …]
/freebsd-13.1/contrib/subversion/subversion/libsvn_subr/
H A Dsubst.c450 char *buf_ptr; in translate_keyword_subst() local
492 buf_ptr += 2; in translate_keyword_subst()
493 while (*buf_ptr != '$') in translate_keyword_subst()
494 *(buf_ptr++) = ' '; in translate_keyword_subst()
523 buf_ptr[0] = ':'; in translate_keyword_subst()
524 buf_ptr[1] = ' '; in translate_keyword_subst()
540 buf_ptr[2] = '$'; in translate_keyword_subst()
564 buf_ptr[0] = '$'; in translate_keyword_subst()
570 buf_ptr[0] = ':'; in translate_keyword_subst()
571 buf_ptr[1] = ' '; in translate_keyword_subst()
[all …]
/freebsd-13.1/sys/contrib/octeon-sdk/
H A Dcvmx-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()
H A Docteon-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()
H A Dcvmx-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()
H A Dcvmx-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;
H A Dcvmx-srio.h544 int cvmx_srio_omsg_desc (uint64_t port, cvmx_buf_ptr_t *buf_ptr,
/freebsd-13.1/sys/dev/cfe/
H A Dcfe_api.c278 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(name); in cfe_getdevinfo()
429 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(buffer); in cfe_ioctl()
452 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(name); in cfe_open()
483 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(buffer); in cfe_readblk()
551 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(buffer); in cfe_writeblk()
H A Dcfe_api_int.h97 cfe_xptr_t buf_ptr; /* pointer to a buffer */ member
/freebsd-13.1/contrib/hyperv/tools/
H A Dhv_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.1/sys/contrib/openzfs/module/os/linux/zfs/
H A Dabd_os.c1027 bio_map(struct bio *bio, void *buf_ptr, unsigned int bio_size) in bio_map() argument
1032 offset = offset_in_page(buf_ptr); in bio_map()
1042 if (is_vmalloc_addr(buf_ptr)) in bio_map()
1043 page = vmalloc_to_page(buf_ptr); in bio_map()
1045 page = virt_to_page(buf_ptr); in bio_map()
1057 buf_ptr += size; in bio_map()
/freebsd-13.1/contrib/flex/src/
H A DFlexLexer.h152 void yyunput( int c, char* buf_ptr );
H A Dflex.skl929 static void yyunput ( int c, char *buf_ptr M4_YY_PROTO_LAST_ARG);
/freebsd-13.1/contrib/bmake/
H A Dparse.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.1/sys/contrib/alpine-hal/
H A Dal_hal_udma.h86 uint64_t buf_ptr; member
/freebsd-13.1/sbin/camcontrol/
H A Dcamcontrol.c4775 u_int8_t *buf_ptr = data_ptr; in scsicmd() local
4778 amt_read = read(STDIN_FILENO, buf_ptr, amt_to_read)) { in scsicmd()
4785 buf_ptr += amt_read; in scsicmd()
4924 u_int8_t *buf_ptr = data_ptr; in scsicmd() local
4927 (amt_written =write(1, buf_ptr,amt_to_write))> 0;){ in scsicmd()
4929 buf_ptr += amt_written; in scsicmd()
7736 u_int8_t *buf_ptr = smp_request; in smpcmd() local
7746 buf_ptr += amt_read; in smpcmd()
7796 u_int8_t *buf_ptr = smp_response; in smpcmd() local
7799 (amt_written = write(STDOUT_FILENO, buf_ptr, in smpcmd()
[all …]
/freebsd-13.1/usr.sbin/ctladm/
H A Dctladm.c987 u_int8_t *buf_ptr = (uint8_t *)&err_desc.custom_sense; in cctl_error_inject() local
990 amt_read = read(STDIN_FILENO, buf_ptr, amt_to_read)) { in cctl_error_inject()
997 buf_ptr += amt_read; in cctl_error_inject()
/freebsd-13.1/crypto/heimdal/lib/asn1/
H A Dlex.c909 static void yyunput (int c,char *buf_ptr );
/freebsd-13.1/sys/cam/scsi/
H A Dscsi_all.c4716 uint8_t *buf_ptr; in scsi_sense_generic_sbuf() local
4720 buf_ptr = (uint8_t *)&header[1]; in scsi_sense_generic_sbuf()
4722 for (i = 0; i < header->length; i++, buf_ptr++) in scsi_sense_generic_sbuf()
4723 sbuf_printf(sb, " %02x", *buf_ptr); in scsi_sense_generic_sbuf()
/freebsd-13.1/usr.bin/lex/
H A Dinitscan.c2057 static void yyunput ( int c, char *buf_ptr );

12