Lines Matching refs:pf

106 static int ice_find_module_by_dentry(struct ice_pf *pf, struct dentry *d)
113 if (d == pf->ice_debugfs_pf_fwlog_modules[i]) {
131 struct ice_pf *pf;
135 pf = s->private;
137 module = ice_find_module_by_dentry(pf, dentry);
139 dev_info(ice_pf_to_dev(pf), "unknown module\n");
143 ice_fwlog_print_module_cfg(&pf->hw, module, s);
164 struct ice_pf *pf = file_inode(filp)->i_private;
166 struct device *dev = ice_pf_to_dev(pf);
178 module = ice_find_module_by_dentry(pf, dentry);
195 ice_pf_fwlog_update_module(pf, log_level, module);
203 ice_pf_fwlog_update_module(pf, log_level, i);
228 struct ice_pf *pf = filp->private_data;
229 struct ice_hw *hw = &pf->hw;
249 struct ice_pf *pf = filp->private_data;
250 struct device *dev = ice_pf_to_dev(pf);
251 struct ice_hw *hw = &pf->hw;
303 struct ice_pf *pf = filp->private_data;
304 struct ice_hw *hw = &pf->hw;
325 struct ice_pf *pf = filp->private_data;
326 struct ice_hw *hw = &pf->hw;
398 struct ice_pf *pf = filp->private_data;
399 struct ice_hw *hw = &pf->hw;
420 struct ice_pf *pf = filp->private_data;
421 struct device *dev = ice_pf_to_dev(pf);
422 struct ice_hw *hw = &pf->hw;
487 struct ice_pf *pf = filp->private_data;
488 struct ice_hw *hw = &pf->hw;
536 struct ice_pf *pf = filp->private_data;
537 struct device *dev = ice_pf_to_dev(pf);
538 struct ice_hw *hw = &pf->hw;
582 * @pf: the ice that is starting up
584 void ice_debugfs_fwlog_init(struct ice_pf *pf)
586 const char *name = pci_name(pf->pdev);
592 if (pf->hw.bus.func)
603 pf->ice_debugfs_pf = debugfs_create_dir(name, ice_debugfs_root);
604 if (IS_ERR(pf->ice_debugfs_pf))
607 pf->ice_debugfs_pf_fwlog = debugfs_create_dir("fwlog",
608 pf->ice_debugfs_pf);
609 if (IS_ERR(pf->ice_debugfs_pf))
613 pf->ice_debugfs_pf_fwlog);
619 0600, fw_modules_dir, pf,
626 pf->ice_debugfs_pf_fwlog, pf,
629 pf->ice_debugfs_pf_fwlog_modules = fw_modules;
631 debugfs_create_file("enable", 0600, pf->ice_debugfs_pf_fwlog,
632 pf, &ice_debugfs_enable_fops);
634 debugfs_create_file("log_size", 0600, pf->ice_debugfs_pf_fwlog,
635 pf, &ice_debugfs_log_size_fops);
637 debugfs_create_file("data", 0600, pf->ice_debugfs_pf_fwlog,
638 pf, &ice_debugfs_data_fops);
643 debugfs_remove_recursive(pf->ice_debugfs_pf_fwlog);
649 * @pf: pointer to the PF struct
651 void ice_debugfs_pf_deinit(struct ice_pf *pf)
653 debugfs_remove_recursive(pf->ice_debugfs_pf);
654 pf->ice_debugfs_pf = NULL;