Lines Matching defs:buf
688 static int expand_sysex_data(const uint32_t *data, uint8_t *buf,
696 buf[size] = (*data >> offset) & 0x7f;
708 static int expand_sysex7(const uint32_t *ump, uint8_t *buf, size_t maxlen,
723 *filled = expand_sysex_data(ump, buf, maxlen, bytes, 8);
728 static int expand_sysex8(const uint32_t *ump, uint8_t *buf, size_t maxlen,
745 *filled = expand_sysex_data(ump, buf, maxlen, bytes - 1, 0);
753 * \param buf buffer point to fill sysex bytes
758 int snd_ump_msg_sysex_expand(const uint32_t *ump, uint8_t *buf, size_t maxlen,
763 return expand_sysex7(ump, buf, maxlen, filled);
765 return expand_sysex8(ump, buf, maxlen, filled);