Lines Matching refs:blk

75     uint8_t blk = xive->chip->chip_id;  in pnv_xive_block_id()  local
79 blk = GETFIELD(PC_TCTXT_CHIPID, cfg_val); in pnv_xive_block_id()
82 return blk; in pnv_xive_block_id()
197 uint64_t vsd, uint8_t blk, in pnv_xive_vst_addr_remote() argument
207 info->name, blk, idx); in pnv_xive_vst_addr_remote()
217 " for NVT %x/%x\n", remote_addr, blk, idx); in pnv_xive_vst_addr_remote()
224 static uint64_t pnv_xive_vst_addr(PnvXive *xive, uint32_t type, uint8_t blk, in pnv_xive_vst_addr() argument
230 if (blk >= info->max_blocks) { in pnv_xive_vst_addr()
232 blk, info->name, idx); in pnv_xive_vst_addr()
236 vsd = xive->vsds[type][blk]; in pnv_xive_vst_addr()
240 return pnv_xive_vst_addr_remote(xive, type, vsd, blk, idx); in pnv_xive_vst_addr()
250 static int pnv_xive_vst_read(PnvXive *xive, uint32_t type, uint8_t blk, in pnv_xive_vst_read() argument
254 uint64_t addr = pnv_xive_vst_addr(xive, type, blk, idx); in pnv_xive_vst_read()
266 " for VST %s %x/%x\n", addr, info->name, blk, idx); in pnv_xive_vst_read()
274 static int pnv_xive_vst_write(PnvXive *xive, uint32_t type, uint8_t blk, in pnv_xive_vst_write() argument
278 uint64_t addr = pnv_xive_vst_addr(xive, type, blk, idx); in pnv_xive_vst_write()
298 "for VST %s %x/%x\n", addr, info->name, blk, idx); in pnv_xive_vst_write()
304 static int pnv_xive_get_end(XiveRouter *xrtr, uint8_t blk, uint32_t idx, in pnv_xive_get_end() argument
309 if (pnv_xive_block_id(xive) != blk) { in pnv_xive_get_end()
310 xive_error(xive, "VST: END %x/%x is remote !?", blk, idx); in pnv_xive_get_end()
314 return pnv_xive_vst_read(PNV_XIVE(xrtr), VST_TSEL_EQDT, blk, idx, end); in pnv_xive_get_end()
317 static int pnv_xive_write_end(XiveRouter *xrtr, uint8_t blk, uint32_t idx, in pnv_xive_write_end() argument
322 if (pnv_xive_block_id(xive) != blk) { in pnv_xive_write_end()
323 xive_error(xive, "VST: END %x/%x is remote !?", blk, idx); in pnv_xive_write_end()
327 return pnv_xive_vst_write(PNV_XIVE(xrtr), VST_TSEL_EQDT, blk, idx, end, in pnv_xive_write_end()
333 uint8_t blk = GETFIELD(VC_EQC_CWATCH_BLOCKID, in pnv_xive_end_update() local
344 return pnv_xive_vst_write(xive, VST_TSEL_EQDT, blk, idx, eqc_watch, in pnv_xive_end_update()
350 uint8_t blk = GETFIELD(VC_EQC_CWATCH_BLOCKID, in pnv_xive_end_cache_load() local
357 if (pnv_xive_vst_read(xive, VST_TSEL_EQDT, blk, idx, eqc_watch)) { in pnv_xive_end_cache_load()
358 xive_error(xive, "VST: no END entry %x/%x !?", blk, idx); in pnv_xive_end_cache_load()
366 static int pnv_xive_get_nvt(XiveRouter *xrtr, uint8_t blk, uint32_t idx, in pnv_xive_get_nvt() argument
369 return pnv_xive_vst_read(PNV_XIVE(xrtr), VST_TSEL_VPDT, blk, idx, nvt); in pnv_xive_get_nvt()
372 static int pnv_xive_write_nvt(XiveRouter *xrtr, uint8_t blk, uint32_t idx, in pnv_xive_write_nvt() argument
375 return pnv_xive_vst_write(PNV_XIVE(xrtr), VST_TSEL_VPDT, blk, idx, nvt, in pnv_xive_write_nvt()
381 uint8_t blk = GETFIELD(PC_VPC_CWATCH_BLOCKID, in pnv_xive_nvt_update() local
392 return pnv_xive_vst_write(xive, VST_TSEL_VPDT, blk, idx, vpc_watch, in pnv_xive_nvt_update()
398 uint8_t blk = GETFIELD(PC_VPC_CWATCH_BLOCKID, in pnv_xive_nvt_cache_load() local
405 if (pnv_xive_vst_read(xive, VST_TSEL_VPDT, blk, idx, vpc_watch)) { in pnv_xive_nvt_cache_load()
406 xive_error(xive, "VST: no NVT entry %x/%x !?", blk, idx); in pnv_xive_nvt_cache_load()
414 static int pnv_xive_get_eas(XiveRouter *xrtr, uint8_t blk, uint32_t idx, in pnv_xive_get_eas() argument
422 if (pnv_xive_block_id(xive) != blk) { in pnv_xive_get_eas()
423 xive_error(xive, "VST: EAS %x is remote !?", XIVE_EAS(blk, idx)); in pnv_xive_get_eas()
427 return pnv_xive_vst_read(xive, VST_TSEL_IVT, blk, idx, eas); in pnv_xive_get_eas()
430 static int pnv_xive_get_pq(XiveRouter *xrtr, uint8_t blk, uint32_t idx, in pnv_xive_get_pq() argument
435 if (pnv_xive_block_id(xive) != blk) { in pnv_xive_get_pq()
436 xive_error(xive, "VST: EAS %x is remote !?", XIVE_EAS(blk, idx)); in pnv_xive_get_pq()
444 static int pnv_xive_set_pq(XiveRouter *xrtr, uint8_t blk, uint32_t idx, in pnv_xive_set_pq() argument
449 if (pnv_xive_block_id(xive) != blk) { in pnv_xive_set_pq()
450 xive_error(xive, "VST: EAS %x is remote !?", XIVE_EAS(blk, idx)); in pnv_xive_set_pq()
568 uint8_t blk = pnv_xive_block_id(xive); in pnv_xive_notify() local
570 xive_router_notify(xn, XIVE_EAS(blk, srcno), pq_checked); in pnv_xive_notify()
592 static uint32_t pnv_xive_nr_ipis(PnvXive *xive, uint8_t blk) in pnv_xive_nr_ipis() argument
594 uint64_t vsd = xive->vsds[VST_TSEL_SBE][blk]; in pnv_xive_nr_ipis()
605 uint8_t blk = pnv_xive_block_id(xive); in pnv_xive_vst_per_subpage() local
606 uint64_t vsd = xive->vsds[type][blk]; in pnv_xive_vst_per_subpage()
720 max_index = ARRAY_SIZE(xive->blk); in pnv_xive_table_set_data()
721 xive_table = xive->blk; in pnv_xive_table_set_data()
767 uint8_t blk, uint64_t vsd) in pnv_xive_vst_set_exclusive() argument
799 xive->vsds[type][blk] = vsd; in pnv_xive_vst_set_exclusive()
862 uint8_t blk = GETFIELD(VST_TABLE_BLOCK, in pnv_xive_vst_set_data() local
871 if (blk >= vst_infos[type].max_blocks) { in pnv_xive_vst_set_data()
873 " %s table", blk, vst_infos[type].name); in pnv_xive_vst_set_data()
892 xive->vsds[type][blk] = vsd; in pnv_xive_vst_set_data()
896 pnv_xive_vst_set_exclusive(xive, type, blk, vsd); in pnv_xive_vst_set_data()
1442 uint8_t blk; in pnv_xive_ic_hw_trigger() local
1458 blk = XIVE_EAS_BLOCK(val); in pnv_xive_ic_hw_trigger()
1461 xive_router_notify(XIVE_NOTIFIER(xive), XIVE_EAS(blk, idx), in pnv_xive_ic_hw_trigger()
1805 uint8_t blk = pnv_xive_block_id(xive); /* TODO: VDT -> block xlate */ in pnv_xive_pc_read() local
1807 return pnv_xive_vst_addr(xive, VST_TSEL_VPDT, blk, nvt_idx); in pnv_xive_pc_read()
1850 uint8_t blk = pnv_xive_block_id(xive); in pnv_xive_pic_print_info() local
1852 uint32_t srcno0 = XIVE_EAS(blk, 0); in pnv_xive_pic_print_info()
1853 uint32_t nr_ipis = pnv_xive_nr_ipis(xive, blk); in pnv_xive_pic_print_info()
1861 chip_id, blk, srcno0, srcno0 + nr_ipis - 1); in pnv_xive_pic_print_info()
1865 chip_id, blk, srcno0, srcno0 + nr_ipis - 1); in pnv_xive_pic_print_info()
1867 if (xive_router_get_eas(xrtr, blk, i, &eas)) { in pnv_xive_pic_print_info()
1875 g_string_append_printf(buf, "XIVE[%x] #%d ENDT\n", chip_id, blk); in pnv_xive_pic_print_info()
1877 while (!xive_router_get_end(xrtr, blk, i, &end)) { in pnv_xive_pic_print_info()
1882 chip_id, blk); in pnv_xive_pic_print_info()
1884 while (!xive_router_get_end(xrtr, blk, i, &end)) { in pnv_xive_pic_print_info()
1889 chip_id, blk, 0, XIVE_NVT_COUNT - 1); in pnv_xive_pic_print_info()
1892 while (!xive_router_get_nvt(xrtr, blk, i, &nvt)) { in pnv_xive_pic_print_info()