Home
last modified time | relevance | path

Searched refs:slen (Results 1 – 18 of 18) sorted by relevance

/drivers/isdn/hisax/
Disdnhdlc.c125 int slen, int *count, unsigned char *dst, int dsize) in isdnhdlc_decode() argument
141 *count = slen; in isdnhdlc_decode()
143 while(slen > 0){ in isdnhdlc_decode()
146 slen--; in isdnhdlc_decode()
276 *count -= slen; in isdnhdlc_decode()
323 *count -= slen; in isdnhdlc_decode()
347 unsigned short slen, int *count, in isdnhdlc_encode() argument
356 *count = slen; in isdnhdlc_encode()
360 if(slen && !hdlc->do_closing){ in isdnhdlc_encode()
362 slen--; in isdnhdlc_encode()
[all …]
Disdnhdlc.h62 extern int isdnhdlc_decode (struct isdnhdlc_vars *hdlc, const unsigned char *src, int slen,int *cou…
67 extern int isdnhdlc_encode (struct isdnhdlc_vars *hdlc,const unsigned char *src,unsigned short slen
/drivers/staging/rtl8187se/ieee80211/
Drtl_crypto.h93 int (*coa_compress)(void *ctx, const u8 *src, unsigned int slen,
95 int (*coa_decompress)(void *ctx, const u8 *src, unsigned int slen,
178 const u8 *src, unsigned int slen,
181 const u8 *src, unsigned int slen,
370 const u8 *src, unsigned int slen, in crypto_comp_compress() argument
374 return tfm->crt_compress.cot_compress(tfm, src, slen, dst, dlen); in crypto_comp_compress()
378 const u8 *src, unsigned int slen, in crypto_comp_decompress() argument
382 return tfm->crt_compress.cot_decompress(tfm, src, slen, dst, dlen); in crypto_comp_decompress()
/drivers/usb/mon/
Dmon_stat.c20 int slen; member
34 sp->slen = snprintf(sp->str, STAT_BUF_SIZE, in mon_stat_open()
47 return simple_read_from_buffer(buf, nbytes, ppos, sp->str, sp->slen); in mon_stat_read()
/drivers/media/video/pvrusb2/
Dpvrusb2-ctrl.c375 unsigned int slen; in parse_token() local
383 slen = strlen(names[idx]); in parse_token()
384 if (slen != len) continue; in parse_token()
385 if (memcmp(names[idx],ptr,slen)) continue; in parse_token()
409 unsigned int slen; in parse_mtoken() local
418 slen = strlen(names[idx]); in parse_mtoken()
419 if (slen != len) continue; in parse_mtoken()
420 if (memcmp(names[idx],ptr,slen)) continue; in parse_mtoken()
/drivers/scsi/
Dscsi_ioctl.c43 unsigned int len, slen; in ioctl_probe() local
55 slen = strlen(string); in ioctl_probe()
56 if (len > slen) in ioctl_probe()
57 len = slen + 1; in ioctl_probe()
Dscsi_transport_fc.c1016 #define fc_vport_store_str_function(field, slen) \ argument
1030 if (cnt > ((slen) - 1)) \
1272 #define fc_host_store_str_function(field, slen) \ argument
1285 if (cnt > ((slen) - 1)) \
/drivers/isdn/capi/
Dcapiutil.c797 int slen = 29 + 3 - level; in protocol_message_2_pars() local
808 cdb = bufprint(cdb, "%-*s = 0x%x\n", slen, NAME, *(u8 *) (cmsg->m + cmsg->l)); in protocol_message_2_pars()
812 cdb = bufprint(cdb, "%-*s = 0x%x\n", slen, NAME, *(u16 *) (cmsg->m + cmsg->l)); in protocol_message_2_pars()
816 cdb = bufprint(cdb, "%-*s = 0x%lx\n", slen, NAME, *(u32 *) (cmsg->m + cmsg->l)); in protocol_message_2_pars()
820 cdb = bufprint(cdb, "%-*s = ", slen, NAME); in protocol_message_2_pars()
836 cdb = bufprint(cdb, "%-*s = default\n", slen, NAME); in protocol_message_2_pars()
842 cdb = bufprint(cdb, "%-*s\n", slen, name); in protocol_message_2_pars()
/drivers/scsi/ibmvscsi/
Dibmvstgt.c241 int slen = min(sg_dma_len(sg + sidx) - soff, mlen); in ibmvstgt_rdma() local
244 err = h_copy_rdma(slen, in ibmvstgt_rdma()
250 err = h_copy_rdma(slen, in ibmvstgt_rdma()
257 eprintk("rdma error %d %d %ld\n", dir, slen, err); in ibmvstgt_rdma()
261 mlen -= slen; in ibmvstgt_rdma()
262 mdone += slen; in ibmvstgt_rdma()
263 soff += slen; in ibmvstgt_rdma()
264 done += slen; in ibmvstgt_rdma()
/drivers/media/dvb/dvb-usb/
Danysee.c51 static int anysee_ctrl_msg(struct dvb_usb_device *d, u8 *sbuf, u8 slen, in anysee_ctrl_msg() argument
58 if (slen > sizeof(buf)) in anysee_ctrl_msg()
59 slen = sizeof(buf); in anysee_ctrl_msg()
60 memcpy(&buf[0], sbuf, slen); in anysee_ctrl_msg()
/drivers/infiniband/hw/ipath/
Dipath_user_sdma.c483 const size_t slen = iov[idx].iov_len; in ipath_user_sdma_queue_pkts() local
487 if (slen & 3 || faddr & 3 || !slen || in ipath_user_sdma_queue_pkts()
488 slen > PAGE_SIZE) { in ipath_user_sdma_queue_pkts()
495 ((faddr + slen - 1) & PAGE_MASK)) in ipath_user_sdma_queue_pkts()
498 pktnwc += slen >> 2; in ipath_user_sdma_queue_pkts()
/drivers/media/common/
Dsaa7146_core.c183 int slen = 0; in saa7146_vmalloc_build_pgtable() local
195 slen = pci_map_sg(pci,pt->slist,pt->nents,PCI_DMA_FROMDEVICE); in saa7146_vmalloc_build_pgtable()
196 if (0 == slen) in saa7146_vmalloc_build_pgtable()
199 if (0 != saa7146_pgtable_build_single(pci, pt, pt->slist, slen)) in saa7146_vmalloc_build_pgtable()
/drivers/isdn/hysdn/
Dhycapi.c159 int slen = strlen(ExtFeatureDefaults); in hycapi_register_internal() local
165 len = CAPI_MSG_BASELEN + 8 + slen + 1; in hycapi_register_internal()
180 memcpy(skb_put(skb,slen), ExtFeatureDefaults, slen); in hycapi_register_internal()
/drivers/crypto/
Dhifn_795x.c1103 unsigned dlen, unsigned slen, u16 mask, u8 snum) in hifn_setup_base_command() argument
1111 __cpu_to_le16(slen & HIFN_BASE_CMD_LENMASK_LO); in hifn_setup_base_command()
1116 slen >>= 16; in hifn_setup_base_command()
1118 ((slen << HIFN_BASE_CMD_SRCLEN_S) & HIFN_BASE_CMD_SRCLEN_M) | in hifn_setup_base_command()
1125 u8 *buf, unsigned dlen, unsigned slen, in hifn_setup_crypto_command() argument
1510 unsigned slen = min(dst->length - offset, nbytes); in ablkcipher_walk() local
1515 err = ablkcipher_add(&dlen, dst, slen, &nbytes); in ablkcipher_walk()
1521 copy = slen & ~(HIFN_D_DST_DALIGN - 1); in ablkcipher_walk()
1522 diff = slen & (HIFN_D_DST_DALIGN - 1); in ablkcipher_walk()
1543 __func__, dlen, nbytes, slen, offset); in ablkcipher_walk()
/drivers/block/
Dsx8.c949 size_t slen; in carm_handle_array_info() local
983 slen = strlen(port->name); in carm_handle_array_info()
984 while (slen && (port->name[slen - 1] == ' ')) { in carm_handle_array_info()
985 port->name[slen - 1] = 0; in carm_handle_array_info()
986 slen--; in carm_handle_array_info()
/drivers/video/matrox/
Dmatroxfb_maven.c752 unsigned int slen; in maven_compute_timming() local
760 slen = mt->HSyncEnd - mt->HSyncStart; in maven_compute_timming()
761 hcrt = mt->HTotal - slen - mt->delay; in maven_compute_timming()
/drivers/net/
Denc28j60.c149 int slen = SPI_OPLEN; in spi_read_op() local
153 slen++; in spi_read_op()
156 ret = spi_write_then_read(priv->spi, tx_buf, 1, rx_buf, slen); in spi_read_op()
161 val = rx_buf[slen - 1]; in spi_read_op()
/drivers/isdn/i4l/
Disdn_tty.c287 int len, slen; in isdn_tty_tint() local
292 if ((slen = isdn_writebuf_skb_stub(info->isdn_driver, in isdn_tty_tint()
301 if (slen < 0) { in isdn_tty_tint()