Lines Matching refs:param
216 static int modbus_user_fc_init(struct modbus_context *ctx, struct modbus_iface_param param) in modbus_user_fc_init() argument
224 int modbus_init_server(const int iface, struct modbus_iface_param param) in modbus_init_server() argument
235 if (param.server.user_cb == NULL) { in modbus_init_server()
249 if (modbus_user_fc_init(ctx, param) != 0) { in modbus_init_server()
255 switch (param.mode) { in modbus_init_server()
259 modbus_serial_init(ctx, param) != 0) { in modbus_init_server()
267 modbus_raw_init(ctx, param) != 0) { in modbus_init_server()
279 ctx->unit_id = param.server.unit_id; in modbus_init_server()
280 ctx->mbs_user_cb = param.server.user_cb; in modbus_init_server()
319 int modbus_init_client(const int iface, struct modbus_iface_param param) in modbus_init_client() argument
338 switch (param.mode) { in modbus_init_client()
342 modbus_serial_init(ctx, param) != 0) { in modbus_init_client()
350 modbus_raw_init(ctx, param) != 0) { in modbus_init_client()
364 ctx->rxwait_to = param.rx_timeout; in modbus_init_client()