Lines Matching refs:cmdarray
1119 struct cmd_ctrl_node *cmdarray; in lbs_allocate_cmd_buffer() local
1123 if (!(cmdarray = kzalloc(bufsize, GFP_KERNEL))) { in lbs_allocate_cmd_buffer()
1128 priv->cmd_array = cmdarray; in lbs_allocate_cmd_buffer()
1132 cmdarray[i].cmdbuf = kzalloc(LBS_CMD_BUFFER_SIZE, GFP_KERNEL); in lbs_allocate_cmd_buffer()
1133 if (!cmdarray[i].cmdbuf) { in lbs_allocate_cmd_buffer()
1141 init_waitqueue_head(&cmdarray[i].cmdwait_q); in lbs_allocate_cmd_buffer()
1142 lbs_cleanup_and_insert_cmd(priv, &cmdarray[i]); in lbs_allocate_cmd_buffer()
1159 struct cmd_ctrl_node *cmdarray; in lbs_free_cmd_buffer() local
1168 cmdarray = priv->cmd_array; in lbs_free_cmd_buffer()
1172 if (cmdarray[i].cmdbuf) { in lbs_free_cmd_buffer()
1173 kfree(cmdarray[i].cmdbuf); in lbs_free_cmd_buffer()
1174 cmdarray[i].cmdbuf = NULL; in lbs_free_cmd_buffer()