Lines Matching defs:bdlen
4811 int bdlen = 0;
4845 bdlen = scsipkt->pkt_cdbp[7];
4846 bdlen = (bdlen << 8) + scsipkt->pkt_cdbp[8] - paramlen;
4847 if ((bdlen < 0) || ((bdlen % 16) != 0) ||
4848 (bdlen > (bp->b_bcount - paramlen))) {
4860 if ((bdlen == 0) || (bp == NULL) || (bp->b_un.b_addr == NULL) ||
4869 data = kmem_zalloc(bdlen, KM_SLEEP);
4875 for (i = 0, x = 0; i < bdlen; i += 16, x += 8) {
4912 kmem_free(data, bdlen);
4920 kmem_free(data, bdlen);
4978 int len, bdlen, count, alc_len;
5023 bdlen = 0;
5027 bdlen = 16;
5029 bdlen = 8;
5037 buf[len++] = bdlen; /* Block Descriptor length */
5044 if (bdlen == 16)
5050 buf[len++] = bdlen;
5060 if (bdlen == 8) {
5078 } else if (bdlen == 16) {