Lines Matching refs:cmd_skb
50 cmd_node->cmd_skb = cmd_node->skb; in mwifiex_init_cmd_node()
98 if (cmd_node->cmd_skb) in mwifiex_clean_cmd_node()
99 skb_trim(cmd_node->cmd_skb, 0); in mwifiex_clean_cmd_node()
148 host_cmd = (struct host_cmd_ds_command *) (cmd_node->cmd_skb->data); 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()
210 skb_push(cmd_node->cmd_skb, MWIFIEX_TYPE_LEN); in mwifiex_dnld_cmd_to_fw()
211 memcpy(cmd_node->cmd_skb->data, &tmp, MWIFIEX_TYPE_LEN); in mwifiex_dnld_cmd_to_fw()
215 cmd_node->cmd_skb, NULL); in mwifiex_dnld_cmd_to_fw()
216 skb_pull(cmd_node->cmd_skb, MWIFIEX_TYPE_LEN); in mwifiex_dnld_cmd_to_fw()
218 cmd_node->cmd_skb = NULL; in mwifiex_dnld_cmd_to_fw()
220 skb_push(cmd_node->cmd_skb, INTF_HEADER_LEN); in mwifiex_dnld_cmd_to_fw()
222 cmd_node->cmd_skb, NULL); in mwifiex_dnld_cmd_to_fw()
223 skb_pull(cmd_node->cmd_skb, INTF_HEADER_LEN); in mwifiex_dnld_cmd_to_fw()
556 if (!cmd_node->cmd_skb) { in mwifiex_send_cmd()
562 memset(skb_put(cmd_node->cmd_skb, sizeof(struct host_cmd_ds_command)), in mwifiex_send_cmd()
565 cmd_ptr = (struct host_cmd_ds_command *) (cmd_node->cmd_skb->data); in mwifiex_send_cmd()
646 struct host_cmd_ds_command *host_cmd = (void *)cmd_node->cmd_skb->data; in mwifiex_recycle_cmd_node()
672 host_cmd = (struct host_cmd_ds_command *) (cmd_node->cmd_skb->data); in mwifiex_insert_cmd_to_pending_q()
745 host_cmd = (struct host_cmd_ds_command *) (cmd_node->cmd_skb->data); in mwifiex_exec_next_cmd()