/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/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/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 | 1058 unsigned dlen, unsigned slen, u16 mask, u8 snum) in hifn_setup_base_command() argument 1066 __cpu_to_le16(slen & HIFN_BASE_CMD_LENMASK_LO); in hifn_setup_base_command() 1071 slen >>= 16; in hifn_setup_base_command() 1073 ((slen << HIFN_BASE_CMD_SRCLEN_S) & HIFN_BASE_CMD_SRCLEN_M) | in hifn_setup_base_command() 1080 u8 *buf, unsigned dlen, unsigned slen, in hifn_setup_crypto_command() argument 1466 unsigned slen = min(dst->length - offset, nbytes); in hifn_cipher_walk() local 1471 err = ablkcipher_add(&dlen, dst, slen, &nbytes); in hifn_cipher_walk() 1477 copy = slen & ~(HIFN_D_DST_DALIGN - 1); in hifn_cipher_walk() 1478 diff = slen & (HIFN_D_DST_DALIGN - 1); in hifn_cipher_walk() 1498 __func__, dlen, nbytes, slen, offset); in hifn_cipher_walk()
|
/drivers/infiniband/hw/qib/ |
D | qib_user_sdma.c | 881 const size_t slen = iov[idx].iov_len; in qib_user_sdma_queue_pkts() local 885 if (slen & 3 || faddr & 3 || !slen) { in qib_user_sdma_queue_pkts() 892 bytes_togo += slen; in qib_user_sdma_queue_pkts() 893 pktnwc += slen >> 2; in qib_user_sdma_queue_pkts()
|
/drivers/block/ |
D | sx8.c | 949 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/staging/lustre/lustre/ptlrpc/ |
D | pack_generic.c | 683 u32 slen, blen; in lustre_msg_string() local 699 slen = strnlen(str, blen); in lustre_msg_string() 701 if (slen == blen) { /* not NULL terminated */ in lustre_msg_string() 708 if (slen != blen - 1) { in lustre_msg_string() 710 m, index, blen, slen); in lustre_msg_string() 713 } else if (slen > max_len) { in lustre_msg_string() 715 m, index, blen, slen, max_len); in lustre_msg_string()
|
/drivers/infiniband/hw/hfi1/ |
D | verbs.c | 1087 u32 slen = ss->sge.length; in hfi1_verbs_send_pio() local 1089 if (slen > len) in hfi1_verbs_send_pio() 1090 slen = len; in hfi1_verbs_send_pio() 1091 update_sge(ss, slen); in hfi1_verbs_send_pio() 1092 seg_pio_copy_mid(pbuf, addr, slen); in hfi1_verbs_send_pio() 1093 len -= slen; in hfi1_verbs_send_pio()
|
/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 | 153 int slen = SPI_OPLEN; in spi_read_op() local 157 slen++; in spi_read_op() 160 ret = spi_write_then_read(priv->spi, tx_buf, 1, rx_buf, slen); in spi_read_op() 165 val = rx_buf[slen - 1]; in spi_read_op()
|
/drivers/spi/ |
D | spi-loopback-test.c | 328 #define RANGE_CHECK(ptr, plen, start, slen) \ argument 329 ((ptr >= start) && (ptr + plen <= start + slen))
|
/drivers/md/ |
D | md.c | 3434 size_t slen = len; in level_store() local 3440 if (slen == 0 || slen >= sizeof(clevel)) in level_store() 3448 strncpy(mddev->clevel, buf, slen); in level_store() 3449 if (mddev->clevel[slen-1] == '\n') in level_store() 3450 slen--; in level_store() 3451 mddev->clevel[slen] = 0; in level_store() 3481 strncpy(clevel, buf, slen); in level_store() 3482 if (clevel[slen-1] == '\n') in level_store() 3483 slen--; in level_store() 3484 clevel[slen] = 0; in level_store()
|
/drivers/scsi/be2iscsi/ |
D | be_main.c | 1153 unsigned short *slen = (unsigned short *)sts_bhs->sense_info; in be_complete_io() local 1156 sense_len = be16_to_cpu(*slen); in be_complete_io()
|