Lines Matching refs:cmds
235 for (j = 0; j < ARRAY_SIZE(data->cmds); j++) { in find_cmd_match()
236 if (!data->cmds[j] || data->cmds_len[j] == 0U) { in find_cmd_match()
242 if (strlen(data->cmds[j][i].cmd) == 0 || in find_cmd_match()
243 strncmp(data->match_buf, data->cmds[j][i].cmd, in find_cmd_match()
244 data->cmds[j][i].cmd_len) == 0) { in find_cmd_match()
245 return &data->cmds[j][i]; in find_cmd_match()
258 for (j = 0; j < ARRAY_SIZE(data->cmds); j++) { in find_cmd_direct_match()
259 if (!data->cmds[j] || data->cmds_len[j] == 0U) { in find_cmd_direct_match()
265 if (data->cmds[j][i].direct && in find_cmd_direct_match()
266 (data->cmds[j][i].cmd[0] == '\0' || in find_cmd_direct_match()
267 starts_with(data->rx_buf, data->cmds[j][i].cmd))) { in find_cmd_direct_match()
268 return &data->cmds[j][i]; in find_cmd_direct_match()
480 data->cmds[CMD_HANDLER] = handler_cmds; in modem_cmd_handler_update_cmds()
570 const struct setup_cmd *cmds, size_t cmds_len, in modem_cmd_handler_setup_cmds() argument
578 if (cmds[i].handle_cmd.cmd && cmds[i].handle_cmd.func) { in modem_cmd_handler_setup_cmds()
580 &cmds[i].handle_cmd, 1U, in modem_cmd_handler_setup_cmds()
581 cmds[i].send_cmd, in modem_cmd_handler_setup_cmds()
585 NULL, 0, cmds[i].send_cmd, in modem_cmd_handler_setup_cmds()
593 cmds[i].send_cmd, ret); in modem_cmd_handler_setup_cmds()
604 const struct setup_cmd *cmds, in modem_cmd_handler_setup_cmds_nolock() argument
613 if (cmds[i].handle_cmd.cmd && cmds[i].handle_cmd.func) { in modem_cmd_handler_setup_cmds_nolock()
615 &cmds[i].handle_cmd, 1U, in modem_cmd_handler_setup_cmds_nolock()
616 cmds[i].send_cmd, in modem_cmd_handler_setup_cmds_nolock()
620 NULL, 0, cmds[i].send_cmd, in modem_cmd_handler_setup_cmds_nolock()
628 cmds[i].send_cmd, ret); in modem_cmd_handler_setup_cmds_nolock()
683 data->cmds[CMD_RESP] = config->response_cmds; in modem_cmd_handler_init()
685 data->cmds[CMD_UNSOL] = config->unsol_cmds; in modem_cmd_handler_init()