/openbmc/linux/include/linux/ |
H A D | irqnr.h | 12 # define for_each_irq_desc(irq, desc) \ argument 13 for (irq = 0, desc = irq_to_desc(irq); irq < nr_irqs; \ 14 irq++, desc = irq_to_desc(irq)) \ 15 if (!desc) \ 20 # define for_each_irq_desc_reverse(irq, desc) \ argument 21 for (irq = nr_irqs - 1, desc = irq_to_desc(irq); irq >= 0; \ 22 irq--, desc = irq_to_desc(irq)) \ 23 if (!desc) \
|
/openbmc/linux/drivers/pinctrl/sunxi/ |
H A D | pinctrl-sunxi.c | 149 for (i = 0; i < pctl->desc->npins; i++) { in sunxi_pinctrl_desc_find_function_by_name() 150 const struct sunxi_desc_pin *pin = pctl->desc->pins + i; in sunxi_pinctrl_desc_find_function_by_name() 176 for (i = 0; i < pctl->desc->npins; i++) { in sunxi_pinctrl_desc_find_function_by_pin() 177 const struct sunxi_desc_pin *pin = pctl->desc->pins + i; in sunxi_pinctrl_desc_find_function_by_pin() 545 pin -= pctl->desc->pin_base; in sunxi_pconf_get() 604 pin -= pctl->desc->pin_base; in sunxi_pconf_set() 687 if (!pctl->desc->io_bias_cfg_variant) in sunxi_pinctrl_set_io_bias_cfg() 698 pin -= pctl->desc->pin_base; in sunxi_pinctrl_set_io_bias_cfg() 701 switch (pctl->desc->io_bias_cfg_variant) { in sunxi_pinctrl_set_io_bias_cfg() 782 pin -= pctl->desc->pin_base; in sunxi_pmx_set() [all …]
|
/openbmc/linux/drivers/dma/dw-axi-dmac/ |
H A D | dw-axi-dmac-platform.c | 248 struct axi_dma_desc *desc; in axi_desc_alloc() local 250 desc = kzalloc(sizeof(*desc), GFP_NOWAIT); in axi_desc_alloc() 251 if (!desc) in axi_desc_alloc() 254 desc->hw_desc = kcalloc(num, sizeof(*desc->hw_desc), GFP_NOWAIT); in axi_desc_alloc() 255 if (!desc->hw_desc) { in axi_desc_alloc() 256 kfree(desc); in axi_desc_alloc() 259 desc->nr_hw_descs = num; in axi_desc_alloc() 261 return desc; in axi_desc_alloc() 283 static void axi_desc_put(struct axi_dma_desc *desc) in axi_desc_put() argument 285 struct axi_dma_chan *chan = desc->chan; in axi_desc_put() [all …]
|
/openbmc/linux/net/sunrpc/auth_gss/ |
H A D | gss_krb5_test.c | 23 const char *desc; member 38 char *desc) in gss_krb5_get_desc() argument 40 strscpy(desc, param->desc, KUNIT_PARAM_DESC_SIZE); in gss_krb5_get_desc() 233 .desc = "64-fold(\"012345\")", 239 .desc = "56-fold(\"password\")", 245 .desc = "64-fold(\"Rough Consensus, and Running Code\")", 251 .desc = "168-fold(\"password\")", 257 .desc = "192-fold(\"MASSACHVSETTS INSTITVTE OF TECHNOLOGY\")", 263 .desc = "168-fold(\"Q\")", 269 .desc = "168-fold(\"ba\")", [all …]
|
/openbmc/linux/drivers/dma/sh/ |
H A D | shdma-base.c | 72 struct shdma_desc *chunk, *c, *desc = in shdma_tx_submit() local 86 list_for_each_entry_safe(chunk, c, desc->node.prev, node) { in shdma_tx_submit() 91 if (chunk != desc && (chunk->mark == DESC_IDLE || in shdma_tx_submit() 208 struct shdma_desc *desc; in shdma_alloc_chan_resources() local 227 schan->desc = kcalloc(NR_DESCS_PER_CHANNEL, in shdma_alloc_chan_resources() 229 if (!schan->desc) { in shdma_alloc_chan_resources() 236 desc = ops->embedded_desc(schan->desc, i); in shdma_alloc_chan_resources() 237 dma_async_tx_descriptor_init(&desc->async_tx, in shdma_alloc_chan_resources() 239 desc->async_tx.tx_submit = shdma_tx_submit; in shdma_alloc_chan_resources() 240 desc->mark = DESC_IDLE; in shdma_alloc_chan_resources() [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | da9063-regulator.c | 75 struct regulator_desc desc; member 93 .desc.id = chip##_ID_##regl_name, \ 94 .desc.name = __stringify(chip##_##regl_name), \ 95 .desc.ops = &da9063_ldo_ops, \ 96 .desc.min_uV = (min_mV) * 1000, \ 97 .desc.uV_step = (step_mV) * 1000, \ 98 .desc.n_voltages = (((max_mV) - (min_mV))/(step_mV) + 1 \ 100 .desc.enable_reg = DA9063_REG_##regl_name##_CONT, \ 101 .desc.enable_mask = DA9063_LDO_EN, \ 102 .desc.vsel_reg = DA9063_REG_V##regl_name##_A, \ [all …]
|
H A D | arizona-micsupp.c | 37 const struct regulator_desc *desc; member 52 const struct regulator_desc *desc = micsupp->desc; in arizona_micsupp_check_cp() local 56 ret = regmap_read(micsupp->regmap, desc->enable_reg, &val); in arizona_micsupp_check_cp() 66 if ((val & (desc->enable_mask | desc->bypass_mask)) == in arizona_micsupp_check_cp() 67 desc->enable_mask) in arizona_micsupp_check_cp() 230 const struct regulator_desc *desc) in arizona_micsupp_of_get_pdata() argument 241 init_data = of_get_regulator_init_data(config->dev, np, desc); in arizona_micsupp_of_get_pdata() 256 const struct regulator_desc *desc, in arizona_micsupp_common_init() argument 266 micsupp->desc = desc; in arizona_micsupp_common_init() 275 desc); in arizona_micsupp_common_init() [all …]
|
H A D | pca9450-regulator.c | 28 struct regulator_desc desc; member 152 static int buck_set_dvs(const struct regulator_desc *desc, in buck_set_dvs() argument 165 for (i = 0; i < desc->n_voltages; i++) { in buck_set_dvs() 166 ret = regulator_desc_list_voltage_linear_range(desc, i); in buck_set_dvs() 170 i <<= ffs(desc->vsel_mask) - 1; in buck_set_dvs() 177 struct pca9450_regulator_desc *regulator = container_of(desc, in buck_set_dvs() 178 struct pca9450_regulator_desc, desc); in buck_set_dvs() 181 ret = regmap_update_bits(regmap, regulator->desc.enable_reg, in buck_set_dvs() 188 const struct regulator_desc *desc, in pca9450_set_dvs_levels() argument 191 struct pca9450_regulator_desc *data = container_of(desc, in pca9450_set_dvs_levels() [all …]
|
H A D | bd718x7-regulator.c | 122 ret = regmap_read(rdev->regmap, rdev->desc->enable_reg, &val); in bd71837_get_buck34_enable_hwctrl() 157 if (rdev->desc->ops->is_enabled(rdev)) { in voltage_change_prepare() 160 now = rdev->desc->ops->get_voltage_sel(rdev); in voltage_change_prepare() 164 now = rdev->desc->ops->list_voltage(rdev, now); in voltage_change_prepare() 168 new = rdev->desc->ops->list_voltage(rdev, sel); in voltage_change_prepare() 189 int ldo_offset = rdev->desc->id - BD718XX_LDO1; in voltage_change_prepare() 254 if (rdev->desc->ops->is_enabled(rdev)) in bd71837_set_voltage_sel_pickable_restricted() 430 struct regulator_desc desc; member 463 int ldo_offset = rdev->desc->id - BD718XX_LDO1; in bd718x7_set_ldo_uvp() 531 ret = bd718x7_get_buck_uvp_info(rdev->desc->id, ®, &bit); in bd718x7_set_buck_uvp() [all …]
|
/openbmc/linux/crypto/ |
H A D | crc32c_generic.c | 57 static int chksum_init(struct shash_desc *desc) in chksum_init() argument 59 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); in chksum_init() 60 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_init() 83 static int chksum_update(struct shash_desc *desc, const u8 *data, in chksum_update() argument 86 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_update() 92 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final() argument 94 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_final() 106 static int chksum_finup(struct shash_desc *desc, const u8 *data, in chksum_finup() argument 109 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_finup() 114 static int chksum_digest(struct shash_desc *desc, const u8 *data, in chksum_digest() argument [all …]
|
/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | ring_mode.c | 24 struct dma_desc *desc; in jumbo_frm() local 27 desc = (struct dma_desc *)(tx_q->dma_etx + entry); in jumbo_frm() 29 desc = tx_q->dma_tx + entry; in jumbo_frm() 42 desc->des2 = cpu_to_le32(des2); in jumbo_frm() 50 desc->des3 = cpu_to_le32(des2 + BUF_SIZE_4KiB); in jumbo_frm() 51 stmmac_prepare_tx_desc(priv, desc, 1, bmax, csum, in jumbo_frm() 57 desc = (struct dma_desc *)(tx_q->dma_etx + entry); in jumbo_frm() 59 desc = tx_q->dma_tx + entry; in jumbo_frm() 63 desc->des2 = cpu_to_le32(des2); in jumbo_frm() 70 desc->des3 = cpu_to_le32(des2 + BUF_SIZE_4KiB); in jumbo_frm() [all …]
|
/openbmc/linux/drivers/firmware/ |
H A D | qcom_scm-legacy.c | 134 int scm_legacy_call(struct device *dev, const struct qcom_scm_desc *desc, in scm_legacy_call() argument 137 u8 arglen = desc->arginfo & 0xf; in scm_legacy_call() 158 cmd->id = cpu_to_le32(SCM_LEGACY_FNID(desc->svc, desc->cmd)); in scm_legacy_call() 162 arg_buf[i] = cpu_to_le32(desc->args[i]); in scm_legacy_call() 225 const struct qcom_scm_desc *desc, in scm_legacy_call_atomic() argument 230 size_t arglen = desc->arginfo & 0xf; in scm_legacy_call_atomic() 234 arm_smccc_smc(SCM_LEGACY_ATOMIC_ID(desc->svc, desc->cmd, arglen), in scm_legacy_call_atomic() 236 desc->args[0], desc->args[1], desc->args[2], in scm_legacy_call_atomic() 237 desc->args[3], desc->args[4], 0, &smc_res); in scm_legacy_call_atomic()
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_common.c | 251 struct ice_aq_desc desc; in ice_clear_pf_cfg() local 253 ice_fill_dflt_direct_cmd_desc(&desc, ice_aqc_opc_clear_pf_cfg); in ice_clear_pf_cfg() 255 return ice_aq_send_cmd(hw, &desc, NULL, 0, NULL); in ice_clear_pf_cfg() 279 struct ice_aq_desc desc; in ice_aq_manage_mac_read() local 284 cmd = &desc.params.mac_read; in ice_aq_manage_mac_read() 289 ice_fill_dflt_direct_cmd_desc(&desc, ice_aqc_opc_manage_mac_read); in ice_aq_manage_mac_read() 291 status = ice_aq_send_cmd(hw, &desc, buf, buf_size, cd); in ice_aq_manage_mac_read() 333 struct ice_aq_desc desc; in ice_aq_get_phy_caps() local 338 cmd = &desc.params.get_phy; in ice_aq_get_phy_caps() 348 ice_fill_dflt_direct_cmd_desc(&desc, ice_aqc_opc_get_phy_caps); in ice_aq_get_phy_caps() [all …]
|
H A D | ice_controlq.c | 173 struct ice_aq_desc *desc; in ice_alloc_rq_bufs() local 185 desc = ICE_CTL_Q_DESC(cq->rq, i); in ice_alloc_rq_bufs() 187 desc->flags = cpu_to_le16(ICE_AQ_FLAG_BUF); in ice_alloc_rq_bufs() 189 desc->flags |= cpu_to_le16(ICE_AQ_FLAG_LB); in ice_alloc_rq_bufs() 190 desc->opcode = 0; in ice_alloc_rq_bufs() 194 desc->datalen = cpu_to_le16(bi->size); in ice_alloc_rq_bufs() 195 desc->retval = 0; in ice_alloc_rq_bufs() 196 desc->cookie_high = 0; in ice_alloc_rq_bufs() 197 desc->cookie_low = 0; in ice_alloc_rq_bufs() 198 desc->params.generic.addr_high = in ice_alloc_rq_bufs() [all …]
|
/openbmc/linux/include/crypto/ |
H A D | hash.h | 226 int (*init)(struct shash_desc *desc); 227 int (*update)(struct shash_desc *desc, const u8 *data, 229 int (*final)(struct shash_desc *desc, u8 *out); 230 int (*finup)(struct shash_desc *desc, const u8 *data, 232 int (*digest)(struct shash_desc *desc, const u8 *data, 234 int (*export)(struct shash_desc *desc, void *out); 235 int (*import)(struct shash_desc *desc, const void *in); 885 static inline void *shash_desc_ctx(struct shash_desc *desc) in shash_desc_ctx() argument 887 return desc->__ctx; in shash_desc_ctx() 921 int crypto_shash_digest(struct shash_desc *desc, const u8 *data, [all …]
|
/openbmc/qemu/target/arm/tcg/ |
H A D | sve_helper.c | 120 void HELPER(NAME)(void *vd, void *vn, void *vm, void *vg, uint32_t desc) \ 122 uintptr_t opr_sz = simd_oprsz(desc); \ 167 void HELPER(NAME)(void *vd, void *vn, void *vm, void *vg, uint32_t desc) \ in LOGICAL_PPPP() 169 intptr_t i, opr_sz = simd_oprsz(desc); \ in LOGICAL_PPPP() 185 void HELPER(NAME)(void *vd, void *vn, void *vm, void *vg, uint32_t desc) \ 187 intptr_t i, opr_sz = simd_oprsz(desc) / 8; \ 662 void HELPER(NAME)(void *vd, void *vn, void *vm, void *vg, uint32_t desc) \ in DO_ZPZZ() 664 intptr_t i, opr_sz = simd_oprsz(desc); \ in DO_ZPZZ() 686 void HELPER(NAME)(void *vd, void *vn, void *vm, void *vg, uint32_t desc) \ 688 intptr_t i, opr_sz = simd_oprsz(desc) / 8; \ [all …]
|
/openbmc/openpower-debug-collector/dump/tools/bmcdump/plugins/ |
H A D | occ | 13 desc="occ control" 20 add_cmd_output "$command" "$file_name" "$desc" 23 desc="occ control host" 29 add_cmd_output "$command" "$file_name" "$desc" 32 desc="occ sensor" 38 add_cmd_output "$command" "$file_name" "$desc" 42 add_copy_file "$occ_dir" "$desc"
|
/openbmc/phosphor-debug-collector/tools/dreport.d/openpower.d/plugins.d/ |
H A D | occ | 13 desc="occ control" 20 add_cmd_output "$command" "$file_name" "$desc" 23 desc="occ conrol host" 29 add_cmd_output "$command" "$file_name" "$desc" 32 desc="occ sensor" 38 add_cmd_output "$command" "$file_name" "$desc" 42 add_copy_file "$occ_dir" "$desc"
|
/openbmc/linux/drivers/net/wireless/intersil/p54/ |
H A D | p54pci.c | 147 struct p54p_desc *desc = &ring[i]; in p54p_refill_rx_ring() local 149 if (!desc->host_addr) { in p54p_refill_rx_ring() 168 desc->host_addr = cpu_to_le32(mapping); in p54p_refill_rx_ring() 169 desc->device_addr = 0; // FIXME: necessary? in p54p_refill_rx_ring() 170 desc->len = cpu_to_le16(priv->common.rx_mtu + 32); in p54p_refill_rx_ring() 171 desc->flags = 0; in p54p_refill_rx_ring() 190 struct p54p_desc *desc; in p54p_check_rx_ring() local 200 desc = &ring[i]; in p54p_check_rx_ring() 201 len = le16_to_cpu(desc->len); in p54p_check_rx_ring() 217 dma_addr = le32_to_cpu(desc->host_addr); in p54p_check_rx_ring() [all …]
|
/openbmc/linux/drivers/net/ethernet/ti/ |
H A D | netcp_core.c | 109 struct knav_dma_desc *desc) in get_pkt_info() argument 111 *buff_len = le32_to_cpu(desc->buff_len); in get_pkt_info() 112 *buff = le32_to_cpu(desc->buff); in get_pkt_info() 113 *ndesc = le32_to_cpu(desc->next_desc); in get_pkt_info() 117 struct knav_dma_desc *desc) in get_desc_info() argument 119 *desc_info = le32_to_cpu(desc->desc_info); in get_desc_info() 120 *pkt_info = le32_to_cpu(desc->packet_info); in get_desc_info() 123 static u32 get_sw_data(int index, struct knav_dma_desc *desc) in get_sw_data() argument 126 return desc->sw_data[index]; in get_sw_data() 130 #define GET_SW_DATA0(desc) get_sw_data(0, desc) argument [all …]
|
/openbmc/linux/drivers/soc/fsl/dpio/ |
H A D | dpio-driver.c | 124 struct dpaa2_io_desc desc; in dpaa2_dpio_probe() local 163 desc.qman_version = dpio_attrs.qbman_version; in dpaa2_dpio_probe() 164 desc.qman_clk = dpio_attrs.clk; in dpaa2_dpio_probe() 173 desc.receives_notifications = dpio_attrs.num_priorities ? 1 : 0; in dpaa2_dpio_probe() 174 desc.has_8prio = dpio_attrs.num_priorities == 8 ? 1 : 0; in dpaa2_dpio_probe() 175 desc.dpio_id = dpio_dev->obj_desc.id; in dpaa2_dpio_probe() 184 desc.cpu = possible_next_cpu; in dpaa2_dpio_probe() 187 sdest = dpaa2_dpio_get_cluster_sdest(dpio_dev, desc.cpu); in dpaa2_dpio_probe() 194 desc.cpu); in dpaa2_dpio_probe() 204 desc.regs_cena = devm_memremap(dev, dpio_dev->regions[1].start, in dpaa2_dpio_probe() [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | debugfs.c | 131 int desc = 0; in mt7915_sys_recovery_get() local 140 desc += scnprintf(buff + desc, bufsz - desc, in mt7915_sys_recovery_get() 142 desc += scnprintf(buff + desc, bufsz - desc, in mt7915_sys_recovery_get() 144 desc += scnprintf(buff + desc, bufsz - desc, in mt7915_sys_recovery_get() 146 desc += scnprintf(buff + desc, bufsz - desc, in mt7915_sys_recovery_get() 148 desc += scnprintf(buff + desc, bufsz - desc, in mt7915_sys_recovery_get() 150 desc += scnprintf(buff + desc, bufsz - desc, in mt7915_sys_recovery_get() 152 desc += scnprintf(buff + desc, bufsz - desc, in mt7915_sys_recovery_get() 154 desc += scnprintf(buff + desc, bufsz - desc, in mt7915_sys_recovery_get() 156 desc += scnprintf(buff + desc, bufsz - desc, in mt7915_sys_recovery_get() [all …]
|
/openbmc/ipmitool/lib/ |
H A D | ipmi_sel.c | 460 size_t len =strlen(st->desc); in get_kontron_evt_desc() 462 memcpy(description, st->desc , len); in get_kontron_evt_desc() 540 char *desc = NULL; in get_supermicro_evt_desc() local 559 desc = malloc(sizeof(char) * SIZE_OF_DESC); in get_supermicro_evt_desc() 560 if (desc == NULL) { in get_supermicro_evt_desc() 564 memset(desc, '\0', SIZE_OF_DESC); in get_supermicro_evt_desc() 578 if (desc != NULL) { in get_supermicro_evt_desc() 579 free(desc); in get_supermicro_evt_desc() 580 desc = NULL; in get_supermicro_evt_desc() 586 if (desc != NULL) { in get_supermicro_evt_desc() [all …]
|
/openbmc/linux/drivers/net/usb/ |
H A D | cdc_ether.c | 24 static int is_rndis(struct usb_interface_descriptor *desc) in is_rndis() argument 26 return (desc->bInterfaceClass == USB_CLASS_COMM && in is_rndis() 27 desc->bInterfaceSubClass == 2 && in is_rndis() 28 desc->bInterfaceProtocol == 0xff); in is_rndis() 31 static int is_activesync(struct usb_interface_descriptor *desc) in is_activesync() argument 33 return (desc->bInterfaceClass == USB_CLASS_MISC && in is_activesync() 34 desc->bInterfaceSubClass == 1 && in is_activesync() 35 desc->bInterfaceProtocol == 1); in is_activesync() 38 static int is_wireless_rndis(struct usb_interface_descriptor *desc) in is_wireless_rndis() argument 40 return (desc->bInterfaceClass == USB_CLASS_WIRELESS_CONTROLLER && in is_wireless_rndis() [all …]
|
/openbmc/linux/sound/soc/sof/ |
H A D | sof-pci-dev.c | 194 const struct sof_dev_desc *desc = in sof_pci_probe() local 201 if (!desc) { in sof_pci_probe() 206 if (!desc->ops) { in sof_pci_probe() 232 sof_pdata->desc = desc; in sof_pci_probe() 235 sof_pdata->ipc_type = desc->ipc_default; in sof_pci_probe() 238 sof_pdata->ipc_type = desc->ipc_default; in sof_pci_probe() 241 desc->ipc_default, sof_pci_ipc_type); in sof_pci_probe() 247 if (!(BIT(sof_pci_ipc_type) & desc->ipc_supported_mask)) { in sof_pci_probe() 249 sof_pci_ipc_type, desc->ipc_supported_mask); in sof_pci_probe() 262 sof_pdata->fw_filename = desc->default_fw_filename[sof_pdata->ipc_type]; in sof_pci_probe() [all …]
|