Lines Matching refs:cmdarray
1192 struct cmd_ctrl_node *cmdarray; in lbs_allocate_cmd_buffer() local
1198 if (!(cmdarray = kzalloc(bufsize, GFP_KERNEL))) { in lbs_allocate_cmd_buffer()
1203 priv->cmd_array = cmdarray; in lbs_allocate_cmd_buffer()
1207 cmdarray[i].cmdbuf = kzalloc(LBS_CMD_BUFFER_SIZE, GFP_KERNEL); in lbs_allocate_cmd_buffer()
1208 if (!cmdarray[i].cmdbuf) { in lbs_allocate_cmd_buffer()
1216 init_waitqueue_head(&cmdarray[i].cmdwait_q); in lbs_allocate_cmd_buffer()
1217 lbs_cleanup_and_insert_cmd(priv, &cmdarray[i]); in lbs_allocate_cmd_buffer()
1235 struct cmd_ctrl_node *cmdarray; in lbs_free_cmd_buffer() local
1246 cmdarray = priv->cmd_array; in lbs_free_cmd_buffer()
1250 if (cmdarray[i].cmdbuf) { in lbs_free_cmd_buffer()
1251 kfree(cmdarray[i].cmdbuf); in lbs_free_cmd_buffer()
1252 cmdarray[i].cmdbuf = NULL; in lbs_free_cmd_buffer()