/openbmc/linux/drivers/hv/ |
H A D | ring_buffer.c | 353 WRITE_ONCE(desc->trans_id, __trans_id); in hv_ringbuffer_write() 392 struct vmpacket_descriptor *desc; in hv_ringbuffer_read() local 402 desc = hv_pkt_iter_first(channel); in hv_ringbuffer_read() 403 if (desc == NULL) { in hv_ringbuffer_read() 411 offset = raw ? 0 : (desc->offset8 << 3); in hv_ringbuffer_read() 412 packetlen = (desc->len8 << 3) - offset; in hv_ringbuffer_read() 414 *requestid = desc->trans_id; in hv_ringbuffer_read() 423 __hv_pkt_iter_next(channel, desc); in hv_ringbuffer_read() 482 pkt_len = READ_ONCE(desc->len8) << 3; in hv_pkt_iter_first() 501 memcpy(desc_copy, desc, pkt_len); in hv_pkt_iter_first() [all …]
|
/openbmc/linux/net/sunrpc/auth_gss/ |
H A D | gss_krb5_keys.c | 309 SHASH_DESC_ON_STACK(desc, tfm); in krb5_cmac_Ki() 314 desc->tfm = tfm; in krb5_cmac_Ki() 315 ret = crypto_shash_init(desc); in krb5_cmac_Ki() 322 ret = crypto_shash_update(desc, (u8 *)&i, sizeof(i)); in krb5_cmac_Ki() 334 ret = crypto_shash_final(desc, step->data); in krb5_cmac_Ki() 339 shash_desc_zero(desc); in krb5_cmac_Ki() 448 SHASH_DESC_ON_STACK(desc, tfm); in krb5_hmac_K1() 453 desc->tfm = tfm; in krb5_hmac_K1() 454 ret = crypto_shash_init(desc); in krb5_hmac_K1() 469 ret = crypto_shash_final(desc, K1->data); in krb5_hmac_K1() [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | bd9576-regulator.c | 137 const struct regulator_desc *desc = rdev->desc; in bd957x_vout34_list_voltage() local 153 const struct regulator_desc *desc = rdev->desc; in bd957x_list_voltage() local 323 r = container_of(rdev->desc, struct bd957x_regulator_data, desc); in bd9576_set_ocp() 582 data = container_of(desc, struct bd957x_regulator_data, desc); in vouts1_get_fet_res() 598 .desc = { 621 .desc = { 644 .desc = { 666 .desc = { 689 .desc = { 712 .desc = { [all …]
|
H A D | wm831x-isink.c | 27 struct regulator_desc desc; member 144 isink->desc.name = isink->name; in wm831x_isink_probe() 145 isink->desc.id = id; in wm831x_isink_probe() 146 isink->desc.ops = &wm831x_isink_ops; in wm831x_isink_probe() 147 isink->desc.type = REGULATOR_CURRENT; in wm831x_isink_probe() 148 isink->desc.owner = THIS_MODULE; in wm831x_isink_probe() 149 isink->desc.curr_table = wm831x_isinkv_values, in wm831x_isink_probe() 150 isink->desc.n_current_limits = ARRAY_SIZE(wm831x_isinkv_values), in wm831x_isink_probe() 151 isink->desc.csel_reg = isink->reg, in wm831x_isink_probe() 152 isink->desc.csel_mask = WM831X_CS1_ISEL_MASK, in wm831x_isink_probe() [all …]
|
/openbmc/linux/include/crypto/ |
H A D | sha1_base.h | 21 static inline int sha1_base_init(struct shash_desc *desc) in sha1_base_init() argument 23 struct sha1_state *sctx = shash_desc_ctx(desc); in sha1_base_init() 35 static inline int sha1_base_do_update(struct shash_desc *desc, in sha1_base_do_update() argument 40 struct sha1_state *sctx = shash_desc_ctx(desc); in sha1_base_do_update() 73 static inline int sha1_base_do_finalize(struct shash_desc *desc, in sha1_base_do_finalize() argument 77 struct sha1_state *sctx = shash_desc_ctx(desc); in sha1_base_do_finalize() 96 static inline int sha1_base_finish(struct shash_desc *desc, u8 *out) in sha1_base_finish() argument 98 struct sha1_state *sctx = shash_desc_ctx(desc); in sha1_base_finish()
|
H A D | sm3_base.h | 21 static inline int sm3_base_init(struct shash_desc *desc) in sm3_base_init() argument 23 struct sm3_state *sctx = shash_desc_ctx(desc); in sm3_base_init() 38 static inline int sm3_base_do_update(struct shash_desc *desc, in sm3_base_do_update() argument 43 struct sm3_state *sctx = shash_desc_ctx(desc); in sm3_base_do_update() 76 static inline int sm3_base_do_finalize(struct shash_desc *desc, in sm3_base_do_finalize() argument 80 struct sm3_state *sctx = shash_desc_ctx(desc); in sm3_base_do_finalize() 99 static inline int sm3_base_finish(struct shash_desc *desc, u8 *out) in sm3_base_finish() argument 101 struct sm3_state *sctx = shash_desc_ctx(desc); in sm3_base_finish()
|
/openbmc/qemu/block/ |
H A D | vhdx-log.c | 40 VHDXLogDescriptor desc[]; member 347 VHDXLogDescriptor desc; in vhdx_log_read_desc() local 382 desc = desc_entries->desc[i]; in vhdx_log_read_desc() 383 vhdx_log_desc_le_import(&desc); in vhdx_log_read_desc() 385 desc_entries->desc[i] = desc; in vhdx_log_read_desc() 443 if (seq != desc->sequence_number) { in vhdx_log_flush_desc() 464 desc->signature); in vhdx_log_flush_desc() 469 file_offset = desc->file_offset; in vhdx_log_flush_desc() 844 desc->leading_bytes = cpu_to_le64(desc->leading_bytes); in vhdx_log_raw_to_le_sector() 848 desc->trailing_bytes = cpu_to_le32(desc->trailing_bytes); in vhdx_log_raw_to_le_sector() [all …]
|
/openbmc/linux/drivers/iommu/intel/ |
H A D | svm.c | 484 struct qi_desc desc[3]; in intel_drain_pasid_prq() local 531 memset(desc, 0, sizeof(desc)); in intel_drain_pasid_prq() 570 struct page_req_dsc *desc) in intel_svm_prq_report() argument 585 if (desc->lpig) in intel_svm_prq_report() 587 if (desc->pasid_present) { in intel_svm_prq_report() 616 struct qi_desc desc; in handle_bad_prq_event() local 645 desc.qw2 = 0; in handle_bad_prq_event() 646 desc.qw3 = 0; in handle_bad_prq_event() 795 struct qi_desc desc; in intel_svm_page_response() local 803 desc.qw2 = 0; in intel_svm_page_response() [all …]
|
/openbmc/qemu/hw/net/ |
H A D | npcm7xx_emc.c | 219 desc->flags = le32_to_cpu(desc->flags); in emc_read_tx_desc() 220 desc->txbsa = le32_to_cpu(desc->txbsa); in emc_read_tx_desc() 221 desc->status_and_length = le32_to_cpu(desc->status_and_length); in emc_read_tx_desc() 222 desc->ntxdsa = le32_to_cpu(desc->ntxdsa); in emc_read_tx_desc() 230 le_desc.flags = cpu_to_le32(desc->flags); in emc_write_tx_desc() 231 le_desc.txbsa = cpu_to_le32(desc->txbsa); in emc_write_tx_desc() 251 desc->status_and_length = le32_to_cpu(desc->status_and_length); in emc_read_rx_desc() 252 desc->rxbsa = le32_to_cpu(desc->rxbsa); in emc_read_rx_desc() 253 desc->reserved = le32_to_cpu(desc->reserved); in emc_read_rx_desc() 254 desc->nrxdsa = le32_to_cpu(desc->nrxdsa); in emc_read_rx_desc() [all …]
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | ipsec.c | 569 struct xfrm_desc desc; member 578 tr.desc = *d; in write_test_result() 1753 memcpy(&msg.body.xfrm_desc, desc, sizeof(*desc)); in child_serv() 1763 memcpy(&msg.body.xfrm_desc, desc, sizeof(*desc)); in child_serv() 1782 memcpy(&msg.body.xfrm_desc, desc, sizeof(*desc)); in child_serv() 1793 memcpy(&msg.body.xfrm_desc, desc, sizeof(*desc)); in child_serv() 1828 ssize_t received = read(test_desc_fd, &desc, sizeof(desc)); in child_f() 1903 desc->proto)) { in grand_child_serv() 1916 desc->proto)) { in grand_child_serv() 2023 ret = write(test_desc_fd, desc, sizeof(*desc)); in __write_desc() [all …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_mdio.c | 47 struct hclge_desc desc; in hclge_mdio_write() local 55 mdio_cmd = (struct hclge_mdio_cfg_cmd *)desc.data; in hclge_mdio_write() 70 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_mdio_write() 85 struct hclge_desc desc; in hclge_mdio_read() local 107 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_mdio_read() 280 struct hclge_desc desc; in hclge_read_phy_reg() local 285 req = (struct hclge_phy_reg_cmd *)desc.data; in hclge_read_phy_reg() 288 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_read_phy_reg() 299 struct hclge_desc desc; in hclge_write_phy_reg() local 304 req = (struct hclge_phy_reg_cmd *)desc.data; in hclge_write_phy_reg() [all …]
|
/openbmc/linux/crypto/ |
H A D | sm3_generic.c | 30 static int crypto_sm3_update(struct shash_desc *desc, const u8 *data, in crypto_sm3_update() argument 33 sm3_update(shash_desc_ctx(desc), data, len); in crypto_sm3_update() 37 static int crypto_sm3_final(struct shash_desc *desc, u8 *out) in crypto_sm3_final() argument 39 sm3_final(shash_desc_ctx(desc), out); in crypto_sm3_final() 43 static int crypto_sm3_finup(struct shash_desc *desc, const u8 *data, in crypto_sm3_finup() argument 46 struct sm3_state *sctx = shash_desc_ctx(desc); in crypto_sm3_finup()
|
H A D | sm2.c | 52 .desc = "sm2p256v1", 113 ec->name = ecp->desc; in sm2_ec_ctx_init() 237 crypto_shash_update(desc, in, inlen); in sm2_z_digest_update() 242 err = crypto_shash_update(desc, in, inlen); in sm2_z_digest_update() 260 sm2_z_digest_update(desc, x, pbytes) ?: in sm2_z_digest_update_point() 261 sm2_z_digest_update(desc, y, pbytes); in sm2_z_digest_update_point() 268 int sm2_compute_z_digest(struct shash_desc *desc, in sm2_compute_z_digest() argument 296 err = crypto_shash_init(desc); in sm2_compute_z_digest() 300 err = crypto_shash_update(desc, entl, 2); in sm2_compute_z_digest() 309 err = sm2_z_digest_update(desc, ec->a, pbytes) ?: in sm2_compute_z_digest() [all …]
|
/openbmc/linux/drivers/usb/core/ |
H A D | endpoint.c | 21 struct usb_endpoint_descriptor *desc; member 42 return sprintf(buf, format_string, ep->desc->field); \ 55 return sprintf(buf, "%04x\n", usb_endpoint_maxp(ep->desc)); in wMaxPacketSize_show() 65 switch (usb_endpoint_type(ep->desc)) { in type_show() 90 interval = usb_decode_interval(ep->desc, ep->udev->speed); in interval_show() 108 if (usb_endpoint_xfer_control(ep->desc)) in direction_show() 110 else if (usb_endpoint_dir_in(ep->desc)) in direction_show() 162 ep_dev->desc = &endpoint->desc; in usb_create_ep_devs() 167 dev_set_name(&ep_dev->dev, "ep_%02x", endpoint->desc.bEndpointAddress); in usb_create_ep_devs()
|
/openbmc/linux/arch/sparc/crypto/ |
H A D | md5_glue.c | 32 static int md5_sparc64_init(struct shash_desc *desc) in md5_sparc64_init() argument 34 struct md5_state *mctx = shash_desc_ctx(desc); in md5_sparc64_init() 67 static int md5_sparc64_update(struct shash_desc *desc, const u8 *data, in md5_sparc64_update() argument 70 struct md5_state *sctx = shash_desc_ctx(desc); in md5_sparc64_update() 84 static int md5_sparc64_final(struct shash_desc *desc, u8 *out) in md5_sparc64_final() argument 86 struct md5_state *sctx = shash_desc_ctx(desc); in md5_sparc64_final() 117 static int md5_sparc64_export(struct shash_desc *desc, void *out) in md5_sparc64_export() argument 119 struct md5_state *sctx = shash_desc_ctx(desc); in md5_sparc64_export() 126 static int md5_sparc64_import(struct shash_desc *desc, const void *in) in md5_sparc64_import() argument 128 struct md5_state *sctx = shash_desc_ctx(desc); in md5_sparc64_import()
|
/openbmc/linux/drivers/dma/ppc4xx/ |
H A D | adma.c | 238 p = desc->hw_desc; in ppc440spe_desc_init_interrupt() 264 desc->src_cnt = 0; in ppc440spe_desc_init_null_xor() 265 desc->dst_cnt = 1; in ppc440spe_desc_init_null_xor() 279 desc->dst_cnt = 1; in ppc440spe_desc_init_xor() 300 memset(desc->reverse_flags, 0, sizeof(desc->reverse_flags)); in ppc440spe_desc_init_dma2pq() 508 desc->src_cnt = 1; in ppc440spe_desc_init_memcpy() 509 desc->dst_cnt = 1; in ppc440spe_desc_init_memcpy() 1519 desc->phys, desc->idx, desc->slots_per_op); in ppc440spe_adma_clean_slot() 2074 ppc440spe_adma_dma2rxor_prep_src(desc, &desc->rxor_cursor, i, in ppc440spe_adma_init_dma2rxor_slot() 3369 desc = list_entry(desc->chain_node.next, in ppc440spe_adma_dma2rxor_set_src() [all …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/ |
H A D | hix5hd2_gmac.c | 219 struct sg_desc *desc; member 493 desc = priv->rx_fq.desc + pos; in hix5hd2_rx_refill() 534 desc = priv->rx_bq.desc + pos; in hix5hd2_rx() 574 desc = priv->tx_ring.desc + pos; in hix5hd2_clean_sg_desc() 613 desc = priv->tx_rq.desc + pos; in hix5hd2_xmit_reclaim() 710 desc = priv->tx_ring.desc + pos; in hix5hd2_fill_sg_desc() 753 desc = priv->tx_bq.desc + pos; in hix5hd2_net_xmit() 804 desc = priv->rx_fq.desc + i; in hix5hd2_free_dma_desc_rings() 817 desc = priv->tx_rq.desc + i; in hix5hd2_free_dma_desc_rings() 1030 if (!desc) in hix5hd2_init_sg_desc_queue() [all …]
|
/openbmc/linux/drivers/slimbus/ |
H A D | qcom-ngd-ctrl.c | 588 if (!desc->desc) { in qcom_slim_ngd_tx_msg_post() 595 desc->desc->callback_param = desc; in qcom_slim_ngd_tx_msg_post() 596 desc->desc->cookie = dmaengine_submit(desc->desc); in qcom_slim_ngd_tx_msg_post() 636 if (!desc->desc) { in qcom_slim_ngd_rx_msgq_cb() 641 desc->desc->callback = qcom_slim_ngd_rx_msgq_cb; in qcom_slim_ngd_rx_msgq_cb() 642 desc->desc->callback_param = desc; in qcom_slim_ngd_rx_msgq_cb() 643 desc->desc->cookie = dmaengine_submit(desc->desc); in qcom_slim_ngd_rx_msgq_cb() 661 if (!desc->desc) { in qcom_slim_ngd_post_rx_msgq() 666 desc->desc->callback = qcom_slim_ngd_rx_msgq_cb; in qcom_slim_ngd_post_rx_msgq() 667 desc->desc->callback_param = desc; in qcom_slim_ngd_post_rx_msgq() [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | altera_tse.c | 26 struct alt_sgdma_descriptor *desc, in alt_sgdma_construct_descriptor() argument 47 desc->next = virt_to_phys(next); in alt_sgdma_construct_descriptor() 71 desc->descriptor_control = val; in alt_sgdma_construct_descriptor() 319 writel(0, &desc->read_addr_hi); in altera_tse_send_msgdma() 320 writel(0, &desc->write_addr_lo); in altera_tse_send_msgdma() 321 writel(0, &desc->write_addr_hi); in altera_tse_send_msgdma() 322 writel(length, &desc->len); in altera_tse_send_msgdma() 323 writel(0, &desc->burst_seq_num); in altera_tse_send_msgdma() 360 writel(0, &desc->read_addr_lo); in altera_tse_free_pkt_msgdma() 361 writel(0, &desc->read_addr_hi); in altera_tse_free_pkt_msgdma() [all …]
|
/openbmc/linux/drivers/devfreq/event/ |
H A D | rockchip-dfi.c | 52 struct devfreq_event_desc *desc; member 180 struct devfreq_event_desc *desc; in rockchip_dfi_probe() local 207 desc = devm_kzalloc(dev, sizeof(*desc), GFP_KERNEL); in rockchip_dfi_probe() 208 if (!desc) in rockchip_dfi_probe() 211 desc->ops = &rockchip_dfi_ops; in rockchip_dfi_probe() 212 desc->driver_data = data; in rockchip_dfi_probe() 213 desc->name = np->name; in rockchip_dfi_probe() 214 data->desc = desc; in rockchip_dfi_probe() 216 data->edev = devm_devfreq_event_add_edev(&pdev->dev, desc); in rockchip_dfi_probe()
|
/openbmc/linux/drivers/usb/storage/ |
H A D | cypress_atacb.c | 168 unsigned char *desc = sb + 8; in cypress_atacb_passthrough() local 207 desc[0] = 0x09; /* ATA_RETURN_DESCRIPTOR */ in cypress_atacb_passthrough() 211 desc[1] = 12; in cypress_atacb_passthrough() 214 desc[ 2] = 0x00; in cypress_atacb_passthrough() 215 desc[ 3] = regs[1]; /* features */ in cypress_atacb_passthrough() 216 desc[ 5] = regs[2]; /* sector count */ in cypress_atacb_passthrough() 217 desc[ 7] = regs[3]; /* lba low */ in cypress_atacb_passthrough() 218 desc[ 9] = regs[4]; /* lba med */ in cypress_atacb_passthrough() 219 desc[11] = regs[5]; /* lba high */ in cypress_atacb_passthrough() 220 desc[12] = regs[6]; /* device */ in cypress_atacb_passthrough() [all …]
|
/openbmc/linux/arch/mips/cavium-octeon/crypto/ |
H A D | octeon-sha256.c | 98 static int octeon_sha256_update(struct shash_desc *desc, const u8 *data, in octeon_sha256_update() argument 101 struct sha256_state *sctx = shash_desc_ctx(desc); in octeon_sha256_update() 111 return crypto_sha256_update(desc, data, len); in octeon_sha256_update() 124 static int octeon_sha256_final(struct shash_desc *desc, u8 *out) in octeon_sha256_final() argument 126 struct sha256_state *sctx = shash_desc_ctx(desc); in octeon_sha256_final() 164 static int octeon_sha224_final(struct shash_desc *desc, u8 *hash) in octeon_sha224_final() argument 168 octeon_sha256_final(desc, D); in octeon_sha224_final() 176 static int octeon_sha256_export(struct shash_desc *desc, void *out) in octeon_sha256_export() argument 178 struct sha256_state *sctx = shash_desc_ctx(desc); in octeon_sha256_export() 184 static int octeon_sha256_import(struct shash_desc *desc, const void *in) in octeon_sha256_import() argument [all …]
|
/openbmc/linux/sound/soc/sof/ |
H A D | sof-acpi-dev.c | 59 int sof_acpi_probe(struct platform_device *pdev, const struct sof_dev_desc *desc) in sof_acpi_probe() argument 70 if (!desc->ops) { in sof_acpi_probe() 75 sof_pdata->desc = desc; in sof_acpi_probe() 77 sof_pdata->fw_filename = desc->default_fw_filename[SOF_IPC]; in sof_acpi_probe() 84 sof_pdata->desc->default_fw_path[SOF_IPC]; in sof_acpi_probe() 90 sof_pdata->desc->default_tplg_path[SOF_IPC]; in sof_acpi_probe()
|
/openbmc/linux/drivers/power/supply/ |
H A D | power_supply_core.c | 49 if (!supplier->desc->name) in __power_supply_is_supplied_by() 55 if (!supply->desc->name) in __power_supply_is_supplied_by() 71 if (pst->desc->external_power_changed) in __power_supply_changed_work() 175 psy->desc->name, epsy->desc->name); in __power_supply_populate_supplied_from() 431 psy->desc->set_charged) { in power_supply_set_battery_charged() 432 psy->desc->set_charged(psy); in power_supply_set_battery_charged() 1301 if (psy->desc->no_thermal) in psy_register_thermal() 1351 if (!desc || !desc->name || !desc->properties || !desc->num_properties) in __power_supply_register() 1356 __func__, desc->name); in __power_supply_register() 1359 (!desc->usb_types || !desc->num_usb_types)) in __power_supply_register() [all …]
|
/openbmc/linux/drivers/net/wan/ |
H A D | hd64570.c | 102 transmit * rx_buffs + desc; in desc_abs_number() 169 writew(chain_off, &desc->cp); in sca_init_port() 170 writel(buff_off, &desc->bp); in sca_init_port() 171 writew(0, &desc->len); in sca_init_port() 172 writeb(0, &desc->stat); in sca_init_port() 247 len = readw(&desc->len); in sca_rx() 301 pkt_desc __iomem *desc; in sca_rx_intr() local 308 stat = readb(&desc->stat); in sca_rx_intr() 352 pkt_desc __iomem *desc; in sca_tx_intr() local 630 pkt_desc __iomem *desc; in sca_xmit() local [all …]
|