/drivers/net/wireless/mwifiex/ |
D | uap_cmd.c | 336 u16 cmd_size = *param_size; in mwifiex_uap_bss_wpa() local 345 cmd_size += sizeof(struct host_cmd_tlv_akmp); in mwifiex_uap_bss_wpa() 356 cmd_size += sizeof(struct host_cmd_tlv_pwk_cipher); in mwifiex_uap_bss_wpa() 368 cmd_size += sizeof(struct host_cmd_tlv_pwk_cipher); in mwifiex_uap_bss_wpa() 379 cmd_size += sizeof(struct host_cmd_tlv_gwk_cipher); in mwifiex_uap_bss_wpa() 390 cmd_size += sizeof(struct mwifiex_ie_types_header) + in mwifiex_uap_bss_wpa() 396 *param_size = cmd_size; in mwifiex_uap_bss_wpa() 444 u16 cmd_size = *param_size; in mwifiex_uap_bss_wep() local 462 cmd_size += sizeof(struct mwifiex_ie_types_header) + 2 + in mwifiex_uap_bss_wep() 469 *param_size = cmd_size; in mwifiex_uap_bss_wep() [all …]
|
D | cmdevt.c | 141 uint16_t cmd_size; in mwifiex_dnld_cmd_to_fw() local 162 cmd_size = le16_to_cpu(host_cmd->size); in mwifiex_dnld_cmd_to_fw() 187 if (cmd_node->cmd_skb->len > cmd_size) in mwifiex_dnld_cmd_to_fw() 192 skb_trim(cmd_node->cmd_skb, cmd_size); in mwifiex_dnld_cmd_to_fw() 193 else if (cmd_node->cmd_skb->len < cmd_size) in mwifiex_dnld_cmd_to_fw() 199 skb_put(cmd_node->cmd_skb, cmd_size - cmd_node->cmd_skb->len); in mwifiex_dnld_cmd_to_fw() 205 cmd_size, le16_to_cpu(host_cmd->seq_num)); in mwifiex_dnld_cmd_to_fw() 206 mwifiex_dbg_dump(adapter, CMD_D, "cmd buffer:", host_cmd, cmd_size); in mwifiex_dnld_cmd_to_fw() 1326 u16 cmd_size = 0; in mwifiex_cmd_enh_power_mode() local 1342 cmd_size = S_DS_GEN + sizeof(psmode_enh->action) + in mwifiex_cmd_enh_power_mode() [all …]
|
D | pcie.h | 110 u16 cmd_size; member 143 .cmd_size = PCIE_SCRATCH_2_REG, 174 .cmd_size = PCIE_SCRATCH_2_REG, 208 .cmd_size = PCIE_SCRATCH_2_REG,
|
/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 …]
|
/drivers/uwb/ |
D | reset.c | 72 struct uwb_rccb *cmd, size_t cmd_size, in uwb_rc_cmd_async() argument 88 needtofree = rc->filter_cmd(rc, &cmd, &cmd_size); in uwb_rc_cmd_async() 104 result = rc->cmd(rc, cmd, cmd_size); in uwb_rc_cmd_async() 172 struct uwb_rccb *cmd, size_t cmd_size, in __uwb_rc_cmd() argument 185 result = uwb_rc_cmd_async(rc, cmd_name, cmd, cmd_size, in __uwb_rc_cmd() 228 struct uwb_rccb *cmd, size_t cmd_size, in uwb_rc_cmd() argument 235 cmd, cmd_size, reply, reply_size, in uwb_rc_cmd() 271 struct uwb_rccb *cmd, size_t cmd_size, in uwb_rc_vcmd() argument 275 return __uwb_rc_cmd(rc, cmd_name, cmd, cmd_size, NULL, 0, in uwb_rc_vcmd() 296 size_t cmd_size = sizeof(*cmd); in uwb_rc_reset() local [all …]
|
D | whc-rc.c | 93 const struct uwb_rccb *cmd, size_t cmd_size) in whcrc_cmd() argument 100 if (cmd_size >= 4096) in whcrc_cmd() 122 memmove(whcrc->cmd_buf, cmd, cmd_size); in whcrc_cmd() 128 le_writel(urccmd | URCCMD_ACTIVE | URCCMD_IWR | cmd_size, in whcrc_cmd()
|
/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, in vmw_view_create() 180 memcpy(cmd, &view->cmd, view->cmd_size); in vmw_view_create() 185 vmw_fifo_commit(res->dev_priv, view->cmd_size); in vmw_view_create() 290 size_t size = offsetof(struct vmw_view, cmd) + view->cmd_size; in vmw_view_res_free() 320 size_t cmd_size, in vmw_view_add() argument 335 if (cmd_size != vmw_view_define_sizes[view_type] + in vmw_view_add() 346 size = offsetof(struct vmw_view, cmd) + cmd_size; in vmw_view_add() 368 view->cmd_size = cmd_size; in vmw_view_add() 372 memcpy(&view->cmd, cmd, cmd_size); in vmw_view_add()
|
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_binding.c | 760 size_t cmd_size, view_id_size; in vmw_emit_set_sr() local 770 cmd_size = sizeof(*cmd) + view_id_size; in vmw_emit_set_sr() 771 cmd = vmw_fifo_reserve_dx(ctx->dev_priv, cmd_size, ctx->id); in vmw_emit_set_sr() 785 vmw_fifo_commit(ctx->dev_priv, cmd_size); in vmw_emit_set_sr() 804 size_t cmd_size, view_id_size; in vmw_emit_set_rt() local 809 cmd_size = sizeof(*cmd) + view_id_size; in vmw_emit_set_rt() 810 cmd = vmw_fifo_reserve_dx(ctx->dev_priv, cmd_size, ctx->id); in vmw_emit_set_rt() 827 vmw_fifo_commit(ctx->dev_priv, cmd_size); in vmw_emit_set_rt() 888 size_t cmd_size, so_target_size; in vmw_emit_set_so() local 896 cmd_size = sizeof(*cmd) + so_target_size; in vmw_emit_set_so() [all …]
|
D | vmwgfx_so.h | 143 size_t cmd_size,
|
D | vmwgfx_surface.c | 217 SVGA3dSize *cmd_size; in vmw_surface_define_encode() local 232 cmd_size = (SVGA3dSize *) cmd; in vmw_surface_define_encode() 235 for (i = 0; i < srf->num_sizes; ++i, cmd_size++, src_size++) { in vmw_surface_define_encode() 236 cmd_size->width = src_size->width; in vmw_surface_define_encode() 237 cmd_size->height = src_size->height; in vmw_surface_define_encode() 238 cmd_size->depth = src_size->depth; in vmw_surface_define_encode()
|
/drivers/char/tpm/ |
D | tpm_crb.c | 70 u32 cmd_size; member 166 if (len > le32_to_cpu(ioread32(&priv->cca->cmd_size))) { in crb_send() 170 (size_t) le32_to_cpu(ioread32(&priv->cca->cmd_size))); in crb_send() 282 ioread32(&priv->cca->cmd_size)); in crb_acpi_add()
|
/drivers/scsi/ |
D | scsi.c | 297 if (shost->hostt->cmd_size) in scsi_find_host_cmd_pool() 335 if (hostt->cmd_size) in scsi_alloc_host_cmd_pool() 346 size_t cmd_size = sizeof(struct scsi_cmnd) + hostt->cmd_size; in scsi_get_host_cmd_pool() local 361 pool->cmd_slab = kmem_cache_create(pool->cmd_name, cmd_size, 0, in scsi_get_host_cmd_pool() 382 if (hostt->cmd_size) { in scsi_get_host_cmd_pool() 407 if (hostt->cmd_size) { in scsi_put_host_cmd_pool()
|
D | sg.c | 622 int mxsize, cmd_size, k; in sg_write() local 669 cmd_size = sfp->next_cmd_len; in sg_write() 672 cmd_size = COMMAND_SIZE(opcode); /* based on SCSI command group */ in sg_write() 674 cmd_size = 12; in sg_write() 678 "sg_write: scsi opcode=0x%02x, cmd_size=%d\n", (int) opcode, cmd_size)); in sg_write() 680 input_size = count - cmd_size; in sg_write() 690 hp->cmd_len = (unsigned char) cmd_size; in sg_write() 701 hp->dxferp = (char __user *)buf + cmd_size; in sg_write() 709 if (__copy_from_user(cmnd, buf, cmd_size)) { in sg_write()
|
D | scsi_lib.c | 1932 sg = (void *)cmd + sizeof(struct scsi_cmnd) + shost->hostt->cmd_size; in scsi_mq_prep_fn() 2190 unsigned int cmd_size, sgl_size, tbl_size; in scsi_mq_setup_tags() local 2196 cmd_size = sizeof(struct scsi_cmnd) + shost->hostt->cmd_size + sgl_size; in scsi_mq_setup_tags() 2198 cmd_size += sizeof(struct scsi_data_buffer) + sgl_size; in scsi_mq_setup_tags() 2204 shost->tag_set.cmd_size = cmd_size; in scsi_mq_setup_tags()
|
/drivers/firmware/ |
D | qcom_scm-32.c | 109 static struct qcom_scm_command *alloc_qcom_scm_command(size_t cmd_size, size_t resp_size) in alloc_qcom_scm_command() argument 112 size_t len = sizeof(*cmd) + sizeof(struct qcom_scm_response) + cmd_size + in alloc_qcom_scm_command() 121 cmd->resp_hdr_offset = cpu_to_le32(offset + cmd_size); in alloc_qcom_scm_command()
|
/drivers/uwb/i1480/dfu/ |
D | dfu.c | 92 ssize_t i1480_cmd(struct i1480 *i1480, const char *cmd_name, size_t cmd_size, in i1480_cmd() argument 108 result = i1480->cmd(i1480, cmd_name, cmd_size); in i1480_cmd()
|
D | usb.c | 291 int i1480_usb_cmd(struct i1480 *i1480, const char *cmd_name, size_t cmd_size) in i1480_usb_cmd() argument 320 cmd, cmd_size, in i1480_usb_cmd()
|
D | i1480-dfu.h | 121 int (*cmd)(struct i1480 *, const char *cmd_name, size_t cmd_size);
|
/drivers/nvdimm/ |
D | dimm_devs.c | 162 size_t cmd_size; in nvdimm_set_config_data() local 170 cmd_size = sizeof(*cmd) + cmd->in_length + sizeof(u32); in nvdimm_set_config_data() 171 status = ((void *) cmd) + cmd_size - sizeof(u32); in nvdimm_set_config_data() 174 ND_CMD_SET_CONFIG_DATA, cmd, cmd_size); in nvdimm_set_config_data()
|
/drivers/misc/ti-st/ |
D | st_kim.c | 294 int cmd_size; in download_firmware() local 342 cmd_size = ((struct bts_action *)ptr)->size; in download_firmware() 354 } while ((wr_room_space < cmd_size) && in download_firmware() 385 if (err != cmd_size) { in download_firmware()
|
/drivers/net/wireless/iwlwifi/pcie/ |
D | tx.c | 1337 u16 copy_size, cmd_size, scratch_size; in iwl_pcie_enqueue_hcmd() local 1353 cmd_size = sizeof(struct iwl_cmd_header_wide); in iwl_pcie_enqueue_hcmd() 1356 cmd_size = sizeof(struct iwl_cmd_header); in iwl_pcie_enqueue_hcmd() 1411 cmd_size += cmd->len[i]; in iwl_pcie_enqueue_hcmd() 1452 cpu_to_le16(cmd_size - in iwl_pcie_enqueue_hcmd() 1515 cmd_size, q->write_ptr, idx, trans_pcie->cmd_queue); in iwl_pcie_enqueue_hcmd() 1571 trace_iwlwifi_dev_hcmd(trans->dev, cmd, cmd_size, &out_cmd->hdr_wide); in iwl_pcie_enqueue_hcmd()
|
/drivers/net/ethernet/tile/ |
D | tilepro.c | 1719 size_t cmd_size = LEPP_TSO_CMD_SIZE(num_frags, sh_len); in tile_net_tx_tso() local 1787 cmd_next = cmd_tail + cmd_size; in tile_net_tx_tso() 1797 memcpy(&eq->cmds[cmd_tail], cmd, cmd_size); in tile_net_tx_tso() 1868 unsigned int cmd_size = sizeof(lepp_cmd_t); in tile_net_tx() local 1970 cmd_next = cmd_tail + cmd_size; in tile_net_tx()
|
/drivers/target/ |
D | target_core_user.c | 338 static bool is_ring_space_avail(struct tcmu_dev *udev, size_t cmd_size, size_t data_needed) in is_ring_space_avail() argument 353 if (head_to_end(cmd_head, udev->cmdr_size) >= cmd_size) in is_ring_space_avail() 354 cmd_needed = cmd_size; in is_ring_space_avail() 356 cmd_needed = cmd_size + head_to_end(cmd_head, udev->cmdr_size); in is_ring_space_avail()
|
/drivers/crypto/amcc/ |
D | crypto4xx_sa.h | 48 u32 cmd_size:4; member
|