Home
last modified time | relevance | path

Searched refs:vasid (Results 1 - 13 of 13) sorted by relevance

/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
H A Dvas-trace.h16 int vasid,
20 TP_ARGS(tsk, vasid, cop, rxattr),
26 __field(int, vasid)
35 __entry->vasid = vasid;
42 TP_printk("pid=%d, vasid=%d, cop=%d, lpid=%d, pid=%d, tid=%d",
43 __entry->pid, __entry->vasid, __entry->cop,
51 int vasid,
55 TP_ARGS(tsk, vasid, cop, txattr),
61 __field(int, vasid)
[all...]
H A Dvas.c59 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 Dvas.h429 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 Dvas-window.c575 * - We must have a valid vasid and it must belong to this instance.
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 vas_tx_win_open(int vasid, enum vas_cop_type cop, struct vas_tx_win_attr *attr) vas_tx_win_open() argument
[all...]
H A Dvas-api.c79 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()
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/
H A Dvas-trace.h16 int vasid,
20 TP_ARGS(tsk, vasid, cop, rxattr),
26 __field(int, vasid)
35 __entry->vasid = vasid;
42 TP_printk("pid=%d, vasid=%d, cop=%d, lpid=%d, pid=%d, tid=%d",
43 __entry->pid, __entry->vasid, __entry->cop,
51 int vasid,
55 TP_ARGS(tsk, vasid, cop, txattr),
61 __field(int, vasid)
[all...]
H A Dvas.c57 int rc, cpu, vasid; in init_vas_instance() local
59 rc = of_property_read_u32(dn, "ibm,vas-id", &vasid); in init_vas_instance()
73 pdev->name, vasid); in init_vas_instance()
81 vinst->name = kasprintf(GFP_KERNEL, "vas-%d", vasid); in init_vas_instance()
90 vinst->vas_id = vasid; in init_vas_instance()
133 pdev->name, vasid, vinst->paste_base_addr, in init_vas_instance()
139 per_cpu(cpu_vas_id, cpu) = vasid; in init_vas_instance()
179 struct vas_instance *find_vas_instance(int vasid) in find_vas_instance() argument
186 if (vasid == -1) in find_vas_instance()
187 vasid in find_vas_instance()
[all...]
H A Dvas.h422 extern struct vas_instance *find_vas_instance(int vasid);
488 static inline u32 encode_pswid(int vasid, int winid) in encode_pswid() argument
490 return ((u32)winid | (vasid << (31 - 7))); in encode_pswid()
493 static inline void decode_pswid(u32 pswid, int *vasid, int *winid) in decode_pswid() argument
495 if (vasid) in decode_pswid()
496 *vasid = pswid >> (31 - 7) & 0xFF; in decode_pswid()
H A Dvas-window.c576 * - We must have a valid vasid and it must belong to this instance.
585 int vasid, winid; in get_user_rxwin() local
588 decode_pswid(pswid, &vasid, &winid); in get_user_rxwin()
590 if (vinst->vas_id != vasid) in get_user_rxwin()
853 struct vas_window *vas_rx_win_open(int vasid, enum vas_cop_type cop, in vas_rx_win_open() argument
860 trace_vas_rx_win_open(current, vasid, cop, rxattr); in vas_rx_win_open()
865 vinst = find_vas_instance(vasid); in vas_rx_win_open()
867 pr_devel("vasid %d not found!\n", vasid); in vas_rx_win_open()
870 pr_devel("Found instance %d\n", vasid); in vas_rx_win_open()
995 vas_tx_win_open(int vasid, enum vas_cop_type cop, struct vas_tx_win_attr *attr) vas_tx_win_open() argument
[all...]
/kernel/linux/linux-5.10/drivers/crypto/nx/
H A Dnx-common-powernv.c769 int vasid, int type, int *ct) in vas_cfg_coproc_info()
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()
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()
923 pr_err("Unable to map chip_id %d to vasid\n", chip_id); in nx_powernv_probe_vas()
928 ret = find_nx_device_tree(dn, chip_id, vasid, NX_CT_84 in nx_powernv_probe_vas()
768 vas_cfg_coproc_info(struct device_node *dn, int chip_id, int vasid, int type, int *ct) vas_cfg_coproc_info() argument
894 find_nx_device_tree(struct device_node *dn, int chip_id, int vasid, int type, char *devname, int *ct) find_nx_device_tree() argument
[all...]
/kernel/linux/linux-6.6/drivers/crypto/nx/
H A Dnx-common-powernv.c766 int vasid, int type, int *ct) in vas_cfg_coproc_info()
842 rxwin = vas_rx_win_open(vasid, coproc->ct, &rxattr); in vas_cfg_coproc_info()
851 coproc->vas.id = vasid; in vas_cfg_coproc_info()
892 int vasid, int type, char *devname, in find_nx_device_tree()
898 ret = vas_cfg_coproc_info(dn, chip_id, vasid, type, ct); in find_nx_device_tree()
908 int chip_id, vasid, ret = 0; in nx_powernv_probe_vas() local
918 vasid = chip_to_vas_id(chip_id); in nx_powernv_probe_vas()
919 if (vasid < 0) { in nx_powernv_probe_vas()
920 pr_err("Unable to map chip_id %d to vasid\n", chip_id); in nx_powernv_probe_vas()
925 ret = find_nx_device_tree(dn, chip_id, vasid, NX_CT_84 in nx_powernv_probe_vas()
765 vas_cfg_coproc_info(struct device_node *dn, int chip_id, int vasid, int type, int *ct) vas_cfg_coproc_info() argument
891 find_nx_device_tree(struct device_node *dn, int chip_id, int vasid, int type, char *devname, int *ct) find_nx_device_tree() argument
[all...]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
H A Dvas.h108 * Return the VAS id or -1 if no matching vasid is found.
119 * Open a VAS receive window for the instance of VAS identified by @vasid
124 struct vas_window *vas_rx_win_open(int vasid, enum vas_cop_type cop,
134 * Open a VAS send window for the instance of VAS identified by @vasid
143 struct vas_window *vas_tx_win_open(int vasid, enum vas_cop_type cop,
/kernel/linux/linux-6.6/arch/powerpc/include/asm/
H A Dvas.h183 * Return the VAS id or -1 if no matching vasid is found.
194 * Open a VAS receive window for the instance of VAS identified by @vasid
199 struct vas_window *vas_rx_win_open(int vasid, enum vas_cop_type cop,
209 * Open a VAS send window for the instance of VAS identified by @vasid
218 struct vas_window *vas_tx_win_open(int vasid, enum vas_cop_type cop,

Completed in 12 milliseconds