Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 2339) sorted by relevance

12345678910>>...94

/freebsd/sys/contrib/dev/rtw89/
H A Dcam.h15 static inline void FWCMD_SET_ADDR_IDX(void *cmd, u32 value) in FWCMD_SET_ADDR_IDX() argument
17 le32p_replace_bits((__le32 *)(cmd) + 1, value, GENMASK(7, 0)); in FWCMD_SET_ADDR_IDX()
20 static inline void FWCMD_SET_ADDR_OFFSET(void *cmd, u32 value) in FWCMD_SET_ADDR_OFFSET() argument
22 le32p_replace_bits((__le32 *)(cmd) + 1, value, GENMASK(15, 8)); in FWCMD_SET_ADDR_OFFSET()
25 static inline void FWCMD_SET_ADDR_LEN(void *cmd, u32 value) in FWCMD_SET_ADDR_LEN() argument
27 le32p_replace_bits((__le32 *)(cmd) + 1, value, GENMASK(23, 16)); in FWCMD_SET_ADDR_LEN()
30 static inline void FWCMD_SET_ADDR_VALID(void *cmd, u32 value) in FWCMD_SET_ADDR_VALID() argument
32 le32p_replace_bits((__le32 *)(cmd) + 2, value, BIT(0)); in FWCMD_SET_ADDR_VALID()
35 static inline void FWCMD_SET_ADDR_NET_TYPE(void *cmd, u32 value) in FWCMD_SET_ADDR_NET_TYPE() argument
37 le32p_replace_bits((__le32 *)(cmd) in FWCMD_SET_ADDR_NET_TYPE()
40 FWCMD_SET_ADDR_BCN_HIT_COND(void * cmd,u32 value) FWCMD_SET_ADDR_BCN_HIT_COND() argument
45 FWCMD_SET_ADDR_HIT_RULE(void * cmd,u32 value) FWCMD_SET_ADDR_HIT_RULE() argument
50 FWCMD_SET_ADDR_BB_SEL(void * cmd,u32 value) FWCMD_SET_ADDR_BB_SEL() argument
55 FWCMD_SET_ADDR_ADDR_MASK(void * cmd,u32 value) FWCMD_SET_ADDR_ADDR_MASK() argument
60 FWCMD_SET_ADDR_MASK_SEL(void * cmd,u32 value) FWCMD_SET_ADDR_MASK_SEL() argument
65 FWCMD_SET_ADDR_SMA_HASH(void * cmd,u32 value) FWCMD_SET_ADDR_SMA_HASH() argument
70 FWCMD_SET_ADDR_TMA_HASH(void * cmd,u32 value) FWCMD_SET_ADDR_TMA_HASH() argument
75 FWCMD_SET_ADDR_BSSID_CAM_IDX(void * cmd,u32 value) FWCMD_SET_ADDR_BSSID_CAM_IDX() argument
80 FWCMD_SET_ADDR_SMA0(void * cmd,u32 value) FWCMD_SET_ADDR_SMA0() argument
85 FWCMD_SET_ADDR_SMA1(void * cmd,u32 value) FWCMD_SET_ADDR_SMA1() argument
90 FWCMD_SET_ADDR_SMA2(void * cmd,u32 value) FWCMD_SET_ADDR_SMA2() argument
95 FWCMD_SET_ADDR_SMA3(void * cmd,u32 value) FWCMD_SET_ADDR_SMA3() argument
100 FWCMD_SET_ADDR_SMA4(void * cmd,u32 value) FWCMD_SET_ADDR_SMA4() argument
105 FWCMD_SET_ADDR_SMA5(void * cmd,u32 value) FWCMD_SET_ADDR_SMA5() argument
110 FWCMD_SET_ADDR_TMA0(void * cmd,u32 value) FWCMD_SET_ADDR_TMA0() argument
115 FWCMD_SET_ADDR_TMA1(void * cmd,u32 value) FWCMD_SET_ADDR_TMA1() argument
120 FWCMD_SET_ADDR_TMA2(void * cmd,u32 value) FWCMD_SET_ADDR_TMA2() argument
125 FWCMD_SET_ADDR_TMA3(void * cmd,u32 value) FWCMD_SET_ADDR_TMA3() argument
130 FWCMD_SET_ADDR_TMA4(void * cmd,u32 value) FWCMD_SET_ADDR_TMA4() argument
135 FWCMD_SET_ADDR_TMA5(void * cmd,u32 value) FWCMD_SET_ADDR_TMA5() argument
140 FWCMD_SET_ADDR_MACID(void * cmd,u32 value) FWCMD_SET_ADDR_MACID() argument
145 FWCMD_SET_ADDR_PORT_INT(void * cmd,u32 value) FWCMD_SET_ADDR_PORT_INT() argument
150 FWCMD_SET_ADDR_TSF_SYNC(void * cmd,u32 value) FWCMD_SET_ADDR_TSF_SYNC() argument
155 FWCMD_SET_ADDR_TF_TRS(void * cmd,u32 value) FWCMD_SET_ADDR_TF_TRS() argument
160 FWCMD_SET_ADDR_LSIG_TXOP(void * cmd,u32 value) FWCMD_SET_ADDR_LSIG_TXOP() argument
165 FWCMD_SET_ADDR_TGT_IND(void * cmd,u32 value) FWCMD_SET_ADDR_TGT_IND() argument
170 FWCMD_SET_ADDR_FRM_TGT_IND(void * cmd,u32 value) FWCMD_SET_ADDR_FRM_TGT_IND() argument
175 FWCMD_SET_ADDR_AID12(void * cmd,u32 value) FWCMD_SET_ADDR_AID12() argument
180 FWCMD_SET_ADDR_AID12_0(void * cmd,u32 value) FWCMD_SET_ADDR_AID12_0() argument
185 FWCMD_SET_ADDR_AID12_1(void * cmd,u32 value) FWCMD_SET_ADDR_AID12_1() argument
190 FWCMD_SET_ADDR_WOL_PATTERN(void * cmd,u32 value) FWCMD_SET_ADDR_WOL_PATTERN() argument
195 FWCMD_SET_ADDR_WOL_UC(void * cmd,u32 value) FWCMD_SET_ADDR_WOL_UC() argument
200 FWCMD_SET_ADDR_WOL_MAGIC(void * cmd,u32 value) FWCMD_SET_ADDR_WOL_MAGIC() argument
205 FWCMD_SET_ADDR_WAPI(void * cmd,u32 value) FWCMD_SET_ADDR_WAPI() argument
210 FWCMD_SET_ADDR_SEC_ENT_MODE(void * cmd,u32 value) FWCMD_SET_ADDR_SEC_ENT_MODE() argument
215 FWCMD_SET_ADDR_SEC_ENT0_KEYID(void * cmd,u32 value) FWCMD_SET_ADDR_SEC_ENT0_KEYID() argument
220 FWCMD_SET_ADDR_SEC_ENT1_KEYID(void * cmd,u32 value) FWCMD_SET_ADDR_SEC_ENT1_KEYID() argument
225 FWCMD_SET_ADDR_SEC_ENT2_KEYID(void * cmd,u32 value) FWCMD_SET_ADDR_SEC_ENT2_KEYID() argument
230 FWCMD_SET_ADDR_SEC_ENT3_KEYID(void * cmd,u32 value) FWCMD_SET_ADDR_SEC_ENT3_KEYID() argument
235 FWCMD_SET_ADDR_SEC_ENT4_KEYID(void * cmd,u32 value) FWCMD_SET_ADDR_SEC_ENT4_KEYID() argument
240 FWCMD_SET_ADDR_SEC_ENT5_KEYID(void * cmd,u32 value) FWCMD_SET_ADDR_SEC_ENT5_KEYID() argument
245 FWCMD_SET_ADDR_SEC_ENT6_KEYID(void * cmd,u32 value) FWCMD_SET_ADDR_SEC_ENT6_KEYID() argument
250 FWCMD_SET_ADDR_SEC_ENT_VALID(void * cmd,u32 value) FWCMD_SET_ADDR_SEC_ENT_VALID() argument
255 FWCMD_SET_ADDR_SEC_ENT0(void * cmd,u32 value) FWCMD_SET_ADDR_SEC_ENT0() argument
260 FWCMD_SET_ADDR_SEC_ENT1(void * cmd,u32 value) FWCMD_SET_ADDR_SEC_ENT1() argument
265 FWCMD_SET_ADDR_SEC_ENT2(void * cmd,u32 value) FWCMD_SET_ADDR_SEC_ENT2() argument
270 FWCMD_SET_ADDR_SEC_ENT3(void * cmd,u32 value) FWCMD_SET_ADDR_SEC_ENT3() argument
275 FWCMD_SET_ADDR_SEC_ENT4(void * cmd,u32 value) FWCMD_SET_ADDR_SEC_ENT4() argument
280 FWCMD_SET_ADDR_SEC_ENT5(void * cmd,u32 value) FWCMD_SET_ADDR_SEC_ENT5() argument
285 FWCMD_SET_ADDR_SEC_ENT6(void * cmd,u32 value) FWCMD_SET_ADDR_SEC_ENT6() argument
290 FWCMD_SET_ADDR_BSSID_IDX(void * cmd,u32 value) FWCMD_SET_ADDR_BSSID_IDX() argument
295 FWCMD_SET_ADDR_BSSID_OFFSET(void * cmd,u32 value) FWCMD_SET_ADDR_BSSID_OFFSET() argument
300 FWCMD_SET_ADDR_BSSID_LEN(void * cmd,u32 value) FWCMD_SET_ADDR_BSSID_LEN() argument
305 FWCMD_SET_ADDR_BSSID_VALID(void * cmd,u32 value) FWCMD_SET_ADDR_BSSID_VALID() argument
310 FWCMD_SET_ADDR_BSSID_BB_SEL(void * cmd,u32 value) FWCMD_SET_ADDR_BSSID_BB_SEL() argument
315 FWCMD_SET_ADDR_BSSID_MASK(void * cmd,u32 value) FWCMD_SET_ADDR_BSSID_MASK() argument
320 FWCMD_SET_ADDR_BSSID_BSS_COLOR(void * cmd,u32 value) FWCMD_SET_ADDR_BSSID_BSS_COLOR() argument
325 FWCMD_SET_ADDR_BSSID_BSSID0(void * cmd,u32 value) FWCMD_SET_ADDR_BSSID_BSSID0() argument
330 FWCMD_SET_ADDR_BSSID_BSSID1(void * cmd,u32 value) FWCMD_SET_ADDR_BSSID_BSSID1() argument
335 FWCMD_SET_ADDR_BSSID_BSSID2(void * cmd,u32 value) FWCMD_SET_ADDR_BSSID_BSSID2() argument
340 FWCMD_SET_ADDR_BSSID_BSSID3(void * cmd,u32 value) FWCMD_SET_ADDR_BSSID_BSSID3() argument
345 FWCMD_SET_ADDR_BSSID_BSSID4(void * cmd,u32 value) FWCMD_SET_ADDR_BSSID_BSSID4() argument
350 FWCMD_SET_ADDR_BSSID_BSSID5(void * cmd,u32 value) FWCMD_SET_ADDR_BSSID_BSSID5() argument
[all...]
/freebsd/sys/netgraph/bluetooth/l2cap/
H A Dng_l2cap_cmds.c67 ng_l2cap_cmd_p cmd = NULL; in ng_l2cap_con_wakeup() local
72 TAILQ_FOREACH(cmd, &con->cmd_list, next) { in ng_l2cap_con_wakeup()
73 KASSERT((cmd->con == con), in ng_l2cap_con_wakeup()
77 if (!(cmd->flags & NG_L2CAP_CMD_PENDING)) in ng_l2cap_con_wakeup()
81 if (cmd == NULL) in ng_l2cap_con_wakeup()
85 m = cmd->aux; in ng_l2cap_con_wakeup()
86 cmd->aux = NULL; in ng_l2cap_con_wakeup()
89 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 …]
H A Dng_l2cap_evnt.c386 ng_l2cap_cmd_p cmd = NULL; in ng_l2cap_process_cmd_rej() local
397 cmd = ng_l2cap_cmd_by_ident(con, ident); in ng_l2cap_process_cmd_rej()
398 if (cmd != NULL) { in ng_l2cap_process_cmd_rej()
400 if (ng_l2cap_command_untimeout(cmd) != 0) { in ng_l2cap_process_cmd_rej()
405 ng_l2cap_unlink_cmd(cmd); in ng_l2cap_process_cmd_rej()
407 switch (cmd->code) { in ng_l2cap_process_cmd_rej()
409 ng_l2cap_l2ca_con_rsp(cmd->ch,cmd->token,cp->reason,0); in ng_l2cap_process_cmd_rej()
410 ng_l2cap_free_chan(cmd->ch); in ng_l2cap_process_cmd_rej()
414 ng_l2cap_l2ca_cfg_rsp(cmd->ch, cmd->token, cp->reason); in ng_l2cap_process_cmd_rej()
418 ng_l2cap_l2ca_discon_rsp(cmd->ch,cmd->token,cp->reason); in ng_l2cap_process_cmd_rej()
[all …]
/freebsd/contrib/ofed/libibverbs/
H A Dcmd.c47 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 …]
H A Dibverbs.h67 #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/usr.bin/procstat/
H A Dprocstat.c55 void (*cmd)(struct procstat *, struct kinfo_proc *); member
134 usage(const struct procstat_cmd *cmd) in usage() argument
139 if (cmd == NULL || (cmd->cmp & PS_MODE_COMPAT) == 0) { in usage()
159 multi = i + 1 < l && cmd_table[i].cmd == in usage()
160 cmd_table[i + 1].cmd; in usage()
164 for (; i + 1 < l && cmd_table[i].cmd == in usage()
165 cmd_table[i + 1].cmd; i++) in usage()
183 procstat(const struct procstat_cmd *cmd, struct procstat *prstat, in procstat() argument
192 cmd->cmd(prstat, kipp); in procstat()
257 const struct procstat_cmd *cmd; in getcmd() local
[all …]
/freebsd/sys/contrib/dev/iwlwifi/mvm/
H A Dpower.c23 struct iwl_beacon_filter_cmd *cmd) in iwl_mvm_beacon_filter_send_cmd() argument
28 le32_to_cpu(cmd->ba_enable_beacon_abort)); in iwl_mvm_beacon_filter_send_cmd()
30 le32_to_cpu(cmd->ba_escape_timer)); in iwl_mvm_beacon_filter_send_cmd()
32 le32_to_cpu(cmd->bf_debug_flag)); in iwl_mvm_beacon_filter_send_cmd()
34 le32_to_cpu(cmd->bf_enable_beacon_filter)); in iwl_mvm_beacon_filter_send_cmd()
36 le32_to_cpu(cmd->bf_energy_delta)); in iwl_mvm_beacon_filter_send_cmd()
38 le32_to_cpu(cmd->bf_escape_timer)); in iwl_mvm_beacon_filter_send_cmd()
40 le32_to_cpu(cmd->bf_roaming_energy_delta)); in iwl_mvm_beacon_filter_send_cmd()
42 le32_to_cpu(cmd->bf_roaming_state)); in iwl_mvm_beacon_filter_send_cmd()
44 le32_to_cpu(cmd in iwl_mvm_beacon_filter_send_cmd()
72 iwl_mvm_beacon_filter_set_cqm_params(struct iwl_mvm * mvm,struct ieee80211_vif * vif,struct iwl_beacon_filter_cmd * cmd) iwl_mvm_beacon_filter_set_cqm_params() argument
87 iwl_mvm_power_log(struct iwl_mvm * mvm,struct iwl_mac_power_cmd * cmd) iwl_mvm_power_log() argument
125 iwl_mvm_power_configure_uapsd(struct iwl_mvm * mvm,struct ieee80211_vif * vif,struct iwl_mac_power_cmd * cmd) iwl_mvm_power_configure_uapsd() argument
306 iwl_mvm_power_config_skip_dtim(struct iwl_mvm * mvm,struct ieee80211_vif * vif,struct iwl_mac_power_cmd * cmd) iwl_mvm_power_config_skip_dtim() argument
340 iwl_mvm_power_build_cmd(struct iwl_mvm * mvm,struct ieee80211_vif * vif,struct iwl_mac_power_cmd * cmd) iwl_mvm_power_build_cmd() argument
459 struct iwl_mac_power_cmd cmd = {}; iwl_mvm_power_send_cmd() local
473 struct iwl_device_power_cmd cmd = { iwl_mvm_power_update_device() local
705 struct iwl_mac_power_cmd cmd = {}; iwl_mvm_power_mac_dbgfs_read() local
776 iwl_mvm_beacon_filter_debugfs_parameters(struct ieee80211_vif * vif,struct iwl_beacon_filter_cmd * cmd) iwl_mvm_beacon_filter_debugfs_parameters() argument
811 _iwl_mvm_enable_beacon_filter(struct iwl_mvm * mvm,struct ieee80211_vif * vif,struct iwl_beacon_filter_cmd * cmd,u32 cmd_flags) _iwl_mvm_enable_beacon_filter() argument
835 struct iwl_beacon_filter_cmd cmd = { iwl_mvm_enable_beacon_filter() local
847 struct iwl_beacon_filter_cmd cmd = {}; _iwl_mvm_disable_beacon_filter() local
901 struct iwl_beacon_filter_cmd cmd = { iwl_mvm_power_set_ba() local
[all...]
H A Dmld-mac.c9 struct iwl_mac_config_cmd *cmd) in iwl_mvm_mld_set_he_support() argument
12 cmd->he_ap_support = cpu_to_le16(1); in iwl_mvm_mld_set_he_support()
14 cmd->he_support = cpu_to_le16(1); in iwl_mvm_mld_set_he_support()
19 struct iwl_mac_config_cmd *cmd, in iwl_mvm_mld_mac_ctxt_cmd_common() argument
26 cmd->id_and_color = cpu_to_le32(mvmvif->id); in iwl_mvm_mld_mac_ctxt_cmd_common()
27 cmd->action = cpu_to_le32(action); in iwl_mvm_mld_mac_ctxt_cmd_common()
29 cmd->mac_type = cpu_to_le32(iwl_mvm_get_mac_type(vif)); in iwl_mvm_mld_mac_ctxt_cmd_common()
31 memcpy(cmd->local_mld_addr, vif->addr, ETH_ALEN); in iwl_mvm_mld_mac_ctxt_cmd_common()
33 cmd->he_support = 0; in iwl_mvm_mld_mac_ctxt_cmd_common()
34 cmd in iwl_mvm_mld_mac_ctxt_cmd_common()
83 iwl_mvm_mld_mac_ctxt_send_cmd(struct iwl_mvm * mvm,struct iwl_mac_config_cmd * cmd) iwl_mvm_mld_mac_ctxt_send_cmd() argument
98 struct iwl_mac_config_cmd cmd = {}; iwl_mvm_mld_mac_ctxt_cmd_sta() local
163 struct iwl_mac_config_cmd cmd = {}; iwl_mvm_mld_mac_ctxt_cmd_listener() local
182 struct iwl_mac_config_cmd cmd = {}; iwl_mvm_mld_mac_ctxt_cmd_ibss() local
199 struct iwl_mac_config_cmd cmd = {}; iwl_mvm_mld_mac_ctxt_cmd_p2p_device() local
219 struct iwl_mac_config_cmd cmd = {}; iwl_mvm_mld_mac_ctxt_cmd_ap_go() local
301 struct iwl_mac_config_cmd cmd = { iwl_mvm_mld_mac_ctxt_remove() local
[all...]
H A Dlink.c66 struct iwl_link_config_cmd *cmd, in iwl_mvm_add_link()
71 cmd->action = cpu_to_le32(action); in iwl_mvm_add_link()
74 sizeof(*cmd), cmd); in iwl_mvm_add_link()
108 struct iwl_link_config_cmd cmd = {}; in iwl_mvm_link_changed()
126 cmd.link_id = cpu_to_le32(link_info->fw_link_id); in iwl_mvm_link_changed()
127 cmd.mac_id = cpu_to_le32(mvmvif->id); in iwl_mvm_link_changed()
128 cmd.spec_link_id = link_conf->link_id; in iwl_mvm_link_changed()
130 cmd.phy_id = cpu_to_le32(FW_CTXT_INVALID); in iwl_mvm_link_changed()
132 memcpy(cmd in iwl_mvm_link_changed()
34 iwl_mvm_link_cmd_send(struct iwl_mvm * mvm,struct iwl_link_config_cmd * cmd,enum iwl_ctxt_action action) iwl_mvm_link_cmd_send() argument
55 struct iwl_link_config_cmd cmd = {}; iwl_mvm_add_link() local
105 struct iwl_link_config_cmd cmd = {}; iwl_mvm_link_changed() local
244 struct iwl_link_config_cmd cmd = {}; iwl_mvm_remove_link() local
[all...]
/freebsd/sys/powerpc/powermac/
H A Dsmu.c65 volatile uint8_t cmd; member
171 static int smu_run_cmd(device_t dev, struct smu_cmd *cmd, int wait);
415 smu_send_cmd(device_t dev, struct smu_cmd *cmd) in smu_send_cmd() argument
426 sc->sc_cur_cmd = cmd; in smu_send_cmd()
429 sc->sc_cmd->cmd = cmd->cmd; in smu_send_cmd()
430 sc->sc_cmd->len = cmd->len; in smu_send_cmd()
431 memcpy(sc->sc_cmd->data, cmd->data, sizeof(cmd->data)); in smu_send_cmd()
466 sc->sc_cur_cmd->cmd = sc->sc_cmd->cmd; in smu_doorbell_intr()
487 smu_run_cmd(device_t dev, struct smu_cmd *cmd, int wait) in smu_run_cmd() argument
494 cmd_code = cmd->cmd; in smu_run_cmd()
[all …]
/freebsd/tools/regression/zfs/
H A Dmisc.sh134 cmd="mktemp -d /tmp/zfs-regression.XXXXXXXXXX"
135 TMPDIR=`${cmd}` || die "failed: ${cmd}"
136 cmd="mount -t tmpfs none ${TMPDIR}"
137 ${cmd} || die "failed: ${cmd}"
144 cmd="umount ${TMPDIR} && rmdir ${TMPDIR}"
145 eval "${cmd}" || die "failed: ${cmd}"
155 cmd="dd if=/dev/null of=${file} bs=1 count=0 seek=${size}"
156 ${cmd} > /dev/null 2>&1 || die "failed: ${cmd}"
169 cmd="mdconfig -a -t swap -s ${size} ${devparam}"
170 DISKNAME=`$cmd 2>/dev/null` || die "failed: ${cmd}"
[all …]
/freebsd/sbin/ipfw/
H A Dipv6.c85 print_ip6(struct buf_pr *bp, const ipfw_insn_ip6 *cmd) in print_ip6() argument
89 const struct in6_addr *a = &(cmd->addr6); in print_ip6()
92 len = F_LEN((const ipfw_insn *)cmd) - 1; in print_ip6()
93 if (cmd->o.opcode == O_IP6_SRC_ME || cmd->o.opcode == O_IP6_DST_ME) { in print_ip6()
97 if (cmd->o.opcode == O_IP6) { in print_ip6()
110 mb = (cmd->o.opcode == O_IP6_SRC || in print_ip6()
111 cmd->o.opcode == O_IP6_DST) ? 128: in print_ip6()
139 fill_icmp6types(ipfw_insn_icmp6 *cmd, char *av, int cblen) in fill_icmp6types() argument
144 memset(cmd, 0, sizeof(*cmd)); in fill_icmp6types()
159 cmd->d[type / 32] |= ( 1 << (type % 32)); in fill_icmp6types()
[all …]
H A Dipfw2.c82 * Check if we have enough space in cmd buffer. Note that since
83 * first 8? u32 words are reserved by reserved header, full cmd
91 #define CHECK_CMDLEN CHECK_LENGTH(cblen, F_LEN((ipfw_insn *)cmd))
639 * do_set3 - pass ipfw control cmd to kernel
677 * do_get3 - pass ipfw control cmd to kernel
962 print_newports(struct buf_pr *bp, const ipfw_insn_u16 *cmd, int proto, int opcode) in print_newports() argument
964 const uint16_t *p = cmd->ports; in print_newports()
975 for (i = F_LEN((const ipfw_insn *)cmd) - 1; i > 0; i--, p += 2) { in print_newports()
1055 fill_newports(ipfw_insn_u16 *cmd, char *av, int proto, int cblen) in fill_newports() argument
1057 uint16_t a, b, *p = cmd in fill_newports()
1104 fill_dscp(ipfw_insn * cmd,char * av,int cblen) fill_dscp() argument
1149 fill_mark(ipfw_insn * cmd,char * av,int cblen) fill_mark() argument
1259 print_flags(struct buf_pr * bp,char const * name,const ipfw_insn * cmd,struct _s_x * list) print_flags() argument
1293 print_ip(struct buf_pr * bp,const struct format_opts * fo,const ipfw_insn_ip * cmd) print_ip() argument
1423 print_mac_lookup(struct buf_pr * bp,const struct format_opts * fo,const ipfw_insn * cmd) print_mac_lookup() argument
1438 fill_icmptypes(ipfw_insn_u32 * cmd,char * av) fill_icmptypes() argument
1462 print_icmptypes(struct buf_pr * bp,const ipfw_insn_u32 * cmd) print_icmptypes() argument
1477 print_dscp(struct buf_pr * bp,const ipfw_insn_u32 * cmd) print_dscp() argument
1500 insntod(cmd,type) global() argument
1537 is_printed_opcode(struct show_state * state,const ipfw_insn * cmd) is_printed_opcode() argument
1544 mark_printed(struct show_state * state,const ipfw_insn * cmd) mark_printed() argument
1569 print_instruction(struct buf_pr * bp,const struct format_opts * fo,struct show_state * state,const ipfw_insn * cmd) print_instruction() argument
1902 ipfw_insn *cmd; print_opcode() local
1924 print_fwd(struct buf_pr * bp,const ipfw_insn * cmd) print_fwd() argument
1953 print_action_instruction(struct buf_pr * bp,const struct format_opts * fo,struct show_state * state,const ipfw_insn * cmd) print_action_instruction() argument
2146 ipfw_insn *cmd; print_action() local
2165 ipfw_insn *cmd; print_proto() local
2230 ipfw_insn *cmd; print_address() local
2301 ipfw_insn *cmd; show_static_rule() local
2496 do_range_cmd(int cmd,ipfw_range_tlv * rt) do_range_cmd() argument
2530 uint8_t cmd; ipfw_sets_handler() local
3209 fill_table(struct _ipfw_insn * cmd,char * av,uint8_t opcode,struct tidx * tstate) fill_table() argument
3248 fill_ip(ipfw_insn_ip * cmd,char * av,int cblen,struct tidx * tstate) fill_ip() argument
3446 fill_flags_cmd(ipfw_insn * cmd,enum ipfw_opcodes opcode,struct _s_x * flags,char * p) fill_flags_cmd() argument
3546 fill_iface(ipfw_insn_if * cmd,char * arg,int cblen,struct tidx * tstate) fill_iface() argument
3632 next_cmd(ipfw_insn * cmd,int * len) next_cmd() argument
3645 fill_comment(ipfw_insn * cmd,char ** av,int cblen) fill_comment() argument
3678 fill_cmd(ipfw_insn * cmd,enum ipfw_opcodes opcode,int flags,uint16_t arg) fill_cmd() argument
3690 add_mac(ipfw_insn * cmd,char * av[],int cblen) add_mac() argument
3709 add_mactype(ipfw_insn * cmd,char * av,int cblen) add_mactype() argument
3723 add_proto0(ipfw_insn * cmd,char * av,u_char * protop) add_proto0() argument
3742 add_proto(ipfw_insn * cmd,char * av,u_char * protop) add_proto() argument
3763 add_proto_compat(ipfw_insn * cmd,char * av,u_char * protop) add_proto_compat() argument
3784 add_srcip(ipfw_insn * cmd,char * av,int cblen,struct tidx * tstate) add_srcip() argument
3801 add_dstip(ipfw_insn * cmd,char * av,int cblen,struct tidx * tstate) add_dstip() argument
3818 add_srcmac(ipfw_insn * cmd,char * av,struct tidx * tstate) add_srcmac() argument
3829 add_dstmac(ipfw_insn * cmd,char * av,struct tidx * tstate) add_dstmac() argument
3861 add_ports(ipfw_insn * cmd,char * av,u_char proto,int opcode,int cblen) add_ports() argument
3876 add_src(ipfw_insn * cmd,char * av,u_char proto,int cblen,struct tidx * tstate) add_src() argument
3907 add_dst(ipfw_insn * cmd,char * av,u_char proto,int cblen,struct tidx * tstate) add_dst() argument
4005 ipfw_insn *src, *dst, *cmd, *action, *prev=NULL; compile_rule() local
[all...]
/freebsd/sys/dev/nvme/
H A Dnvme_ctrlr_cmd.c37 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 = htole32(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 = htole32(nsid); in nvme_ctrlr_cmd_identify_namespace()
80 struct nvme_command *cmd; in nvme_ctrlr_cmd_create_io_cq() local
84 cmd = &req->cmd; in nvme_ctrlr_cmd_create_io_cq()
[all …]
/freebsd/sbin/ifconfig/
H A Difvxlan.c189 struct ifvxlancmd cmd; in setvxlan_vni() local
201 bzero(&cmd, sizeof(cmd)); in setvxlan_vni()
202 cmd.vxlcmd_vni = val; in setvxlan_vni()
204 if (do_cmd(ctx, VXLAN_CMD_SET_VNI, &cmd, sizeof(cmd), 1) < 0) in setvxlan_vni()
211 struct ifvxlancmd cmd; in setvxlan_local() local
218 bzero(&cmd, sizeof(cmd)); in setvxlan_local()
236 cmd.vxlcmd_sa.in4 = *sin; in setvxlan_local()
247 cmd.vxlcmd_sa.in6 = *sin6; in setvxlan_local()
258 if (cmd.vxlcmd_sa.sa.sa_family == AF_INET) { in setvxlan_local()
260 params.vxlp_local_sa.in4 = cmd.vxlcmd_sa.in4; in setvxlan_local()
[all …]
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dbmi.c23 struct bmi_cmd cmd; in ath10k_bmi_done() local
24 u32 cmdlen = sizeof(cmd.id) + sizeof(cmd.done); in ath10k_bmi_done()
35 cmd.id = __cpu_to_le32(BMI_DONE); in ath10k_bmi_done()
37 ret = ath10k_hif_exchange_bmi_msg(ar, &cmd, cmdlen, NULL, NULL); in ath10k_bmi_done()
49 struct bmi_cmd cmd; in ath10k_bmi_get_target_info() local
51 u32 cmdlen = sizeof(cmd.id) + sizeof(cmd.get_target_info); in ath10k_bmi_get_target_info()
62 cmd.id = __cpu_to_le32(BMI_GET_TARGET_INFO); in ath10k_bmi_get_target_info()
64 ret = ath10k_hif_exchange_bmi_msg(ar, &cmd, cmdlen, &resp, &resplen); in ath10k_bmi_get_target_info()
87 struct bmi_cmd cmd; in ath10k_bmi_get_target_info_sdio() local
89 u32 cmdlen = sizeof(cmd.id) + sizeof(cmd.get_target_info); in ath10k_bmi_get_target_info_sdio()
[all …]
/freebsd/sys/dev/iwm/
H A Dif_iwm_power.c155 struct iwm_beacon_filter_cmd *cmd) in iwm_beacon_filter_send_cmd() argument
160 0, sizeof(struct iwm_beacon_filter_cmd), cmd); in iwm_beacon_filter_send_cmd()
165 le32toh(cmd->ba_enable_beacon_abort)); in iwm_beacon_filter_send_cmd()
168 le32toh(cmd->ba_escape_timer)); in iwm_beacon_filter_send_cmd()
171 le32toh(cmd->bf_debug_flag)); in iwm_beacon_filter_send_cmd()
174 le32toh(cmd->bf_enable_beacon_filter)); in iwm_beacon_filter_send_cmd()
177 le32toh(cmd->bf_energy_delta)); in iwm_beacon_filter_send_cmd()
180 le32toh(cmd->bf_escape_timer)); in iwm_beacon_filter_send_cmd()
183 le32toh(cmd->bf_roaming_energy_delta)); in iwm_beacon_filter_send_cmd()
186 le32toh(cmd->bf_roaming_state)); in iwm_beacon_filter_send_cmd()
[all …]
/freebsd/usr.sbin/i2c/
H A Di2c.c97 i2c_do_start(int fd, struct iiccmd *cmd) in i2c_do_start() argument
101 i = ioctl(fd, I2CSTART, cmd); in i2c_do_start()
109 i2c_do_repeatstart(int fd, struct iiccmd *cmd) in i2c_do_repeatstart() argument
113 i = ioctl(fd, I2CRPTSTART, cmd); in i2c_do_repeatstart()
121 i2c_do_write(int fd, struct iiccmd *cmd) in i2c_do_write() argument
125 i = ioctl(fd, I2CWRITE, cmd); in i2c_do_write()
133 i2c_do_read(int fd, struct iiccmd *cmd) in i2c_do_read() argument
137 i = ioctl(fd, I2CREAD, cmd); in i2c_do_read()
147 struct iiccmd cmd; in i2c_do_reset() local
150 memset(&cmd, 0, sizeof cmd); in i2c_do_reset()
[all …]
/freebsd/sys/cam/ata/
H A Data_all.c71 ata_op_string(struct ata_cmd *cmd) in ata_op_string() argument
74 if (cmd->control & 0x04) in ata_op_string()
76 switch (cmd->command) { in ata_op_string()
78 switch (cmd->features) { in ata_op_string()
85 switch (cmd->features) { in ata_op_string()
90 switch (cmd->features) { in ata_op_string()
120 switch (cmd->features) { in ata_op_string()
125 switch (cmd->features) { in ata_op_string()
142 switch (cmd->features & 0xf) { in ata_op_string()
158 switch (cmd->sector_count_exp & 0xf) { in ata_op_string()
[all …]
/freebsd/contrib/ofed/libibcm/
H A Dcm.c71 #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/sys/dev/dpaa2/
H A Ddpaa2_cmd_if.m53 bypass_mng_get_version(device_t dev, device_t child, struct dpaa2_cmd *cmd,
59 cmd, major, minor, rev));
63 bypass_mng_get_soc_version(device_t dev, device_t child, struct dpaa2_cmd *cmd,
69 device_get_parent(dev), child, cmd, pvr, svr));
73 bypass_mng_get_container_id(device_t dev, device_t child, struct dpaa2_cmd *cmd,
79 device_get_parent(dev), child, cmd, cont_id));
83 bypass_rc_open(device_t dev, device_t child, struct dpaa2_cmd *cmd, uint32_t cont_id,
89 device_get_parent(dev), child, cmd, cont_id, token));
93 bypass_rc_close(device_t dev, device_t child, struct dpaa2_cmd *cmd)
98 device_get_parent(dev), child, cmd));
[all …]
H A Ddpaa2_rc.c639 dpaa2_rc_mng_get_version(device_t dev, device_t child, struct dpaa2_cmd *cmd, in dpaa2_rc_mng_get_version() argument
645 if (portal == NULL || cmd == NULL || major == NULL || minor == NULL || in dpaa2_rc_mng_get_version()
649 error = dpaa2_rc_exec_cmd(portal, cmd, CMDID_MNG_GET_VER); in dpaa2_rc_mng_get_version()
651 *major = cmd->params[0] >> 32; in dpaa2_rc_mng_get_version()
652 *minor = cmd->params[1] & 0xFFFFFFFF; in dpaa2_rc_mng_get_version()
653 *rev = cmd->params[0] & 0xFFFFFFFF; in dpaa2_rc_mng_get_version()
660 dpaa2_rc_mng_get_soc_version(device_t dev, device_t child, struct dpaa2_cmd *cmd, in dpaa2_rc_mng_get_soc_version() argument
666 if (portal == NULL || cmd == NULL || pvr == NULL || svr == NULL) in dpaa2_rc_mng_get_soc_version()
669 error = dpaa2_rc_exec_cmd(portal, cmd, CMDID_MNG_GET_SOC_VER); in dpaa2_rc_mng_get_soc_version()
671 *pvr = cmd->params[0] >> 32; in dpaa2_rc_mng_get_soc_version()
[all …]
/freebsd/sys/dev/mmc/
H A Dmmc_subr.c72 mmc_wait_for_cmd(device_t busdev, device_t dev, struct mmc_command *cmd, in mmc_wait_for_cmd() argument
81 memset(cmd->resp, 0, sizeof(cmd->resp)); in mmc_wait_for_cmd()
82 cmd->retries = 0; /* Retries done here, not in hardware. */ in mmc_wait_for_cmd()
83 cmd->mrq = &mreq; in mmc_wait_for_cmd()
84 if (cmd->data != NULL) in mmc_wait_for_cmd()
85 cmd->data->mrq = &mreq; in mmc_wait_for_cmd()
86 mreq.cmd = cmd; in mmc_wait_for_cmd()
90 err = cmd->error; in mmc_wait_for_cmd()
98 cmd->opcode, err); in mmc_wait_for_cmd()
107 struct mmc_command *cmd, int retries) in mmc_wait_for_app_cmd() argument
[all …]
/freebsd/usr.bin/usbhidaction/
H A Dusbhidaction.c95 struct command *cmd; in main() local
201 for (cmd = commands; cmd; cmd = cmd->next) { in main()
202 if (cmd->item.report_ID != 0 && in main()
203 buf[0] != cmd->item.report_ID) in main()
205 if (cmd->item.flags & HIO_VARIABLE) in main()
206 val = hid_get_data(buf, &cmd->item); in main()
208 uint32_t pos = cmd->item.pos; in main()
209 for (i = 0; i < cmd->item.report_count; i++) { in main()
210 val = hid_get_data(buf, &cmd->item); in main()
211 if (val == cmd->value) in main()
[all …]
/freebsd/sys/dev/malo/
H A Dif_malohal.c61 pCmd->cmdhdr.cmd = htole16(_cmd); \
188 malo_hal_waitforcmd(struct malo_hal *mh, uint16_t cmd) in malo_hal_waitforcmd() argument
194 if (mh->mh_cmdbuf[0] == le16toh(cmd)) in malo_hal_waitforcmd()
205 malo_hal_execute_cmd(struct malo_hal *mh, unsigned short cmd) in malo_hal_execute_cmd() argument
212 cmd); in malo_hal_execute_cmd()
223 if (!malo_hal_waitforcmd(mh, cmd | 0x8000)) { in malo_hal_execute_cmd()
225 "timeout waiting for f/w cmd 0x%x\n", cmd); in malo_hal_execute_cmd()
239 struct malo_cmd_caltable *cmd; in malo_hal_get_cal_table() local
244 _CMD_SETUP(cmd, struct malo_cmd_caltable, MALO_HOSTCMD_GET_CALTABLE); in malo_hal_get_cal_table()
245 cmd->annex = annex; in malo_hal_get_cal_table()
[all …]

12345678910>>...94