preg
regcomp(regex_t *preg, const char *pattern, int cflags)
if (preg->re_endp < pattern)
len = preg->re_endp - pattern;
preg->re_nsub = g->nsub;
preg->re_g = g;
preg->re_magic = MAGIC1;
regfree(preg);
regatoi(const regex_t *preg, char *localbuf, int localbufsize)
if (strcmp(r->name, preg->re_endp) == 0)
regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size)
s = regatoi(preg, convbuf, sizeof convbuf);
regexec(const regex_t *preg, const char *string, size_t nmatch,
struct re_guts *g = preg->re_g;
if (preg->re_magic != MAGIC1 || g->magic != MAGIC2)
regfree(regex_t *preg)
if (preg->re_magic != MAGIC1) /* oops */
g = preg->re_g;
preg->re_magic = 0; /* mark it invalid */
RegExp_Arg *preg = (RegExp_Arg *)0;
preg = typeCalloc(RegExp_Arg, 1);
if (preg)
T((T_CREATE("RegExp_Arg %p"), (void *)preg));
if (((preg->pRegExp = typeMalloc(regex_t, 1)) != 0)
&& !regcomp(preg->pRegExp, rx,
T((T_CREATE("regex_t %p"), (void *)preg->pRegExp));
if ((preg->refCount = typeMalloc(unsigned long, 1)) != 0)
*(preg->refCount) = 1;
if (preg->pRegExp)
free(preg->pRegExp);
free(preg);
preg = (RegExp_Arg *)0;
return ((void *)preg);
regex_t preg;
if (regcomp(&preg, $3, REG_EXTENDED))
i = regexec(&preg, $1, 32, pmatch, 0);
(unsigned long)preg.re_nsub);
regfree(&preg);
regfree(&preg);
regfree(&preg);
regfree(&preg);
preg(LCD_PID, str(AMDISPLAY_PID), sc);
preg(LCD_CTRL, str(AMDISPLAY_CTRL), sc);
preg(LCD_RASTER_CTRL, str(AMDISPLAY_RASTER_CTRL), sc);
preg(LCD_RASTER_TIMING_0, str(AMDISPLAY_RASTER_TIMING_0), sc);
preg(LCD_RASTER_TIMING_1, str(AMDISPLAY_RASTER_TIMING_1), sc);
preg(LCD_RASTER_TIMING_2, str(AMDISPLAY_RASTER_TIMING_2), sc);
preg(LCD_RASTER_SUBPANEL, str(AMDISPLAY_RASTER_SUBPANEL), sc);
preg(LCD_RASTER_SUBPANEL_2, str(AMDISPLAY_RASTER_SUBPANEL_2), sc);
preg(LCD_LCDDMA_CTRL, str(AMDISPLAY_LCDDMA_CTRL), sc);
preg(LCD_LCDDMA_FB0_BASE, str(AMDISPLAY_LCDDMA_FB0_BASE), sc);
preg(LCD_LCDDMA_FB0_CEILING, str(AMDISPLAY_LCDDMA_FB0_CEILING), sc);
preg(LCD_LCDDMA_FB1_BASE, str(AMDISPLAY_LCDDMA_FB1_BASE), sc);
preg(LCD_LCDDMA_FB1_CEILING, str(AMDISPLAY_LCDDMA_FB1_CEILING), sc);
preg(LCD_SYSCONFIG, str(AMDISPLAY_SYSCONFIG), sc);
preg(LCD_IRQSTATUS_RAW, str(AMDISPLAY_IRQSTATUS_RAW), sc);
preg(LCD_IRQSTATUS, str(AMDISPLAY_IRQSTATUS), sc);
preg(LCD_IRQENABLE_SET, str(AMDISPLAY_IRQENABLE_SET), sc);
preg(LCD_IRQENABLE_CLEAR, str(AMDISPLAY_IRQENABLE_CLEAR), sc);
preg(LCD_CLKC_ENABLE, str(AMDISPLAY_CLKC_ENABLE), sc);
preg(LCD_CLKC_RESET, str(AMDISPLAY_CLKC_RESET), sc);
int *preg)
*preg = reg;
uint64_t preg;
preg = UCTL_UPHY_PORTX_STATUS + (port * 8);
port_ctl = bus_space_read_8(sc->sc_iot, sc->sc_ioh, preg);
bus_space_write_8(sc->sc_iot, sc->sc_ioh, preg, port_ctl);
u32 diff = node->preg ^ node->vreg;
node->offset, node->preg, node->vreg,
u32 preg;
u32 preg, vreg;
preg = intel_uncore_read_notrace(gvt->gt->uncore, _MMIO(offset));
if (preg != vreg) {
node->preg = preg;
regex_t preg;
if (regcomp(&preg, regex, REG_NOSUB|REG_EXTENDED))
if (regexec(&preg, repo, 0, NULL, 0) != REG_NOMATCH) {
regfree(&preg);
void flex_regcomp(regex_t *preg, const char *regex, int cflags);
void flex_regcomp(regex_t *preg, const char *regex, int cflags)
memset (preg, 0, sizeof (regex_t));
if ((err = regcomp (preg, regex, cflags)) != 0) {
regerror (err, preg, rxerr, errbuf_sz);
strregerror(int errcode, regex_t *preg)
s = regerror(errcode, preg, "", 0);
(void)regerror(errcode, preg, oe, s);
regexec_e(regex_t *preg, const char *string, int eflags,
if (preg == NULL) {
defpreg = preg;
u_int len, u_int *ppx, u_int *psx, const char *buf, const regex_t *preg,
while (regexec(preg, buf + px, 1, ®match, eflags) == 0) {
window_copy_search_back_overlap(struct grid *gd, regex_t *preg, u_int *ppx,
gd->sx, preg);
re_error(SCR *sp, int errcode, regex_t *preg)
s = regerror(errcode, preg, "", 0);
(void)regerror(errcode, preg, oe, s);
regex_t preg;
if (regcomp(&preg, pattern, cflags) != 0)
ret = regexec(&preg, string, 0, NULL, 0);
regfree(&preg);