Lines Matching refs:count
66 const char *buf, size_t count) in broken_parity_status_store() argument
76 return count; in broken_parity_status_store()
170 const char *buf, size_t count) in enable_store() argument
191 return result < 0 ? result : count; in enable_store()
207 size_t count) in numa_node_store() argument
227 return count; in numa_node_store()
267 const char *buf, size_t count) in msi_bus_store() argument
288 return count; in msi_bus_store()
298 return count; in msi_bus_store()
303 size_t count) in bus_rescan_store() argument
317 return count; in bus_rescan_store()
337 size_t count) in dev_rescan_store() argument
350 return count; in dev_rescan_store()
357 const char *buf, size_t count) in remove_store() argument
366 return count; in remove_store()
374 const char *buf, size_t count) in dev_bus_rescan_store() argument
390 return count; in dev_bus_rescan_store()
397 const char *buf, size_t count) in d3cold_allowed_store() argument
408 return count; in d3cold_allowed_store()
463 const char *buf, size_t count) in sriov_numvfs_store() argument
477 return count; /* no change */ in sriov_numvfs_store()
490 return count; in sriov_numvfs_store()
508 return count; in sriov_numvfs_store()
519 const char *buf, size_t count) in driver_override_store() argument
525 if (count >= (PAGE_SIZE - 1)) in driver_override_store()
528 driver_override = kstrndup(buf, count, GFP_KERNEL); in driver_override_store()
545 return count; in driver_override_store()
628 loff_t off, size_t count) in pci_read_config() argument
644 if (off + count > size) { in pci_read_config()
646 count = size; in pci_read_config()
648 size = count; in pci_read_config()
700 return count; in pci_read_config()
705 loff_t off, size_t count) in pci_write_config() argument
709 unsigned int size = count; in pci_write_config()
715 if (off + count > dev->cfg_size) { in pci_write_config()
717 count = size; in pci_write_config()
762 return count; in pci_write_config()
767 loff_t off, size_t count) in read_vpd_attr() argument
773 count = 0; in read_vpd_attr()
774 else if (count > bin_attr->size - off) in read_vpd_attr()
775 count = bin_attr->size - off; in read_vpd_attr()
777 return pci_read_vpd(dev, off, count, buf); in read_vpd_attr()
782 loff_t off, size_t count) in write_vpd_attr() argument
788 count = 0; in write_vpd_attr()
789 else if (count > bin_attr->size - off) in write_vpd_attr()
790 count = bin_attr->size - off; in write_vpd_attr()
792 return pci_write_vpd(dev, off, count, buf); in write_vpd_attr()
810 loff_t off, size_t count) in pci_read_legacy_io() argument
816 if (count != 1 && count != 2 && count != 4) in pci_read_legacy_io()
819 return pci_legacy_read(bus, off, (u32 *)buf, count); in pci_read_legacy_io()
836 loff_t off, size_t count) in pci_write_legacy_io() argument
842 if (count != 1 && count != 2 && count != 4) in pci_write_legacy_io()
845 return pci_legacy_write(bus, off, *(u32 *)buf, count); in pci_write_legacy_io()
1052 loff_t off, size_t count, bool write) in pci_resource_io() argument
1071 if (port + count - 1 > pci_resource_end(pdev, i)) in pci_resource_io()
1074 switch (count) { in pci_resource_io()
1099 loff_t off, size_t count) in pci_read_resource_io() argument
1101 return pci_resource_io(filp, kobj, attr, buf, off, count, false); in pci_read_resource_io()
1106 loff_t off, size_t count) in pci_write_resource_io() argument
1108 return pci_resource_io(filp, kobj, attr, buf, off, count, true); in pci_write_resource_io()
1223 loff_t off, size_t count) in pci_write_rom() argument
1227 if ((off == 0) && (*buf == '0') && (count == 2)) in pci_write_rom()
1232 return count; in pci_write_rom()
1249 loff_t off, size_t count) in pci_read_rom() argument
1263 count = 0; in pci_read_rom()
1265 if (off + count > size) in pci_read_rom()
1266 count = size - off; in pci_read_rom()
1268 memcpy_fromio(buf, rom + off, count); in pci_read_rom()
1272 return count; in pci_read_rom()
1296 const char *buf, size_t count) in reset_store() argument
1312 return count; in reset_store()