/openbmc/linux/drivers/pinctrl/sunxi/ |
H A D | pinctrl-sunxi.h | 165 const struct sunxi_pinctrl_desc *desc; member 226 static inline u32 sunxi_irq_hw_bank_num(const struct sunxi_pinctrl_desc *desc, u8 bank) in sunxi_irq_hw_bank_num() argument 228 if (!desc->irq_bank_map) in sunxi_irq_hw_bank_num() 231 return desc->irq_bank_map[bank]; in sunxi_irq_hw_bank_num() 234 static inline u32 sunxi_irq_cfg_reg(const struct sunxi_pinctrl_desc *desc, in sunxi_irq_cfg_reg() argument 241 sunxi_irq_hw_bank_num(desc, bank) * IRQ_MEM_SIZE + reg; in sunxi_irq_cfg_reg() 250 static inline u32 sunxi_irq_ctrl_reg_from_bank(const struct sunxi_pinctrl_desc *desc, u8 bank) in sunxi_irq_ctrl_reg_from_bank() argument 252 return IRQ_CTRL_REG + sunxi_irq_hw_bank_num(desc, bank) * IRQ_MEM_SIZE; in sunxi_irq_ctrl_reg_from_bank() 255 static inline u32 sunxi_irq_ctrl_reg(const struct sunxi_pinctrl_desc *desc, in sunxi_irq_ctrl_reg() argument 260 return sunxi_irq_ctrl_reg_from_bank(desc, bank); in sunxi_irq_ctrl_reg() [all …]
|
/openbmc/linux/net/strparser/ |
H A D | strparser.c | 65 read_descriptor_t *desc) in strp_parser_err() argument 67 desc->error = err; in strp_parser_err() 89 static int __strp_recv(read_descriptor_t *desc, struct sk_buff *orig_skb, in __strp_recv() argument 93 struct strparser *strp = (struct strparser *)desc->arg.data; in __strp_recv() 116 desc->error = -ENOMEM; in __strp_recv() 122 desc->error = -ENOMEM; in __strp_recv() 136 desc->error = err; in __strp_recv() 148 desc->error = -EINVAL; in __strp_recv() 155 desc->error = -ENOMEM; in __strp_recv() 174 desc->error = -ENOMEM; in __strp_recv() [all …]
|
/openbmc/linux/drivers/pci/msi/ |
H A D | legacy.c | 10 int __weak arch_setup_msi_irq(struct pci_dev *dev, struct msi_desc *desc) in arch_setup_msi_irq() argument 21 struct msi_desc *desc; in arch_setup_msi_irqs() local 31 msi_for_each_desc(desc, &dev->dev, MSI_DESC_NOTASSOCIATED) { in arch_setup_msi_irqs() 32 ret = arch_setup_msi_irq(dev, desc); in arch_setup_msi_irqs() 42 struct msi_desc *desc; in arch_teardown_msi_irqs() local 45 msi_for_each_desc(desc, &dev->dev, MSI_DESC_ASSOCIATED) { in arch_teardown_msi_irqs() 46 for (i = 0; i < desc->nvec_used; i++) in arch_teardown_msi_irqs() 47 arch_teardown_msi_irq(desc->irq + i); in arch_teardown_msi_irqs() 53 struct msi_desc *desc; in pci_msi_setup_check_result() local 60 msi_for_each_desc(desc, &dev->dev, MSI_DESC_ASSOCIATED) in pci_msi_setup_check_result()
|
/openbmc/linux/drivers/net/ethernet/altera/ |
H A D | altera_sgdma.c | 12 static void sgdma_setup_descrip(struct sgdma_descrip __iomem *desc, 23 struct sgdma_descrip __iomem *desc); 29 struct sgdma_descrip __iomem *desc); 33 struct sgdma_descrip __iomem *desc); 232 struct sgdma_descrip __iomem *desc = NULL; in sgdma_rx_status() local 238 desc = &base[0]; in sgdma_rx_status() 247 pktlength = csrrd16(desc, sgdma_descroffs(bytes_xferred)); in sgdma_rx_status() 248 pktstatus = csrrd8(desc, sgdma_descroffs(status)); in sgdma_rx_status() 254 csrwr8(0, desc, sgdma_descroffs(status)); in sgdma_rx_status() 281 sts, csrrd8(desc, sgdma_descroffs(status)), in sgdma_rx_status() [all …]
|
/openbmc/phosphor-debug-collector/tools/dreport.d/openpower.d/plugins.d/ |
H A D | phal_devtree | 17 desc="Attribute list" 19 add_cmd_output "$attr_cmd" "$file_name" "$desc" 23 desc="Device tree file" 25 add_copy_file "$file_name" "$desc" 30 desc="Exported device tree file" 32 add_copy_file "$file_name" "$desc" 37 desc="Attribute info db" 39 add_copy_file "$file_name" "$desc"
|
/openbmc/openpower-debug-collector/dump/tools/bmcdump/plugins/ |
H A D | phal_devtree | 17 desc="Attribute list" 19 add_cmd_output "$attr_cmd" "$file_name" "$desc" 23 desc="Device tree file" 25 add_copy_file "$file_name" "$desc" 30 desc="Exported device tree file" 32 add_copy_file "$file_name" "$desc" 37 desc="Attribute info db" 39 add_copy_file "$file_name" "$desc"
|
/openbmc/linux/drivers/staging/media/atomisp/pci/runtime/queue/src/ |
H A D | queue_access.c | 37 rdesc->desc.remote.cb_desc_addr in ia_css_queue_load() 53 rdesc->desc.remote.cb_desc_addr in ia_css_queue_load() 58 rdesc->desc.remote.cb_desc_addr in ia_css_queue_load() 63 rdesc->desc.remote.cb_desc_addr in ia_css_queue_load() 68 hmm_load(rdesc->desc.remote.cb_desc_addr, in ia_css_queue_load() 92 rdesc->desc.remote.cb_desc_addr in ia_css_queue_store() 98 rdesc->desc.remote.cb_desc_addr in ia_css_queue_store() 104 rdesc->desc.remote.cb_desc_addr in ia_css_queue_store() 110 rdesc->desc.remote.cb_desc_addr in ia_css_queue_store() 115 hmm_store(rdesc->desc.remote.cb_desc_addr, in ia_css_queue_store() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_trace.h | 119 TP_PROTO(struct ice_tx_ring *ring, struct ice_tx_desc *desc, 122 TP_ARGS(ring, desc, buf), 124 __field(void *, desc) 129 __entry->desc = desc; 134 __entry->ring, __entry->desc, __entry->buf) 140 struct ice_tx_desc *desc, \ 142 TP_ARGS(ring, desc, buf)) 149 TP_PROTO(struct ice_rx_ring *ring, union ice_32b_rx_flex_desc *desc), 151 TP_ARGS(ring, desc), 154 __field(void *, desc) [all …]
|
/openbmc/linux/drivers/media/pci/solo6x10/ |
H A D | solo6x10-p2m.c | 56 struct solo_p2m_desc *desc, dma_addr_t desc_dma, in solo_p2m_dma_desc() argument 90 p2m_dev->descs = desc; in solo_p2m_dma_desc() 93 desc[1].dma_addr); in solo_p2m_dma_desc() 95 desc[1].ext_addr); in solo_p2m_dma_desc() 97 desc[1].cfg); in solo_p2m_dma_desc() 99 desc[1].ctrl); in solo_p2m_dma_desc() 124 void solo_p2m_fill_desc(struct solo_p2m_desc *desc, int wr, in solo_p2m_fill_desc() argument 131 desc->cfg = SOLO_P2M_COPY_SIZE(size >> 2); in solo_p2m_fill_desc() 132 desc->ctrl = SOLO_P2M_BURST_SIZE(SOLO_P2M_BURST_256) | in solo_p2m_fill_desc() 136 desc->cfg |= SOLO_P2M_EXT_INC(ext_size >> 2); in solo_p2m_fill_desc() [all …]
|
/openbmc/linux/arch/x86/crypto/ |
H A D | ghash-clmulni-intel_glue.c | 45 static int ghash_init(struct shash_desc *desc) in ghash_init() argument 47 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_init() 95 static int ghash_update(struct shash_desc *desc, in ghash_update() argument 98 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_update() 99 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_update() 149 static int ghash_final(struct shash_desc *desc, u8 *dst) in ghash_final() argument 151 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_final() 152 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_final() 185 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_init() local 188 desc->tfm = child; in ghash_async_init() [all …]
|
/openbmc/linux/drivers/usb/serial/ |
H A D | ir-usb.c | 95 struct usb_irda_cs_descriptor *desc) in irda_usb_dump_class_desc() argument 99 dev_dbg(dev, "bLength=%x\n", desc->bLength); in irda_usb_dump_class_desc() 100 dev_dbg(dev, "bDescriptorType=%x\n", desc->bDescriptorType); in irda_usb_dump_class_desc() 101 dev_dbg(dev, "bcdSpecRevision=%x\n", __le16_to_cpu(desc->bcdSpecRevision)); in irda_usb_dump_class_desc() 102 dev_dbg(dev, "bmDataSize=%x\n", desc->bmDataSize); in irda_usb_dump_class_desc() 103 dev_dbg(dev, "bmWindowSize=%x\n", desc->bmWindowSize); in irda_usb_dump_class_desc() 104 dev_dbg(dev, "bmMinTurnaroundTime=%d\n", desc->bmMinTurnaroundTime); in irda_usb_dump_class_desc() 105 dev_dbg(dev, "wBaudRate=%x\n", __le16_to_cpu(desc->wBaudRate)); in irda_usb_dump_class_desc() 106 dev_dbg(dev, "bmAdditionalBOFs=%x\n", desc->bmAdditionalBOFs); in irda_usb_dump_class_desc() 107 dev_dbg(dev, "bIrdaRateSniff=%x\n", desc->bIrdaRateSniff); in irda_usb_dump_class_desc() [all …]
|
/openbmc/linux/drivers/mailbox/ |
H A D | bcm-flexrm-mailbox.c | 299 static void flexrm_write_desc(void *desc_ptr, u64 desc) in flexrm_write_desc() argument 301 *((u64 *)desc_ptr) = cpu_to_le64(desc); in flexrm_write_desc() 329 u64 desc = flexrm_read_desc(desc_ptr); in flexrm_is_next_table_desc() local 330 u32 type = DESC_DEC(desc, DESC_TYPE_SHIFT, DESC_TYPE_MASK); in flexrm_is_next_table_desc() 337 u64 desc = 0; in flexrm_next_table_desc() local 339 DESC_ENC(desc, NPTR_TYPE, DESC_TYPE_SHIFT, DESC_TYPE_MASK); in flexrm_next_table_desc() 340 DESC_ENC(desc, toggle, NPTR_TOGGLE_SHIFT, NPTR_TOGGLE_MASK); in flexrm_next_table_desc() 341 DESC_ENC(desc, next_addr, NPTR_ADDR_SHIFT, NPTR_ADDR_MASK); in flexrm_next_table_desc() 343 return desc; in flexrm_next_table_desc() 348 u64 desc = 0; in flexrm_null_desc() local [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_adminq.c | 117 struct i40e_aq_desc *desc; in i40e_alloc_arq_bufs() local 143 desc = I40E_ADMINQ_DESC(hw->aq.arq, i); in i40e_alloc_arq_bufs() 145 desc->flags = cpu_to_le16(I40E_AQ_FLAG_BUF); in i40e_alloc_arq_bufs() 147 desc->flags |= cpu_to_le16(I40E_AQ_FLAG_LB); in i40e_alloc_arq_bufs() 148 desc->opcode = 0; in i40e_alloc_arq_bufs() 152 desc->datalen = cpu_to_le16((u16)bi->size); in i40e_alloc_arq_bufs() 153 desc->retval = 0; in i40e_alloc_arq_bufs() 154 desc->cookie_high = 0; in i40e_alloc_arq_bufs() 155 desc->cookie_low = 0; in i40e_alloc_arq_bufs() 156 desc->params.external.addr_high = in i40e_alloc_arq_bufs() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_adminq.c | 105 struct iavf_aq_desc *desc; in iavf_alloc_arq_bufs() local 133 desc = IAVF_ADMINQ_DESC(hw->aq.arq, i); in iavf_alloc_arq_bufs() 135 desc->flags = cpu_to_le16(IAVF_AQ_FLAG_BUF); in iavf_alloc_arq_bufs() 137 desc->flags |= cpu_to_le16(IAVF_AQ_FLAG_LB); in iavf_alloc_arq_bufs() 138 desc->opcode = 0; in iavf_alloc_arq_bufs() 142 desc->datalen = cpu_to_le16((u16)bi->size); in iavf_alloc_arq_bufs() 143 desc->retval = 0; in iavf_alloc_arq_bufs() 144 desc->cookie_high = 0; in iavf_alloc_arq_bufs() 145 desc->cookie_low = 0; in iavf_alloc_arq_bufs() 146 desc->params.external.addr_high = in iavf_alloc_arq_bufs() [all …]
|
/openbmc/linux/drivers/sh/intc/ |
H A D | core.c | 68 static void intc_redirect_irq(struct irq_desc *desc) in intc_redirect_irq() argument 70 generic_handle_irq((unsigned int)irq_desc_get_handler_data(desc)); in intc_redirect_irq() 73 static void __init intc_register_irq(struct intc_desc *desc, in intc_register_irq() argument 95 data[0] = intc_get_mask_handle(desc, d, enum_id, 0); in intc_register_irq() 96 data[1] = intc_get_prio_handle(desc, d, enum_id, 0); in intc_register_irq() 106 data[0] = data[0] ? data[0] : intc_get_mask_handle(desc, d, enum_id, 1); in intc_register_irq() 107 data[1] = data[1] ? data[1] : intc_get_prio_handle(desc, d, enum_id, 1); in intc_register_irq() 148 data[0] = intc_get_sense_handle(desc, d, enum_id); in intc_register_irq() 158 intc_set_ack_handle(irq, desc, d, enum_id); in intc_register_irq() 159 intc_set_dist_handle(irq, desc, d, enum_id); in intc_register_irq() [all …]
|
/openbmc/linux/crypto/ |
H A D | crc32_generic.c | 47 static int crc32_init(struct shash_desc *desc) in crc32_init() argument 49 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32_init() 50 u32 *crcp = shash_desc_ctx(desc); in crc32_init() 57 static int crc32_update(struct shash_desc *desc, const u8 *data, in crc32_update() argument 60 u32 *crcp = shash_desc_ctx(desc); in crc32_update() 74 static int crc32_finup(struct shash_desc *desc, const u8 *data, in crc32_finup() argument 77 return __crc32_finup(shash_desc_ctx(desc), data, len, out); in crc32_finup() 80 static int crc32_final(struct shash_desc *desc, u8 *out) in crc32_final() argument 82 u32 *crcp = shash_desc_ctx(desc); in crc32_final() 88 static int crc32_digest(struct shash_desc *desc, const u8 *data, in crc32_digest() argument [all …]
|
/openbmc/linux/crypto/asymmetric_keys/ |
H A D | x509_public_key.c | 29 struct shash_desc *desc; in x509_get_sig_params() local 53 desc_size = crypto_shash_descsize(tfm) + sizeof(*desc); in x509_get_sig_params() 61 desc = kzalloc(desc_size, GFP_KERNEL); in x509_get_sig_params() 62 if (!desc) in x509_get_sig_params() 65 desc->tfm = tfm; in x509_get_sig_params() 69 crypto_shash_init(desc) ?: in x509_get_sig_params() 70 sm2_compute_z_digest(desc, cert->pub->key, in x509_get_sig_params() 72 crypto_shash_init(desc) ?: in x509_get_sig_params() 73 crypto_shash_update(desc, sig->digest, in x509_get_sig_params() 75 crypto_shash_finup(desc, cert->tbs, cert->tbs_size, in x509_get_sig_params() [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | rt6160-regulator.c | 42 struct regulator_desc desc; member 138 if (rdev->desc->vsel_reg == RT6160_REG_VSELL) in rt6160_set_suspend_voltage() 268 priv->desc.name = "rt6160-buckboost"; in rt6160_probe() 269 priv->desc.type = REGULATOR_VOLTAGE; in rt6160_probe() 270 priv->desc.owner = THIS_MODULE; in rt6160_probe() 271 priv->desc.min_uV = RT6160_VOUT_MINUV; in rt6160_probe() 272 priv->desc.uV_step = RT6160_VOUT_STPUV; in rt6160_probe() 274 priv->desc.vsel_reg = RT6160_REG_VSELL; in rt6160_probe() 276 priv->desc.vsel_reg = RT6160_REG_VSELH; in rt6160_probe() 277 priv->desc.vsel_mask = RT6160_VSEL_MASK; in rt6160_probe() [all …]
|
/openbmc/linux/arch/loongarch/crypto/ |
H A D | crc32-loongarch.c | 111 static int chksum_init(struct shash_desc *desc) in chksum_init() argument 113 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); in chksum_init() 114 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_init() 137 static int chksum_update(struct shash_desc *desc, const u8 *data, unsigned int length) in chksum_update() argument 139 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_update() 145 static int chksumc_update(struct shash_desc *desc, const u8 *data, unsigned int length) in chksumc_update() argument 147 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksumc_update() 153 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final() argument 155 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_final() 161 static int chksumc_final(struct shash_desc *desc, u8 *out) in chksumc_final() argument [all …]
|
/openbmc/linux/drivers/dma/ |
H A D | stm32-dma.c | 216 struct stm32_dma_desc *desc; member 508 if (chan->desc) { in stm32_dma_terminate_all() 509 dma_cookie_complete(&chan->desc->vdesc.tx); in stm32_dma_terminate_all() 510 vchan_terminate_vdesc(&chan->desc->vdesc); in stm32_dma_terminate_all() 513 chan->desc = NULL; in stm32_dma_terminate_all() 551 if (chan->desc->cyclic && (chan->next_sg == chan->desc->num_sgs)) in stm32_dma_sg_inc() 570 if (!chan->desc) { in stm32_dma_start_transfer() 577 chan->desc = to_stm32_dma_desc(vdesc); in stm32_dma_start_transfer() 581 if (chan->next_sg == chan->desc->num_sgs) in stm32_dma_start_transfer() 584 sg_req = &chan->desc->sg_req[chan->next_sg]; in stm32_dma_start_transfer() [all …]
|
H A D | mmp_pdma.c | 81 struct mmp_pdma_desc_hw desc; member 92 struct dma_async_tx_descriptor desc; member 298 struct mmp_pdma_desc_sw *desc; in start_pending_queue() local 325 desc = list_first_entry(&chan->chain_pending, in start_pending_queue() 333 set_desc(chan->phy, desc->async_tx.phys); in start_pending_queue() 343 struct mmp_pdma_desc_sw *desc = tx_to_mmp_pdma_desc(tx); in mmp_pdma_tx_submit() local 350 list_for_each_entry(child, &desc->tx_list, node) { in mmp_pdma_tx_submit() 355 list_splice_tail_init(&desc->tx_list, &chan->chain_pending); in mmp_pdma_tx_submit() 365 struct mmp_pdma_desc_sw *desc; in mmp_pdma_alloc_descriptor() local 368 desc = dma_pool_zalloc(chan->desc_pool, GFP_ATOMIC, &pdesc); in mmp_pdma_alloc_descriptor() [all …]
|
/openbmc/linux/drivers/net/ethernet/amazon/ena/ |
H A D | ena_eth_com.c | 379 struct ena_eth_io_tx_desc *desc = NULL; in ena_com_prepare_tx() local 432 desc = get_sq_desc(io_sq); in ena_com_prepare_tx() 433 if (unlikely(!desc)) in ena_com_prepare_tx() 435 memset(desc, 0x0, sizeof(struct ena_eth_io_tx_desc)); in ena_com_prepare_tx() 439 desc->len_ctrl |= ENA_ETH_IO_TX_DESC_FIRST_MASK; in ena_com_prepare_tx() 441 desc->buff_addr_hi_hdr_sz |= ((u32)header_len << in ena_com_prepare_tx() 444 desc->len_ctrl |= ((u32)io_sq->phase << ENA_ETH_IO_TX_DESC_PHASE_SHIFT) & in ena_com_prepare_tx() 447 desc->len_ctrl |= ENA_ETH_IO_TX_DESC_COMP_REQ_MASK; in ena_com_prepare_tx() 450 desc->meta_ctrl |= ((u32)ena_tx_ctx->req_id << in ena_com_prepare_tx() 454 desc->meta_ctrl |= (ena_tx_ctx->df << in ena_com_prepare_tx() [all …]
|
/openbmc/linux/drivers/mmc/core/ |
H A D | slot-gpio.c | 193 struct gpio_desc *desc; in mmc_gpiod_request_cd() local 196 desc = devm_gpiod_get_index(host->parent, con_id, idx, GPIOD_IN); in mmc_gpiod_request_cd() 197 if (IS_ERR(desc)) in mmc_gpiod_request_cd() 198 return PTR_ERR(desc); in mmc_gpiod_request_cd() 202 gpiod_set_consumer_name(desc, ctx->cd_label); in mmc_gpiod_request_cd() 205 ret = gpiod_set_debounce(desc, debounce); in mmc_gpiod_request_cd() 211 if (override_active_level && !gpiod_is_active_low(desc)) in mmc_gpiod_request_cd() 212 gpiod_toggle_active_low(desc); in mmc_gpiod_request_cd() 216 gpiod_toggle_active_low(desc); in mmc_gpiod_request_cd() 218 ctx->cd_gpio = desc; in mmc_gpiod_request_cd() [all …]
|
/openbmc/ipmitool/lib/ |
H A D | ipmi_oem.c | 46 .desc = "Supermicro IPMIv1.5 BMC with OEM LAN authentication support", 51 .desc = "Intel SE7501WV2 IPMIv1.5 BMC with extra LAN communication support", 55 .desc = "Intel IPMI 2.0 BMC with RMCP+ communication support", 59 .desc = "IPMI 2.0 ICTS compliance support", 63 .desc = "IBM OEM support", 68 .desc = "Intel 82571 MAC with integrated RMCP+ support in super pass-through mode", 72 .desc = "Kontron OEM big buffer support" 103 for (oem=ipmi_oem_list; oem->name != NULL && oem->desc != NULL; oem++) { in ipmi_oem_print() 104 lprintf(LOG_NOTICE, "\t%-12s %s", oem->name, oem->desc); in ipmi_oem_print() 143 lprintf(LOG_DEBUG, "Running OEM setup for \"%s\"", oem->desc); in ipmi_oem_setup()
|
/openbmc/linux/drivers/net/wan/ |
H A D | ixp4xx_hss.c | 50 #define POOL_ALLOC_SIZE (sizeof(struct desc) * (RX_DESCS + TX_DESCS)) 275 struct desc *desc_tab; /* coherent */ 304 struct desc { struct 326 (n) * sizeof(struct desc)) argument 330 ((n) + RX_DESCS) * sizeof(struct desc)) 579 static inline void debug_desc(u32 phys, struct desc *desc) in debug_desc() argument 583 phys, desc->next, desc->buf_len, desc->pkt_len, in debug_desc() 584 desc->data, desc->status, desc->error_count); in debug_desc() 592 struct desc *tab; in queue_get_desc() 601 n_desc = (phys - tab_phys) / sizeof(struct desc); in queue_get_desc() [all …]
|