Home
last modified time | relevance | path

Searched refs:cmd_size (Results 1 – 25 of 37) sorted by relevance

12

/freebsd/contrib/ofed/libibverbs/
H A Ddriver.h141 size_t cmd_size, struct ibv_get_context_resp *resp,
146 struct ibv_query_device *cmd, size_t cmd_size);
153 size_t cmd_size,
159 struct ibv_query_port *cmd, size_t cmd_size);
161 struct ibv_alloc_pd *cmd, size_t cmd_size,
167 struct ibv_open_xrcd *cmd, size_t cmd_size,
174 size_t cmd_size,
184 size_t cmd_size,
187 struct ibv_dealloc_mw *cmd, size_t cmd_size);
191 struct ibv_create_cq *cmd, size_t cmd_size,
[all …]
H A Dcmd.c47 size_t cmd_size, struct ibv_get_context_resp *resp, in ibv_cmd_get_context() argument
53 IBV_INIT_CMD_RESP(cmd, cmd_size, GET_CONTEXT, resp, resp_size); in ibv_cmd_get_context()
55 if (write(context->cmd_fd, cmd, cmd_size) != cmd_size) in ibv_cmd_get_context()
115 struct ibv_query_device *cmd, size_t cmd_size) in ibv_cmd_query_device() argument
119 IBV_INIT_CMD_RESP(cmd, cmd_size, QUERY_DEVICE, &resp, sizeof resp); in ibv_cmd_query_device()
121 if (write(context->cmd_fd, cmd, cmd_size) != cmd_size) in ibv_cmd_query_device()
138 size_t cmd_size, in ibv_cmd_query_device_ex() argument
157 IBV_INIT_CMD_RESP_EX_V(cmd, cmd_core_size, cmd_size, in ibv_cmd_query_device_ex()
164 err = write(context->cmd_fd, cmd, cmd_size); in ibv_cmd_query_device_ex()
165 if (err != cmd_size) in ibv_cmd_query_device_ex()
[all …]
H A Dibverbs.h88 #define IBV_INIT_CMD_RESP_EX_V(cmd, cmd_size, size, opcode, out, resp_size,\ argument
91 size_t c_size = cmd_size - sizeof(struct ex_hdr); \
99 (cmd)->hdr.provider_in_words = (((size) - (cmd_size))/8);\
106 #define IBV_INIT_CMD_RESP_EX_VCMD(cmd, cmd_size, size, opcode, out, outsize) \ argument
107 IBV_INIT_CMD_RESP_EX_V(cmd, cmd_size, size, opcode, out, \
/freebsd/sys/contrib/dev/iwlwifi/fw/
H A Dregulatory.c312 union iwl_ppag_table_cmd *cmd, int *cmd_size) in iwl_fill_ppag_table() argument
349 *cmd_size = sizeof(cmd->v1); in iwl_fill_ppag_table()
360 *cmd_size = sizeof(cmd->v2); in iwl_fill_ppag_table()
370 *cmd_size = sizeof(cmd->v3); in iwl_fill_ppag_table()
542 size_t cmd_size; in iwl_get_lari_config_cmd_size() local
547 cmd_size = sizeof(struct iwl_lari_config_change_cmd); in iwl_get_lari_config_cmd_size()
550 cmd_size = sizeof(struct iwl_lari_config_change_cmd_v10); in iwl_get_lari_config_cmd_size()
555 cmd_size = sizeof(struct iwl_lari_config_change_cmd_v7); in iwl_get_lari_config_cmd_size()
558 cmd_size = sizeof(struct iwl_lari_config_change_cmd_v6); in iwl_get_lari_config_cmd_size()
561 cmd_size = sizeof(struct iwl_lari_config_change_cmd_v5); in iwl_get_lari_config_cmd_size()
[all …]
H A Dregulatory.h194 int *cmd_size);
225 size_t *cmd_size);
/freebsd/usr.sbin/bhyve/
H A Dtpm_intf_crb.c134 uint32_t cmd_size; /* 58h */ member
145 #define CRB_CMD_SIZE_READ(regs) (regs.cmd_size)
148 regs.cmd_size = val; \
210 const uint32_t cmd_size = CRB_CMD_SIZE_READ(crb->regs); in tpm_crb_thread() local
214 (cmd_size < sizeof (struct tpm_cmd_hdr)) || in tpm_crb_thread()
215 (cmd_size > TPM_CRB_DATA_BUFFER_SIZE) || in tpm_crb_thread()
216 (cmd_addr + cmd_size > in tpm_crb_thread()
219 "buffer", __func__, cmd_addr, cmd_size); in tpm_crb_thread()
237 cmd_off + cmd_size > TPM_CRB_DATA_BUFFER_SIZE || in tpm_crb_thread()
242 __func__, cmd_addr, cmd_addr + cmd_size, rsp_addr, in tpm_crb_thread()
[all …]
H A Dtpm_emul_passthru.c56 tpm_passthru_execute_cmd(void *sc, void *cmd, uint32_t cmd_size, void *rsp, in tpm_passthru_execute_cmd() argument
69 len = write(tpm->fd, cmd, cmd_size); in tpm_passthru_execute_cmd()
70 if (len != cmd_size) { in tpm_passthru_execute_cmd()
72 len, cmd_size); in tpm_passthru_execute_cmd()
H A Dtpm_emul_swtpm.c77 tpm_swtpm_execute_cmd(void *sc, void *cmd, uint32_t cmd_size, void *rsp, in tpm_swtpm_execute_cmd() argument
90 len = send(tpm->fd, cmd, cmd_size, MSG_NOSIGNAL|MSG_DONTWAIT); in tpm_swtpm_execute_cmd()
93 if (len != cmd_size) { in tpm_swtpm_execute_cmd()
95 len, cmd_size); in tpm_swtpm_execute_cmd()
H A Dtpm_emul.h21 int (*execute_cmd)(void *sc, void *cmd, uint32_t cmd_size, void *rsp,
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dqplib_rcfw.h119 static inline void bnxt_qplib_rcfw_cmd_prep(void *r, u8 opcode, u8 cmd_size) in bnxt_qplib_rcfw_cmd_prep() argument
124 req->cmd_size = cmd_size; in bnxt_qplib_rcfw_cmd_prep()
169 cmd_units = (req->cmd_size + BNXT_QPLIB_CMDQE_UNITS - 1) / in bnxt_qplib_get_cmd_slots()
184 cmd_byte = req->cmd_size; in bnxt_qplib_set_cmd_slots()
185 req->cmd_size = (req->cmd_size + BNXT_QPLIB_CMDQE_UNITS - 1) / in bnxt_qplib_set_cmd_slots()
H A Dqplib_tlv.h146 return req->cmd_size; in __get_cmdq_base_cmd_size()
153 ((struct cmdq_base *)GET_TLV_DATA(req))->cmd_size = val; in __set_cmdq_base_cmd_size()
155 req->cmd_size = val; in __set_cmdq_base_cmd_size()
/freebsd/sys/contrib/dev/iwlwifi/
H A Diwl-devtrace.c45 struct iwl_host_cmd *cmd, uint16_t cmd_size, in trace_iwlwifi_dev_hcmd() argument
50 dev, cmd, cmd_size, hdr_wide); in trace_iwlwifi_dev_hcmd()
/freebsd/sys/netlink/
H A Dnetlink_generic.c429 uint16_t cmd_size; in genl_register_cmds() local
434 cmd_size = gf->family_cmd_size; in genl_register_cmds()
438 if (cmds[i].cmd_num >= cmd_size) in genl_register_cmds()
439 cmd_size = cmds[i].cmd_num + 1; in genl_register_cmds()
442 if (cmd_size > gf->family_cmd_size) { in genl_register_cmds()
446 size_t sz = cmd_size * sizeof(struct genl_cmd); in genl_register_cmds()
453 gf->family_cmd_size = cmd_size; in genl_register_cmds()
/freebsd/sys/contrib/dev/iwlwifi/mvm/
H A Dfw.c549 size_t cmd_size; in iwl_send_phy_cfg_cmd() local
583 cmd_size = (cmd_ver == 3) ? sizeof(struct iwl_phy_cfg_cmd_v3) : in iwl_send_phy_cfg_cmd()
585 return iwl_mvm_send_cmd_pdu(mvm, cmd_id, 0, cmd_size, &phy_cfg_cmd); in iwl_send_phy_cfg_cmd()
1047 int ret, cmd_size; in iwl_mvm_ppag_send_cmd() local
1049 ret = iwl_fill_ppag_table(&mvm->fwrt, &cmd, &cmd_size); in iwl_mvm_ppag_send_cmd()
1057 0, cmd_size, &cmd); in iwl_mvm_ppag_send_cmd()
1084 int cmd_size; in iwl_mvm_tas_init() local
1141 cmd_size = sizeof(cmd_v5); in iwl_mvm_tas_init()
1151 cmd_size = sizeof(cmd_v2_v4.common) + sizeof(cmd_v2_v4.v4); in iwl_mvm_tas_init()
1161 cmd_size = sizeof(cmd_v2_v4.common) + sizeof(cmd_v2_v4.v3); in iwl_mvm_tas_init()
[all …]
H A Dftm-responder.c130 int cmd_size; in iwl_mvm_ftm_responder_cmd() local
149 cmd_size = sizeof(struct iwl_tof_responder_config_cmd_v9); in iwl_mvm_ftm_responder_cmd()
152 cmd_size = sizeof(struct iwl_tof_responder_config_cmd_v8); in iwl_mvm_ftm_responder_cmd()
173 return iwl_mvm_send_cmd_pdu(mvm, cmd_id, 0, cmd_size, &cmd); in iwl_mvm_ftm_responder_cmd()
H A Drs-fw.c679 u16 cmd_size = sizeof(cfg_cmd_v3); in iwl_mvm_rs_fw_rate_init() local
683 cmd_size -= 4; in iwl_mvm_rs_fw_rate_init()
685 ret = iwl_mvm_send_cmd_pdu(mvm, cmd_id, CMD_ASYNC, cmd_size, in iwl_mvm_rs_fw_rate_init()
/freebsd/sys/dev/iwm/
H A Dif_iwm_scan.c483 size_t cmd_size; in iwm_config_umac_scan() local
497 cmd_size = sizeof(*scan_config) + sc->sc_fw.ucode_capa.n_scan_channels; in iwm_config_umac_scan()
499 scan_config = malloc(cmd_size, M_DEVBUF, M_NOWAIT | M_ZERO); in iwm_config_umac_scan()
553 hcmd.len[0] = cmd_size; in iwm_config_umac_scan()
/freebsd/sys/contrib/dev/iwlwifi/mld/
H A Dscan.h135 size_t cmd_size; member
H A Dscan.c1160 memset(mld->scan.cmd, 0, mld->scan.cmd_size); in iwl_mld_scan_build_cmd()
1223 u32 cmd_size = blocklist_size + sizeof(*profile_cfg); in iwl_mld_config_sched_scan_profiles() local
1230 cmd = kzalloc(cmd_size, GFP_KERNEL); in iwl_mld_config_sched_scan_profiles()
1235 hcmd.len[0] = cmd_size; in iwl_mld_config_sched_scan_profiles()
1440 .len = { mld->scan.cmd_size, }, in _iwl_mld_single_scan_start()
1631 .len = { mld->scan.cmd_size, }, in iwl_mld_sched_scan_start()
2045 mld->scan.cmd_size = scan_cmd_size; in iwl_mld_alloc_scan_cmd()
/freebsd/sys/contrib/dev/iwlwifi/pcie/gen1_2/
H A Dtx-gen2.c1209 u16 copy_size, cmd_size, tb0_size; in iwl_pcie_gen2_enqueue_hcmd() local
1221 cmd_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_gen2_enqueue_hcmd()
1272 cmd_size += cmd->len[i]; in iwl_pcie_gen2_enqueue_hcmd()
1317 cpu_to_le16(cmd_size - sizeof(struct iwl_cmd_header_wide)); in iwl_pcie_gen2_enqueue_hcmd()
1368 cmd_size, txq->write_ptr, idx, trans->conf.cmd_queue); in iwl_pcie_gen2_enqueue_hcmd()
1418 trace_iwlwifi_dev_hcmd(trans->dev, cmd, cmd_size, &out_cmd->hdr_wide); in iwl_pcie_gen2_enqueue_hcmd()
H A Dtx.c1363 u16 copy_size, cmd_size, tb0_size; in iwl_pcie_enqueue_hcmd() local
1379 cmd_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_enqueue_hcmd()
1382 cmd_size = sizeof(struct iwl_cmd_header); in iwl_pcie_enqueue_hcmd()
1437 cmd_size += cmd->len[i]; in iwl_pcie_enqueue_hcmd()
1482 cpu_to_le16(cmd_size - in iwl_pcie_enqueue_hcmd()
1545 cmd_size, txq->write_ptr, idx, trans->conf.cmd_queue); in iwl_pcie_enqueue_hcmd()
1600 trace_iwlwifi_dev_hcmd(trans->dev, cmd, cmd_size, &out_cmd->hdr_wide); in iwl_pcie_enqueue_hcmd()
/freebsd/sys/cam/ctl/
H A Dctl_error.c252 int info_size = 0, cmd_size = 0, fru_size = 0; in ctl_sense_to_fixed() local
294 cmd_size = sizeof(cmd->command_info); in ctl_sense_to_fixed()
357 cmd_size, in ctl_sense_to_fixed()
/freebsd/sys/cam/scsi/
H A Dscsi_all.c8564 int cmd_size; in scsi_ata_pass() local
8576 cmd_size = 12; in scsi_ata_pass()
8578 cmd_size = 32; in scsi_ata_pass()
8580 cmd_size = 16; in scsi_ata_pass()
8590 && ((cmd_size < 16) in scsi_ata_pass()
8592 if (cmd_size < 16) in scsi_ata_pass()
8593 cmd_size = 16; in scsi_ata_pass()
8603 cmd_size = 32; in scsi_ata_pass()
8607 if ((cmd_size > sizeof(csio->cdb_io.cdb_bytes)) in scsi_ata_pass()
8609 || (cdb_storage_len < cmd_size))) { in scsi_ata_pass()
[all …]
/freebsd/contrib/ofed/libmlx5/
H A Dverbs.c2206 int cmd_size; in mlx5_create_rwq_ind_table() local
2214 cmd_size = required_tbl_size + sizeof(*cmd); in mlx5_create_rwq_ind_table()
2215 cmd = calloc(1, cmd_size); in mlx5_create_rwq_ind_table()
2225 cmd_size, cmd_size, &resp.ibv_resp, sizeof(resp.ibv_resp), in mlx5_create_rwq_ind_table()
/freebsd/sys/powerpc/ps3/
H A Dps3-hvcall.h134 …ice_command(uint64_t dev, uint64_t cmd_id, uint64_t cmd_block, uint64_t cmd_size, uint64_t data_bu…

12