Lines Matching refs:param

450 int mqtt_sn_encode_msg(struct net_buf_simple *buf, struct mqtt_sn_param *param)  in mqtt_sn_encode_msg()  argument
459 LOG_DBG("Encoding message of type %d", param->type); in mqtt_sn_encode_msg()
461 switch (param->type) { in mqtt_sn_encode_msg()
463 result = mqtt_sn_encode_msg_searchgw(buf, &param->params.searchgw); in mqtt_sn_encode_msg()
466 result = mqtt_sn_encode_msg_gwinfo(buf, &param->params.gwinfo); in mqtt_sn_encode_msg()
469 result = mqtt_sn_encode_msg_connect(buf, &param->params.connect); in mqtt_sn_encode_msg()
472 result = mqtt_sn_encode_msg_willtopic(buf, &param->params.willtopic); in mqtt_sn_encode_msg()
475 result = mqtt_sn_encode_msg_willmsg(buf, &param->params.willmsg); in mqtt_sn_encode_msg()
478 result = mqtt_sn_encode_msg_register(buf, &param->params.reg); in mqtt_sn_encode_msg()
481 result = mqtt_sn_encode_msg_regack(buf, &param->params.regack); in mqtt_sn_encode_msg()
484 result = mqtt_sn_encode_msg_publish(buf, &param->params.publish); in mqtt_sn_encode_msg()
487 result = mqtt_sn_encode_msg_puback(buf, &param->params.puback); in mqtt_sn_encode_msg()
490 result = mqtt_sn_encode_msg_pubrec(buf, &param->params.pubrec); in mqtt_sn_encode_msg()
493 result = mqtt_sn_encode_msg_pubrel(buf, &param->params.pubrel); in mqtt_sn_encode_msg()
496 result = mqtt_sn_encode_msg_pubcomp(buf, &param->params.pubcomp); in mqtt_sn_encode_msg()
499 result = mqtt_sn_encode_msg_subscribe(buf, &param->params.subscribe); in mqtt_sn_encode_msg()
502 result = mqtt_sn_encode_msg_unsubscribe(buf, &param->params.unsubscribe); in mqtt_sn_encode_msg()
505 result = mqtt_sn_encode_msg_pingreq(buf, &param->params.pingreq); in mqtt_sn_encode_msg()
511 result = mqtt_sn_encode_msg_disconnect(buf, &param->params.disconnect); in mqtt_sn_encode_msg()
514 result = mqtt_sn_encode_msg_willtopicupd(buf, &param->params.willtopicupd); in mqtt_sn_encode_msg()
517 result = mqtt_sn_encode_msg_willmsgupd(buf, &param->params.willmsgupd); in mqtt_sn_encode_msg()
520 LOG_ERR("Unsupported msg type %d", param->type); in mqtt_sn_encode_msg()