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
230 return count; in numa_node_store()
270 const char *buf, size_t count) in msi_bus_store() argument
291 return count; in msi_bus_store()
301 return count; in msi_bus_store()
306 size_t count) in bus_rescan_store() argument
320 return count; in bus_rescan_store()
340 size_t count) in dev_rescan_store() argument
353 return count; in dev_rescan_store()
360 const char *buf, size_t count) in remove_store() argument
369 return count; in remove_store()
377 const char *buf, size_t count) in dev_bus_rescan_store() argument
393 return count; in dev_bus_rescan_store()
400 const char *buf, size_t count) in d3cold_allowed_store() argument
411 return count; in d3cold_allowed_store()
466 const char *buf, size_t count) in sriov_numvfs_store() argument
480 return count; /* no change */ in sriov_numvfs_store()
493 return count; in sriov_numvfs_store()
511 return count; in sriov_numvfs_store()
522 const char *buf, size_t count) in driver_override_store() argument
528 if (count >= (PAGE_SIZE - 1)) in driver_override_store()
531 driver_override = kstrndup(buf, count, GFP_KERNEL); in driver_override_store()
548 return count; in driver_override_store()
631 loff_t off, size_t count) in pci_read_config() argument
647 if (off + count > size) { in pci_read_config()
649 count = size; in pci_read_config()
651 size = count; in pci_read_config()
703 return count; in pci_read_config()
708 loff_t off, size_t count) in pci_write_config() argument
712 unsigned int size = count; in pci_write_config()
718 if (off + count > dev->cfg_size) { in pci_write_config()
720 count = size; in pci_write_config()
765 return count; in pci_write_config()
770 loff_t off, size_t count) in read_vpd_attr() argument
776 count = 0; in read_vpd_attr()
777 else if (count > bin_attr->size - off) in read_vpd_attr()
778 count = bin_attr->size - off; in read_vpd_attr()
780 return pci_read_vpd(dev, off, count, buf); in read_vpd_attr()
785 loff_t off, size_t count) in write_vpd_attr() argument
791 count = 0; in write_vpd_attr()
792 else if (count > bin_attr->size - off) in write_vpd_attr()
793 count = bin_attr->size - off; in write_vpd_attr()
795 return pci_write_vpd(dev, off, count, buf); in write_vpd_attr()
813 loff_t off, size_t count) in pci_read_legacy_io() argument
819 if (count != 1 && count != 2 && count != 4) in pci_read_legacy_io()
822 return pci_legacy_read(bus, off, (u32 *)buf, count); in pci_read_legacy_io()
839 loff_t off, size_t count) in pci_write_legacy_io() argument
845 if (count != 1 && count != 2 && count != 4) in pci_write_legacy_io()
848 return pci_legacy_write(bus, off, *(u32 *)buf, count); in pci_write_legacy_io()
1055 loff_t off, size_t count, bool write) in pci_resource_io() argument
1074 if (port + count - 1 > pci_resource_end(pdev, i)) in pci_resource_io()
1077 switch (count) { in pci_resource_io()
1102 loff_t off, size_t count) in pci_read_resource_io() argument
1104 return pci_resource_io(filp, kobj, attr, buf, off, count, false); in pci_read_resource_io()
1109 loff_t off, size_t count) in pci_write_resource_io() argument
1111 return pci_resource_io(filp, kobj, attr, buf, off, count, true); in pci_write_resource_io()
1226 loff_t off, size_t count) in pci_write_rom() argument
1230 if ((off == 0) && (*buf == '0') && (count == 2)) in pci_write_rom()
1235 return count; in pci_write_rom()
1252 loff_t off, size_t count) in pci_read_rom() argument
1266 count = 0; in pci_read_rom()
1268 if (off + count > size) in pci_read_rom()
1269 count = size - off; in pci_read_rom()
1271 memcpy_fromio(buf, rom + off, count); in pci_read_rom()
1275 return count; in pci_read_rom()
1299 const char *buf, size_t count) in reset_store() argument
1315 return count; in reset_store()