Home
last modified time | relevance | path

Searched full:nsp (Results 1 – 25 of 113) sorted by relevance

12345

/Linux-v6.6/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_nsp_eth.c128 nfp_eth_port_translate(struct nfp_nsp *nsp, const union eth_table_entry *src, in nfp_eth_port_translate() argument
159 if (nfp_nsp_get_abi_ver_minor(nsp) < 17) in nfp_eth_port_translate()
165 if (nfp_nsp_get_abi_ver_minor(nsp) < 22) in nfp_eth_port_translate()
178 if (nfp_nsp_get_abi_ver_minor(nsp) < 33) in nfp_eth_port_translate()
231 nfp_eth_read_media(struct nfp_cpp *cpp, struct nfp_nsp *nsp, struct nfp_eth_table_port *entry) in nfp_eth_read_media() argument
239 if (!nfp_nsp_has_read_media(nsp)) in nfp_eth_read_media()
242 ret = nfp_nsp_read_media(nsp, &ethm, sizeof(ethm)); in nfp_eth_read_media()
266 struct nfp_nsp *nsp; in nfp_eth_read_ports() local
268 nsp = nfp_nsp_open(cpp); in nfp_eth_read_ports()
269 if (IS_ERR(nsp)) in nfp_eth_read_ports()
[all …]
Dnfp_nsp_cmds.c18 __le16 nsp; member
23 struct nfp_nsp_identify *__nfp_nsp_identify(struct nfp_nsp *nsp) in __nfp_nsp_identify() argument
29 if (nfp_nsp_get_abi_ver_minor(nsp) < 15) in __nfp_nsp_identify()
36 ret = nfp_nsp_read_identify(nsp, ni, sizeof(*ni)); in __nfp_nsp_identify()
38 nfp_err(nfp_nsp_cpp(nsp), "reading bsp version failed %d\n", in __nfp_nsp_identify()
55 nspi->nsp = le16_to_cpu(ni->nsp); in __nfp_nsp_identify()
74 struct nfp_nsp *nsp; in nfp_hwmon_read_sensor() local
77 nsp = nfp_nsp_open(cpp); in nfp_hwmon_read_sensor()
78 if (IS_ERR(nsp)) in nfp_hwmon_read_sensor()
79 return PTR_ERR(nsp); in nfp_hwmon_read_sensor()
[all …]
Dnfp_nsp.c95 SPCODE_NSP_SENSORS = 12, /* Read NSP sensor(s) */
96 SPCODE_NSP_IDENTIFY = 13, /* Read NSP version */
144 * @dma: @buf points to a host buffer, not NSP buffer
270 * nfp_nsp_open() - Prepare for communication and lock the NSP resource.
301 * nfp_nsp_close() - Clean up and unlock the NSP resource.
351 * positive value for NSP completion with a result code
353 * -EAGAIN if the NSP is not yet present
354 * -ENODEV if the NSP is not a supported model
355 * -EBUSY if the NSP is stuck
357 * -ETIMEDOUT if the NSP took longer than @timeout_sec seconds to complete
[all …]
Dnfp_nsp.h249 __nfp_eth_read_ports(struct nfp_cpp *cpp, struct nfp_nsp *nsp);
271 int nfp_eth_config_commit_end(struct nfp_nsp *nsp);
272 void nfp_eth_config_cleanup_end(struct nfp_nsp *nsp);
274 int __nfp_eth_set_aneg(struct nfp_nsp *nsp, enum nfp_eth_aneg mode);
275 int __nfp_eth_set_speed(struct nfp_nsp *nsp, unsigned int speed);
276 int __nfp_eth_set_split(struct nfp_nsp *nsp, unsigned int lanes);
279 * struct nfp_nsp_identify - NSP static information
284 * @br_nsp: branch id of NSP
287 * @nsp: version id of NSP
298 u16 nsp; member
[all …]
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/
Ddevlink_param.c88 struct nfp_nsp *nsp; in nfp_devlink_param_u8_get() local
98 nsp = nfp_nsp_open(pf->cpp); in nfp_devlink_param_u8_get()
99 if (IS_ERR(nsp)) { in nfp_devlink_param_u8_get()
100 err = PTR_ERR(nsp); in nfp_devlink_param_u8_get()
101 nfp_warn(pf->cpp, "can't access NSP: %d\n", err); in nfp_devlink_param_u8_get()
106 err = nfp_nsp_hwinfo_lookup_optional(nsp, hwinfo, sizeof(hwinfo), in nfp_devlink_param_u8_get()
129 nfp_nsp_close(nsp); in nfp_devlink_param_u8_get()
139 struct nfp_nsp *nsp; in nfp_devlink_param_u8_set() local
148 nsp = nfp_nsp_open(pf->cpp); in nfp_devlink_param_u8_set()
149 if (IS_ERR(nsp)) { in nfp_devlink_param_u8_set()
[all …]
Dnfp_main.c333 struct nfp_nsp *nsp; in nfp_flash_update_common() local
336 nsp = nfp_nsp_open(pf->cpp); in nfp_flash_update_common()
337 if (IS_ERR(nsp)) { in nfp_flash_update_common()
338 err = PTR_ERR(nsp); in nfp_flash_update_common()
340 NL_SET_ERR_MSG_MOD(extack, "can't access NSP"); in nfp_flash_update_common()
342 dev_err(dev, "Failed to access the NSP: %d\n", err); in nfp_flash_update_common()
346 err = nfp_nsp_write_flash(nsp, fw); in nfp_flash_update_common()
353 nfp_nsp_close(nsp); in nfp_flash_update_common()
446 nfp_get_fw_policy_value(struct pci_dev *pdev, struct nfp_nsp *nsp, in nfp_get_fw_policy_value() argument
455 err = nfp_nsp_hwinfo_lookup_optional(nsp, hwinfo, sizeof(hwinfo), in nfp_get_fw_policy_value()
[all …]
Dnfp_devlink.c41 struct nfp_nsp *nsp; in nfp_devlink_set_lanes() local
44 nsp = nfp_eth_config_start(pf->cpp, idx); in nfp_devlink_set_lanes()
45 if (IS_ERR(nsp)) in nfp_devlink_set_lanes()
46 return PTR_ERR(nsp); in nfp_devlink_set_lanes()
48 ret = __nfp_eth_set_split(nsp, lanes); in nfp_devlink_set_lanes()
50 nfp_eth_config_cleanup_end(nsp); in nfp_devlink_set_lanes()
54 ret = nfp_eth_config_commit_end(nsp); in nfp_devlink_set_lanes()
238 struct nfp_nsp *nsp; in nfp_devlink_info_get() local
264 nsp = nfp_nsp_open(pf->cpp); in nfp_devlink_info_get()
265 if (IS_ERR(nsp)) { in nfp_devlink_info_get()
[all …]
Dnfp_net_ethtool.c186 struct nfp_nsp *nsp; in nfp_net_get_nspinfo() local
191 nsp = nfp_nsp_open(app->cpp); in nfp_net_get_nspinfo()
192 if (IS_ERR(nsp)) in nfp_net_get_nspinfo()
196 nfp_nsp_get_abi_ver_major(nsp), in nfp_net_get_nspinfo()
197 nfp_nsp_get_abi_ver_minor(nsp)); in nfp_net_get_nspinfo()
199 nfp_nsp_close(nsp); in nfp_net_get_nspinfo()
552 struct nfp_nsp *nsp; in nfp_net_set_link_ksettings() local
565 nsp = nfp_eth_config_start(port->app->cpp, eth_port->index); in nfp_net_set_link_ksettings()
566 if (IS_ERR(nsp)) in nfp_net_set_link_ksettings()
567 return PTR_ERR(nsp); in nfp_net_set_link_ksettings()
[all …]
/Linux-v6.6/arch/x86/kernel/
Dnmi.c491 struct nmi_stats *nsp = this_cpu_ptr(&nmi_stats); in DEFINE_IDTENTRY_RAW() local
499 raw_atomic_long_inc(&nsp->idt_calls); in DEFINE_IDTENTRY_RAW()
511 WRITE_ONCE(nsp->idt_seq, nsp->idt_seq + 1); in DEFINE_IDTENTRY_RAW()
512 WARN_ON_ONCE(!(nsp->idt_seq & 0x1)); in DEFINE_IDTENTRY_RAW()
513 WRITE_ONCE(nsp->recv_jiffies, jiffies); in DEFINE_IDTENTRY_RAW()
530 WRITE_ONCE(nsp->idt_ignored, nsp->idt_ignored + 1); in DEFINE_IDTENTRY_RAW()
533 WRITE_ONCE(nsp->idt_nmi_seq, nsp->idt_nmi_seq + 1); in DEFINE_IDTENTRY_RAW()
534 WARN_ON_ONCE(!(nsp->idt_nmi_seq & 0x1)); in DEFINE_IDTENTRY_RAW()
538 WRITE_ONCE(nsp->idt_nmi_seq, nsp->idt_nmi_seq + 1); in DEFINE_IDTENTRY_RAW()
539 WARN_ON_ONCE(nsp->idt_nmi_seq & 0x1); in DEFINE_IDTENTRY_RAW()
[all …]
/Linux-v6.6/Documentation/devicetree/bindings/arm/bcm/
Dbrcm,nsp.yaml4 $id: http://devicetree.org/schemas/arm/bcm/brcm,nsp.yaml#
31 - const: brcm,nsp
39 - const: brcm,nsp
44 - const: brcm,nsp
51 - const: brcm,nsp
58 - const: brcm,nsp
72 - const: brcm,nsp
79 - const: brcm,nsp
/Linux-v6.6/scripts/
Dcleanfile24 my $nsp = 0;
30 my $npos = ($pos+$nsp+8) & ~7;
34 $nsp = 0;
36 $lo .= " " x $nsp;
37 $pos += $nsp;
38 $nsp = 0;
42 $nsp++;
44 $lo .= " " x $nsp;
45 $pos += $nsp;
46 $nsp = 0;
[all …]
Dcleanpatch24 my $nsp = 0;
30 my $npos = ($pos+$nsp+8) & ~7;
34 $nsp = 0;
36 $lo .= " " x $nsp;
37 $pos += $nsp;
38 $nsp = 0;
42 $nsp++;
44 $lo .= " " x $nsp;
45 $pos += $nsp;
46 $nsp = 0;
[all …]
/Linux-v6.6/Documentation/devicetree/bindings/clock/
Dbrcm,iproc-clocks.yaml33 - brcm,nsp-armpll
34 - brcm,nsp-genpll
35 - brcm,nsp-lcpll0
77 - brcm,nsp-armpll
167 - brcm,nsp-armpll
168 - brcm,nsp-genpll
169 - brcm,nsp-lcpll0
176 "include/dt-bindings/clock/bcm-nsp.h"
348 const: brcm,nsp-lcpll0
361 const: brcm,nsp-genpll
[all …]
/Linux-v6.6/arch/arm/boot/dts/broadcom/
Dbcm-nsp.dtsi35 #include <dt-bindings/clock/bcm-nsp.h>
40 compatible = "brcm,nsp";
67 enable-method = "brcm,bcm-nsp-smp";
88 compatible = "brcm,nsp-armpll";
176 compatible = "brcm,nsp-gpio-a";
233 compatible = "brcm,nsp-amac";
243 compatible = "brcm,nsp-amac";
253 compatible = "brcm,nsp-amac";
287 compatible = "brcm,spi-nsp-qspi", "brcm,spi-bcm-qspi";
343 compatible = "brcm,spum-nsp-crypto";
[all …]
Dbcm5301x.dtsi15 compatible = "brcm,nsp-armpll";
113 compatible = "brcm,nsp-lcpll0";
122 compatible = "brcm,nsp-genpll";
134 compatible = "brcm,spi-nsp-qspi", "brcm,spi-bcm-qspi";
/Linux-v6.6/Documentation/devicetree/bindings/pinctrl/
Dbrcm,nsp-pinmux.txt1 Broadcom NSP (Northstar plus) IOMUX Controller
3 The NSP IOMUX controller supports group based mux configuration. In
8 Must be "brcm,nsp-pinmux"
27 compatible = "brcm,nsp-pinmux";
Dbrcm,nsp-gpio.txt1 Broadcom Northstar plus (NSP) GPIO/PINCONF Controller
5 Must be "brcm,nsp-gpio-a"
57 compatible = "brcm,nsp-gpio-a";
/Linux-v6.6/kernel/
Dnsproxy.c381 struct nsproxy *nsp; in validate_nsset() local
398 nsp = tsk->nsproxy; in validate_nsset()
399 if (nsp) in validate_nsset()
400 get_nsproxy(nsp); in validate_nsset()
402 if (!nsp) { in validate_nsset()
440 ret = validate_ns(nsset, from_mnt_ns(nsp->mnt_ns)); in validate_nsset()
447 ret = validate_ns(nsset, &nsp->uts_ns->ns); in validate_nsset()
455 ret = validate_ns(nsset, &nsp->ipc_ns->ns); in validate_nsset()
471 ret = validate_ns(nsset, &nsp->cgroup_ns->ns); in validate_nsset()
479 ret = validate_ns(nsset, &nsp->net_ns->ns); in validate_nsset()
[all …]
/Linux-v6.6/drivers/pinctrl/bcm/
DKconfig119 The Broadcom iProc based SoCs- Cygnus, NS2, NSP and Stingray, use
127 The Broadcom NSP has two GPIO controllers including the ChipcommonA
175 bool "Broadcom NSP GPIO (with PINCONF) driver"
182 Say yes here to enable the Broadcom NSP GPIO driver.
205 bool "Broadcom NSP IOMUX driver"
212 Say yes here to enable the Broadcom NSP SOC IOMUX driver.
Dpinctrl-nsp-mux.c4 * This file contains the Northstar plus (NSP) IOMUX driver that supports
39 * nsp IOMUX register description
54 * Keep track of nsp IOMUX configuration and prevent double configuration
56 * @nsp_mux: nsp IOMUX register description
71 * @mux: nsp group based IOMUX configuration
81 * nsp mux function and supported pin groups
94 * nsp IOMUX pinctrl core
123 * Description of a pin in nsp
143 * List of muxable pins in nsp
235 * List of nsp pin groups
[all …]
Dpinctrl-nsp-gpio.c5 * This file contains the Broadcom Northstar Plus (NSP) GPIO driver that
10 * through the interaction with the NSP IOMUX controller.
48 * nsp GPIO core
51 * @base: I/O register base for nsp GPIO controller
83 * nsp GPIO register
85 * @nsp_gpio: nsp GPIO device
113 * nsp GPIO register
568 * NSP GPIO controller supports some PINCONF related configurations such as
608 {.compatible = "brcm,nsp-gpio-a",},
702 .name = "nsp-gpio-a",
/Linux-v6.6/drivers/scsi/pcmcia/
Dnsp_message.c19 * XXX: NSP QUIRK in nsp_message_in()
20 * NSP invoke interrupts only in the case of scsi phase changes, in nsp_message_in()
60 * XXX: NSP QUIRK in nsp_message_out()
61 * NSP invoke interrupts only in the case of scsi phase changes, in nsp_message_out()
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/abm/
Dmain.c262 struct nfp_nsp *nsp; in nfp_abm_vnic_set_mac() local
275 nsp = nfp_nsp_open(pf->cpp); in nfp_abm_vnic_set_mac()
276 if (IS_ERR(nsp)) { in nfp_abm_vnic_set_mac()
277 nfp_warn(pf->cpp, "Failed to access the NSP for persistent MAC address: %ld\n", in nfp_abm_vnic_set_mac()
278 PTR_ERR(nsp)); in nfp_abm_vnic_set_mac()
283 if (!nfp_nsp_has_hwinfo_lookup(nsp)) { in nfp_abm_vnic_set_mac()
284 nfp_warn(pf->cpp, "NSP doesn't support PF MAC generation\n"); in nfp_abm_vnic_set_mac()
286 nfp_nsp_close(nsp); in nfp_abm_vnic_set_mac()
290 err = nfp_nsp_hwinfo_lookup(nsp, hwinfo, sizeof(hwinfo)); in nfp_abm_vnic_set_mac()
291 nfp_nsp_close(nsp); in nfp_abm_vnic_set_mac()
/Linux-v6.6/Documentation/devicetree/bindings/net/
Dbrcm,amac.yaml32 - brcm,nsp-amac
59 - brcm,nsp-amac
83 compatible = "brcm,nsp-amac";
/Linux-v6.6/drivers/clk/bcm/
Dclk-nsp.c11 #include <dt-bindings/clock/bcm-nsp.h>
33 CLK_OF_DECLARE(nsp_armpll, "brcm,nsp-armpll", nsp_armpll_init);
90 CLK_OF_DECLARE(nsp_genpll_clk, "brcm,nsp-genpll", nsp_genpll_clk_init);
129 CLK_OF_DECLARE(nsp_lcpll0_clk, "brcm,nsp-lcpll0", nsp_lcpll0_clk_init);

12345