Home
last modified time | relevance | path

Searched refs:plen (Results 1 – 25 of 84) sorted by relevance

1234

/drivers/mtd/
Dofpart.c101 int i, plen, nr_parts; in parse_ofoldpart_partitions() local
114 part = of_get_property(dp, "partitions", &plen); in parse_ofoldpart_partitions()
121 nr_parts = plen / sizeof(part[0]); in parse_ofoldpart_partitions()
127 names = of_get_property(dp, "partition-names", &plen); in parse_ofoldpart_partitions()
136 if (names && (plen > 0)) { in parse_ofoldpart_partitions()
140 plen -= len; in parse_ofoldpart_partitions()
/drivers/scsi/libfc/
Dfc_disc.c397 size_t plen; in fc_disc_gpn_ft_parse() local
410 plen = len; in fc_disc_gpn_ft_parse()
416 plen = sizeof(*np) - tlen; in fc_disc_gpn_ft_parse()
417 WARN_ON(plen <= 0); in fc_disc_gpn_ft_parse()
418 WARN_ON(plen >= sizeof(*np)); in fc_disc_gpn_ft_parse()
419 if (plen > len) in fc_disc_gpn_ft_parse()
420 plen = len; in fc_disc_gpn_ft_parse()
422 memcpy((char *)np + tlen, bp, plen); in fc_disc_gpn_ft_parse()
430 plen += tlen; in fc_disc_gpn_ft_parse()
431 disc->buf_len = (unsigned char) plen; in fc_disc_gpn_ft_parse()
[all …]
Dfc_rport.c1696 unsigned int plen; in fc_rport_recv_prli_req() local
1709 plen = ntohs(pp->prli.prli_len); in fc_rport_recv_prli_req()
1710 if ((plen % 4) != 0 || plen > len || plen < 16) in fc_rport_recv_prli_req()
1712 if (plen < len) in fc_rport_recv_prli_req()
1713 len = plen; in fc_rport_recv_prli_req()
1714 plen = pp->prli.prli_spp_len; in fc_rport_recv_prli_req()
1715 if ((plen % 4) != 0 || plen < sizeof(*spp) || in fc_rport_recv_prli_req()
1716 plen > len || len < sizeof(*pp) || plen < 12) in fc_rport_recv_prli_req()
1730 pp->prli.prli_spp_len = plen; in fc_rport_recv_prli_req()
1741 while (len >= plen) { in fc_rport_recv_prli_req()
[all …]
/drivers/usb/storage/
Dprotocol.c181 unsigned int plen = min(sglen, (unsigned int) in usb_stor_access_xfer_buf() local
186 memcpy(ptr + poff, buffer + cnt, plen); in usb_stor_access_xfer_buf()
188 memcpy(buffer + cnt, ptr + poff, plen); in usb_stor_access_xfer_buf()
194 cnt += plen; in usb_stor_access_xfer_buf()
195 sglen -= plen; in usb_stor_access_xfer_buf()
/drivers/staging/rtl8187se/ieee80211/
Dieee80211_crypt_wep.c173 u32 klen, plen; in prism2_wep_decrypt() local
197 plen = skb->len - hdr_len - 8; in prism2_wep_decrypt()
200 sg_init_one(&sg, pos, plen + 4); in prism2_wep_decrypt()
202 if (crypto_blkcipher_decrypt(&desc, &sg, &sg, plen + 4)) in prism2_wep_decrypt()
205 crc = ~crc32_le(~0, pos, plen); in prism2_wep_decrypt()
211 if (memcmp(icv, pos + plen, 4) != 0) { in prism2_wep_decrypt()
/drivers/infiniband/hw/ipath/
Dipath_diag.c329 u32 plen, clen, pbufn; in ipath_diagpkt_write() local
427 plen = sizeof(u32) + dp.len; in ipath_diagpkt_write()
429 if ((plen + 4) > dd->ipath_ibmaxlen) { in ipath_diagpkt_write()
431 plen - 4, dd->ipath_ibmaxlen); in ipath_diagpkt_write()
435 tmpbuf = vmalloc(plen); in ipath_diagpkt_write()
450 plen >>= 2; /* in dwords */ in ipath_diagpkt_write()
452 piobuf = ipath_getpiobuf(dd, plen, &pbufn); in ipath_diagpkt_write()
464 dd->ipath_unit, plen - 1, pbufn); in ipath_diagpkt_write()
467 dp.pbc_wd = plen; in ipath_diagpkt_write()
/drivers/infiniband/hw/cxgb4/
Dcm.c509 PDBG("%s ep %p tid %u pd_len %d\n", __func__, ep, ep->hwtid, ep->plen); in send_mpa_req()
513 mpalen = sizeof(*mpa) + ep->plen; in send_mpa_req()
533 req->plen = cpu_to_be32(mpalen); in send_mpa_req()
543 mpa->private_data_size = htons(ep->plen); in send_mpa_req()
568 if (ep->plen) in send_mpa_req()
571 ep->mpa_pkt + sizeof(*mpa), ep->plen); in send_mpa_req()
573 if (ep->plen) in send_mpa_req()
575 ep->mpa_pkt + sizeof(*mpa), ep->plen); in send_mpa_req()
593 static int send_mpa_reject(struct c4iw_ep *ep, const void *pdata, u8 plen) in send_mpa_reject() argument
601 PDBG("%s ep %p tid %u pd_len %d\n", __func__, ep, ep->hwtid, ep->plen); in send_mpa_reject()
[all …]
Dqp.c293 u32 plen = 0; in build_immd() local
299 if ((plen + wr->sg_list[i].length) > max) in build_immd()
302 plen += wr->sg_list[i].length; in build_immd()
317 len = roundup(plen + sizeof *immdp, 16) - (plen + sizeof *immdp); in build_immd()
323 immdp->immdlen = cpu_to_be32(plen); in build_immd()
324 *plenp = plen; in build_immd()
334 u32 plen = 0; in build_isgl() local
338 if ((plen + sg_list[i].length) < plen) in build_isgl()
340 plen += sg_list[i].length; in build_isgl()
355 *plenp = plen; in build_isgl()
[all …]
/drivers/net/caif/
Dcaif_hsi.c345 u16 *plen = NULL; in cfhsi_rx_desc() local
409 plen = desc->cffrm_len; in cfhsi_rx_desc()
410 while (nfrms < CFHSI_MAX_PKTS && *plen) { in cfhsi_rx_desc()
411 xfer_sz += *plen; in cfhsi_rx_desc()
412 plen++; in cfhsi_rx_desc()
433 u16 *plen; in cfhsi_rx_desc_len() local
444 plen = desc->cffrm_len; in cfhsi_rx_desc_len()
445 while (nfrms < CFHSI_MAX_PKTS && *plen) { in cfhsi_rx_desc_len()
446 xfer_sz += *plen; in cfhsi_rx_desc_len()
447 plen++; in cfhsi_rx_desc_len()
[all …]
/drivers/of/
Dpdt.c41 int len, ourlen, plen; in of_pdt_build_full_name() local
46 plen = strlen(dp->parent->full_name); in of_pdt_build_full_name()
48 len = ourlen + plen + 2; in of_pdt_build_full_name()
53 strcpy(n + plen, "/"); in of_pdt_build_full_name()
54 plen++; in of_pdt_build_full_name()
56 strcpy(n + plen, dp->path_component_name); in of_pdt_build_full_name()
/drivers/staging/rtl8192e/
Drtllib_crypt_wep.c171 u32 klen, plen; in prism2_wep_decrypt() local
197 plen = skb->len - hdr_len - 8; in prism2_wep_decrypt()
200 sg_init_one(&sg, pos, plen+4); in prism2_wep_decrypt()
202 if (crypto_blkcipher_decrypt(&desc, &sg, &sg, plen + 4)) in prism2_wep_decrypt()
204 crc = ~crc32_le(~0, pos, plen); in prism2_wep_decrypt()
209 if (memcmp(icv, pos + plen, 4) != 0) { in prism2_wep_decrypt()
Drtllib_crypt_tkip.c391 int plen; in rtllib_tkip_decrypt() local
445 plen = skb->len - hdr_len - 12; in rtllib_tkip_decrypt()
447 sg_init_one(&sg, pos, plen+4); in rtllib_tkip_decrypt()
450 if (crypto_blkcipher_decrypt(&desc, &sg, &sg, plen + 4)) { in rtllib_tkip_decrypt()
459 crc = ~crc32_le(~0, pos, plen); in rtllib_tkip_decrypt()
465 if (memcmp(icv, pos + plen, 4) != 0) { in rtllib_tkip_decrypt()
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_wep.c175 u32 klen, plen; in prism2_wep_decrypt() local
200 plen = skb->len - hdr_len - 8; in prism2_wep_decrypt()
205 sg_init_one(&sg, pos, plen+4); in prism2_wep_decrypt()
207 if (crypto_blkcipher_decrypt(&desc, &sg, &sg, plen + 4)) in prism2_wep_decrypt()
210 crc = ~crc32_le(~0, pos, plen); in prism2_wep_decrypt()
215 if (memcmp(icv, pos + plen, 4) != 0) { in prism2_wep_decrypt()
/drivers/infiniband/hw/cxgb3/
Diwch_cm.c481 PDBG("%s ep %p pd_len %d\n", __func__, ep, ep->plen); in send_mpa_req()
485 mpalen = sizeof(*mpa) + ep->plen; in send_mpa_req()
503 mpa->private_data_size = htons(ep->plen); in send_mpa_req()
506 if (ep->plen) in send_mpa_req()
507 memcpy(mpa->private_data, ep->mpa_pkt + sizeof(*mpa), ep->plen); in send_mpa_req()
534 static int send_mpa_reject(struct iwch_ep *ep, const void *pdata, u8 plen) in send_mpa_reject() argument
541 PDBG("%s ep %p plen %d\n", __func__, ep, plen); in send_mpa_reject()
543 mpalen = sizeof(*mpa) + plen; in send_mpa_reject()
556 mpa->private_data_size = htons(plen); in send_mpa_reject()
557 if (plen) in send_mpa_reject()
[all …]
Diwch_qp.c46 u32 plen; in build_rdma_send() local
71 plen = 0; in build_rdma_send()
73 if ((plen + wr->sg_list[i].length) < plen) in build_rdma_send()
76 plen += wr->sg_list[i].length; in build_rdma_send()
83 wqe->send.plen = cpu_to_be32(plen); in build_rdma_send()
91 u32 plen; in build_rdma_write() local
102 plen = 4; in build_rdma_write()
108 plen = 0; in build_rdma_write()
110 if ((plen + wr->sg_list[i].length) < plen) { in build_rdma_write()
113 plen += wr->sg_list[i].length; in build_rdma_write()
[all …]
/drivers/media/dvb/ttpci/
Dav7110_ipack.c200 p->plen[0] = buf[c]; in av7110_ipack_instant_repack()
202 p->plen[1] = buf[c]; in av7110_ipack_instant_repack()
205 p->plength = (p->plen[0] << 8) | p->plen[1]; in av7110_ipack_instant_repack()
207 p->plen[0] = buf[c]; in av7110_ipack_instant_repack()
213 p->plen[1] = buf[c]; in av7110_ipack_instant_repack()
216 p->plength = (p->plen[0] << 8) | p->plen[1]; in av7110_ipack_instant_repack()
/drivers/video/
Datafb.c929 int plen; /* width of pixel in clock cycles */ in falcon_decode_var() local
1061 plen = 1; in falcon_decode_var()
1067 left_margin = hsync_len = 128 / plen; in falcon_decode_var()
1073 plen = 2 * xstretch; in falcon_decode_var()
1074 if (var->pixclock > f32.t * plen) in falcon_decode_var()
1083 hsync_len = pclock->hsync / plen; in falcon_decode_var()
1112 plen = 1 * xstretch; in falcon_decode_var()
1113 if ((plen * xres + f25.right + f25.hsync + f25.left) * in falcon_decode_var()
1116 else if ((plen * xres + f32.right + f32.hsync + in falcon_decode_var()
1119 else if ((plen * xres + fext.right + fext.hsync + in falcon_decode_var()
[all …]
/drivers/media/video/gspca/
Dse401.c556 int i, plen, bits, pixels, info, count; in sd_pkt_scan_janggu() local
583 plen = ((bits + 47) >> 4) << 1; in sd_pkt_scan_janggu()
585 if (plen > 1024) { in sd_pkt_scan_janggu()
587 plen); in sd_pkt_scan_janggu()
596 count = plen - sd->packet_read; in sd_pkt_scan_janggu()
602 if (sd->packet_read < plen) in sd_pkt_scan_janggu()
611 plen); in sd_pkt_scan_janggu()
619 sd_complete_frame(gspca_dev, sd->packet, plen); in sd_pkt_scan_janggu()
623 plen); in sd_pkt_scan_janggu()
/drivers/net/can/mscan/
Dmpc5xxx_can.c139 int plen, clockidx, clocksrc = -1; in mpc512x_can_get_clock() local
155 pval = of_get_property(ofdev->dev.of_node, "reg", &plen); in mpc512x_can_get_clock()
156 BUG_ON(!pval || plen < sizeof(*pval)); in mpc512x_can_get_clock()
176 "fsl,mscan-clock-divider", &plen); in mpc512x_can_get_clock()
177 if (pval && plen == sizeof(*pval)) in mpc512x_can_get_clock()
/drivers/staging/keucr/
Dscsiglue.c440 unsigned int plen = min(sglen, in usb_stor_access_xfer_buf() local
445 memcpy(ptr + poff, buffer + cnt, plen); in usb_stor_access_xfer_buf()
447 memcpy(buffer + cnt, ptr + poff, plen); in usb_stor_access_xfer_buf()
453 cnt += plen; in usb_stor_access_xfer_buf()
454 sglen -= plen; in usb_stor_access_xfer_buf()
/drivers/nfc/
Dnfcwilink.c66 __u8 plen; member
72 __u8 plen; member
165 cmd->plen = 0; in nfcwilink_get_bts_file_name()
167 drv->nfcc_info.plen = 0; in nfcwilink_get_bts_file_name()
184 drv->nfcc_info.plen, in nfcwilink_get_bts_file_name()
187 if ((drv->nfcc_info.plen != 5) || (drv->nfcc_info.status != 0)) { in nfcwilink_get_bts_file_name()
/drivers/net/wireless/bcmdhd/
Ddhd_bta.c61 if ((uint)cmd->plen + HCI_CMD_PREAMBLE_SIZE > cmd_len) in dhd_bta_docmd()
65 (char *)cmd, (uint)cmd->plen + HCI_CMD_PREAMBLE_SIZE, (char *)buf, len); in dhd_bta_docmd()
183 if ((len = (uint)cmd->plen + HCI_CMD_PREAMBLE_SIZE) > cmd_len) { in dhd_bta_docmd()
296 evt->plen = sizeof(num_completed_data_blocks_evt_parms_t); in dhd_bta_tx_hcidata_complete()
/drivers/staging/rtl8712/
Drtl871x_security.c1030 u8 *pframe, uint plen) in aes_cipher() argument
1084 construct_mic_iv(mic_iv, qc_exists, a4_exists, pframe, plen, pn_vector); in aes_cipher()
1087 payload_remainder = plen % 16; in aes_cipher()
1088 num_blocks = plen / 16; in aes_cipher()
1144 padded_buffer[j] = pframe[j+hdrlen+8+plen]; in aes_cipher()
1204 u8 *pframe, uint plen) in aes_decipher() argument
1232 num_blocks = (plen - 8) / 16; in aes_decipher()
1233 payload_remainder = (plen-8) % 16; in aes_decipher()
1283 memcpy((void *)message, pframe, (hdrlen + plen + 8)); in aes_decipher()
1290 construct_mic_iv(mic_iv, qc_exists, a4_exists, message, plen-8, in aes_decipher()
[all …]
/drivers/platform/x86/
Dibm_rtl.c282 unsigned int plen; in ibm_rtl_init() local
293 plen = rtl_cmd_width/sizeof(char); in ibm_rtl_init()
294 rtl_cmd_addr = rtl_port_map(addr, plen); in ibm_rtl_init()
/drivers/net/fddi/skfp/
Dsmt.c1575 int plen ; member
1668 int plen ; in sm_to_para() local
1678 plen = ((struct smt_para *)p)->p_len + PARA_LEN ; in sm_to_para()
1679 p += plen ; in sm_to_para()
1680 len -= plen ; in sm_to_para()
1682 DB_SMT("SMT : sm_to_para - length error %d\n",plen,0) ; in sm_to_para()
1685 if ((plen & 3) && (para != SMT_P_ECHODATA)) { in sm_to_para()
1686 DB_SMT("SMT : sm_to_para - odd length %d\n",plen,0) ; in sm_to_para()
1844 int plen ; in smt_swap_para() local
1859 plen = pa->p_len ; in smt_swap_para()
[all …]

1234