/openbmc/qemu/tests/functional/acpi-bits/bits-tests/ |
H A D | testcpuid.py2 | 55 desc = ["CPUID function {:#x}{}".format(function, indexdesc)] 58 desc.append("Register values have been shifted by {}".format(shift)) 60 desc.append("Register values have been masked:") 68 desc.append('Register values are not unique across all logical processors') 75 desc.append("On {0} CPUs: {1}".format(len(cpus), testutil.apicid_list(cpus))) 77 return uniques, desc 80 … uniques, desc = cpuid_helper(function, index, shift, mask, eax_mask, ebx_mask, ecx_mask, edx_mask) 81 desc[0] += " Consistency Check" 83 desc.insert(0, text) 84 status = testsuite.test(desc[0], len(uniques) == 1) [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | gpio-regulator.c | 34 struct regulator_desc desc; member 131 const struct regulator_desc *desc) in of_get_gpio_regulator_config() argument 252 &drvdata->desc); in gpio_regulator_probe() 258 if (drvdata->desc.name == NULL) { in gpio_regulator_probe() 270 if (!drvdata->desc.supply_name) { in gpio_regulator_probe() 302 drvdata->desc.owner = THIS_MODULE; in gpio_regulator_probe() 308 drvdata->desc.type = REGULATOR_VOLTAGE; in gpio_regulator_probe() 309 drvdata->desc.ops = &gpio_regulator_voltage_ops; in gpio_regulator_probe() 310 drvdata->desc.n_voltages = config->nr_states; in gpio_regulator_probe() 313 drvdata->desc.type = REGULATOR_CURRENT; in gpio_regulator_probe() [all …]
|
/openbmc/qemu/target/i386/hvf/ |
H A D | x86.h | 138 static inline uint32_t x86_segment_base(x86_segment_descriptor *desc) in x86_segment_base() argument 140 return (uint32_t)((desc->base2 << 24) | (desc->base1 << 16) | desc->base0); in x86_segment_base() 143 static inline void x86_set_segment_base(x86_segment_descriptor *desc, in x86_set_segment_base() argument 146 desc->base2 = base >> 24; in x86_set_segment_base() 147 desc->base1 = (base >> 16) & 0xff; in x86_set_segment_base() 148 desc->base0 = base & 0xffff; in x86_set_segment_base() 151 static inline uint32_t x86_segment_limit(x86_segment_descriptor *desc) in x86_segment_limit() argument 153 uint32_t limit = (uint32_t)((desc->limit1 << 16) | desc->limit0); in x86_segment_limit() 154 if (desc->g) { in x86_segment_limit() 163 desc->limit0 = limit & 0xffff; in x86_set_segment_limit() [all …]
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | uvc_configfs.c | 888 xu->desc.bLength = UVC_DT_EXTENSION_UNIT_SIZE(xu->desc.bNrInPins, in uvcg_extension_b_nr_in_pins_store() 941 xu->desc.bLength = UVC_DT_EXTENSION_UNIT_SIZE(xu->desc.bNrInPins, in uvcg_extension_b_control_size_store() 969 memcpy(page, xu->desc.guidExtensionCode, sizeof(xu->desc.guidExtensionCode)); in uvcg_extension_guid_extension_code_show() 1072 xu->desc.bNrInPins = n; in uvcg_extension_ba_source_id_store() 1073 xu->desc.bLength = UVC_DT_EXTENSION_UNIT_SIZE(xu->desc.bNrInPins, in uvcg_extension_ba_source_id_store() 1152 xu->desc.bLength = UVC_DT_EXTENSION_UNIT_SIZE(xu->desc.bNrInPins, in uvcg_extension_bm_controls_store() 2249 memcpy(page, ch->desc.guidFormat, sizeof(ch->desc.guidFormat)); in uvcg_uncompressed_guid_format_show() 3017 memcpy(*dest, &h->desc, sizeof(h->desc)); in __uvcg_fill_strm() 3038 memcpy(*dest, &u->desc, sizeof(u->desc)); in __uvcg_fill_strm() 3046 memcpy(*dest, &m->desc, sizeof(m->desc)); in __uvcg_fill_strm() [all …]
|
/openbmc/linux/drivers/net/wan/ |
H A D | hd64572.c | 139 writel(chain_off, &desc->cp); in sca_init_port() 140 writel(buff_off, &desc->bp); in sca_init_port() 141 writew(0, &desc->len); in sca_init_port() 142 writeb(0, &desc->stat); in sca_init_port() 201 len = readw(&desc->len); in sca_rx() 241 pkt_desc __iomem *desc; in sca_rx_done() local 248 stat = readb(&desc->stat); in sca_rx_done() 295 u8 stat = readb(&desc->stat); in sca_tx_done() 568 pkt_desc __iomem *desc; in sca_xmit() local 586 writew(len, &desc->len); in sca_xmit() [all …]
|
/openbmc/linux/drivers/pinctrl/ |
H A D | pinctrl-axp209.c | 72 const struct axp20x_pctrl_desc *desc; member 292 mask = pctl->desc->ldo_mask; in axp20x_pmx_set_mux() 294 mask = pctl->desc->adc_mask; in axp20x_pmx_set_mux() 338 return pctl->desc->npins; in axp20x_groups_cnt() 426 pctl->desc->pins); in axp20x_build_funcs_groups() 432 pctl->desc->pins); in axp20x_build_funcs_groups() 482 pctl->chip.ngpio = pctl->desc->npins; in axp20x_pctl_probe() 501 pctrl_desc->pins = pctl->desc->pins; in axp20x_pctl_probe() 519 pctl->desc->pins->number, in axp20x_pctl_probe() 520 pctl->desc->pins->number, in axp20x_pctl_probe() [all …]
|
/openbmc/linux/drivers/dma/sh/ |
H A D | rz-dmac.c | 68 struct rz_dmac_desc *desc; member 423 desc = kzalloc(sizeof(*desc), GFP_KERNEL); in rz_dmac_alloc_chan_resources() 424 if (!desc) in rz_dmac_alloc_chan_resources() 463 kfree(desc); in rz_dmac_free_chan_resources() 488 desc->src = src; in rz_dmac_prep_dma_memcpy() 489 desc->dest = dest; in rz_dmac_prep_dma_memcpy() 490 desc->len = len; in rz_dmac_prep_dma_memcpy() 519 desc->sg = sgl; in rz_dmac_prep_slave_sg() 520 desc->sgcount = sg_len; in rz_dmac_prep_slave_sg() 562 channel->desc = desc; in rz_dmac_issue_pending() [all …]
|
/openbmc/linux/drivers/firewire/ |
H A D | core-card.c | 92 struct fw_descriptor *desc; in generate_config_rom() local 123 if (desc->immediate > 0) in generate_config_rom() 127 j += desc->length; in generate_config_rom() 137 i += desc->length; in generate_config_rom() 164 return desc->length + 1 + (desc->immediate > 0 ? 1 : 0); in required_space() 178 while (i < desc->length) in fw_core_add_descriptor() 179 i += (desc->data[i] >> 16) + 1; in fw_core_add_descriptor() 181 if (i != desc->length) in fw_core_add_descriptor() 192 if (desc->immediate > 0) in fw_core_add_descriptor() 208 list_del(&desc->link); in fw_core_remove_descriptor() [all …]
|
/openbmc/linux/drivers/sh/intc/ |
H A D | balancing.c | 40 static unsigned int intc_dist_data(struct intc_desc *desc, in intc_dist_data() argument 44 struct intc_mask_reg *mr = desc->hw.mask_regs; in intc_dist_data() 48 for (i = 0; mr && enum_id && i < desc->hw.nr_mask_regs; i++) { in intc_dist_data() 49 mr = desc->hw.mask_regs + i; in intc_dist_data() 83 void intc_set_dist_handle(unsigned int irq, struct intc_desc *desc, in intc_set_dist_handle() argument 91 if (!desc->hw.mask_regs) in intc_set_dist_handle() 95 dist_handle[irq] = intc_dist_data(desc, d, id); in intc_set_dist_handle()
|
/openbmc/linux/drivers/platform/surface/ |
H A D | surface_aggregator_cdev.c | 378 ret = copy_struct_from_user(&desc, sizeof(desc), d, sizeof(*d)); in ssam_cdev_notif_register() 382 return ssam_cdev_notifier_register(client, desc.target_category, desc.priority); in ssam_cdev_notif_register() 393 ret = copy_struct_from_user(&desc, sizeof(desc), d, sizeof(*d)); in ssam_cdev_notif_unregister() 403 struct ssam_cdev_event_desc desc; in ssam_cdev_event_enable() local 411 ret = copy_struct_from_user(&desc, sizeof(desc), d, sizeof(*d)); in ssam_cdev_event_enable() 417 reg.target_id = desc.reg.target_id; in ssam_cdev_event_enable() 422 id.instance = desc.id.instance; in ssam_cdev_event_enable() 431 struct ssam_cdev_event_desc desc; in ssam_cdev_event_disable() local 439 ret = copy_struct_from_user(&desc, sizeof(desc), d, sizeof(*d)); in ssam_cdev_event_disable() 445 reg.target_id = desc.reg.target_id; in ssam_cdev_event_disable() [all …]
|
/openbmc/qemu/hw/net/ |
H A D | opencores_eth.c | 267 typedef struct desc { struct 270 } desc; typedef 290 desc desc[128]; member 293 static desc *rx_desc(OpenEthState *s) in rx_desc() 295 return s->desc + s->rx_desc; in rx_desc() 298 static desc *tx_desc(OpenEthState *s) in tx_desc() 300 return s->desc + s->tx_desc; in tx_desc() 404 desc *desc = rx_desc(s); local 465 desc->len_flags &= ~RXD_E; 467 trace_open_eth_receive_desc(desc->buf_ptr, desc->len_flags); [all …]
|
H A D | cadence_gem.c | 427 uint64_t ret = desc[0]; in tx_desc_get_buffer() 442 desc[1] |= DESC_1_USED; in tx_desc_set_used() 457 return desc[1] & DESC_1_LENGTH; in tx_desc_get_length() 472 uint64_t ret = desc[0] & ~0x3UL; in rx_desc_get_buffer() 508 desc[0] |= DESC_0_RX_OWNERSHIP; in rx_desc_set_ownership() 513 desc[1] |= DESC_1_RX_SOF; in rx_desc_set_sof() 518 desc[1] = 0; in rx_desc_clear_control() 523 desc[1] |= DESC_1_RX_EOF; in rx_desc_set_eof() 528 desc[1] &= ~DESC_1_LENGTH; in rx_desc_set_length() 529 desc[1] |= len; in rx_desc_set_length() [all …]
|
/openbmc/linux/arch/arm64/crypto/ |
H A D | crct10dif-ce-glue.c | 26 static int crct10dif_init(struct shash_desc *desc) in crct10dif_init() argument 28 u16 *crc = shash_desc_ctx(desc); in crct10dif_init() 34 static int crct10dif_update_pmull_p8(struct shash_desc *desc, const u8 *data, in crct10dif_update_pmull_p8() argument 37 u16 *crc = shash_desc_ctx(desc); in crct10dif_update_pmull_p8() 59 static int crct10dif_update_pmull_p64(struct shash_desc *desc, const u8 *data, in crct10dif_update_pmull_p64() argument 62 u16 *crc = shash_desc_ctx(desc); in crct10dif_update_pmull_p64() 84 static int crct10dif_final(struct shash_desc *desc, u8 *out) in crct10dif_final() argument 86 u16 *crc = shash_desc_ctx(desc); in crct10dif_final()
|
/openbmc/linux/drivers/usb/typec/ |
H A D | retimer.c | 105 typec_retimer_register(struct device *parent, const struct typec_retimer_desc *desc) in typec_retimer_register() argument 110 if (!desc || !desc->set) in typec_retimer_register() 117 retimer->set = desc->set; in typec_retimer_register() 121 retimer->dev.fwnode = desc->fwnode; in typec_retimer_register() 124 retimer->dev.driver_data = desc->drvdata; in typec_retimer_register() 126 desc->name ? desc->name : dev_name(parent)); in typec_retimer_register()
|
/openbmc/linux/drivers/media/usb/dvb-usb/ |
H A D | dibusb-mc-common.c | 139 u8 desc; in dibusb_dib3000mc_tuner_attach() local 140 dibusb_read_eeprom_byte(adap->dev, 7, &desc); in dibusb_dib3000mc_tuner_attach() 141 if (desc == 2) { in dibusb_dib3000mc_tuner_attach() 144 dibusb_read_eeprom_byte(adap->dev, a, &desc); in dibusb_dib3000mc_tuner_attach() 146 } while (a > 7 && (desc == 0xff || desc == 0x00)); in dibusb_dib3000mc_tuner_attach() 147 if (desc & 0x80) in dibusb_dib3000mc_tuner_attach() 148 if1 -= (0xff - desc); in dibusb_dib3000mc_tuner_attach() 150 if1 += desc; in dibusb_dib3000mc_tuner_attach()
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3_common/ |
H A D | hclge_comm_tqp_stats.c | 65 struct hclge_desc desc; in hclge_comm_tqps_update_stats() local 71 hclge_comm_cmd_setup_basic_desc(&desc, HCLGE_OPC_QUERY_RX_STATS, in hclge_comm_tqps_update_stats() 74 desc.data[0] = cpu_to_le32(tqp->index); in hclge_comm_tqps_update_stats() 75 ret = hclge_comm_cmd_send(hw, &desc, 1); in hclge_comm_tqps_update_stats() 83 le32_to_cpu(desc.data[1]); in hclge_comm_tqps_update_stats() 85 hclge_comm_cmd_setup_basic_desc(&desc, HCLGE_OPC_QUERY_TX_STATS, in hclge_comm_tqps_update_stats() 88 desc.data[0] = cpu_to_le32(tqp->index); in hclge_comm_tqps_update_stats() 89 ret = hclge_comm_cmd_send(hw, &desc, 1); in hclge_comm_tqps_update_stats() 97 le32_to_cpu(desc.data[1]); in hclge_comm_tqps_update_stats()
|
/openbmc/qemu/target/arm/tcg/ |
H A D | mte_helper.c | 785 if (unlikely(!tbi_check(desc, bit55))) { in mte_probe_int() 791 if (tcma_check(desc, bit55, ptr_tag)) { in mte_probe_int() 795 mmu_idx = FIELD_EX32(desc, MTEDESC, MIDX); in mte_probe_int() 867 mte_check_fail(env, desc, fault, ra); in mte_check() 894 return mte_check(env, desc, ptr, GETPC()); in HELPER() 926 if (unlikely(!tbi_check(desc, bit55))) { in HELPER() 932 if (tcma_check(desc, bit55, ptr_tag)) { in HELPER() 1018 uint32_t desc) in mte_mops_probe() argument 1068 uint32_t desc) in mte_mops_probe_rev() argument 1126 uint32_t desc) in mte_mops_set_tags() argument [all …]
|
/openbmc/linux/arch/mips/cavium-octeon/crypto/ |
H A D | octeon-md5.c | 67 static int octeon_md5_init(struct shash_desc *desc) in octeon_md5_init() argument 69 struct md5_state *mctx = shash_desc_ctx(desc); in octeon_md5_init() 81 static int octeon_md5_update(struct shash_desc *desc, const u8 *data, in octeon_md5_update() argument 84 struct md5_state *mctx = shash_desc_ctx(desc); in octeon_md5_update() 121 static int octeon_md5_final(struct shash_desc *desc, u8 *out) in octeon_md5_final() argument 123 struct md5_state *mctx = shash_desc_ctx(desc); in octeon_md5_final() 157 static int octeon_md5_export(struct shash_desc *desc, void *out) in octeon_md5_export() argument 159 struct md5_state *ctx = shash_desc_ctx(desc); in octeon_md5_export() 165 static int octeon_md5_import(struct shash_desc *desc, const void *in) in octeon_md5_import() argument 167 struct md5_state *ctx = shash_desc_ctx(desc); in octeon_md5_import()
|
/openbmc/linux/sound/firewire/fireface/ |
H A D | amdtp-ff.c | 115 static void process_it_ctx_payloads(struct amdtp_stream *s, const struct pkt_desc *desc, in process_it_ctx_payloads() argument 122 __le32 *buf = (__le32 *)desc->ctx_payload; in process_it_ctx_payloads() 123 unsigned int data_blocks = desc->data_blocks; in process_it_ctx_payloads() 132 desc = amdtp_stream_next_packet_desc(s, desc); in process_it_ctx_payloads() 136 static void process_ir_ctx_payloads(struct amdtp_stream *s, const struct pkt_desc *desc, in process_ir_ctx_payloads() argument 143 __le32 *buf = (__le32 *)desc->ctx_payload; in process_ir_ctx_payloads() 144 unsigned int data_blocks = desc->data_blocks; in process_ir_ctx_payloads() 151 desc = amdtp_stream_next_packet_desc(s, desc); in process_ir_ctx_payloads()
|
/openbmc/linux/drivers/power/supply/ |
H A D | ingenic-battery.c | 19 struct power_supply_desc desc; member 128 struct power_supply_desc *desc; in ingenic_battery_probe() local 140 desc = &bat->desc; in ingenic_battery_probe() 141 desc->name = "jz-battery"; in ingenic_battery_probe() 142 desc->type = POWER_SUPPLY_TYPE_BATTERY; in ingenic_battery_probe() 143 desc->properties = ingenic_battery_properties; in ingenic_battery_probe() 144 desc->num_properties = ARRAY_SIZE(ingenic_battery_properties); in ingenic_battery_probe() 145 desc->get_property = ingenic_battery_get_property; in ingenic_battery_probe() 149 bat->battery = devm_power_supply_register(dev, desc, &psy_cfg); in ingenic_battery_probe()
|
/openbmc/linux/arch/sparc/crypto/ |
H A D | sha256_glue.c | 51 static int sha256_sparc64_update(struct shash_desc *desc, const u8 *data, in sha256_sparc64_update() argument 54 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_sparc64_update() 67 static int sha256_sparc64_final(struct shash_desc *desc, u8 *out) in sha256_sparc64_final() argument 69 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_sparc64_final() 100 static int sha224_sparc64_final(struct shash_desc *desc, u8 *hash) in sha224_sparc64_final() argument 104 sha256_sparc64_final(desc, D); in sha224_sparc64_final() 112 static int sha256_sparc64_export(struct shash_desc *desc, void *out) in sha256_sparc64_export() argument 114 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_sparc64_export() 120 static int sha256_sparc64_import(struct shash_desc *desc, const void *in) in sha256_sparc64_import() argument 122 struct sha256_state *sctx = shash_desc_ctx(desc); in sha256_sparc64_import()
|
/openbmc/linux/fs/verity/ |
H A D | hash_algs.c | 115 SHASH_DESC_ON_STACK(desc, alg->tfm); in fsverity_prepare_hash_state() 120 desc->tfm = alg->tfm; in fsverity_prepare_hash_state() 143 err = crypto_shash_init(desc); in fsverity_prepare_hash_state() 147 err = crypto_shash_update(desc, padded_salt, padded_salt_size); in fsverity_prepare_hash_state() 151 err = crypto_shash_export(desc, hashstate); in fsverity_prepare_hash_state() 179 SHASH_DESC_ON_STACK(desc, params->hash_alg->tfm); in fsverity_hash_block() 182 desc->tfm = params->hash_alg->tfm; in fsverity_hash_block() 185 err = crypto_shash_import(desc, params->hashstate); in fsverity_hash_block() 191 err = crypto_shash_finup(desc, data, params->block_size, out); in fsverity_hash_block() 193 err = crypto_shash_digest(desc, data, params->block_size, out); in fsverity_hash_block()
|
/openbmc/linux/kernel/irq/ |
H A D | ipi.c | 227 int __ipi_send_single(struct irq_desc *desc, unsigned int cpu) in __ipi_send_single() argument 229 struct irq_data *data = irq_desc_get_irq_data(desc); in __ipi_send_single() 269 int __ipi_send_mask(struct irq_desc *desc, const struct cpumask *dest) in __ipi_send_mask() argument 271 struct irq_data *data = irq_desc_get_irq_data(desc); in __ipi_send_mask() 315 struct irq_desc *desc = irq_to_desc(virq); in ipi_send_single() local 316 struct irq_data *data = desc ? irq_desc_get_irq_data(desc) : NULL; in ipi_send_single() 322 return __ipi_send_single(desc, cpu); in ipi_send_single() 336 struct irq_desc *desc = irq_to_desc(virq); in ipi_send_mask() local 337 struct irq_data *data = desc ? irq_desc_get_irq_data(desc) : NULL; in ipi_send_mask() 343 return __ipi_send_mask(desc, dest); in ipi_send_mask()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | fib_lookup.c | 31 const char *desc; member 40 { .desc = "IPv6 failed neigh", 42 { .desc = "IPv6 stale neigh", 45 { .desc = "IPv6 skip neigh", 48 { .desc = "IPv4 failed neigh", 50 { .desc = "IPv4 stale neigh", 53 { .desc = "IPv4 skip neigh", 56 { .desc = "IPv4 TBID lookup failure", 60 { .desc = "IPv4 TBID lookup success", 64 { .desc = "IPv6 TBID lookup failure", [all …]
|
/openbmc/linux/certs/ |
H A D | blacklist.c | 46 static int blacklist_vet_description(const char *desc) in blacklist_vet_description() argument 53 for (i = 0; *desc; desc++, i++) { in blacklist_vet_description() 54 if (*desc == ':') { in blacklist_vet_description() 63 if (*desc == tbs_prefix[i]) in blacklist_vet_description() 65 if (*desc == bin_prefix[i]) in blacklist_vet_description() 71 desc++; in blacklist_vet_description() 72 for (i = 0; *desc && i < MAX_HASH_LEN; desc++, i++) { in blacklist_vet_description() 73 if (!isxdigit(*desc) || isupper(*desc)) in blacklist_vet_description() 76 if (*desc) in blacklist_vet_description()
|