Home
last modified time | relevance | path

Searched refs:set_field (Results 1 – 14 of 14) sorted by relevance

/openbmc/linux/sound/pci/ctxfi/
H A Dcthw20k2.c180 set_field(&ctl->ctl, SRCCTL_STATE, state); in src_set_state()
189 set_field(&ctl->ctl, SRCCTL_BM, bm); in src_set_bm()
198 set_field(&ctl->ctl, SRCCTL_RSR, rsr); in src_set_rsr()
207 set_field(&ctl->ctl, SRCCTL_SF, sf); in src_set_sf()
216 set_field(&ctl->ctl, SRCCTL_WR, wr); in src_set_wr()
225 set_field(&ctl->ctl, SRCCTL_PM, pm); in src_set_pm()
234 set_field(&ctl->ctl, SRCCTL_ROM, rom); in src_set_rom()
243 set_field(&ctl->ctl, SRCCTL_VO, vo); in src_set_vo()
252 set_field(&ctl->ctl, SRCCTL_ST, st); in src_set_st()
261 set_field(&ctl->ctl, SRCCTL_IE, ie); in src_set_ie()
[all …]
H A Dcthw20k1.c180 set_field(&ctl->ctl, SRCCTL_STATE, state); in src_set_state()
189 set_field(&ctl->ctl, SRCCTL_BM, bm); in src_set_bm()
198 set_field(&ctl->ctl, SRCCTL_RSR, rsr); in src_set_rsr()
207 set_field(&ctl->ctl, SRCCTL_SF, sf); in src_set_sf()
216 set_field(&ctl->ctl, SRCCTL_WR, wr); in src_set_wr()
225 set_field(&ctl->ctl, SRCCTL_PM, pm); in src_set_pm()
234 set_field(&ctl->ctl, SRCCTL_ROM, rom); in src_set_rom()
243 set_field(&ctl->ctl, SRCCTL_VO, vo); in src_set_vo()
252 set_field(&ctl->ctl, SRCCTL_ST, st); in src_set_st()
261 set_field(&ctl->ctl, SRCCTL_IE, ie); in src_set_ie()
[all …]
H A Dcthardware.c77 void set_field(unsigned int *data, unsigned int field, unsigned int value) in set_field() function
H A Dcthardware.h199 void set_field(unsigned int *data, unsigned int field, unsigned int value);
/openbmc/qemu/target/riscv/
H A Dop_helper.c286 mstatus = set_field(mstatus, MSTATUS_SIE, in helper_sret()
288 mstatus = set_field(mstatus, MSTATUS_SPIE, 1); in helper_sret()
289 mstatus = set_field(mstatus, MSTATUS_SPP, PRV_U); in helper_sret()
291 mstatus = set_field(mstatus, MSTATUS_MPRV, 0); in helper_sret()
301 hstatus = set_field(hstatus, HSTATUS_SPV, 0); in helper_sret()
319 env->mstatus = set_field(env->mstatus, MSTATUS_SPELP, 0); in helper_sret()
345 mstatus = set_field(mstatus, MSTATUS_MIE, in helper_mret()
347 mstatus = set_field(mstatus, MSTATUS_MPIE, 1); in helper_mret()
348 mstatus = set_field(mstatus, MSTATUS_MPP, in helper_mret()
350 mstatus = set_field(mstatus, MSTATUS_MPV, 0); in helper_mret()
[all …]
H A Dcpu_helper.c1913 env->mstatus = set_field(env->mstatus, MSTATUS_SPELP, env->elp); in riscv_cpu_do_interrupt()
1934 env->hstatus = set_field(env->hstatus, HSTATUS_SPVP, in riscv_cpu_do_interrupt()
1936 env->hstatus = set_field(env->hstatus, HSTATUS_SPV, true); in riscv_cpu_do_interrupt()
1943 env->hstatus = set_field(env->hstatus, HSTATUS_SPV, false); in riscv_cpu_do_interrupt()
1946 env->hstatus = set_field(env->hstatus, HSTATUS_GVA, write_gva); in riscv_cpu_do_interrupt()
1950 s = set_field(s, MSTATUS_SPIE, get_field(s, MSTATUS_SIE)); in riscv_cpu_do_interrupt()
1951 s = set_field(s, MSTATUS_SPP, env->priv); in riscv_cpu_do_interrupt()
1952 s = set_field(s, MSTATUS_SIE, 0); in riscv_cpu_do_interrupt()
1967 env->mstatus = set_field(env->mstatus, MSTATUS_MPELP, env->elp); in riscv_cpu_do_interrupt()
1974 env->mstatus = set_field(env->mstatus, MSTATUS_MPV, in riscv_cpu_do_interrupt()
[all …]
H A Ddebug.c265 textra = set_field(textra, TEXTRA32_MHVALUE, mhvalue); in textra_validate()
266 textra = set_field(textra, TEXTRA32_MHSELECT, mhselect_new); in textra_validate()
270 textra = set_field(textra, TEXTRA64_MHVALUE, mhvalue); in textra_validate()
271 textra = set_field(textra, TEXTRA64_MHSELECT, mhselect_new); in textra_validate()
682 env->tdata1[index] = set_field(env->tdata1[index], in itrigger_set_count()
H A Dcpu.c950 env->mstatus = set_field(env->mstatus, MSTATUS64_SXL, env->misa_mxl); in riscv_cpu_reset_hold()
951 env->mstatus = set_field(env->mstatus, MSTATUS64_UXL, env->misa_mxl); in riscv_cpu_reset_hold()
953 env->vsstatus = set_field(env->vsstatus, in riscv_cpu_reset_hold()
955 env->vsstatus = set_field(env->vsstatus, in riscv_cpu_reset_hold()
957 env->mstatus_hs = set_field(env->mstatus_hs, in riscv_cpu_reset_hold()
959 env->mstatus_hs = set_field(env->mstatus_hs, in riscv_cpu_reset_hold()
H A Dcpu_bits.h8 #define set_field(reg, mask, val) (((reg) & ~(uint64_t)(mask)) | \ macro
H A Dcsr.c1590 val = set_field(val, MSTATUS_MPP, old_mpp); in legalize_mpp()
3529 *val = set_field(*val, HSTATUS_VSXL, 2); in read_hstatus()
3532 *val = set_field(*val, HSTATUS_VSBE, 0); in read_hstatus()
/openbmc/qemu/hw/riscv/
H A Driscv-iommu.c519 ev.hdr = set_field(ev.hdr, RISCV_IOMMU_FQ_HDR_CAUSE, cause); in riscv_iommu_report_fault()
520 ev.hdr = set_field(ev.hdr, RISCV_IOMMU_FQ_HDR_TTYPE, fault_type); in riscv_iommu_report_fault()
521 ev.hdr = set_field(ev.hdr, RISCV_IOMMU_FQ_HDR_DID, ctx->devid); in riscv_iommu_report_fault()
522 ev.hdr = set_field(ev.hdr, RISCV_IOMMU_FQ_HDR_PV, true); in riscv_iommu_report_fault()
525 ev.hdr = set_field(ev.hdr, RISCV_IOMMU_FQ_HDR_PID, ctx->process_id); in riscv_iommu_report_fault()
875 ctx->gatp = set_field(0, RISCV_IOMMU_ATP_MODE_FIELD, in riscv_iommu_ctx_fetch()
877 ctx->satp = set_field(0, RISCV_IOMMU_ATP_MODE_FIELD, in riscv_iommu_ctx_fetch()
1391 pr.hdr = set_field(RISCV_IOMMU_PREQ_HDR_PV, in riscv_iommu_translate()
1394 pr.hdr = set_field(pr.hdr, RISCV_IOMMU_PREQ_HDR_DID, ctx->devid); in riscv_iommu_translate()
1525 new_ddtp = set_field(new_ddtp & RISCV_IOMMU_DDTP_PPN, in riscv_iommu_process_ddtp()
[all …]
/openbmc/qemu/hw/usb/
H A Dhcd-ehci.c89 #define set_field(data, newval, field) do { \ macro
1166 set_field(&q->qh.altnext_qtd, reload, QH_ALTNEXT_NAKCNT); in ehci_qh_do_overlay()
1231 set_field(&q->qh.token, cpage, QTD_TOKEN_CPAGE); in ehci_finish_transfer()
1288 set_field(&q->qh.token, 0, QTD_TOKEN_CERR); in ehci_execute_complete()
1296 set_field(&q->qh.altnext_qtd, 0, QH_ALTNEXT_NAKCNT); in ehci_execute_complete()
1323 set_field(&q->qh.token, tbytes, QTD_TOKEN_TBYTES); in ehci_execute_complete()
1500 set_field(&itd->transact[i], len - ehci->ipacket.actual_length, in ehci_process_itd()
1503 set_field(&itd->transact[i], ehci->ipacket.actual_length, in ehci_process_itd()
H A Dhcd-dwc2.c54 #define set_field(data, newval, field) do { \ macro
347 set_field(&hctsiz, pcnt, TSIZ_PKTCNT); in dwc2_handle_packet()
349 set_field(&hctsiz, len, TSIZ_XFERSIZE); in dwc2_handle_packet()
H A Dhcd-xhci.c219 #define set_field(data, newval, field) do { \ macro
2330 set_field(&slot_ctx[2], xhci->slots[slotid-1].intr, TRB_INTR); in xhci_evaluate_slot()
2653 set_field(&port->portsc, pls, PORTSC_PLS); in xhci_port_update()
2677 set_field(&port->portsc, PLS_U0, PORTSC_PLS); in xhci_port_reset()
2855 set_field(&portsc, new_pls, PORTSC_PLS); in xhci_port_write()
2862 set_field(&portsc, new_pls, PORTSC_PLS); in xhci_port_write()
3232 set_field(&port->portsc, PLS_RESUME, PORTSC_PLS); in xhci_wakeup()