/linux-6.6.21/drivers/net/wireless/marvell/mwifiex/ |
D | uap_cmd.c | 304 u16 cmd_size = *param_size; in mwifiex_uap_bss_wpa() local 313 cmd_size += sizeof(struct host_cmd_tlv_akmp); in mwifiex_uap_bss_wpa() 324 cmd_size += sizeof(struct host_cmd_tlv_pwk_cipher); in mwifiex_uap_bss_wpa() 336 cmd_size += sizeof(struct host_cmd_tlv_pwk_cipher); in mwifiex_uap_bss_wpa() 347 cmd_size += sizeof(struct host_cmd_tlv_gwk_cipher); in mwifiex_uap_bss_wpa() 358 cmd_size += sizeof(struct mwifiex_ie_types_header) + in mwifiex_uap_bss_wpa() 364 *param_size = cmd_size; in mwifiex_uap_bss_wpa() 412 u16 cmd_size = *param_size; in mwifiex_uap_bss_wep() local 430 cmd_size += sizeof(struct mwifiex_ie_types_header) + 2 + in mwifiex_uap_bss_wep() 437 *param_size = cmd_size; in mwifiex_uap_bss_wep() [all …]
|
D | cmdevt.c | 170 uint16_t cmd_size; in mwifiex_dnld_cmd_to_fw() local 190 cmd_size = le16_to_cpu(host_cmd->size); in mwifiex_dnld_cmd_to_fw() 215 if (cmd_node->cmd_skb->len > cmd_size) in mwifiex_dnld_cmd_to_fw() 220 skb_trim(cmd_node->cmd_skb, cmd_size); in mwifiex_dnld_cmd_to_fw() 221 else if (cmd_node->cmd_skb->len < cmd_size) in mwifiex_dnld_cmd_to_fw() 227 skb_put(cmd_node->cmd_skb, cmd_size - cmd_node->cmd_skb->len); in mwifiex_dnld_cmd_to_fw() 233 cmd_size, le16_to_cpu(host_cmd->seq_num)); in mwifiex_dnld_cmd_to_fw() 234 mwifiex_dbg_dump(adapter, CMD_D, "cmd buffer:", host_cmd, cmd_size); in mwifiex_dnld_cmd_to_fw() 1320 u16 cmd_size = 0; in mwifiex_cmd_enh_power_mode() local 1336 cmd_size = S_DS_GEN + sizeof(psmode_enh->action) + in mwifiex_cmd_enh_power_mode() [all …]
|
/linux-6.6.21/tools/usb/usbip/src/ |
D | utils.c | 21 int cmd_size; in modify_match_busid() local 29 cmd_size = snprintf(command, SYSFS_BUS_ID_SIZE + 4, "add %s", in modify_match_busid() 32 cmd_size = snprintf(command, SYSFS_BUS_ID_SIZE + 4, "del %s", in modify_match_busid() 36 cmd_size); in modify_match_busid()
|
/linux-6.6.21/drivers/infiniband/hw/bnxt_re/ |
D | qplib_rcfw.h | 64 u8 opcode, u8 cmd_size) in bnxt_qplib_rcfw_cmd_prep() argument 67 req->cmd_size = cmd_size; in bnxt_qplib_rcfw_cmd_prep() 106 cmd_units = (req->cmd_size + BNXT_QPLIB_CMDQE_UNITS - 1) / in bnxt_qplib_get_cmd_slots() 122 cmd_byte = req->cmd_size; in bnxt_qplib_set_cmd_slots() 123 req->cmd_size = (req->cmd_size + BNXT_QPLIB_CMDQE_UNITS - 1) / in bnxt_qplib_set_cmd_slots()
|
D | roce_hsi.h | 148 u8 cmd_size; member 176 u8 cmd_size; member 215 u8 cmd_size; member 385 u8 cmd_size; member 417 u8 cmd_size; member 521 u8 cmd_size; member 554 u8 cmd_size; member 707 u8 cmd_size; member 829 u8 cmd_size; member 970 u8 cmd_size; member [all …]
|
D | qplib_tlv.h | 121 return req->cmd_size; in __get_cmdq_base_cmd_size() 128 ((struct cmdq_base *)GET_TLV_DATA(req))->cmd_size = val; in __set_cmdq_base_cmd_size() 130 req->cmd_size = val; in __set_cmdq_base_cmd_size()
|
/linux-6.6.21/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_so.c | 72 u32 cmd_size; /* Immutable */ member 176 cmd = VMW_CMD_CTX_RESERVE(res->dev_priv, view->cmd_size, view->ctx->id); in vmw_view_create() 182 memcpy(cmd, &view->cmd, view->cmd_size); in vmw_view_create() 187 vmw_cmd_commit(res->dev_priv, view->cmd_size); in vmw_view_create() 316 size_t cmd_size, in vmw_view_add() argument 332 if (cmd_size != vmw_view_define_sizes[view_type] + in vmw_view_add() 343 size = offsetof(struct vmw_view, cmd) + cmd_size; in vmw_view_add() 357 view->cmd_size = cmd_size; in vmw_view_add() 361 memcpy(&view->cmd, cmd, cmd_size); in vmw_view_add()
|
D | vmwgfx_binding.c | 824 size_t cmd_size, view_id_size; in vmw_emit_set_sr() local 834 cmd_size = sizeof(*cmd) + view_id_size; in vmw_emit_set_sr() 835 cmd = VMW_CMD_CTX_RESERVE(ctx->dev_priv, cmd_size, ctx->id); in vmw_emit_set_sr() 846 vmw_cmd_commit(ctx->dev_priv, cmd_size); in vmw_emit_set_sr() 865 size_t cmd_size, view_id_size; in vmw_emit_set_rt() local 870 cmd_size = sizeof(*cmd) + view_id_size; in vmw_emit_set_rt() 871 cmd = VMW_CMD_CTX_RESERVE(ctx->dev_priv, cmd_size, ctx->id); in vmw_emit_set_rt() 885 vmw_cmd_commit(ctx->dev_priv, cmd_size); in vmw_emit_set_rt() 944 size_t cmd_size, so_target_size; in vmw_emit_set_so_target() local 952 cmd_size = sizeof(*cmd) + so_target_size; in vmw_emit_set_so_target() [all …]
|
D | vmwgfx_gmr.c | 50 uint32_t cmd_size = define_size + remap_size; in vmw_gmr2_bind() local 53 cmd_orig = cmd = VMW_CMD_RESERVE(dev_priv, cmd_size); in vmw_gmr2_bind() 98 BUG_ON(cmd != cmd_orig + cmd_size / sizeof(*cmd)); in vmw_gmr2_bind() 100 vmw_cmd_commit(dev_priv, cmd_size); in vmw_gmr2_bind()
|
/linux-6.6.21/drivers/media/pci/intel/ivsc/ |
D | mei_ace.c | 292 int cmd_size; in ace_set_camera_owner() local 300 cmd_size = construct_command(ace, &cmd, cmd_id); in ace_set_camera_owner() 301 if (cmd_size >= 0) in ace_set_camera_owner() 302 ret = mei_ace_send(ace, &cmd, cmd_size, false); in ace_set_camera_owner() 304 ret = cmd_size; in ace_set_camera_owner() 313 int cmd_size; in ace_get_firmware_id() local 316 cmd_size = construct_command(ace, &cmd, ACE_GET_FW_ID); in ace_get_firmware_id() 317 if (cmd_size >= 0) in ace_get_firmware_id() 318 ret = mei_ace_send(ace, &cmd, cmd_size, true); in ace_get_firmware_id() 320 ret = cmd_size; in ace_get_firmware_id()
|
D | mei_csi.c | 208 size_t cmd_size; in csi_set_link_owner() local 213 cmd_size = sizeof(cmd.cmd_id) + sizeof(cmd.param.param); in csi_set_link_owner() 217 ret = mei_csi_send(csi, (u8 *)&cmd, cmd_size); in csi_set_link_owner() 228 size_t cmd_size; in csi_set_link_cfg() local 234 cmd_size = sizeof(cmd.cmd_id) + sizeof(cmd.param.conf); in csi_set_link_cfg() 238 ret = mei_csi_send(csi, (u8 *)&cmd, cmd_size); in csi_set_link_cfg()
|
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/pcie/ |
D | tx-gen2.c | 37 u16 copy_size, cmd_size, tb0_size; in iwl_pcie_gen2_enqueue_hcmd() local 46 cmd_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_gen2_enqueue_hcmd() 97 cmd_size += cmd->len[i]; in iwl_pcie_gen2_enqueue_hcmd() 140 cpu_to_le16(cmd_size - sizeof(struct iwl_cmd_header_wide)); in iwl_pcie_gen2_enqueue_hcmd() 191 cmd_size, txq->write_ptr, idx, trans->txqs.cmd.q_id); in iwl_pcie_gen2_enqueue_hcmd() 241 trace_iwlwifi_dev_hcmd(trans->dev, cmd, cmd_size, &out_cmd->hdr_wide); in iwl_pcie_gen2_enqueue_hcmd()
|
/linux-6.6.21/drivers/char/tpm/ |
D | tpm_crb.c | 99 u32 cmd_size; member 407 if (len > priv->cmd_size) { in crb_send() 409 len, priv->cmd_size); in crb_send() 560 u32 cmd_size; in crb_map_io() local 637 cmd_size = ioread32(&priv->regs_t->ctrl_cmd_size); in crb_map_io() 651 cmd_size = crb_fixup_cmd_size(dev, iores, cmd_pa, cmd_size); in crb_map_io() 654 pa_high, pa_low, cmd_size); in crb_map_io() 656 priv->cmd = crb_map_res(dev, iores, iobase_ptr, cmd_pa, cmd_size); in crb_map_io() 690 if (cmd_size != rsp_size) { in crb_map_io() 700 priv->cmd_size = cmd_size; in crb_map_io()
|
/linux-6.6.21/drivers/net/can/spi/mcp251xfd/ |
D | mcp251xfd-crc16.c | 80 u16 mcp251xfd_crc16_compute2(const void *cmd, size_t cmd_size, in mcp251xfd_crc16_compute2() argument 85 crc = mcp251xfd_crc16_compute(cmd, cmd_size); in mcp251xfd_crc16_compute2()
|
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | fw.c | 537 size_t cmd_size; in iwl_send_phy_cfg_cmd() local 571 cmd_size = (cmd_ver == 3) ? sizeof(struct iwl_phy_cfg_cmd_v3) : in iwl_send_phy_cfg_cmd() 573 return iwl_mvm_send_cmd_pdu(mvm, cmd_id, 0, cmd_size, &phy_cfg_cmd); in iwl_send_phy_cfg_cmd() 1024 int ret, cmd_size; in iwl_mvm_ppag_send_cmd() local 1026 ret = iwl_read_ppag_table(&mvm->fwrt, &cmd, &cmd_size); in iwl_mvm_ppag_send_cmd() 1034 0, cmd_size, &cmd); in iwl_mvm_ppag_send_cmd() 1130 int cmd_size, fw_ver; in iwl_mvm_tas_init() local 1175 cmd_size = fw_ver < 3 ? in iwl_mvm_tas_init() 1179 ret = iwl_mvm_send_cmd_pdu(mvm, cmd_id, 0, cmd_size, &cmd); in iwl_mvm_tas_init() 1251 size_t cmd_size; in iwl_mvm_lari_cfg() local [all …]
|
D | ftm-responder.c | 127 int cmd_size; in iwl_mvm_ftm_responder_cmd() local 141 cmd_size = sizeof(struct iwl_tof_responder_config_cmd_v9); in iwl_mvm_ftm_responder_cmd() 144 cmd_size = sizeof(struct iwl_tof_responder_config_cmd_v8); in iwl_mvm_ftm_responder_cmd() 165 return iwl_mvm_send_cmd_pdu(mvm, cmd_id, 0, cmd_size, &cmd); in iwl_mvm_ftm_responder_cmd()
|
/linux-6.6.21/arch/um/drivers/ |
D | virt-pci.c | 73 unsigned int cmd_size, in um_pci_send_cmd() argument 88 if (WARN_ON(cmd_size < sizeof(*cmd) || cmd_size > sizeof(*buf))) in um_pci_send_cmd() 106 memcpy(buf, cmd, cmd_size); in um_pci_send_cmd() 109 u8 *ncmd = kmalloc(cmd_size + extra_size, GFP_ATOMIC); in um_pci_send_cmd() 112 memcpy(ncmd, cmd, cmd_size); in um_pci_send_cmd() 114 memcpy(ncmd + cmd_size, extra, extra_size); in um_pci_send_cmd() 116 cmd_size += extra_size; in um_pci_send_cmd() 128 sg_init_one(&out_sg, cmd, cmd_size); in um_pci_send_cmd()
|
/linux-6.6.21/drivers/nvmem/ |
D | rave-sp-eeprom.c | 97 const unsigned int cmd_size = eeprom->header_size + data_size; in rave_sp_eeprom_io() local 104 if (WARN_ON(cmd_size > sizeof(cmd))) in rave_sp_eeprom_io() 126 ret = rave_sp_exec(eeprom->sp, cmd, cmd_size, page, rsp_size); in rave_sp_eeprom_io()
|
/linux-6.6.21/drivers/platform/x86/intel/speed_select_if/ |
D | isst_if_common.c | 563 cmd_ptr = kmalloc(cb->cmd_size, GFP_KERNEL); in isst_if_exec_multi_cmd() 578 if (copy_from_user(cmd_ptr, ptr, cb->cmd_size)) { in isst_if_exec_multi_cmd() 587 if (!wr_only && copy_to_user(ptr, cmd_ptr, cb->cmd_size)) { in isst_if_exec_multi_cmd() 592 ptr += cb->cmd_size; in isst_if_exec_multi_cmd() 614 cmd_cb.cmd_size = sizeof(struct isst_if_cpu_map); in isst_if_def_ioctl() 630 cmd_cb.cmd_size = sizeof(struct isst_if_msr_cmd); in isst_if_def_ioctl()
|
/linux-6.6.21/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_api_cmd.c | 224 void *cmd, u16 cmd_size) in prepare_api_cmd() argument 246 HINIC_API_CMD_DESC_SET(SIZE_4BYTES(cmd_size), SIZE); in prepare_api_cmd() 254 memcpy(cell_ctxt->api_cmd_vaddr, cmd, cmd_size); in prepare_api_cmd() 268 void *cmd, u16 cmd_size) in prepare_cell() argument 274 prepare_api_cmd(chain, dest, cmd, cmd_size); in prepare_cell() 381 enum hinic_node_id dest, u8 *cmd, u16 cmd_size) in api_cmd() argument 392 prepare_cell(chain, dest, cmd, cmd_size); in api_cmd()
|
/linux-6.6.21/tools/testing/nvdimm/test/ |
D | nfit.c | 2878 unsigned long mask, cmd_size, offset; in nfit_ctl_test() local 2954 cmd_size = sizeof(cmd.cfg_size); in nfit_ctl_test() 2960 rc = setup_result(cmd.buf, cmd_size); in nfit_ctl_test() 2964 cmd.buf, cmd_size, &cmd_rc); in nfit_ctl_test() 2976 cmd_size = offsetof(struct nd_cmd_ars_status, address); in nfit_ctl_test() 2980 rc = setup_result(cmd.buf, cmd_size); in nfit_ctl_test() 2984 cmd.buf, cmd_size, &cmd_rc); in nfit_ctl_test() 2994 cmd_size = sizeof(cmd.ars_cap); in nfit_ctl_test() 2999 rc = setup_result(cmd.buf + offset, cmd_size - offset); in nfit_ctl_test() 3003 cmd.buf, cmd_size, &cmd_rc); in nfit_ctl_test() [all …]
|
/linux-6.6.21/drivers/gpu/drm/virtio/ |
D | virtgpu_ioctl.c | 465 if (rc_blob->cmd_size % 4 != 0) in verify_blob() 474 if (rc_blob->cmd_size != 0) in verify_blob() 507 if (rc_blob->cmd_size) { in virtio_gpu_resource_create_blob_ioctl() 511 rc_blob->cmd_size); in virtio_gpu_resource_create_blob_ioctl() 516 virtio_gpu_cmd_submit(vgdev, buf, rc_blob->cmd_size, in virtio_gpu_resource_create_blob_ioctl()
|
/linux-6.6.21/drivers/misc/mei/hdcp/ |
D | mei_hdcp.c | 554 size_t cmd_size; in mei_hdcp_verify_mprime() local 561 cmd_size = struct_size(verify_mprime_in, streams, data->k); in mei_hdcp_verify_mprime() 562 if (cmd_size == SIZE_MAX) in mei_hdcp_verify_mprime() 565 verify_mprime_in = kzalloc(cmd_size, GFP_KERNEL); in mei_hdcp_verify_mprime() 572 verify_mprime_in->header.buffer_len = cmd_size - sizeof(verify_mprime_in->header); in mei_hdcp_verify_mprime() 586 byte = mei_cldev_send(cldev, (u8 *)verify_mprime_in, cmd_size); in mei_hdcp_verify_mprime()
|
/linux-6.6.21/drivers/media/platform/renesas/vsp1/ |
D | vsp1_dl.c | 428 size_t cmd_size; in vsp1_dl_cmd_pool_create() local 445 cmd_size = sizeof(struct vsp1_pre_ext_dl_body) + in vsp1_dl_cmd_pool_create() 447 cmd_size = ALIGN(cmd_size, 16); in vsp1_dl_cmd_pool_create() 449 pool->size = cmd_size * num_cmds; in vsp1_dl_cmd_pool_create() 460 size_t cmd_offset = i * cmd_size; in vsp1_dl_cmd_pool_create()
|
/linux-6.6.21/drivers/crypto/cavium/cpt/ |
D | cptvf_main.c | 197 cqinfo->cmd_size = 0; in free_command_queues() 201 struct command_qinfo *cqinfo, size_t cmd_size, in alloc_command_queues() argument 210 cqinfo->cmd_size = cmd_size; in alloc_command_queues() 215 q_size = qlen * cqinfo->cmd_size; in alloc_command_queues() 222 u32 qcsize_bytes = cqinfo->qchunksize * cqinfo->cmd_size; in alloc_command_queues()
|