/openbmc/linux/drivers/regulator/ |
H A D | hi6421-regulator.c | 39 struct regulator_desc desc; member 132 .desc = { \ 171 .desc = { \ 211 .desc = { \ 248 .desc = { \ 285 .desc = { \ 390 info = container_of(rdev->desc, struct hi6421_regulator_info, desc); in hi6421_regulator_ldo_get_mode() 391 regmap_read(rdev->regmap, rdev->desc->enable_reg, ®_val); in hi6421_regulator_ldo_get_mode() 403 info = container_of(rdev->desc, struct hi6421_regulator_info, desc); in hi6421_regulator_buck_get_mode() 404 regmap_read(rdev->regmap, rdev->desc->enable_reg, ®_val); in hi6421_regulator_buck_get_mode() [all …]
|
H A D | da903x-regulator.c | 73 struct regulator_desc desc; member 93 if (min_uV < info->desc.min_uV || min_uV > info->max_uV) in check_range() 106 if (rdev->desc->n_voltages == 1) in da903x_set_voltage_sel() 122 if (rdev->desc->n_voltages == 1) in da903x_get_voltage_sel() 200 thresh = (info->max_uV + info->desc.min_uV) / 2; in da9030_map_ldo14_voltage() 202 sel = DIV_ROUND_UP(thresh - min_uV, info->desc.uV_step); in da9030_map_ldo14_voltage() 205 sel = DIV_ROUND_UP(min_uV - thresh, info->desc.uV_step); in da9030_map_ldo14_voltage() 218 volt = rdev->desc->min_uV + in da9030_list_ldo14_voltage() 219 rdev->desc->uV_step * (3 - (selector & ~0x4)); in da9030_list_ldo14_voltage() 221 volt = (info->max_uV + rdev->desc->min_uV) / 2 + in da9030_list_ldo14_voltage() [all …]
|
H A D | of_regulator.c | 83 const struct regulator_desc *desc) in of_get_regulation_constraints() argument 186 if (desc && desc->of_map_mode) { in of_get_regulation_constraints() 187 mode = desc->of_map_mode(pval); in of_get_regulation_constraints() 201 if (desc && desc->of_map_mode) { in of_get_regulation_constraints() 210 mode = desc->of_map_mode(pval); in of_get_regulation_constraints() 276 if (desc && desc->of_map_mode) { in of_get_regulation_constraints() 277 mode = desc->of_map_mode(pval); in of_get_regulation_constraints() 337 const struct regulator_desc *desc) in of_get_regulator_init_data() argument 348 if (of_get_regulation_constraints(dev, node, &init_data, desc)) in of_get_regulator_init_data() 432 match->desc); in of_regulator_match() [all …]
|
/openbmc/linux/drivers/input/misc/ |
H A D | soc_button_array.c | 138 struct gpio_desc *desc; in soc_button_lookup_gpio() local 140 desc = gpiod_get_index(dev, NULL, acpi_index, GPIOD_ASIS); in soc_button_lookup_gpio() 141 if (IS_ERR(desc)) in soc_button_lookup_gpio() 142 return PTR_ERR(desc); in soc_button_lookup_gpio() 144 *gpio_ret = desc_to_gpio(desc); in soc_button_lookup_gpio() 145 *irq_ret = gpiod_to_irq(desc); in soc_button_lookup_gpio() 147 gpiod_put(desc); in soc_button_lookup_gpio() 220 gpio_keys[n_buttons].desc = info->name; in soc_button_device_create() 264 const union acpi_object *desc, in soc_button_parse_btn_desc() argument 270 if (desc->type != ACPI_TYPE_PACKAGE || in soc_button_parse_btn_desc() [all …]
|
/openbmc/linux/arch/s390/crypto/ |
H A D | sha3_256_s390.c | 20 static int sha3_256_init(struct shash_desc *desc) in sha3_256_init() argument 22 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_256_init() 31 static int sha3_256_export(struct shash_desc *desc, void *out) in sha3_256_export() argument 33 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_256_export() 43 static int sha3_256_import(struct shash_desc *desc, const void *in) in sha3_256_import() argument 45 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_256_import() 56 static int sha3_224_import(struct shash_desc *desc, const void *in) in sha3_224_import() argument 58 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_224_import() 87 static int sha3_224_init(struct shash_desc *desc) in sha3_224_init() argument 89 struct s390_sha_ctx *sctx = shash_desc_ctx(desc); in sha3_224_init()
|
/openbmc/linux/drivers/net/ethernet/ |
H A D | lantiq_etop.c | 111 ch->skb[ch->dma.desc] = netdev_alloc_skb(ch->netdev, MAX_DMA_DATA_LEN); in ltq_etop_alloc_skb() 112 if (!ch->skb[ch->dma.desc]) in ltq_etop_alloc_skb() 114 ch->dma.desc_base[ch->dma.desc].addr = in ltq_etop_alloc_skb() 115 dma_map_single(&priv->pdev->dev, ch->skb[ch->dma.desc]->data, in ltq_etop_alloc_skb() 117 ch->dma.desc_base[ch->dma.desc].addr = in ltq_etop_alloc_skb() 118 CPHYSADDR(ch->skb[ch->dma.desc]->data); in ltq_etop_alloc_skb() 119 ch->dma.desc_base[ch->dma.desc].ctl = in ltq_etop_alloc_skb() 122 skb_reserve(ch->skb[ch->dma.desc], NET_IP_ALIGN); in ltq_etop_alloc_skb() 130 struct ltq_dma_desc *desc = &ch->dma.desc_base[ch->dma.desc]; in ltq_etop_hw_receive() local 131 struct sk_buff *skb = ch->skb[ch->dma.desc]; in ltq_etop_hw_receive() [all …]
|
/openbmc/linux/drivers/scsi/fnic/ |
H A D | vnic_cq_copy.h | 15 struct fcpio_fw_req *desc), in vnic_cq_copy_service() argument 19 struct fcpio_fw_req *desc; in vnic_cq_copy_service() local 23 desc = (struct fcpio_fw_req *)((u8 *)cq->ring.descs + in vnic_cq_copy_service() 25 fcpio_color_dec(desc, &color); in vnic_cq_copy_service() 29 if ((*q_service)(cq->vdev, cq->index, desc)) in vnic_cq_copy_service() 38 desc = (struct fcpio_fw_req *)((u8 *)cq->ring.descs + in vnic_cq_copy_service() 40 fcpio_color_dec(desc, &color); in vnic_cq_copy_service()
|
/openbmc/linux/drivers/scsi/snic/ |
H A D | vnic_cq_fw.h | 13 struct snic_fw_req *desc), in vnic_cq_fw_service() argument 17 struct snic_fw_req *desc; in vnic_cq_fw_service() local 21 desc = (struct snic_fw_req *)((u8 *)cq->ring.descs + in vnic_cq_fw_service() 23 snic_color_dec(desc, &color); in vnic_cq_fw_service() 27 if ((*q_service)(cq->vdev, cq->index, desc)) in vnic_cq_fw_service() 36 desc = (struct snic_fw_req *)((u8 *)cq->ring.descs + in vnic_cq_fw_service() 38 snic_color_dec(desc, &color); in vnic_cq_fw_service()
|
/openbmc/openpower-debug-collector/dump/tools/bmcdump/plugins/ |
H A D | cfam | 14 desc="cfam 283c" 16 add_cmd_output "$command" "$file_name" "$desc" 18 desc="cfam 1007" 20 add_cmd_output "$command" "$file_name" "$desc" 22 desc="cfam 2809" 24 add_cmd_output "$command" "$file_name" "$desc"
|
/openbmc/phosphor-debug-collector/tools/dreport.d/openpower.d/plugins.d/ |
H A D | cfam | 14 desc="cfam 283c" 16 add_cmd_output "$command" "$file_name" "$desc" 18 desc="cfam 1007" 20 add_cmd_output "$command" "$file_name" "$desc" 22 desc="cfam 2809" 24 add_cmd_output "$command" "$file_name" "$desc"
|
/openbmc/linux/include/linux/ |
H A D | msi.h | 96 typedef void (*irq_write_msi_msg_t)(struct msi_desc *desc, 288 #define msi_domain_for_each_desc(desc, dev, domid, filter) \ argument 289 for ((desc) = msi_domain_first_desc((dev), (domid), (filter)); (desc); \ 290 (desc) = msi_next_desc((dev), (domid), (filter))) 304 #define msi_for_each_desc(desc, dev, filter) \ argument 305 msi_domain_for_each_desc((desc), (dev), MSI_DEFAULT_DOMAIN, (filter)) 307 #define msi_desc_to_dev(desc) ((desc)->dev) argument 310 static inline const void *msi_desc_get_iommu_cookie(struct msi_desc *desc) in msi_desc_get_iommu_cookie() argument 312 return desc->iommu_cookie; in msi_desc_get_iommu_cookie() 315 static inline void msi_desc_set_iommu_cookie(struct msi_desc *desc, in msi_desc_set_iommu_cookie() argument [all …]
|
/openbmc/linux/drivers/infiniband/ulp/isert/ |
H A D | ib_isert.h | 101 static void *isert_get_iser_hdr(struct iser_rx_desc *desc) in isert_get_iser_hdr() argument 103 return PTR_ALIGN(desc->buf + ISER_HEADERS_LEN, 512) - ISER_HEADERS_LEN; in isert_get_iser_hdr() 106 static size_t isert_get_hdr_offset(struct iser_rx_desc *desc) in isert_get_hdr_offset() argument 108 return isert_get_iser_hdr(desc) - (void *)desc->buf; in isert_get_hdr_offset() 111 static void *isert_get_iscsi_hdr(struct iser_rx_desc *desc) in isert_get_iscsi_hdr() argument 113 return isert_get_iser_hdr(desc) + sizeof(struct iser_ctrl); in isert_get_iscsi_hdr() 116 static void *isert_get_data(struct iser_rx_desc *desc) in isert_get_data() argument 118 void *data = isert_get_iser_hdr(desc) + ISER_HEADERS_LEN; in isert_get_data() 158 static inline struct isert_cmd *tx_desc_to_cmd(struct iser_tx_desc *desc) in tx_desc_to_cmd() argument 160 return container_of(desc, struct isert_cmd, tx_desc); in tx_desc_to_cmd()
|
/openbmc/qemu/target/i386/hvf/ |
H A D | x86.c | 50 struct x86_segment_descriptor *desc, in x86_read_segment_descriptor() argument 56 memset(desc, 0, sizeof(*desc)); in x86_read_segment_descriptor() 75 vmx_read_mem(cpu, desc, base + sel.index * 8, sizeof(*desc)); in x86_read_segment_descriptor() 80 struct x86_segment_descriptor *desc, in x86_write_segment_descriptor() argument 98 vmx_write_mem(cpu, base + sel.index * 8, desc, sizeof(*desc)); in x86_write_segment_descriptor() 143 struct vmx_segment desc; in x86_is_long64_mode() local 144 vmx_read_segment_descriptor(cpu, &desc, R_CS); in x86_is_long64_mode() 146 return x86_is_long_mode(cpu) && ((desc.ar >> 13) & 1); in x86_is_long64_mode()
|
/openbmc/linux/drivers/dma/ptdma/ |
H A D | ptdma-dev.c | 69 static int pt_core_execute_cmd(struct ptdma_desc *desc, struct pt_cmd_queue *cmd_q) in pt_core_execute_cmd() argument 71 bool soc = FIELD_GET(DWORD0_SOC, desc->dw0); in pt_core_execute_cmd() 77 desc->dw0 |= FIELD_PREP(DWORD0_IOC, desc->dw0); in pt_core_execute_cmd() 78 desc->dw0 &= ~DWORD0_SOC; in pt_core_execute_cmd() 83 memcpy(q_desc, desc, 32); in pt_core_execute_cmd() 103 struct ptdma_desc desc; in pt_core_perform_passthru() local 108 memset(&desc, 0, sizeof(desc)); in pt_core_perform_passthru() 109 desc.dw0 = CMD_DESC_DW0_VAL; in pt_core_perform_passthru() 110 desc.length = pt_engine->src_len; in pt_core_perform_passthru() 111 desc.src_lo = lower_32_bits(pt_engine->src_dma); in pt_core_perform_passthru() [all …]
|
/openbmc/linux/sound/firewire/motu/ |
H A D | amdtp-motu.c | 287 static void probe_tracepoints_events(struct amdtp_stream *s, const struct pkt_desc *desc, in probe_tracepoints_events() argument 293 __be32 *buf = desc->ctx_payload; in probe_tracepoints_events() 294 unsigned int data_blocks = desc->data_blocks; in probe_tracepoints_events() 299 desc = amdtp_stream_next_packet_desc(s, desc); in probe_tracepoints_events() 331 static void process_ir_ctx_payloads(struct amdtp_stream *s, const struct pkt_desc *desc, in process_ir_ctx_payloads() argument 336 const struct pkt_desc *cursor = desc; in process_ir_ctx_payloads() 345 __be32 *buf = desc->ctx_payload; in process_ir_ctx_payloads() 346 unsigned int data_blocks = desc->data_blocks; in process_ir_ctx_payloads() 358 desc = amdtp_stream_next_packet_desc(s, desc); in process_ir_ctx_payloads() 361 desc = cursor; in process_ir_ctx_payloads() [all …]
|
/openbmc/linux/crypto/ |
H A D | jitterentropy-kcapi.c | 99 SHASH_DESC_ON_STACK(desc, hash_state_desc->tfm); in jent_hash_time() 104 desc->tfm = hash_state_desc->tfm; in jent_hash_time() 106 if (sizeof(intermediary) != crypto_shash_digestsize(desc->tfm)) { in jent_hash_time() 125 ret = crypto_shash_init(desc) ?: in jent_hash_time() 126 crypto_shash_update(desc, intermediary, in jent_hash_time() 128 crypto_shash_finup(desc, addtl, addtl_len, intermediary); in jent_hash_time() 137 ret = crypto_shash_update(desc, intermediary, sizeof(intermediary)); in jent_hash_time() 156 shash_desc_zero(desc); in jent_hash_time() 323 SHASH_DESC_ON_STACK(desc, tfm); in jent_mod_init() 335 desc->tfm = tfm; in jent_mod_init() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath12k/ |
H A D | hal.h | 1035 bool (*rx_desc_get_first_msdu)(struct hal_rx_desc *desc); 1036 bool (*rx_desc_get_last_msdu)(struct hal_rx_desc *desc); 1037 u8 (*rx_desc_get_l3_pad_bytes)(struct hal_rx_desc *desc); 1038 u8 *(*rx_desc_get_hdr_status)(struct hal_rx_desc *desc); 1039 bool (*rx_desc_encrypt_valid)(struct hal_rx_desc *desc); 1040 u32 (*rx_desc_get_encrypt_type)(struct hal_rx_desc *desc); 1041 u8 (*rx_desc_get_decap_type)(struct hal_rx_desc *desc); 1042 u8 (*rx_desc_get_mesh_ctl)(struct hal_rx_desc *desc); 1043 bool (*rx_desc_get_mpdu_seq_ctl_vld)(struct hal_rx_desc *desc); 1044 bool (*rx_desc_get_mpdu_fc_valid)(struct hal_rx_desc *desc); [all …]
|
/openbmc/linux/arch/sh/kernel/cpu/irq/ |
H A D | ipr.c | 52 void register_ipr_controller(struct ipr_desc *desc) in register_ipr_controller() argument 56 desc->chip.irq_mask = disable_ipr_irq; in register_ipr_controller() 57 desc->chip.irq_unmask = enable_ipr_irq; in register_ipr_controller() 59 for (i = 0; i < desc->nr_irqs; i++) { in register_ipr_controller() 60 struct ipr_data *p = desc->ipr_data + i; in register_ipr_controller() 63 BUG_ON(p->ipr_idx >= desc->nr_offsets); in register_ipr_controller() 64 BUG_ON(!desc->ipr_offsets[p->ipr_idx]); in register_ipr_controller() 74 irq_set_chip_and_handler_name(p->irq, &desc->chip, in register_ipr_controller()
|
/openbmc/linux/arch/arm64/crypto/ |
H A D | sha512-ce-glue.c | 54 static int sha512_ce_update(struct shash_desc *desc, const u8 *data, in sha512_ce_update() argument 60 sha512_base_do_update(desc, data, len, fn); in sha512_ce_update() 64 static int sha512_ce_finup(struct shash_desc *desc, const u8 *data, in sha512_ce_finup() argument 70 sha512_base_do_update(desc, data, len, fn); in sha512_ce_finup() 71 sha512_base_do_finalize(desc, fn); in sha512_ce_finup() 72 return sha512_base_finish(desc, out); in sha512_ce_finup() 75 static int sha512_ce_final(struct shash_desc *desc, u8 *out) in sha512_ce_final() argument 80 sha512_base_do_finalize(desc, fn); in sha512_ce_final() 81 return sha512_base_finish(desc, out); in sha512_ce_final()
|
/openbmc/linux/drivers/reset/ |
H A D | reset-qcom-aoss.c | 26 const struct qcom_aoss_desc *desc; member 54 const struct qcom_aoss_reset_map *map = &data->desc->resets[idx]; in qcom_aoss_control_assert() 66 const struct qcom_aoss_reset_map *map = &data->desc->resets[idx]; in qcom_aoss_control_deassert() 92 const struct qcom_aoss_desc *desc; in qcom_aoss_reset_probe() local 95 desc = of_device_get_match_data(dev); in qcom_aoss_reset_probe() 96 if (!desc) in qcom_aoss_reset_probe() 103 data->desc = desc; in qcom_aoss_reset_probe() 111 data->rcdev.nr_resets = desc->num_resets; in qcom_aoss_reset_probe()
|
/openbmc/linux/arch/x86/crypto/ |
H A D | crct10dif-pclmul_glue.c | 43 static int chksum_init(struct shash_desc *desc) in chksum_init() argument 45 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_init() 52 static int chksum_update(struct shash_desc *desc, const u8 *data, in chksum_update() argument 55 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_update() 66 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final() argument 68 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_final() 85 static int chksum_finup(struct shash_desc *desc, const u8 *data, in chksum_finup() argument 88 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_finup() 93 static int chksum_digest(struct shash_desc *desc, const u8 *data, in chksum_digest() argument
|
/openbmc/linux/lib/ |
H A D | locking-selftest.c | 1505 #define DO_TESTCASE_1(desc, name, nr) \ argument 1506 print_testname(desc"/"#nr); \ 1510 #define DO_TESTCASE_1B(desc, name, nr) \ argument 1511 print_testname(desc"/"#nr); \ 1515 #define DO_TESTCASE_1RR(desc, name, nr) \ argument 1516 print_testname(desc"/"#nr); \ 1521 #define DO_TESTCASE_1RRB(desc, name, nr) \ argument 1522 print_testname(desc"/"#nr); \ 1528 #define DO_TESTCASE_3(desc, name, nr) \ argument 1529 print_testname(desc"/"#nr); \ [all …]
|
/openbmc/u-boot/board/dfi/dfi-bt700/ |
H A D | dfi-bt700.c | 33 struct gpio_desc desc; in board_late_init() local 36 ret = dm_gpio_lookup_name("F10", &desc); in board_late_init() 39 ret = dm_gpio_request(&desc, "xhci_hub_reset"); in board_late_init() 42 ret = dm_gpio_set_dir_flags(&desc, GPIOD_IS_OUT); in board_late_init() 47 dm_gpio_set_value(&desc, 0); in board_late_init() 53 dm_gpio_set_value(&desc, 1); in board_late_init()
|
/openbmc/linux/drivers/staging/vt6655/ |
H A D | device_main.c | 601 struct vnt_rx_desc *desc; in device_init_rd0_ring() local 607 desc = &priv->aRD0Ring[i]; in device_init_rd0_ring() 608 desc->rd_info = kzalloc(sizeof(*desc->rd_info), GFP_KERNEL); in device_init_rd0_ring() 609 if (!desc->rd_info) { in device_init_rd0_ring() 614 if (!device_alloc_rx_buf(priv, desc)) { in device_init_rd0_ring() 620 desc->next = &priv->aRD0Ring[(i + 1) % priv->opts.rx_descs0]; in device_init_rd0_ring() 621 desc->next_desc = cpu_to_le32(curr + sizeof(struct vnt_rx_desc)); in device_init_rd0_ring() 631 kfree(desc->rd_info); in device_init_rd0_ring() 635 desc = &priv->aRD0Ring[i]; in device_init_rd0_ring() 636 device_free_rx_buf(priv, desc); in device_init_rd0_ring() [all …]
|
/openbmc/linux/arch/mips/include/asm/ |
H A D | r4kcache.h | 197 #define __BUILD_BLAST_CACHE(pfx, desc, indexop, hitop, lsize, extra) \ argument 201 unsigned long end = start + current_cpu_data.desc.waysize; \ 202 unsigned long ws_inc = 1UL << current_cpu_data.desc.waybit; \ 203 unsigned long ws_end = current_cpu_data.desc.ways << \ 204 current_cpu_data.desc.waybit; \ 226 unsigned long indexmask = current_cpu_data.desc.waysize - 1; \ 229 unsigned long ws_inc = 1UL << current_cpu_data.desc.waybit; \ 230 unsigned long ws_end = current_cpu_data.desc.ways << \ 231 current_cpu_data.desc.waybit; \ 261 #define __BUILD_BLAST_USER_CACHE(pfx, desc, indexop, hitop, lsize) \ argument [all …]
|