Home
last modified time | relevance | path

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

12

/drivers/net/wireless/mwifiex/
Duap_cmd.c314 u16 cmd_size = *param_size; in mwifiex_uap_bss_wpa() local
323 cmd_size += sizeof(struct host_cmd_tlv_akmp); in mwifiex_uap_bss_wpa()
334 cmd_size += sizeof(struct host_cmd_tlv_pwk_cipher); in mwifiex_uap_bss_wpa()
346 cmd_size += sizeof(struct host_cmd_tlv_pwk_cipher); in mwifiex_uap_bss_wpa()
357 cmd_size += sizeof(struct host_cmd_tlv_gwk_cipher); in mwifiex_uap_bss_wpa()
368 cmd_size += sizeof(struct mwifiex_ie_types_header) + in mwifiex_uap_bss_wpa()
374 *param_size = cmd_size; in mwifiex_uap_bss_wpa()
420 u16 cmd_size = *param_size; in mwifiex_uap_bss_wep() local
438 cmd_size += sizeof(struct mwifiex_ie_types_header) + 2 + in mwifiex_uap_bss_wep()
445 *param_size = cmd_size; in mwifiex_uap_bss_wep()
[all …]
Dcmdevt.c139 uint16_t cmd_size; in mwifiex_dnld_cmd_to_fw() local
159 cmd_size = le16_to_cpu(host_cmd->size); in mwifiex_dnld_cmd_to_fw()
186 if (cmd_node->cmd_skb->len > cmd_size) in mwifiex_dnld_cmd_to_fw()
191 skb_trim(cmd_node->cmd_skb, cmd_size); in mwifiex_dnld_cmd_to_fw()
192 else if (cmd_node->cmd_skb->len < cmd_size) in mwifiex_dnld_cmd_to_fw()
198 skb_put(cmd_node->cmd_skb, cmd_size - cmd_node->cmd_skb->len); in mwifiex_dnld_cmd_to_fw()
202 le16_to_cpu(*(__le16 *) ((u8 *) host_cmd + S_DS_GEN)), cmd_size, in mwifiex_dnld_cmd_to_fw()
1293 u16 cmd_size = 0; in mwifiex_cmd_enh_power_mode() local
1309 cmd_size = S_DS_GEN + sizeof(psmode_enh->action) + in mwifiex_cmd_enh_power_mode()
1311 tlv = (u8 *) cmd + cmd_size; in mwifiex_cmd_enh_power_mode()
[all …]
Dpcie.h108 u16 cmd_size; member
141 .cmd_size = PCIE_SCRATCH_2_REG,
172 .cmd_size = PCIE_SCRATCH_2_REG,
Dsta_cmd.c787 u16 key_param_len = 0, cmd_size; in mwifiex_cmd_802_11_key_material_v1() local
948 cmd_size = key_param_len + S_DS_GEN + in mwifiex_cmd_802_11_key_material_v1()
952 cmd_size = key_param_len + S_DS_GEN + in mwifiex_cmd_802_11_key_material_v1()
955 cmd->size = cpu_to_le16(cmd_size); in mwifiex_cmd_802_11_key_material_v1()
/drivers/net/wimax/i2400m/
Dusb-fw.c183 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 …]
Dfw.c584 const struct i2400m_bootrom_header *cmd, size_t cmd_size, in i2400m_bm_cmd() argument
593 i2400m, cmd, cmd_size, ack, ack_size); in i2400m_bm_cmd()
598 result = i2400m->bus_bm_cmd_send(i2400m, cmd, cmd_size, flags); in i2400m_bm_cmd()
631 i2400m, cmd, cmd_size, ack, ack_size, (int) result); in i2400m_bm_cmd()
/drivers/uwb/
Dreset.c72 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 …]
Dwhc-rc.c93 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()
Dhwa-rc.c600 int hwarc_cmd(struct uwb_rc *uwb_rc, const struct uwb_rccb *cmd, size_t cmd_size) in hwarc_cmd() argument
607 (void *) cmd, cmd_size, 100 /* FIXME: this is totally arbitrary */); in hwarc_cmd()
Duwb-internal.h96 struct uwb_rccb *cmd, size_t cmd_size,
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_gmr.c51 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()
Dvmwgfx_surface.c213 SVGA3dSize *cmd_size; in vmw_surface_define_encode() local
228 cmd_size = (SVGA3dSize *) cmd; in vmw_surface_define_encode()
231 for (i = 0; i < srf->num_sizes; ++i, cmd_size++, src_size++) { in vmw_surface_define_encode()
232 cmd_size->width = src_size->width; in vmw_surface_define_encode()
233 cmd_size->height = src_size->height; in vmw_surface_define_encode()
234 cmd_size->depth = src_size->depth; in vmw_surface_define_encode()
/drivers/scsi/
Dscsi.c343 if (shost->hostt->cmd_size) in scsi_find_host_cmd_pool()
381 if (hostt->cmd_size) in scsi_alloc_host_cmd_pool()
392 size_t cmd_size = sizeof(struct scsi_cmnd) + hostt->cmd_size; in scsi_get_host_cmd_pool() local
407 pool->cmd_slab = kmem_cache_create(pool->cmd_name, cmd_size, 0, in scsi_get_host_cmd_pool()
428 if (hostt->cmd_size) { in scsi_get_host_cmd_pool()
453 if (hostt->cmd_size) { in scsi_put_host_cmd_pool()
Dsg.c584 int mxsize, cmd_size, k; in sg_write() local
629 cmd_size = sfp->next_cmd_len; in sg_write()
632 cmd_size = COMMAND_SIZE(opcode); /* based on SCSI command group */ in sg_write()
634 cmd_size = 12; in sg_write()
638 "sg_write: scsi opcode=0x%02x, cmd_size=%d\n", (int) opcode, cmd_size)); in sg_write()
640 input_size = count - cmd_size; in sg_write()
650 hp->cmd_len = (unsigned char) cmd_size; in sg_write()
661 hp->dxferp = (char __user *)buf + cmd_size; in sg_write()
669 if (__copy_from_user(cmnd, buf, cmd_size)) in sg_write()
Dscsi_lib.c1832 sg = (void *)cmd + sizeof(struct scsi_cmnd) + shost->hostt->cmd_size; in scsi_mq_prep_fn()
2089 unsigned int cmd_size, sgl_size, tbl_size; in scsi_mq_setup_tags() local
2095 cmd_size = sizeof(struct scsi_cmnd) + shost->hostt->cmd_size + sgl_size; in scsi_mq_setup_tags()
2097 cmd_size += sizeof(struct scsi_data_buffer) + sgl_size; in scsi_mq_setup_tags()
2103 shost->tag_set.cmd_size = cmd_size; in scsi_mq_setup_tags()
Dvirtio_scsi.c750 .cmd_size = sizeof(struct virtio_scsi_cmd),
768 .cmd_size = sizeof(struct virtio_scsi_cmd),
/drivers/uwb/i1480/dfu/
Ddfu.c92 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()
Dusb.c291 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()
Di1480-dfu.h121 int (*cmd)(struct i1480 *, const char *cmd_name, size_t cmd_size);
/drivers/misc/ti-st/
Dst_kim.c293 int cmd_size; in download_firmware() local
341 cmd_size = ((struct bts_action *)ptr)->size; in download_firmware()
353 } while ((wr_room_space < cmd_size) && in download_firmware()
384 if (err != cmd_size) { in download_firmware()
/drivers/net/ethernet/tile/
Dtilepro.c1722 size_t cmd_size = LEPP_TSO_CMD_SIZE(num_frags, sh_len); in tile_net_tx_tso() local
1790 cmd_next = cmd_tail + cmd_size; in tile_net_tx_tso()
1800 memcpy(&eq->cmds[cmd_tail], cmd, cmd_size); in tile_net_tx_tso()
1871 unsigned int cmd_size = sizeof(lepp_cmd_t); in tile_net_tx() local
1973 cmd_next = cmd_tail + cmd_size; in tile_net_tx()
/drivers/target/
Dtarget_core_user.c239 static bool is_ring_space_avail(struct tcmu_dev *udev, size_t cmd_size, size_t data_needed) in is_ring_space_avail() argument
254 if (head_to_end(cmd_head, udev->cmdr_size) >= cmd_size) in is_ring_space_avail()
255 cmd_needed = cmd_size; in is_ring_space_avail()
257 cmd_needed = cmd_size + head_to_end(cmd_head, udev->cmdr_size); in is_ring_space_avail()
/drivers/crypto/amcc/
Dcrypto4xx_sa.h48 u32 cmd_size:4; member
/drivers/net/wireless/iwlwifi/pcie/
Dtx.c1217 u16 copy_size, cmd_size, scratch_size; in iwl_pcie_enqueue_hcmd() local
1225 cmd_size = sizeof(out_cmd->hdr); in iwl_pcie_enqueue_hcmd()
1279 cmd_size += cmd->len[i]; in iwl_pcie_enqueue_hcmd()
1366 cmd_size, q->write_ptr, idx, trans_pcie->cmd_queue); in iwl_pcie_enqueue_hcmd()
1420 trace_iwlwifi_dev_hcmd(trans->dev, cmd, cmd_size, &out_cmd->hdr); in iwl_pcie_enqueue_hcmd()
/drivers/net/wireless/iwlwifi/dvm/
Dsta.c996 size_t cmd_size = sizeof(struct iwl_wep_cmd); in iwl_send_static_wepkey_cmd() local
1004 memset(wep_cmd, 0, cmd_size + in iwl_send_static_wepkey_cmd()
1024 cmd_size += sizeof(struct iwl_wep_key) * WEP_KEYS_MAX; in iwl_send_static_wepkey_cmd()
1026 cmd.len[0] = cmd_size; in iwl_send_static_wepkey_cmd()

12