/Linux-v4.19/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_main.c | 77 nfp_net_get_mac_addr(struct nfp_pf *pf, struct net_device *netdev, in nfp_net_get_mac_addr() argument 104 static int nfp_net_pf_get_num_ports(struct nfp_pf *pf) in nfp_net_pf_get_num_ports() argument 106 return nfp_pf_rtsym_read_optional(pf, "nfd_cfg_pf%u_num_ports", 1); in nfp_net_pf_get_num_ports() 109 static int nfp_net_pf_get_app_id(struct nfp_pf *pf) in nfp_net_pf_get_app_id() argument 111 return nfp_pf_rtsym_read_optional(pf, "_pf%u_net_app_id", in nfp_net_pf_get_app_id() 115 static void nfp_net_pf_free_vnic(struct nfp_pf *pf, struct nfp_net *nn) in nfp_net_pf_free_vnic() argument 118 nfp_app_vnic_free(pf->app, nn); in nfp_net_pf_free_vnic() 121 pf->num_vnics--; in nfp_net_pf_free_vnic() 125 static void nfp_net_pf_free_vnics(struct nfp_pf *pf) in nfp_net_pf_free_vnics() argument 129 list_for_each_entry_safe(nn, next, &pf->vnics, vnic_list) in nfp_net_pf_free_vnics() [all …]
|
D | nfp_main.c | 79 int nfp_pf_rtsym_read_optional(struct nfp_pf *pf, const char *format, in nfp_pf_rtsym_read_optional() argument 86 snprintf(name, sizeof(name), format, nfp_cppcore_pcie_unit(pf->cpp)); in nfp_pf_rtsym_read_optional() 88 val = nfp_rtsym_read_le(pf->rtbl, name, &err); in nfp_pf_rtsym_read_optional() 92 nfp_err(pf->cpp, "Unable to read symbol %s\n", name); in nfp_pf_rtsym_read_optional() 100 nfp_pf_map_rtsym(struct nfp_pf *pf, const char *name, const char *sym_fmt, in nfp_pf_map_rtsym() argument 106 nfp_cppcore_pcie_unit(pf->cpp)); in nfp_pf_map_rtsym() 108 return nfp_rtsym_map(pf->rtbl, pf_symbol, name, min_size, area); in nfp_pf_map_rtsym() 112 int nfp_mbox_cmd(struct nfp_pf *pf, u32 cmd, void *in_data, u64 in_length, in nfp_mbox_cmd() argument 122 if (!pf->mbox) in nfp_mbox_cmd() 125 cpp_id = NFP_CPP_ISLAND_ID(pf->mbox->target, NFP_CPP_ACTION_RW, 0, in nfp_mbox_cmd() [all …]
|
D | nfp_shared_buf.c | 44 static u32 nfp_shared_buf_pool_unit(struct nfp_pf *pf, unsigned int sb) in nfp_shared_buf_pool_unit() argument 49 for (i = 0; i < pf->num_shared_bufs; i++) in nfp_shared_buf_pool_unit() 50 if (pf->shared_bufs[i].id == sb_id) in nfp_shared_buf_pool_unit() 51 return le32_to_cpu(pf->shared_bufs[i].pool_size_unit); in nfp_shared_buf_pool_unit() 57 int nfp_shared_buf_pool_get(struct nfp_pf *pf, unsigned int sb, u16 pool_index, in nfp_shared_buf_pool_get() argument 68 unit_size = nfp_shared_buf_pool_unit(pf, sb); in nfp_shared_buf_pool_get() 72 n = nfp_mbox_cmd(pf, NFP_MBOX_POOL_GET, &id, sizeof(id), in nfp_shared_buf_pool_get() 86 int nfp_shared_buf_pool_set(struct nfp_pf *pf, unsigned int sb, in nfp_shared_buf_pool_set() argument 99 unit_size = nfp_shared_buf_pool_unit(pf, sb); in nfp_shared_buf_pool_set() 104 return nfp_mbox_cmd(pf, NFP_MBOX_POOL_SET, &set_data, sizeof(set_data), in nfp_shared_buf_pool_set() [all …]
|
D | nfp_devlink.c | 58 nfp_devlink_fill_eth_port_from_id(struct nfp_pf *pf, unsigned int port_index, in nfp_devlink_fill_eth_port_from_id() argument 63 port = nfp_port_from_id(pf, NFP_PORT_PHYS_PORT, port_index); in nfp_devlink_fill_eth_port_from_id() 69 nfp_devlink_set_lanes(struct nfp_pf *pf, unsigned int idx, unsigned int lanes) in nfp_devlink_set_lanes() argument 74 nsp = nfp_eth_config_start(pf->cpp, idx); in nfp_devlink_set_lanes() 90 return nfp_net_refresh_port_table_sync(pf); in nfp_devlink_set_lanes() 97 struct nfp_pf *pf = devlink_priv(devlink); in nfp_devlink_port_split() local 104 mutex_lock(&pf->lock); in nfp_devlink_port_split() 107 ret = nfp_devlink_fill_eth_port_from_id(pf, port_index, ð_port); in nfp_devlink_port_split() 117 ret = nfp_devlink_set_lanes(pf, eth_port.index, in nfp_devlink_port_split() 120 mutex_unlock(&pf->lock); in nfp_devlink_port_split() [all …]
|
D | nfp_net_sriov.c | 52 if (!app || !app->pf->vfcfg_tbl2) in nfp_net_sriov_check() 55 cap_vf = readw(app->pf->vfcfg_tbl2 + NFP_NET_VF_CFG_MB_CAP); in nfp_net_sriov_check() 57 nfp_warn(app->pf->cpp, "ndo_set_vf_%s not supported\n", msg); in nfp_net_sriov_check() 61 if (vf < 0 || vf >= app->pf->num_vfs) { in nfp_net_sriov_check() 62 nfp_warn(app->pf->cpp, "invalid VF id %d\n", vf); in nfp_net_sriov_check() 76 writeb(vf, app->pf->vfcfg_tbl2 + NFP_NET_VF_CFG_MB_VF_NUM); in nfp_net_sriov_update() 77 writew(update, app->pf->vfcfg_tbl2 + NFP_NET_VF_CFG_MB_UPD); in nfp_net_sriov_update() 79 nn = list_first_entry(&app->pf->vnics, struct nfp_net, vnic_list); in nfp_net_sriov_update() 85 ret = readw(app->pf->vfcfg_tbl2 + NFP_NET_VF_CFG_MB_RET); in nfp_net_sriov_update() 87 nfp_warn(app->pf->cpp, in nfp_net_sriov_update() [all …]
|
D | nfp_hwmon.c | 69 struct nfp_pf *pf = dev_get_drvdata(dev); in nfp_hwmon_read() local 84 if (!(pf->nspi->sensor_mask & BIT(id))) in nfp_hwmon_read() 88 return nfp_hwmon_read_sensor(pf->cpp, id, val); in nfp_hwmon_read() 90 return nfp_hwmon_read_sensor(pf->cpp, id, val); in nfp_hwmon_read() 165 int nfp_hwmon_register(struct nfp_pf *pf) in nfp_hwmon_register() argument 170 if (!pf->nspi) { in nfp_hwmon_register() 171 nfp_warn(pf->cpp, "not registering HWMON (no NSP info)\n"); in nfp_hwmon_register() 174 if (!pf->nspi->sensor_mask) { in nfp_hwmon_register() 175 nfp_info(pf->cpp, in nfp_hwmon_register() 180 pf->hwmon_dev = hwmon_device_register_with_info(&pf->pdev->dev, "nfp", in nfp_hwmon_register() [all …]
|
D | nfp_main.h | 178 int nfp_net_pci_probe(struct nfp_pf *pf); 179 void nfp_net_pci_remove(struct nfp_pf *pf); 181 int nfp_hwmon_register(struct nfp_pf *pf); 182 void nfp_hwmon_unregister(struct nfp_pf *pf); 185 nfp_net_get_mac_addr(struct nfp_pf *pf, struct net_device *netdev, 190 int nfp_pf_rtsym_read_optional(struct nfp_pf *pf, const char *format, 193 nfp_pf_map_rtsym(struct nfp_pf *pf, const char *name, const char *sym_fmt, 195 int nfp_mbox_cmd(struct nfp_pf *pf, u32 cmd, void *in_data, u64 in_length, 204 s64 nfp_net_dump_calculate_size(struct nfp_pf *pf, struct nfp_dumpspec *spec, 206 int nfp_net_dump_populate_buffer(struct nfp_pf *pf, struct nfp_dumpspec *spec, [all …]
|
/Linux-v4.19/drivers/net/ethernet/intel/i40e/ |
D | i40e_ptp.c | 36 static void i40e_ptp_read(struct i40e_pf *pf, struct timespec64 *ts) in i40e_ptp_read() argument 38 struct i40e_hw *hw = &pf->hw; in i40e_ptp_read() 60 static void i40e_ptp_write(struct i40e_pf *pf, const struct timespec64 *ts) in i40e_ptp_write() argument 62 struct i40e_hw *hw = &pf->hw; in i40e_ptp_write() 99 struct i40e_pf *pf = container_of(ptp, struct i40e_pf, ptp_caps); in i40e_ptp_adjfreq() local 100 struct i40e_hw *hw = &pf->hw; in i40e_ptp_adjfreq() 126 adj *= READ_ONCE(pf->ptp_adj_mult); in i40e_ptp_adjfreq() 144 struct i40e_pf *pf = container_of(ptp, struct i40e_pf, ptp_caps); in i40e_ptp_adjtime() local 147 mutex_lock(&pf->tmreg_lock); in i40e_ptp_adjtime() 149 i40e_ptp_read(pf, &now); in i40e_ptp_adjtime() [all …]
|
D | i40e_debugfs.c | 18 static struct i40e_vsi *i40e_dbg_find_vsi(struct i40e_pf *pf, int seid) in i40e_dbg_find_vsi() argument 23 dev_info(&pf->pdev->dev, "%d: bad seid\n", seid); in i40e_dbg_find_vsi() 25 for (i = 0; i < pf->num_alloc_vsi; i++) in i40e_dbg_find_vsi() 26 if (pf->vsi[i] && (pf->vsi[i]->seid == seid)) in i40e_dbg_find_vsi() 27 return pf->vsi[i]; in i40e_dbg_find_vsi() 37 static struct i40e_veb *i40e_dbg_find_veb(struct i40e_pf *pf, int seid) in i40e_dbg_find_veb() argument 42 if (pf->veb[i] && pf->veb[i]->seid == seid) in i40e_dbg_find_veb() 43 return pf->veb[i]; in i40e_dbg_find_veb() 66 struct i40e_pf *pf = filp->private_data; in i40e_dbg_command_read() local 83 pf->vsi[pf->lan_vsi]->netdev->name, in i40e_dbg_command_read() [all …]
|
D | i40e_main.c | 37 static void i40e_handle_reset_warning(struct i40e_pf *pf, bool lock_acquired); 40 static int i40e_setup_pf_switch(struct i40e_pf *pf, bool reinit); 41 static int i40e_setup_misc_vector(struct i40e_pf *pf); 42 static void i40e_determine_queue_usage(struct i40e_pf *pf); 43 static int i40e_setup_pf_filter_control(struct i40e_pf *pf); 44 static void i40e_prep_for_reset(struct i40e_pf *pf, bool lock_acquired); 45 static int i40e_reset(struct i40e_pf *pf); 46 static void i40e_rebuild(struct i40e_pf *pf, bool reinit, bool lock_acquired); 47 static void i40e_fdir_sb_setup(struct i40e_pf *pf); 49 static int i40e_get_capabilities(struct i40e_pf *pf, [all …]
|
D | i40e_client.c | 86 struct i40e_pf *pf = vsi->back; in i40e_notify_client_of_vf_msg() local 87 struct i40e_client_instance *cdev = pf->cinst; in i40e_notify_client_of_vf_msg() 92 dev_dbg(&pf->pdev->dev, in i40e_notify_client_of_vf_msg() 97 dev_dbg(&pf->pdev->dev, "Client is not open, abort virtchnl_receive\n"); in i40e_notify_client_of_vf_msg() 112 struct i40e_pf *pf = vsi->back; in i40e_notify_client_of_l2_param_changes() local 113 struct i40e_client_instance *cdev = pf->cinst; in i40e_notify_client_of_l2_param_changes() 148 struct i40e_pf *pf = ldev->pf; in i40e_client_release_qvlist() local 156 wr32(&pf->hw, reg_idx, I40E_PFINT_LNKLSTN_FIRSTQ_INDX_MASK); in i40e_client_release_qvlist() 171 struct i40e_pf *pf = vsi->back; in i40e_notify_client_of_netdev_close() local 172 struct i40e_client_instance *cdev = pf->cinst; in i40e_notify_client_of_netdev_close() [all …]
|
D | i40e_virtchnl_pf.c | 18 static void i40e_vc_vf_broadcast(struct i40e_pf *pf, in i40e_vc_vf_broadcast() argument 23 struct i40e_hw *hw = &pf->hw; in i40e_vc_vf_broadcast() 24 struct i40e_vf *vf = pf->vf; in i40e_vc_vf_broadcast() 27 for (i = 0; i < pf->num_alloc_vfs; i++, vf++) { in i40e_vc_vf_broadcast() 51 struct i40e_pf *pf = vf->pf; in i40e_vc_notify_vf_link_state() local 52 struct i40e_hw *hw = &pf->hw; in i40e_vc_notify_vf_link_state() 53 struct i40e_link_status *ls = &pf->hw.phy.link_info; in i40e_vc_notify_vf_link_state() 78 void i40e_vc_notify_link_state(struct i40e_pf *pf) in i40e_vc_notify_link_state() argument 82 for (i = 0; i < pf->num_alloc_vfs; i++) in i40e_vc_notify_link_state() 83 i40e_vc_notify_vf_link_state(&pf->vf[i]); in i40e_vc_notify_link_state() [all …]
|
D | i40e_dcb_nl.c | 34 struct i40e_pf *pf = i40e_netdev_to_pf(dev); in i40e_dcbnl_ieee_getets() local 36 struct i40e_hw *hw = &pf->hw; in i40e_dcbnl_ieee_getets() 38 if (!(pf->dcbx_cap & DCB_CAP_DCBX_VER_IEEE)) in i40e_dcbnl_ieee_getets() 73 struct i40e_pf *pf = i40e_netdev_to_pf(dev); in i40e_dcbnl_ieee_getpfc() local 75 struct i40e_hw *hw = &pf->hw; in i40e_dcbnl_ieee_getpfc() 78 if (!(pf->dcbx_cap & DCB_CAP_DCBX_VER_IEEE)) in i40e_dcbnl_ieee_getpfc() 89 pfc->requests[i] = pf->stats.priority_xoff_tx[i]; in i40e_dcbnl_ieee_getpfc() 90 pfc->indications[i] = pf->stats.priority_xoff_rx[i]; in i40e_dcbnl_ieee_getpfc() 104 struct i40e_pf *pf = i40e_netdev_to_pf(dev); in i40e_dcbnl_getdcbx() local 106 return pf->dcbx_cap; in i40e_dcbnl_getdcbx() [all …]
|
D | i40e_ethtool.c | 258 static void i40e_partition_setting_complaint(struct i40e_pf *pf) in i40e_partition_setting_complaint() argument 260 dev_info(&pf->pdev->dev, in i40e_partition_setting_complaint() 270 static void i40e_phy_type_to_ethtool(struct i40e_pf *pf, in i40e_phy_type_to_ethtool() argument 273 struct i40e_link_status *hw_link_info = &pf->hw.phy.link_info; in i40e_phy_type_to_ethtool() 274 u64 phy_types = pf->hw.phy.phy_types; in i40e_phy_type_to_ethtool() 285 if (pf->hw_features & I40E_HW_100M_SGMII_CAPABLE) { in i40e_phy_type_to_ethtool() 364 !(pf->hw_features & I40E_HW_HAVE_CRT_RETIMER)) { in i40e_phy_type_to_ethtool() 372 !(pf->hw_features & I40E_HW_HAVE_CRT_RETIMER)) { in i40e_phy_type_to_ethtool() 482 struct i40e_pf *pf) in i40e_get_settings_link_up() argument 610 if (pf->hw_features & I40E_HW_100M_SGMII_CAPABLE) { in i40e_get_settings_link_up() [all …]
|
D | i40e.h | 57 #define i40e_default_queues_per_vmdq(pf) \ argument 58 (((pf)->hw_features & I40E_HW_RSS_AQ_CAPABLE) ? 4 : 1) 62 #define i40e_pf_get_max_q_per_tc(pf) \ argument 63 (((pf)->hw_features & I40E_HW_128_QP_RSS_CAPABLE) ? 128 : 64) 658 struct i40e_pf *pf; member 821 struct i40e_pf *pf; member 890 static inline int i40e_get_fd_cnt_all(struct i40e_pf *pf) in i40e_get_fd_cnt_all() argument 892 return pf->hw.fdir_shared_filter_count + pf->fdir_pf_filter_count; in i40e_get_fd_cnt_all() 903 static inline u64 i40e_read_fd_input_set(struct i40e_pf *pf, u16 addr) in i40e_read_fd_input_set() argument 907 val = i40e_read_rx_ctl(&pf->hw, I40E_PRTQF_FD_INSET(addr, 1)); in i40e_read_fd_input_set() [all …]
|
/Linux-v4.19/drivers/block/paride/ |
D | pf.c | 245 static int pf_identify(struct pf_unit *pf); 246 static void pf_lock(struct pf_unit *pf, int func); 247 static void pf_eject(struct pf_unit *pf); 282 struct pf_unit *pf; in pf_init_units() local 286 for (unit = 0, pf = units; unit < PF_UNITS; unit++, pf++) { in pf_init_units() 297 pf->disk = disk; in pf_init_units() 298 pf->pi = &pf->pia; in pf_init_units() 299 pf->media_status = PF_NM; in pf_init_units() 300 pf->drive = (*drives[unit])[D_SLV]; in pf_init_units() 301 pf->lun = (*drives[unit])[D_LUN]; in pf_init_units() [all …]
|
/Linux-v4.19/drivers/net/ethernet/intel/ice/ |
D | ice_main.c | 32 static void ice_pf_dis_all_vsi(struct ice_pf *pf); 33 static void ice_rebuild(struct ice_pf *pf); 36 static void ice_update_pf_stats(struct ice_pf *pf); 120 ice_get_res(struct ice_pf *pf, struct ice_res_tracker *res, u16 needed, u16 id) in ice_get_res() argument 124 if (!res || !pf) in ice_get_res() 128 dev_err(&pf->pdev->dev, in ice_get_res() 184 struct ice_pf *pf = vsi->back; in ice_add_mac_to_list() local 186 tmp = devm_kzalloc(&pf->pdev->dev, sizeof(*tmp), GFP_ATOMIC); in ice_add_mac_to_list() 287 struct ice_pf *pf = vsi->back; in ice_vsi_sync_fltr() local 288 struct ice_hw *hw = &pf->hw; in ice_vsi_sync_fltr() [all …]
|
/Linux-v4.19/net/lapb/ |
D | lapb_in.c | 49 lapb_dbg(1, "(%p) S0 RX SABM(%d)\n", lapb->dev, frame->pf); in lapb_state0_machine() 52 lapb->dev, frame->pf); in lapb_state0_machine() 53 lapb_send_control(lapb, LAPB_DM, frame->pf, in lapb_state0_machine() 57 lapb->dev, frame->pf); in lapb_state0_machine() 59 lapb_send_control(lapb, LAPB_UA, frame->pf, in lapb_state0_machine() 74 lapb_dbg(1, "(%p) S0 RX SABME(%d)\n", lapb->dev, frame->pf); in lapb_state0_machine() 77 lapb->dev, frame->pf); in lapb_state0_machine() 79 lapb_send_control(lapb, LAPB_UA, frame->pf, in lapb_state0_machine() 92 lapb->dev, frame->pf); in lapb_state0_machine() 93 lapb_send_control(lapb, LAPB_DM, frame->pf, in lapb_state0_machine() [all …]
|
/Linux-v4.19/tools/perf/util/ |
D | probe-finder.c | 538 static int convert_variable(Dwarf_Die *vr_die, struct probe_finder *pf) in convert_variable() argument 546 ret = convert_variable_location(vr_die, pf->addr, pf->fb_ops, in convert_variable() 547 &pf->sp_die, pf->machine, pf->tvar); in convert_variable() 552 pf->pvar->var, pf->pvar->var); in convert_variable() 555 else if (ret == 0 && pf->pvar->field) { in convert_variable() 556 ret = convert_variable_fields(vr_die, pf->pvar->var, in convert_variable() 557 pf->pvar->field, &pf->tvar->ref, in convert_variable() 562 ret = convert_variable_type(vr_die, pf->tvar, pf->pvar->type); in convert_variable() 568 static int find_variable(Dwarf_Die *sc_die, struct probe_finder *pf) in find_variable() argument 575 if (!is_c_varname(pf->pvar->var)) in find_variable() [all …]
|
/Linux-v4.19/net/ax25/ |
D | ax25_std_in.c | 42 static int ax25_std_state1_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int t… in ax25_std_state1_machine() argument 48 ax25_send_control(ax25, AX25_UA, pf, AX25_RESPONSE); in ax25_std_state1_machine() 54 ax25_send_control(ax25, AX25_UA, pf, AX25_RESPONSE); in ax25_std_state1_machine() 58 ax25_send_control(ax25, AX25_DM, pf, AX25_RESPONSE); in ax25_std_state1_machine() 62 if (pf) { in ax25_std_state1_machine() 84 if (pf) { in ax25_std_state1_machine() 106 static int ax25_std_state2_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int t… in ax25_std_state2_machine() argument 111 ax25_send_control(ax25, AX25_DM, pf, AX25_RESPONSE); in ax25_std_state2_machine() 115 ax25_send_control(ax25, AX25_UA, pf, AX25_RESPONSE); in ax25_std_state2_machine() 121 if (pf) in ax25_std_state2_machine() [all …]
|
D | ax25_ds_in.c | 35 static int ax25_ds_state1_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int ty… in ax25_ds_state1_machine() argument 41 ax25_send_control(ax25, AX25_UA, pf, AX25_RESPONSE); in ax25_ds_state1_machine() 47 ax25_send_control(ax25, AX25_UA, pf, AX25_RESPONSE); in ax25_ds_state1_machine() 51 ax25_send_control(ax25, AX25_DM, pf, AX25_RESPONSE); in ax25_ds_state1_machine() 85 if (pf) in ax25_ds_state1_machine() 90 if (pf) in ax25_ds_state1_machine() 103 static int ax25_ds_state2_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int pf, int ty… in ax25_ds_state2_machine() argument 113 ax25_send_control(ax25, AX25_UA, pf, AX25_RESPONSE); in ax25_ds_state2_machine() 120 if (pf) { in ax25_ds_state2_machine() 130 if (pf) { in ax25_ds_state2_machine() [all …]
|
/Linux-v4.19/net/netfilter/ |
D | nf_sockopt.c | 32 if (ops->pf == reg->pf in nf_register_sockopt() 62 static struct nf_sockopt_ops *nf_sockopt_find(struct sock *sk, u_int8_t pf, in nf_sockopt_find() argument 69 if (ops->pf == pf) { in nf_sockopt_find() 93 static int nf_sockopt(struct sock *sk, u_int8_t pf, int val, in nf_sockopt() argument 99 ops = nf_sockopt_find(sk, pf, val, get); in nf_sockopt() 112 int nf_setsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, in nf_setsockopt() argument 115 return nf_sockopt(sk, pf, val, opt, &len, 0); in nf_setsockopt() 119 int nf_getsockopt(struct sock *sk, u_int8_t pf, int val, char __user *opt, in nf_getsockopt() argument 122 return nf_sockopt(sk, pf, val, opt, len, 1); in nf_getsockopt() 127 static int compat_nf_sockopt(struct sock *sk, u_int8_t pf, int val, in compat_nf_sockopt() argument [all …]
|
D | nf_log.c | 27 static struct nf_logger *__find_logger(int pf, const char *str_logger) in __find_logger() argument 33 if (loggers[pf][i] == NULL) in __find_logger() 36 log = nft_log_dereference(loggers[pf][i]); in __find_logger() 44 int nf_log_set(struct net *net, u_int8_t pf, const struct nf_logger *logger) in nf_log_set() argument 48 if (pf == NFPROTO_UNSPEC || pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_set() 52 log = nft_log_dereference(net->nf.nf_loggers[pf]); in nf_log_set() 54 rcu_assign_pointer(net->nf.nf_loggers[pf], logger); in nf_log_set() 78 int nf_log_register(u_int8_t pf, struct nf_logger *logger) in nf_log_register() argument 83 if (pf >= ARRAY_SIZE(init_net.nf.nf_loggers)) in nf_log_register() 88 if (pf == NFPROTO_UNSPEC) { in nf_log_register() [all …]
|
/Linux-v4.19/drivers/iio/ |
D | industrialio-trigger.c | 246 struct iio_poll_func *pf) in iio_trigger_attach_poll_func() argument 253 __module_get(pf->indio_dev->driver_module); in iio_trigger_attach_poll_func() 256 pf->irq = iio_trigger_get_irq(trig); in iio_trigger_attach_poll_func() 257 if (pf->irq < 0) in iio_trigger_attach_poll_func() 261 ret = request_threaded_irq(pf->irq, pf->h, pf->thread, in iio_trigger_attach_poll_func() 262 pf->type, pf->name, in iio_trigger_attach_poll_func() 263 pf); in iio_trigger_attach_poll_func() 279 if (pf->indio_dev->dev.parent == trig->dev.parent) in iio_trigger_attach_poll_func() 285 free_irq(pf->irq, pf); in iio_trigger_attach_poll_func() 287 iio_trigger_put_irq(trig, pf->irq); in iio_trigger_attach_poll_func() [all …]
|
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/nic/ |
D | main.c | 41 struct nfp_pf *pf = app->pf; in nfp_nic_init() local 43 if (pf->eth_tbl && pf->max_data_vnics != pf->eth_tbl->count) { in nfp_nic_init() 44 nfp_err(pf->cpp, "ETH entries don't match vNICs (%d vs %d)\n", in nfp_nic_init() 45 pf->max_data_vnics, pf->eth_tbl->count); in nfp_nic_init()
|