| /trueos/sys/netgraph/bluetooth/l2cap/ |
| HD | ng_l2cap_cmds.c | 66 ng_l2cap_cmd_p cmd = NULL; in ng_l2cap_con_wakeup() local 71 TAILQ_FOREACH(cmd, &con->cmd_list, next) { in ng_l2cap_con_wakeup() 72 KASSERT((cmd->con == con), in ng_l2cap_con_wakeup() 76 if (!(cmd->flags & NG_L2CAP_CMD_PENDING)) in ng_l2cap_con_wakeup() 80 if (cmd == NULL) in ng_l2cap_con_wakeup() 84 m = cmd->aux; in ng_l2cap_con_wakeup() 85 cmd->aux = NULL; in ng_l2cap_con_wakeup() 88 switch (cmd->code) { in ng_l2cap_con_wakeup() 104 ng_l2cap_unlink_cmd(cmd); in ng_l2cap_con_wakeup() 105 ng_l2cap_free_cmd(cmd); in ng_l2cap_con_wakeup() [all …]
|
| HD | ng_l2cap_evnt.c | 277 ng_l2cap_cmd_p cmd = NULL; in ng_l2cap_process_cmd_rej() local 288 cmd = ng_l2cap_cmd_by_ident(con, ident); in ng_l2cap_process_cmd_rej() 289 if (cmd != NULL) { in ng_l2cap_process_cmd_rej() 291 if (ng_l2cap_command_untimeout(cmd) != 0) { in ng_l2cap_process_cmd_rej() 296 ng_l2cap_unlink_cmd(cmd); in ng_l2cap_process_cmd_rej() 298 switch (cmd->code) { in ng_l2cap_process_cmd_rej() 300 ng_l2cap_l2ca_con_rsp(cmd->ch,cmd->token,cp->reason,0); in ng_l2cap_process_cmd_rej() 301 ng_l2cap_free_chan(cmd->ch); in ng_l2cap_process_cmd_rej() 305 ng_l2cap_l2ca_cfg_rsp(cmd->ch, cmd->token, cp->reason); in ng_l2cap_process_cmd_rej() 309 ng_l2cap_l2ca_discon_rsp(cmd->ch,cmd->token,cp->reason); in ng_l2cap_process_cmd_rej() [all …]
|
| /trueos/sys/mips/nlm/dev/sec/ |
| HD | nlmseclib.c | 61 struct xlp_sec_command *cmd) in nlm_crypto_complete_sec_request() argument 71 cmd->ctrlp->cipherkeylen, vtophys(cmd->ctrlp)); in nlm_crypto_complete_sec_request() 73 m.msg[1] = nlm_crypto_form_pkt_fmn_entry1(0, cmd->ctrlp->hashkeylen, in nlm_crypto_complete_sec_request() 74 NLM_CRYPTO_PKT_DESC_SIZE(cmd->nsegs), vtophys(cmd->paramp)); in nlm_crypto_complete_sec_request() 77 m.msg[2] = (uintptr_t)cmd; in nlm_crypto_complete_sec_request() 93 nlm_crypto_form_srcdst_segs(struct xlp_sec_command *cmd) in nlm_crypto_form_srcdst_segs() argument 99 crp = cmd->crp; in nlm_crypto_form_srcdst_segs() 100 cipdesc = cmd->enccrd; in nlm_crypto_form_srcdst_segs() 105 srcseg = nlm_crypto_fill_src_seg(cmd->paramp, srcseg, in nlm_crypto_form_srcdst_segs() 106 cmd->iv, cmd->ivlen); in nlm_crypto_form_srcdst_segs() [all …]
|
| HD | nlmsec.c | 126 print_crypto_params(struct xlp_sec_command *cmd, struct nlm_fmn_msg m) in print_crypto_params() argument 130 msg0 = cmd->ctrlp->desc0; in print_crypto_params() 131 msg1 = cmd->paramp->desc0; in print_crypto_params() 132 msg2 = cmd->paramp->desc1; in print_crypto_params() 133 msg3 = cmd->paramp->desc2; in print_crypto_params() 134 msg4 = cmd->paramp->desc3; in print_crypto_params() 135 msg5 = cmd->paramp->segment[0][0]; in print_crypto_params() 136 msg6 = cmd->paramp->segment[0][1]; in print_crypto_params() 241 print_cmd(struct xlp_sec_command *cmd) in print_cmd() argument 243 printf("session_num :%d\n",cmd->session_num); in print_cmd() [all …]
|
| HD | nlmrsa.c | 80 static int xlp_get_rsa_opsize(struct xlp_rsa_command *cmd, unsigned int bits); 81 static void xlp_free_cmd_params(struct xlp_rsa_command *cmd); 141 struct xlp_rsa_command *cmd = NULL; in xlp_rsa_init() local 163 cmd = malloc(sizeof(struct xlp_rsa_command), M_DEVBUF, in xlp_rsa_init() 165 KASSERT(cmd != NULL, ("%s:cmd is NULL\n", __func__)); in xlp_rsa_init() 166 cmd->rsasrc = contigmalloc(sizeof(nlm_rsa_ucode_data), in xlp_rsa_init() 172 KASSERT(cmd->rsasrc != NULL, in xlp_rsa_init() 174 memcpy(cmd->rsasrc, nlm_rsa_ucode_data, in xlp_rsa_init() 177 vtophys(cmd->rsasrc)); in xlp_rsa_init() 179 vtophys(cmd->rsasrc)); in xlp_rsa_init() [all …]
|
| /trueos/contrib/ofed/libibverbs/src/ |
| HD | cmd.c | 55 struct ibv_get_context_v2 *cmd; in ibv_cmd_get_context_v2() local 64 cmd_size = sizeof *cmd + new_cmd_size - sizeof *new_cmd; in ibv_cmd_get_context_v2() 65 cmd = alloca(cmd_size); in ibv_cmd_get_context_v2() 66 memcpy(cmd->driver_data, new_cmd->driver_data, new_cmd_size - sizeof *new_cmd); in ibv_cmd_get_context_v2() 68 IBV_INIT_CMD_RESP(cmd, cmd_size, GET_CONTEXT, resp, resp_size); in ibv_cmd_get_context_v2() 69 cmd->cq_fd_tab = (uintptr_t) &cq_fd; in ibv_cmd_get_context_v2() 71 if (write(context->cmd_fd, cmd, cmd_size) != cmd_size) in ibv_cmd_get_context_v2() 86 int ibv_cmd_get_context(struct ibv_context *context, struct ibv_get_context *cmd, in ibv_cmd_get_context() argument 91 return ibv_cmd_get_context_v2(context, cmd, cmd_size, resp, resp_size); in ibv_cmd_get_context() 93 IBV_INIT_CMD_RESP(cmd, cmd_size, GET_CONTEXT, resp, resp_size); in ibv_cmd_get_context() [all …]
|
| /trueos/sbin/ipfw/ |
| HD | ipv6.c | 88 print_ip6(ipfw_insn_ip6 *cmd, char const *s) in print_ip6() argument 91 int len = F_LEN((ipfw_insn *) cmd) - 1; in print_ip6() 92 struct in6_addr *a = &(cmd->addr6); in print_ip6() 95 printf("%s%s ", cmd->o.len & F_NOT ? " not": "", s); in print_ip6() 97 if (cmd->o.opcode == O_IP6_SRC_ME || cmd->o.opcode == O_IP6_DST_ME) { in print_ip6() 101 if (cmd->o.opcode == O_IP6) { in print_ip6() 114 (cmd->o.opcode == O_IP6_SRC || cmd->o.opcode == O_IP6_DST) ? in print_ip6() 139 fill_icmp6types(ipfw_insn_icmp6 *cmd, char *av, int cblen) in fill_icmp6types() argument 145 bzero(cmd, sizeof(*cmd)); in fill_icmp6types() 160 cmd->d[type / 32] |= ( 1 << (type % 32)); in fill_icmp6types() [all …]
|
| HD | ipfw2.c | 83 #define CHECK_CMDLEN CHECK_LENGTH(cblen, F_LEN((ipfw_insn *)cmd)) 609 print_newports(ipfw_insn_u16 *cmd, int proto, int opcode) in print_newports() argument 611 uint16_t *p = cmd->ports; in print_newports() 622 for (i = F_LEN((ipfw_insn *)cmd) - 1; i > 0; i--, p += 2) { in print_newports() 701 fill_newports(ipfw_insn_u16 *cmd, char *av, int proto, int cblen) in fill_newports() argument 703 uint16_t a, b, *p = cmd->ports; in fill_newports() 741 cmd->o.len |= i + 1; /* leave F_NOT and F_OR untouched */ in fill_newports() 750 fill_dscp(ipfw_insn *cmd, char *av, int cblen) in fill_dscp() argument 756 cmd->opcode = O_DSCP; in fill_dscp() 757 cmd->len |= F_INSN_SIZE(ipfw_insn_u32) + 1; in fill_dscp() [all …]
|
| /trueos/sys/powerpc/powermac/ |
| HD | smu.c | 63 volatile uint8_t cmd; member 169 static int smu_run_cmd(device_t dev, struct smu_cmd *cmd, int wait); 414 smu_send_cmd(device_t dev, struct smu_cmd *cmd) in smu_send_cmd() argument 425 sc->sc_cur_cmd = cmd; in smu_send_cmd() 428 sc->sc_cmd->cmd = cmd->cmd; in smu_send_cmd() 429 sc->sc_cmd->len = cmd->len; in smu_send_cmd() 430 memcpy(sc->sc_cmd->data, cmd->data, sizeof(cmd->data)); in smu_send_cmd() 465 sc->sc_cur_cmd->cmd = sc->sc_cmd->cmd; in smu_doorbell_intr() 486 smu_run_cmd(device_t dev, struct smu_cmd *cmd, int wait) in smu_run_cmd() argument 493 cmd_code = cmd->cmd; in smu_run_cmd() [all …]
|
| /trueos/tools/regression/zfs/ |
| HD | misc.sh | 135 cmd="mktemp -d /tmp/zfs-regression.XXXXXXXXXX" 136 TMPDIR=`${cmd}` || die "failed: ${cmd}" 137 cmd="mount -t tmpfs none ${TMPDIR}" 138 ${cmd} || die "failed: ${cmd}" 145 cmd="umount ${TMPDIR} && rmdir ${TMPDIR}" 146 eval "${cmd}" || die "failed: ${cmd}" 156 cmd="dd if=/dev/null of=${file} bs=1 count=0 seek=${size}" 157 ${cmd} > /dev/null 2>&1 || die "failed: ${cmd}" 170 cmd="mdconfig -a -t swap -s ${size} ${devparam}" 171 DISKNAME=`$cmd 2>/dev/null` || die "failed: ${cmd}" [all …]
|
| /trueos/sys/dev/nvme/ |
| HD | nvme_ctrlr_cmd.c | 37 struct nvme_command *cmd; in nvme_ctrlr_cmd_identify_controller() local 42 cmd = &req->cmd; in nvme_ctrlr_cmd_identify_controller() 43 cmd->opc = NVME_OPC_IDENTIFY; in nvme_ctrlr_cmd_identify_controller() 49 cmd->cdw10 = 1; in nvme_ctrlr_cmd_identify_controller() 59 struct nvme_command *cmd; in nvme_ctrlr_cmd_identify_namespace() local 64 cmd = &req->cmd; in nvme_ctrlr_cmd_identify_namespace() 65 cmd->opc = NVME_OPC_IDENTIFY; in nvme_ctrlr_cmd_identify_namespace() 70 cmd->nsid = nsid; in nvme_ctrlr_cmd_identify_namespace() 81 struct nvme_command *cmd; in nvme_ctrlr_cmd_create_io_cq() local 85 cmd = &req->cmd; in nvme_ctrlr_cmd_create_io_cq() [all …]
|
| HD | nvme_ns_cmd.c | 37 struct nvme_command *cmd; in nvme_ns_cmd_read() local 44 cmd = &req->cmd; in nvme_ns_cmd_read() 45 cmd->opc = NVME_OPC_READ; in nvme_ns_cmd_read() 46 cmd->nsid = ns->id; in nvme_ns_cmd_read() 49 *(uint64_t *)&cmd->cdw10 = lba; in nvme_ns_cmd_read() 50 cmd->cdw12 = lba_count-1; in nvme_ns_cmd_read() 62 struct nvme_command *cmd; in nvme_ns_cmd_read_bio() local 70 cmd = &req->cmd; in nvme_ns_cmd_read_bio() 71 cmd->opc = NVME_OPC_READ; in nvme_ns_cmd_read_bio() 72 cmd->nsid = ns->id; in nvme_ns_cmd_read_bio() [all …]
|
| /trueos/usr.bin/svn/svn/ |
| HD | Makefile | 11 SRCS= add-cmd.c blame-cmd.c cat-cmd.c changelist-cmd.c checkout-cmd.c \ 12 cl-conflicts.c cleanup-cmd.c commit-cmd.c conflict-callbacks.c \ 13 copy-cmd.c delete-cmd.c deprecated.c diff-cmd.c export-cmd.c \ 14 file-merge.c help-cmd.c import-cmd.c info-cmd.c list-cmd.c \ 15 lock-cmd.c log-cmd.c merge-cmd.c mergeinfo-cmd.c mkdir-cmd.c \ 16 move-cmd.c notify.c patch-cmd.c propdel-cmd.c propedit-cmd.c \ 17 propget-cmd.c proplist-cmd.c props.c propset-cmd.c relocate-cmd.c \ 18 resolve-cmd.c resolved-cmd.c revert-cmd.c status-cmd.c status.c \ 19 svn.c switch-cmd.c unlock-cmd.c update-cmd.c upgrade-cmd.c util.c
|
| /trueos/sys/cam/ata/ |
| HD | ata_all.c | 72 ata_op_string(struct ata_cmd *cmd) in ata_op_string() argument 75 if (cmd->control & 0x04) in ata_op_string() 77 switch (cmd->command) { in ata_op_string() 81 switch (cmd->features) { in ata_op_string() 115 if (cmd->features == 0xec) in ata_op_string() 117 switch (cmd->lba_low) { in ata_op_string() 160 switch (cmd->features) { in ata_op_string() 186 ata_cmd_string(struct ata_cmd *cmd, char *cmd_string, size_t len) in ata_cmd_string() argument 191 cmd->command, cmd->features, in ata_cmd_string() 192 cmd->lba_low, cmd->lba_mid, cmd->lba_high, cmd->device, in ata_cmd_string() [all …]
|
| /trueos/cddl/contrib/dtracetoolkit/Examples/ |
| HD | tcl_syscolors_example.txt | 209 [2;35m 0 16624 73 cmd -> if[0m 210 [2;35m 0 16624 89 cmd -> info[0m 211 [2;35m 0 16624 25 cmd <- info[0m 212 [2;35m 0 16624 46 cmd -> proc[0m 217 [2;35m 0 16624 23 cmd <- proc[0m 218 [2;35m 0 16624 9 cmd <- if[0m 219 [2;35m 0 16624 18 cmd -> tclInit[0m 221 [2;35m 0 16624 12 cmd -> global[0m 222 [2;35m 0 16624 12 cmd <- global[0m 223 [2;35m 0 16624 9 cmd -> global[0m [all …]
|
| HD | tcl_insflow_example.txt | 7 0 174829 4436207514685 3 cmd -> if 15 0 174829 4436207514845 6 cmd -> info 16 0 174829 4436207514883 38 cmd <- info 33 0 174829 4436207515031 6 cmd -> proc 34 0 174829 4436207515045 13 cmd <- proc 38 0 174829 4436207515069 6 cmd <- if 39 0 174829 4436207515086 16 cmd -> tclInit 50 0 174829 4436207515357 6 cmd -> global 51 0 174829 4436207515369 11 cmd <- global 62 0 174829 4436207515433 6 cmd -> global [all …]
|
| HD | tcl_calls_example.txt | 8 16021 cmd concat 1 9 16021 cmd exit 1 10 16021 cmd func_a 1 11 16021 cmd func_b 1 12 16021 cmd func_c 1 13 16021 cmd list 1 14 16021 cmd rename 1 15 16021 cmd source 1 16 16021 cmd tclInit 1 17 16021 cmd unset 1 [all …]
|
| HD | tcl_syscalls_example.txt | 13 16580 cmd concat 1 14 16580 cmd exit 1 15 16580 cmd func_a 1 16 16580 cmd func_b 1 17 16580 cmd func_c 1 18 16580 cmd list 1 19 16580 cmd rename 1 20 16580 cmd source 1 21 16580 cmd tclInit 1 22 16580 cmd unset 1 [all …]
|
| /trueos/sys/mips/rmi/dev/sec/ |
| HD | rmisec.c | 350 struct xlr_sec_command *cmd = NULL; in xlr_sec_process() local 365 cmd = &ses->cmd; in xlr_sec_process() 366 if (cmd == NULL) { in xlr_sec_process() 422 bzero(&cmd->op, sizeof(xlr_sec_io_t)); in xlr_sec_process() 424 cmd->op.source_buf = (uint64_t) (unsigned long)crp->crp_buf; in xlr_sec_process() 425 cmd->op.source_buf_size = crp->crp_ilen; in xlr_sec_process() 427 cmd->op.dest_buf = (uint64_t) (unsigned long)crp->crp_buf; in xlr_sec_process() 428 cmd->op.dest_buf_size = crp->crp_ilen; in xlr_sec_process() 430 cmd->op.dest_buf = (uint64_t) (unsigned long)crp->crp_buf; in xlr_sec_process() 431 cmd->op.dest_buf_size = crp->crp_ilen; in xlr_sec_process() [all …]
|
| /trueos/contrib/ofed/libibcm/src/ |
| HD | cm.c | 81 #define CM_CREATE_MSG_CMD_RESP(msg, cmd, resp, type, size) \ argument 85 size = sizeof(*hdr) + sizeof(*cmd); \ 90 cmd = msg + sizeof(*hdr); \ 91 hdr->cmd = type; \ 92 hdr->in = sizeof(*cmd); \ 94 memset(cmd, 0, sizeof(*cmd)); \ 98 cmd->response = (uintptr_t)resp;\ 101 #define CM_CREATE_MSG_CMD(msg, cmd, type, size) \ argument 105 size = sizeof(*hdr) + sizeof(*cmd); \ 110 cmd = msg + sizeof(*hdr); \ [all …]
|
| /trueos/sys/dev/mrsas/ |
| HD | mrsas_cam.c | 66 struct mrsas_mpt_cmd *cmd, union ccb *ccb); 68 mrsas_build_ldio(struct mrsas_softc *sc, struct mrsas_mpt_cmd *cmd, 71 mrsas_build_dcdb(struct mrsas_softc *sc, struct mrsas_mpt_cmd *cmd, 74 mrsas_setup_io(struct mrsas_softc *sc, struct mrsas_mpt_cmd *cmd, 80 void mrsas_release_mpt_cmd(struct mrsas_mpt_cmd *cmd); 81 void mrsas_unmap_request(struct mrsas_softc *sc, struct mrsas_mpt_cmd *cmd); 82 void mrsas_cmd_done(struct mrsas_softc *sc, struct mrsas_mpt_cmd *cmd); 91 static void mrsas_freeze_simq(struct mrsas_mpt_cmd *cmd, struct cam_sim *sim); 372 struct mrsas_mpt_cmd *cmd; in mrsas_scsiio_timeout() local 375 cmd = (struct mrsas_mpt_cmd *)data; in mrsas_scsiio_timeout() [all …]
|
| /trueos/usr.bin/usbhidaction/ |
| HD | usbhidaction.c | 94 struct command *cmd; in main() local 202 for (cmd = commands; cmd; cmd = cmd->next) { in main() 203 if (cmd->item.report_ID != 0 && in main() 204 buf[0] != cmd->item.report_ID) in main() 206 if (cmd->item.flags & HIO_VARIABLE) in main() 207 val = hid_get_data(buf, &cmd->item); in main() 209 uint32_t pos = cmd->item.pos; in main() 210 for (i = 0; i < cmd->item.report_count; i++) { in main() 211 val = hid_get_data(buf, &cmd->item); in main() 212 if (val == cmd->value) in main() [all …]
|
| /trueos/sys/ofed/drivers/infiniband/core/ |
| HD | uverbs_cmd.c | 277 struct ib_uverbs_get_context cmd; in ib_uverbs_get_context() local 288 if (copy_from_user(&cmd, buf, sizeof cmd)) in ib_uverbs_get_context() 298 INIT_UDATA(&udata, buf + sizeof cmd, in ib_uverbs_get_context() 299 (unsigned long) cmd.response + sizeof resp, in ib_uverbs_get_context() 300 in_len - sizeof cmd, out_len - sizeof resp); in ib_uverbs_get_context() 327 if (copy_to_user((void __user *) (unsigned long) cmd.response, in ib_uverbs_get_context() 367 struct ib_uverbs_query_device cmd; in ib_uverbs_query_device() local 375 if (copy_from_user(&cmd, buf, sizeof cmd)) in ib_uverbs_query_device() 425 if (copy_to_user((void __user *) (unsigned long) cmd.response, in ib_uverbs_query_device() 436 struct ib_uverbs_query_port cmd; in ib_uverbs_query_port() local [all …]
|
| /trueos/usr.bin/rpcgen/ |
| HD | rpc_main.c | 141 struct commandline cmd; in main() local 143 (void) memset((char *)&cmd, 0, sizeof (struct commandline)); in main() 145 if (!parseargs(argc, argv, &cmd)) in main() 152 if (cmd.Ssflag || cmd.Scflag || cmd.makefileflag) { in main() 153 checkfiles(cmd.infile, cmd.outfile); in main() 156 checkfiles(cmd.infile, NULL); in main() 158 if (cmd.cflag) { in main() 159 c_output(cmd.infile, "-DRPC_XDR", DONT_EXTEND, cmd.outfile); in main() 160 } else if (cmd.hflag) { in main() 161 h_output(cmd.infile, "-DRPC_HDR", DONT_EXTEND, cmd.outfile, in main() [all …]
|
| /trueos/contrib/wpa/hostapd/ |
| HD | hostapd_cli.c | 167 static int _wpa_ctrl_command(struct wpa_ctrl *ctrl, char *cmd, int print) in _wpa_ctrl_command() argument 178 ret = wpa_ctrl_request(ctrl, cmd, strlen(cmd), buf, &len, in _wpa_ctrl_command() 181 printf("'%s' command timed out.\n", cmd); in _wpa_ctrl_command() 184 printf("'%s' command failed.\n", cmd); in _wpa_ctrl_command() 195 static inline int wpa_ctrl_command(struct wpa_ctrl *ctrl, char *cmd) in wpa_ctrl_command() argument 197 return _wpa_ctrl_command(ctrl, cmd, 1); in wpa_ctrl_command() 222 char *cmd; in hostapd_cli_exec() local 228 cmd = os_malloc(len); in hostapd_cli_exec() 229 if (cmd == NULL) in hostapd_cli_exec() 231 res = os_snprintf(cmd, len, "%s %s %s", program, arg1, arg2); in hostapd_cli_exec() [all …]
|