/drivers/firmware/efi/libstub/ |
D | vsprintf.c | 245 size_t len, clen; in utf16s_utf8nlen() local 247 for (len = 0; len < maxlen && *s16; len += clen) { in utf16s_utf8nlen() 251 clen = 1 + (c0 >= 0x80) + (c0 >= 0x800); in utf16s_utf8nlen() 252 if (len + clen > maxlen) in utf16s_utf8nlen() 261 if (len + clen == maxlen) in utf16s_utf8nlen() 265 ++clen; in utf16s_utf8nlen() 511 size_t clen; in vsnprintf() local 519 clen = 1 + (c32 >= 0x800) + (c32 >= 0x10000); in vsnprintf() 521 len -= clen; in vsnprintf() 526 pos += clen; in vsnprintf() [all …]
|
D | efi-stub-helper.c | 50 size_t clen, i; in utf8_to_utf32() local 57 for (clen = 0; cx & 0x80; ++clen) in utf8_to_utf32() 65 if (clen < 2 || clen > 4) in utf8_to_utf32() 68 c32 = cx >> clen--; in utf8_to_utf32() 69 for (i = 0; i < clen; ++i) { in utf8_to_utf32() 84 clen != (c32 >= 0x80) + (c32 >= 0x800) + (c32 >= 0x10000)) in utf8_to_utf32() 86 *s8 += clen; in utf8_to_utf32()
|
/drivers/net/ethernet/amd/ |
D | declance.c | 332 unsigned short clen; in cp_to_buf() local 339 clen = len >> 1; in cp_to_buf() 343 while (clen--) { in cp_to_buf() 348 clen = len & 1; in cp_to_buf() 351 while (clen--) { in cp_to_buf() 358 clen = len >> 4; in cp_to_buf() 361 while (clen--) { in cp_to_buf() 376 clen = len & 15; in cp_to_buf() 379 while (clen--) { in cp_to_buf() 391 unsigned short clen; in cp_from_buf() local [all …]
|
/drivers/acpi/ |
D | tables.c | 605 phys_addr_t slop, clen; in acpi_table_upgrade() local 612 clen = size; in acpi_table_upgrade() 613 if (clen > MAP_CHUNK_SIZE - slop) in acpi_table_upgrade() 614 clen = MAP_CHUNK_SIZE - slop; in acpi_table_upgrade() 616 clen + slop); in acpi_table_upgrade() 617 memcpy(dest_p + slop, src_p, clen); in acpi_table_upgrade() 618 early_memunmap(dest_p, clen + slop); in acpi_table_upgrade() 619 src_p += clen; in acpi_table_upgrade() 620 dest_addr += clen; in acpi_table_upgrade() 621 size -= clen; in acpi_table_upgrade()
|
/drivers/crypto/ |
D | omap-aes-gcm.c | 45 int alen, clen, i, ret = 0, nsg; in omap_aes_gcm_done_task() local 49 clen = ALIGN(dd->total, AES_BLOCK_SIZE); in omap_aes_gcm_done_task() 73 omap_crypto_cleanup(&dd->in_sgl[nsg], NULL, 0, clen, in omap_aes_gcm_done_task() 91 int alen, clen, cryptlen, assoclen, ret; in omap_aes_gcm_copy_buffers() local 108 clen = ALIGN(cryptlen, AES_BLOCK_SIZE); in omap_aes_gcm_copy_buffers() 168 dd->in_sg_len = sg_nents_for_len(dd->in_sg, alen + clen); in omap_aes_gcm_copy_buffers() 169 dd->out_sg_len = sg_nents_for_len(dd->out_sg, clen); in omap_aes_gcm_copy_buffers()
|
D | mxs-dcp.c | 315 unsigned int i, len, clen, tlen = 0; in mxs_dcp_aes_block_crypt() local 344 clen = out_off - actx->fill; in mxs_dcp_aes_block_crypt() 346 clen = len; in mxs_dcp_aes_block_crypt() 348 memcpy(in_buf + actx->fill, src_buf, clen); in mxs_dcp_aes_block_crypt() 349 len -= clen; in mxs_dcp_aes_block_crypt() 350 src_buf += clen; in mxs_dcp_aes_block_crypt() 351 actx->fill += clen; in mxs_dcp_aes_block_crypt() 629 unsigned int i, len, clen, oft = 0; in dcp_sha_req_to_buf() local 641 clen = DCP_BUF_SZ - actx->fill; in dcp_sha_req_to_buf() 643 clen = len; in dcp_sha_req_to_buf() [all …]
|
/drivers/tty/ |
D | n_gsm.c | 1145 u32 modem, int clen) in gsm_process_modem() argument 1156 if (clen == 2) in gsm_process_modem() 1206 static void gsm_control_modem(struct gsm_mux *gsm, const u8 *data, int clen) in gsm_control_modem() argument 1212 int len = clen; in gsm_control_modem() 1248 gsm_process_modem(tty, dlci, modem, clen); in gsm_control_modem() 1253 gsm_control_reply(gsm, CMD_MSC, data, clen); in gsm_control_modem() 1267 static void gsm_control_rls(struct gsm_mux *gsm, const u8 *data, int clen) in gsm_control_rls() argument 1272 int len = clen; in gsm_control_rls() 1304 gsm_control_reply(gsm, CMD_RLS, data, clen); in gsm_control_rls() 1322 const u8 *data, int clen) in gsm_control_message() argument [all …]
|
/drivers/net/wireless/ath/carl9170/ |
D | rx.c | 877 unsigned int tlen, wlen = 0, clen = 0; in carl9170_rx_stream() local 886 clen = le16_to_cpu(rx_stream->length); in carl9170_rx_stream() 887 wlen = ALIGN(clen, 4); in carl9170_rx_stream() 963 ar->rx_failover_missing = clen - tlen; in carl9170_rx_stream() 966 __carl9170_rx(ar, rx_stream->payload, clen); in carl9170_rx_stream() 985 "data:%d, rx:%d, pending:%d ]\n", clen, wlen, tlen, in carl9170_rx_stream()
|
/drivers/net/ethernet/marvell/prestera/ |
D | prestera_hw.c | 325 struct prestera_msg_cmd *cmd, size_t clen, in __prestera_cmd_ret() argument 334 err = dev->send_req(dev, cmd, clen, ret, rlen, waitms); in __prestera_cmd_ret() 348 struct prestera_msg_cmd *cmd, size_t clen, in prestera_cmd_ret() argument 351 return __prestera_cmd_ret(sw, type, cmd, clen, ret, rlen, 0); in prestera_cmd_ret() 356 struct prestera_msg_cmd *cmd, size_t clen, in prestera_cmd_ret_wait() argument 360 return __prestera_cmd_ret(sw, type, cmd, clen, ret, rlen, waitms); in prestera_cmd_ret_wait() 365 struct prestera_msg_cmd *cmd, size_t clen) in prestera_cmd() argument 369 return prestera_cmd_ret(sw, type, cmd, clen, &resp.ret, sizeof(resp)); in prestera_cmd()
|
/drivers/macintosh/ |
D | smu.c | 918 unsigned int clen = min(len, chunk); in smu_read_datablock() local 930 params[6] = clen; in smu_read_datablock() 938 if (cmd.reply_len != clen) { in smu_read_datablock() 941 cmd.reply_len, clen); in smu_read_datablock() 944 len -= clen; in smu_read_datablock() 945 addr += clen; in smu_read_datablock() 946 dest += clen; in smu_read_datablock()
|
/drivers/scsi/ |
D | gdth_ioctl.h | 89 u32 clen; /* SCSI cmd. length(6,10,12) */ member 108 u32 clen; /* SCSI cmd. length(6,..,16) */ member
|
D | gdth.c | 2195 cmdp->u.raw64.clen = scp->cmd_len; in gdth_fill_raw_cmd() 2211 cmdp->u.raw.clen = scp->cmd_len; in gdth_fill_raw_cmd() 3519 gen->command.u.raw64.clen = gen->command.u.raw.clen; in gdth_ioc_scsiraw()
|
/drivers/scsi/fcoe/ |
D | fcoe_transport.c | 313 unsigned long off, len, clen; in fcoe_fc_crc() local 324 clen = min(len, PAGE_SIZE - (off & ~PAGE_MASK)); in fcoe_fc_crc() 327 crc = crc32(crc, data + (off & ~PAGE_MASK), clen); in fcoe_fc_crc() 329 off += clen; in fcoe_fc_crc() 330 len -= clen; in fcoe_fc_crc()
|
/drivers/net/wireless/ath/ath9k/ |
D | dfs.c | 340 int clen = datalen - 3; in ath9k_dfs_process_phyerr() local 341 pe.chirp = ath9k_check_chirping(sc, data, clen, is_ctl, is_ext); in ath9k_dfs_process_phyerr()
|
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec_rxtx.c | 252 unsigned int blksize, clen, alen, plen; in mlx5e_ipsec_set_state() local 262 clen = ALIGN(skb->len + 2, blksize); in mlx5e_ipsec_set_state() 263 plen = max_t(u32, clen - skb->len, 4); in mlx5e_ipsec_set_state()
|
/drivers/md/ |
D | raid5.c | 1328 int clen; in async_copy_data() local 1338 clen = RAID5_STRIPE_SIZE(conf) - page_offset; in async_copy_data() 1340 clen = len; in async_copy_data() 1342 if (clen > 0) { in async_copy_data() 1348 clen == RAID5_STRIPE_SIZE(conf) && in async_copy_data() 1353 b_offset, clen, &submit); in async_copy_data() 1356 page_offset + poff, clen, &submit); in async_copy_data() 1361 if (clen < len) /* hit end of page */ in async_copy_data()
|