Home
last modified time | relevance | path

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

12

/freebsd/contrib/ofed/libibverbs/
H A Ddriver.h142 size_t cmd_size, struct ibv_get_context_resp *resp,
147 struct ibv_query_device *cmd, size_t cmd_size);
154 size_t cmd_size,
160 struct ibv_query_port *cmd, size_t cmd_size);
162 struct ibv_alloc_pd *cmd, size_t cmd_size,
168 struct ibv_open_xrcd *cmd, size_t cmd_size,
175 size_t cmd_size,
185 size_t cmd_size,
188 struct ibv_dealloc_mw *cmd, size_t cmd_size);
192 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()
245 ibv_cmd_query_port(struct ibv_context * context,uint8_t port_num,struct ibv_port_attr * port_attr,struct ibv_query_port * cmd,size_t cmd_size) ibv_cmd_query_port() argument
283 ibv_cmd_alloc_pd(struct ibv_context * context,struct ibv_pd * pd,struct ibv_alloc_pd * cmd,size_t cmd_size,struct ibv_alloc_pd_resp * resp,size_t resp_size) ibv_cmd_alloc_pd() argument
315 ibv_cmd_open_xrcd(struct ibv_context * context,struct verbs_xrcd * xrcd,int vxrcd_size,struct ibv_xrcd_init_attr * attr,struct ibv_open_xrcd * cmd,size_t cmd_size,struct ibv_open_xrcd_resp * resp,size_t resp_size) ibv_cmd_open_xrcd() argument
360 ibv_cmd_reg_mr(struct ibv_pd * pd,void * addr,size_t length,uint64_t hca_va,int access,struct ibv_mr * mr,struct ibv_reg_mr * cmd,size_t cmd_size,struct ibv_reg_mr_resp * resp,size_t resp_size) ibv_cmd_reg_mr() argument
429 ibv_cmd_alloc_mw(struct ibv_pd * pd,enum ibv_mw_type type,struct ibv_mw * mw,struct ibv_alloc_mw * cmd,size_t cmd_size,struct ibv_alloc_mw_resp * resp,size_t resp_size) ibv_cmd_alloc_mw() argument
452 ibv_cmd_dealloc_mw(struct ibv_mw * mw,struct ibv_dealloc_mw * cmd,size_t cmd_size) ibv_cmd_dealloc_mw() argument
467 ibv_cmd_create_cq(struct ibv_context * context,int cqe,struct ibv_comp_channel * channel,int comp_vector,struct ibv_cq * cq,struct ibv_create_cq * cmd,size_t cmd_size,struct ibv_create_cq_resp * resp,size_t resp_size) ibv_cmd_create_cq() argument
494 ibv_cmd_create_cq_ex(struct ibv_context * context,struct ibv_cq_init_attr_ex * cq_attr,struct ibv_cq_ex * cq,struct ibv_create_cq_ex * cmd,size_t cmd_core_size,size_t cmd_size,struct ibv_create_cq_resp_ex * resp,size_t resp_core_size,size_t resp_size) ibv_cmd_create_cq_ex() argument
599 ibv_cmd_resize_cq(struct ibv_cq * cq,int cqe,struct ibv_resize_cq * cmd,size_t cmd_size,struct ibv_resize_cq_resp * resp,size_t resp_size) ibv_cmd_resize_cq() argument
641 ibv_cmd_create_srq(struct ibv_pd * pd,struct ibv_srq * srq,struct ibv_srq_init_attr * attr,struct ibv_create_srq * cmd,size_t cmd_size,struct ibv_create_srq_resp * resp,size_t resp_size) ibv_cmd_create_srq() argument
677 ibv_cmd_create_srq_ex(struct ibv_context * context,struct verbs_srq * srq,int vsrq_sz,struct ibv_srq_init_attr_ex * attr_ex,struct ibv_create_xsrq * cmd,size_t cmd_size,struct ibv_create_srq_resp * resp,size_t resp_size) ibv_cmd_create_srq_ex() argument
770 size_t cmd_size; ibv_cmd_modify_srq_v3() local
794 ibv_cmd_modify_srq(struct ibv_srq * srq,struct ibv_srq_attr * srq_attr,int srq_attr_mask,struct ibv_modify_srq * cmd,size_t cmd_size) ibv_cmd_modify_srq() argument
814 ibv_cmd_query_srq(struct ibv_srq * srq,struct ibv_srq_attr * srq_attr,struct ibv_query_srq * cmd,size_t cmd_size) ibv_cmd_query_srq() argument
977 ibv_cmd_create_qp_ex2(struct ibv_context * context,struct verbs_qp * qp,int vqp_sz,struct ibv_qp_init_attr_ex * qp_attr,struct ibv_create_qp_ex * cmd,size_t cmd_core_size,size_t cmd_size,struct ibv_create_qp_resp_ex * resp,size_t resp_core_size,size_t resp_size) ibv_cmd_create_qp_ex2() argument
1045 ibv_cmd_create_qp_ex(struct ibv_context * context,struct verbs_qp * qp,int vqp_sz,struct ibv_qp_init_attr_ex * attr_ex,struct ibv_create_qp * cmd,size_t cmd_size,struct ibv_create_qp_resp * resp,size_t resp_size) ibv_cmd_create_qp_ex() argument
1101 ibv_cmd_create_qp(struct ibv_pd * pd,struct ibv_qp * qp,struct ibv_qp_init_attr * attr,struct ibv_create_qp * cmd,size_t cmd_size,struct ibv_create_qp_resp * resp,size_t resp_size) ibv_cmd_create_qp() argument
1160 ibv_cmd_open_qp(struct ibv_context * context,struct verbs_qp * qp,int vqp_sz,struct ibv_qp_open_attr * attr,struct ibv_open_qp * cmd,size_t cmd_size,struct ibv_create_qp_resp * resp,size_t resp_size) ibv_cmd_open_qp() argument
1226 ibv_cmd_query_qp(struct ibv_qp * qp,struct ibv_qp_attr * attr,int attr_mask,struct ibv_qp_init_attr * init_attr,struct ibv_query_qp * cmd,size_t cmd_size) ibv_cmd_query_qp() argument
1398 ibv_cmd_modify_qp(struct ibv_qp * qp,struct ibv_qp_attr * attr,int attr_mask,struct ibv_modify_qp * cmd,size_t cmd_size) ibv_cmd_modify_qp() argument
1419 ibv_cmd_modify_qp_ex(struct ibv_qp * qp,struct ibv_qp_attr * attr,int attr_mask,struct ibv_modify_qp_ex * cmd,size_t cmd_core_size,size_t cmd_size,struct ibv_modify_qp_resp_ex * resp,size_t resp_core_size,size_t resp_size) ibv_cmd_modify_qp_ex() argument
1458 int cmd_size; ibv_cmd_post_send() local
1548 int cmd_size; ibv_cmd_post_recv() local
1609 int cmd_size; ibv_cmd_post_srq_recv() local
1922 size_t cmd_size; ibv_cmd_create_flow() local
1994 ibv_cmd_create_wq(struct ibv_context * context,struct ibv_wq_init_attr * wq_init_attr,struct ibv_wq * wq,struct ibv_create_wq * cmd,size_t cmd_core_size,size_t cmd_size,struct ibv_create_wq_resp * resp,size_t resp_core_size,size_t resp_size) ibv_cmd_create_wq() argument
2048 ibv_cmd_modify_wq(struct ibv_wq * wq,struct ibv_wq_attr * attr,struct ibv_modify_wq * cmd,size_t cmd_core_size,size_t cmd_size) ibv_cmd_modify_wq() argument
2110 ibv_cmd_create_rwq_ind_table(struct ibv_context * context,struct ibv_rwq_ind_table_init_attr * init_attr,struct ibv_rwq_ind_table * rwq_ind_table,struct ibv_create_rwq_ind_table * cmd,size_t cmd_core_size,size_t cmd_size,struct ibv_create_rwq_ind_table_resp * resp,size_t resp_core_size,size_t resp_size) ibv_cmd_create_rwq_ind_table() argument
[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/usr.sbin/bhyve/
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_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_add in tpm_crb_thread()
[all...]
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/mvm/
H A Dfw.c541 size_t cmd_size; in iwl_send_phy_cfg_cmd() local
575 cmd_size = (cmd_ver == 3) ? sizeof(struct iwl_phy_cfg_cmd_v3) : in iwl_send_phy_cfg_cmd()
577 return iwl_mvm_send_cmd_pdu(mvm, cmd_id, 0, cmd_size, &phy_cfg_cmd); in iwl_send_phy_cfg_cmd()
1039 int ret, cmd_size; in iwl_mvm_ppag_send_cmd() local
1041 ret = iwl_fill_ppag_table(&mvm->fwrt, &cmd, &cmd_size); in iwl_mvm_ppag_send_cmd()
1049 0, cmd_size, &cmd); in iwl_mvm_ppag_send_cmd()
1076 int cmd_size; in iwl_mvm_tas_init() local
1133 cmd_size = sizeof(cmd_v5); in iwl_mvm_tas_init()
1144 cmd_size = sizeof(cmd_v2_v4.common) + sizeof(cmd_v2_v4.v4); in iwl_mvm_tas_init()
1154 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/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.c435 uint16_t cmd_size; in genl_register_cmds() local
440 cmd_size = gf->family_cmd_size; in genl_register_cmds()
444 if (cmds[i].cmd_num >= cmd_size) in genl_register_cmds()
445 cmd_size = cmds[i].cmd_num + 1; in genl_register_cmds()
448 if (cmd_size > gf->family_cmd_size) { in genl_register_cmds()
452 size_t sz = cmd_size * sizeof(struct genl_cmd); in genl_register_cmds()
459 gf->family_cmd_size = cmd_size; in genl_register_cmds()
/freebsd/sys/contrib/dev/iwlwifi/fw/
H A Dregulatory.c323 union iwl_ppag_table_cmd *cmd, int *cmd_size) in iwl_fill_ppag_table() argument
360 *cmd_size = sizeof(cmd->v1); in iwl_fill_ppag_table()
371 *cmd_size = sizeof(cmd->v5); in iwl_fill_ppag_table()
381 *cmd_size = sizeof(cmd->v7); in iwl_fill_ppag_table()
H A Dregulatory.h195 int *cmd_size);
/freebsd/sys/contrib/dev/iwlwifi/mld/
H A Dtlc.c540 u8 cmd_size; in iwl_mld_send_tlc_cmd() local
562 cmd_size = sizeof(cmd); in iwl_mld_send_tlc_cmd()
569 cmd_size = sizeof(cmd_v5); in iwl_mld_send_tlc_cmd()
575 cmd_size = sizeof(cmd_v4); in iwl_mld_send_tlc_cmd()
589 cmd_size); in iwl_mld_send_tlc_cmd()
H A Dscan.h138 size_t cmd_size; member
H A Dregulatory.c337 int cmd_size = offsetof(typeof(cmd), oem_11bn_allow_bitmap); in iwl_mld_configure_lari() local
342 &cmd, cmd_size); in iwl_mld_configure_lari()
H A Dscan.c1161 memset(mld->scan.cmd, 0, mld->scan.cmd_size); in iwl_mld_scan_build_cmd()
1224 u32 cmd_size = blocklist_size + sizeof(*profile_cfg); in iwl_mld_config_sched_scan_profiles() local
1231 cmd = kzalloc(cmd_size, GFP_KERNEL); in iwl_mld_config_sched_scan_profiles()
1236 hcmd.len[0] = cmd_size; in iwl_mld_config_sched_scan_profiles()
1441 .len = { mld->scan.cmd_size, }, in _iwl_mld_single_scan_start()
1632 .len = { mld->scan.cmd_size, }, in iwl_mld_sched_scan_start()
2067 mld->scan.cmd_size = scan_cmd_size; in iwl_mld_alloc_scan_cmd()
/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/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.c1360 u16 copy_size, cmd_size, tb0_size; in iwl_pcie_enqueue_hcmd() local
1376 cmd_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_enqueue_hcmd()
1379 cmd_size = sizeof(struct iwl_cmd_header); in iwl_pcie_enqueue_hcmd()
1434 cmd_size += cmd->len[i]; in iwl_pcie_enqueue_hcmd()
1479 cpu_to_le16(cmd_size - in iwl_pcie_enqueue_hcmd()
1542 cmd_size, txq->write_ptr, idx, trans->conf.cmd_queue); in iwl_pcie_enqueue_hcmd()
1597 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 …]

12