/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | uap_cmd.c | 299 u16 cmd_size = *param_size; in mwifiex_uap_bss_wpa() local 308 cmd_size += sizeof(struct host_cmd_tlv_akmp); in mwifiex_uap_bss_wpa() 319 cmd_size += sizeof(struct host_cmd_tlv_pwk_cipher); in mwifiex_uap_bss_wpa() 331 cmd_size += sizeof(struct host_cmd_tlv_pwk_cipher); in mwifiex_uap_bss_wpa() 342 cmd_size += sizeof(struct host_cmd_tlv_gwk_cipher); in mwifiex_uap_bss_wpa() 353 cmd_size += sizeof(struct mwifiex_ie_types_header) + in mwifiex_uap_bss_wpa() 359 *param_size = cmd_size; in mwifiex_uap_bss_wpa() 407 u16 cmd_size = *param_size; in mwifiex_uap_bss_wep() local 425 cmd_size += sizeof(struct mwifiex_ie_types_header) + 2 + in mwifiex_uap_bss_wep() 432 *param_size = cmd_size; in mwifiex_uap_bss_wep() [all …]
|
H A 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() 1334 u16 cmd_size = 0; in mwifiex_cmd_enh_power_mode() local 1350 cmd_size = S_DS_GEN + sizeof(psmode_enh->action) + in mwifiex_cmd_enh_power_mode() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/fw/ |
H A D | regulatory.c | 302 union iwl_ppag_table_cmd *cmd, int *cmd_size) in iwl_fill_ppag_table() argument 344 *cmd_size = sizeof(cmd->v1); in iwl_fill_ppag_table() 354 *cmd_size = sizeof(cmd->v2); in iwl_fill_ppag_table() 497 size_t cmd_size; in iwl_get_lari_config_cmd_size() local 502 cmd_size = sizeof(struct iwl_lari_config_change_cmd); in iwl_get_lari_config_cmd_size() 505 cmd_size = sizeof(struct iwl_lari_config_change_cmd_v10); in iwl_get_lari_config_cmd_size() 510 cmd_size = sizeof(struct iwl_lari_config_change_cmd_v7); in iwl_get_lari_config_cmd_size() 513 cmd_size = sizeof(struct iwl_lari_config_change_cmd_v6); in iwl_get_lari_config_cmd_size() 516 cmd_size = sizeof(struct iwl_lari_config_change_cmd_v5); in iwl_get_lari_config_cmd_size() 519 cmd_size = sizeof(struct iwl_lari_config_change_cmd_v4); in iwl_get_lari_config_cmd_size() [all …]
|
H A D | regulatory.h | 181 int *cmd_size); 211 size_t *cmd_size);
|
/linux/tools/usb/usbip/src/ |
H A 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/drivers/gpu/drm/vmwgfx/ |
H A 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()
|
H A 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/drivers/gpu/drm/imagination/ |
H A D | pvr_cccb.h | 60 u32 cmd_type, u32 cmd_size, void *cmd_data, 81 pvr_cccb_get_size_of_cmd_with_hdr(u32 cmd_size) in pvr_cccb_get_size_of_cmd_with_hdr() argument 83 WARN_ON(!IS_ALIGNED(cmd_size, 8)); in pvr_cccb_get_size_of_cmd_with_hdr() 84 return sizeof(struct rogue_fwif_ccb_cmd_header) + ALIGN(cmd_size, 8); in pvr_cccb_get_size_of_cmd_with_hdr()
|
H A D | pvr_cccb.c | 148 pvr_cccb_write_command_with_header(struct pvr_cccb *pvr_cccb, u32 cmd_type, u32 cmd_size, in pvr_cccb_write_command_with_header() argument 151 u32 sz_with_hdr = pvr_cccb_get_size_of_cmd_with_hdr(cmd_size); in pvr_cccb_write_command_with_header() 154 .cmd_size = ALIGN(cmd_size, 8), in pvr_cccb_write_command_with_header() 185 .cmd_size = remaining - sizeof(pad_cmd), in pvr_cccb_write_command_with_header() 193 memcpy(&pvr_cccb->cccb[pvr_cccb->write_offset + sizeof(cmd_header)], cmd_data, cmd_size); in pvr_cccb_write_command_with_header()
|
/linux/drivers/media/pci/intel/ivsc/ |
H A D | mei_ace.c | 290 int cmd_size; in ace_set_camera_owner() local 298 cmd_size = construct_command(ace, &cmd, cmd_id); in ace_set_camera_owner() 299 if (cmd_size >= 0) in ace_set_camera_owner() 300 ret = mei_ace_send(ace, &cmd, cmd_size, false); in ace_set_camera_owner() 302 ret = cmd_size; in ace_set_camera_owner() 311 int cmd_size; in ace_get_firmware_id() local 314 cmd_size = construct_command(ace, &cmd, ACE_GET_FW_ID); in ace_get_firmware_id() 315 if (cmd_size >= 0) in ace_get_firmware_id() 316 ret = mei_ace_send(ace, &cmd, cmd_size, true); in ace_get_firmware_id() 318 ret = cmd_size; in ace_get_firmware_id()
|
H A D | mei_csi.c | 212 size_t cmd_size; in csi_set_link_owner() local 217 cmd_size = sizeof(cmd.cmd_id) + sizeof(cmd.param.param); in csi_set_link_owner() 221 ret = mei_csi_send(csi, (u8 *)&cmd, cmd_size); in csi_set_link_owner() 232 size_t cmd_size; in csi_set_link_cfg() local 238 cmd_size = sizeof(cmd.cmd_id) + sizeof(cmd.param.conf); in csi_set_link_cfg() 242 ret = mei_csi_send(csi, (u8 *)&cmd, cmd_size); in csi_set_link_cfg()
|
/linux/drivers/char/tpm/ |
H A 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/drivers/net/can/spi/mcp251xfd/ |
H A 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/drivers/mfd/ |
H A D | cgbc-core.c | 134 int cgbc_command(struct cgbc_device_data *cgbc, void *cmd, unsigned int cmd_size, void *data, in cgbc_command() argument 158 if (cmd_size <= 2) { in cgbc_command() 162 if ((cmd_size % 4) != 0x03) in cgbc_command() 163 mode_change = (cmd_size & 0xFFFC) - 1; in cgbc_command() 166 for (i = 0; i < cmd_size; i++) { in cgbc_command()
|
/linux/arch/um/drivers/ |
H A 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/drivers/infiniband/hw/bnxt_re/ |
H A 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/rust/kernel/block/mq/ |
H A D | tag_set.rs | 47 .map(|cmd_size| { in new() 54 cmd_size, in new()
|
/linux/drivers/nvmem/ |
H A 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/drivers/media/i2c/ |
H A D | thp7312.c | 1709 static const u32 cmd_size = sizeof(thp7312_cmd_write_ram_to_flash); in thp7312_fw_write_to_flash() local 1713 memcpy(command, thp7312_cmd_write_ram_to_flash, cmd_size); in thp7312_fw_write_to_flash() 1715 command[cmd_size] = (dest & 0xff0000) >> 16; in thp7312_fw_write_to_flash() 1716 command[cmd_size + 1] = (dest & 0x00ff00) >> 8; in thp7312_fw_write_to_flash() 1717 command[cmd_size + 2] = (dest & 0x0000ff); in thp7312_fw_write_to_flash() 1718 command[cmd_size + 3] = ((write_size - 1) & 0xff0000) >> 16; in thp7312_fw_write_to_flash() 1719 command[cmd_size + 4] = ((write_size - 1) & 0x00ff00) >> 8; in thp7312_fw_write_to_flash() 1720 command[cmd_size + 5] = ((write_size - 1) & 0x0000ff); in thp7312_fw_write_to_flash() 1742 static const u32 cmd_size = sizeof(thp7312_cmd_calc_crc); in thp7312_fw_check_crc() local 1748 memcpy(command, thp7312_cmd_calc_crc, cmd_size); in thp7312_fw_check_crc() [all …]
|
/linux/drivers/platform/x86/intel/speed_select_if/ |
H A D | isst_if_common.c | 565 cmd_ptr = kmalloc(cb->cmd_size, GFP_KERNEL); in isst_if_exec_multi_cmd() 580 if (copy_from_user(cmd_ptr, ptr, cb->cmd_size)) { in isst_if_exec_multi_cmd() 589 if (!wr_only && copy_to_user(ptr, cmd_ptr, cb->cmd_size)) { in isst_if_exec_multi_cmd() 594 ptr += cb->cmd_size; in isst_if_exec_multi_cmd() 616 cmd_cb.cmd_size = sizeof(struct isst_if_cpu_map); in isst_if_def_ioctl() 632 cmd_cb.cmd_size = sizeof(struct isst_if_msr_cmd); in isst_if_def_ioctl()
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | fw.c | 561 size_t cmd_size; in iwl_send_phy_cfg_cmd() local 595 cmd_size = (cmd_ver == 3) ? sizeof(struct iwl_phy_cfg_cmd_v3) : in iwl_send_phy_cfg_cmd() 597 return iwl_mvm_send_cmd_pdu(mvm, cmd_id, 0, cmd_size, &phy_cfg_cmd); in iwl_send_phy_cfg_cmd() 1069 int ret, cmd_size; in iwl_mvm_ppag_send_cmd() local 1071 ret = iwl_fill_ppag_table(&mvm->fwrt, &cmd, &cmd_size); in iwl_mvm_ppag_send_cmd() 1079 0, cmd_size, &cmd); in iwl_mvm_ppag_send_cmd() 1121 int cmd_size, fw_ver; in iwl_mvm_tas_init() local 1179 cmd_size = sizeof(struct iwl_tas_config_cmd_common); in iwl_mvm_tas_init() 1182 cmd_size += sizeof(struct iwl_tas_config_cmd_v3); in iwl_mvm_tas_init() 1184 ret = iwl_mvm_send_cmd_pdu(mvm, cmd_id, 0, cmd_size, &cmd); in iwl_mvm_tas_init() [all …]
|
/linux/tools/testing/nvdimm/test/ |
H A D | nfit.c | 2880 unsigned long mask, cmd_size, offset; in nfit_ctl_test() local 2956 cmd_size = sizeof(cmd.cfg_size); in nfit_ctl_test() 2962 rc = setup_result(cmd.buf, cmd_size); in nfit_ctl_test() 2966 cmd.buf, cmd_size, &cmd_rc); in nfit_ctl_test() 2978 cmd_size = offsetof(struct nd_cmd_ars_status, address); in nfit_ctl_test() 2982 rc = setup_result(cmd.buf, cmd_size); in nfit_ctl_test() 2986 cmd.buf, cmd_size, &cmd_rc); in nfit_ctl_test() 2996 cmd_size = sizeof(cmd.ars_cap); in nfit_ctl_test() 3001 rc = setup_result(cmd.buf + offset, cmd_size - offset); in nfit_ctl_test() 3005 cmd.buf, cmd_size, &cmd_rc); in nfit_ctl_test() [all …]
|
/linux/drivers/net/ethernet/huawei/hinic/ |
H A 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/drivers/gpu/drm/i915/display/ |
H A D | intel_hdcp_gsc_message.c | 465 size_t cmd_size; in intel_hdcp_gsc_verify_mprime() local 477 cmd_size = struct_size(verify_mprime_in, streams, data->k); in intel_hdcp_gsc_verify_mprime() 478 if (cmd_size == SIZE_MAX) in intel_hdcp_gsc_verify_mprime() 481 verify_mprime_in = kzalloc(cmd_size, GFP_KERNEL); in intel_hdcp_gsc_verify_mprime() 488 verify_mprime_in->header.buffer_len = cmd_size - sizeof(verify_mprime_in->header); in intel_hdcp_gsc_verify_mprime() 502 byte = intel_hdcp_gsc_msg_send(i915, (u8 *)verify_mprime_in, cmd_size, in intel_hdcp_gsc_verify_mprime()
|
/linux/drivers/media/dvb-frontends/ |
H A D | mxl5xx.c | 66 u32 cmd_size; member 408 u8 cmd_size = sizeof(abort_tune_cmd); in cfg_demod_abort_tune() local 413 cmd_size, &abort_tune_cmd, cmd_buff); in cfg_demod_abort_tune() 414 return send_command(state, cmd_size + MXL_HYDRA_CMD_HEADER_SIZE, in cfg_demod_abort_tune() 431 u8 cmd_size = sizeof(demod_chan_cfg); in set_parameters() local 483 cmd_size, &demod_chan_cfg, cmd_buff); in set_parameters() 484 stat = send_command(state, cmd_size + MXL_HYDRA_CMD_HEADER_SIZE, in set_parameters() 962 u8 cmd_size = sizeof(struct MXL_HYDRA_SKU_COMMAND_T); in firmware_download() local 1042 cmd_size, &dev_sku_cfg, cmd_buff); in firmware_download() 1043 status = send_command(state, cmd_size + MXL_HYDRA_CMD_HEADER_SIZE, in firmware_download() [all …]
|