| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/powernv/ |
| H A D | vas-trace.h | 16 int vasid, 20 TP_ARGS(tsk, vasid, cop, rxattr), 26 __field(int, vasid) 35 __entry->vasid = vasid; 43 __entry->pid, __entry->vasid, __entry->cop, 51 int vasid, 55 TP_ARGS(tsk, vasid, cop, txattr), 61 __field(int, vasid) 69 __entry->vasid = vasid; 76 __entry->pid, __entry->vasid, __entry->cop, [all …]
|
| H A D | vas.c | 59 int rc, cpu, vasid; in init_vas_instance() local 61 rc = of_property_read_u32(dn, "ibm,vas-id", &vasid); in init_vas_instance() 75 pdev->name, vasid); in init_vas_instance() 86 vinst->vas_id = vasid; in init_vas_instance() 129 pdev->name, vasid, vinst->paste_base_addr, in init_vas_instance() 135 per_cpu(cpu_vas_id, cpu) = vasid; in init_vas_instance() 174 struct vas_instance *find_vas_instance(int vasid) in find_vas_instance() argument 181 if (vasid == -1) in find_vas_instance() 182 vasid = per_cpu(cpu_vas_id, smp_processor_id()); in find_vas_instance() 186 if (vinst->vas_id == vasid) { in find_vas_instance() [all …]
|
| H A D | vas.h | 429 extern struct vas_instance *find_vas_instance(int vasid); 495 static inline u32 encode_pswid(int vasid, int winid) in encode_pswid() argument 497 return ((u32)winid | (vasid << (31 - 7))); in encode_pswid() 500 static inline void decode_pswid(u32 pswid, int *vasid, int *winid) in decode_pswid() argument 502 if (vasid) in decode_pswid() 503 *vasid = pswid >> (31 - 7) & 0xFF; in decode_pswid()
|
| H A D | vas-window.c | 583 int vasid, winid; in get_user_rxwin() local 586 decode_pswid(pswid, &vasid, &winid); in get_user_rxwin() 588 if (vinst->vas_id != vasid) in get_user_rxwin() 851 struct vas_window *vas_rx_win_open(int vasid, enum vas_cop_type cop, in vas_rx_win_open() argument 858 trace_vas_rx_win_open(current, vasid, cop, rxattr); in vas_rx_win_open() 863 vinst = find_vas_instance(vasid); in vas_rx_win_open() 865 pr_devel("vasid %d not found!\n", vasid); in vas_rx_win_open() 868 pr_devel("Found instance %d\n", vasid); in vas_rx_win_open() 992 struct vas_window *vas_tx_win_open(int vasid, enum vas_cop_type cop, in vas_tx_win_open() argument 1001 trace_vas_tx_win_open(current, vasid, cop, attr); in vas_tx_win_open() [all …]
|
| H A D | vas-api.c | 79 int rc, vasid; in coproc_ioc_tx_win_open() local 100 vasid = uattr.vas_id; in coproc_ioc_tx_win_open() 113 txwin = vas_tx_win_open(vasid, cp_inst->coproc->cop_type, &txattr); in coproc_ioc_tx_win_open()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/nx/ |
| H A D | nx-common-powernv.c | 769 int vasid, int type, int *ct) in vas_cfg_coproc_info() argument 845 rxwin = vas_rx_win_open(vasid, coproc->ct, &rxattr); in vas_cfg_coproc_info() 854 coproc->vas.id = vasid; in vas_cfg_coproc_info() 895 int vasid, int type, char *devname, in find_nx_device_tree() argument 901 ret = vas_cfg_coproc_info(dn, chip_id, vasid, type, ct); in find_nx_device_tree() 911 int chip_id, vasid, ret = 0; in nx_powernv_probe_vas() local 921 vasid = chip_to_vas_id(chip_id); in nx_powernv_probe_vas() 922 if (vasid < 0) { in nx_powernv_probe_vas() 928 ret = find_nx_device_tree(dn, chip_id, vasid, NX_CT_842, in nx_powernv_probe_vas() 932 ret = find_nx_device_tree(dn, chip_id, vasid, in nx_powernv_probe_vas()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/include/asm/ |
| H A D | vas.h | 124 struct vas_window *vas_rx_win_open(int vasid, enum vas_cop_type cop, 143 struct vas_window *vas_tx_win_open(int vasid, enum vas_cop_type cop,
|