Lines Matching defs:buflen
698 size_t buflen, resplen, respoffs, copylen;
700 buflen = *len + sizeof(*u.get);
701 if (buflen < CONTROL_BUFFER_SIZE)
702 buflen = CONTROL_BUFFER_SIZE;
704 if (buflen > COMMAND_BUFFER_SIZE) {
705 u.buf = kmalloc(buflen, GFP_KERNEL);
720 ret = rndis_command(dev, u.header, buflen);
731 if (respoffs > buflen) {
735 __func__, oid_to_string(oid), respoffs, buflen);
741 copylen = min(resplen, buflen - respoffs);
775 int ret, buflen;
777 buflen = len + sizeof(*u.set);
778 if (buflen < CONTROL_BUFFER_SIZE)
779 buflen = CONTROL_BUFFER_SIZE;
781 if (buflen > COMMAND_BUFFER_SIZE) {
782 u.buf = kmalloc(buflen, GFP_KERNEL);
801 ret = rndis_command(dev, u.header, buflen);
2078 netdev_dbg(usbdev->net, "%s(): buflen: %d\n", __func__, len);
2886 int flags, buflen, key_id;
2900 buflen = len - offsetof(struct ndis_80211_status_indication, u);
2902 while (buflen >= sizeof(*auth_req)) {
2904 if (buflen < le32_to_cpu(auth_req->length))
2947 buflen -= le32_to_cpu(auth_req->length);
3000 struct rndis_indicate *msg, int buflen)
3015 if (len > buflen || offset > buflen || offset + len > buflen) {
3017 offset + len, buflen);
3048 static void rndis_wlan_indication(struct usbnet *usbdev, void *ind, int buflen)
3083 rndis_wlan_media_specific_indication(usbdev, msg, buflen);