Lines Matching defs:size
205 int err, pipe, size = HCI_MAX_FRAME_SIZE + 32;
215 skb = bt_skb_alloc(size, GFP_ATOMIC);
228 usb_fill_bulk_urb(urb, data->udev, pipe, skb->data, size,
454 int sent = 0, size, count;
476 /* Max HCI frame size seems to be 1511 + 1 */
486 size = min_t(uint, count, BFUSB_MAX_BLOCK_SIZE);
488 buf[0] = 0xc1 | ((sent == 0) ? 0x04 : 0) | ((count == size) ? 0x08 : 0);
490 buf[2] = (size == BFUSB_MAX_BLOCK_SIZE) ? 0 : size;
493 skb_copy_from_linear_data_offset(skb, sent, skb_put(nskb, size), size);
495 sent += size;
496 count -= size;
499 /* Don't send frame with multiple size of bulk max packet */
522 int err, pipe, len, size, sent = 0;
548 size = min_t(uint, count, BFUSB_MAX_BLOCK_SIZE + 3);
550 memcpy(buf, firmware + sent, size);
552 err = usb_bulk_msg(data->udev, pipe, buf, size,
555 if (err || (len != size)) {
560 sent += size;
561 count -= size;
647 BT_DBG("firmware data %p size %zu", firmware->data, firmware->size);
649 if (bfusb_load_firmware(data, firmware->data, firmware->size) < 0) {