Lines Matching refs:pm_cfg
3416 struct qlcnic_pm_func_cfg *pm_cfg, int count) in validate_pm_config() argument
3424 src_pci_func = pm_cfg[i].pci_func; in validate_pm_config()
3425 dest_pci_func = pm_cfg[i].dest_npar; in validate_pm_config()
3453 struct qlcnic_pm_func_cfg *pm_cfg; in qlcnic_sysfs_write_pm_config() local
3462 pm_cfg = (struct qlcnic_pm_func_cfg *) buf; in qlcnic_sysfs_write_pm_config()
3464 ret = validate_pm_config(adapter, pm_cfg, count); in qlcnic_sysfs_write_pm_config()
3468 pci_func = pm_cfg[i].pci_func; in qlcnic_sysfs_write_pm_config()
3469 action = !!pm_cfg[i].action; in qlcnic_sysfs_write_pm_config()
3478 pci_func = pm_cfg[i].pci_func; in qlcnic_sysfs_write_pm_config()
3480 adapter->npars[pci_func].enable_pm = !!pm_cfg[i].action; in qlcnic_sysfs_write_pm_config()
3492 struct qlcnic_pm_func_cfg pm_cfg[QLCNIC_MAX_PCI_FUNC]; in qlcnic_sysfs_read_pm_config() local
3495 if (size != sizeof(pm_cfg)) in qlcnic_sysfs_read_pm_config()
3501 pm_cfg[i].action = adapter->npars[i].enable_pm; in qlcnic_sysfs_read_pm_config()
3502 pm_cfg[i].dest_npar = 0; in qlcnic_sysfs_read_pm_config()
3503 pm_cfg[i].pci_func = i; in qlcnic_sysfs_read_pm_config()
3505 memcpy(buf, &pm_cfg, size); in qlcnic_sysfs_read_pm_config()