Home
last modified time | relevance | path

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

/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_nsp_eth.c125 nfp_eth_port_translate(struct nfp_nsp *nsp, const union eth_table_entry *src, in nfp_eth_port_translate() argument
156 if (nfp_nsp_get_abi_ver_minor(nsp) < 17) in nfp_eth_port_translate()
162 if (nfp_nsp_get_abi_ver_minor(nsp) < 22) in nfp_eth_port_translate()
232 struct nfp_nsp *nsp; in nfp_eth_read_ports() local
234 nsp = nfp_nsp_open(cpp); in nfp_eth_read_ports()
235 if (IS_ERR(nsp)) in nfp_eth_read_ports()
238 ret = __nfp_eth_read_ports(cpp, nsp); in nfp_eth_read_ports()
239 nfp_nsp_close(nsp); in nfp_eth_read_ports()
245 __nfp_eth_read_ports(struct nfp_cpp *cpp, struct nfp_nsp *nsp) in __nfp_eth_read_ports() argument
255 ret = nfp_nsp_read_eth_table(nsp, entries, NSP_ETH_TABLE_SIZE); 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.h191 __nfp_eth_read_ports(struct nfp_cpp *cpp, struct nfp_nsp *nsp);
211 int nfp_eth_config_commit_end(struct nfp_nsp *nsp);
212 void nfp_eth_config_cleanup_end(struct nfp_nsp *nsp);
214 int __nfp_eth_set_aneg(struct nfp_nsp *nsp, enum nfp_eth_aneg mode);
215 int __nfp_eth_set_speed(struct nfp_nsp *nsp, unsigned int speed);
216 int __nfp_eth_set_split(struct nfp_nsp *nsp, unsigned int lanes);
238 u16 nsp; member
242 struct nfp_nsp_identify *__nfp_nsp_identify(struct nfp_nsp *nsp);
Dnfp_nsp.c437 nfp_nsp_command_buf_def(struct nfp_nsp *nsp, in nfp_nsp_command_buf_def() argument
440 struct nfp_cpp *cpp = nsp->cpp; in nfp_nsp_command_buf_def()
445 err = nfp_cpp_readq(cpp, nfp_resource_cpp_id(nsp->res), in nfp_nsp_command_buf_def()
446 nfp_resource_address(nsp->res) + in nfp_nsp_command_buf_def()
478 ret = __nfp_nsp_command(nsp, &arg->arg); in nfp_nsp_command_buf_def()
493 nfp_nsp_command_buf_dma_sg(struct nfp_nsp *nsp, in nfp_nsp_command_buf_dma_sg() argument
498 struct nfp_cpp *cpp = nsp->cpp; in nfp_nsp_command_buf_dma_sg()
585 ret = __nfp_nsp_command(nsp, &arg->arg); in nfp_nsp_command_buf_dma_sg()
622 nfp_nsp_command_buf_dma(struct nfp_nsp *nsp, in nfp_nsp_command_buf_dma() argument
627 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.c308 struct nfp_nsp *nsp; in nfp_flash_update_common() local
311 nsp = nfp_nsp_open(pf->cpp); in nfp_flash_update_common()
312 if (IS_ERR(nsp)) { in nfp_flash_update_common()
313 err = PTR_ERR(nsp); in nfp_flash_update_common()
321 err = nfp_nsp_write_flash(nsp, fw); in nfp_flash_update_common()
328 nfp_nsp_close(nsp); in nfp_flash_update_common()
419 nfp_get_fw_policy_value(struct pci_dev *pdev, struct nfp_nsp *nsp, in nfp_get_fw_policy_value() argument
428 err = nfp_nsp_hwinfo_lookup_optional(nsp, hwinfo, sizeof(hwinfo), in nfp_get_fw_policy_value()
454 nfp_fw_load(struct pci_dev *pdev, struct nfp_pf *pf, struct nfp_nsp *nsp) in nfp_fw_load() argument
464 err = nfp_nsp_hwinfo_lookup_optional(nsp, hwinfo, sizeof(hwinfo), in nfp_fw_load()
[all …]
Dnfp_devlink.c42 struct nfp_nsp *nsp; in nfp_devlink_set_lanes() local
45 nsp = nfp_eth_config_start(pf->cpp, idx); in nfp_devlink_set_lanes()
46 if (IS_ERR(nsp)) in nfp_devlink_set_lanes()
47 return PTR_ERR(nsp); in nfp_devlink_set_lanes()
49 ret = __nfp_eth_set_split(nsp, lanes); in nfp_devlink_set_lanes()
51 nfp_eth_config_cleanup_end(nsp); in nfp_devlink_set_lanes()
55 ret = nfp_eth_config_commit_end(nsp); in nfp_devlink_set_lanes()
260 struct nfp_nsp *nsp; in nfp_devlink_info_get() local
290 nsp = nfp_nsp_open(pf->cpp); in nfp_devlink_info_get()
291 if (IS_ERR(nsp)) { in nfp_devlink_info_get()
[all …]
Dnfp_net_ethtool.c183 struct nfp_nsp *nsp; in nfp_net_get_nspinfo() local
188 nsp = nfp_nsp_open(app->cpp); in nfp_net_get_nspinfo()
189 if (IS_ERR(nsp)) in nfp_net_get_nspinfo()
193 nfp_nsp_get_abi_ver_major(nsp), in nfp_net_get_nspinfo()
194 nfp_nsp_get_abi_ver_minor(nsp)); in nfp_net_get_nspinfo()
196 nfp_nsp_close(nsp); in nfp_net_get_nspinfo()
340 struct nfp_nsp *nsp; in nfp_net_set_link_ksettings() local
353 nsp = nfp_eth_config_start(port->app->cpp, eth_port->index); in nfp_net_set_link_ksettings()
354 if (IS_ERR(nsp)) in nfp_net_set_link_ksettings()
355 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/
DMakefile16 obj-$(CONFIG_PINCTRL_NSP_GPIO) += pinctrl-nsp-gpio.o
18 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()
644 err = w1_process_command_root(cn, nsp->portid); in w1_cn_callback()
698 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/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.c800 struct fc_els_flogi *nsp; in zfcp_sysfs_adapter_diag_b2b_credit_show() local
823 nsp = (struct fc_els_flogi *)((unsigned long) in zfcp_sysfs_adapter_diag_b2b_credit_show()
829 be16_to_cpu(nsp->fl_csp.sp_bb_cred)); in zfcp_sysfs_adapter_diag_b2b_credit_show()
/drivers/md/
Ddm-log-userspace-transfer.c133 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