Searched refs:pe (Results 1 - 25 of 152) sorted by relevance

1234567

/freebsd-current/contrib/elftoolchain/libpe/
H A Dpe_coff.c36 pe_coff_header(PE *pe) argument
39 if (pe->pe_ch == NULL) {
44 return (pe->pe_ch);
48 pe_opt_header(PE *pe) argument
51 if (pe->pe_oh == NULL) {
56 return (pe->pe_oh);
60 pe_data_dir(PE *pe) argument
63 if (pe->pe_dd == NULL) {
68 return (pe->pe_dd);
72 pe_update_coff_header(PE *pe, PE_CoffHd argument
104 pe_update_opt_header(PE *pe, PE_OptHdr *oh) argument
132 pe_update_data_dir(PE *pe, PE_DataDir *dd) argument
[all...]
H A Dpe_update.c36 pe_update(PE *pe) argument
40 if (pe == NULL) {
45 if (pe->pe_cmd == PE_C_READ || pe->pe_flags & LIBPE_F_FD_DONE) {
50 if (pe->pe_cmd == PE_C_RDWR || (pe->pe_cmd == PE_C_WRITE &&
51 (pe->pe_flags & LIBPE_F_SPECIAL_FILE) == 0)) {
52 if (lseek(pe->pe_fd, 0, SEEK_SET) < 0) {
60 if (pe->pe_obj == PE_O_PE32 || pe
[all...]
H A Dpe_dos.c37 pe_msdos_header(PE *pe) argument
40 if (pe == NULL) {
45 if (pe->pe_dh == NULL) {
50 return (pe->pe_dh);
54 pe_msdos_stub(PE *pe, size_t *len) argument
57 if (pe == NULL || len == NULL) {
62 if (pe->pe_stub_ex > 0 &&
63 (pe->pe_flags & LIBPE_F_LOAD_DOS_STUB) == 0) {
64 assert((pe->pe_flags & LIBPE_F_SPECIAL_FILE) == 0);
65 (void) libpe_read_msdos_stub(pe);
74 ps_update_msdos_header(PE *pe, PE_DosHdr *dh) argument
102 ps_update_msdos_stub(PE *pe, char *dos_stub, size_t sz) argument
[all...]
H A Dpe_init.c38 PE *pe; local
40 if ((pe = calloc(1, sizeof(*pe))) == NULL) {
44 pe->pe_fd = fd;
45 pe->pe_cmd = c;
46 pe->pe_obj = o;
47 STAILQ_INIT(&pe->pe_scn);
52 if (libpe_open_object(pe) < 0)
68 return (pe);
71 pe_finish(pe);
76 pe_finish(PE *pe) argument
86 pe_object(PE *pe) argument
[all...]
H A Dpe_cntl.c34 pe_cntl(PE *pe, PE_Cmd cmd) argument
37 if (pe == NULL) {
44 pe->pe_flags |= LIBPE_F_FD_DONE;
48 if (pe->pe_cmd == PE_C_WRITE) {
52 if (libpe_load_all_sections(pe) < 0)
H A Dlibpe_dos.c40 libpe_parse_msdos_header(PE *pe, char *hdr) argument
47 if ((pe->pe_stub = malloc(sizeof(PE_DosHdr))) == NULL) {
51 memcpy(pe->pe_stub, hdr, sizeof(PE_DosHdr));
57 pe->pe_dh = dh;
78 pe->pe_flags |= LIBPE_F_BAD_DOS_HEADER;
91 if (dh->dh_lfanew > pe->pe_fsize - 4) {
92 pe->pe_flags |= LIBPE_F_BAD_DOS_HEADER;
97 (pe->pe_flags & LIBPE_F_SPECIAL_FILE)) {
98 pe->pe_flags |= LIBPE_F_BAD_DOS_HEADER;
103 pe
136 libpe_read_msdos_stub(PE *pe) argument
208 libpe_write_msdos_stub(PE *pe, off_t off) argument
[all...]
H A Dlibpe_init.c38 libpe_open_object(PE *pe) argument
44 if (fstat(pe->pe_fd, &sb) < 0)
48 pe->pe_fsize = (size_t) sb.st_size;
58 if (pe->pe_cmd == PE_C_RDWR && !S_ISREG(mode)) {
64 if (S_ISREG(mode) && pe->pe_fsize < sizeof(PE_CoffHdr)) {
73 if (read(pe->pe_fd, magic, 2) != 2) {
79 pe->pe_obj = PE_O_PE32;
80 if (read(pe->pe_fd, &magic[2], sizeof(PE_DosHdr) - 2) !=
85 return (libpe_parse_msdos_header(pe, magic));
88 if (read(pe
116 libpe_release_object(PE *pe) argument
[all...]
H A Dpe_rich.c35 pe_rich_header(PE *pe) argument
38 if (pe == NULL) {
43 if (pe->pe_rh == NULL && pe->pe_stub_ex > 0 &&
44 (pe->pe_flags & LIBPE_F_LOAD_DOS_STUB) == 0) {
45 assert((pe->pe_flags & LIBPE_F_SPECIAL_FILE) == 0);
46 (void) libpe_read_msdos_stub(pe);
49 if (pe->pe_rh == NULL) {
54 return (pe->pe_rh);
67 pe_rich_header_validate(PE *pe) argument
[all...]
H A Dpe_flag.c34 pe_flag(PE *pe, PE_Cmd c, unsigned int flags) argument
37 if (pe == NULL || (c != PE_C_SET && c != PE_C_CLR)) {
49 pe->pe_flags |= flags;
51 pe->pe_flags &= ~flags;
57 pe_flag_dos_header(PE *pe, PE_Cmd c, unsigned int flags) argument
60 if (pe == NULL || (c != PE_C_SET && c != PE_C_CLR) ||
67 pe->pe_flags |= LIBPE_F_DIRTY_DOS_HEADER;
69 pe->pe_flags &= ~LIBPE_F_DIRTY_DOS_HEADER;
75 pe_flag_coff_header(PE *pe, PE_Cmd c, unsigned int flags) argument
78 if (pe
93 pe_flag_opt_header(PE *pe, PE_Cmd c, unsigned int flags) argument
111 pe_flag_data_dir(PE *pe, PE_Cmd c, unsigned int flags) argument
149 PE *pe; local
[all...]
H A Dpe_section.c35 pe_getscn(PE *pe, size_t ndx) argument
39 if (pe == NULL || ndx < 1 || ndx > 0xFFFFU) {
44 STAILQ_FOREACH(ps, &pe->pe_scn, ps_next) {
67 pe_nextscn(PE *pe, PE_Scn *ps) argument
70 if (pe == NULL) {
76 ps = STAILQ_FIRST(&pe->pe_scn);
90 pe_newscn(PE *pe) argument
94 if (pe == NULL) {
99 if (pe->pe_cmd == PE_C_READ || pe
122 pe_insertscn(PE *pe, size_t ndx) argument
195 PE *pe; local
[all...]
H A Dlibpe_section.c39 libpe_alloc_scn(PE *pe) argument
48 ps->ps_pe = pe;
56 PE *pe; local
61 pe = ps->ps_pe;
63 STAILQ_REMOVE(&pe->pe_scn, ps, _PE_Scn, ps_next);
84 sort_sections(PE *pe) argument
87 if (STAILQ_EMPTY(&pe->pe_scn))
91 STAILQ_SORT(&pe->pe_scn, _PE_Scn, ps_next, cmp_scn);
95 libpe_parse_section_headers(PE *pe) argument
104 assert(pe
188 libpe_load_section(PE *pe, PE_Scn *ps) argument
258 libpe_load_all_sections(PE *pe) argument
310 libpe_resync_sections(PE *pe, off_t off) argument
417 libpe_write_section_headers(PE *pe, off_t off) argument
468 libpe_write_sections(PE *pe, off_t off) argument
[all...]
H A Dpe_buffer.c36 PE *pe; local
44 pe = ps->ps_pe;
47 if (pe->pe_flags & LIBPE_F_FD_DONE) {
51 if (pe->pe_flags & LIBPE_F_SPECIAL_FILE) {
52 if (libpe_load_all_sections(pe) < 0)
55 if (libpe_load_section(pe, ps) < 0)
73 PE *pe; local
81 pe = ps->ps_pe;
83 if (pe->pe_flags & LIBPE_F_FD_DONE) {
89 if (libpe_load_section(pe, p
[all...]
H A Dpe_symtab.c34 pe_update_symtab(PE *pe, char *symtab, size_t sz, unsigned int nsym) argument
40 if (pe == NULL || symtab == NULL || sz == 0) {
45 if (pe->pe_cmd == PE_C_READ || pe->pe_flags & LIBPE_F_FD_DONE) {
51 STAILQ_FOREACH_SAFE(ps, &pe->pe_scn, ps_next, pstmp) {
60 if ((ps = libpe_alloc_scn(pe)) == NULL)
63 STAILQ_INSERT_TAIL(&pe->pe_scn, ps, ps_next);
83 pe->pe_nsym = nsym;
H A Dlibpe_coff.c40 libpe_parse_coff_header(PE *pe, char *hdr) argument
62 pe->pe_ch = ch;
68 return (libpe_parse_section_headers(pe));
74 pe->pe_oh = oh;
86 if (read(pe->pe_fd, tmp, r) != (ssize_t) r) { \
87 pe->pe_flags |= LIBPE_F_BAD_SEC_HEADER;\
90 return (libpe_parse_section_headers(pe)); \
92 if (read(pe->pe_fd, tmp, (n)) != (ssize_t) (n)) { \
93 pe->pe_flags |= LIBPE_F_BAD_OPT_HEADER; \
111 pe
188 libpe_write_pe_header(PE *pe, off_t off) argument
225 libpe_write_coff_header(PE *pe, off_t off) argument
[all...]
H A Dlibpe_utils.c38 libpe_align(PE *pe, off_t off, size_t align) argument
46 if (libpe_pad(pe, n - off) < 0)
54 libpe_pad(PE *pe, size_t pad) argument
62 if (write(pe->pe_fd, tmp, s) != (ssize_t) s) {
H A Dlibpe_rich.c57 libpe_parse_rich_header(PE *pe) argument
64 assert(pe->pe_stub != NULL && pe->pe_stub_ex > 0);
67 s = pe->pe_stub + sizeof(PE_DosHdr);
68 r = memfind(s, PE_RICH_TEXT, pe->pe_stub_ex, 4);
69 if (r == NULL || r + 8 > s + pe->pe_stub_ex) {
104 pe->pe_rh_start = p;
125 pe->pe_rh = rh;
/freebsd-current/contrib/tcsh/
H A Dma.setp.c235 struct pelem *pe, *pathend; local
248 pe = xmalloc(sizeof(struct pelem));
249 setzero(pe, sizeof(struct pelem));
251 pathhead = pathend = pe;
253 pathend->pnext = pe;
254 pathend = pe;
257 pe->pname = p;
258 pe->psuf = "";
259 pe->pdef = "";
261 if (strcmp(pe
287 struct pelem *pe; local
315 struct pelem *pe; local
348 struct pelem *pe; local
391 struct pelem *pe; local
414 struct pelem *pe; local
430 struct pelem *pe; local
445 struct pelem *pe; local
452 insert(struct pelem *pe, int loc, char *key) argument
481 struct pelem *pe; local
496 struct pelem *pe; local
509 delete(struct pelem *pe, int n) argument
527 struct pelem *pe; local
542 struct pelem *pe; local
555 change(struct pelem *pe, int loc, char *key) argument
576 locate(struct pelem *pe, char *key) argument
[all...]
/freebsd-current/tools/tools/ath/athradar/
H A Dathradar.c81 HAL_PHYERR_PARAM pe; local
83 pe.pe_firpwr = HAL_PHYERR_PARAM_NOVAL;
84 pe.pe_rrssi = HAL_PHYERR_PARAM_NOVAL;
85 pe.pe_height = HAL_PHYERR_PARAM_NOVAL;
86 pe.pe_prssi = HAL_PHYERR_PARAM_NOVAL;
87 pe.pe_inband = HAL_PHYERR_PARAM_NOVAL;
88 pe.pe_enabled = HAL_PHYERR_PARAM_NOVAL;
90 pe.pe_relpwr = HAL_PHYERR_PARAM_NOVAL;
91 pe.pe_relstep = HAL_PHYERR_PARAM_NOVAL;
92 pe
161 HAL_PHYERR_PARAM pe; local
[all...]
/freebsd-current/sys/dev/ath/ath_hal/ar5416/
H A Dar5416_radar.c54 ar5416GetDfsDefaultThresh(struct ath_hal *ah, HAL_PHYERR_PARAM *pe) argument
64 pe->pe_firpwr = AR5416_DFS_FIRPWR;
65 pe->pe_rrssi = AR5416_DFS_RRSSI;
66 pe->pe_height = AR5416_DFS_HEIGHT;
67 pe->pe_prssi = AR5416_DFS_PRSSI;
68 pe->pe_inband = AR5416_DFS_INBAND;
69 pe->pe_relpwr = AR5416_DFS_RELPWR;
70 pe->pe_relstep = AR5416_DFS_RELSTEP;
71 pe->pe_maxlen = AR5416_DFS_MAXLEN;
77 * Get the radar parameter values and return them in the pe
81 ar5416GetDfsThresh(struct ath_hal *ah, HAL_PHYERR_PARAM *pe) argument
123 ar5416EnableDfs(struct ath_hal *ah, HAL_PHYERR_PARAM *pe) argument
[all...]
/freebsd-current/lib/libpmc/
H A Dlibpmc_pmu_util.c262 const struct pmu_event *pe; local
267 for (i = 0, pe = pme->table; pe->name || pe->desc || pe->event; pe++, i++) {
268 if (pe->name == NULL)
270 if (strcasecmp(pe->name, event_name) == 0) {
273 return (pe);
363 const struct pmu_event *pe; local
387 const struct pmu_event *pe; local
414 const struct pmu_event *pe; local
431 const struct pmu_event *pe; local
451 const struct pmu_event *pe; local
490 const struct pmu_event *pe; local
578 const struct pmu_event *pe; local
610 const struct pmu_event *pe; local
636 const struct pmu_event *pe; local
[all...]
/freebsd-current/tools/tools/ath/athspectral/
H A Dathspectral.c81 HAL_SPECTRAL_PARAM pe; local
83 pe.ss_fft_period = HAL_SPECTRAL_PARAM_NOVAL;
84 pe.ss_period = HAL_SPECTRAL_PARAM_NOVAL;
85 pe.ss_count = HAL_SPECTRAL_PARAM_NOVAL;
86 pe.ss_short_report = HAL_SPECTRAL_PARAM_NOVAL;
87 pe.ss_spectral_pri = HAL_SPECTRAL_PARAM_NOVAL;
88 pe.ss_fft_period = HAL_SPECTRAL_PARAM_NOVAL;
89 pe.ss_enabled = HAL_SPECTRAL_PARAM_NOVAL;
90 pe.ss_active = HAL_SPECTRAL_PARAM_NOVAL;
94 pe
122 HAL_SPECTRAL_PARAM pe; local
149 HAL_SPECTRAL_PARAM pe; local
170 HAL_SPECTRAL_PARAM pe; local
[all...]
/freebsd-current/sys/contrib/dev/ath/ath_hal/ar9300/
H A Dar9300_radar.c226 * values in pe
229 ar9300_enable_dfs(struct ath_hal *ah, HAL_PHYERR_PARAM *pe) argument
241 if (pe->pe_enabled != HAL_PHYERR_PARAM_NOVAL) {
243 val |= SM(pe->pe_enabled, AR_PHY_RADAR_0_ENA);
246 if (pe->pe_firpwr != HAL_PHYERR_PARAM_NOVAL) {
248 val |= SM(pe->pe_firpwr, AR_PHY_RADAR_0_FIRPWR);
250 if (pe->pe_rrssi != HAL_PHYERR_PARAM_NOVAL) {
252 val |= SM(pe->pe_rrssi, AR_PHY_RADAR_0_RRSSI);
254 if (pe->pe_height != HAL_PHYERR_PARAM_NOVAL) {
256 val |= SM(pe
326 ar9300_get_dfs_thresh(struct ath_hal *ah, HAL_PHYERR_PARAM *pe) argument
377 ar9300_get_dfs_radars( struct ath_hal *ah, u_int32_t dfsdomain, int *numradars, struct dfs_bin5pulse **bin5pulses, int *numb5radars, HAL_PHYERR_PARAM *pe) argument
437 ar9300_get_default_dfs_thresh(struct ath_hal *ah, HAL_PHYERR_PARAM *pe) argument
[all...]
/freebsd-current/sys/dev/ath/ath_dfs/null/
H A Ddfs_null.c104 HAL_PHYERR_PARAM pe; local
117 memset(&pe, '\0', sizeof(pe));
118 if (! ath_hal_getdfsdefaultthresh(sc->sc_ah, &pe))
125 pe.pe_enabled = 1;
129 pe.pe_extchannel = 1;
131 pe.pe_extchannel = 0;
133 ath_hal_enabledfs(sc->sc_ah, &pe);
157 HAL_PHYERR_PARAM pe; local
159 (void) ath_hal_getdfsthresh(sc->sc_ah, &pe);
225 HAL_PHYERR_PARAM *pe; local
[all...]
/freebsd-current/lib/libc/tests/nss/
H A Dgetproto_test.c110 free_protoent(struct protoent *pe) argument
114 assert(pe != NULL);
116 free(pe->p_name);
118 for (cp = pe->p_aliases; *cp; ++cp)
120 free(pe->p_aliases);
164 sdump_protoent(struct protoent *pe, char *buffer, size_t buflen) argument
170 pe->p_name, pe->p_proto);
176 if (pe->p_aliases != NULL) {
177 if (*(pe
195 protoent_read_snapshot_func(struct protoent *pe, char *line) argument
273 struct protoent *pe; local
288 protoent_test_correctness(struct protoent *pe, void *mdata __unused) argument
320 protoent_check_ambiguity(struct protoent_test_data *td, struct protoent *pe) argument
331 struct protoent *pe; local
369 struct protoent *pe; local
388 protoent_test_getprotoent(struct protoent *pe, void *mdata __unused) argument
[all...]
/freebsd-current/usr.sbin/uefisign/
H A DMakefile3 SRCS= uefisign.c child.c pe.c

Completed in 273 milliseconds

1234567