Searched defs:total_len (Results 1 - 25 of 39) sorted by relevance

12

/drivers/gpu/drm/udl/
H A Dudl_main.c34 u8 total_len = 0; local
41 total_len = usb_get_descriptor(usbdev, 0x5f, /* vendor specific */
43 if (total_len > 5) {
46 total_len, desc[0],
50 if ((desc[0] != total_len) || /* descriptor length */
54 (desc[4] != total_len - 2)) /* length after type */
57 desc_end = desc + total_len;
/drivers/scsi/qla4xxx/
H A Dql4_bsg.c208 uint32_t total_len = 0; local
230 total_len = offset + len;
233 if ((is_qla4010(ha) && total_len > QL4010_NVRAM_SIZE) ||
235 total_len > QL40X2_NVRAM_SIZE)) {
280 uint32_t total_len = 0; local
301 total_len = offset + len;
304 if ((is_qla4010(ha) && total_len > QL4010_NVRAM_SIZE) ||
306 total_len > QL40X2_NVRAM_SIZE)) {
/drivers/net/wireless/hostap/
H A Dhostap_download.c674 u32 total_len = 0; local
704 total_len += param->data[i].len;
706 total_len > PRISM2_MAX_DOWNLOAD_LEN) {
/drivers/net/wireless/orinoco/
H A Dhermes_dld.c257 int total_len = 0; local
267 total_len += sizeof(*blk) + len;
271 return total_len;
/drivers/staging/ft1000/ft1000-usb/
H A Dft1000_debug.c526 u16 total_len; local
628 total_len = msgsz+2;
629 if (total_len & 0x1) {
630 total_len++;
645 card_send_command(ft1000dev,(unsigned short*)dpram_data,total_len+2);
702 result = get_user(msglen, &pioctl_dpram->total_len);
H A Dft1000_ioctl.h75 unsigned short total_len; member in struct:_IOCTL_DPRAM_BLK
/drivers/usb/core/
H A Dconfig.c775 int length, total_len, num, i; local
793 total_len = le16_to_cpu(bos->wTotalLength);
796 if (total_len < length)
804 buffer = kzalloc(total_len, GFP_KERNEL);
811 ret = usb_get_descriptor(dev, USB_DT_BOS, 0, buffer, total_len);
812 if (ret < total_len) {
818 total_len -= length;
825 if (total_len < length)
827 total_len -= length;
/drivers/vhost/
H A Dtest.c44 size_t len, total_len = 0; local
82 total_len += len;
83 if (unlikely(total_len >= VHOST_TEST_WEIGHT)) {
/drivers/dma/ioat/
H A Ddma_v2.c741 size_t total_len = len; local
768 desc->len = total_len;
H A Ddma_v3.c431 size_t total_len = len; local
460 desc->len = total_len;
479 size_t total_len = len; local
541 desc->len = total_len;
618 size_t total_len = len; local
698 desc->len = total_len;
H A Ddma.c468 size_t total_len = len; local
516 desc->len = total_len;
/drivers/mtd/
H A Dmtdconcat.c164 size_t total_len = 0; local
170 total_len += vecs[i].iov_len;
175 if (do_div(__to, mtd->writesize) || (total_len % mtd->writesize))
194 size = min_t(uint64_t, total_len, subdev->size - to);
219 total_len -= wsize;
221 if (total_len == 0)
/drivers/net/wireless/b43/
H A Dpio.c506 unsigned int hdrlen, total_len; local
524 total_len = roundup(skb->len + hdrlen, 4);
526 if (unlikely(total_len > q->buffer_size)) {
538 if (total_len > (q->buffer_size - q->buffer_used)) {
581 unsigned int total_len; local
593 total_len = pack->skb->len + b43_txhdr_size(dev);
594 total_len = roundup(total_len, 4);
595 q->buffer_used -= total_len;
/drivers/net/ppp/
H A Dpppoe.c830 struct msghdr *m, size_t total_len)
855 if (total_len > (dev->mtu + dev->hard_header_len))
859 skb = sock_wmalloc(sk, total_len + dev->hard_header_len + 32,
875 ph = (struct pppoe_hdr *)skb_put(skb, total_len + sizeof(struct pppoe_hdr));
878 error = memcpy_fromiovec(start, m->msg_iov, total_len);
884 error = total_len;
886 po->pppoe_pa.remote, NULL, total_len);
890 ph->length = htons(total_len);
972 struct msghdr *m, size_t total_len, int flags)
991 total_len
829 pppoe_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *m, size_t total_len) argument
971 pppoe_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *m, size_t total_len, int flags) argument
[all...]
/drivers/net/wireless/p54/
H A Deeprom.c645 size_t total_len)
655 (payload_len + sizeof(*src) != total_len))
644 p54_convert_db(struct pda_custom_wrapper *src, size_t total_len) argument
/drivers/net/wireless/wl12xx/
H A Dtx.c184 u32 total_len = skb->len + sizeof(struct wl1271_tx_hw_descr) + extra; local
191 if (buf_offset + total_len > WL1271_AGGR_BUFFER_SIZE)
201 len = wl12xx_calc_packet_alignment(wl, total_len);
214 skb, total_len - skb->len);
245 total_len, total_blocks, id);
379 u32 total_len; local
435 total_len = wl12xx_calc_packet_alignment(wl, skb->len);
438 memset(wl->aggr_buf + buf_offset + skb->len, 0, total_len - skb->len);
444 return total_len;
/drivers/staging/ft1000/ft1000-pcmcia/
H A Dft1000_hw.c800 // All messages are in the form total_len + pseudo header + message body
991 // Get the message type which is total_len + PSEUDO header + msgtype + message body
1249 u16 total_len; local
1305 total_len =
1308 total_len =
1314 total_len);
1315 if ((total_len < MAX_CMD_SQSIZE) && (total_len > sizeof(struct pseudo_hdr))) {
1316 total_len += nxtph;
/drivers/usb/renesas_usbhs/
H A Dfifo.c484 int total_len; local
509 total_len = len;
510 is_short = total_len < maxp;
520 buf += total_len - len;
530 pkt->actual += total_len;
615 int total_len = 0; local
630 total_len = len;
637 pkt->actual += total_len;
640 (total_len < maxp)) { /* short packet */
666 buf += total_len
[all...]
/drivers/dma/
H A Dat_hdmac.c659 size_t total_len = 0; local
706 total_len += len;
741 total_len += len;
753 first->len = total_len;
H A Ddw_dmac.c720 size_t total_len = 0; local
791 total_len += dlen;
857 total_len += dlen;
876 first->len = total_len;
/drivers/infiniband/hw/amso1100/
H A Dc2_provider.c338 u32 total_len; local
342 total_len = 0;
365 total_len += buffer_list[i].size;
396 pr_debug("%s - page shift %d, pbl_depth %d, total_len %u, "
398 __func__, page_shift, pbl_depth, total_len,
404 total_len, 0, iova_start,
/drivers/infiniband/ulp/srp/
H A Dib_srp.h201 u32 total_len; member in struct:srp_map_state
/drivers/net/
H A Dmacvtap.c642 const struct iovec *iv, unsigned long total_len,
647 unsigned long len = total_len;
745 return total_len;
1010 struct msghdr *m, size_t total_len)
1013 return macvtap_get_user(q, m, m->msg_iov, total_len, m->msg_iovlen,
1018 struct msghdr *m, size_t total_len,
1025 ret = macvtap_do_read(q, iocb, m->msg_iov, total_len,
1027 if (ret > total_len) {
1029 ret = flags & MSG_TRUNC ? ret : total_len;
641 macvtap_get_user(struct macvtap_queue *q, struct msghdr *m, const struct iovec *iv, unsigned long total_len, size_t count, int noblock) argument
1009 macvtap_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *m, size_t total_len) argument
1017 macvtap_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *m, size_t total_len, int flags) argument
H A Dtun.c958 struct msghdr *m, size_t total_len)
961 return tun_get_user(tun, m->msg_iov, total_len,
966 struct msghdr *m, size_t total_len,
973 ret = tun_do_read(tun, iocb, m->msg_iov, total_len,
975 if (ret > total_len) {
977 ret = flags & MSG_TRUNC ? ret : total_len;
957 tun_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *m, size_t total_len) argument
965 tun_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *m, size_t total_len, int flags) argument
/drivers/net/wireless/bcmdhd/
H A Dwl_android.c110 int total_len; member in struct:android_wifi_priv_cmd
158 static int wl_android_get_link_speed(struct net_device *net, char *command, int total_len) argument
170 bytes_written = snprintf(command, total_len, "LinkSpeed %d", link_speed);
175 static int wl_android_get_rssi(struct net_device *net, char *command, int total_len) argument
195 bytes_written += snprintf(&command[bytes_written], total_len, " rssi %d", rssi);
200 static int wl_android_set_suspendopt(struct net_device *dev, char *command, int total_len) argument
222 static int wl_android_set_suspendmode(struct net_device *dev, char *command, int total_len) argument
242 static int wl_android_get_band(struct net_device *dev, char *command, int total_len) argument
251 bytes_written = snprintf(command, total_len, "Band %d", band);
256 static int wl_android_set_pno_setup(struct net_device *dev, char *command, int total_len) argument
364 wl_android_get_p2p_dev_addr(struct net_device *ndev, char *command, int total_len) argument
449 wl_android_set_fwpath(struct net_device *net, char *command, int total_len) argument
[all...]

Completed in 521 milliseconds

12