Home
last modified time | relevance | path

Searched refs:lifespan (Results 1 - 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/drivers/infiniband/core/
H A Dsysfs.c807 if (time_is_after_eq_jiffies(stats->timestamp + stats->lifespan)) in update_hw_stats()
877 msecs = jiffies_to_msecs(stats->lifespan); in show_stats_lifespan()
912 stats->lifespan = jiffies; in set_stats_lifespan()
981 * Two extra attribue elements here, one for the lifespan entry and in setup_hw_stats()
1009 hsag->attrs[i] = alloc_hsa_lifespan("lifespan", port_num); in setup_hw_stats()
/kernel/linux/linux-6.6/drivers/infiniband/core/
H A Dsysfs.c815 if (time_is_after_eq_jiffies(stats->timestamp + stats->lifespan)) in update_hw_stats()
859 msecs = jiffies_to_msecs(stats->lifespan); in show_stats_lifespan()
882 stats->lifespan = jiffies; in set_stats_lifespan()
903 * Two extra attribue elements here, one for the lifespan entry and in alloc_hw_stats_device()
977 attr->attr.attr.name = "lifespan"; in ib_setup_device_attrs()
1009 * Two extra attribue elements here, one for the lifespan entry and in alloc_hw_stats_port()
1074 attr->attr.attr.name = "lifespan"; in setup_hw_port_stats()
H A Dverbs.c3055 * @lifespan: milliseconds between updates
3059 unsigned long lifespan) in rdma_alloc_hw_stats_struct()
3074 stats->lifespan = msecs_to_jiffies(lifespan); in rdma_alloc_hw_stats_struct()
3057 rdma_alloc_hw_stats_struct( const struct rdma_stat_desc *descs, int num_counters, unsigned long lifespan) rdma_alloc_hw_stats_struct() argument
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/
H A Di40iw_verbs.c2538 unsigned long lifespan = RDMA_HW_STATS_DEFAULT_LIFESPAN; in i40iw_alloc_hw_stats() local
2545 * PFs get the default update lifespan, but VFs only update once in i40iw_alloc_hw_stats()
2549 lifespan = 1000; in i40iw_alloc_hw_stats()
2551 lifespan); in i40iw_alloc_hw_stats()
/kernel/linux/linux-5.10/include/rdma/
H A Dib_verbs.h547 * @lock - Mutex to protect parallel write access to lifespan and values
551 * @lifespan - Used by the core code to determine how old the counters
565 struct mutex lock; /* Protect lifespan and values[] */
567 unsigned long lifespan; member
579 * @lifespan - How many milliseconds between updates
583 unsigned long lifespan) in rdma_alloc_hw_stats_struct()
593 stats->lifespan = msecs_to_jiffies(lifespan); in rdma_alloc_hw_stats_struct()
2511 * core when the device is removed. A lifespan of -1 in the return
2512 * struct tells the core to set a default lifespan
581 rdma_alloc_hw_stats_struct( const char * const *names, int num_counters, unsigned long lifespan) rdma_alloc_hw_stats_struct() argument
[all...]
/kernel/linux/linux-6.6/include/rdma/
H A Dib_verbs.h584 * @lock - Mutex to protect parallel write access to lifespan and values
588 * @lifespan - Used by the core code to determine how old the counters
604 struct mutex lock; /* Protect lifespan and values[] */
606 unsigned long lifespan; member
617 unsigned long lifespan);
2573 * the sysfs core when the device is removed. A lifespan of -1 in the
2574 * return struct tells the core to set a default lifespan.
2587 * and prevent further calls for lifespan milliseconds)
/kernel/linux/linux-6.6/drivers/infiniband/hw/irdma/
H A Dverbs.c3880 unsigned long lifespan = RDMA_HW_STATS_DEFAULT_LIFESPAN; in irdma_alloc_hw_port_stats() local
3883 lifespan); in irdma_alloc_hw_port_stats()

Completed in 32 milliseconds