Home
last modified time | relevance | path

Searched refs:nsp (Results 1 – 21 of 21) sorted by relevance

/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()
242 struct nfp_nsp *nsp; in nfp_eth_read_ports() local
244 nsp = nfp_nsp_open(cpp); in nfp_eth_read_ports()
245 if (IS_ERR(nsp)) in nfp_eth_read_ports()
248 ret = __nfp_eth_read_ports(cpp, nsp); in nfp_eth_read_ports()
249 nfp_nsp_close(nsp); in nfp_eth_read_ports()
255 __nfp_eth_read_ports(struct nfp_cpp *cpp, struct nfp_nsp *nsp) in __nfp_eth_read_ports() argument
[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.h240 __nfp_eth_read_ports(struct nfp_cpp *cpp, struct nfp_nsp *nsp);
262 int nfp_eth_config_commit_end(struct nfp_nsp *nsp);
263 void nfp_eth_config_cleanup_end(struct nfp_nsp *nsp);
265 int __nfp_eth_set_aneg(struct nfp_nsp *nsp, enum nfp_eth_aneg mode);
266 int __nfp_eth_set_speed(struct nfp_nsp *nsp, unsigned int speed);
267 int __nfp_eth_set_split(struct nfp_nsp *nsp, unsigned int lanes);
289 u16 nsp; member
293 struct nfp_nsp_identify *__nfp_nsp_identify(struct nfp_nsp *nsp);
Dnfp_nsp.c438 nfp_nsp_command_buf_def(struct nfp_nsp *nsp, in nfp_nsp_command_buf_def() argument
441 struct nfp_cpp *cpp = nsp->cpp; in nfp_nsp_command_buf_def()
446 err = nfp_cpp_readq(cpp, nfp_resource_cpp_id(nsp->res), in nfp_nsp_command_buf_def()
447 nfp_resource_address(nsp->res) + in nfp_nsp_command_buf_def()
479 ret = __nfp_nsp_command(nsp, &arg->arg); in nfp_nsp_command_buf_def()
494 nfp_nsp_command_buf_dma_sg(struct nfp_nsp *nsp, in nfp_nsp_command_buf_dma_sg() argument
499 struct nfp_cpp *cpp = nsp->cpp; in nfp_nsp_command_buf_dma_sg()
586 ret = __nfp_nsp_command(nsp, &arg->arg); in nfp_nsp_command_buf_dma_sg()
623 nfp_nsp_command_buf_dma(struct nfp_nsp *nsp, in nfp_nsp_command_buf_dma() argument
628 struct nfp_cpp *cpp = nsp->cpp; in nfp_nsp_command_buf_dma()
[all …]
/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()
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()
150 err = PTR_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()
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()
481 nfp_fw_load(struct pci_dev *pdev, struct nfp_pf *pf, struct nfp_nsp *nsp) in nfp_fw_load() argument
491 err = nfp_nsp_hwinfo_lookup_optional(nsp, hwinfo, sizeof(hwinfo), in nfp_fw_load()
[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
268 nsp = nfp_nsp_open(pf->cpp); in nfp_devlink_info_get()
269 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()
548 struct nfp_nsp *nsp; in nfp_net_set_link_ksettings() local
561 nsp = nfp_eth_config_start(port->app->cpp, eth_port->index); in nfp_net_set_link_ksettings()
562 if (IS_ERR(nsp)) in nfp_net_set_link_ksettings()
563 return PTR_ERR(nsp); in nfp_net_set_link_ksettings()
[all …]
/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()
278 PTR_ERR(nsp)); in nfp_abm_vnic_set_mac()
283 if (!nfp_nsp_has_hwinfo_lookup(nsp)) { 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()
/drivers/pinctrl/bcm/
DMakefile17 obj-$(CONFIG_PINCTRL_NSP_GPIO) += pinctrl-nsp-gpio.o
19 obj-$(CONFIG_PINCTRL_NSP_MUX) += pinctrl-nsp-mux.o
/drivers/w1/
Dw1_netlink.c535 static void w1_cn_callback(struct cn_msg *cn, struct netlink_skb_parms *nsp) in w1_cn_callback() argument
553 w1_netlink_send_error(cn, msg, nsp->portid, -EINVAL); in w1_cn_callback()
609 w1_netlink_send_error(cn, msg, nsp->portid, -ENOMEM); in w1_cn_callback()
613 block->portid = nsp->portid; in w1_cn_callback()
645 err = w1_process_command_root(cn, nsp->portid); in w1_cn_callback()
699 w1_netlink_send_error(cn, msg, nsp->portid, err); in w1_cn_callback()
/drivers/connector/
Dconnector.c137 struct netlink_skb_parms *nsp = &NETLINK_CB(skb); in cn_call_callback() local
156 cbq->callback(msg, nsp); in cn_call_callback()
Dcn_proc.c347 struct netlink_skb_parms *nsp) in cn_proc_mcast_ctl() argument
365 if (!__netlink_ns_capable(nsp, &init_user_ns, CAP_NET_ADMIN)) { in cn_proc_mcast_ctl()
/drivers/firmware/
Ddmi_scan.c49 const u8 *nsp; in dmi_string_nosave() local
56 nsp = bp; in dmi_string_nosave()
57 while (*nsp == ' ') in dmi_string_nosave()
58 nsp++; in dmi_string_nosave()
59 if (*nsp != '\0') in dmi_string_nosave()
/drivers/clk/bcm/
DMakefile16 obj-$(CONFIG_CLK_BCM_NSP) += clk-nsp.o
/drivers/soc/qcom/
Drpmhpd.c183 static struct rpmhpd nsp = { variable
205 [SC8280XP_NSP] = &nsp,
423 [SC8280XP_NSP] = &nsp,
/drivers/s390/scsi/
Dzfcp_scsi.c869 const struct fc_els_flogi *nsp, *plogi; in zfcp_scsi_shost_update_config_data() local
888 nsp = (struct fc_els_flogi *) ((u8 *)&bottom->nport_serv_param in zfcp_scsi_shost_update_config_data()
895 fc_host_port_name(shost) = be64_to_cpu(nsp->fl_wwpn); in zfcp_scsi_shost_update_config_data()
896 fc_host_node_name(shost) = be64_to_cpu(nsp->fl_wwnn); in zfcp_scsi_shost_update_config_data()
Dzfcp_sysfs.c818 struct fc_els_flogi *nsp; in zfcp_sysfs_adapter_diag_b2b_credit_show() local
841 nsp = (struct fc_els_flogi *)((unsigned long) in zfcp_sysfs_adapter_diag_b2b_credit_show()
847 be16_to_cpu(nsp->fl_csp.sp_bb_cred)); in zfcp_sysfs_adapter_diag_b2b_credit_show()
/drivers/md/
Ddm-log-userspace-transfer.c132 static void cn_ulog_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) in cn_ulog_callback() argument
/drivers/hv/
Dhv_utils_transport.c184 static void hvt_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) in hvt_cn_callback() argument
/drivers/video/fbdev/
Duvesafb.c72 static void uvesafb_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) in uvesafb_cn_callback() argument