/kernel/linux/linux-5.10/drivers/net/wimax/i2400m/ |
D | usb-fw.c | 183 size_t cmd_size, int flags) in i2400mu_bus_bm_cmd_send() argument 190 size_t cmd_size_a = ALIGN(cmd_size, 16); /* USB restriction */ in i2400mu_bus_bm_cmd_send() 193 i2400m, _cmd, cmd_size); in i2400mu_bus_bm_cmd_send() 195 if (cmd_size > I2400M_BM_CMD_BUF_SIZE) in i2400mu_bus_bm_cmd_send() 198 memmove(i2400m->bm_cmd_buf, _cmd, cmd_size); in i2400mu_bus_bm_cmd_send() 200 if (cmd_size_a > cmd_size) /* Zero pad space */ in i2400mu_bus_bm_cmd_send() 201 memset(i2400m->bm_cmd_buf + cmd_size, 0, cmd_size_a - cmd_size); in i2400mu_bus_bm_cmd_send() 207 result = i2400mu_tx_bulk_out(i2400mu, i2400m->bm_cmd_buf, cmd_size); in i2400mu_bus_bm_cmd_send() 213 if (result != cmd_size) { /* all was transferred? */ in i2400mu_bus_bm_cmd_send() 215 "(%zd vs %zu submitted)\n", opcode, result, cmd_size); in i2400mu_bus_bm_cmd_send() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/ |
D | uap_cmd.c | 315 u16 cmd_size = *param_size; in mwifiex_uap_bss_wpa() local 324 cmd_size += sizeof(struct host_cmd_tlv_akmp); in mwifiex_uap_bss_wpa() 335 cmd_size += sizeof(struct host_cmd_tlv_pwk_cipher); in mwifiex_uap_bss_wpa() 347 cmd_size += sizeof(struct host_cmd_tlv_pwk_cipher); in mwifiex_uap_bss_wpa() 358 cmd_size += sizeof(struct host_cmd_tlv_gwk_cipher); in mwifiex_uap_bss_wpa() 369 cmd_size += sizeof(struct mwifiex_ie_types_header) + in mwifiex_uap_bss_wpa() 375 *param_size = cmd_size; in mwifiex_uap_bss_wpa() 423 u16 cmd_size = *param_size; in mwifiex_uap_bss_wep() local 441 cmd_size += sizeof(struct mwifiex_ie_types_header) + 2 + in mwifiex_uap_bss_wep() 448 *param_size = cmd_size; in mwifiex_uap_bss_wep() [all …]
|
D | cmdevt.c | 182 uint16_t cmd_size; in mwifiex_dnld_cmd_to_fw() local 202 cmd_size = le16_to_cpu(host_cmd->size); in mwifiex_dnld_cmd_to_fw() 227 if (cmd_node->cmd_skb->len > cmd_size) in mwifiex_dnld_cmd_to_fw() 232 skb_trim(cmd_node->cmd_skb, cmd_size); in mwifiex_dnld_cmd_to_fw() 233 else if (cmd_node->cmd_skb->len < cmd_size) in mwifiex_dnld_cmd_to_fw() 239 skb_put(cmd_node->cmd_skb, cmd_size - cmd_node->cmd_skb->len); in mwifiex_dnld_cmd_to_fw() 245 cmd_size, le16_to_cpu(host_cmd->seq_num)); in mwifiex_dnld_cmd_to_fw() 246 mwifiex_dbg_dump(adapter, CMD_D, "cmd buffer:", host_cmd, cmd_size); in mwifiex_dnld_cmd_to_fw() 1311 u16 cmd_size = 0; in mwifiex_cmd_enh_power_mode() local 1327 cmd_size = S_DS_GEN + sizeof(psmode_enh->action) + in mwifiex_cmd_enh_power_mode() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_so.c | 70 u32 cmd_size; /* Immutable */ member 173 cmd = VMW_FIFO_RESERVE_DX(res->dev_priv, view->cmd_size, view->ctx->id); in vmw_view_create() 179 memcpy(cmd, &view->cmd, view->cmd_size); in vmw_view_create() 184 vmw_fifo_commit(res->dev_priv, view->cmd_size); in vmw_view_create() 286 size_t size = offsetof(struct vmw_view, cmd) + view->cmd_size; in vmw_view_res_free() 316 size_t cmd_size, in vmw_view_add() argument 336 if (cmd_size != vmw_view_define_sizes[view_type] + in vmw_view_add() 347 size = offsetof(struct vmw_view, cmd) + cmd_size; in vmw_view_add() 369 view->cmd_size = cmd_size; in vmw_view_add() 373 memcpy(&view->cmd, cmd, cmd_size); in vmw_view_add()
|
D | vmwgfx_binding.c | 802 size_t cmd_size, view_id_size; in vmw_emit_set_sr() local 812 cmd_size = sizeof(*cmd) + view_id_size; in vmw_emit_set_sr() 813 cmd = VMW_FIFO_RESERVE_DX(ctx->dev_priv, cmd_size, ctx->id); in vmw_emit_set_sr() 824 vmw_fifo_commit(ctx->dev_priv, cmd_size); in vmw_emit_set_sr() 843 size_t cmd_size, view_id_size; in vmw_emit_set_rt() local 848 cmd_size = sizeof(*cmd) + view_id_size; in vmw_emit_set_rt() 849 cmd = VMW_FIFO_RESERVE_DX(ctx->dev_priv, cmd_size, ctx->id); in vmw_emit_set_rt() 863 vmw_fifo_commit(ctx->dev_priv, cmd_size); in vmw_emit_set_rt() 924 size_t cmd_size, so_target_size; in vmw_emit_set_so_target() local 932 cmd_size = sizeof(*cmd) + so_target_size; in vmw_emit_set_so_target() [all …]
|
D | vmwgfx_gmr.c | 51 uint32_t cmd_size = define_size + remap_size; in vmw_gmr2_bind() local 54 cmd_orig = cmd = VMW_FIFO_RESERVE(dev_priv, cmd_size); in vmw_gmr2_bind() 99 BUG_ON(cmd != cmd_orig + cmd_size / sizeof(*cmd)); in vmw_gmr2_bind() 101 vmw_fifo_commit(dev_priv, cmd_size); in vmw_gmr2_bind()
|
D | vmwgfx_so.h | 150 size_t cmd_size,
|
/kernel/linux/linux-5.10/drivers/char/tpm/ |
D | tpm_crb.c | 99 u32 cmd_size; member 368 if (len > priv->cmd_size) { in crb_send() 370 len, priv->cmd_size); in crb_send() 514 u32 cmd_size; in crb_map_io() local 585 cmd_size = ioread32(&priv->regs_t->ctrl_cmd_size); in crb_map_io() 599 cmd_size = crb_fixup_cmd_size(dev, iores, cmd_pa, cmd_size); in crb_map_io() 602 pa_high, pa_low, cmd_size); in crb_map_io() 604 priv->cmd = crb_map_res(dev, iores, iobase_ptr, cmd_pa, cmd_size); in crb_map_io() 638 if (cmd_size != rsp_size) { in crb_map_io() 648 priv->cmd_size = cmd_size; in crb_map_io()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/ |
D | roce_hsi.h | 1105 u8 cmd_size; member 1117 u8 cmd_size; member 1191 u8 cmd_size; member 1205 u8 cmd_size; member 1317 u8 cmd_size; member 1331 u8 cmd_size; member 1366 u8 cmd_size; member 1380 u8 cmd_size; member 1394 u8 cmd_size; member 1429 u8 cmd_size; member [all …]
|
D | qplib_rcfw.h | 58 (req).cmd_size = sizeof((req)); \ 93 req->cmd_size = (req->cmd_size + BNXT_QPLIB_CMDQE_UNITS - 1) / in bnxt_qplib_set_cmd_slots()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/pcie/ |
D | tx-gen2.c | 84 u16 copy_size, cmd_size, tb0_size; in iwl_pcie_gen2_enqueue_hcmd() local 93 cmd_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_gen2_enqueue_hcmd() 144 cmd_size += cmd->len[i]; in iwl_pcie_gen2_enqueue_hcmd() 187 cpu_to_le16(cmd_size - sizeof(struct iwl_cmd_header_wide)); in iwl_pcie_gen2_enqueue_hcmd() 238 cmd_size, txq->write_ptr, idx, trans->txqs.cmd.q_id); in iwl_pcie_gen2_enqueue_hcmd() 288 trace_iwlwifi_dev_hcmd(trans->dev, cmd, cmd_size, &out_cmd->hdr_wide); in iwl_pcie_gen2_enqueue_hcmd()
|
/kernel/linux/linux-5.10/drivers/platform/x86/intel_speed_select_if/ |
D | isst_if_common.c | 457 cmd_ptr = kmalloc(cb->cmd_size, GFP_KERNEL); in isst_if_exec_multi_cmd() 472 if (copy_from_user(cmd_ptr, ptr, cb->cmd_size)) { in isst_if_exec_multi_cmd() 481 if (!wr_only && copy_to_user(ptr, cmd_ptr, cb->cmd_size)) { in isst_if_exec_multi_cmd() 486 ptr += cb->cmd_size; in isst_if_exec_multi_cmd() 507 cmd_cb.cmd_size = sizeof(struct isst_if_cpu_map); in isst_if_def_ioctl() 523 cmd_cb.cmd_size = sizeof(struct isst_if_msr_cmd); in isst_if_def_ioctl()
|
D | isst_if_common.h | 57 int cmd_size; member
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/tools/testing/nvdimm/test/ |
D | nfit.c | 2895 unsigned long mask, cmd_size, offset; in nfit_ctl_test() local 2971 cmd_size = sizeof(cmd.cfg_size); in nfit_ctl_test() 2977 rc = setup_result(cmd.buf, cmd_size); in nfit_ctl_test() 2981 cmd.buf, cmd_size, &cmd_rc); in nfit_ctl_test() 2993 cmd_size = offsetof(struct nd_cmd_ars_status, address); in nfit_ctl_test() 2997 rc = setup_result(cmd.buf, cmd_size); in nfit_ctl_test() 3001 cmd.buf, cmd_size, &cmd_rc); in nfit_ctl_test() 3011 cmd_size = sizeof(cmd.ars_cap); in nfit_ctl_test() 3016 rc = setup_result(cmd.buf + offset, cmd_size - offset); in nfit_ctl_test() 3020 cmd.buf, cmd_size, &cmd_rc); in nfit_ctl_test() [all …]
|
/kernel/linux/linux-5.10/drivers/crypto/cavium/cpt/ |
D | cptvf_main.c | 200 cqinfo->cmd_size = 0; in free_command_queues() 204 struct command_qinfo *cqinfo, size_t cmd_size, in alloc_command_queues() argument 213 cqinfo->cmd_size = cmd_size; in alloc_command_queues() 218 q_size = qlen * cqinfo->cmd_size; in alloc_command_queues() 225 u32 qcsize_bytes = cqinfo->qchunksize * cqinfo->cmd_size; in alloc_command_queues()
|
/kernel/linux/linux-5.10/drivers/media/platform/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()
|
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/ |
D | mxl5xx.c | 75 u32 cmd_size; member 417 u8 cmd_size = sizeof(abort_tune_cmd); in cfg_demod_abort_tune() local 422 cmd_size, &abort_tune_cmd, cmd_buff); in cfg_demod_abort_tune() 423 return send_command(state, cmd_size + MXL_HYDRA_CMD_HEADER_SIZE, in cfg_demod_abort_tune() 440 u8 cmd_size = sizeof(demod_chan_cfg); in set_parameters() local 492 cmd_size, &demod_chan_cfg, cmd_buff); in set_parameters() 493 stat = send_command(state, cmd_size + MXL_HYDRA_CMD_HEADER_SIZE, in set_parameters() 971 u8 cmd_size = sizeof(struct MXL_HYDRA_SKU_COMMAND_T); in firmware_download() local 1051 cmd_size, &dev_sku_cfg, cmd_buff); in firmware_download() 1052 status = send_command(state, cmd_size + MXL_HYDRA_CMD_HEADER_SIZE, in firmware_download() [all …]
|
/kernel/linux/linux-5.10/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() 587 byte = mei_cldev_send(cldev, (u8 *)verify_mprime_in, cmd_size); in mei_hdcp_verify_mprime()
|
/kernel/linux/linux-5.10/drivers/misc/ti-st/ |
D | st_kim.c | 286 int cmd_size; in download_firmware() local 337 cmd_size = ((struct bts_action *)ptr)->size; in download_firmware() 349 } while ((wr_room_space < cmd_size) && in download_firmware() 381 if (err != cmd_size) { in download_firmware()
|
/kernel/linux/linux-5.10/drivers/nvdimm/ |
D | dimm_devs.c | 107 size_t cmd_size; in nvdimm_get_config_data() local 112 cmd_size = sizeof(*cmd) + cmd->in_length; in nvdimm_get_config_data() 115 ND_CMD_GET_CONFIG_DATA, cmd, cmd_size, &cmd_rc); in nvdimm_get_config_data() 153 size_t cmd_size; in nvdimm_set_config_data() local 160 cmd_size = sizeof(*cmd) + cmd->in_length + sizeof(u32); in nvdimm_set_config_data() 163 ND_CMD_SET_CONFIG_DATA, cmd, cmd_size, &cmd_rc); in nvdimm_set_config_data()
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | rs-fw.c | 471 u16 cmd_size = sizeof(cfg_cmd); in rs_fw_rate_init() local 476 cmd_size -= 4; in rs_fw_rate_init() 491 ret = iwl_mvm_send_cmd_pdu(mvm, cmd_id, CMD_ASYNC, cmd_size, in rs_fw_rate_init()
|