Home
last modified time | relevance | path

Searched +full:comp +full:- +full:int (Results 1 – 25 of 382) sorted by relevance

12345678910>>...16

/freebsd/sys/dev/hyperv/netvsc/
H A Dhn_rndis.c1 /*-
2 * Copyright (c) 2009-2012,2016-2017 Microsoft Corp.
3 * Copyright (c) 2010-2012 Citrix Inc.
83 static int hn_rndis_query(struct hn_softc *, uint32_t,
85 static int hn_rndis_query2(struct hn_softc *, uint32_t,
87 static int hn_rndis_set(struct hn_softc *, uint32_t,
89 static int hn_rndis_init(struct hn_softc *);
90 static int hn_rndis_halt(struct hn_softc *);
91 static int hn_rndis_conf_offload(struct hn_softc *, int);
92 static int hn_rndis_query_hwcaps(struct hn_softc *,
[all …]
/freebsd/sys/dev/mlxfw/
H A Dmlxfw_fsm.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
4 * Copyright (c) 2017-2019 Mellanox Technologies.
70 static int mlxfw_fsm_state_wait(struct mlxfw_dev *mlxfw_dev, u32 fwhandle, in mlxfw_fsm_state_wait()
75 int times; in mlxfw_fsm_state_wait()
76 int err; in mlxfw_fsm_state_wait()
80 err = mlxfw_dev->ops->fsm_query_state(mlxfw_dev, fwhandle, in mlxfw_fsm_state_wait()
88 return -EINVAL; in mlxfw_fsm_state_wait()
91 if (--times == 0) { in mlxfw_fsm_state_wait()
93 return -ETIMEDOUT; in mlxfw_fsm_state_wait()
[all …]
H A Dmlxfw_mfa2.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
4 * Copyright (c) 2017-2019 Mellanox Technologies.
37 #include <contrib/xz-embedded/linux/include/linux/xz.h>
46 * +----------------------------------+
48 * +----------------------------------+
50 * | +------------------------------+ | +-----------------+
51 * | | package descriptor tlv +-----> |num_devices=n |
52 * | +------------------------------+ | |num_components=m |
53 * +----------------------------------+ |CB offset |
[all …]
/freebsd/contrib/llvm-project/libcxx/include/
H A Dqueue1 // -*- C++ -*-
2 //===----------------------------------------------------------------------===//
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
46 template<container-compatible-range<T> R> queue(from_range_t, R&& rg); // since C++23
59 template<container-compatible-range<T> R, class Alloc>
72 template<container-compatible-range<T> R>
81 queue(Container) -> queue<typename Container::value_type, Container>; // C++17
84 queue(InputIterator, InputIterator) -> queue<iter-value-type<InputIterator>>; // since C++23
87 queue(from_range_t, R&&) -> queue<ranges::range_value_t<R>>; // since C++23
[all …]
/freebsd/contrib/less/
H A Dpattern.c2 * Copyright (C) 1984-2025 Mark Nudelman
16 extern int caseless;
17 extern int is_caseless;
18 extern int utf_mode;
23 static int compile_pattern2(constant char *pattern, int search_type, PATTERN_TYPE *comp_pattern, in… in compile_pattern2()
29 struct re_pattern_buffer *comp = (struct re_pattern_buffer *) in compile_pattern2() local
32 if (re_compile_pattern(pattern, strlen(pattern), comp)) in compile_pattern2()
34 free(comp); in compile_pattern2()
37 return (-1); in compile_pattern2()
44 *comp_pattern = comp; in compile_pattern2()
[all …]
/freebsd/sys/dev/iser/
H A Diser_verbs.c1 /*-
29 static int iser_cq_poll_limit = 512;
34 ISER_ERR("got cq event %d", cause->event); in iser_cq_event_callback()
40 ISER_ERR("got qp event %d", cause->event); in iser_qp_event_callback()
48 event->event, event->device->name, in iser_event_handler()
49 event->element.port_num); in iser_event_handler()
53 * is_iser_tx_desc - Indicate if the completion wr_id
66 void *start = iser_conn->rx_descs; in is_iser_tx_desc()
67 u64 len = iser_conn->num_rx_descs * sizeof(*iser_conn->rx_descs); in is_iser_tx_desc()
74 return ((uintptr_t)wr_id != (uintptr_t)iser_conn->login_resp_buf); in is_iser_tx_desc()
[all …]
/freebsd/sys/net/
H A Dslcompress.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
37 * - Initial distribution.
53 #define INCR(counter) ++comp->counter;
58 #define BCMP(p1, p2, n) bcmp((void *)(p1), (void *)(p2), (int)(n))
59 #define BCOPY(p1, p2, n) bcopy((void *)(p1), (void *)(p2), (int)(n))
62 sl_compress_init(struct slcompress *comp, int max_state) in sl_compress_init() argument
65 struct cstate *tstate = comp->tstate; in sl_compress_init()
67 if (max_state == -1) { in sl_compress_init()
68 max_state = MAX_STATES - 1; in sl_compress_init()
[all …]
/freebsd/sys/geom/virstor/
H A Dg_virstor.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2006-2007 Ivan Voras <ivoras@freebsd.org>
30 * - "Components" are wrappers around providers that make up the
101 static int read_metadata(struct g_consumer *, struct g_virstor_metadata *);
103 static int clear_metadata(struct g_virstor_component *);
104 static int add_provider_to_geom(struct g_virstor_softc *, struct g_provider *,
110 static int virstor_geom_destroy(struct g_virstor_softc *, boolean_t,
115 static int allocate_chunk(struct g_virstor_softc *,
117 static void delay_destroy_consumer(void *, int);
[all …]
/freebsd/usr.sbin/ppp/
H A Dslcompress.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
37 * - Initial distribution.
82 sl_compress_init(struct slcompress *comp, int max_state) in sl_compress_init() argument
85 register struct cstate *tstate = comp->tstate; in sl_compress_init()
87 memset(comp, '\0', sizeof *comp); in sl_compress_init()
88 for (i = max_state; i > 0; --i) { in sl_compress_init()
90 tstate[i].cs_next = &tstate[i - 1]; in sl_compress_init()
94 comp->last_cs = &tstate[0]; in sl_compress_init()
95 comp->last_recv = 255; in sl_compress_init()
[all …]
/freebsd/crypto/openssl/crypto/stack/
H A Dstack.c2 * Copyright 1995-2024 The OpenSSL Project Authors. All Rights Reserved.
18 OSSL_SAFE_MATH_SIGNED(int, int)
23 static const int min_nodes = 4;
24 static const int max_nodes = SIZE_MAX / sizeof(void *) < INT_MAX
25 ? (int)(SIZE_MAX / sizeof(void *)) : INT_MAX;
28 int num;
30 int sorted;
31 int num_alloc;
32 OPENSSL_sk_compfunc comp; member
38 OPENSSL_sk_compfunc old = sk->comp; in OPENSSL_sk_set_cmp_func()
[all …]
/freebsd/lib/libc/stdlib/
H A Dtsearch.338 .Fn tdelete "const void * restrict key" "posix_tnode ** restrict rootp" "int (*compar) (const void …
40 .Fn tfind "const void *key" "posix_tnode * const *rootp" "int (*compar) (const void *, const void *…
42 .Fn tsearch "const void *key" "posix_tnode **rootp" "int (*compar) (const void *, const void *)"
44 .Fn twalk "const posix_tnode *root" "void (*action) (const posix_tnode *, VISIT, int)"
147 .Bd -literal
153 comp(const void *a, const void *b)
160 printwalk(const posix_tnode * node, VISIT v, int __unused0)
174 char two[] = "blah-2";
175 char three[] = "blah-3";
176 char four[] = "blah-4";
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/regex/
H A Dt_regex_att.c3 /*-
44 #include <atf-c.h>
64 static int
74 { "a[-]?c", "ac" }, // basic.dat in bug()
156 { "a[-]?c", "ac" }, // basic.dat in bug()
192 static int
197 int v; in optional()
215 static int
223 "BUG=alternation-order", // don't have it in unsupported()
224 "BUG=first-match", // don't have it in unsupported()
[all …]
/freebsd/contrib/lib9p/
H A Drfuncs.c51 * but basename("foo/bar/") is still "bar" -- no trailing
66 const char *endp, *comp; in r_basename() local
75 comp = "."; in r_basename()
84 endp = path + strlen(path) - 1; in r_basename()
86 endp--; in r_basename()
90 comp = "/"; in r_basename()
96 * we have a non-empty basename, ending in r_basename()
103 * either comp==path, or comp[-1] is '/'. in r_basename()
106 * is *not* '/', we had comp>path initially, and in r_basename()
112 * comp==path, or comp[-1] is '/'. in r_basename()
[all …]
/freebsd/usr.bin/calendar/
H A Dsunpos.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2009-2010 Edwin Groothuis <edwin@FreeBSD.org>.
34 * http://old.saao.ac.za/public-info/sun-moon-stars/sun-index/how-to-calculate-altaz/
56 comp(char *s, double v, double c) in comp() function
59 printf("%-*s %*g %*g %*g\n", 15, s, 15, v, 15, c, 15, v - c); in comp()
62 int expY;
72 double expDEC = -12.789;
74 double explatitude = -22.57;
75 double expHA = -37.673;
[all …]
/freebsd/crypto/openssl/crypto/
H A Dcomp_methods.c11 #include <openssl/comp.h>
15 #include "internal/comp.h"
22 static int sk_comp_cmp(const SSL_COMP *const *a, const SSL_COMP *const *b) in sk_comp_cmp()
24 return ((*a)->id - (*b)->id); in sk_comp_cmp()
32 SSL_COMP *comp = NULL; in STACK_OF() local
38 comp = OPENSSL_malloc(sizeof(*comp)); in STACK_OF()
39 if (comp != NULL) { in STACK_OF()
40 comp->method = method; in STACK_OF()
41 comp->id = SSL_COMP_ZLIB_IDX; in STACK_OF()
42 comp->name = COMP_get_name(method); in STACK_OF()
[all …]
/freebsd/usr.sbin/mfiutil/
H A Dmfiutil.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
51 static int fw_name_width, fw_version_width, fw_date_width, fw_time_width;
57 …fprintf(stderr, "usage: %s [-de] [-D device] [-u unit] [-t type] <command> ...\n\n", getprogname()… in usage()
60 fprintf(stderr, " show adapter - display controller information\n"); in usage()
61 fprintf(stderr, " show battery - display battery information\n"); in usage()
62 fprintf(stderr, " show config - display RAID configuration\n"); in usage()
63 fprintf(stderr, " show drives - list physical drives\n"); in usage()
64 fprintf(stderr, " show events - display event log\n"); in usage()
65 fprintf(stderr, " show firmware - list firmware images\n"); in usage()
[all …]
/freebsd/usr.bin/mt/
H A Dmt.c2 * SPDX-License-Identifier: BSD-3-Clause
30 /*-
63 * mt --
118 int c_ronly;
119 int c_flags;
144 { "comp", MTCOMP, 0, NEED_2ARGS|ZERO_ALLOWED|IS_COMP },
165 static const char *getblksiz(int);
169 const char *get_driver_state_str(int dsreg);
171 static int mt_locate(int argc, char **argv, int mtfd, const char *tape);
172 static int nstatus_print(int argc, char **argv, char *xml_str,
[all …]
/freebsd/tests/sys/aio/
H A Daio_test.c1 /*-
30 * size buffer with pseudo-random data, writing it to one fd using AIO, then
64 #include <atf-c.h>
85 int ac_read_fd, ac_write_fd;
88 int ac_buflen;
89 int ac_seconds;
99 aio_fill_buffer(char *buffer, int len, long seed) in aio_fill_buffer()
102 int i; in aio_fill_buffer()
115 static int
116 aio_test_buffer(char *buffer, int len, long seed) in aio_test_buffer()
[all …]
/freebsd/lib/libc/gen/
H A Dfmtmsg.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
40 static char *printfmt(char *, long, const char *, int, const char *,
44 *sevinfo(int);
45 static int validmsgverb(const char *);
47 int
48 fmtmsg(long class, const char *label, int sev, const char *text, in fmtmsg()
112 printfmt(char *msgverb, long class, const char *label, int sev, in printfmt()
116 char *comp, *output; in printfmt() local
134 while ((comp = nextcomp(msgverb)) != NULL) { in printfmt()
[all …]
/freebsd/crypto/heimdal/lib/krb5/
H A Dprincipal.c2 * Copyright (c) 1997-2007 Kungliga Tekniska Högskolan
60 #define princ_num_comp(P) ((P)->name.name_string.len)
61 #define princ_type(P) ((P)->name.name_type)
62 #define princ_comp(P) ((P)->name.name_string.val)
63 #define princ_ncomp(P, N) ((P)->name.name_string.val[(N)])
64 #define princ_realm(P) ((P)->realm)
104 int type) in krb5_principal_set_type()
120 KRB5_LIB_FUNCTION int KRB5_LIB_CALL
148 unsigned int component) in krb5_principal_get_comp_string()
166 KRB5_LIB_FUNCTION unsigned int KRB5_LIB_CALL
[all …]
/freebsd/crypto/openssl/crypto/comp/
H A Dcomp_lib.c2 * Copyright 1998-2020 The OpenSSL Project Authors. All Rights Reserved.
14 #include <openssl/comp.h>
27 ret->meth = meth; in COMP_CTX_new()
28 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in COMP_CTX_new()
37 return ctx->meth; in COMP_CTX_get_method()
40 int COMP_get_type(const COMP_METHOD *meth) in COMP_get_type()
44 return meth->type; in COMP_get_type()
51 return meth->name; in COMP_get_name()
58 if (ctx->meth->finish != NULL) in COMP_CTX_free()
59 ctx->meth->finish(ctx); in COMP_CTX_free()
[all …]
/freebsd/libexec/fingerd/
H A Dfingerd.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
54 int
55 main(int argc, char *argv[]) in main()
58 int ch; in main()
62 int p[2], debug, kflag, logging, pflag, secure; in main()
64 char **ap, *av[ENTRIES + 1], **comp, line[1024], *prog; in main() local
71 while ((ch = getopt(argc, argv, "dklp:s")) != -1) in main()
91 logerr("illegal option -- %c", optopt); in main()
95 * Enable server-side Transaction TCP. in main()
[all …]
/freebsd/sys/dev/qat/qat_hw/qat_4xxxvf/
H A Dadf_4xxxvf_hw_data.c1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /* Copyright(c) 2007-2025 Intel Corporation */
25 (COMP | COMP << ADF_CFG_SERV_RING_PAIR_1_SHIFT | \
26 COMP << ADF_CFG_SERV_RING_PAIR_2_SHIFT | \
27 COMP << ADF_CFG_SERV_RING_PAIR_3_SHIFT)
41 COMP << ADF_CFG_SERV_RING_PAIR_2_SHIFT | \
42 COMP << ADF_CFG_SERV_RING_PAIR_3_SHIFT)
46 COMP << ADF_CFG_SERV_RING_PAIR_2_SHIFT | \
47 COMP << ADF_CFG_SERV_RING_PAIR_3_SHIFT)
110 /* CPP clock is half high-speed clock */ in get_clock_speed()
[all …]
/freebsd/sys/dev/spibus/
H A Dacpi_spibus.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
71 return (res->Type == ACPI_RESOURCE_TYPE_SERIAL_BUS && in acpi_resource_is_spi_serialbus()
72 res->Data.CommonSerialBus.Type == ACPI_RESOURCE_SERIAL_TYPE_SPI); in acpi_resource_is_spi_serialbus()
84 res->Data.SpiSerialBus.ResourceSource.StringPtr, &handle); in acpi_spibus_get_acpi_res_cb()
87 memcpy(sb, &res->Data.SpiSerialBus, in acpi_spibus_get_acpi_res_cb()
93 sb->ResourceSource_Handle = handle; in acpi_spibus_get_acpi_res_cb()
95 } else if (res->Type == ACPI_RESOURCE_TYPE_END_TAG) in acpi_spibus_get_acpi_res_cb()
105 printf(" DeviceSelection: 0x%04hx\n", sb->DeviceSelection); in acpi_spibus_dump_res()
106 printf(" ConnectionSpeed: %uHz\n", sb->ConnectionSpeed); in acpi_spibus_dump_res()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dblkptr.c1 // SPDX-License-Identifier: CDDL-1.0
27 * Embedded-data Block Pointers
35 * Embedded-data Block Pointers allow small pieces of data (the "payload",
40 * BP_EMBEDDED_TYPE_DATA block pointers allow highly-compressible data to
43 * pipeline doesn't need special-cases to handle these block pointers.
50 enum zio_compress comp, int uncompressed_size, int compressed_size) in encode_embedded_bp_compressed() argument
58 comp != ZIO_COMPRESS_OFF); in encode_embedded_bp_compressed()
59 ASSERT3U(comp, >=, ZIO_COMPRESS_OFF); in encode_embedded_bp_compressed()
60 ASSERT3U(comp, <, ZIO_COMPRESS_FUNCTIONS); in encode_embedded_bp_compressed()
64 BP_SET_COMPRESS(bp, comp); in encode_embedded_bp_compressed()
[all …]

12345678910>>...16