Lines Matching defs:len
79 int len = -1;
95 len = priv->device[i].compdesc.mkstrdesc(id, buf);
98 return len;
111 int16_t composite_mkcfgdesc_sub(uint8_t *buf, int16_t len)
119 buf_tmp = (uint8_t *)malloc(len);
125 ret = memcpy_s(buf_tmp, len, buf, USB_CONFIG_DESC_SIZE);
130 len -= USB_CONFIG_DESC_SIZE;
135 while (i < len)
143 ret = memcpy_s(buf_tmp + new_config_len, (len + USB_CONFIG_DESC_SIZE - new_config_len),
179 int16_t len;
188 len = priv->device[i].compdesc.mkconfdesc(buf_tmp, &priv->device[i].compdesc.devinfo);
189 if (len <= 0)
193 total += len;
194 buf_tmp += len;