Home
last modified time | relevance | path

Searched +full:cmd +full:- +full:db (Results 1 – 25 of 204) sorted by relevance

123456789

/freebsd/contrib/wpa/src/eap_server/
H A Deap_sim_db.c2 * hostapd / EAP-SIM database/authenticator gateway
3 * Copyright (c) 2005-2010, 2012, Jouni Malinen <j@w1.fi>
8 * This is an example implementation of the EAP-SIM/AKA database/authentication
12 * EAP-SIM/AKA pseudonyms and re-auth identities. It can be used with different
14 * completely replaced if the in-memory database of pseudonyms/re-auth
86 static int db_table_exists(sqlite3 *db, const char *name) in db_table_exists() argument
88 char cmd[128]; in db_table_exists() local
89 os_snprintf(cmd, sizeof(cmd), "SELECT 1 FROM %s;", name); in db_table_exists()
90 return sqlite3_exec(db, cmd, NULL, NULL, NULL) == SQLITE_OK; in db_table_exists()
94 static int db_table_create_pseudonym(sqlite3 *db) in db_table_create_pseudonym() argument
[all …]
/freebsd/contrib/wpa/src/ap/
H A Deap_user_db.c32 os_memset(&user->methods, 0, sizeof(user->methods)); in set_user_methods()
39 user->methods[num_methods].method = in set_user_methods()
41 &user->methods[num_methods].vendor); in set_user_methods()
42 if (user->methods[num_methods].vendor == EAP_VENDOR_IETF && in set_user_methods()
43 user->methods[num_methods].method == EAP_TYPE_NONE) { in set_user_methods()
44 if (os_strcmp(start, "TTLS-PAP") == 0) { in set_user_methods()
45 user->ttls_auth |= EAP_TTLS_AUTH_PAP; in set_user_methods()
48 if (os_strcmp(start, "TTLS-CHAP") == 0) { in set_user_methods()
49 user->ttls_auth |= EAP_TTLS_AUTH_CHAP; in set_user_methods()
52 if (os_strcmp(start, "TTLS-MSCHAP") == 0) { in set_user_methods()
[all …]
/freebsd/contrib/ofed/libmlx5/
H A Dverbs.c14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
48 #include "mlx5-abi.h"
60 struct ibv_query_device cmd; in mlx5_query_device() local
65 ret = ibv_cmd_query_device(context, attr, &raw_fw_ver, &cmd, sizeof cmd); in mlx5_query_device()
73 snprintf(attr->fw_ver, sizeof attr->fw_ver, in mlx5_query_device()
86 if (!ctx->hca_core_clock) in mlx5_read_clock()
87 return -EOPNOTSUP in mlx5_read_clock()
128 struct ibv_query_port cmd; mlx5_query_port() local
135 struct ibv_alloc_pd cmd; mlx5_alloc_pd() local
170 struct ibv_reg_mr cmd; mlx5_reg_mr() local
195 struct ibv_rereg_mr cmd; mlx5_rereg_mr() local
222 struct ibv_alloc_mw cmd; mlx5_alloc_mw() local
245 struct ibv_dealloc_mw cmd; mlx5_dealloc_mw() local
347 struct mlx5_create_cq cmd; create_cq() local
543 struct mlx5_resize_cq cmd; mlx5_resize_cq() local
628 struct mlx5_create_srq cmd; mlx5_create_srq() local
736 struct ibv_modify_srq cmd; mlx5_modify_srq() local
744 struct ibv_query_srq cmd; mlx5_query_srq() local
1203 mlx5_cmd_create_qp_ex(struct ibv_context * context,struct ibv_qp_init_attr_ex * attr,struct mlx5_create_qp * cmd,struct mlx5_qp * qp,struct mlx5_create_qp_resp_ex * resp) mlx5_cmd_create_qp_ex() argument
1248 struct mlx5_create_qp cmd; create_qp() local
1549 struct ibv_query_qp cmd; mlx5_query_qp() local
1576 struct ibv_modify_qp cmd = {}; mlx5_modify_qp() local
1582 uint32_t *db; mlx5_modify_qp() local
1790 struct ibv_open_xrcd cmd = {}; mlx5_open_xrcd() local
1824 struct mlx5_create_srq_ex cmd; mlx5_create_xrc_srq() local
1970 struct mlx5_query_device_ex cmd; mlx5_query_device_ex() local
2061 struct mlx5_create_wq cmd; mlx5_create_wq() local
2153 struct mlx5_modify_wq cmd = {}; mlx5_modify_wq() local
2201 struct ibv_create_rwq_ind_table *cmd; mlx5_create_rwq_ind_table() local
[all...]
/freebsd/sys/dev/firewire/
H A Dfwohci.c1 /*-
2 * SPDX-License-Identifier: BSD-4-Clause
5 * Copyright (c) 1998-2002 Katsushi Kobayashi and Hidetoshi Shimokawa
121 #define OWRITE(sc, r, x) bus_space_write_4((sc)->bst, (sc)->bsh, (r), (x))
122 #define OREAD(sc, r) bus_space_read_4((sc)->bst, (sc)->bsh, (r))
299 device_printf(sc->fc.dev, "%s: %d->%d (loop=%d)\n", in fwohci_set_bus_manager()
324 device_printf(sc->fc.dev, "%s: failed(1).\n", __func__); in fwphy_rddata()
335 device_printf(sc->fc.dev, "%s: failed(2).\n", __func__); in fwphy_rddata()
342 device_printf(sc->fc.dev, in fwphy_rddata()
351 fwohci_ioctl (struct cdev *dev, u_long cmd, caddr_t data, int flag, fw_proc *td) in fwohci_ioctl() argument
[all …]
/freebsd/sys/contrib/dev/iwlwifi/
H A Diwl-phy-db.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
3 * Copyright (C) 2005-2014, 2020-2021 Intel Corporation
10 #include "iwl-drv.h"
11 #include "iwl-phy-db.h"
12 #include "iwl-debug.h"
13 #include "iwl-op-mode.h"
14 #include "iwl-trans.h"
22 * struct iwl_phy_db - stores phy configuration and calibration data.
68 phy_db->trans = trans; in iwl_phy_db_init()
70 phy_db->n_group_txp = -1; in iwl_phy_db_init()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/reserved-memory/
H A Dqcom,cmd-db.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/reserved-memory/qcom,cmd-db.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm Command DB
10 Command DB is a database that provides a mapping between resource key and the
20 - Bjorn Andersson <bjorn.andersson@linaro.org>
23 - $ref: reserved-memory.yaml
27 const: qcom,cmd-db
30 - reg
[all …]
H A Dqcom,cmd-db.txt1 Command DB
2 ---------
4 Command DB is a database that provides a mapping between resource key and the
13 The bindings for Command DB is specified in the reserved-memory section in
14 devicetree. The devicetree representation of the command DB driver should be:
17 - compatible:
20 Definition: Should be "qcom,cmd-db"
22 - reg:
26 the Command DB in memory.
30 reserved-memory {
[all …]
/freebsd/lib/libc/db/test/btree.tests/
H A Dmain.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
37 #include <db.h>
46 char *cmd; member
49 void (*func)(DB *, char **);
54 DB *globaldb;
56 void append(DB *, char **);
57 void bstat(DB *, char **);
58 void cursor(DB *, char **);
59 void delcur(DB *, char **);
[all …]
/freebsd/contrib/ofed/libmlx4/
H A Dverbs.c14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
43 #include "mlx4-abi.h"
48 struct ibv_query_device cmd; in mlx4_query_device() local
53 ret = ibv_cmd_query_device(context, attr, &raw_fw_ver, &cmd, sizeof cmd); in mlx4_query_device()
61 snprintf(attr->fw_ver, sizeof attr->fw_ver, in mlx4_query_device()
74 struct mlx4_query_device_ex cmd = {}; in mlx4_query_device_ex() local
83 &cmd.ibv_cmd, sizeof(cmd.ibv_cmd), sizeof(cmd), in mlx4_query_device_ex()
90 mctx->core_clock.offset = resp.hca_core_clock_offset; in mlx4_query_device_ex()
91 mctx->core_clock.offset_valid = 1; in mlx4_query_device_ex()
[all …]
H A Dsrq.c14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
42 #include "mlx4-abi.h"
46 return srq->buf.buf + (n << srq->wqe_shift); in get_wqe()
53 pthread_spin_lock(&srq->lock); in mlx4_free_srq_wqe()
55 next = get_wqe(srq, srq->tail); in mlx4_free_srq_wqe()
56 next->next_wqe_index = htobe16(ind); in mlx4_free_srq_wqe()
57 srq->tail = ind; in mlx4_free_srq_wqe()
59 pthread_spin_unlock(&srq->lock); in mlx4_free_srq_wqe()
73 pthread_spin_lock(&srq->lock); in mlx4_post_srq_recv()
[all …]
/freebsd/sys/dev/cxgbe/tom/
H A Dt4_ddp.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
100 * reuse of buffers (avoiding the need to re-fault in pages, hold
104 * is a trade-off for performance.
106 * If an application ping-pongs two buffers for a connection via
118 if (ps->prsv.prsv_nppods > 0) in free_pageset()
119 t4_free_page_pods(&ps->prsv); in free_pageset()
121 for (i = 0; i < ps->npages; i++) { in free_pageset()
122 p = ps->pages[i]; in free_pageset()
141 if (ps->vm) in ddp_free_orphan_pagesets()
[all …]
/freebsd/crypto/openssl/test/recipes/
H A D20-test_kdf.t2 # Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
19 …{ cmd => [qw{openssl kdf -keylen 16 -digest SHA256 -kdfopt secret:secret -kdfopt seed:seed TLS1-PR…
21 desc => 'TLS1-PRF SHA256' },
22 …{ cmd => [qw{openssl kdf -keylen 16 -digest MD5-SHA1 -kdfopt secret:secret -kdfopt seed:seed TLS1-
24 desc => 'TLS1-PRF MD5-SHA1' },
25 …{ cmd => [qw{openssl kdf -keylen 10 -digest SHA256 -kdfopt key:secret -kdfopt salt:salt -kdfopt in…
28 …{ cmd => [qw{openssl kdf -keylen 25 -digest SHA256 -kdfopt pass:passwordPASSWORDpassword -kdfopt s…
29 expected => '34:8C:89:DB:CB:D3:2B:2F:32:D8:14:B8:11:6E:84:CF:2B:17:34:7E:BC:18:00:18:1C',
31cmd => [qw{openssl kdf -keylen 64 -mac KMAC128 -kdfopt maclen:20 -kdfopt hexkey:b74a149a161546f8c…
32 …expected => 'e9:c1:84:53:a0:62:b5:3b:db:fc:bb:5a:34:bd:b8:e5:e7:07:ee:bb:5d:d1:34:42:43:d8:cf:c2:c…
[all …]
/freebsd/sys/dev/iwm/
H A Dif_iwm_phy_db.c20 /*-
21 * Based on BSD-licensed source modules in the Linux iwlwifi driver,
34 * Copyright(c) 2007 - 2013 Intel Corporation. All rights reserved.
55 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
60 * Copyright(c) 2005 - 2013 Intel Corporation. All rights reserved.
90 /*-
91 * Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
166 * struct iwm_phy_db - stores phy configuration and calibration data.
196 phy_db->sc = sc; in iwm_phy_db_init()
198 phy_db->n_group_txp = -1; in iwm_phy_db_init()
[all …]
/freebsd/contrib/wpa/hostapd/
H A Dhlr_auc_gw.c2 * HLR/AuC testing gateway for hostapd EAP-SIM/AKA database/authenticator
3 * Copyright (c) 2005-2007, 2012-2017, Jouni Malinen <j@w1.fi>
8 * This is an example implementation of the EAP-SIM/AKA database/authentication
15 * text-based format:
17 * EAP-SIM / GSM triplet query/response:
18 * SIM-REQ-AUTH <IMSI> <max_chal>
19 * SIM-RESP-AUTH <IMSI> Kc1:SRES1:RAND1 Kc2:SRES2:RAND2 [Kc3:SRES3:RAND3]
20 * SIM-RESP-AUTH <IMSI> FAILURE
21 * GSM-AUTH-REQ <IMSI> RAND1:RAND2[:RAND3]
22 * GSM-AUTH-RESP <IMSI> Kc1:SRES1:Kc2:SRES2[:Kc3:SRES3]
[all …]
/freebsd/contrib/ofed/libirdma/
H A Dirdma_umain.c1 /*-
2 * SPDX-License-Identifier: GPL-2.0 or Linux-OpenIB
4 * Copyright (c) 2021 - 2022 Intel Corporation
16 * - Redistributions of source code must retain the above
20 * - Redistributions in binary form must reproduce the above
40 #include "irdma-abi.h"
51 char libirdma_version[] = "1.2.36-k";
122 * libirdma_query_device - fill libirdma_device structure
123 * @ctx_in - ibv_context identifying device
124 * @out - libirdma_device structure to fill quered info
[all …]
/freebsd/usr.bin/sdiff/tests/
H A Dd_same.out2 native-__sysctl: permit native-__sysctl: permit
3 native-close: permit native-close: permit
4 …native-connect: sockaddr eq "inet-[127.0.0.1]:53" then pe native-connect: sockaddr eq "inet-
5 …native-connect: sockaddr match "inet-\\\[*\\\]:80" then p native-connect: sockaddr match "in…
6 native-exit: permit native-exit: permit
7 …native-fcntl: cmd eq "F_SETFD" then permit native-fcntl: cmd eq "F_SETFD" the…
8 …native-fsread: filename eq "/" then permit native-fsread: filename eq "/" the…
9 …native-fsread: filename match "/<non-existent filename>: native-fsread: filename match "/<n…
10 …native-fsread: filename eq "/etc/lynx.cfg" then permit native-fsread: filename eq "/etc/l…
11 …native-fsread: filename eq "/etc/malloc.conf" then permit native-fsread: filename eq "/etc/m…
[all …]
/freebsd/sys/dev/ntb/test/
H A Dntb_tool.c1 /*-
55 * root@local# sysctl -a | grep ntb_tool
84 * dev.ntb_tool.0.db: 0x0
102 *-----------------------------------------------------------------------------
110 *-----------------------------------------------------------------------------
125 *-----------------------------------------------------------------------------
129 * root@local# sysctl dev.ntb_tool.0.db="c 0x1"
130 * root@local# sysctl dev.ntb_tool.0.db
147 * # Poll until local doorbell is set with the specified db bits
149 *-----------------------------------------------------------------------------
[all …]
/freebsd/sys/ddb/
H A Dddb.h1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
102 * - cmd: Top-level command table; a list of these is displayed
104 * - show: Sub-command
[all...]
/freebsd/contrib/netbsd-tests/usr.bin/sdiff/
H A Dd_same.out2 native-__sysctl: permit native-__sysctl: permit
3 native-close: permit native-close: permit
4 …native-connect: sockaddr eq "inet-[127.0.0.1]:53" then perm native-connect: sockaddr eq "ine…
5 …native-connect: sockaddr match "inet-\\\[*\\\]:80" then per native-connect: sockaddr match "…
6 native-exit: permit native-exit: permit
7 …native-fcntl: cmd eq "F_SETFD" then permit native-fcntl: cmd eq "F_SETFD" t…
8 …native-fsread: filename eq "/" then permit native-fsread: filename eq "/" t…
9 …native-fsread: filename match "/<non-existent filename>: *" native-fsread: filename match "/…
10 …native-fsread: filename eq "/etc/lynx.cfg" then permit native-fsread: filename eq "/etc…
11 …native-fsread: filename eq "/etc/malloc.conf" then permit native-fsread: filename eq "/etc…
[all …]
/freebsd/contrib/ofed/libcxgb4/
H A Dverbs.c2 * Copyright (c) 2006-2016 Chelsio, Inc. All rights reserved.
14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
44 #include "cxgb4-abi.h"
50 struct ibv_query_device cmd; in c4iw_query_device() local
55 ret = ibv_cmd_query_device(context, attr, &raw_fw_ver, &cmd, in c4iw_query_device()
56 sizeof cmd); in c4iw_query_device()
65 snprintf(attr->fw_ver, sizeof attr->fw_ver, in c4iw_query_device()
74 struct ibv_query_port cmd; in c4iw_query_port() local
76 return ibv_cmd_query_port(context, port, attr, &cmd, sizeof cmd); in c4iw_query_port()
[all …]
/freebsd/contrib/nvi/ex/
H A Dex_display.c1 /*-
27 static void db(SCR *, CB *, const char *);
30 * ex_display -- :display b[uffers] | c[onnections] | s[creens] | t[ags]
41 arg = cmdp->argv[0]; in ex_display()
43 switch (arg->bp[0]) { in ex_display()
61 ex_emsg(sp, cmdp->cmd->usage, EXM_USAGE); in ex_display()
66 * is_prefix --
73 return arg->len <= STRLEN(str) && !MEMCMP(arg->bp, str, arg->len); in is_prefix()
77 * bdisplay --
86 if (SLIST_EMPTY(sp->gp->cutq) && sp->gp->dcbp == NULL) { in bdisplay()
[all …]
/freebsd/sys/contrib/dev/iwlwifi/fw/api/
H A Dalive.h1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
3 * Copyright (C) 2012-2014, 2018, 2020-2021, 2024 Intel Corporation
4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH
5 * Copyright (C) 2016-2017 Intel Deutschland GmbH
116 * enum iwl_extended_cfg_flags - command
[all...]
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_alloc.c1 /*-
2 * Copyright (c) 2013-2017, Mellanox Technologies, Ltd. All rights reserved.
32 #include <linux/dma-mapping.h>
37 /* Handling for queue buffers -- we allocate a bunch of memory and
51 owned = MLX5_DMA_OWNED(buf->dev); in mlx5_buf_load_mem_cb()
54 MLX5_DMA_LOCK(buf->dev); in mlx5_buf_load_mem_cb()
58 buf->page_list[x] = segs[x].ds_addr; in mlx5_buf_load_mem_cb()
61 buf->load_done = MLX5_LOAD_ST_SUCCESS; in mlx5_buf_load_mem_cb()
63 buf->load_done = MLX5_LOAD_ST_FAILURE; in mlx5_buf_load_mem_cb()
65 MLX5_DMA_DONE(buf->dev); in mlx5_buf_load_mem_cb()
[all …]
/freebsd/sys/dev/tws/
H A Dtws_cam.c2 * SPDX-License-Identifier: BSD-2-Clause
44 static int tws_cam_depth=(TWS_MAX_REQS - TWS_RESERVED_REQS);
79 int tws_send_scsi_cmd(struct tws_softc *sc, int cmd);
137 if ( tws_cam_depth > (tws_queue_depth - TWS_RESERVED_REQS) ) in tws_cam_attach()
138 tws_cam_depth = tws_queue_depth - TWS_RESERVED_REQS; in tws_cam_attach()
153 sc->sim = cam_sim_alloc(tws_action, tws_poll, "tws", sc, in tws_cam_attach()
154 device_get_unit(sc->tws_dev), in tws_cam_attach()
155 &sc->sim_lock, in tws_cam_attach()
158 if (sc->sim == NULL) { in tws_cam_attach()
163 mtx_lock(&sc->sim_lock); in tws_cam_attach()
[all …]
/freebsd/usr.sbin/lpr/lpc/
H A Dlpc.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
33 #include "lp.cdefs.h" /* A cross-platform version of <sys/cdefs.h> */
58 * lpc -- line printer control program
72 static struct cmd *getcmd(const char *_name);
80 register struct cmd *c; in main()
88 if (--argc > 0) { in main()
90 if (c == (struct cmd *)-1) { in main()
98 if ((c->c_opts & LPC_PRIVCMD) && getuid() && in main()
103 if (c->c_generic != NULL) in main()
[all …]

123456789