Lines Matching refs:reg_qty
314 uint16_t reg_qty; in mbs_fc03_hreg_read() local
323 reg_qty = sys_get_be16(&ctx->rx_adu.data[2]); in mbs_fc03_hreg_read()
325 if (reg_qty == 0 || reg_qty > regs_limit) { in mbs_fc03_hreg_read()
327 reg_qty, regs_limit); in mbs_fc03_hreg_read()
333 num_bytes = (uint8_t)(reg_qty * sizeof(uint16_t)); in mbs_fc03_hreg_read()
364 while (reg_qty > 0) { in mbs_fc03_hreg_read()
377 reg_qty--; in mbs_fc03_hreg_read()
392 reg_qty -= 2; in mbs_fc03_hreg_read()
426 uint16_t reg_qty; in mbs_fc04_inreg_read() local
435 reg_qty = sys_get_be16(&ctx->rx_adu.data[2]); in mbs_fc04_inreg_read()
437 if (reg_qty == 0 || reg_qty > regs_limit) { in mbs_fc04_inreg_read()
439 reg_qty, regs_limit); in mbs_fc04_inreg_read()
445 num_bytes = (uint8_t)(reg_qty * sizeof(uint16_t)); in mbs_fc04_inreg_read()
476 while (reg_qty > 0) { in mbs_fc04_inreg_read()
489 reg_qty--; in mbs_fc04_inreg_read()
504 reg_qty -= 2; in mbs_fc04_inreg_read()
837 uint16_t reg_qty; in mbs_fc16_hregs_write() local
846 reg_qty = sys_get_be16(&ctx->rx_adu.data[2]); in mbs_fc16_hregs_write()
850 if (reg_qty == 0 || reg_qty > regs_limit) { in mbs_fc16_hregs_write()
883 if ((num_bytes / reg_qty) != sizeof(uint16_t)) { in mbs_fc16_hregs_write()
892 for (uint16_t reg_cntr = 0; reg_cntr < reg_qty;) { in mbs_fc16_hregs_write()
923 sys_put_be16(reg_qty, &ctx->tx_adu.data[2]); in mbs_fc16_hregs_write()