Lines Matching refs:bytes_copied
881 uint16_t bytes_copied; in hidh_conn_snd_data() local
931 bytes_copied = 0; in hidh_conn_snd_data()
939 bytes_copied = p_hcon->rem_mtu_size - 1; in hidh_conn_snd_data()
945 bytes_copied = buf->len; in hidh_conn_snd_data()
954 data_size = bytes_copied = 1; in hidh_conn_snd_data()
958 memcpy(p_out, (((uint8_t*)(buf + 1)) + buf->offset), bytes_copied); in hidh_conn_snd_data()
959 buf->offset += bytes_copied; in hidh_conn_snd_data()
960 buf->len -= bytes_copied; in hidh_conn_snd_data()
962 *(p_out + bytes_copied) = data & 0xff; in hidh_conn_snd_data()
964 *(p_out + bytes_copied) = data & 0xff; in hidh_conn_snd_data()
965 *(p_out + bytes_copied + 1) = (data >> 8) & 0xff; in hidh_conn_snd_data()
968 p_buf->len = bytes_copied + 1 + use_data; in hidh_conn_snd_data()
969 data_size -= bytes_copied; in hidh_conn_snd_data()
978 else if (bytes_copied == (p_hcon->rem_mtu_size - 1)) { in hidh_conn_snd_data()