Home
last modified time | relevance | path

Searched refs:pad_len (Results 1 – 25 of 50) sorted by relevance

12

/linux-6.1.9/fs/ubifs/
Dscan.c30 int pad_len = 0, max_pad_len = min_t(int, UBIFS_PAD_NODE_SZ, len); in scan_padding_bytes() local
35 while (pad_len < max_pad_len && *p++ == UBIFS_PADDING_BYTE) in scan_padding_bytes()
36 pad_len += 1; in scan_padding_bytes()
38 if (!pad_len || (pad_len & 7)) in scan_padding_bytes()
41 dbg_scan("%d padding bytes", pad_len); in scan_padding_bytes()
43 return pad_len; in scan_padding_bytes()
84 int pad_len = le32_to_cpu(pad->pad_len); in ubifs_scan_a_node() local
88 if (pad_len < 0 || in ubifs_scan_a_node()
89 offs + node_len + pad_len > c->leb_size) { in ubifs_scan_a_node()
99 if ((node_len + pad_len) & 7) { in ubifs_scan_a_node()
[all …]
Dcrypto.c43 unsigned int pad_len = round_up(in_len, UBIFS_CIPHER_BLOCK_SIZE); in ubifs_encrypt() local
46 ubifs_assert(c, pad_len <= *out_len); in ubifs_encrypt()
50 if (pad_len != in_len) in ubifs_encrypt()
51 memset(p + in_len, 0, pad_len - in_len); in ubifs_encrypt()
53 err = fscrypt_encrypt_block_inplace(inode, virt_to_page(p), pad_len, in ubifs_encrypt()
59 *out_len = pad_len; in ubifs_encrypt()
Drecovery.c432 int empty_offs, pad_len; in clean_buf() local
438 pad_len = empty_offs - *offs; in clean_buf()
439 ubifs_pad(c, *buf, pad_len); in clean_buf()
440 *offs += pad_len; in clean_buf()
441 *buf += pad_len; in clean_buf()
442 *len -= pad_len; in clean_buf()
538 int pad_len = len - ALIGN(endpt, 8); in fix_unclean_leb() local
540 if (pad_len > 0) { in fix_unclean_leb()
541 void *buf = sleb->buf + len - pad_len; in fix_unclean_leb()
543 ubifs_pad(c, buf, pad_len); in fix_unclean_leb()
[all …]
Dlpt_commit.c1035 int offs, pad_len; in get_pad_len() local
1040 pad_len = ALIGN(offs, c->min_io_size) - offs; in get_pad_len()
1041 return pad_len; in get_pad_len()
1118 int pad_len; in lpt_gc_lnum() local
1120 pad_len = get_pad_len(c, buf, len); in lpt_gc_lnum()
1121 if (pad_len) { in lpt_gc_lnum()
1122 buf += pad_len; in lpt_gc_lnum()
1123 len -= pad_len; in lpt_gc_lnum()
1613 int i, pad_len; in dbg_check_ltab_lnum() local
1615 pad_len = get_pad_len(c, p, len); in dbg_check_ltab_lnum()
[all …]
Dtnc_commit.c109 int len, gap_remains, gap_pos, written, pad_len; in fill_gap() local
144 pad_len = c->ileb_len - gap_pos; in fill_gap()
147 pad_len = gap_remains; in fill_gap()
149 lnum, gap_start, gap_end, gap_end - gap_start, written, pad_len); in fill_gap()
150 ubifs_pad(c, c->ileb_buf + gap_pos, pad_len); in fill_gap()
151 *dirt += pad_len; in fill_gap()
/linux-6.1.9/drivers/s390/crypto/
Dzcrypt_cca_key.h83 unsigned short pad_len; member
186 int short_len, long_len, pad_len, key_len, size; in zcrypt_type6_crt_key() local
201 pad_len = -(3 * long_len + 2 * short_len) & 7; in zcrypt_type6_crt_key()
202 key_len = 3 * long_len + 2 * short_len + pad_len + crt->inputdatalength; in zcrypt_type6_crt_key()
221 key->pvt.pad_len = pad_len; in zcrypt_type6_crt_key()
234 memset(key->key_parts + 3 * long_len + 2 * short_len + pad_len, in zcrypt_type6_crt_key()
Dzcrypt_msgtype6.c621 unsigned int reply_len, pad_len; in convert_type86_ica() local
664 pad_len = outputdatalength - reply_len; in convert_type86_ica()
665 if (pad_len > 0) { in convert_type86_ica()
666 if (pad_len < 10) in convert_type86_ica()
669 if (copy_to_user(outputdata, static_pad, pad_len - 1)) in convert_type86_ica()
671 if (put_user(0, outputdata + pad_len - 1)) in convert_type86_ica()
675 if (copy_to_user(outputdata + pad_len, data, reply_len)) in convert_type86_ica()
/linux-6.1.9/drivers/net/ethernet/qualcomm/
Dqca_uart.c203 u8 pad_len = 0; in qcauart_netdev_xmit() local
220 pad_len = QCAFRM_MIN_LEN - skb->len; in qcauart_netdev_xmit()
222 pos += qcafrm_create_header(pos, skb->len + pad_len); in qcauart_netdev_xmit()
227 if (pad_len) { in qcauart_netdev_xmit()
228 memset(pos, 0, pad_len); in qcauart_netdev_xmit()
229 pos += pad_len; in qcauart_netdev_xmit()
Dqca_spi.c732 u8 pad_len = 0; in qcaspi_netdev_xmit() local
735 pad_len = QCAFRM_MIN_LEN - skb->len; in qcaspi_netdev_xmit()
745 (skb_tailroom(skb) < QCAFRM_FOOTER_LEN + pad_len)) { in qcaspi_netdev_xmit()
747 QCAFRM_FOOTER_LEN + pad_len, GFP_ATOMIC); in qcaspi_netdev_xmit()
756 frame_len = skb->len + pad_len; in qcaspi_netdev_xmit()
761 if (pad_len) { in qcaspi_netdev_xmit()
762 ptmp = skb_put_zero(skb, pad_len); in qcaspi_netdev_xmit()
/linux-6.1.9/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-tx.c101 int pad_len; in mcp251xfd_tx_obj_from_skb() local
103 pad_len = len_sanitized - cfd->len; in mcp251xfd_tx_obj_from_skb()
104 if (pad_len) in mcp251xfd_tx_obj_from_skb()
105 memset(hw_tx_obj->data + cfd->len, 0x0, pad_len); in mcp251xfd_tx_obj_from_skb()
/linux-6.1.9/drivers/net/caif/
Dcaif_virtio.c221 u32 cfpkt_len, pad_len; in cfv_alloc_and_copy_skb() local
235 pad_len = (unsigned long)(frm + cfv->rx_hr) & (IP_HDR_ALIGN - 1); in cfv_alloc_and_copy_skb()
237 skb = netdev_alloc_skb(cfv->ndev, frm_len + pad_len); in cfv_alloc_and_copy_skb()
243 skb_reserve(skb, cfv->rx_hr + pad_len); in cfv_alloc_and_copy_skb()
485 u8 pad_len, hdr_ofs; in cfv_alloc_and_copy_to_shm() local
502 pad_len = hdr_ofs & (IP_HDR_ALIGN - 1); in cfv_alloc_and_copy_to_shm()
503 buf_info->size = cfv->tx_hr + skb->len + cfv->tx_tr + pad_len; in cfv_alloc_and_copy_to_shm()
511 skb_copy_bits(skb, 0, buf_info->vaddr + cfv->tx_hr + pad_len, skb->len); in cfv_alloc_and_copy_to_shm()
512 sg_init_one(sg, buf_info->vaddr + pad_len, in cfv_alloc_and_copy_to_shm()
/linux-6.1.9/arch/mips/cavium-octeon/crypto/
Docteon-sha1.c138 unsigned int pad_len; in octeon_sha1_final() local
149 pad_len = (index < 56) ? (56 - index) : ((64+56) - index); in octeon_sha1_final()
154 __octeon_sha1_update(sctx, padding, pad_len); in octeon_sha1_final()
Docteon-sha512.c144 unsigned int pad_len; in octeon_sha512_final() local
156 pad_len = (index < 112) ? (112 - index) : ((128+112) - index); in octeon_sha512_final()
161 __octeon_sha512_update(sctx, padding, pad_len); in octeon_sha512_final()
Docteon-sha256.c130 unsigned int pad_len; in octeon_sha256_final() local
141 pad_len = (index < 56) ? (56 - index) : ((64+56) - index); in octeon_sha256_final()
146 __octeon_sha256_update(sctx, padding, pad_len); in octeon_sha256_final()
/linux-6.1.9/drivers/crypto/bcm/
Dspu.c465 u32 pad_len = 0; in spum_gcm_ccm_pad_len() local
470 pad_len = ((data_size + m1) & ~m1) - data_size; in spum_gcm_ccm_pad_len()
472 return pad_len; in spum_gcm_ccm_pad_len()
606 hash_parms->pad_len; in spum_create_request()
619 hash_parms->pad_len); in spum_create_request()
637 auth_len -= hash_parms->pad_len; in spum_create_request()
638 cipher_len -= hash_parms->pad_len; in spum_create_request()
659 flow_log(" hash_pad_len:%u\n", hash_parms->pad_len); in spum_create_request()
Dcipher.c200 u8 tx_frag_num, unsigned int chunksize, u32 pad_len) in spu_skcipher_tx_sg_create() argument
233 if (pad_len) in spu_skcipher_tx_sg_create()
234 sg_set_buf(sg++, rctx->msg_buf.spu_req_pad, pad_len); in spu_skcipher_tx_sg_create()
316 u32 pad_len; /* total length of all padding */ in handle_skcipher_req() local
411 pad_len = stat_pad_len; in handle_skcipher_req()
412 if (pad_len) { in handle_skcipher_req()
423 packet_dump(" pad: ", rctx->msg_buf.spu_req_pad, pad_len); in handle_skcipher_req()
455 pad_len); in handle_skcipher_req()
583 unsigned int new_data_len, u32 pad_len) in spu_ahash_tx_sg_create() argument
615 if (pad_len) in spu_ahash_tx_sg_create()
[all …]
/linux-6.1.9/drivers/infiniband/hw/hfi1/
Dvnic_main.c218 u8 pad_len, q_idx = skb->queue_mapping; in hfi1_netdev_start_xmit() local
240 pad_len = -(skb->len + OPA_VNIC_ICRC_TAIL_LEN) & 0x7; in hfi1_netdev_start_xmit()
241 pad_len += OPA_VNIC_ICRC_TAIL_LEN; in hfi1_netdev_start_xmit()
248 pkt_len = (skb->len + pad_len) >> 2; in hfi1_netdev_start_xmit()
254 v_dbg("pbc 0x%016llX len %d pad_len %d\n", pbc, skb->len, pad_len); in hfi1_netdev_start_xmit()
255 err = dd->process_vnic_dma_send(dd, q_idx, vinfo, skb, pbc, pad_len); in hfi1_netdev_start_xmit()
/linux-6.1.9/lib/crypto/
Dsha256.c164 unsigned int index, pad_len; in __sha256_final() local
173 pad_len = (index < 56) ? (56 - index) : ((64+56) - index); in __sha256_final()
174 sha256_update(sctx, padding, pad_len); in __sha256_final()
/linux-6.1.9/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_encap.c473 u32 pad_len; in opa_vnic_wire_length() local
476 pad_len = -(skb->len + OPA_VNIC_ICRC_TAIL_LEN) & 0x7; in opa_vnic_wire_length()
477 pad_len += OPA_VNIC_ICRC_TAIL_LEN; in opa_vnic_wire_length()
479 return (skb->len + pad_len) >> 3; in opa_vnic_wire_length()
/linux-6.1.9/drivers/net/wwan/iosm/
Diosm_ipc_mux_codec.c433 u32 pad_len, packet_offset, adgh_len; in ipc_mux_dl_adgh_decode() local
469 pad_len = in ipc_mux_dl_adgh_decode()
471 packet_offset = sizeof(*adgh) + pad_len; in ipc_mux_dl_adgh_decode()
1071 u32 pad_len = 0; in ipc_mux_ul_adgh_encode() local
1087 pad_len = session->ul_head_pad_len - IPC_MEM_DL_ETH_OFFSET; in ipc_mux_ul_adgh_encode()
1110 aligned_size = ALIGN((pad_len + src_skb->len), 4); in ipc_mux_ul_adgh_encode()
1124 memcpy(adb->buf + offset + pad_len, src_skb->data, in ipc_mux_ul_adgh_encode()
1130 cpu_to_le16(sizeof(struct mux_adgh) + pad_len + in ipc_mux_ul_adgh_encode()
/linux-6.1.9/drivers/net/wireless/ti/wlcore/
Drx.h130 u8 pad_len; member
/linux-6.1.9/crypto/
Drsa-pkcs1pad.c179 unsigned int pad_len; in pkcs1pad_encrypt_sign_complete() local
187 pad_len = ctx->key_size - len; in pkcs1pad_encrypt_sign_complete()
190 if (likely(!pad_len)) in pkcs1pad_encrypt_sign_complete()
199 out_buf + pad_len, len); in pkcs1pad_encrypt_sign_complete()
/linux-6.1.9/drivers/net/ethernet/realtek/
Datp.c498 static void write_packet(long ioaddr, int length, unsigned char *packet, int pad_len, int data_mode) in write_packet() argument
503 pad_len++; in write_packet()
512 } while (--length > pad_len) ; in write_packet()
528 while (--length > pad_len) in write_packet()
/linux-6.1.9/drivers/net/wireless/ath/ath9k/
Dhif_usb.c579 u16 pad_len; in ath9k_hif_usb_rx_stream() local
599 pad_len = 4 - (pkt_len & 0x3); in ath9k_hif_usb_rx_stream()
600 if (pad_len == 4) in ath9k_hif_usb_rx_stream()
601 pad_len = 0; in ath9k_hif_usb_rx_stream()
604 index = index + 4 + pkt_len + pad_len; in ath9k_hif_usb_rx_stream()
611 hif_dev->rx_pad_len = pad_len; in ath9k_hif_usb_rx_stream()
/linux-6.1.9/drivers/scsi/bnx2i/
Dbnx2i_hwi.c1442 int pad_len; in bnx2i_process_login_resp() local
1472 pad_len = 0; in bnx2i_process_login_resp()
1474 pad_len = 4 - (pld_len % 4); in bnx2i_process_login_resp()
1476 if (pad_len) { in bnx2i_process_login_resp()
1478 for (i = 0; i < pad_len; i++) { in bnx2i_process_login_resp()
1510 int pad_len; in bnx2i_process_text_resp() local
1533 pad_len = 0; in bnx2i_process_text_resp()
1535 pad_len = 4 - (pld_len % 4); in bnx2i_process_text_resp()
1537 if (pad_len) { in bnx2i_process_text_resp()
1539 for (i = 0; i < pad_len; i++) { in bnx2i_process_text_resp()

12