Home
last modified time | relevance | path

Searched refs:flen (Results 1 – 12 of 12) sorted by relevance

/drivers/staging/i4l/pcbit/
Dlayer2.c145 int flen; /* fragment frame length including all headers */ in pcbit_transmit() local
181 flen = FRAME_HDR_LEN + PREHDR_LEN + frame->skb->len; in pcbit_transmit()
183 flen = FRAME_HDR_LEN + PREHDR_LEN; in pcbit_transmit()
185 if (flen > free) in pcbit_transmit()
186 flen = free; in pcbit_transmit()
194 pcbit_writew(dev, flen - FRAME_HDR_LEN); in pcbit_transmit()
228 flen = 2 + (frame->skb->len - frame->copied); in pcbit_transmit()
230 if (flen > free) in pcbit_transmit()
231 flen = free; in pcbit_transmit()
234 tt = ((ushort) (flen - 2)) | 0x8000U; /* Type 1 */ in pcbit_transmit()
[all …]
/drivers/media/usb/pwc/
Dpwc-if.c260 int i, fst, flen; in pwc_isoc_handler() local
310 flen = urb->iso_frame_desc[i].actual_length; in pwc_isoc_handler()
316 if (flen > 0 && pdev->vsync) { in pwc_isoc_handler()
324 if (flen + fbuf->filled > pdev->frame_total_size) { in pwc_isoc_handler()
326 flen + fbuf->filled, in pwc_isoc_handler()
331 flen); in pwc_isoc_handler()
332 fbuf->filled += flen; in pwc_isoc_handler()
335 if (flen < pdev->vlast_packet_size) { in pwc_isoc_handler()
346 pdev->vlast_packet_size = flen; in pwc_isoc_handler()
/drivers/net/ppp/
Dppp_generic.c1697 int flen; in ppp_mp_explode() local
1822 flen = len; in ppp_mp_explode()
1825 flen = len/nfree; in ppp_mp_explode()
1827 flen++; in ppp_mp_explode()
1831 flen = (((totfree - nzero)*(totlen + hdrlen*totfree)) / in ppp_mp_explode()
1834 flen += ((totfree - nzero)*pch->speed)/totspeed; in ppp_mp_explode()
1847 if ((nfree <= 0) || (flen > len)) in ppp_mp_explode()
1848 flen = len; in ppp_mp_explode()
1855 if (flen <= 0) { in ppp_mp_explode()
1869 if (flen > mtu) in ppp_mp_explode()
[all …]
/drivers/net/wireless/intersil/hostap/
Dhostap_80211_rx.c921 int flen; in hostap_80211_rx() local
932 flen = skb->len; in hostap_80211_rx()
934 flen -= hdrlen; in hostap_80211_rx()
936 if (frag_skb->tail + flen > frag_skb->end) { in hostap_80211_rx()
947 skb_copy_from_linear_data(skb, skb_put(frag_skb, flen), in hostap_80211_rx()
948 flen); in hostap_80211_rx()
954 flen), flen); in hostap_80211_rx()
/drivers/s390/char/
Dtty3270.c1115 int flen, i; in tty3270_convert_line() local
1118 flen = 3; /* Prefix (TO_SBA). */ in tty3270_convert_line()
1120 flen += line->len; in tty3270_convert_line()
1125 flen += 3; /* TO_SA to switch highlight. */ in tty3270_convert_line()
1129 flen += 3; /* TO_SA to switch color. */ in tty3270_convert_line()
1134 flen += 3; /* TO_SA to reset hightlight. */ in tty3270_convert_line()
1136 flen += 3; /* TO_SA to reset color. */ in tty3270_convert_line()
1138 flen += 4; /* Postfix (TO_RA). */ in tty3270_convert_line()
1148 if (s->len != flen) { in tty3270_convert_line()
1150 n = tty3270_alloc_string(tp, flen); in tty3270_convert_line()
/drivers/net/wireless/intel/ipw2x00/
Dlibipw_rx.c583 int flen; in libipw_rx() local
596 flen = skb->len; in libipw_rx()
598 flen -= hdrlen; in libipw_rx()
600 if (frag_skb->tail + flen > frag_skb->end) { in libipw_rx()
611 skb_copy_from_linear_data(skb, skb_put(frag_skb, flen), flen); in libipw_rx()
616 skb_put(frag_skb, flen), flen); in libipw_rx()
/drivers/media/usb/msi2500/
Dmsi2500.c382 int i, flen, fstatus; in msi2500_isoc_handler() local
419 flen = urb->iso_frame_desc[i].actual_length; in msi2500_isoc_handler()
420 if (unlikely(flen == 0)) in msi2500_isoc_handler()
437 flen = msi2500_convert_stream(dev, ptr, iso_buf, flen); in msi2500_isoc_handler()
438 vb2_set_plane_payload(&fbuf->vb.vb2_buf, 0, flen); in msi2500_isoc_handler()
/drivers/net/wireless/ath/wil6210/
Dwmi.c336 int flen = len - offsetof(struct wmi_rx_mgmt_packet_event, payload); in wmi_evt_rx_mgmt() local
345 if (flen < 0) { in wmi_evt_rx_mgmt()
351 if (d_len != flen) { in wmi_evt_rx_mgmt()
354 d_len, flen); in wmi_evt_rx_mgmt()
418 int flen = len - offsetof(struct wmi_tx_mgmt_packet_event, payload); in wmi_evt_tx_mgmt() local
421 flen, true); in wmi_evt_tx_mgmt()
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_rx.c1162 int flen; in ieee80211_rx() local
1174 flen = skb->len; in ieee80211_rx()
1176 flen -= hdrlen; in ieee80211_rx()
1178 if (frag_skb->tail + flen > frag_skb->end) { in ieee80211_rx()
1189 memcpy(skb_put(frag_skb, flen), skb->data, flen); in ieee80211_rx()
1193 memcpy(skb_put(frag_skb, flen), skb->data + hdrlen, in ieee80211_rx()
1194 flen); in ieee80211_rx()
/drivers/infiniband/hw/qib/
Dqib_user_sdma.c688 int flen = ((fofs + tlen) > PAGE_SIZE) ? in qib_user_sdma_pin_pages() local
692 pages[i], 1, fofs, flen, NULL); in qib_user_sdma_pin_pages()
701 addr += flen; in qib_user_sdma_pin_pages()
702 tlen -= flen; in qib_user_sdma_pin_pages()
/drivers/staging/rtl8192e/
Drtllib_rx.c1116 int flen; in rtllib_rx_decrypt() local
1128 flen = skb->len; in rtllib_rx_decrypt()
1130 flen -= hdrlen; in rtllib_rx_decrypt()
1132 if (frag_skb->tail + flen > frag_skb->end) { in rtllib_rx_decrypt()
1144 memcpy(skb_put(frag_skb, flen), skb->data, flen); in rtllib_rx_decrypt()
1149 memcpy(skb_put(frag_skb, flen), skb->data + hdrlen, in rtllib_rx_decrypt()
1150 flen); in rtllib_rx_decrypt()
/drivers/isdn/hardware/eicon/
Dmessage.c9043 byte flen; in AddInfo() local
9068 flen = fty_i[i][0]; in AddInfo()
9070 for (k = 0; k <= flen; k++, j++) in AddInfo()