Lines Matching refs:size
379 static struct sk_buff *rfcomm_wmalloc(struct rfcomm_dev *dev, unsigned long size, gfp_t priority)
381 struct sk_buff *skb = alloc_skb(size, priority);
507 int n = 0, size, err;
518 size = sizeof(*dl) + dev_num * sizeof(*di);
520 dl = kzalloc(size, GFP_KERNEL);
545 size = sizeof(*dl) + n * sizeof(*di);
547 err = copy_to_user(arg, dl, size);
788 size_t sent = 0, size;
793 size = min_t(size_t, count, dlc->mtu);
795 skb = rfcomm_wmalloc(dev, size + RFCOMM_SKB_RESERVE, GFP_ATOMIC);
801 skb_put_data(skb, buf + sent, size);
805 sent += size;
806 count -= size;