Lines Matching refs:cmdarray
446 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()
506 kfree(cmdarray[i].cmdbuf); in lbtf_free_cmd_buffer()
507 cmdarray[i].cmdbuf = NULL; in lbtf_free_cmd_buffer()