/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-2023 Alfonso Sabato Siciliano 39 * -1- Error and diagnostic 45 * -- 268 draw_buttons(struct dialog * d) draw_buttons() argument 297 set_buttons(struct dialog * d,bool shortcut,const char * oklabel,const char * cancellabel) set_buttons() argument 921 dialog_size_position(struct dialog * d,int hnotext,int minw,int * htext) dialog_size_position() argument 939 hide_dialog(struct dialog * d) hide_dialog() argument 1035 rtextpad(struct dialog * d,int ytext,int xtext,int upnotext,int downnotext) rtextpad() argument 1047 end_dialog(struct dialog * d) end_dialog() argument 1249 draw_dialog(struct dialog * d) draw_dialog() argument 1328 prepare_dialog(struct bsddialog_conf * conf,const char * text,int rows,int cols,struct dialog * d) prepare_dialog() argument [all...] |
H A D | messagebox.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2021-2024 Alfonso Sabato Siciliano 38 int printrows; /* h - BORDER - HBUTTONS - BORDER */ 41 static void textupdate(struct dialog *d, struc argument 54 message_size_position(struct dialog * d,int * htext) message_size_position() argument 72 message_draw(struct dialog * d,struct scroll * s) message_draw() argument 103 struct dialog d; do_message() local 211 struct dialog d; bsddialog_infobox() local [all...] |
H A D | textbox.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2021-2024 Alfonso Sabato Siciliano 44 int margin; /* 2 with multicolumn char, 0 otherwise */ 45 int printrows; /* d.h - BORDERS - HBUTTON 48 updateborders(struct dialog * d,struct scrolltext * st) updateborders() argument 85 textbox_size_position(struct dialog * d,struct scrolltext * st) textbox_size_position() argument 103 textbox_draw(struct dialog * d,struct scrolltext * st) textbox_draw() argument 138 struct dialog d; bsddialog_textbox() local [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/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/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 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, 99 struct snddev_info *d; in snd_setup_intr() local 103 d = device_get_softc(dev); in snd_setup_intr() [all …]
|
H A D | vchan.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2006-2009 Ariff Abdullah <ariff@FreeBSD.org> 34 /* Almost entirely rewritten to add multi-format/channels mixing support. */ 44 * [ac3 , dts , linear , 0, linear, 0] 51 static int snd_passthrough_verbose = 0; 53 &snd_passthrough_verbose, 0, "passthrough verbosity"); 76 KASSERT(c != NULL && c->parentchannel != NULL, in vchan_init() 80 info->channel = c; in vchan_init() 81 info->trigger = PCMTRIG_STOP; in vchan_init() [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/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 …]
|
/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/sys/net/ |
H A D | bpf.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 111 struct bpfd_list bif_wlist; /* writer-only list */ 118 CTASSERT(offsetof(struct bpf_if, bif_ext) == 0); 125 void *buffer[0]; 134 (offsetof(type, bh_hdrlen) + sizeof(((type *)0)->bh_hdrlen)) 144 * 32-bit version of structure prepended to each packet. We use this header 145 * instead of the standard one for 32-bit streams. We mark the a stream as 146 * 32-bit the first time we see a 32-bit compat ioctl request. 217 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/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/lib/libc/tests/stdio/ |
H A D | scanfloat_test.c | 1 /*- 39 #include <atf-c.h> 47 delta = fabsl(a - b); in _eq() 56 double d = 0.0; in ATF_TC_BODY() local 59 buf[0] = '\0'; in ATF_TC_BODY() 65 sscanf("3.141592653589793", "%lf", &d); in ATF_TC_BODY() 66 ATF_REQUIRE(eq(DBL, d, 3.141592653589793)); in ATF_TC_BODY() 71 sscanf("-1.234568e6", "%lF", &d); in ATF_TC_BODY() 72 ATF_REQUIRE(eq(DBL, d, -1.234568e6)); in ATF_TC_BODY() 74 sscanf("+1.234568e-52", "%LG", &ld); in ATF_TC_BODY() [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/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/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/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...] |
/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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/direct/ |
H A D | dio_aligned_block.ksh | 1 #!/bin/ksh -p 10 # or https://opensource.org/licenses/CDDL-1.0. 36 # 1. Create a multi-block file 45 log_must rm -f $tmp_file 60 log_must stride_dd -i /dev/urandom -o $tmp_file -b $file_size -c 1 63 check_write $TESTPOOL $tmp_file $rs 1 0 "-D" 0 1 64 check_write $TESTPOOL $tmp_file $rs 2 0 "-D" 0 2 65 check_write $TESTPOOL $tmp_file $rs 4 0 "-D" 0 4 66 check_write $TESTPOOL $tmp_file $rs 8 0 "-D" 0 8 69 check_write $TESTPOOL $tmp_file $((rs * 2)) 1 0 "-D" 0 2 [all …]
|
/freebsd/sys/contrib/device-tree/src/arm64/amazon/ |
H A D | alpine-v3.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 6 /dts-v1/; 8 #include <dt-bindings/interrupt-controller/arm-gic.h> 12 compatible = "amazon,al-alpine-v3"; 14 interrupt-paren [all...] |