| /freebsd/lib/libnetmap/ |
| H A D | nmport.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 52 nmport_push_cleanup(struct nmport_d *d, struct nmport_cleanup_d *c) in nmport_push_cleanup() argument 54 c->next = d->clist; in nmport_push_cleanup() 55 d->clist = c; in nmport_push_cleanup() 59 nmport_pop_cleanup(struct nmport_d *d) in nmport_pop_cleanup() argument 63 top = d->clist; in nmport_pop_cleanup() 64 d->clist = d->clist->next; in nmport_pop_cleanup() 65 (*top->cleanup)(top, d); in nmport_pop_cleanup() 66 nmctx_free(d->ctx, top); in nmport_pop_cleanup() [all …]
|
| /freebsd/contrib/bsddialog/lib/ |
| H A D | lib_util.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2021-2025 Alfonso Sabato Siciliano 40 * -1- Error and diagnostic 46 * ---------------------------------------------------- 47 * -2- (Unicode) Multicolumn character strings 54 * ---------------------------------------------------- 55 * -3- Buttons 63 * ---------------------------------------------------- 64 * -4- (Auto) Sizing and (Auto) Position [all …]
|
| H A D | textbox.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2021-2025 Alfonso Sabato Siciliano 44 int margin; /* 2 with multicolumn char, 0 otherwise */ 45 int printrows; /* d.h - BORDERS - HBUTTONS */ 48 static void updateborders(struct dialog *d, struct scrolltext *st) in updateborders() argument 53 if (d->conf->no_lines) in updateborders() 54 setcchar(&borderch, L" ", 0, 0, NULL); in updateborders() 55 else if (d->conf->ascii_lines) in updateborders() 56 setcchar(&borderch, L"|", 0, 0, NULL); in updateborders() [all …]
|
| H A D | messagebox.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2021-2025 Alfonso Sabato Siciliano 38 int printrows; /* h - BORDER - HBUTTONS - BORDER */ 41 static void textupdate(struct dialog *d, struct scroll *s) in textupdate() argument 43 if (s->htext > 0 && s->htextpad > s->printrows) { in textupdate() 44 wattron(d->widget, t.dialog.arrowcolor); in textupdate() 45 mvwprintw(d->widget, d->h - HBUTTONS - BORDER, in textupdate() 46 d->w - 4 - TEXTHMARGIN - BORDER, in textupdate() 47 "%3d%%", 100 * (s->ypad + s->printrows) / s->htextpad); in textupdate() [all …]
|
| H A D | barbox.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2021-2025 Alfonso Sabato Siciliano 46 #define WBOX(d) ((d)->w - BORDERS - BARPADDING - BARPADDING) argument 47 #define WBAR(d) (WBOX(d) - BOXBORDERS) argument 54 " Succeeded ", /* -1 */ 55 " Failed ", /* -2 */ 56 " Passed ", /* -3 */ 57 " Completed ", /* -4 */ 58 " Checked ", /* -5 */ [all …]
|
| /freebsd/sys/dev/sound/pcm/ |
| H A D | sound.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2005-2009 Ariff Abdullah <ariff@FreeBSD.org> 5 * Portions Copyright (c) Ryan Beasley <ryan.beasley@gmail.com> - GSoC 2006 9 * Copyright (c) 2024-2025 The FreeBSD Foundation 51 int snd_unit = -1; 53 static int snd_unit_auto = -1; 55 &snd_unit_auto, 0, "assign default unit to a newly attached device"); 57 SYSCTL_NODE(_hw, OID_AUTO, snd, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, 68 struct snddev_info *d; in snd_setup_intr() local [all …]
|
| H A D | vchan.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2006-2009 Ariff Abdullah <ariff@FreeBSD.org> 7 * Copyright (c) 2024-2025 The FreeBSD Foundation 34 /* Almost entirely rewritten to add multi-format/channels mixing support. */ 44 * [ac3 , dts , linear , 0, linear, 0] 69 KASSERT(c != NULL && c->parentchannel != NULL, in vchan_init() 73 info->channel = c; in vchan_init() 74 info->trigger = PCMTRIG_STOP; in vchan_init() 75 p = c->parentchannel; in vchan_init() [all …]
|
| /freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
| H A D | tst.index.d.out | 5 printf("perl => index(\"foobarbaz\", \"barbaz\") = %d\n", 7 printf(" D => index(\"foobarbaz\", \"barbaz\") = 3\n"); 12 printf("perl => rindex(\"foobarbaz\", \"barbaz\") = %d\n", 14 printf(" D => rindex(\"foobarbaz\", \"barbaz\") = 3\n"); 18 if (index("foofoofoo", "foo") != 0) { 19 printf("perl => index(\"foofoofoo\", \"foo\") = %d\n", 21 printf(" D => index(\"foofoofoo\", \"foo\") = 0\n"); 26 printf("perl => rindex(\"foofoofoo\", \"foo\") = %d\n", 28 printf(" D => rindex(\"foofoofoo\", \"foo\") = 6\n"); 33 printf("perl => index(\"boofoofoo\", \"foo\") = %d\n", [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_md5.cpp | 1 //===-- tsan_md5.cpp ------------------------------------------------------===// 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 21 #define STEP(f, a, b, c, d, x, t, s) \ argument 22 (a) += f((b), (c), (d)) + (x) + (t); \ 23 (a) = (((a) << (s)) | (((a) & 0xffffffff) >> (32 - (s)))); \ 36 MD5_u32plus a, b, c, d; member 43 MD5_u32plus a, b, c, d; in body() local [all …]
|
| /freebsd/crypto/heimdal/kdc/ |
| H A D | connect.c | 2 * Copyright (c) 1997-2005 Kungliga Tekniska Högskolan 37 int enable_http = -1; 76 if(strcmp(protocol, "udp") == 0) in add_port() 78 else if(strcmp(protocol, "tcp") == 0) in add_port() 82 for(i = 0; i < num_ports; i++){ in add_port() 98 * add a triple but with service -> port lookup 112 * add the port with service -> port lookup or string -> number 125 port = sp->s_port; in add_port_string() 129 port = htons(strtol(str, &end, 0)); in add_port_string() 147 add_port_service(context, family, "kerberos-sec", 88, "udp"); in add_standard_ports() [all …]
|
| /freebsd/sys/net/ |
| H A D | bpf.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 103 struct bpfd_list bif_wlist; /* writer-only list */ 111 _Static_assert(offsetof(struct bpf_if, bif_dlist) == 0, 119 void *buffer[0]; 128 (offsetof(type, bh_hdrlen) + sizeof(((type *)0)->bh_hdrlen)) 138 * 32-bit version of structure prepended to each packet. We use this header 139 * instead of the standard one for 32-bit streams. We mark the a stream as 140 * 32-bit the first time we see a 32-bit compat ioctl request. 209 SYSCTL_NODE(_net, OID_AUTO, bpf, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, [all …]
|
| H A D | netmap_user.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (C) 2011-2016 Universita` di Pisa 38 * mem = mmap(0, ... ); 45 * we can access ring->cur, ring->head, ring->tail, etc. 47 * ring->slot[i] gives us the i-th slot (we can access 100 #define unlikely(x) __builtin_expect(!!(x), 0) 112 nifp, (nifp)->ring_ofs[index] ) 115 nifp, (nifp)->ring_ofs[index + (nifp)->ni_tx_rings + \ 116 (nifp)->ni_host_tx_rings] ) [all …]
|
| /freebsd/tools/sched/ |
| H A D | schedgraph.d | 1 #!/usr/sbin/dtrace -s 3 /*- 4 * Copyright (c) 2012-2016 Ryan Stone 35 * # ./schedgraph.d > /tmp/sched.out 40 #pragma D option quiet 41 #pragma D option bufpolicy=ring 43 inline int TDF_IDLETD = 0x00000020; 49 inline int TDI_SUSPENDED = 0x0001; /* On suspension queue. */ 50 inline int TDI_SLEEPING = 0x0002; /* Actually asleep! (tricky). */ 51 inline int TDI_SWAPPED = 0x0004; /* Stack not in mem. Bad juju if run. */ [all …]
|
| /freebsd/contrib/libfido2/src/ |
| H A D | io.c | 2 * Copyright (c) 2018-2022 Yubico AB. All rights reserved. 3 * Use of this source code is governed by a BSD-style 5 * SPDX-License-Identifier: BSD-2-Clause 20 uint8_t data[CTAP_MAX_REPORT_LEN - CTAP_INIT_HEADER_LEN]; in PACKED_TYPE() 24 uint8_t data[CTAP_MAX_REPORT_LEN - CTAP_CONT_HEADER_LEN]; in PACKED_TYPE() 34 tx_pkt(fido_dev_t *d, const void *pkt, size_t len, int *ms) 39 if (fido_time_now(&ts) != 0) 40 return (-1); 42 n = d->io.write(d->io_handle, pkt, len); 44 if (fido_time_delta(&ts, ms) != 0) [all …]
|
| /freebsd/contrib/lua/src/ |
| H A D | ldump.c | 33 ** All high-level dumps go through dumpVector; you can change it to 36 #define dumpVector(D,v,n) dumpBlock(D,v,(n)*sizeof((v)[0])) argument 38 #define dumpLiteral(D, s) dumpBlock(D,s,sizeof(s) - sizeof(char)) argument 41 static void dumpBlock (DumpState *D, const void *b, size_t size) { in dumpBlock() argument 42 if (D->status == 0 && size > 0) { in dumpBlock() 43 lua_unlock(D->L); in dumpBlock() 44 D->status = (*D->writer)(D->L, b, size, D->data); in dumpBlock() 45 lua_lock(D->L); in dumpBlock() 50 #define dumpVar(D,x) dumpVector(D,&x,1) argument 53 static void dumpByte (DumpState *D, int y) { in dumpByte() argument [all …]
|
| H A D | luac.c | 34 static int listing=0; /* list bytecodes? */ 36 static int stripping=0; /* strip debug information? */ 56 if (*message=='-') in usage() 63 " -l list (use -l -l for full listing)\n" in usage() 64 " -o name output to file 'name' (default is \"%s\")\n" in usage() 65 " -p parse only\n" in usage() 66 " -s strip debug information\n" in usage() 67 " -v show version information\n" in usage() 68 " -- stop handling options\n" in usage() 69 " - stop handling options and process stdin\n" in usage() [all …]
|
| /freebsd/sys/dev/pms/RefTisa/sat/src/ |
| H A D | smsat.c | 2 *Copyright (c) 2014 PMC-Sierra, Inc. All rights reserved. 73 oneDeviceData->satDeviceType = DeviceType; in smRegisterDevice() 118 smIntRoot_t *smIntRoot = (smIntRoot_t *)smRoot->smData; in smIOAbort() 119 smIntContext_t *smAllShared = (smIntContext_t *)&smIntRoot->smAllShared; in smIOAbort() 144 agRoot = smAllShared->agRoot; in smIOAbort() 145 smIORequestBody = (smIORequestBody_t *)tasktag->smData; in smIOAbort() 154 satIOContext = &(smIORequestBody->transport.SATA.satIOContext); in smIOAbort() 155 satIntIo = satIOContext->satIntIoContext; in smIOAbort() 159 agIORequest = &(smIORequestBody->agIORequest); in smIOAbort() 164 smIONewRequestBody = (smIORequestBody_t *)satIntIo->satIntRequestBody; in smIOAbort() [all …]
|
| /freebsd/contrib/file/magic/Magdir/ |
| H A D | mach | 2 #------------------------------------------------------------ 4 # Mach has two magic numbers, 0xcafebabe and 0xfeedface. 8 #------------------------------------------------------------ 9 # if set, it's for the 64-bit version of the architecture 10 # yes, this is separate from the low-order magic number bit 11 # it's also separate from the "64-bit libraries" bit in the 14 # Reference: https://opensource.apple.com/source/cctools/cctools-949.0.1/ 15 # include/mach-o/loader.h 17 0 name mach-o-cpu 18 >0 belong&0xff000000 0 [all …]
|
| /freebsd/sys/dev/hwpmc/ |
| H A D | hwpmc_uncore.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 84 return (0); in uncore_pcpu_noop() 95 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), in uncore_pcpu_init() 96 ("[ucf,%d] insane cpu number %d", __LINE__, cpu)); in uncore_pcpu_init() 98 PMCDBG1(MDP,INI,1,"uncore-init cpu=%d", cpu); in uncore_pcpu_init() 100 uncore_ri = md->pmd_classdep[PMC_MDEP_CLASS_INDEX_UCP].pcd_ri; in uncore_pcpu_init() 101 npmc = md->pmd_classdep[PMC_MDEP_CLASS_INDEX_UCP].pcd_num; in uncore_pcpu_init() 102 npmc += md->pmd_classdep[PMC_MDEP_CLASS_INDEX_UCF].pcd_num; in uncore_pcpu_init() 111 ("[uncore,%d] NULL per-cpu structures cpu=%d", __LINE__, cpu)); in uncore_pcpu_init() [all …]
|
| /freebsd/sys/geom/ |
| H A D | geom_bsd_enc.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 4 * Copyright (c) 2002 Poul-Henning Kamp 8 * This software was developed for the FreeBSD Project by Poul-Henning Kamp 10 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the 56 bsd_partition_le_dec(u_char *ptr, struct partition *d) in bsd_partition_le_dec() argument 58 d->p_size = le32dec(ptr + 0); in bsd_partition_le_dec() 59 d->p_offset = le32dec(ptr + 4); in bsd_partition_le_dec() 60 d->p_fsize = le32dec(ptr + 8); in bsd_partition_le_dec() 61 d->p_fstype = ptr[12]; in bsd_partition_le_dec() [all …]
|
| /freebsd/share/man/man4/ |
| H A D | ena.4 | 1 .\" SPDX-License-Identifier: BSD-2-Clause 3 .\" Copyright (c) 2015-2024 Amazon.com, Inc. or its affiliates. 40 .Bd -ragged -offset indent 47 .Bd -literal -offset indent 58 The driver supports a range of ENA devices, is link-speed independent 62 Some ENA devices support SR-IOV. 63 This driver is used for both the SR-IOV Physical Function (PF) and Virtual 68 is advertised by the device via the Admin Queue), a dedicated MSI-X 77 Receive-side scaling (RSS) is supported for multi-core scaling. 86 Some of the ENA devices support a working mode called Low-latency [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Serialization/ |
| H A D | ASTWriterDecl.cpp | 1 //===--- ASTWriterDecl.cpp - Declaration Serialization --------------------===// 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 30 //===----------------------------------------------------------------------===// 32 //===----------------------------------------------------------------------===// 49 Code((serialization::DeclCode)0), AbbrevToUse(0), in ASTDeclWriter() 52 uint64_t Emit(Decl *D) { in Emit() argument 55 D->getDeclKindName() + "'"); in Emit() [all …]
|
| /freebsd/sys/dev/pms/RefTisa/tisa/sassata/sata/host/ |
| H A D | sat.c | 2 *Copyright (c) 2014 PMC-Sierra, Inc. All rights reserved. 121 pSense = satIOContext->pSense; in satIOStart() 122 pSatDevData = satIOContext->pSatDevData; in satIOStart() 123 scsiCmnd = &tiScsiRequest->scsiCmnd; in satIOStart() 124 pLun = &scsiCmnd->lun; in satIOStart() 127 * Reject all other LUN other than LUN 0. in satIOStart() 129 if ( ((pLun->lun[0] | pLun->lun[1] | pLun->lun[2] | pLun->lun[3] | in satIOStart() 130 pLun->lun[4] | pLun->lun[5] | pLun->lun[6] | pLun->lun[7] ) != 0) && in satIOStart() 131 (scsiCmnd->cdb[0] != SCSIOPC_INQUIRY) in satIOStart() 134 …TI_DBG1(("satIOStart: *** REJECT *** LUN not zero, cdb[0]=0x%x tiIORequest=%p tiDeviceHandle=%p\n", in satIOStart() [all …]
|
| /freebsd/crypto/heimdal/lib/krb5/ |
| H A D | keytab_memory.c | 2 * Copyright (c) 1997 - 2001 Kungliga Tekniska Högskolan 36 /* memory operations -------------------------------------------- */ 46 /* this mutex protects mkt_head, ->refcount, and ->next 56 struct mkt_data *d; in mkt_resolve() local 60 for (d = mkt_head; d != NULL; d = d->next) in mkt_resolve() 61 if (strcmp(d->name, name) == 0) in mkt_resolve() 63 if (d) { in mkt_resolve() 64 if (d->refcount < 1) in mkt_resolve() 66 "refcount < 1 %d", d->refcount); in mkt_resolve() 67 d->refcount++; in mkt_resolve() [all …]
|
| /freebsd/sys/dev/axgbe/ |
| H A D | xgbe-txrx.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 35 #include "xgbe-common.h" 63 axgbe_printf(1, "---- in xgbe_print_pkt_info() [all...] |