Home
last modified time | relevance | path

Searched refs:od (Results 1 – 25 of 71) sorted by relevance

123

/freebsd-9-stable/sys/boot/pc98/libpc98/
Dbiosdisk.c102 static int bd_getgeom(struct open_disk *od);
103 static int bd_read(struct open_disk *od, daddr_t dblk, int blks,
105 static int bd_write(struct open_disk *od, daddr_t dblk, int blks,
110 static void bd_printslice(struct open_disk *od, struct pc98_partition *dp,
112 static void bd_printbsdslice(struct open_disk *od, daddr_t offset,
137 static void bd_closedisk(struct open_disk *od);
138 static int bd_open_pc98(struct open_disk *od, struct i386_devdesc *dev);
139 static int bd_bestslice(struct open_disk *od);
140 static void bd_checkextended(struct open_disk *od, int slicenum);
251 struct open_disk *od; in bd_print() local
[all …]
/freebsd-9-stable/contrib/ntp/sntp/libopts/
Dmakeshell.c43 text_to_var(tOptions * opts, teTextTo which, tOptDesc * od);
55 emit_action(tOptions * opts, tOptDesc * od);
58 emit_inaction(tOptions * opts, tOptDesc * od);
288 text_to_var(tOptions * opts, teTextTo which, tOptDesc * od) in text_to_var() argument
332 if (od->fOptState & OPTST_ALLOC_ARG) { in text_to_var()
333 AGFREE(od->optArg.argString); in text_to_var()
334 od->fOptState &= ~OPTST_ALLOC_ARG; in text_to_var()
336 od->optArg.argString = "c"; in text_to_var()
337 optionPrintVersion(opts, od); in text_to_var()
437 tOptDesc * od = opts->pOptDesc; in emit_wrapup() local
[all …]
Dusage.c60 prt_conflicts(tOptions * opts, tOptDesc * od);
63 prt_one_vendor(tOptions * opts, tOptDesc * od,
70 prt_extd_usage(tOptions * opts, tOptDesc * od, char const * title);
77 prt_preamble(tOptions * opts, tOptDesc * od, arg_types_t * at);
80 prt_one_usage(tOptions * opts, tOptDesc * od, arg_types_t * at);
289 tOptDesc * od = opts->pOptDesc + ix; in print_offer_usage() local
290 while (od->optUsage != AOUSE_HELP) { in print_offer_usage()
293 od++; in print_offer_usage()
298 help[1] = od->optValue; in print_offer_usage()
305 strncpy(help + 2, od->pz_Name, 20); in print_offer_usage()
[all …]
Dautoopts.c114 tOptDesc * od = o_st->pOD; in handle_opt() local
115 tOptProc * opt_proc = od->pOptProc; in handle_opt()
116 if (od->fOptState & OPTST_ALLOC_ARG) in handle_opt()
117 AGFREE(od->optArg.argString); in handle_opt()
119 od->optArg.argString = o_st->pzOptArg; in handle_opt()
126 && ((od->fOptState & OPTST_NO_INIT) != 0) in handle_opt()
138 if (od->optEquivIndex != NO_EQUIVALENT) { in handle_opt()
139 tOptDesc * eqv_od = opts->pOptDesc + od->optEquivIndex; in handle_opt()
146 if ((od->fOptState & OPTST_DEFINED) != 0) { in handle_opt()
155 if (eqv_od->optActualIndex != od->optIndex) { in handle_opt()
[all …]
Dtime.c41 optionTimeVal(tOptions * opts, tOptDesc * od) in optionTimeVal() argument
45 if (INQUERY_CALL(opts, od)) in optionTimeVal()
48 val = parse_duration(od->optArg.argString); in optionTimeVal()
50 fprintf(stderr, zNotDuration, opts->pzProgName, od->optArg.argString); in optionTimeVal()
55 if (od->fOptState & OPTST_ALLOC_ARG) { in optionTimeVal()
56 AGFREE(od->optArg.argString); in optionTimeVal()
57 od->fOptState &= ~OPTST_ALLOC_ARG; in optionTimeVal()
60 od->optArg.argInt = (long)val; in optionTimeVal()
74 optionTimeDate(tOptions * opts, tOptDesc * od) in optionTimeDate() argument
77 if (INQUERY_CALL(opts, od)) in optionTimeDate()
[all …]
Dstack.c48 optionUnstackArg(tOptions * opts, tOptDesc * od) in optionUnstackArg() argument
52 if (INQUERY_CALL(opts, od)) in optionUnstackArg()
55 arg_list = (tArgList *)od->optCookie; in optionUnstackArg()
62 od->fOptState &= OPTST_PERSISTENT_MASK; in optionUnstackArg()
63 if ((od->fOptState & OPTST_INITENABLED) == 0) in optionUnstackArg()
64 od->fOptState |= OPTST_DISABLED; in optionUnstackArg()
73 if (regcomp(&re, od->optArg.argString, REG_NOSUB) != 0) in optionUnstackArg()
137 if (strcmp(pzSrc, od->optArg.argString) == 0) { in optionUnstackArg()
165 od->fOptState &= OPTST_PERSISTENT_MASK; in optionUnstackArg()
166 if ((od->fOptState & OPTST_INITENABLED) == 0) in optionUnstackArg()
[all …]
Dsave.c42 prt_entry(FILE * fp, tOptDesc * od, char const * l_arg);
66 prt_enum_arg(FILE * fp, tOptDesc * od);
69 prt_set_arg(FILE * fp, tOptDesc * od);
72 prt_file_arg(FILE * fp, tOptDesc * od, tOptions * opts);
278 prt_entry(FILE * fp, tOptDesc * od, char const * l_arg) in prt_entry() argument
290 (! DISABLED_OPT(od) || (od->optEquivIndex != NO_EQUIVALENT)) in prt_entry()
291 ? od->pz_Name in prt_entry()
292 : od->pz_DisableName; in prt_entry()
298 && (OPTST_GET_ARGTYPE(od->fOptState) != OPARG_TYPE_NUMERIC)) in prt_entry()
308 if (OPTST_GET_ARGTYPE(od->fOptState) == OPARG_TYPE_NUMERIC) in prt_entry()
[all …]
Dboolean.c48 optionBooleanVal(tOptions * opts, tOptDesc * od) in optionBooleanVal() argument
53 if (INQUERY_CALL(opts, od)) in optionBooleanVal()
56 if (od->optArg.argString == NULL) { in optionBooleanVal()
57 od->optArg.argBool = false; in optionBooleanVal()
61 switch (*(od->optArg.argString)) { in optionBooleanVal()
64 long val = strtol(od->optArg.argString, &pz, 0); in optionBooleanVal()
77 if (od->optArg.argString[1] != 'f') in optionBooleanVal()
82 if (od->fOptState & OPTST_ALLOC_ARG) { in optionBooleanVal()
83 AGFREE(od->optArg.argString); in optionBooleanVal()
84 od->fOptState &= ~OPTST_ALLOC_ARG; in optionBooleanVal()
[all …]
Denum.c50 set_memb_names(tOptions * opts, tOptDesc * od, char const * const * nm_list,
54 check_membership_start(tOptDesc * od, char const ** argp, bool * invert);
57 find_member_bit(tOptions * opts, tOptDesc * od, char const * pz, int len,
256 tOptDesc od = { 0 }; in optionKeywordName() local
257 od.optArg.argEnum = enum_val; in optionKeywordName()
259 (*(pOD->pOptProc))(OPTPROC_RETURN_VALNAME, &od ); in optionKeywordName()
260 return od.optArg.argString; in optionKeywordName()
368 set_memb_names(tOptions * opts, tOptDesc * od, char const * const * nm_list, in set_memb_names() argument
373 uintptr_t bits = (uintptr_t)od->optCookie & mask; in set_memb_names()
388 od->optArg.argString = pz = AGALOC(len, "enum"); in set_memb_names()
[all …]
Dnumeric.c107 optionNumericVal(tOptions * opts, tOptDesc * od) in optionNumericVal() argument
116 if (INQUERY_CALL(opts, od) || (od->optArg.argString == NULL)) in optionNumericVal()
125 if ( (od == NULL) in optionNumericVal()
126 || (od->optArg.argString == NULL) in optionNumericVal()
127 || ((od->fOptState & OPTST_RESET) != 0)) in optionNumericVal()
131 val = strtol(od->optArg.argString, &pz, 0); in optionNumericVal()
132 if ((pz == od->optArg.argString) || (errno != 0)) in optionNumericVal()
135 if ((od->fOptState & OPTST_SCALED_NUM) != 0) in optionNumericVal()
154 if (od->fOptState & OPTST_ALLOC_ARG) { in optionNumericVal()
155 AGFREE(od->optArg.argString); in optionNumericVal()
[all …]
Dversion.c138 print_ver(tOptions * opts, tOptDesc * od, FILE * fp, bool call_exit) in print_ver() argument
150 if ( (od->fOptState & OPTST_ARG_OPTIONAL) in print_ver()
151 && (od->optArg.argString != NULL) in print_ver()
152 && (od->optArg.argString[0] != NUL)) in print_ver()
154 ch = od->optArg.argString[0]; in print_ver()
191 optionPrintVersion(tOptions * opts, tOptDesc * od) in optionPrintVersion() argument
193 print_ver(opts, od, print_exit ? stderr : stdout, true); in optionPrintVersion()
209 optionPrintVersionAndReturn(tOptions * opts, tOptDesc * od) in optionPrintVersionAndReturn() argument
211 print_ver(opts, od, print_exit ? stderr : stdout, false); in optionPrintVersionAndReturn()
225 optionVersionStderr(tOptions * opts, tOptDesc * od) in optionVersionStderr() argument
[all …]
Dcheck.c35 has_conflict(tOptions * pOpts, tOptDesc * od) in has_conflict() argument
37 if (od->pOptMust != NULL) { in has_conflict()
38 int const * must = od->pOptMust; in has_conflict()
45 od->pz_Name, ood->pz_Name); in has_conflict()
51 if (od->pOptCant != NULL) { in has_conflict()
52 int const * cant = od->pOptCant; in has_conflict()
59 od->pz_Name, ood->pz_Name); in has_conflict()
Dalias.c35 too_many_occurrences(tOptions * opts, tOptDesc * od) in too_many_occurrences() argument
38 char const * eqv = (od->optEquivIndex != NO_EQUIVALENT) ? zequiv : zNil; in too_many_occurrences()
42 if (od->optMaxCt > 1) in too_many_occurrences()
43 fprintf(stderr, zat_most, od->optMaxCt, od->pz_Name, eqv); in too_many_occurrences()
45 fprintf(stderr, zonly_one, od->pz_Name, eqv); in too_many_occurrences()
Dinit.c194 tOptDesc * od = NULL; in do_presets() local
206 od = opts->pOptDesc + opts->specOptIdx.save_opts + 1; in do_presets()
207 if (DISABLED_OPT(od)) in do_presets()
228 if ((od != NULL) && ! DISABLED_OPT(od)) in do_presets()
Dpgusage.c110 optionPagedUsage(tOptions * opts, tOptDesc * od) in optionPagedUsage() argument
113 if ((od->fOptState & OPTST_RESET) != 0) in optionPagedUsage()
129 if ((od->fOptState & OPTST_RESET) != 0) in optionPagedUsage()
Dnested.c824 optionNestedVal(tOptions * opts, tOptDesc * od) in optionNestedVal() argument
829 if (od->fOptState & OPTST_RESET) { in optionNestedVal()
830 tArgList * arg_list = od->optCookie; in optionNestedVal()
844 AGFREE(od->optCookie); in optionNestedVal()
848 od->optArg.argString, od->pz_Name, strlen(od->pz_Name)); in optionNestedVal()
851 addArgListEntry(&(od->optCookie), VOIDP(opt_val)); in optionNestedVal()
/freebsd-9-stable/sys/mips/cavium/cryptocteon/
Dcavium_crypto.c344 struct octo_sess *od, in octo_des_cbc_encrypt() argument
356 if (__predict_false(od == NULL || iov==NULL || iovlen==0 || ivp==NULL || in octo_des_cbc_encrypt()
360 "icv_off=%d ivp=%p\n", __func__, od, iov, iovlen, in octo_des_cbc_encrypt()
368 CVMX_PREFETCH0(od->octo_enckey); in octo_des_cbc_encrypt()
373 CVMX_MT_3DES_KEY(((uint64_t *) od->octo_enckey)[0], 0); in octo_des_cbc_encrypt()
374 if (od->octo_encklen == 24) { in octo_des_cbc_encrypt()
375 CVMX_MT_3DES_KEY(((uint64_t *) od->octo_enckey)[1], 1); in octo_des_cbc_encrypt()
376 CVMX_MT_3DES_KEY(((uint64_t *) od->octo_enckey)[2], 2); in octo_des_cbc_encrypt()
377 } else if (od->octo_encklen == 8) { in octo_des_cbc_encrypt()
378 CVMX_MT_3DES_KEY(((uint64_t *) od->octo_enckey)[0], 1); in octo_des_cbc_encrypt()
[all …]
Dcryptocteon.c342 struct octo_sess *od; in cryptocteon_process() local
373 od = sc->sc_sessions[lid]; in cryptocteon_process()
403 if (crd->crd_alg == od->octo_encalg) enccrd = crd; in cryptocteon_process()
404 if (crd->crd_alg == od->octo_macalg) maccrd = crd; in cryptocteon_process()
407 if (crd->crd_alg == od->octo_encalg) enccrd = crd; in cryptocteon_process()
408 if (crd->crd_alg == od->octo_macalg) maccrd = crd; in cryptocteon_process()
424 enccrd->crd_inject, od->octo_ivsize, (caddr_t) ivp); in cryptocteon_process()
449 od->octo_iov[iovcnt].iov_base = mtod(m, void *); in cryptocteon_process()
450 od->octo_iov[iovcnt].iov_len = m->m_len; in cryptocteon_process()
453 iovlen += od->octo_iov[iovcnt++].iov_len; in cryptocteon_process()
[all …]
/freebsd-9-stable/sys/boot/common/
Ddisk.c66 struct open_disk *od; member
88 dev->d_opendata = entry->od; in disk_lookup()
118 entry->od = (struct open_disk *)dev->d_opendata; in disk_insert()
119 entry->od->rcnt++; in disk_insert()
144 entry->od, entry->od->rcnt); in command_dcachestat()
177 struct open_disk *od; in ptblread() local
180 od = (struct open_disk *)dev->d_opendata; in ptblread()
182 blocks * od->sectorsize, (char *)buf, NULL)); in ptblread()
190 struct open_disk *od; in ptable_print() local
195 od = (struct open_disk *)pa->dev->d_opendata; in ptable_print()
[all …]
/freebsd-9-stable/sys/arm/xscale/pxa/
Dpxa_obio.c102 struct obio_device *od; in pxa_attach() local
126 for (od = obio_devices; od->od_name != NULL; od++) { in pxa_attach()
127 resource_list_init(&od->od_resources); in pxa_attach()
129 resource_list_add(&od->od_resources, SYS_RES_MEMORY, 0, in pxa_attach()
130 od->od_base, od->od_base + od->od_size, od->od_size); in pxa_attach()
132 for (i = 0; od->od_irqs[i] != 0; i++) { in pxa_attach()
133 resource_list_add(&od->od_resources, SYS_RES_IRQ, i, in pxa_attach()
134 od->od_irqs[i], od->od_irqs[i], 1); in pxa_attach()
137 child = device_add_child(dev, od->od_name, -1); in pxa_attach()
138 device_set_ivars(child, od); in pxa_attach()
[all …]
/freebsd-9-stable/sys/boot/powerpc/ps3/
Dps3disk.c56 static int ps3disk_open_gpt(struct ps3_devdesc *dev, struct open_dev *od);
115 struct open_dev *od = (struct open_dev *) dev->d_disk.data; in ps3disk_strategy() local
132 err = ps3stor_read_sectors(&stor_dev, dev->d_unit, od->od_start + dblk, in ps3disk_strategy()
149 struct open_dev *od; in ps3disk_open() local
156 od = malloc(sizeof(struct open_dev)); in ps3disk_open()
157 if (!od) { in ps3disk_open()
162 err = ps3disk_open_gpt(dev, od); in ps3disk_open()
166 free(od); in ps3disk_open()
168 ((struct ps3_devdesc *) (f->f_devdata))->d_disk.data = od; in ps3disk_open()
177 struct open_dev *od = dev->d_disk.data; in ps3disk_close() local
[all …]
/freebsd-9-stable/crypto/openssh/
Dsftp-glob.c65 fudge_readdir(struct SFTP_OPENDIR *od) in fudge_readdir() argument
74 if (od->dir[od->offset] == NULL) in fudge_readdir()
84 strlcpy(ret->d_name, od->dir[od->offset++]->filename, MAXPATHLEN); in fudge_readdir()
86 strlcpy(ret->d_name, od->dir[od->offset++]->filename, in fudge_readdir()
104 fudge_closedir(struct SFTP_OPENDIR *od) in fudge_closedir() argument
106 free_sftp_dirents(od->dir); in fudge_closedir()
107 free(od); in fudge_closedir()
/freebsd-9-stable/cddl/contrib/opensolaris/cmd/ztest/
Dztest.c1934 ztest_lookup(ztest_ds_t *zd, ztest_od_t *od, int count) in ztest_lookup() argument
1941 for (int i = 0; i < count; i++, od++) { in ztest_lookup()
1942 od->od_object = 0; in ztest_lookup()
1943 error = zap_lookup(zd->zd_os, od->od_dir, od->od_name, in ztest_lookup()
1944 sizeof (uint64_t), 1, &od->od_object); in ztest_lookup()
1947 ASSERT(od->od_object == 0); in ztest_lookup()
1954 ASSERT(od->od_object != 0); in ztest_lookup()
1957 ztest_object_lock(zd, od->od_object, RL_READER); in ztest_lookup()
1959 od->od_object, FTAG, &db)); in ztest_lookup()
1963 od->od_type = doi.doi_type; in ztest_lookup()
[all …]
/freebsd-9-stable/release/scripts/
Dmm-mtree.sh117 od=${TEMPROOT}/usr/obj
119 MAKEOBJDIRPREFIX=$od ${MM_MAKE} _obj SUBDIR_OVERRIDE=etc &&
120 MAKEOBJDIRPREFIX=$od ${MM_MAKE} everything SUBDIR_OVERRIDE=etc &&
121 MAKEOBJDIRPREFIX=$od ${MM_MAKE} DESTDIR=${TEMPROOT} distribution;} ||
/freebsd-9-stable/usr.bin/hexdump/
DMakefile6 MAN= hexdump.1 od.1
8 LINKS= ${BINDIR}/hexdump ${BINDIR}/od

123