/linux/crypto/ |
H A D | ahash.c | 411 int blen; in ahash_update_finish() local 415 blen = *blenp; in ahash_update_finish() 418 if (blen) { in ahash_update_finish() 424 req->nbytes += nonzero - blen; in ahash_update_finish() 426 blen = err < 0 ? 0 : err + nonzero; in ahash_update_finish() 428 memcpy(buf, req->svirt + req->nbytes - blen, blen); in ahash_update_finish() 430 memcpy_from_sglist(buf, req->src, req->nbytes - blen, blen); in ahash_update_finish() 431 *blenp = blen; in ahash_update_finish() 449 int blen, err; in crypto_ahash_update() local 460 blen = *blenp; in crypto_ahash_update() [all …]
|
/linux/fs/xfs/ |
H A D | xfs_exchrange.c | 347 uint64_t blen; in xfs_exchange_range_checks() local 417 blen = ALIGN(size1, alloc_unit) - fxr->file1_offset; in xfs_exchange_range_checks() 419 blen = ALIGN(size2, alloc_unit) - fxr->file2_offset; in xfs_exchange_range_checks() 423 blen = fxr->length; in xfs_exchange_range_checks() 427 fxr->file2_offset + blen > fxr->file1_offset && in xfs_exchange_range_checks() 428 fxr->file1_offset + blen > fxr->file2_offset) in xfs_exchange_range_checks() 438 blen = fxr->length; in xfs_exchange_range_checks() 439 if (fxr->file2_offset + blen < size2) in xfs_exchange_range_checks() 440 blen &= ~allocmask; in xfs_exchange_range_checks() 442 if (fxr->file1_offset + blen < size1) in xfs_exchange_range_checks() [all …]
|
H A D | xfs_filestream.h | 18 struct xfs_alloc_arg *args, xfs_extlen_t *blen);
|
/linux/security/keys/trusted-keys/ |
H A D | trusted_dcp.c | 203 int blen, ret; in trusted_dcp_seal() local 206 blen = calc_blob_len(p->key_len); in trusted_dcp_seal() 207 if (blen > MAX_BLOB_SIZE) in trusted_dcp_seal() 232 p->blob_len = blen; in trusted_dcp_seal() 245 int blen, ret; in trusted_dcp_unseal() local 256 blen = calc_blob_len(p->key_len); in trusted_dcp_unseal() 257 if (blen != p->blob_len) { in trusted_dcp_unseal() 258 pr_err("DCP blob has bad length: %i != %i\n", blen, in trusted_dcp_unseal()
|
/linux/tools/testing/selftests/net/ |
H A D | txring_overwrite.c | 41 static void build_packet(void *buffer, size_t blen, char payload_char) in build_packet() argument 48 memset(buffer, 0, blen); in build_packet() 61 iph->tot_len = htons(blen - off); in build_packet() 68 udph->len = htons(blen - off); in build_packet() 72 memset(buffer + off, payload_char, blen - off); in build_packet()
|
H A D | srv6_end_next_csid_l3vpn_test.sh | 958 local blen="$3" 962 if [ "${blen}" != "d" ]; then 963 layout="${layout} lblen ${blen}" 982 local blen="$2" 989 __nextcsid_end_behavior_test "${nsname}" "add" "${blen}" "${flen}" 991 __nextcsid_end_behavior_test "${nsname}" "del" "${blen}" "${flen}" 1008 local blen 1016 blen="$(__parse_csid_container_cfg "${cfg}" 1)" 1022 "${blen}" \ 1028 "Accept valid C-SID container cfg (lblen=${blen}, nflen=${flen})" [all …]
|
H A D | srv6_end_x_next_csid_l3vpn_test.sh | 1073 local blen="$3" 1077 if [ "${blen}" != "d" ]; then 1078 layout="${layout} lblen ${blen}" 1098 local blen="$2" 1105 __nextcsid_end_x_behavior_test "${nsname}" "add" "${blen}" "${flen}" 1107 __nextcsid_end_x_behavior_test "${nsname}" "del" "${blen}" "${flen}" 1124 local blen 1132 blen="$(__parse_csid_container_cfg "${cfg}" 1)" 1138 "${blen}" \ 1144 "Accept valid C-SID container cfg (lblen=${blen}, nflen=${flen})" [all …]
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_rtbitmap.h | 96 uint64_t blen) in xfs_blen_to_rtbxlen() argument 99 return blen >> mp->m_rtxblklog; in xfs_blen_to_rtbxlen() 101 return div_u64(blen, mp->m_sb.sb_rextsize); in xfs_blen_to_rtbxlen() 108 xfs_filblks_t blen) in xfs_blen_to_rtxoff() argument 111 return blen & mp->m_rtxblkmask; in xfs_blen_to_rtxoff() 113 return do_div(blen, mp->m_sb.sb_rextsize); in xfs_blen_to_rtxoff() 120 xfs_filblks_t blen) in xfs_blen_roundup_rtx() argument 122 return roundup_64(blen, mp->m_sb.sb_rextsize); in xfs_blen_roundup_rtx()
|
/linux/tools/perf/util/arm-spe-decoder/ |
H A D | arm-spe-pkt-decoder.c | 240 static int arm_spe_pkt_out_string(int *err, char **buf_p, size_t *blen, in arm_spe_pkt_out_string() argument 251 ret = vsnprintf(*buf_p, *blen, fmt, ap); in arm_spe_pkt_out_string() 259 * A return value of *blen or more means that the output was in arm_spe_pkt_out_string() 262 } else if ((size_t)ret >= *blen) { in arm_spe_pkt_out_string() 263 (*buf_p)[*blen - 1] = '\0'; in arm_spe_pkt_out_string() 273 *blen -= ret; in arm_spe_pkt_out_string() 512 size_t blen = buf_len; in arm_spe_pkt_desc() local 519 arm_spe_pkt_out_string(&err, &buf, &blen, "%s", name); in arm_spe_pkt_desc() 529 arm_spe_pkt_out_string(&err, &buf, &blen, "%s %lld", name, payload); in arm_spe_pkt_desc() 535 arm_spe_pkt_out_string(&err, &buf, &blen, "%s 0x%lx el%d", in arm_spe_pkt_desc()
|
/linux/net/ceph/ |
H A D | crypto.c | 99 int blen = inlen * 3 / 4; in ceph_crypto_key_unarmor() local 104 buf = kmalloc(blen, GFP_NOFS); in ceph_crypto_key_unarmor() 107 blen = ceph_unarmor(buf, inkey, inkey+inlen); in ceph_crypto_key_unarmor() 108 if (blen < 0) { in ceph_crypto_key_unarmor() 110 return blen; in ceph_crypto_key_unarmor() 114 ret = ceph_crypto_key_decode(key, &p, p + blen); in ceph_crypto_key_unarmor()
|
/linux/drivers/devfreq/event/ |
H A D | rockchip-dfi.c | 462 int blen = dfi->burst_len; in rockchip_ddr_perf_event_get_count() local 481 count += total.c[i].read_access * blen * dfi->buswidth[i]; in rockchip_ddr_perf_event_get_count() 485 count += total.c[i].write_access * blen * dfi->buswidth[i]; in rockchip_ddr_perf_event_get_count() 488 count = total.c[0].read_access * blen * dfi->buswidth[0]; in rockchip_ddr_perf_event_get_count() 491 count = total.c[0].write_access * blen * dfi->buswidth[0]; in rockchip_ddr_perf_event_get_count() 494 count = total.c[1].read_access * blen * dfi->buswidth[1]; in rockchip_ddr_perf_event_get_count() 497 count = total.c[1].write_access * blen * dfi->buswidth[1]; in rockchip_ddr_perf_event_get_count() 500 count = total.c[2].read_access * blen * dfi->buswidth[2]; in rockchip_ddr_perf_event_get_count() 503 count = total.c[2].write_access * blen * dfi->buswidth[2]; in rockchip_ddr_perf_event_get_count() 506 count = total.c[3].read_access * blen * dfi->buswidth[3]; in rockchip_ddr_perf_event_get_count() [all …]
|
/linux/fs/gfs2/ |
H A D | meta_io.c | 383 * @blen: length of buffers to be removed 390 static void gfs2_ail1_wipe(struct gfs2_sbd *sdp, u64 bstart, u32 blen) in gfs2_ail1_wipe() argument 395 u64 end = bstart + blen; in gfs2_ail1_wipe() 438 * @blen: the number of buffers in the run 442 void gfs2_journal_wipe(struct gfs2_inode *ip, u64 bstart, u32 blen) in gfs2_journal_wipe() argument 452 gfs2_ail1_wipe(sdp, bstart, blen); in gfs2_journal_wipe() 453 while (blen) { in gfs2_journal_wipe() 472 blen--; in gfs2_journal_wipe()
|
H A D | rgrp.h | 50 u64 bstart, u32 blen, int meta); 52 u64 bstart, u32 blen);
|
/linux/fs/ubifs/ |
H A D | tnc_commit.c | 433 int wlen, blen, err; in layout_in_empty_space() local 521 blen = buf_len; in layout_in_empty_space() 523 blen = ALIGN(wlen, c->min_io_size); in layout_in_empty_space() 526 buf_offs += blen; in layout_in_empty_space() 530 c->leb_size - buf_offs, blen - used, in layout_in_empty_space() 536 used -= blen; in layout_in_empty_space() 543 blen - used, 0, 0); in layout_in_empty_space() 831 int avail, wlen, err, lnum_pos = 0, blen, nxt_offs; in write_index() local 986 blen = buf_len; in write_index() 989 blen = ALIGN(wlen, c->min_io_size); in write_index() [all …]
|
/linux/tools/perf/util/intel-pt-decoder/ |
H A D | intel-pt-pkt-decoder.c | 694 size_t blen = buf_len; in intel_pt_pkt_desc() local 696 ret = snprintf(buf, blen, "%s ", name); in intel_pt_pkt_desc() 700 blen -= ret; in intel_pt_pkt_desc() 703 ret = snprintf(buf, blen, "T"); in intel_pt_pkt_desc() 705 ret = snprintf(buf, blen, "N"); in intel_pt_pkt_desc() 709 blen -= ret; in intel_pt_pkt_desc() 712 ret = snprintf(buf, blen, " (%d)", packet->count); in intel_pt_pkt_desc() 715 blen -= ret; in intel_pt_pkt_desc() 716 return buf_len - blen; in intel_pt_pkt_desc()
|
/linux/fs/nfsd/ |
H A D | nfs4idmap.c | 134 int *blen) in idtoname_request() argument 139 qword_add(bpp, blen, ent->authname); in idtoname_request() 141 qword_add(bpp, blen, ent->type == IDMAP_TYPE_GROUP ? "group" : "user"); in idtoname_request() 142 qword_add(bpp, blen, idstr); in idtoname_request() 314 int *blen) in nametoid_request() argument 318 qword_add(bpp, blen, ent->authname); in nametoid_request() 319 qword_add(bpp, blen, ent->type == IDMAP_TYPE_GROUP ? "group" : "user"); in nametoid_request() 320 qword_add(bpp, blen, ent->name); in nametoid_request()
|
/linux/drivers/pinctrl/sunplus/ |
H A D | sppctl.h | 58 .blen = bl, \ 68 .blen = bl, \ 154 const u8 blen; /* bit length */ member
|
/linux/drivers/media/dvb-frontends/ |
H A D | gp8psk-fe.h | 65 int (*in)(void *priv, u8 req, u16 value, u16 index, u8 *b, int blen); 66 int (*out)(void *priv, u8 req, u16 value, u16 index, u8 *b, int blen);
|
/linux/drivers/s390/crypto/ |
H A D | zcrypt_cca_key.h | 15 unsigned short blen; member 146 key->t6_hdr.blen = key->pubhdr.token_length + 6; in zcrypt_type6_mex_key_en() 194 key->t6_hdr.blen = size; in zcrypt_type6_crt_key()
|
/linux/Documentation/filesystems/nfs/ |
H A D | rpc-cache.rst | 88 int cache_request(struct cache_detail \*cd, struct cache_head \*h, char \*\*bpp, int \*blen) 90 to be instantiated. \*bpp is a buffer of size \*blen. 92 and \*blen should be reduced to show how much free
|
/linux/drivers/usb/storage/ |
H A D | ene_ub6250.c | 680 u16 blen = ((cdb[7] << 8) & 0xff00) | ((cdb[8] << 0) & 0x00ff); in sd_scsi_read() local 682 u32 blenByte = blen * 0x200; in sd_scsi_read() 720 u16 blen = ((cdb[7] << 8) & 0xff00) | ((cdb[8] << 0) & 0x00ff); in sd_scsi_write() local 722 u32 blenByte = blen * 0x200; in sd_scsi_write() 1533 u8 PageNum, u8 blen, void *buf) in ms_lib_read_extrablock() argument 1541 bcb->DataTransferLength = 0x4 * blen; in ms_lib_read_extrablock() 1549 bcb->CDB[6] = blen; in ms_lib_read_extrablock() 1644 u16 blen = ((cdb[7] << 8) & 0xff00) | ((cdb[8] << 0) & 0x00ff); in ms_scsi_read() local 1645 u32 blenByte = blen * 0x200; in ms_scsi_read() 1693 if (blen > (info->MS_Lib.PagesPerBlock-PageNum)) in ms_scsi_read() [all …]
|
/linux/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-ctrl.c | 185 unsigned int *blen) in pvr2_ctrl_get_valname() argument 189 *blen = 0; in pvr2_ctrl_get_valname() 196 *blen = scnprintf( in pvr2_ctrl_get_valname() 200 *blen = 0; in pvr2_ctrl_get_valname() 212 *blen = scnprintf(bptr,bmax,"%s", in pvr2_ctrl_get_valname()
|
/linux/drivers/net/ethernet/sun/ |
H A D | sunvnet_common.c | 1069 int i, nc, err, blen; in vnet_skb_map() local 1072 blen = skb_headlen(skb); in vnet_skb_map() 1073 if (blen < ETH_ZLEN) in vnet_skb_map() 1074 blen = ETH_ZLEN; in vnet_skb_map() 1075 blen += VNET_PACKET_SKIP; in vnet_skb_map() 1076 blen += 8 - (blen & 7); in vnet_skb_map() 1078 err = ldc_map_single(lp, skb->data - VNET_PACKET_SKIP, blen, cookies, in vnet_skb_map() 1090 blen = skb_frag_size(f); in vnet_skb_map() 1091 blen += 8 - (blen & 7); in vnet_skb_map() 1093 blen, cookies + nc, ncookies - nc, in vnet_skb_map()
|
/linux/net/xfrm/ |
H A D | espintcp.c | 117 __be16 blen; in espintcp_parse() local 124 err = skb_copy_bits(skb, rxm->offset, &blen, sizeof(blen)); in espintcp_parse() 128 len = be16_to_cpu(blen); in espintcp_parse()
|
/linux/drivers/staging/media/av7110/ |
H A D | av7110_av.c | 227 u16 blen; in av7110_pes_play() local 251 blen = DVB_RINGBUFFER_PEEK(buf, 4) << 8; in av7110_pes_play() 252 blen |= DVB_RINGBUFFER_PEEK(buf, 5); in av7110_pes_play() 253 blen += 6; in av7110_pes_play() 254 if (len < blen || blen > dlen) { in av7110_pes_play() 255 //pr_info("buffer empty - avail %d blen %u dlen %d\n", len, blen, dlen); in av7110_pes_play() 260 dvb_ringbuffer_read(buf, dest, (size_t)blen); in av7110_pes_play() 265 return blen; in av7110_pes_play()
|