Home
last modified time | relevance | path

Searched refs:cmdarray (Results 1 – 2 of 2) sorted by relevance

/drivers/net/wireless/marvell/libertas_tf/
Dcmd.c446 struct cmd_ctrl_node *cmdarray; in lbtf_allocate_cmd_buffer() local
452 cmdarray = kzalloc(bufsize, GFP_KERNEL); in lbtf_allocate_cmd_buffer()
453 if (!cmdarray) { in lbtf_allocate_cmd_buffer()
458 priv->cmd_array = cmdarray; in lbtf_allocate_cmd_buffer()
462 cmdarray[i].cmdbuf = kzalloc(LBS_CMD_BUFFER_SIZE, GFP_KERNEL); in lbtf_allocate_cmd_buffer()
463 if (!cmdarray[i].cmdbuf) { in lbtf_allocate_cmd_buffer()
471 init_waitqueue_head(&cmdarray[i].cmdwait_q); in lbtf_allocate_cmd_buffer()
472 lbtf_cleanup_and_insert_cmd(priv, &cmdarray[i]); in lbtf_allocate_cmd_buffer()
491 struct cmd_ctrl_node *cmdarray; in lbtf_free_cmd_buffer() local
502 cmdarray = priv->cmd_array; in lbtf_free_cmd_buffer()
[all …]
/drivers/net/wireless/marvell/libertas/
Dcmd.c1118 struct cmd_ctrl_node *cmdarray; in lbs_allocate_cmd_buffer() local
1122 if (!(cmdarray = kzalloc(bufsize, GFP_KERNEL))) { in lbs_allocate_cmd_buffer()
1127 priv->cmd_array = cmdarray; in lbs_allocate_cmd_buffer()
1131 cmdarray[i].cmdbuf = kzalloc(LBS_CMD_BUFFER_SIZE, GFP_KERNEL); in lbs_allocate_cmd_buffer()
1132 if (!cmdarray[i].cmdbuf) { in lbs_allocate_cmd_buffer()
1140 init_waitqueue_head(&cmdarray[i].cmdwait_q); in lbs_allocate_cmd_buffer()
1141 lbs_cleanup_and_insert_cmd(priv, &cmdarray[i]); in lbs_allocate_cmd_buffer()
1158 struct cmd_ctrl_node *cmdarray; in lbs_free_cmd_buffer() local
1167 cmdarray = priv->cmd_array; in lbs_free_cmd_buffer()
1171 if (cmdarray[i].cmdbuf) { in lbs_free_cmd_buffer()
[all …]