/Linux-v6.6/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_nsp_eth.c | 128 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, ðm, 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 …]
|
D | nfp_nsp_cmds.c | 18 __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 …]
|
D | nfp_nsp.c | 95 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 …]
|
D | nfp_nsp.h | 249 __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/ |
D | devlink_param.c | 88 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 …]
|
D | nfp_main.c | 333 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 …]
|
D | nfp_devlink.c | 41 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 …]
|
D | nfp_net_ethtool.c | 186 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/ |
D | nmi.c | 491 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/ |
D | brcm,nsp.yaml | 4 $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/ |
D | cleanfile | 24 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 …]
|
D | cleanpatch | 24 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/ |
D | brcm,iproc-clocks.yaml | 33 - 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/ |
D | bcm-nsp.dtsi | 35 #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 …]
|
D | bcm5301x.dtsi | 15 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/ |
D | brcm,nsp-pinmux.txt | 1 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";
|
D | brcm,nsp-gpio.txt | 1 Broadcom Northstar plus (NSP) GPIO/PINCONF Controller 5 Must be "brcm,nsp-gpio-a" 57 compatible = "brcm,nsp-gpio-a";
|
/Linux-v6.6/kernel/ |
D | nsproxy.c | 381 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/ |
D | Kconfig | 119 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.
|
D | pinctrl-nsp-mux.c | 4 * 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 …]
|
D | pinctrl-nsp-gpio.c | 5 * 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/ |
D | nsp_message.c | 19 * 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/ |
D | main.c | 262 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/ |
D | brcm,amac.yaml | 32 - brcm,nsp-amac 59 - brcm,nsp-amac 83 compatible = "brcm,nsp-amac";
|
/Linux-v6.6/drivers/clk/bcm/ |
D | clk-nsp.c | 11 #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);
|