Home
last modified time | relevance | path

Searched refs:cmd_array (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/drivers/nfc/st95hf/
Dcore.c119 static const struct cmd cmd_array[] = { variable
252 if (cmd_array[cmd].cmd_len > MAX_CMD_LEN) in st95hf_send_recv_cmd()
254 if (cmd_array[cmd].no_cmd_params < no_modif) in st95hf_send_recv_cmd()
260 spi_cmd_buffer[1] = cmd_array[cmd].cmd_id; in st95hf_send_recv_cmd()
261 spi_cmd_buffer[2] = cmd_array[cmd].no_cmd_params; in st95hf_send_recv_cmd()
263 memcpy(&spi_cmd_buffer[3], cmd_array[cmd].cmd_params, in st95hf_send_recv_cmd()
267 if (list_array[i].param_offset >= cmd_array[cmd].no_cmd_params) in st95hf_send_recv_cmd()
275 cmd_array[cmd].cmd_len, in st95hf_send_recv_cmd()
276 cmd_array[cmd].req); in st95hf_send_recv_cmd()
282 if (cmd_array[cmd].req == SYNC && recv_res) { in st95hf_send_recv_cmd()
[all …]
/linux-6.12.1/drivers/net/wireless/marvell/mwifiex/
Dcmdevt.c391 struct cmd_ctrl_node *cmd_array; in mwifiex_alloc_cmd_buffer() local
395 cmd_array = kcalloc(MWIFIEX_NUM_OF_CMD_BUFFER, in mwifiex_alloc_cmd_buffer()
397 if (!cmd_array) in mwifiex_alloc_cmd_buffer()
400 adapter->cmd_pool = cmd_array; in mwifiex_alloc_cmd_buffer()
404 cmd_array[i].skb = dev_alloc_skb(MWIFIEX_SIZE_OF_CMD_BUFFER); in mwifiex_alloc_cmd_buffer()
405 if (!cmd_array[i].skb) { in mwifiex_alloc_cmd_buffer()
413 mwifiex_insert_cmd_to_free_q(adapter, &cmd_array[i]); in mwifiex_alloc_cmd_buffer()
426 struct cmd_ctrl_node *cmd_array; in mwifiex_free_cmd_buffer() local
436 cmd_array = adapter->cmd_pool; in mwifiex_free_cmd_buffer()
440 if (cmd_array[i].skb) { in mwifiex_free_cmd_buffer()
[all …]
/linux-6.12.1/drivers/net/wireless/marvell/libertas_tf/
Dcmd.c458 priv->cmd_array = cmdarray; in lbtf_allocate_cmd_buffer()
497 if (priv->cmd_array == NULL) { in lbtf_free_cmd_buffer()
502 cmdarray = priv->cmd_array; in lbtf_free_cmd_buffer()
511 kfree(priv->cmd_array); in lbtf_free_cmd_buffer()
512 priv->cmd_array = NULL; in lbtf_free_cmd_buffer()
Dlibertas_tf.h209 struct cmd_ctrl_node *cmd_array; member
/linux-6.12.1/drivers/net/wireless/marvell/libertas/
Dcmd.c1127 priv->cmd_array = cmdarray; in lbs_allocate_cmd_buffer()
1152 kfree(priv->cmd_array); in lbs_allocate_cmd_buffer()
1153 priv->cmd_array = NULL; in lbs_allocate_cmd_buffer()
1171 if (priv->cmd_array == NULL) { in lbs_free_cmd_buffer()
1176 cmdarray = priv->cmd_array; in lbs_free_cmd_buffer()
1187 if (priv->cmd_array) { in lbs_free_cmd_buffer()
1188 kfree(priv->cmd_array); in lbs_free_cmd_buffer()
1189 priv->cmd_array = NULL; in lbs_free_cmd_buffer()
Ddev.h127 struct cmd_ctrl_node *cmd_array; member