Lines Matching refs:framesize
4970 int framesize;
4989 * framesize is always 1 byte or more since all formats supported as
4992 framesize = frametobyte(&input->fmt, 1);
4993 KASSERT(framesize >= 1);
5004 count = uimin(usrbuf->used, track->usrbuf_blksize) / framesize;
5005 bytes = count * framesize;
5008 memcpy((uint8_t *)input->mem + auring_tail(input) * framesize,
5018 KASSERTMSG(bytes1 % framesize == 0,
5019 "bytes1=%d framesize=%d", bytes1, framesize);
5020 memcpy((uint8_t *)input->mem + auring_tail(input) * framesize,
5023 auring_push(input, bytes1 / framesize);
5027 memcpy((uint8_t *)input->mem + auring_tail(input) * framesize,
5030 auring_push(input, bytes2 / framesize);
5117 int framesize;
5153 * framesize is always 1 byte or more since all formats supported
5156 framesize = frametobyte(&outbuf->fmt, 1);
5157 KASSERT(framesize >= 1);
5163 count = uimin(count, track->usrbuf_blksize / framesize);
5164 bytes = count * framesize;
5167 (uint8_t *)outbuf->mem + outbuf->head * framesize,
5176 KASSERTMSG(bytes1 % framesize == 0,
5177 "bytes1=%d framesize=%d", bytes1, framesize);
5179 (uint8_t *)outbuf->mem + outbuf->head * framesize,
5182 auring_take(outbuf, bytes1 / framesize);
5186 (uint8_t *)outbuf->mem + outbuf->head * framesize,
5189 auring_take(outbuf, bytes2 / framesize);
5295 "indivisible by framesize: "