Home
last modified time | relevance | path

Searched refs:nvp (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dfirmware.c87 static enum nvram_parser_state brcmf_nvram_handle_idle(struct nvram_parser *nvp) in brcmf_nvram_handle_idle() argument
91 c = nvp->data[nvp->pos]; in brcmf_nvram_handle_idle()
99 nvp->entry = nvp->pos; in brcmf_nvram_handle_idle()
103 nvp->line, nvp->column); in brcmf_nvram_handle_idle()
105 nvp->column++; in brcmf_nvram_handle_idle()
106 nvp->pos++; in brcmf_nvram_handle_idle()
110 static enum nvram_parser_state brcmf_nvram_handle_key(struct nvram_parser *nvp) in brcmf_nvram_handle_key() argument
112 enum nvram_parser_state st = nvp->state; in brcmf_nvram_handle_key()
115 c = nvp->data[nvp->pos]; in brcmf_nvram_handle_key()
118 if (strncmp(&nvp->data[nvp->entry], "RAW1", 4) == 0) in brcmf_nvram_handle_key()
[all …]
/openbmc/qemu/tests/qtest/
H A Dpnv-xive2-common.c86 void get_nvp(QTestState *qts, uint32_t index, Xive2Nvp* nvp) in get_nvp() argument
89 xive_get_struct(qts, addr, nvp, sizeof(Xive2Nvp)); in get_nvp()
95 Xive2Nvp nvp; in set_nvp() local
101 memset(&nvp, 0, sizeof(nvp)); in set_nvp()
102 nvp.w0 = xive_set_field32(NVP2_W0_VALID, 0, 1); in set_nvp()
103 nvp.w0 = xive_set_field32(NVP2_W0_PGOFIRST, nvp.w0, first); in set_nvp()
104 nvp.w6 = xive_set_field32(NVP2_W6_REPORTING_LINE, nvp.w6, in set_nvp()
106 nvp.w7 = xive_set_field32(NVP2_W7_REPORTING_LINE, nvp.w7, in set_nvp()
108 xive_copy_struct(qts, &nvp, nvp_addr, sizeof(nvp)); in set_nvp()
111 static uint64_t get_cl_pair_addr(Xive2Nvp *nvp) in get_cl_pair_addr() argument
[all …]
H A Dpnv-xive2-common.h98 extern void get_nvp(QTestState *qts, uint32_t index, Xive2Nvp* nvp);
100 extern void get_cl_pair(QTestState *qts, Xive2Nvp *nvp, uint8_t *cl_pair);
101 extern void set_cl_pair(QTestState *qts, Xive2Nvp *nvp, uint8_t *cl_pair);
H A Dpnv-xive2-test.c272 Xive2Nvp nvp; in test_pull_thread_ctx_to_odd_thread_cl() local
284 get_nvp(qts, target_nvp, &nvp); in test_pull_thread_ctx_to_odd_thread_cl()
285 set_cl_pair(qts, &nvp, cl_pair); in test_pull_thread_ctx_to_odd_thread_cl()
298 get_cl_pair(qts, &nvp, cl_pair); in test_pull_thread_ctx_to_odd_thread_cl()
/openbmc/qemu/hw/intc/
H A Dxive2.c36 static uint64_t xive2_nvp_reporting_addr(Xive2Nvp *nvp) in xive2_nvp_reporting_addr() argument
40 cache_addr = xive_get_field32(NVP2_W6_REPORTING_LINE, nvp->w6) << 24 | in xive2_nvp_reporting_addr()
41 xive_get_field32(NVP2_W7_REPORTING_LINE, nvp->w7); in xive2_nvp_reporting_addr()
180 void xive2_nvp_pic_print_info(Xive2Nvp *nvp, uint32_t nvp_idx, GString *buf) in xive2_nvp_pic_print_info() argument
182 uint8_t eq_blk = xive_get_field32(NVP2_W5_VP_END_BLOCK, nvp->w5); in xive2_nvp_pic_print_info()
183 uint32_t eq_idx = xive_get_field32(NVP2_W5_VP_END_INDEX, nvp->w5); in xive2_nvp_pic_print_info()
184 uint64_t cache_line = xive2_nvp_reporting_addr(nvp); in xive2_nvp_pic_print_info()
186 if (!xive2_nvp_is_valid(nvp)) { in xive2_nvp_pic_print_info()
192 xive_get_field32(NVP2_W2_IPB, nvp->w2), in xive2_nvp_pic_print_info()
193 xive_get_field32(NVP2_W0_PGOFIRST, nvp->w0)); in xive2_nvp_pic_print_info()
[all …]
H A Dpnv_xive2.c481 Xive2Nvp *nvp) in pnv_xive2_get_nvp() argument
483 return pnv_xive2_vst_read(PNV_XIVE2(xrtr), VST_NVP, blk, idx, nvp); in pnv_xive2_get_nvp()
487 Xive2Nvp *nvp, uint8_t word_number) in pnv_xive2_write_nvp() argument
489 return pnv_xive2_vst_write(PNV_XIVE2(xrtr), VST_NVP, blk, idx, nvp, in pnv_xive2_write_nvp()
2518 Xive2Nvp nvp; in pnv_xive2_pic_print_info() local
2555 while (!xive2_router_get_nvp(xrtr, blk, i, &nvp)) { in pnv_xive2_pic_print_info()
2556 xive2_nvp_pic_print_info(&nvp, i++, buf); in pnv_xive2_pic_print_info()
/openbmc/linux/drivers/scsi/sym53c8xx_2/
H A Dsym_nvram.h184 void sym_nvram_setup_target (struct sym_tcb *tp, int target, struct sym_nvram *nvp);
185 int sym_read_nvram (struct sym_device *np, struct sym_nvram *nvp);
186 char *sym_nvram_type(struct sym_nvram *nvp);
190 static inline int sym_read_nvram(struct sym_device *np, struct sym_nvram *nvp) in sym_read_nvram() argument
192 nvp->type = 0; in sym_read_nvram()
195 static inline char *sym_nvram_type(struct sym_nvram *nvp) in sym_nvram_type() argument
H A Dsym_nvram.c125 void sym_nvram_setup_target(struct sym_tcb *tp, int target, struct sym_nvram *nvp) in sym_nvram_setup_target() argument
127 switch (nvp->type) { in sym_nvram_setup_target()
129 sym_Symbios_setup_target(tp, target, &nvp->data.Symbios); in sym_nvram_setup_target()
132 sym_Tekram_setup_target(tp, target, &nvp->data.Tekram); in sym_nvram_setup_target()
741 int sym_read_nvram(struct sym_device *np, struct sym_nvram *nvp) in sym_read_nvram() argument
743 if (!sym_read_Symbios_nvram(np, &nvp->data.Symbios)) { in sym_read_nvram()
744 nvp->type = SYM_SYMBIOS_NVRAM; in sym_read_nvram()
745 sym_display_Symbios_nvram(np, &nvp->data.Symbios); in sym_read_nvram()
746 } else if (!sym_read_Tekram_nvram(np, &nvp->data.Tekram)) { in sym_read_nvram()
747 nvp->type = SYM_TEKRAM_NVRAM; in sym_read_nvram()
[all …]
H A Dsym_glue.c1381 static void sym_get_nvram(struct sym_device *devp, struct sym_nvram *nvp) in sym_get_nvram() argument
1383 devp->nvram = nvp; in sym_get_nvram()
1384 nvp->type = 0; in sym_get_nvram()
1386 sym_read_nvram(devp, nvp); in sym_get_nvram()
1389 static inline void sym_get_nvram(struct sym_device *devp, struct sym_nvram *nvp) in sym_get_nvram() argument
/openbmc/qemu/include/hw/ppc/
H A Dxive2_regs.h182 #define xive2_nvp_is_valid(nvp) (be32_to_cpu((nvp)->w0) & NVP2_W0_VALID) argument
183 #define xive2_nvp_is_hw(nvp) (be32_to_cpu((nvp)->w0) & NVP2_W0_HW) argument
184 #define xive2_nvp_is_co(nvp) (be32_to_cpu((nvp)->w1) & NVP2_W1_CO) argument
209 void xive2_nvp_pic_print_info(Xive2Nvp *nvp, uint32_t nvp_idx, GString *buf);
H A Dxive2.h53 Xive2Nvp *nvp);
55 Xive2Nvp *nvp, uint8_t word_number);
73 Xive2Nvp *nvp);
75 Xive2Nvp *nvp, uint8_t word_number);
/openbmc/linux/drivers/gpu/drm/rockchip/
H A Drockchip_drm_vop2.c2328 int i, nvp, nvps = 0; in vop2_create_crtcs() local
2367 nvp = 0; in vop2_create_crtcs()
2389 possible_crtcs = BIT(nvp); in vop2_create_crtcs()
2391 nvp++; in vop2_create_crtcs()