Lines Matching refs:mctx
21 static struct modem_context mctx; variable
184 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, cmd, ARRAY_SIZE(cmd), buf, in offload_connect()
261 ret = modem_cmd_send_nolock(&mctx.iface, &mctx.cmd_handler, NULL, 0U, send_buf, NULL, in offload_sendto()
276 mctx.iface.write(&mctx.iface, buf, len); in offload_sendto()
277 mctx.iface.write(&mctx.iface, &ctrlz, 1); in offload_sendto()
422 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, data_cmd, ARRAY_SIZE(data_cmd), in offload_recvfrom()
507 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, NULL, 0U, buf, &mdata.sem_response, in socket_close()
737 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, cmd, ARRAY_SIZE(cmd), sendbuf, in offload_getaddrinfo()
813 modem_iface_uart_rx_wait(&mctx.iface, K_FOREVER); in modem_rx()
815 modem_cmd_handler_process(&mctx.cmd_handler, &mctx.iface); in modem_rx()
1115 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, cmd, ARRAY_SIZE(cmd), send_cmd, in modem_rssi_query_work()
1167 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, cgatt_cmd, in modem_pdp_activate()
1196 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, cmds, ARRAY_SIZE(cmds), buf, in modem_pdp_activate()
1213 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, NULL, 0, "AT+CNCFG=0,0", in modem_pdp_activate()
1223 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, NULL, 0, "AT+CNACT=0,1", in modem_pdp_activate()
1305 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, NULL, 0U, "AT", in modem_autobaud()
1311 return modem_cmd_send(&mctx.iface, &mctx.cmd_handler, NULL, 0U, in modem_autobaud()
1557 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, cmds, ARRAY_SIZE(cmds), "AT+CGNSINF", in mdm_sim7080_query_gnss()
1589 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, NULL, 0U, "AT+CGNSCOLD", in mdm_sim7080_start_gnss()
1675 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, cmds, ARRAY_SIZE(cmds), buffer, in mdm_sim7080_ftp_get_read()
1702 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, NULL, 0U, "AT+FTPCID=0", in mdm_sim7080_ftp_get_start()
1716 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, NULL, 0U, buffer, &mdata.sem_response, in mdm_sim7080_ftp_get_start()
1730 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, NULL, 0U, buffer, &mdata.sem_response, in mdm_sim7080_ftp_get_start()
1744 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, NULL, 0U, buffer, &mdata.sem_response, in mdm_sim7080_ftp_get_start()
1758 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, NULL, 0U, buffer, &mdata.sem_response, in mdm_sim7080_ftp_get_start()
1772 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, NULL, 0U, buffer, &mdata.sem_response, in mdm_sim7080_ftp_get_start()
1786 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, NULL, 0U, buffer, &mdata.sem_response, in mdm_sim7080_ftp_get_start()
1799 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, NULL, 0U, "AT+FTPGET=1", in mdm_sim7080_ftp_get_start()
2163 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, cmds, ARRAY_SIZE(cmds), "AT+CMGL=4", in mdm_sim7080_read_sms()
2182 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, NULL, 0, buf, &mdata.sem_response, in mdm_sim7080_delete_sms()
2208 ret = modem_cmd_handler_setup_cmds(&mctx.iface, &mctx.cmd_handler, setup_cmds, in modem_setup()
2269 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, NULL, 0U, "AT", &mdata.sem_response, in mdm_sim7080_power_off()
2282 ret = modem_cmd_send(&mctx.iface, &mctx.cmd_handler, NULL, 0U, "AT", in mdm_sim7080_power_off()
2367 ret = modem_cmd_handler_init(&mctx.cmd_handler, &mdata.cmd_handler_data, in modem_init()
2381 ret = modem_iface_uart_init(&mctx.iface, &mdata.iface_data, &uart_config); in modem_init()
2394 mctx.data_manufacturer = mdata.mdm_manufacturer; in modem_init()
2395 mctx.data_model = mdata.mdm_model; in modem_init()
2396 mctx.data_revision = mdata.mdm_revision; in modem_init()
2397 mctx.data_imei = mdata.mdm_imei; in modem_init()
2399 mctx.data_imsi = mdata.mdm_imsi; in modem_init()
2400 mctx.data_iccid = mdata.mdm_iccid; in modem_init()
2402 mctx.data_rssi = &mdata.mdm_rssi; in modem_init()
2410 mctx.driver_data = &mdata; in modem_init()
2414 ret = modem_context_register(&mctx); in modem_init()