Home
last modified time | relevance | path

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

/Linux-v5.4/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 …]
/Linux-v5.4/drivers/net/wireless/marvell/libertas/
Dcmd.c1119 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()
[all …]