Lines Matching refs:modbus_context
61 static struct modbus_context mb_ctx_tbl[] = {
70 struct modbus_context *ctx; in modbus_rx_handler()
72 ctx = CONTAINER_OF(item, struct modbus_context, server_work); in modbus_rx_handler()
117 void modbus_tx_adu(struct modbus_context *ctx) in modbus_tx_adu()
138 int modbus_tx_wait_rx_adu(struct modbus_context *ctx) in modbus_tx_wait_rx_adu()
152 struct modbus_context *modbus_get_context(const uint8_t iface) in modbus_get_context()
154 struct modbus_context *ctx; in modbus_get_context()
171 int modbus_iface_get_by_ctx(const struct modbus_context *ctx) in modbus_iface_get_by_ctx()
193 static struct modbus_context *modbus_init_iface(const uint8_t iface) in modbus_init_iface()
195 struct modbus_context *ctx; in modbus_init_iface()
216 static int modbus_user_fc_init(struct modbus_context *ctx, struct modbus_iface_param param) in modbus_user_fc_init()
226 struct modbus_context *ctx = NULL; in modbus_init_server()
299 struct modbus_context *ctx = modbus_get_context(iface); in modbus_register_user_fc()
321 struct modbus_context *ctx = NULL; in modbus_init_client()
378 struct modbus_context *ctx; in modbus_disable()