Function report |
Source Code:kernel\irq\generic-chip.c |
Create Date:2022-07-28 10:12:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:q_map_generic_chip - Map a generic chip for an irq domain
Proto:int irq_map_generic_chip(struct irq_domain *d, unsigned int virq, irq_hw_number_t hw_irq)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct irq_domain * | d | |
unsigned int | virq | |
irq_hw_number_t | hw_irq |
380 | data = q_domain_get_irq_data - Get irq_data associated with @virq and @domain*@domain: domain to match*@virq: IRQ number to get irq_data |
388 | gc = __irq_get_domain_generic_chip(d, hw_irq) |
392 | idx = hw_irq % irqs_per_chip |
394 | If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Return -Operation is not supported |
397 | If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then Return -EBUSY |
400 | ct = chip_types |
404 | If Not installed Then |
405 | raw_spin_lock_irqsave( & lock, flags) |
406 | irq_gc_init_mask_cache(gc, gc_flags) |
407 | raw_spin_unlock_irqrestore( & lock, flags) |
413 | If gc_flags & IRQ_GC_INIT_NESTED_LOCK Then irq_set_lockdep_class(virq, & Separate lockdep classes for interrupt chip which can nest irq_desc* lock and request mutex., & irq_nested_request_class) |
417 | If irq_calc_mask Then irq_calc_mask(data) |
424 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |