/openbmc/u-boot/drivers/fpga/ |
H A D | spartan3.c | 37 static int spartan3_sp_load(xilinx_desc *desc, const void *buf, size_t bsize); 38 static int spartan3_sp_dump(xilinx_desc *desc, const void *buf, size_t bsize); 41 static int spartan3_ss_load(xilinx_desc *desc, const void *buf, size_t bsize); 42 static int spartan3_ss_dump(xilinx_desc *desc, const void *buf, size_t bsize); 47 static int spartan3_load(xilinx_desc *desc, const void *buf, size_t bsize, in spartan3_load() argument 52 switch (desc->iface) { in spartan3_load() 55 ret_val = spartan3_ss_load(desc, buf, bsize); in spartan3_load() 60 ret_val = spartan3_sp_load(desc, buf, bsize); in spartan3_load() 65 __FUNCTION__, desc->iface); in spartan3_load() 71 static int spartan3_dump(xilinx_desc *desc, const void *buf, size_t bsize) in spartan3_dump() argument [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-ich.c | 91 struct ichx_desc *desc; /* Pointer to chipset-specific description */ member 110 if (reg == GPIO_LVL && ichx_priv.desc->use_outlvl_cache) in ichx_write_bit() 113 data = ICHX_READ(ichx_priv.desc->regs[reg][reg_nr], in ichx_write_bit() 120 ICHX_WRITE(data, ichx_priv.desc->regs[reg][reg_nr], in ichx_write_bit() 122 if (reg == GPIO_LVL && ichx_priv.desc->use_outlvl_cache) in ichx_write_bit() 125 tmp = ICHX_READ(ichx_priv.desc->regs[reg][reg_nr], in ichx_write_bit() 142 data = ICHX_READ(ichx_priv.desc->regs[reg][reg_nr], in ichx_read_bit() 145 if (reg == GPIO_LVL && ichx_priv.desc->use_outlvl_cache) in ichx_read_bit() 179 if (nr < 32 && ichx_priv.desc->have_blink) in ichx_gpio_direction_output() 235 if (ichx_priv.desc->use_sel_ignore[nr / 32] & BIT(nr & 0x1f)) in ichx_gpio_request() [all …]
|
H A D | gpiolib-legacy.c | 23 struct gpio_desc *desc; in gpio_request_one() local 26 desc = gpio_to_desc(gpio); in gpio_request_one() 29 if (!desc && gpio_is_valid(gpio)) in gpio_request_one() 32 err = gpiod_request(desc, label); in gpio_request_one() 37 set_bit(FLAG_ACTIVE_LOW, &desc->flags); in gpio_request_one() 40 err = gpiod_direction_input(desc); in gpio_request_one() 42 err = gpiod_direction_output_raw(desc, in gpio_request_one() 51 gpiod_free(desc); in gpio_request_one() 58 struct gpio_desc *desc = gpio_to_desc(gpio); in gpio_request() local 61 if (!desc && gpio_is_valid(gpio)) in gpio_request() [all …]
|
/openbmc/linux/sound/usb/ |
H A D | implicit.c | 98 fmt->sync_altsetting = alts->desc.bAlternateSetting; in add_implicit_fb_sync_ep() 121 if (alts->desc.bInterfaceClass != USB_CLASS_AUDIO || in add_generic_uac2_implicit_fb() 122 alts->desc.bInterfaceSubClass != USB_SUBCLASS_AUDIOSTREAMING || in add_generic_uac2_implicit_fb() 123 alts->desc.bInterfaceProtocol != UAC_VERSION_2 || in add_generic_uac2_implicit_fb() 124 alts->desc.bNumEndpoints < 1) in add_generic_uac2_implicit_fb() 137 if (alts->desc.bInterfaceClass != USB_CLASS_VENDOR_SPEC || in roland_sanity_check_iface() 138 (alts->desc.bInterfaceSubClass != 2 && in roland_sanity_check_iface() 139 alts->desc.bInterfaceProtocol != 2) || in roland_sanity_check_iface() 140 alts->desc.bNumEndpoints < 1) in roland_sanity_check_iface() 162 alts->desc.bInterfaceNumber + 1, in add_roland_implicit_fb() [all …]
|
/openbmc/linux/net/xfrm/ |
H A D | xfrm_algo.c | 39 .desc = { 58 .desc = { 77 .desc = { 96 .desc = { 115 .desc = { 134 .desc = { 153 .desc = { 187 .desc = { 207 .desc = { 227 .desc = { [all …]
|
/openbmc/linux/fs/smb/server/ |
H A D | crypto_ctx.h | 35 struct shash_desc *desc[CRYPTO_SHASH_MAX]; member 39 #define CRYPTO_HMACMD5(c) ((c)->desc[CRYPTO_SHASH_HMACMD5]) 40 #define CRYPTO_HMACSHA256(c) ((c)->desc[CRYPTO_SHASH_HMACSHA256]) 41 #define CRYPTO_CMACAES(c) ((c)->desc[CRYPTO_SHASH_CMACAES]) 42 #define CRYPTO_SHA256(c) ((c)->desc[CRYPTO_SHASH_SHA256]) 43 #define CRYPTO_SHA512(c) ((c)->desc[CRYPTO_SHASH_SHA512]) 45 #define CRYPTO_HMACMD5_TFM(c) ((c)->desc[CRYPTO_SHASH_HMACMD5]->tfm) 47 ((c)->desc[CRYPTO_SHASH_HMACSHA256]->tfm) 48 #define CRYPTO_CMACAES_TFM(c) ((c)->desc[CRYPTO_SHASH_CMACAES]->tfm) 49 #define CRYPTO_SHA256_TFM(c) ((c)->desc[CRYPTO_SHASH_SHA256]->tfm) [all …]
|
/openbmc/linux/arch/arm/crypto/ |
H A D | sha1_neon_glue.c | 32 static int sha1_neon_update(struct shash_desc *desc, const u8 *data, in sha1_neon_update() argument 35 struct sha1_state *sctx = shash_desc_ctx(desc); in sha1_neon_update() 39 return sha1_update_arm(desc, data, len); in sha1_neon_update() 42 sha1_base_do_update(desc, data, len, sha1_transform_neon); in sha1_neon_update() 48 static int sha1_neon_finup(struct shash_desc *desc, const u8 *data, in sha1_neon_finup() argument 52 return sha1_finup_arm(desc, data, len, out); in sha1_neon_finup() 56 sha1_base_do_update(desc, data, len, sha1_transform_neon); in sha1_neon_finup() 57 sha1_base_do_finalize(desc, sha1_transform_neon); in sha1_neon_finup() 60 return sha1_base_finish(desc, out); in sha1_neon_finup() 63 static int sha1_neon_final(struct shash_desc *desc, u8 *out) in sha1_neon_final() argument [all …]
|
H A D | sha1-ce-glue.c | 29 static int sha1_ce_update(struct shash_desc *desc, const u8 *data, in sha1_ce_update() argument 32 struct sha1_state *sctx = shash_desc_ctx(desc); in sha1_ce_update() 36 return sha1_update_arm(desc, data, len); in sha1_ce_update() 39 sha1_base_do_update(desc, data, len, sha1_ce_transform); in sha1_ce_update() 45 static int sha1_ce_finup(struct shash_desc *desc, const u8 *data, in sha1_ce_finup() argument 49 return sha1_finup_arm(desc, data, len, out); in sha1_ce_finup() 53 sha1_base_do_update(desc, data, len, sha1_ce_transform); in sha1_ce_finup() 54 sha1_base_do_finalize(desc, sha1_ce_transform); in sha1_ce_finup() 57 return sha1_base_finish(desc, out); in sha1_ce_finup() 60 static int sha1_ce_final(struct shash_desc *desc, u8 *out) in sha1_ce_final() argument [all …]
|
H A D | sha256_neon_glue.c | 27 static int crypto_sha256_neon_update(struct shash_desc *desc, const u8 *data, in crypto_sha256_neon_update() argument 30 struct sha256_state *sctx = shash_desc_ctx(desc); in crypto_sha256_neon_update() 34 return crypto_sha256_arm_update(desc, data, len); in crypto_sha256_neon_update() 37 sha256_base_do_update(desc, data, len, sha256_block_data_order_neon); in crypto_sha256_neon_update() 43 static int crypto_sha256_neon_finup(struct shash_desc *desc, const u8 *data, in crypto_sha256_neon_finup() argument 47 return crypto_sha256_arm_finup(desc, data, len, out); in crypto_sha256_neon_finup() 51 sha256_base_do_update(desc, data, len, in crypto_sha256_neon_finup() 53 sha256_base_do_finalize(desc, sha256_block_data_order_neon); in crypto_sha256_neon_finup() 56 return sha256_base_finish(desc, out); in crypto_sha256_neon_finup() 59 static int crypto_sha256_neon_final(struct shash_desc *desc, u8 *out) in crypto_sha256_neon_final() argument [all …]
|
H A D | sha512-neon-glue.c | 26 static int sha512_neon_update(struct shash_desc *desc, const u8 *data, in sha512_neon_update() argument 29 struct sha512_state *sctx = shash_desc_ctx(desc); in sha512_neon_update() 33 return sha512_arm_update(desc, data, len); in sha512_neon_update() 36 sha512_base_do_update(desc, data, len, sha512_block_data_order_neon); in sha512_neon_update() 42 static int sha512_neon_finup(struct shash_desc *desc, const u8 *data, in sha512_neon_finup() argument 46 return sha512_arm_finup(desc, data, len, out); in sha512_neon_finup() 50 sha512_base_do_update(desc, data, len, in sha512_neon_finup() 52 sha512_base_do_finalize(desc, sha512_block_data_order_neon); in sha512_neon_finup() 55 return sha512_base_finish(desc, out); in sha512_neon_finup() 58 static int sha512_neon_final(struct shash_desc *desc, u8 *out) in sha512_neon_final() argument [all …]
|
/openbmc/phosphor-debug-collector/tools/dreport.d/include.d/ |
H A D | functions | 12 desc="$3" 16 log_error "Failed to collect $desc" 22 log_info "Collected $desc" 24 log_warning "Skipping $desc" 35 desc="$2" 39 log_error "Failed to copy $desc $file_name" 44 log_info "Copied $desc $file_name" 47 log_warning "Skipping copy $desc $file_name" 58 desc="$2" 62 log_error "Failed to copy $desc $file_name" [all …]
|
/openbmc/linux/drivers/crypto/caam/ |
H A D | key_gen.c | 14 void split_key_done(struct device *dev, u32 *desc, u32 err, in split_key_done() argument 48 u32 *desc; in gen_split_key() local 67 desc = kmalloc(CAAM_CMD_SZ * 6 + CAAM_PTR_SZ * 2, GFP_KERNEL); in gen_split_key() 68 if (!desc) { in gen_split_key() 81 init_job_desc(desc, 0); in gen_split_key() 82 append_key(desc, dma_addr, keylen, CLASS_2 | KEY_DEST_CLASS_REG); in gen_split_key() 85 append_operation(desc, (adata->algtype & OP_ALG_ALGSEL_MASK) | in gen_split_key() 93 append_fifo_load_as_imm(desc, NULL, 0, LDST_CLASS_2_CCB | in gen_split_key() 100 append_fifo_store(desc, dma_addr, adata->keylen, in gen_split_key() 104 DUMP_PREFIX_ADDRESS, 16, 4, desc, desc_bytes(desc), in gen_split_key() [all …]
|
/openbmc/linux/drivers/hwtracing/coresight/ |
H A D | coresight-dummy.c | 76 struct coresight_desc desc = { 0 }; in dummy_probe() local 80 desc.name = coresight_alloc_device_name(&source_devs, dev); in dummy_probe() 81 if (!desc.name) in dummy_probe() 84 desc.type = CORESIGHT_DEV_TYPE_SOURCE; in dummy_probe() 85 desc.subtype.source_subtype = in dummy_probe() 87 desc.ops = &dummy_source_cs_ops; in dummy_probe() 89 desc.name = coresight_alloc_device_name(&sink_devs, dev); in dummy_probe() 90 if (!desc.name) in dummy_probe() 93 desc.type = CORESIGHT_DEV_TYPE_SINK; in dummy_probe() 94 desc.subtype.sink_subtype = CORESIGHT_DEV_SUBTYPE_SINK_DUMMY; in dummy_probe() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/mxm/ |
H A D | mxms.c | 101 u8 *desc = mxms + mxms_headerlen(mxm); in mxms_foreach() local 102 u8 *fini = desc + mxms_structlen(mxm) - 1; in mxms_foreach() 103 while (desc < fini) { in mxms_foreach() 104 u8 type = desc[0] & 0x0f; in mxms_foreach() 124 entries = (ROM32(desc[0]) & 0x01f00000) >> 20; in mxms_foreach() 133 entries = (desc[1] & 0xf0) >> 4; in mxms_foreach() 141 entries = desc[1] & 0x07; in mxms_foreach() 153 u8 *dump = desc; in mxms_foreach() 170 if (!exec(mxm, desc, info)) in mxms_foreach() 174 desc += headerlen + (entries * recordlen); in mxms_foreach() [all …]
|
/openbmc/linux/drivers/dma/ |
H A D | dma-axi-dmac.c | 211 struct axi_dmac_desc *desc; in axi_dmac_start_transfer() local 220 desc = chan->next_desc; in axi_dmac_start_transfer() 222 if (!desc) { in axi_dmac_start_transfer() 227 desc = to_axi_dmac_desc(vdesc); in axi_dmac_start_transfer() 229 sg = &desc->sg[desc->num_submitted]; in axi_dmac_start_transfer() 237 desc->num_submitted++; in axi_dmac_start_transfer() 238 if (desc->num_submitted == desc->num_sgs || in axi_dmac_start_transfer() 239 desc->have_partial_xfer) { in axi_dmac_start_transfer() 240 if (desc->cyclic) in axi_dmac_start_transfer() 241 desc->num_submitted = 0; /* Start again */ in axi_dmac_start_transfer() [all …]
|
/openbmc/linux/drivers/net/ethernet/xscale/ |
H A D | ixp4xx_eth.c | 64 #define POOL_ALLOC_SIZE (sizeof(struct desc) * (RX_DESCS + TX_DESCS)) 193 struct desc *desc_tab; /* coherent */ 214 struct desc { struct 252 (n) * sizeof(struct desc)) argument 256 ((n) + RX_DESCS) * sizeof(struct desc)) 620 static inline void debug_desc(u32 phys, struct desc *desc) in debug_desc() argument 625 phys, desc->next, desc->buf_len, desc->pkt_len, in debug_desc() 626 desc->data, desc->dest_id, desc->src_id, desc->flags, in debug_desc() 627 desc->qos, desc->padlen, desc->vlan_tci, in debug_desc() 628 desc->dst_mac_0, desc->dst_mac_1, desc->dst_mac_2, in debug_desc() [all …]
|
/openbmc/linux/arch/x86/crypto/ |
H A D | sm3_avx_glue.c | 23 static int sm3_avx_update(struct shash_desc *desc, const u8 *data, in sm3_avx_update() argument 26 struct sm3_state *sctx = shash_desc_ctx(desc); in sm3_avx_update() 41 sm3_base_do_update(desc, data, len, sm3_transform_avx); in sm3_avx_update() 47 static int sm3_avx_finup(struct shash_desc *desc, const u8 *data, in sm3_avx_finup() argument 51 struct sm3_state *sctx = shash_desc_ctx(desc); in sm3_avx_finup() 62 sm3_base_do_update(desc, data, len, sm3_transform_avx); in sm3_avx_finup() 63 sm3_base_do_finalize(desc, sm3_transform_avx); in sm3_avx_finup() 66 return sm3_base_finish(desc, out); in sm3_avx_finup() 69 static int sm3_avx_final(struct shash_desc *desc, u8 *out) in sm3_avx_final() argument 72 sm3_final(shash_desc_ctx(desc), out); in sm3_avx_final() [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | vexpress-regulator.c | 43 struct regulator_desc *desc; in vexpress_regulator_probe() local 49 desc = devm_kzalloc(&pdev->dev, sizeof(*desc), GFP_KERNEL); in vexpress_regulator_probe() 50 if (!desc) in vexpress_regulator_probe() 57 desc->name = dev_name(&pdev->dev); in vexpress_regulator_probe() 58 desc->type = REGULATOR_VOLTAGE; in vexpress_regulator_probe() 59 desc->owner = THIS_MODULE; in vexpress_regulator_probe() 60 desc->continuous_voltage_range = true; in vexpress_regulator_probe() 63 desc); in vexpress_regulator_probe() 69 desc->ops = &vexpress_regulator_ops; in vexpress_regulator_probe() 71 desc->ops = &vexpress_regulator_ops_ro; in vexpress_regulator_probe() [all …]
|
H A D | wm831x-dcdc.c | 49 struct regulator_desc desc; member 421 dcdc->desc.name = dcdc->name; in wm831x_buckv_probe() 425 dcdc->desc.supply_name = dcdc->supply_name; in wm831x_buckv_probe() 427 dcdc->desc.id = id; in wm831x_buckv_probe() 428 dcdc->desc.type = REGULATOR_VOLTAGE; in wm831x_buckv_probe() 429 dcdc->desc.n_voltages = WM831X_BUCKV_MAX_SELECTOR + 1; in wm831x_buckv_probe() 430 dcdc->desc.linear_ranges = wm831x_buckv_ranges; in wm831x_buckv_probe() 431 dcdc->desc.n_linear_ranges = ARRAY_SIZE(wm831x_buckv_ranges); in wm831x_buckv_probe() 432 dcdc->desc.ops = &wm831x_buckv_ops; in wm831x_buckv_probe() 433 dcdc->desc.owner = THIS_MODULE; in wm831x_buckv_probe() [all …]
|
/openbmc/linux/drivers/platform/mellanox/ |
H A D | mlxbf-tmfifo.c | 82 struct vring_desc *desc; member 346 return &vr->desc[head]; in mlxbf_tmfifo_get_next_desc() 351 struct vring_desc *desc, u32 len) in mlxbf_tmfifo_release_desc() argument 359 vr->used->ring[idx].id = cpu_to_virtio32(vdev, desc - vr->desc); in mlxbf_tmfifo_release_desc() 373 struct vring_desc *desc) in mlxbf_tmfifo_get_pkt_len() argument 379 while (desc) { in mlxbf_tmfifo_get_pkt_len() 380 len += virtio32_to_cpu(vdev, desc->len); in mlxbf_tmfifo_get_pkt_len() 381 if (!(virtio16_to_cpu(vdev, desc->flags) & VRING_DESC_F_NEXT)) in mlxbf_tmfifo_get_pkt_len() 383 idx = virtio16_to_cpu(vdev, desc->next); in mlxbf_tmfifo_get_pkt_len() 384 desc = &vr->desc[idx]; in mlxbf_tmfifo_get_pkt_len() [all …]
|
/openbmc/linux/drivers/pinctrl/mediatek/ |
H A D | pinctrl-paris.c | 108 const struct mtk_pin_desc *desc; in mtk_pinmux_gpio_request_enable() local 110 desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin]; in mtk_pinmux_gpio_request_enable() 112 return mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_MODE, in mtk_pinmux_gpio_request_enable() 121 const struct mtk_pin_desc *desc; in mtk_pinmux_gpio_set_direction() local 123 desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin]; in mtk_pinmux_gpio_set_direction() 126 return mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_DIR, !input); in mtk_pinmux_gpio_set_direction() 135 const struct mtk_pin_desc *desc; in mtk_pinconf_get() local 140 desc = (const struct mtk_pin_desc *)&hw->soc->pins[pin]; in mtk_pinconf_get() 148 err = hw->soc->bias_get_combo(hw, desc, &pullup, &ret); in mtk_pinconf_get() 165 err = mtk_hw_get_value(hw, desc, PINCTRL_PIN_REG_SR, &ret); in mtk_pinconf_get() [all …]
|
/openbmc/linux/drivers/dma/xilinx/ |
H A D | zynqmp_dma.c | 268 struct zynqmp_dma_desc_sw *desc) in zynqmp_dma_update_desc_to_ctrlr() argument 272 addr = desc->src_p; in zynqmp_dma_update_desc_to_ctrlr() 274 addr = desc->dst_p; in zynqmp_dma_update_desc_to_ctrlr() 284 void *desc) in zynqmp_dma_desc_config_eod() argument 286 struct zynqmp_dma_desc_ll *hw = (struct zynqmp_dma_desc_ll *)desc; in zynqmp_dma_desc_config_eod() 372 struct zynqmp_dma_desc_sw *desc, *new; in zynqmp_dma_tx_submit() local 381 desc = list_last_entry(&chan->pending_list, in zynqmp_dma_tx_submit() 383 if (!list_empty(&desc->tx_list)) in zynqmp_dma_tx_submit() 384 desc = list_last_entry(&desc->tx_list, in zynqmp_dma_tx_submit() 386 desc->src_v->nxtdscraddr = new->src_p; in zynqmp_dma_tx_submit() [all …]
|
/openbmc/linux/drivers/dma/idxd/ |
H A D | irq.c | 24 struct idxd_desc *desc; member 76 struct dsa_hw_desc desc = {}; in idxd_int_handle_revoke_drain() local 81 desc.flags = IDXD_OP_FLAG_RCI; in idxd_int_handle_revoke_drain() 82 desc.opcode = DSA_OPCODE_DRAIN; in idxd_int_handle_revoke_drain() 83 desc.priv = 1; in idxd_int_handle_revoke_drain() 86 desc.pasid = ie->pasid; in idxd_int_handle_revoke_drain() 87 desc.int_handle = ie->int_handle; in idxd_int_handle_revoke_drain() 96 iosubmit_cmds512(portal, &desc, 1); in idxd_int_handle_revoke_drain() 98 rc = idxd_enqcmds(wq, portal, &desc); in idxd_int_handle_revoke_drain() 517 struct idxd_desc *desc = irw->desc; in idxd_int_handle_resubmit_work() local [all …]
|
/openbmc/u-boot/drivers/virtio/ |
H A D | virtio_ring.c | 19 struct vring_desc *desc; in virtqueue_add() local 28 desc = vq->vring.desc; in virtqueue_add() 48 desc[i].flags = cpu_to_virtio16(vq->vdev, VRING_DESC_F_NEXT); in virtqueue_add() 49 desc[i].addr = cpu_to_virtio64(vq->vdev, (u64)(size_t)sg->addr); in virtqueue_add() 50 desc[i].len = cpu_to_virtio32(vq->vdev, sg->length); in virtqueue_add() 53 i = virtio16_to_cpu(vq->vdev, desc[i].next); in virtqueue_add() 58 desc[i].flags = cpu_to_virtio16(vq->vdev, VRING_DESC_F_NEXT | in virtqueue_add() 60 desc[i].addr = cpu_to_virtio64(vq->vdev, in virtqueue_add() 62 desc[i].len = cpu_to_virtio32(vq->vdev, sg->length); in virtqueue_add() 65 i = virtio16_to_cpu(vq->vdev, desc[i].next); in virtqueue_add() [all …]
|
/openbmc/u-boot/board/intel/minnowmax/ |
H A D | minnowmax.c | 17 struct gpio_desc desc; in misc_init_r() local 39 desc.dev = dev; in misc_init_r() 40 desc.flags = GPIOD_IS_OUT; in misc_init_r() 43 desc.offset = 8; in misc_init_r() 45 ret = dm_gpio_request(&desc, "usb_host_en0"); in misc_init_r() 48 dm_gpio_set_value(&desc, 1); in misc_init_r() 51 desc.offset = 9; in misc_init_r() 53 ret = dm_gpio_request(&desc, "usb_host_en1"); in misc_init_r() 57 dm_gpio_set_value(&desc, 1); in misc_init_r()
|