Lines Matching refs:msix_info
41 entries = kcalloc(total, sizeof(*dd->msix_info.msix_entries), in msix_initialize()
48 dd->msix_info.msix_entries = entries; in msix_initialize()
49 spin_lock_init(&dd->msix_info.msix_lock); in msix_initialize()
50 bitmap_zero(dd->msix_info.in_use_msix, total); in msix_initialize()
51 dd->msix_info.max_requested = total; in msix_initialize()
84 spin_lock(&dd->msix_info.msix_lock); in msix_request_irq()
85 nr = find_first_zero_bit(dd->msix_info.in_use_msix, in msix_request_irq()
86 dd->msix_info.max_requested); in msix_request_irq()
87 if (nr < dd->msix_info.max_requested) in msix_request_irq()
88 __set_bit(nr, dd->msix_info.in_use_msix); in msix_request_irq()
89 spin_unlock(&dd->msix_info.msix_lock); in msix_request_irq()
91 if (nr == dd->msix_info.max_requested) in msix_request_irq()
103 spin_lock(&dd->msix_info.msix_lock); in msix_request_irq()
104 __clear_bit(nr, dd->msix_info.in_use_msix); in msix_request_irq()
105 spin_unlock(&dd->msix_info.msix_lock); in msix_request_irq()
113 me = &dd->msix_info.msix_entries[nr]; in msix_request_irq()
290 if (msix_intr >= dd->msix_info.max_requested) in msix_free_irq()
293 me = &dd->msix_info.msix_entries[msix_intr]; in msix_free_irq()
303 spin_lock(&dd->msix_info.msix_lock); in msix_free_irq()
304 __clear_bit(msix_intr, dd->msix_info.in_use_msix); in msix_free_irq()
305 spin_unlock(&dd->msix_info.msix_lock); in msix_free_irq()
317 struct hfi1_msix_entry *me = dd->msix_info.msix_entries; in msix_clean_up_interrupts()
320 for (i = 0; i < dd->msix_info.max_requested; i++, me++) in msix_clean_up_interrupts()
324 kfree(dd->msix_info.msix_entries); in msix_clean_up_interrupts()
325 dd->msix_info.msix_entries = NULL; in msix_clean_up_interrupts()
326 dd->msix_info.max_requested = 0; in msix_clean_up_interrupts()
344 me = &dd->msix_info.msix_entries[rcd->msix_intr]; in msix_netdev_synchronize_irq()