Lines Matching defs:weight
2871 * irqpoll_weight_show() - presents the current IRQ poll weight for the host
2873 * @attr: Device attribute representing the IRQ poll weight.
2875 * weight in ASCII.
2877 * An IRQ poll weight of 0 indicates polling is disabled.
2891 * irqpoll_weight_store() - sets the current IRQ poll weight for the host
2893 * @attr: Device attribute representing the IRQ poll weight.
2895 * weight in ASCII.
2898 * An IRQ poll weight of 0 indicates polling is disabled.
2910 u32 weight;
2913 rc = kstrtouint(buf, 10, &weight);
2917 if (weight > 256) {
2919 "Invalid IRQ poll weight. It must be 256 or less.\n");
2923 if (weight == afu->irqpoll_weight) {
2925 "Current IRQ poll weight has the same weight.\n");
2937 afu->irqpoll_weight = weight;
2939 if (weight > 0) {
2943 irq_poll_init(&hwq->irqpoll, weight, cxlflash_irqpoll);