/drivers/crypto/nx/ |
D | nx-842.c | 97 unsigned int slen, unsigned int dlen) in update_param() argument 99 if (p->iremain < slen) in update_param() 104 p->in += slen; in update_param() 105 p->iremain -= slen; in update_param() 174 unsigned int slen = p->iremain, dlen = p->oremain, tmplen; in compress() local 175 unsigned int adj_slen = slen; in compress() 186 if (slen % c->multiple) in compress() 187 adj_slen = round_up(slen, c->multiple); in compress() 188 if (slen < c->minimum) in compress() 190 if (slen > c->maximum) in compress() [all …]
|
D | nx-842.h | 179 const u8 *src, unsigned int slen, 182 const u8 *src, unsigned int slen,
|
/drivers/isdn/i4l/ |
D | isdnhdlc.c | 131 int isdnhdlc_decode(struct isdnhdlc_vars *hdlc, const u8 *src, int slen, in isdnhdlc_decode() argument 172 *count = slen; in isdnhdlc_decode() 174 while (slen > 0) { in isdnhdlc_decode() 181 slen--; in isdnhdlc_decode() 289 *count -= slen; in isdnhdlc_decode() 331 *count -= slen; in isdnhdlc_decode() 354 int isdnhdlc_encode(struct isdnhdlc_vars *hdlc, const u8 *src, u16 slen, in isdnhdlc_encode() argument 363 *count = slen; in isdnhdlc_encode() 366 if ((slen == 1) && (hdlc->state == HDLC_SEND_FAST_FLAG)) in isdnhdlc_encode() 370 if (slen && !hdlc->do_closing) { in isdnhdlc_encode() [all …]
|
D | isdn_tty.c | 292 int len, slen; in isdn_tty_tint() local 297 if ((slen = isdn_writebuf_skb_stub(info->isdn_driver, in isdn_tty_tint() 306 if (slen < 0) { in isdn_tty_tint()
|
/drivers/usb/mon/ |
D | mon_stat.c | 22 int slen; member 37 sp->slen = snprintf(sp->str, STAT_BUF_SIZE, in mon_stat_open() 50 return simple_read_from_buffer(buf, nbytes, ppos, sp->str, sp->slen); in mon_stat_read()
|
/drivers/scsi/ |
D | scsi_ioctl.c | 43 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()
|
D | scsi_transport_fc.c | 1103 #define fc_vport_store_str_function(field, slen) \ argument 1117 if (cnt > ((slen) - 1)) \ 1368 #define fc_host_store_str_function(field, slen) \ argument 1381 if (cnt > ((slen) - 1)) \
|
/drivers/media/usb/pvrusb2/ |
D | pvrusb2-ctrl.c | 373 unsigned int slen; in parse_token() local 381 slen = strlen(names[idx]); in parse_token() 382 if (slen != len) continue; in parse_token() 383 if (memcmp(names[idx],ptr,slen)) continue; in parse_token() 407 unsigned int slen; in parse_mtoken() local 416 slen = strlen(names[idx]); in parse_mtoken() 417 if (slen != len) continue; in parse_mtoken() 418 if (memcmp(names[idx],ptr,slen)) continue; in parse_mtoken()
|
/drivers/isdn/capi/ |
D | capiutil.c | 656 int slen = 29 + 3 - level; in protocol_message_2_pars() local 667 cdb = bufprint(cdb, "%-*s = 0x%x\n", slen, NAME, *(u8 *) (cmsg->m + cmsg->l)); in protocol_message_2_pars() 671 cdb = bufprint(cdb, "%-*s = 0x%x\n", slen, NAME, *(u16 *) (cmsg->m + cmsg->l)); in protocol_message_2_pars() 675 cdb = bufprint(cdb, "%-*s = 0x%lx\n", slen, NAME, *(u32 *) (cmsg->m + cmsg->l)); in protocol_message_2_pars() 679 cdb = bufprint(cdb, "%-*s = ", slen, NAME); in protocol_message_2_pars() 695 cdb = bufprint(cdb, "%-*s = default\n", slen, NAME); in protocol_message_2_pars() 701 cdb = bufprint(cdb, "%-*s\n", slen, name); in protocol_message_2_pars()
|
/drivers/staging/rdma/ipath/ |
D | ipath_user_sdma.c | 481 const size_t slen = iov[idx].iov_len; in ipath_user_sdma_queue_pkts() local 485 if (slen & 3 || faddr & 3 || !slen || in ipath_user_sdma_queue_pkts() 486 slen > PAGE_SIZE) { in ipath_user_sdma_queue_pkts() 493 ((faddr + slen - 1) & PAGE_MASK)) in ipath_user_sdma_queue_pkts() 496 pktnwc += slen >> 2; in ipath_user_sdma_queue_pkts()
|
/drivers/media/common/saa7146/ |
D | saa7146_core.c | 180 int slen = 0; in saa7146_vmalloc_build_pgtable() local 192 slen = pci_map_sg(pci,pt->slist,pt->nents,PCI_DMA_FROMDEVICE); in saa7146_vmalloc_build_pgtable() 193 if (0 == slen) in saa7146_vmalloc_build_pgtable() 196 if (0 != saa7146_pgtable_build_single(pci, pt, pt->slist, slen)) in saa7146_vmalloc_build_pgtable()
|
/drivers/staging/rdma/hfi1/ |
D | diag.c | 1718 u32 slen = temp_ss.sge.length; in snoop_send_pio_handler() local 1720 if (slen > length) { in snoop_send_pio_handler() 1721 slen = length; in snoop_send_pio_handler() 1722 snoop_dbg("slen %d > len %d", slen, length); in snoop_send_pio_handler() 1724 snoop_dbg("copy %d to %p", slen, addr); in snoop_send_pio_handler() 1725 memcpy(data, addr, slen); in snoop_send_pio_handler() 1726 update_sge(&temp_ss, slen); in snoop_send_pio_handler() 1727 length -= slen; in snoop_send_pio_handler() 1728 data += slen; in snoop_send_pio_handler()
|
D | verbs.c | 1187 u32 slen = ss->sge.length; in hfi1_verbs_send_pio() local 1189 if (slen > len) in hfi1_verbs_send_pio() 1190 slen = len; in hfi1_verbs_send_pio() 1191 update_sge(ss, slen); in hfi1_verbs_send_pio() 1192 seg_pio_copy_mid(pbuf, addr, slen); in hfi1_verbs_send_pio() 1193 len -= slen; in hfi1_verbs_send_pio()
|
/drivers/staging/lustre/include/linux/lnet/ |
D | lib-lnet.h | 598 int slen, void *src, unsigned int soffset, unsigned int nob) in lnet_copy_flat2iov() argument 600 struct kvec siov = {/*.iov_base = */ src, /*.iov_len = */slen}; in lnet_copy_flat2iov() 608 unsigned int doffset, int slen, void *src, in lnet_copy_flat2kiov() argument 611 struct kvec siov = {/* .iov_base = */ src, /* .iov_len = */ slen}; in lnet_copy_flat2kiov()
|
/drivers/block/aoe/ |
D | aoedev.c | 243 user_req(char *s, size_t slen, struct aoedev *d) in user_req() argument 253 if (slen < lim) in user_req() 254 lim = slen; in user_req()
|
/drivers/isdn/hysdn/ |
D | hycapi.c | 162 int slen = strlen(ExtFeatureDefaults); in hycapi_register_internal() local 168 len = CAPI_MSG_BASELEN + 8 + slen + 1; in hycapi_register_internal() 183 memcpy(skb_put(skb, slen), ExtFeatureDefaults, slen); in hycapi_register_internal()
|
/drivers/crypto/ |
D | hifn_795x.c | 1101 unsigned dlen, unsigned slen, u16 mask, u8 snum) in hifn_setup_base_command() argument 1109 __cpu_to_le16(slen & HIFN_BASE_CMD_LENMASK_LO); in hifn_setup_base_command() 1114 slen >>= 16; in hifn_setup_base_command() 1116 ((slen << HIFN_BASE_CMD_SRCLEN_S) & HIFN_BASE_CMD_SRCLEN_M) | in hifn_setup_base_command() 1123 u8 *buf, unsigned dlen, unsigned slen, in hifn_setup_crypto_command() argument 1508 unsigned slen = min(dst->length - offset, nbytes); in hifn_cipher_walk() local 1513 err = ablkcipher_add(&dlen, dst, slen, &nbytes); in hifn_cipher_walk() 1519 copy = slen & ~(HIFN_D_DST_DALIGN - 1); in hifn_cipher_walk() 1520 diff = slen & (HIFN_D_DST_DALIGN - 1); in hifn_cipher_walk() 1541 __func__, dlen, nbytes, slen, offset); in hifn_cipher_walk()
|
/drivers/infiniband/hw/qib/ |
D | qib_user_sdma.c | 882 const size_t slen = iov[idx].iov_len; in qib_user_sdma_queue_pkts() local 886 if (slen & 3 || faddr & 3 || !slen) { in qib_user_sdma_queue_pkts() 893 if (check_add_overflow(bytes_togo, slen, &bytes_togo) || in qib_user_sdma_queue_pkts() 898 pktnwc += slen >> 2; in qib_user_sdma_queue_pkts()
|
/drivers/block/ |
D | sx8.c | 950 size_t slen; in carm_handle_array_info() local 984 slen = strlen(port->name); in carm_handle_array_info() 985 while (slen && (port->name[slen - 1] == ' ')) { in carm_handle_array_info() 986 port->name[slen - 1] = 0; in carm_handle_array_info() 987 slen--; in carm_handle_array_info()
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | pack_generic.c | 697 int slen, blen; in lustre_msg_string() local 713 slen = strnlen(str, blen); in lustre_msg_string() 715 if (slen == blen) { /* not NULL terminated */ in lustre_msg_string() 722 if (slen != blen - 1) { in lustre_msg_string() 724 m, index, blen, slen); in lustre_msg_string() 727 } else if (slen > max_len) { in lustre_msg_string() 729 m, index, blen, slen, max_len); in lustre_msg_string()
|
/drivers/video/fbdev/matrox/ |
D | matroxfb_maven.c | 767 unsigned int slen; in maven_compute_timming() local 775 slen = mt->HSyncEnd - mt->HSyncStart; in maven_compute_timming() 776 hcrt = mt->HTotal - slen - mt->delay; in maven_compute_timming()
|
/drivers/media/usb/dvb-usb-v2/ |
D | anysee.c | 50 u8 *sbuf, u8 slen, u8 *rbuf, u8 rlen) in anysee_ctrl_msg() argument 57 memcpy(&state->buf[0], sbuf, slen); in anysee_ctrl_msg() 60 dev_dbg(&d->udev->dev, "%s: >>> %*ph\n", __func__, slen, state->buf); in anysee_ctrl_msg()
|
/drivers/net/ethernet/microchip/ |
D | enc28j60.c | 148 int slen = SPI_OPLEN; in spi_read_op() local 152 slen++; in spi_read_op() 155 ret = spi_write_then_read(priv->spi, tx_buf, 1, rx_buf, slen); in spi_read_op() 160 val = rx_buf[slen - 1]; in spi_read_op()
|
/drivers/md/ |
D | md.c | 3448 size_t slen = len; in level_store() local 3454 if (slen == 0 || slen >= sizeof(clevel)) in level_store() 3462 strncpy(mddev->clevel, buf, slen); in level_store() 3463 if (mddev->clevel[slen-1] == '\n') in level_store() 3464 slen--; in level_store() 3465 mddev->clevel[slen] = 0; in level_store() 3495 strncpy(clevel, buf, slen); in level_store() 3496 if (clevel[slen-1] == '\n') in level_store() 3497 slen--; in level_store() 3498 clevel[slen] = 0; in level_store()
|
/drivers/scsi/be2iscsi/ |
D | be_main.c | 1362 unsigned short *slen = (unsigned short *)sts_bhs->sense_info; in be_complete_io() local 1365 sense_len = be16_to_cpu(*slen); in be_complete_io()
|