| /freebsd-12-stable/sys/netgraph/bluetooth/l2cap/ |
| D | ng_l2cap_cmds.c | 68 ng_l2cap_cmd_p cmd = NULL; in ng_l2cap_con_wakeup() local 73 TAILQ_FOREACH(cmd, &con->cmd_list, next) { in ng_l2cap_con_wakeup() 74 KASSERT((cmd->con == con), in ng_l2cap_con_wakeup() 78 if (!(cmd->flags & NG_L2CAP_CMD_PENDING)) in ng_l2cap_con_wakeup() 82 if (cmd == NULL) in ng_l2cap_con_wakeup() 86 m = cmd->aux; in ng_l2cap_con_wakeup() 87 cmd->aux = NULL; in ng_l2cap_con_wakeup() 90 switch (cmd->code) { in ng_l2cap_con_wakeup() 105 ng_l2cap_unlink_cmd(cmd); in ng_l2cap_con_wakeup() 106 ng_l2cap_free_cmd(cmd); in ng_l2cap_con_wakeup() [all …]
|
| D | ng_l2cap_evnt.c | 387 ng_l2cap_cmd_p cmd = NULL; in ng_l2cap_process_cmd_rej() local 398 cmd = ng_l2cap_cmd_by_ident(con, ident); in ng_l2cap_process_cmd_rej() 399 if (cmd != NULL) { in ng_l2cap_process_cmd_rej() 401 if (ng_l2cap_command_untimeout(cmd) != 0) { in ng_l2cap_process_cmd_rej() 406 ng_l2cap_unlink_cmd(cmd); in ng_l2cap_process_cmd_rej() 408 switch (cmd->code) { in ng_l2cap_process_cmd_rej() 410 ng_l2cap_l2ca_con_rsp(cmd->ch,cmd->token,cp->reason,0); in ng_l2cap_process_cmd_rej() 411 ng_l2cap_free_chan(cmd->ch); in ng_l2cap_process_cmd_rej() 415 ng_l2cap_l2ca_cfg_rsp(cmd->ch, cmd->token, cp->reason); in ng_l2cap_process_cmd_rej() 419 ng_l2cap_l2ca_discon_rsp(cmd->ch,cmd->token,cp->reason); in ng_l2cap_process_cmd_rej() [all …]
|
| /freebsd-12-stable/sys/mips/nlm/dev/sec/ |
| D | nlmseclib.c | 63 struct xlp_sec_command *cmd) in nlm_crypto_complete_sec_request() argument 73 cmd->ctrlp->cipherkeylen, vtophys(cmd->ctrlp)); in nlm_crypto_complete_sec_request() 75 m.msg[1] = nlm_crypto_form_pkt_fmn_entry1(0, cmd->ctrlp->hashkeylen, in nlm_crypto_complete_sec_request() 76 NLM_CRYPTO_PKT_DESC_SIZE(cmd->nsegs), vtophys(cmd->paramp)); in nlm_crypto_complete_sec_request() 79 m.msg[2] = (uintptr_t)cmd; in nlm_crypto_complete_sec_request() 95 nlm_crypto_form_srcdst_segs(struct xlp_sec_command *cmd) in nlm_crypto_form_srcdst_segs() argument 101 crp = cmd->crp; in nlm_crypto_form_srcdst_segs() 102 cipdesc = cmd->enccrd; in nlm_crypto_form_srcdst_segs() 107 srcseg = nlm_crypto_fill_src_seg(cmd->paramp, srcseg, in nlm_crypto_form_srcdst_segs() 108 cmd->iv, cmd->ivlen); in nlm_crypto_form_srcdst_segs() [all …]
|
| D | 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 …]
|
| D | nlmrsa.c | 81 static int xlp_get_rsa_opsize(struct xlp_rsa_command *cmd, unsigned int bits); 82 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 …]
|
| /freebsd-12-stable/contrib/ofed/libibverbs/ |
| D | cmd.c | 47 int ibv_cmd_get_context(struct ibv_context *context, struct ibv_get_context *cmd, in ibv_cmd_get_context() argument 54 IBV_INIT_CMD_RESP(cmd, cmd_size, GET_CONTEXT, resp, resp_size); in ibv_cmd_get_context() 56 if (write(context->cmd_fd, cmd, cmd_size) != cmd_size) in ibv_cmd_get_context() 116 struct ibv_query_device *cmd, size_t cmd_size) in ibv_cmd_query_device() argument 120 IBV_INIT_CMD_RESP(cmd, cmd_size, QUERY_DEVICE, &resp, sizeof resp); in ibv_cmd_query_device() 122 if (write(context->cmd_fd, cmd, cmd_size) != cmd_size) in ibv_cmd_query_device() 137 struct ibv_query_device_ex *cmd, in ibv_cmd_query_device_ex() argument 158 IBV_INIT_CMD_RESP_EX_V(cmd, cmd_core_size, cmd_size, in ibv_cmd_query_device_ex() 161 cmd->comp_mask = 0; in ibv_cmd_query_device_ex() 162 cmd->reserved = 0; in ibv_cmd_query_device_ex() [all …]
|
| D | ibverbs.h | 67 #define IBV_INIT_CMD(cmd, size, opcode) \ argument 70 (cmd)->command = IB_USER_VERBS_CMD_##opcode; \ 72 (cmd)->command = IB_USER_VERBS_CMD_##opcode##_V2; \ 73 (cmd)->in_words = (size) / 4; \ 74 (cmd)->out_words = 0; \ 77 #define IBV_INIT_CMD_RESP(cmd, size, opcode, out, outsize) \ argument 80 (cmd)->command = IB_USER_VERBS_CMD_##opcode; \ 82 (cmd)->command = IB_USER_VERBS_CMD_##opcode##_V2; \ 83 (cmd)->in_words = (size) / 4; \ 84 (cmd)->out_words = (outsize) / 4; \ [all …]
|
| /freebsd-12-stable/usr.bin/procstat/ |
| D | procstat.c | 58 void (*cmd)(struct procstat *, struct kinfo_proc *); member 131 usage(const struct procstat_cmd *cmd) in usage() argument 136 if (cmd == NULL || (cmd->cmp & PS_MODE_COMPAT) == 0) { in usage() 156 multi = i + 1 < l && cmd_table[i].cmd == in usage() 157 cmd_table[i + 1].cmd; in usage() 161 for (; i + 1 < l && cmd_table[i].cmd == in usage() 162 cmd_table[i + 1].cmd; i++) in usage() 180 procstat(const struct procstat_cmd *cmd, struct procstat *prstat, in procstat() argument 189 cmd->cmd(prstat, kipp); in procstat() 255 const struct procstat_cmd *cmd; in getcmd() local [all …]
|
| /freebsd-12-stable/sys/powerpc/powermac/ |
| D | smu.c | 65 volatile uint8_t cmd; member 171 static int smu_run_cmd(device_t dev, struct smu_cmd *cmd, int wait); 416 smu_send_cmd(device_t dev, struct smu_cmd *cmd) in smu_send_cmd() argument 427 sc->sc_cur_cmd = cmd; in smu_send_cmd() 430 sc->sc_cmd->cmd = cmd->cmd; in smu_send_cmd() 431 sc->sc_cmd->len = cmd->len; in smu_send_cmd() 432 memcpy(sc->sc_cmd->data, cmd->data, sizeof(cmd->data)); in smu_send_cmd() 467 sc->sc_cur_cmd->cmd = sc->sc_cmd->cmd; in smu_doorbell_intr() 488 smu_run_cmd(device_t dev, struct smu_cmd *cmd, int wait) in smu_run_cmd() argument 495 cmd_code = cmd->cmd; in smu_run_cmd() [all …]
|
| /freebsd-12-stable/sbin/ipfw/ |
| D | ipv6.c | 88 print_ip6(struct buf_pr *bp, const ipfw_insn_ip6 *cmd) in print_ip6() argument 92 const struct in6_addr *a = &(cmd->addr6); in print_ip6() 95 len = F_LEN((const ipfw_insn *)cmd) - 1; in print_ip6() 96 if (cmd->o.opcode == O_IP6_SRC_ME || cmd->o.opcode == O_IP6_DST_ME) { in print_ip6() 100 if (cmd->o.opcode == O_IP6) { in print_ip6() 113 mb = (cmd->o.opcode == O_IP6_SRC || in print_ip6() 114 cmd->o.opcode == O_IP6_DST) ? 128: in print_ip6() 142 fill_icmp6types(ipfw_insn_icmp6 *cmd, char *av, int cblen) in fill_icmp6types() argument 147 memset(cmd, 0, sizeof(*cmd)); in fill_icmp6types() 162 cmd->d[type / 32] |= ( 1 << (type % 32)); in fill_icmp6types() [all …]
|
| D | ipfw2.c | 93 #define CHECK_CMDLEN CHECK_LENGTH(cblen, F_LEN((ipfw_insn *)cmd)) 911 print_newports(struct buf_pr *bp, const ipfw_insn_u16 *cmd, int proto, int opcode) in print_newports() argument 913 const uint16_t *p = cmd->ports; in print_newports() 924 for (i = F_LEN((const ipfw_insn *)cmd) - 1; i > 0; i--, p += 2) { in print_newports() 1004 fill_newports(ipfw_insn_u16 *cmd, char *av, int proto, int cblen) in fill_newports() argument 1006 uint16_t a, b, *p = cmd->ports; in fill_newports() 1044 cmd->o.len |= i + 1; /* leave F_NOT and F_OR untouched */ in fill_newports() 1053 fill_dscp(ipfw_insn *cmd, char *av, int cblen) in fill_dscp() argument 1059 cmd->opcode = O_DSCP; in fill_dscp() 1060 cmd->len |= F_INSN_SIZE(ipfw_insn_u32) + 1; in fill_dscp() [all …]
|
| /freebsd-12-stable/tools/regression/zfs/ |
| D | 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 …]
|
| /freebsd-12-stable/sys/dev/nvme/ |
| D | nvme_ctrlr_cmd.c | 39 struct nvme_command *cmd; in nvme_ctrlr_cmd_identify_controller() local 44 cmd = &req->cmd; in nvme_ctrlr_cmd_identify_controller() 45 cmd->opc = NVME_OPC_IDENTIFY; in nvme_ctrlr_cmd_identify_controller() 51 cmd->cdw10 = htole32(1); in nvme_ctrlr_cmd_identify_controller() 61 struct nvme_command *cmd; in nvme_ctrlr_cmd_identify_namespace() local 66 cmd = &req->cmd; in nvme_ctrlr_cmd_identify_namespace() 67 cmd->opc = NVME_OPC_IDENTIFY; in nvme_ctrlr_cmd_identify_namespace() 72 cmd->nsid = htole32(nsid); in nvme_ctrlr_cmd_identify_namespace() 82 struct nvme_command *cmd; in nvme_ctrlr_cmd_create_io_cq() local 86 cmd = &req->cmd; in nvme_ctrlr_cmd_create_io_cq() [all …]
|
| /freebsd-12-stable/sbin/ifconfig/ |
| D | ifvxlan.c | 200 struct ifvxlancmd cmd; in DECL_CMD_FUNC() local 212 bzero(&cmd, sizeof(cmd)); in DECL_CMD_FUNC() 213 cmd.vxlcmd_vni = val; in DECL_CMD_FUNC() 215 if (do_cmd(s, VXLAN_CMD_SET_VNI, &cmd, sizeof(cmd), 1) < 0) in DECL_CMD_FUNC() 222 struct ifvxlancmd cmd; in DECL_CMD_FUNC() local 227 bzero(&cmd, sizeof(cmd)); in DECL_CMD_FUNC() 243 cmd.vxlcmd_sa.in4 = *sin; in DECL_CMD_FUNC() 254 cmd.vxlcmd_sa.in6 = *sin6; in DECL_CMD_FUNC() 265 if (cmd.vxlcmd_sa.sa.sa_family == AF_INET) { in DECL_CMD_FUNC() 267 params.vxlp_local_sa.in4 = cmd.vxlcmd_sa.in4; in DECL_CMD_FUNC() [all …]
|
| /freebsd-12-stable/usr.bin/svn/svn/ |
| D | Makefile | 9 SRCS= add-cmd.c \ 10 auth-cmd.c \ 11 blame-cmd.c \ 12 cat-cmd.c \ 13 changelist-cmd.c \ 14 checkout-cmd.c \ 16 cleanup-cmd.c \ 17 commit-cmd.c \ 19 copy-cmd.c \ 20 delete-cmd.c \ [all …]
|
| /freebsd-12-stable/sys/dev/iwm/ |
| D | if_iwm_power.c | 157 struct iwm_beacon_filter_cmd *cmd) in iwm_beacon_filter_send_cmd() argument 162 0, sizeof(struct iwm_beacon_filter_cmd), cmd); in iwm_beacon_filter_send_cmd() 167 le32toh(cmd->ba_enable_beacon_abort)); in iwm_beacon_filter_send_cmd() 170 le32toh(cmd->ba_escape_timer)); in iwm_beacon_filter_send_cmd() 173 le32toh(cmd->bf_debug_flag)); in iwm_beacon_filter_send_cmd() 176 le32toh(cmd->bf_enable_beacon_filter)); in iwm_beacon_filter_send_cmd() 179 le32toh(cmd->bf_energy_delta)); in iwm_beacon_filter_send_cmd() 182 le32toh(cmd->bf_escape_timer)); in iwm_beacon_filter_send_cmd() 185 le32toh(cmd->bf_roaming_energy_delta)); in iwm_beacon_filter_send_cmd() 188 le32toh(cmd->bf_roaming_state)); in iwm_beacon_filter_send_cmd() [all …]
|
| /freebsd-12-stable/sys/cam/ata/ |
| D | ata_all.c | 74 ata_op_string(struct ata_cmd *cmd) in ata_op_string() argument 77 if (cmd->control & 0x04) in ata_op_string() 79 switch (cmd->command) { in ata_op_string() 81 switch (cmd->features) { in ata_op_string() 88 switch (cmd->features) { in ata_op_string() 93 switch (cmd->features) { in ata_op_string() 123 switch (cmd->features) { in ata_op_string() 128 switch (cmd->features) { in ata_op_string() 145 switch (cmd->features & 0xf) { in ata_op_string() 161 switch (cmd->sector_count_exp & 0xf) { in ata_op_string() [all …]
|
| /freebsd-12-stable/sys/ofed/drivers/infiniband/core/ |
| D | ib_uverbs_cmd.c | 322 struct ib_uverbs_get_context cmd; in ib_uverbs_get_context() local 332 if (copy_from_user(&cmd, buf, sizeof cmd)) in ib_uverbs_get_context() 342 ib_uverbs_init_udata(&udata, buf + sizeof cmd, in ib_uverbs_get_context() 343 u64_to_user_ptr(cmd.response + sizeof resp), in ib_uverbs_get_context() 344 in_len - sizeof cmd, out_len - sizeof resp); in ib_uverbs_get_context() 393 if (copy_to_user((void __user *) (unsigned long) cmd.response, in ib_uverbs_get_context() 475 struct ib_uverbs_query_device cmd; in ib_uverbs_query_device() local 481 if (copy_from_user(&cmd, buf, sizeof cmd)) in ib_uverbs_query_device() 487 if (copy_to_user((void __user *) (unsigned long) cmd.response, in ib_uverbs_query_device() 499 struct ib_uverbs_query_port cmd; in ib_uverbs_query_port() local [all …]
|
| /freebsd-12-stable/contrib/ofed/libibcm/ |
| D | cm.c | 71 #define CM_CREATE_MSG_CMD_RESP(msg, cmd, resp, type, size) \ argument 75 size = sizeof(*hdr) + sizeof(*cmd); \ 80 cmd = msg + sizeof(*hdr); \ 81 hdr->cmd = type; \ 82 hdr->in = sizeof(*cmd); \ 84 memset(cmd, 0, sizeof(*cmd)); \ 88 cmd->response = (uintptr_t)resp;\ 91 #define CM_CREATE_MSG_CMD(msg, cmd, type, size) \ argument 95 size = sizeof(*hdr) + sizeof(*cmd); \ 100 cmd = msg + sizeof(*hdr); \ [all …]
|
| /freebsd-12-stable/usr.bin/usbhidaction/ |
| D | usbhidaction.c | 96 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 …]
|
| /freebsd-12-stable/sys/dev/mmc/ |
| D | mmc_subr.c | 75 mmc_wait_for_cmd(device_t busdev, device_t dev, struct mmc_command *cmd, in mmc_wait_for_cmd() argument 84 memset(cmd->resp, 0, sizeof(cmd->resp)); in mmc_wait_for_cmd() 85 cmd->retries = 0; /* Retries done here, not in hardware. */ in mmc_wait_for_cmd() 86 cmd->mrq = &mreq; in mmc_wait_for_cmd() 87 if (cmd->data != NULL) in mmc_wait_for_cmd() 88 cmd->data->mrq = &mreq; in mmc_wait_for_cmd() 89 mreq.cmd = cmd; in mmc_wait_for_cmd() 93 err = cmd->error; in mmc_wait_for_cmd() 101 cmd->opcode, err); in mmc_wait_for_cmd() 110 struct mmc_command *cmd, int retries) in mmc_wait_for_app_cmd() argument [all …]
|
| /freebsd-12-stable/sys/dev/malo/ |
| D | if_malohal.c | 66 pCmd->cmdhdr.cmd = htole16(_cmd); \ 194 malo_hal_waitforcmd(struct malo_hal *mh, uint16_t cmd) in malo_hal_waitforcmd() argument 200 if (mh->mh_cmdbuf[0] == le16toh(cmd)) in malo_hal_waitforcmd() 211 malo_hal_execute_cmd(struct malo_hal *mh, unsigned short cmd) in malo_hal_execute_cmd() argument 218 cmd); in malo_hal_execute_cmd() 229 if (!malo_hal_waitforcmd(mh, cmd | 0x8000)) { in malo_hal_execute_cmd() 231 "timeout waiting for f/w cmd 0x%x\n", cmd); in malo_hal_execute_cmd() 245 struct malo_cmd_caltable *cmd; in malo_hal_get_cal_table() local 250 _CMD_SETUP(cmd, struct malo_cmd_caltable, MALO_HOSTCMD_GET_CALTABLE); in malo_hal_get_cal_table() 251 cmd->annex = annex; in malo_hal_get_cal_table() [all …]
|
| /freebsd-12-stable/sys/cam/nvme/ |
| D | nvme_all.c | 67 nvme_ns_cmd(struct ccb_nvmeio *nvmeio, uint8_t cmd, uint32_t nsid, in nvme_ns_cmd() argument 71 bzero(&nvmeio->cmd, sizeof(struct nvme_command)); in nvme_ns_cmd() 72 nvmeio->cmd.opc = cmd; in nvme_ns_cmd() 73 nvmeio->cmd.nsid = htole32(nsid); in nvme_ns_cmd() 74 nvmeio->cmd.cdw10 = htole32(cdw10); in nvme_ns_cmd() 75 nvmeio->cmd.cdw11 = htole32(cdw11); in nvme_ns_cmd() 76 nvmeio->cmd.cdw12 = htole32(cdw12); in nvme_ns_cmd() 77 nvmeio->cmd.cdw13 = htole32(cdw13); in nvme_ns_cmd() 78 nvmeio->cmd.cdw14 = htole32(cdw14); in nvme_ns_cmd() 79 nvmeio->cmd.cdw15 = htole32(cdw15); in nvme_ns_cmd() [all …]
|
| /freebsd-12-stable/usr.bin/rpcgen/ |
| D | rpc_main.c | 135 struct commandline cmd; in main() local 137 (void) memset((char *)&cmd, 0, sizeof (struct commandline)); in main() 138 if (!parseargs(argc, argv, &cmd)) in main() 145 if (cmd.Ssflag || cmd.Scflag || cmd.makefileflag) { in main() 146 checkfiles(cmd.infile, cmd.outfile); in main() 149 checkfiles(cmd.infile, NULL); in main() 151 if (cmd.cflag) { in main() 152 c_output(cmd.infile, "-DRPC_XDR", DONT_EXTEND, cmd.outfile); in main() 153 } else if (cmd.hflag) { in main() 154 h_output(cmd.infile, "-DRPC_HDR", DONT_EXTEND, cmd.outfile, in main() [all …]
|
| /freebsd-12-stable/sys/dev/mrsas/ |
| D | mrsas_cam.c | 65 struct mrsas_mpt_cmd *cmd, union ccb *ccb); 67 mrsas_build_ldio_rw(struct mrsas_softc *sc, struct mrsas_mpt_cmd *cmd, 70 mrsas_build_ldio_nonrw(struct mrsas_softc *sc, struct mrsas_mpt_cmd *cmd, 73 mrsas_build_syspdio(struct mrsas_softc *sc, struct mrsas_mpt_cmd *cmd, 76 mrsas_setup_io(struct mrsas_softc *sc, struct mrsas_mpt_cmd *cmd, 82 void mrsas_release_mpt_cmd(struct mrsas_mpt_cmd *cmd); 83 void mrsas_unmap_request(struct mrsas_softc *sc, struct mrsas_mpt_cmd *cmd); 84 void mrsas_cmd_done(struct mrsas_softc *sc, struct mrsas_mpt_cmd *cmd); 93 static void mrsas_freeze_simq(struct mrsas_mpt_cmd *cmd, struct cam_sim *sim); 109 static boolean_t mrsas_is_prp_possible(struct mrsas_mpt_cmd *cmd, [all …]
|