Home
last modified time | relevance | path

Searched refs:nlen (Results 1 – 7 of 7) sorted by relevance

/drivers/tty/hvc/
Dhvc_beat.c76 int rest, nlen; in hvc_beat_put_chars() local
78 for (rest = cnt; rest > 0; rest -= nlen) { in hvc_beat_put_chars()
79 nlen = (rest > 16) ? 16 : rest; in hvc_beat_put_chars()
80 memcpy(kb, buf, nlen); in hvc_beat_put_chars()
81 beat_put_term_char(vtermno, nlen, kb[0], kb[1]); in hvc_beat_put_chars()
82 buf += nlen; in hvc_beat_put_chars()
/drivers/isdn/hisax/
Dl3dss1.c131 l3dss1_dummy_return_result(struct PStack *st, int id, u_char *p, u_char nlen) in l3dss1_dummy_return_result() argument
147 ic.parm.dss1_io.datalen = nlen; in l3dss1_dummy_return_result()
156 l3_debug(st, "dummy return result id=0x%x result len=%d", id, nlen); in l3dss1_dummy_return_result()
198 int ident, u_char *p, u_char nlen) in l3dss1_dummy_invoke() argument
203 (cr == -1) ? "local" : "broadcast", id, ident, nlen); in l3dss1_dummy_invoke()
214 ic.parm.dss1_io.datalen = nlen; in l3dss1_dummy_invoke()
225 unsigned char nlen = 0, ilen, cp_tag; in l3dss1_parse_facility() local
269 nlen = *p++ & 0x7F; /* number of len bytes or indefinite */ in l3dss1_parse_facility()
270 if ((qd_len-- < ((!nlen) ? 3 : (1 + nlen))) || in l3dss1_parse_facility()
271 (nlen > 1)) in l3dss1_parse_facility()
[all …]
Dl3ni1.c130 l3ni1_dummy_return_result(struct PStack *st, int id, u_char *p, u_char nlen) in l3ni1_dummy_return_result() argument
146 ic.parm.ni1_io.datalen = nlen; in l3ni1_dummy_return_result()
155 l3_debug(st, "dummy return result id=0x%x result len=%d", id, nlen); in l3ni1_dummy_return_result()
197 int ident, u_char *p, u_char nlen) in l3ni1_dummy_invoke() argument
202 (cr == -1) ? "local" : "broadcast", id, ident, nlen); in l3ni1_dummy_invoke()
213 ic.parm.ni1_io.datalen = nlen; in l3ni1_dummy_invoke()
224 unsigned char nlen = 0, ilen, cp_tag; in l3ni1_parse_facility() local
268 nlen = *p++ & 0x7F; /* number of len bytes or indefinite */ in l3ni1_parse_facility()
269 if ((qd_len-- < ((!nlen) ? 3 : (1 + nlen))) || in l3ni1_parse_facility()
270 (nlen > 1)) in l3ni1_parse_facility()
[all …]
/drivers/net/ethernet/i825xx/
D3c505.c986 unsigned int nlen = (((skb->len < 60) ? 60 : skb->len) + 1) & (~1); in send_packet() local
994 dev->stats.tx_bytes += nlen; in send_packet()
1004 adapter->tx_pcb.data.xmit_pkt.pkt_len = nlen; in send_packet()
1017 if ((unsigned long)(skb->data + nlen) >= MAX_DMA_ADDRESS || nlen != skb->len) { in send_packet()
1018 skb_copy_from_linear_data(skb, adapter->dma_buffer, nlen); in send_packet()
1019 memset(adapter->dma_buffer+skb->len, 0, nlen-skb->len); in send_packet()
1032 set_dma_count(dev->dma, nlen); in send_packet()
/drivers/net/wireless/bcmdhd/
Dbcmutils.c816 int len, nlen; in bcmstrstr() local
822 nlen = strlen(needle); in bcmstrstr()
823 len = strlen(haystack) - nlen + 1; in bcmstrstr()
826 if (memcmp(needle, &haystack[i], nlen) == 0) in bcmstrstr()
1699 int slen = 0, nlen = 0; in bcm_format_flags() local
1719 nlen = strlen(name); in bcm_format_flags()
1720 slen += nlen; in bcm_format_flags()
1728 strncpy(p, name, nlen + 1); in bcm_format_flags()
1729 p += nlen; in bcm_format_flags()
/drivers/media/dvb/dvb-core/
Ddvb_ca_en50221.c175 static char *findstr(char * haystack, int hlen, char * needle, int nlen) in findstr() argument
179 if (hlen < nlen) in findstr()
182 for (i = 0; i <= hlen - nlen; i++) { in findstr()
183 if (!strncmp(haystack + i, needle, nlen)) in findstr()
/drivers/net/wireless/brcm80211/brcmsmac/
Dmain.c5918 int slen = 0, nlen = 0; in brcms_c_format_flags() local
5938 nlen = strlen(name); in brcms_c_format_flags()
5939 slen += nlen; in brcms_c_format_flags()
5947 strncpy(p, name, nlen + 1); in brcms_c_format_flags()
5948 p += nlen; in brcms_c_format_flags()