函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\irq\generic-chip.c Create Date:2022-07-27 11:13:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:q_map_generic_chip - Map a generic chip for an irq domain

函数原型:int irq_map_generic_chip(struct irq_domain *d, unsigned int virq, irq_hw_number_t hw_irq)

返回类型:int

参数:

类型参数名称
struct irq_domain *d
unsigned intvirq
irq_hw_number_thw_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
381  dgc等于gc
388  gc等于__irq_get_domain_generic_chip(d, hw_irq)
389  如果是错误则返回:错误
392  idx等于hw_irq取模irqs_per_chip
394  如果st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则返回:负Operation is not supported
397  如果st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则返回:负EBUSY
400  ct等于chip_types
401  chip等于chip
404  如果非installed
405  raw_spin_lock_irqsave( & lock, flags)
406  irq_gc_init_mask_cache(gc, gc_flags)
407  raw_spin_unlock_irqrestore( & lock, flags)
411  设置内存位
413  如果gc_flags按位与IRQ_GC_INIT_NESTED_LOCKirq_set_lockdep_class(virq, & Separate lockdep classes for interrupt chip which can nest irq_desc* lock and request mutex., & irq_nested_request_class)
417  如果irq_calc_maskirq_calc_mask(data)
419  否则访问寄存器掩码等于1左移idx
422  q_domain_set_info - Set the complete data for a @virq in @domain*@domain: Interrupt domain to match*@virq: IRQ number*@hwirq: The hardware interrupt number*@chip: The associated interrupt chip*@chip_data: The associated interrupt chip data*@handler: The
423  irq_modify_status(virq, irq_flags_to_clear, irq_flags_to_set)
424  返回:0