Lines Matching refs:cmd_array
391 struct cmd_ctrl_node *cmd_array; in mwifiex_alloc_cmd_buffer() local
395 cmd_array = kcalloc(MWIFIEX_NUM_OF_CMD_BUFFER, in mwifiex_alloc_cmd_buffer()
397 if (!cmd_array) in mwifiex_alloc_cmd_buffer()
400 adapter->cmd_pool = cmd_array; in mwifiex_alloc_cmd_buffer()
404 cmd_array[i].skb = dev_alloc_skb(MWIFIEX_SIZE_OF_CMD_BUFFER); in mwifiex_alloc_cmd_buffer()
405 if (!cmd_array[i].skb) { in mwifiex_alloc_cmd_buffer()
413 mwifiex_insert_cmd_to_free_q(adapter, &cmd_array[i]); in mwifiex_alloc_cmd_buffer()
426 struct cmd_ctrl_node *cmd_array; in mwifiex_free_cmd_buffer() local
436 cmd_array = adapter->cmd_pool; in mwifiex_free_cmd_buffer()
440 if (cmd_array[i].skb) { in mwifiex_free_cmd_buffer()
443 dev_kfree_skb_any(cmd_array[i].skb); in mwifiex_free_cmd_buffer()
445 if (!cmd_array[i].resp_skb) in mwifiex_free_cmd_buffer()
450 cmd_array[i].resp_skb); in mwifiex_free_cmd_buffer()
452 dev_kfree_skb_any(cmd_array[i].resp_skb); in mwifiex_free_cmd_buffer()