/openbmc/linux/include/crypto/ |
H A D | sha512_base.h | 22 static inline int sha384_base_init(struct shash_desc *desc) in sha384_base_init() argument 24 struct sha512_state *sctx = shash_desc_ctx(desc); in sha384_base_init() 39 static inline int sha512_base_init(struct shash_desc *desc) in sha512_base_init() argument 41 struct sha512_state *sctx = shash_desc_ctx(desc); in sha512_base_init() 56 static inline int sha512_base_do_update(struct shash_desc *desc, in sha512_base_do_update() argument 61 struct sha512_state *sctx = shash_desc_ctx(desc); in sha512_base_do_update() 96 static inline int sha512_base_do_finalize(struct shash_desc *desc, in sha512_base_do_finalize() argument 100 struct sha512_state *sctx = shash_desc_ctx(desc); in sha512_base_do_finalize() 120 static inline int sha512_base_finish(struct shash_desc *desc, u8 *out) in sha512_base_finish() argument 122 unsigned int digest_size = crypto_shash_digestsize(desc->tfm); in sha512_base_finish() [all …]
|
/openbmc/linux/arch/x86/crypto/ |
H A D | crc32-pclmul_glue.c | 103 static int crc32_pclmul_init(struct shash_desc *desc) in crc32_pclmul_init() argument 105 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32_pclmul_init() 106 u32 *crcp = shash_desc_ctx(desc); in crc32_pclmul_init() 113 static int crc32_pclmul_update(struct shash_desc *desc, const u8 *data, in crc32_pclmul_update() argument 116 u32 *crcp = shash_desc_ctx(desc); in crc32_pclmul_update() 130 static int crc32_pclmul_finup(struct shash_desc *desc, const u8 *data, in crc32_pclmul_finup() argument 133 return __crc32_pclmul_finup(shash_desc_ctx(desc), data, len, out); in crc32_pclmul_finup() 136 static int crc32_pclmul_final(struct shash_desc *desc, u8 *out) in crc32_pclmul_final() argument 138 u32 *crcp = shash_desc_ctx(desc); in crc32_pclmul_final() 144 static int crc32_pclmul_digest(struct shash_desc *desc, const u8 *data, in crc32_pclmul_digest() argument [all …]
|
H A D | crct10dif-pclmul_glue.c | 43 static int chksum_init(struct shash_desc *desc) in chksum_init() argument 45 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_init() 52 static int chksum_update(struct shash_desc *desc, const u8 *data, in chksum_update() argument 55 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_update() 66 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final() argument 68 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_final() 85 static int chksum_finup(struct shash_desc *desc, const u8 *data, in chksum_finup() argument 88 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_finup() 93 static int chksum_digest(struct shash_desc *desc, const u8 *data, in chksum_digest() argument
|
/openbmc/linux/drivers/reset/ |
H A D | reset-qcom-pdc.c | 30 const struct qcom_pdc_reset_desc *desc; member 92 u32 mask = BIT(data->desc->resets[idx].bit); in qcom_pdc_control_assert() 94 return regmap_update_bits(data->regmap, data->desc->offset, mask, mask); in qcom_pdc_control_assert() 101 u32 mask = BIT(data->desc->resets[idx].bit); in qcom_pdc_control_deassert() 103 return regmap_update_bits(data->regmap, data->desc->offset, mask, 0); in qcom_pdc_control_deassert() 113 const struct qcom_pdc_reset_desc *desc; in qcom_pdc_reset_probe() local 119 desc = device_get_match_data(&pdev->dev); in qcom_pdc_reset_probe() 120 if (!desc) in qcom_pdc_reset_probe() 127 data->desc = desc; in qcom_pdc_reset_probe() 141 data->rcdev.nr_resets = desc->num_resets; in qcom_pdc_reset_probe()
|
H A D | reset-qcom-aoss.c | 26 const struct qcom_aoss_desc *desc; member 54 const struct qcom_aoss_reset_map *map = &data->desc->resets[idx]; in qcom_aoss_control_assert() 66 const struct qcom_aoss_reset_map *map = &data->desc->resets[idx]; in qcom_aoss_control_deassert() 92 const struct qcom_aoss_desc *desc; in qcom_aoss_reset_probe() local 95 desc = of_device_get_match_data(dev); in qcom_aoss_reset_probe() 96 if (!desc) in qcom_aoss_reset_probe() 103 data->desc = desc; in qcom_aoss_reset_probe() 111 data->rcdev.nr_resets = desc->num_resets; in qcom_aoss_reset_probe()
|
/openbmc/u-boot/lib/efi/ |
H A D | efi_stub.c | 167 uint64_t desc = *ptr; in get_codeseg32() local 175 ((desc >> GDT_BASE_HIGH_SHIFT) & GDT_BASE_HIGH_MASK) in get_codeseg32() 178 ((desc >> GDT_LIMIT_HIGH_SHIFT) & GDT_LIMIT_HIGH_MASK) in get_codeseg32() 182 if ((desc & GDT_PRESENT) && (desc & GDT_NOTSYS) && in get_codeseg32() 183 !(desc & GDT_LONG) && (desc & GDT_4KB) && in get_codeseg32() 184 (desc & GDT_32BIT) && (desc & GDT_CODE) && in get_codeseg32() 276 struct efi_mem_desc *desc; in efi_main() local 310 desc = efi_malloc(priv, size, &ret); in efi_main() 311 if (!desc) { in efi_main() 352 size = sizeof(desc); in efi_main() [all …]
|
/openbmc/qemu/target/s390x/tcg/ |
H A D | vec_string_helper.c | 138 uint32_t desc) \ 140 const bool in = extract32(simd_data(desc), 3, 1); \ 141 const bool rt = extract32(simd_data(desc), 2, 1); \ 142 const bool zs = extract32(simd_data(desc), 1, 1); \ 152 CPUS390XState *env, uint32_t desc) \ 154 const bool in = extract32(simd_data(desc), 3, 1); \ 155 const bool rt = extract32(simd_data(desc), 2, 1); \ 156 const bool zs = extract32(simd_data(desc), 1, 1); \ 199 uint32_t desc) \ 543 const void *v3, const void *v4, CPUS390XState *env, uint32_t desc) \ [all …]
|
/openbmc/linux/drivers/gpu/drm/gud/ |
H A D | gud_drv.c | 84 buf = kmalloc(sizeof(*desc), GFP_KERNEL); in gud_get_display_descriptor() 89 memcpy(desc, buf, sizeof(*desc)); in gud_get_display_descriptor() 93 if (ret != sizeof(*desc)) in gud_get_display_descriptor() 101 desc->version, le32_to_cpu(desc->flags), desc->compression, in gud_get_display_descriptor() 104 if (!desc->version || !desc->max_width || !desc->max_height || in gud_get_display_descriptor() 105 le32_to_cpu(desc->min_width) > le32_to_cpu(desc->max_width) || in gud_get_display_descriptor() 106 le32_to_cpu(desc->min_height) > le32_to_cpu(desc->max_height)) in gud_get_display_descriptor() 381 .desc = "Generic USB Display", 450 if (desc.version > 1) { in gud_probe() 465 gdrm->flags = le32_to_cpu(desc.flags); in gud_probe() [all …]
|
/openbmc/linux/sound/usb/ |
H A D | midi2.c | 540 hostif->desc.bInterfaceNumber, hostif->desc.bAlternateSetting); in get_group_terminal_block_descs() 575 if (desc->bLength >= sizeof(*desc) && in find_group_terminal_block() 578 desc->bGrpTrmBlkID == id) in find_group_terminal_block() 579 return desc; in find_group_terminal_block() 595 switch (desc->bMIDIProtocol) { in parse_group_terminal_block() 652 if (!desc) in parse_group_terminal_blocks() 831 if (!desc) in create_gtb_block() 836 blk, desc->bGrpTrmBlkType, desc->nGroupTrm, in create_gtb_block() 837 desc->nNumGroupTrm, desc->bMIDIProtocol, in create_gtb_block() 860 desc->nGroupTrm, desc->nNumGroupTrm, in create_gtb_block() [all …]
|
/openbmc/linux/drivers/dma/ |
H A D | tegra210-adma.c | 362 if (!desc) { in tegra_adma_start() 381 tdc->desc = desc; in tegra_adma_start() 386 struct tegra_adma_desc *desc = tdc->desc; in tegra_adma_get_residue() local 402 return desc->buf_len - (periods_remaining * desc->period_len); in tegra_adma_get_residue() 453 struct tegra_adma_desc *desc = tdc->desc; in tegra_adma_pause() local 475 struct tegra_adma_desc *desc = tdc->desc; in tegra_adma_resume() local 493 if (tdc->desc) in tegra_adma_terminate_all() 525 } else if (tdc->desc && tdc->desc->vd.tx.cookie == cookie) { in tegra_adma_tx_status() 650 desc = kzalloc(sizeof(*desc), GFP_NOWAIT); in tegra_adma_prep_dma_cyclic() 651 if (!desc) in tegra_adma_prep_dma_cyclic() [all …]
|
/openbmc/linux/arch/sh/kernel/cpu/irq/ |
H A D | ipr.c | 52 void register_ipr_controller(struct ipr_desc *desc) in register_ipr_controller() argument 56 desc->chip.irq_mask = disable_ipr_irq; in register_ipr_controller() 57 desc->chip.irq_unmask = enable_ipr_irq; in register_ipr_controller() 59 for (i = 0; i < desc->nr_irqs; i++) { in register_ipr_controller() 60 struct ipr_data *p = desc->ipr_data + i; in register_ipr_controller() 63 BUG_ON(p->ipr_idx >= desc->nr_offsets); in register_ipr_controller() 64 BUG_ON(!desc->ipr_offsets[p->ipr_idx]); in register_ipr_controller() 74 irq_set_chip_and_handler_name(p->irq, &desc->chip, in register_ipr_controller()
|
/openbmc/linux/drivers/net/ethernet/ |
H A D | ec_bhf.c | 172 u32 len = le16_to_cpu(desc->header.len) + sizeof(desc->header); in ec_bhf_send_packet() 209 while (ec_bhf_pkt_received(desc)) { in ec_bhf_process_rx() 212 u8 *data = desc->data; in ec_bhf_process_rx() 228 desc->header.recv = 0; in ec_bhf_process_rx() 230 ec_bhf_add_rx_desc(priv, desc); in ec_bhf_process_rx() 286 struct tx_desc *desc; in ec_bhf_start_xmit() local 294 memset(&desc->header, 0, sizeof(desc->header)); in ec_bhf_start_xmit() 296 desc->header.port = TX_HDR_PORT_0; in ec_bhf_start_xmit() 298 ec_bhf_send_packet(priv, desc); in ec_bhf_start_xmit() 387 desc->header.recv = 0; in ec_bhf_setup_rx_descs() [all …]
|
/openbmc/linux/arch/s390/crypto/ |
H A D | sha3_256_s390.c | 20 static int sha3_256_init(struct shash_desc *desc) in sha3_256_init() argument 22 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_256_init() 31 static int sha3_256_export(struct shash_desc *desc, void *out) in sha3_256_export() argument 33 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_256_export() 43 static int sha3_256_import(struct shash_desc *desc, const void *in) in sha3_256_import() argument 45 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_256_import() 56 static int sha3_224_import(struct shash_desc *desc, const void *in) in sha3_224_import() argument 58 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_224_import() 87 static int sha3_224_init(struct shash_desc *desc) in sha3_224_init() argument 89 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_224_init()
|
/openbmc/linux/sound/soc/qcom/qdsp6/ |
H A D | q6dsp-lpass-clocks.c | 34 const struct q6dsp_clk_desc *desc; member 42 return cc->desc->lpass_set_clk(clk->dev, clk->q6dsp_clk_id, clk->attributes, in clk_q6dsp_prepare() 51 cc->desc->lpass_set_clk(clk->dev, clk->q6dsp_clk_id, clk->attributes, in clk_q6dsp_unprepare() 92 return cc->desc->lpass_vote_clk(clk->dev, clk->q6dsp_clk_id, in clk_vote_q6dsp_block() 101 cc->desc->lpass_unvote_clk(clk->dev, clk->q6dsp_clk_id, clk->handle); in clk_unvote_q6dsp_block() 135 const struct q6dsp_clk_desc *desc; in q6dsp_clock_dev_probe() local 142 desc = of_device_get_match_data(&pdev->dev); in q6dsp_clock_dev_probe() 143 if (!desc) in q6dsp_clock_dev_probe() 146 cc->desc = desc; in q6dsp_clock_dev_probe() 148 q6dsp_clks = desc->clks; in q6dsp_clock_dev_probe() [all …]
|
/openbmc/linux/drivers/hte/ |
H A D | hte-tegra194-test.c | 56 struct hte_ts_desc *desc; member 64 struct hte_ts_desc *desc = p; in process_hw_ts() local 73 desc->attr.line_id, ts->seq, ts->tsc, in process_hw_ts() 163 hte.desc = devm_kzalloc(hte.pdev, sizeof(*hte.desc) * cnt, GFP_KERNEL); in tegra_hte_test_probe() 164 if (!hte.desc) { in tegra_hte_test_probe() 177 hte_init_line_attr(&hte.desc[i], 0, 0, NULL, in tegra_hte_test_probe() 184 hte_init_line_attr(&hte.desc[i], 0, 0, NULL, NULL); in tegra_hte_test_probe() 186 ret = hte_ts_get(hte.pdev, &hte.desc[i], i); in tegra_hte_test_probe() 190 ret = devm_hte_request_ts_ns(hte.pdev, &hte.desc[i], in tegra_hte_test_probe() 192 &hte.desc[i]); in tegra_hte_test_probe() [all …]
|
/openbmc/qemu/target/arm/tcg/ |
H A D | sme_helper.c | 120 int i, oprsz = simd_oprsz(desc) / 8; in DO_MOVA_C() 134 int i, oprsz = simd_oprsz(desc) / 16; in HELPER() 177 int i, oprsz = simd_oprsz(desc) / 8; in DO_MOVA_Z() 191 int i, oprsz = simd_oprsz(desc) / 16; in HELPER() 441 const intptr_t reg_max = simd_oprsz(desc); in DO_LD() 581 desc = extract32(desc, 0, SIMD_DATA_SHIFT + SVE_MTEDESC_SHIFT); in sme_ld1_mte() 646 const intptr_t reg_max = simd_oprsz(desc); in DO_LD() 766 desc = extract32(desc, 0, SIMD_DATA_SHIFT + SVE_MTEDESC_SHIFT); in sme_st1_mte() 910 uint32_t neg = simd_data(desc) << 31; in HELPER() 1153 bool neg = simd_data(desc); in do_imopa_s() [all …]
|
/openbmc/linux/drivers/gpu/drm/panel/ |
H A D | panel-edp.c | 332 if (!panel->desc) in panel_edp_get_non_edid_modes() 356 WARN_ON(panel->desc->num_timings && panel->desc->num_modes); in panel_edp_get_non_edid_modes() 626 if (p->desc->num_timings || p->desc->num_modes) in panel_edp_get_modes() 704 const struct panel_desc *desc = panel->desc; in panel_edp_parse_panel_timing_node() local 748 struct panel_desc *desc; in generic_edp_panel_probe() local 756 desc = devm_kzalloc(dev, sizeof(*desc), GFP_KERNEL); in generic_edp_panel_probe() 757 if (!desc) in generic_edp_panel_probe() 759 panel->desc = desc; in generic_edp_panel_probe() 847 panel->desc = desc; in panel_edp_probe() 913 desc = panel->desc; in panel_edp_probe() [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/gt/uc/ |
H A D | intel_guc_ct.c | 130 memset(desc, 0, sizeof(*desc)); in guc_ct_buffer_desc_init() 152 ctb->desc = desc; in guc_ct_buffer_init() 258 desc = blob; in intel_guc_ct_init() 329 desc = base + ptrdiff(ct->ctbs.recv.desc, blob); in intel_guc_ct_enable() 336 desc = base + ptrdiff(ct->ctbs.send.desc, blob); in intel_guc_ct_enable() 409 struct guc_ct_buffer_desc *desc = ctb->desc; in ct_write() local 426 desc->tail, tail); in ct_write() 491 desc->head, desc->tail, desc->status); in ct_write() 599 struct guc_ct_buffer_desc *desc = ctb->desc; in h2g_has_room() local 862 struct guc_ct_buffer_desc *desc = ctb->desc; in ct_read() local [all …]
|
/openbmc/linux/drivers/infiniband/ulp/isert/ |
H A D | ib_isert.h | 101 static void *isert_get_iser_hdr(struct iser_rx_desc *desc) in isert_get_iser_hdr() argument 103 return PTR_ALIGN(desc->buf + ISER_HEADERS_LEN, 512) - ISER_HEADERS_LEN; in isert_get_iser_hdr() 106 static size_t isert_get_hdr_offset(struct iser_rx_desc *desc) in isert_get_hdr_offset() argument 108 return isert_get_iser_hdr(desc) - (void *)desc->buf; in isert_get_hdr_offset() 111 static void *isert_get_iscsi_hdr(struct iser_rx_desc *desc) in isert_get_iscsi_hdr() argument 113 return isert_get_iser_hdr(desc) + sizeof(struct iser_ctrl); in isert_get_iscsi_hdr() 116 static void *isert_get_data(struct iser_rx_desc *desc) in isert_get_data() argument 118 void *data = isert_get_iser_hdr(desc) + ISER_HEADERS_LEN; in isert_get_data() 158 static inline struct isert_cmd *tx_desc_to_cmd(struct iser_tx_desc *desc) in tx_desc_to_cmd() argument 160 return container_of(desc, struct isert_cmd, tx_desc); in tx_desc_to_cmd()
|
/openbmc/qemu/target/i386/hvf/ |
H A D | x86.c | 50 struct x86_segment_descriptor *desc, in x86_read_segment_descriptor() argument 56 memset(desc, 0, sizeof(*desc)); in x86_read_segment_descriptor() 75 vmx_read_mem(cpu, desc, base + sel.index * 8, sizeof(*desc)); in x86_read_segment_descriptor() 80 struct x86_segment_descriptor *desc, in x86_write_segment_descriptor() argument 98 vmx_write_mem(cpu, base + sel.index * 8, desc, sizeof(*desc)); in x86_write_segment_descriptor() 143 struct vmx_segment desc; in x86_is_long64_mode() local 144 vmx_read_segment_descriptor(cpu, &desc, R_CS); in x86_is_long64_mode() 146 return x86_is_long_mode(cpu) && ((desc.ar >> 13) & 1); in x86_is_long64_mode()
|
/openbmc/linux/arch/arm64/crypto/ |
H A D | sha512-ce-glue.c | 54 static int sha512_ce_update(struct shash_desc *desc, const u8 *data, in sha512_ce_update() argument 60 sha512_base_do_update(desc, data, len, fn); in sha512_ce_update() 64 static int sha512_ce_finup(struct shash_desc *desc, const u8 *data, in sha512_ce_finup() argument 70 sha512_base_do_update(desc, data, len, fn); in sha512_ce_finup() 71 sha512_base_do_finalize(desc, fn); in sha512_ce_finup() 72 return sha512_base_finish(desc, out); in sha512_ce_finup() 75 static int sha512_ce_final(struct shash_desc *desc, u8 *out) in sha512_ce_final() argument 80 sha512_base_do_finalize(desc, fn); in sha512_ce_final() 81 return sha512_base_finish(desc, out); in sha512_ce_final()
|
H A D | sha512-glue.c | 32 static int sha512_update(struct shash_desc *desc, const u8 *data, in sha512_update() argument 35 return sha512_base_do_update(desc, data, len, in sha512_update() 39 static int sha512_finup(struct shash_desc *desc, const u8 *data, in sha512_finup() argument 43 sha512_base_do_update(desc, data, len, in sha512_finup() 45 sha512_base_do_finalize(desc, __sha512_block_data_order); in sha512_finup() 47 return sha512_base_finish(desc, out); in sha512_finup() 50 static int sha512_final(struct shash_desc *desc, u8 *out) in sha512_final() argument 52 return sha512_finup(desc, NULL, 0, out); in sha512_final()
|
/openbmc/linux/drivers/staging/greybus/ |
H A D | audio_manager_sysfs.c | 18 struct gb_audio_manager_module_descriptor desc = { {0} }; in manager_sysfs_add_store() local 23 desc.name, &desc.vid, &desc.pid, &desc.intf_id, in manager_sysfs_add_store() 24 &desc.ip_devices, &desc.op_devices); in manager_sysfs_add_store() 29 num = gb_audio_manager_add(&desc); in manager_sysfs_add_store()
|
/openbmc/u-boot/drivers/video/ |
H A D | atmel_hlcdfb.c | 61 struct lcd_dma_desc *desc; in lcd_ctrl_init() local 199 desc->address = (u32)lcdbase; in lcd_ctrl_init() 203 desc->next = (u32)desc; in lcd_ctrl_init() 206 flush_dcache_range((u32)desc, (u32)desc + sizeof(*desc)); in lcd_ctrl_init() 295 struct lcd_dma_desc *desc; in atmel_hlcdc_init() local 428 desc = memalign(CONFIG_SYS_CACHELINE_SIZE, sizeof(*desc)); in atmel_hlcdc_init() 429 if (!desc) in atmel_hlcdc_init() 432 desc->address = (u32)uc_plat->base; in atmel_hlcdc_init() 437 desc->next = (u32)desc; in atmel_hlcdc_init() 440 flush_dcache_range((u32)desc, in atmel_hlcdc_init() [all …]
|
/openbmc/linux/drivers/gpu/drm/udl/ |
H A D | udl_main.c | 31 char *desc; in udl_parse_vendor_descriptor() local 40 desc = buf; in udl_parse_vendor_descriptor() 46 total_len, desc); in udl_parse_vendor_descriptor() 51 (desc[3] != 0x00) || in udl_parse_vendor_descriptor() 55 desc_end = desc + total_len; in udl_parse_vendor_descriptor() 58 while (desc < desc_end) { in udl_parse_vendor_descriptor() 62 key = le16_to_cpu(*((u16 *) desc)); in udl_parse_vendor_descriptor() 63 desc += sizeof(u16); in udl_parse_vendor_descriptor() 64 length = *desc; in udl_parse_vendor_descriptor() 65 desc++; in udl_parse_vendor_descriptor() [all …]
|