id
stringlengths
4
63
text
stringlengths
153
8.81M
pcmcia_set_mode_8bit(9)
NAME pcmcia_set_mode_8bit - PCMCIA specific mode setup SYNOPSIS int pcmcia_set_mode_8bit (struct ata_link *link , struct ata_device **r_failed_dev ); ARGUMENTS link link r_failed_dev Return pointer for failed device DESCRIPTION For the simple emulated 8bit stuff the less we do the b...
pcmcia_setup_irq(9)
NAME pcmcia_setup_irq - determine IRQ to be used for device SYNOPSIS int pcmcia_setup_irq (struct pcmcia_device *p_dev ); ARGUMENTS p_dev the associated PCMCIA device DESCRIPTION locking note: must be called with ops_mutex locked. SEE ALSO Kernel file ./drivers/pcmcia/pcmcia_resource.c release_io_space(9),...
pcmcia_setup_isa_irq(9)
NAME pcmcia_setup_isa_irq - determine whether an ISA IRQ can be used SYNOPSIS int pcmcia_setup_isa_irq (struct pcmcia_device *p_dev , int type ); ARGUMENTS p_dev the associated PCMCIA device type IRQ type (flags) DESCRIPTION locking note: must be called with ops_mutex locked. SEE ALSO Kernel f...
pcmcia_unregister_driver(9)
NAME pcmcia_unregister_driver - unregister a PCMCIA driver with the bus core SYNOPSIS void pcmcia_unregister_driver (struct pcmcia_driver *driver ); ARGUMENTS driver the driver being unregistered SEE ALSO Kernel file ./drivers/pcmcia/ds.c new_id_store(9), pcmcia_register_driver(9), pcmcia_load_firmware(9) Apri...
pcmcia_unregister_socket(9)
NAME pcmcia_unregister_socket - remove a pcmcia socket device SYNOPSIS void pcmcia_unregister_socket (struct pcmcia_socket *socket ); ARGUMENTS socket the socket to unregister SEE ALSO Kernel file ./drivers/pcmcia/cs.c pcmcia_register_socket(9), pcmcia_parse_uevents(9) April 2026 ...
pcpu_addr_in_chunk(9)
NAME pcpu_addr_in_chunk - check if the address is served from this chunk SYNOPSIS bool pcpu_addr_in_chunk (struct pcpu_chunk *chunk , void *addr ); ARGUMENTS chunk chunk of interest addr percpu address RETURN True if the address is served from this chunk. SEE ALSO Kernel file ./mm/percpu.c p...
pcpu_alloc(9)
NAME pcpu_alloc - the percpu allocator SYNOPSIS void __percpu * pcpu_alloc (size_t size , size_t align , bool reserved , gfp_t gfp ); ARGUMENTS size size of area to allocate in bytes align alignment of area (max PAGE_SIZE) reserved allocate from the reserved chunk if available ...
pcpu_alloc_alloc_info(9)
NAME pcpu_alloc_alloc_info - allocate percpu allocation info SYNOPSIS struct pcpu_alloc_info * pcpu_alloc_alloc_info (int nr_groups , int nr_units ); ARGUMENTS nr_groups the number of groups nr_units the number of units DESCRIPTION Allocate ai which is large enough for nr_groups groups containing nr_u...
pcpu_alloc_area(9)
NAME pcpu_alloc_area - allocates an area from a pcpu_chunk SYNOPSIS int pcpu_alloc_area (struct pcpu_chunk *chunk , int alloc_bits , size_t align , int start ); ARGUMENTS chunk chunk of interest alloc_bits size of request in allocation units align alignment of area (max PAGE_SIZE) ...
pcpu_alloc_first_chunk(9)
NAME pcpu_alloc_first_chunk - creates chunks that serve the first chunk SYNOPSIS struct pcpu_chunk * pcpu_alloc_first_chunk (unsigned long tmp_addr , int map_size ); ARGUMENTS tmp_addr the start of the region served map_size size of the region served DESCRIPTION This is responsible for creating the c...
pcpu_alloc_pages(9)
NAME pcpu_alloc_pages - allocates pages for @chunk SYNOPSIS int pcpu_alloc_pages (struct pcpu_chunk *chunk , struct page **pages , int page_start , int page_end , gfp_t gfp ); ARGUMENTS chunk target chunk pages array to put the allocated pages into, indexed by pcpu_page_idx page_start pag...
pcpu_balance_free(9)
NAME pcpu_balance_free - manage the amount of free chunks SYNOPSIS void pcpu_balance_free (bool empty_only ); ARGUMENTS empty_only free chunks only if there are no populated pages DESCRIPTION If empty_only is false, reclaim all fully free chunks regardless of the number of populated pages. Otherwise, only reclaim ...
pcpu_balance_populated(9)
NAME pcpu_balance_populated - manage the amount of populated pages SYNOPSIS void pcpu_balance_populated (void ); ARGUMENTS void no arguments DESCRIPTION Maintain a certain amount of populated pages to satisfy atomic allocations. It is possible that this is called when physical memory is scarce causing OOM k...
pcpu_balance_workfn(9)
NAME pcpu_balance_workfn - manage the amount of free chunks and populated pages SYNOPSIS void pcpu_balance_workfn (struct work_struct *work ); ARGUMENTS work unused DESCRIPTION For each chunk type, manage the number of fully free chunks and the number of populated pages. An important thing to consider is whe...
pcpu_block_refresh_hint(9)
NAME pcpu_block_refresh_hint - SYNOPSIS void pcpu_block_refresh_hint (struct pcpu_chunk *chunk , int index ); ARGUMENTS chunk chunk of interest index index of the metadata block DESCRIPTION Scans over the block beginning at first_free and updates the block metadata accordingly. SEE ALSO Kernel ...
pcpu_block_update(9)
NAME pcpu_block_update - updates a block given a free area SYNOPSIS void pcpu_block_update (struct pcpu_block_md *block , int start , int end ); ARGUMENTS block block of interest start start offset in block end end offset in block DESCRIPTION Updates a block given a known free are...
pcpu_block_update_hint_alloc(9)
NAME pcpu_block_update_hint_alloc - update hint on allocation path SYNOPSIS void pcpu_block_update_hint_alloc (struct pcpu_chunk *chunk , int bit_off , int bits ); ARGUMENTS chunk chunk of interest bit_off chunk offset bits size of request DESCRIPTION Updates metadata for the allocat...
pcpu_block_update_hint_free(9)
NAME pcpu_block_update_hint_free - updates the block hints on the free path SYNOPSIS void pcpu_block_update_hint_free (struct pcpu_chunk *chunk , int bit_off , int bits ); ARGUMENTS chunk chunk of interest bit_off chunk offset bits size of request DESCRIPTION Updates metadata for the...
pcpu_build_alloc_info(9)
NAME pcpu_build_alloc_info - build alloc_info considering distances between CPUs SYNOPSIS struct pcpu_alloc_info * pcpu_build_alloc_info (size_t reserved_size , size_t dyn_size , size_t atom_size , pcpu_fc_cpu_distance_fn_t cpu_distance_fn ); ARGUMENTS reserved_size the size of reserved percpu area in bytes d...
pcpu_check_block_hint(9)
NAME pcpu_check_block_hint - check against the contig hint SYNOPSIS bool pcpu_check_block_hint (struct pcpu_block_md *block , int bits , size_t align ); ARGUMENTS block block of interest bits size of allocation align alignment of area (max PAGE_SIZE) DESCRIPTION Check to see if the...
pcpu_chunk_addr_search(9)
NAME pcpu_chunk_addr_search - determine chunk containing specified address SYNOPSIS struct pcpu_chunk * pcpu_chunk_addr_search (void *addr ); ARGUMENTS addr address for which the chunk needs to be determined. DESCRIPTION This is an internal function that handles all but static allocations. Static percpu addr...
pcpu_chunk_depopulated(9)
NAME pcpu_chunk_depopulated - post-depopulation bookkeeping SYNOPSIS void pcpu_chunk_depopulated (struct pcpu_chunk *chunk , int page_start , int page_end ); ARGUMENTS chunk pcpu_chunk which got depopulated page_start the start page page_end the end page DESCRIPTION Pages in [page_start,pag...
pcpu_chunk_map_bits(9)
NAME pcpu_chunk_map_bits - helper to convert nr_pages to size of bitmap SYNOPSIS int pcpu_chunk_map_bits (struct pcpu_chunk *chunk ); ARGUMENTS chunk chunk of interest DESCRIPTION This conversion is from the number of physical pages that the chunk serves to the number of bits in the bitmap. SEE ALSO Kernel fi...
pcpu_chunk_nr_blocks(9)
NAME pcpu_chunk_nr_blocks - converts nr_pages to # of md_blocks SYNOPSIS int pcpu_chunk_nr_blocks (struct pcpu_chunk *chunk ); ARGUMENTS chunk chunk of interest DESCRIPTION This conversion is from the number of physical pages that the chunk serves to the number of bitmap blocks used. SEE ALSO Kernel file ./mm...
pcpu_chunk_populated(9)
NAME pcpu_chunk_populated - post-population bookkeeping SYNOPSIS void pcpu_chunk_populated (struct pcpu_chunk *chunk , int page_start , int page_end ); ARGUMENTS chunk pcpu_chunk which got populated page_start the start page page_end the end page DESCRIPTION Pages in [page_start,page_end) h...
pcpu_chunk_refresh_hint(9)
NAME pcpu_chunk_refresh_hint - updates metadata about a chunk SYNOPSIS void pcpu_chunk_refresh_hint (struct pcpu_chunk *chunk , bool full_scan ); ARGUMENTS chunk chunk of interest full_scan if we should scan from the beginning DESCRIPTION Iterates over the metadata blocks to find the largest contig...
pcpu_chunk_relocate(9)
NAME pcpu_chunk_relocate - put chunk in the appropriate chunk slot SYNOPSIS void pcpu_chunk_relocate (struct pcpu_chunk *chunk , int oslot ); ARGUMENTS chunk chunk of interest oslot the previous slot it was on DESCRIPTION This function is called after an allocation or free changed chunk. New slo...
pcpu_depopulate_chunk(9)
NAME pcpu_depopulate_chunk - depopulate and unmap an area of a pcpu_chunk SYNOPSIS void pcpu_depopulate_chunk (struct pcpu_chunk *chunk , int page_start , int page_end ); ARGUMENTS chunk chunk to depopulate page_start the start page page_end the end page DESCRIPTION For each cpu, depopulate...
pcpu_dump_alloc_info(9)
NAME pcpu_dump_alloc_info - print out information about pcpu_alloc_info SYNOPSIS void pcpu_dump_alloc_info (const char *lvl , const struct pcpu_alloc_info *ai ); ARGUMENTS lvl loglevel ai allocation info to dump DESCRIPTION Print out information about ai using loglevel lvl. SEE ALSO Kernel ...
pcpu_embed_first_chunk(9)
NAME pcpu_embed_first_chunk - embed the first percpu chunk into bootmem SYNOPSIS int pcpu_embed_first_chunk (size_t reserved_size , size_t dyn_size , size_t atom_size , pcpu_fc_cpu_distance_fn_t cpu_distance_fn , pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn ); ARGUMENTS reserved_size the size of reserved percpu area in byte...
pcpu_find_block_fit(9)
NAME pcpu_find_block_fit - finds the block index to start searching SYNOPSIS int pcpu_find_block_fit (struct pcpu_chunk *chunk , int alloc_bits , size_t align , bool pop_only ); ARGUMENTS chunk chunk of interest alloc_bits size of request in allocation units align alignment of area (max P...
pcpu_free_alloc_info(9)
NAME pcpu_free_alloc_info - free percpu allocation info SYNOPSIS void pcpu_free_alloc_info (struct pcpu_alloc_info *ai ); ARGUMENTS ai pcpu_alloc_info to free DESCRIPTION Free ai which was allocated by pcpu_alloc_alloc_info. SEE ALSO Kernel file ./mm/percpu.c pcpu_addr_in_chunk(9), pcpu_check_block_hin...
pcpu_free_area(9)
NAME pcpu_free_area - frees the corresponding offset SYNOPSIS int pcpu_free_area (struct pcpu_chunk *chunk , int off ); ARGUMENTS chunk chunk of interest off addr offset into chunk DESCRIPTION This function determines the size of an allocation to free using the boundary bitmap and clears the al...
pcpu_free_pages(9)
NAME pcpu_free_pages - free pages which were allocated for @chunk SYNOPSIS void pcpu_free_pages (struct pcpu_chunk *chunk , struct page **pages , int page_start , int page_end ); ARGUMENTS chunk chunk pages were allocated for pages array of pages to be freed, indexed by pcpu_page_idx page_...
pcpu_free_vm_areas(9)
NAME pcpu_free_vm_areas - free vmalloc areas for percpu allocator SYNOPSIS void pcpu_free_vm_areas (struct vm_struct **vms , int nr_vms ); ARGUMENTS vms vm_struct pointer array returned by pcpu_get_vm_areas nr_vms the number of allocated areas DESCRIPTION Free vm_structs and the array allocated ...
pcpu_get_pages(9)
NAME pcpu_get_pages - get temp pages array SYNOPSIS struct page ** pcpu_get_pages (void ); ARGUMENTS void no arguments DESCRIPTION Returns pointer to array of pointers to struct page which can be indexed with pcpu_page_idx. Note that there is only one array and accesses should be serialized by pcpu_alloc_mut...
pcpu_get_vm_areas(9)
NAME pcpu_get_vm_areas - allocate vmalloc areas for percpu allocator SYNOPSIS struct vm_struct ** pcpu_get_vm_areas (const unsigned long *offsets , const size_t *sizes , int nr_vms , size_t align ); ARGUMENTS offsets array containing offset of each area sizes array containing size of each area ...
pcpu_is_populated(9)
NAME pcpu_is_populated - determines if the region is populated SYNOPSIS bool pcpu_is_populated (struct pcpu_chunk *chunk , int bit_off , int bits , int *next_off ); ARGUMENTS chunk chunk of interest bit_off chunk offset bits size of area next_off return value for the next o...
pcpu_map_pages(9)
NAME pcpu_map_pages - map pages into a pcpu_chunk SYNOPSIS int pcpu_map_pages (struct pcpu_chunk *chunk , struct page **pages , int page_start , int page_end ); ARGUMENTS chunk chunk of interest pages pages array containing pages to be mapped page_start page index of the first page to map...
pcpu_mem_free(9)
NAME pcpu_mem_free - free memory SYNOPSIS void pcpu_mem_free (void *ptr ); ARGUMENTS ptr memory to free DESCRIPTION Free ptr. ptr should have been allocated using pcpu_mem_zalloc. SEE ALSO Kernel file ./mm/percpu.c pcpu_addr_in_chunk(9), pcpu_check_block_hint(9), pcpu_next_md_free_region(9), pcpu_n...
pcpu_mem_zalloc(9)
NAME pcpu_mem_zalloc - allocate memory SYNOPSIS void * pcpu_mem_zalloc (size_t size , gfp_t gfp ); ARGUMENTS size bytes to allocate gfp allocation flags DESCRIPTION Allocate size bytes. If size is smaller than PAGE_SIZE, kzalloc is used; otherwise, the equivalent of vzalloc is used. This is ...
pcpu_need_numa(9)
NAME pcpu_need_numa - determine percpu allocation needs to consider NUMA SYNOPSIS bool pcpu_need_numa (void ); ARGUMENTS void no arguments DESCRIPTION If NUMA is not configured or there is only one NUMA node available, there is no reason to consider NUMA. This function determines whether percpu allocation sh...
pcpu_next_fit_region(9)
NAME pcpu_next_fit_region - finds fit areas for a given allocation request SYNOPSIS void pcpu_next_fit_region (struct pcpu_chunk *chunk , int alloc_bits , int align , int *bit_off , int *bits ); ARGUMENTS chunk chunk of interest alloc_bits size of allocation align alignment of area (max P...
pcpu_next_md_free_region(9)
NAME pcpu_next_md_free_region - finds the next hint free area SYNOPSIS void pcpu_next_md_free_region (struct pcpu_chunk *chunk , int *bit_off , int *bits ); ARGUMENTS chunk chunk of interest bit_off chunk offset bits size of free area DESCRIPTION Helper function for pcpu_for_each_md_...
pcpu_nr_pages_to_map_bits(9)
NAME pcpu_nr_pages_to_map_bits - converts the pages to size of bitmap SYNOPSIS int pcpu_nr_pages_to_map_bits (int pages ); ARGUMENTS pages number of physical pages DESCRIPTION This conversion is from physical pages to the number of bits required in the bitmap. SEE ALSO Kernel file ./mm/percpu-internal.h pcpu_...
pcpu_obj_full_size(9)
NAME pcpu_obj_full_size - helper to calculate size of each accounted object SYNOPSIS size_t pcpu_obj_full_size (size_t size ); ARGUMENTS size size of area to allocate in bytes DESCRIPTION For each accounted object there is an extra space which is used to store obj_cgroup membership if kmemcg is not disabled. ...
pcpu_page_first_chunk(9)
NAME pcpu_page_first_chunk - map the first chunk using PAGE_SIZE pages SYNOPSIS int pcpu_page_first_chunk (size_t reserved_size , pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn ); ARGUMENTS reserved_size the size of reserved percpu area in bytes cpu_to_nd_fn callback to convert cpu to it's node, opt...
pcpu_populate_chunk(9)
NAME pcpu_populate_chunk - populate and map an area of a pcpu_chunk SYNOPSIS int pcpu_populate_chunk (struct pcpu_chunk *chunk , int page_start , int page_end , gfp_t gfp ); ARGUMENTS chunk chunk of interest page_start the start page page_end the end page gfp allocation flags...
pcpu_post_map_flush(9)
NAME pcpu_post_map_flush - flush cache after mapping SYNOPSIS void pcpu_post_map_flush (struct pcpu_chunk *chunk , int page_start , int page_end ); ARGUMENTS chunk pcpu_chunk the regions to be flushed belong to page_start page index of the first page to be flushed page_end page index of the ...
pcpu_post_unmap_tlb_flush(9)
NAME pcpu_post_unmap_tlb_flush - flush TLB after unmapping SYNOPSIS void pcpu_post_unmap_tlb_flush (struct pcpu_chunk *chunk , int page_start , int page_end ); ARGUMENTS chunk pcpu_chunk the regions to be flushed belong to page_start page index of the first page to be flushed page_end page i...
pcpu_pre_unmap_flush(9)
NAME pcpu_pre_unmap_flush - flush cache prior to unmapping SYNOPSIS void pcpu_pre_unmap_flush (struct pcpu_chunk *chunk , int page_start , int page_end ); ARGUMENTS chunk chunk the regions to be flushed belongs to page_start page index of the first page to be flushed page_end page index of t...
pcpu_reclaim_populated(9)
NAME pcpu_reclaim_populated - scan over to_depopulate chunks and free empty pages SYNOPSIS void pcpu_reclaim_populated (void ); ARGUMENTS void no arguments DESCRIPTION Scan over chunks in the depopulate list and try to release unused populated pages back to the system. Depopulated chunks are sidelined to p...
pcpu_setup_first_chunk(9)
NAME pcpu_setup_first_chunk - initialize the first percpu chunk SYNOPSIS void pcpu_setup_first_chunk (const struct pcpu_alloc_info *ai , void *base_addr ); ARGUMENTS ai pcpu_alloc_info describing how to percpu area is shaped base_addr mapped address DESCRIPTION Initialize the first percpu chun...
pcpu_should_reclaim_chunk(9)
NAME pcpu_should_reclaim_chunk - determine if a chunk should go into reclaim SYNOPSIS bool pcpu_should_reclaim_chunk (struct pcpu_chunk *chunk ); ARGUMENTS chunk chunk of interest DESCRIPTION This is the entry point for percpu reclaim. If a chunk qualifies, it is then isolated and managed in separate lists at...
pcpu_unmap_pages(9)
NAME pcpu_unmap_pages - unmap pages out of a pcpu_chunk SYNOPSIS void pcpu_unmap_pages (struct pcpu_chunk *chunk , struct page **pages , int page_start , int page_end ); ARGUMENTS chunk chunk of interest pages pages array which can be used to pass information to free page_start page index...
pcs_add_function(9)
NAME pcs_add_function - adds a new function to the function list SYNOPSIS int pcs_add_function (struct pcs_device *pcs , struct pcs_function **fcn , const char *name , struct pcs_func_vals *vals , unsigned int nvals , const char **pgnames , unsigned int npgnames ); ARGUMENTS pcs pcs driver instance fc...
pcs_add_pin(9)
NAME pcs_add_pin - add a pin to the static per controller pin array SYNOPSIS int pcs_add_pin (struct pcs_device *pcs , unsigned int offset ); ARGUMENTS pcs pcs driver instance offset register offset from base SEE ALSO Kernel file ./drivers/pinctrl/pinctrl-single.c struct pcs_func_vals(9), stru...
pcs_allocate_pin_table(9)
NAME pcs_allocate_pin_table - adds all the pins for the pinctrl driver SYNOPSIS int pcs_allocate_pin_table (struct pcs_device *pcs ); ARGUMENTS pcs pcs driver instance DESCRIPTION In case of errors, resources are freed in pcs_free_resources. If your hardware needs holes in the address space, then just set u...
pcs_an_restart(9)
NAME pcs_an_restart - restart 802.3z BaseX autonegotiation SYNOPSIS void pcs_an_restart (struct phylink_pcs *pcs ); ARGUMENTS pcs a pointer to a struct phylink_pcs. DESCRIPTION When PCS ops are present, this overrides mac_an_restart in struct phylink_mac_ops. SEE ALSO Kernel file ./include/linux/phylink.h ...
pcs_config(9)
NAME pcs_config - Configure the PCS mode and advertisement SYNOPSIS int pcs_config (struct phylink_pcs *pcs , unsigned int neg_mode , phy_interface_t interface , const unsigned long *advertising , bool permit_pause_to_mac ); ARGUMENTS pcs a pointer to a struct phylink_pcs. neg_mode link negotiation...
pcs_disable(9)
NAME pcs_disable - disable the PCS. SYNOPSIS void pcs_disable (struct phylink_pcs *pcs ); ARGUMENTS pcs a pointer to a struct phylink_pcs. SEE ALSO Kernel file ./include/linux/phylink.h struct phylink_link_state(9), struct phylink_config(9), struct phylink_mac_ops(9), mac_get_caps(9), mac_select_pcs(9), mac...
pcs_disable_eee(9)
NAME pcs_disable_eee - Disable EEE at the PCS SYNOPSIS void pcs_disable_eee (struct phylink_pcs *pcs ); ARGUMENTS pcs a pointer to a struct phylink_pcs DESCRIPTION Optional method informing the PCS that EEE has been disabled at the MAC. SEE ALSO Kernel file ./include/linux/phylink.h struct phylink_link_sta...
pcs_dt_node_to_map(9)
NAME pcs_dt_node_to_map - allocates and parses pinctrl maps SYNOPSIS int pcs_dt_node_to_map (struct pinctrl_dev *pctldev , struct device_node *np_config , struct pinctrl_map **map , unsigned *num_maps ); ARGUMENTS pctldev pinctrl instance np_config device tree pinmux entry map array of m...
pcs_enable(9)
NAME pcs_enable - enable the PCS. SYNOPSIS int pcs_enable (struct phylink_pcs *pcs ); ARGUMENTS pcs a pointer to a struct phylink_pcs. SEE ALSO Kernel file ./include/linux/phylink.h struct phylink_link_state(9), struct phylink_config(9), struct phylink_mac_ops(9), mac_get_caps(9), mac_select_pcs(9), mac_pre...
pcs_enable_eee(9)
NAME pcs_enable_eee - Enable EEE at the PCS SYNOPSIS void pcs_enable_eee (struct phylink_pcs *pcs ); ARGUMENTS pcs a pointer to a struct phylink_pcs DESCRIPTION Optional method informing the PCS that EEE is about to be enabled at the MAC. SEE ALSO Kernel file ./include/linux/phylink.h struct phylink_link_s...
pcs_free_resources(9)
NAME pcs_free_resources - free memory used by this driver SYNOPSIS void pcs_free_resources (struct pcs_device *pcs ); ARGUMENTS pcs pcs driver instance SEE ALSO Kernel file ./drivers/pinctrl/pinctrl-single.c struct pcs_func_vals(9), struct pcs_conf_vals(9), struct pcs_conf_type(9), struct pcs_function(9), ...
pcs_get_pin_by_offset(9)
NAME pcs_get_pin_by_offset - get a pin index based on the register offset SYNOPSIS int pcs_get_pin_by_offset (struct pcs_device *pcs , unsigned offset ); ARGUMENTS pcs pcs driver instance offset register offset from the base DESCRIPTION Note that this is OK as long as the pins are in a static ar...
pcs_get_state(9)
NAME pcs_get_state - Read the current inband link state from the hardware SYNOPSIS void pcs_get_state (struct phylink_pcs *pcs , unsigned int neg_mode , struct phylink_link_state *state ); ARGUMENTS pcs a pointer to a struct phylink_pcs. neg_mode link negotiation mode (PHYLINK_PCS_NEG_xxx) ...
pcs_inband_caps(9)
NAME pcs_inband_caps - query PCS in-band capabilities for interface mode. SYNOPSIS unsigned int pcs_inband_caps (struct phylink_pcs *pcs , phy_interface_t interface ); ARGUMENTS pcs a pointer to a struct phylink_pcs. interface interface mode to be queried DESCRIPTION Returns zero if it is unkn...
pcs_irq_chain_handler(9)
NAME pcs_irq_chain_handler - handler for the dedicated chained interrupt case SYNOPSIS void pcs_irq_chain_handler (struct irq_desc *desc ); ARGUMENTS desc interrupt descriptor DESCRIPTION Use this if you have a separate interrupt for each pinctrl-single instance. SEE ALSO Kernel file ./drivers/pinctrl/pinc...
pcs_irq_free(9)
NAME pcs_irq_free - free interrupt SYNOPSIS void pcs_irq_free (struct pcs_device *pcs ); ARGUMENTS pcs pcs driver instance SEE ALSO Kernel file ./drivers/pinctrl/pinctrl-single.c struct pcs_func_vals(9), struct pcs_conf_vals(9), struct pcs_conf_type(9), struct pcs_function(9), struct pcs_gpiofunc_range(9),...
pcs_irq_handle(9)
NAME pcs_irq_handle - common interrupt handler SYNOPSIS int pcs_irq_handle (struct pcs_soc_data *pcs_soc ); ARGUMENTS pcs_soc SoC specific settings DESCRIPTION Note that this currently assumes we have one interrupt bit per mux register. This interrupt is typically used for wake-up events. For more complex inter...
pcs_irq_handler(9)
NAME pcs_irq_handler - handler for the shared interrupt case SYNOPSIS irqreturn_t pcs_irq_handler (int irq , void *d ); ARGUMENTS irq interrupt d data DESCRIPTION Use this for cases where multiple instances of pinctrl-single share a single interrupt like on omaps. SEE ALSO Kernel file ./...
pcs_irq_init_chained_handler(9)
NAME pcs_irq_init_chained_handler - set up a chained interrupt handler SYNOPSIS int pcs_irq_init_chained_handler (struct pcs_device *pcs , struct device_node *np ); ARGUMENTS pcs pcs driver instance np device node pointer SEE ALSO Kernel file ./drivers/pinctrl/pinctrl-single.c struct pcs_f...
pcs_irq_mask(9)
NAME pcs_irq_mask - mask pinctrl interrupt SYNOPSIS void pcs_irq_mask (struct irq_data *d ); ARGUMENTS d interrupt data SEE ALSO Kernel file ./drivers/pinctrl/pinctrl-single.c struct pcs_func_vals(9), struct pcs_conf_vals(9), struct pcs_conf_type(9), struct pcs_function(9), struct pcs_gpiofunc_range(9), ...
pcs_irq_set(9)
NAME pcs_irq_set - enables or disables an interrupt SYNOPSIS void pcs_irq_set (struct pcs_soc_data *pcs_soc , int irq , const bool enable ); ARGUMENTS pcs_soc SoC specific settings irq interrupt enable enable or disable the interrupt DESCRIPTION Note that this currently assumes one i...
pcs_irq_set_wake(9)
NAME pcs_irq_set_wake - toggle the suspend and resume wake up SYNOPSIS int pcs_irq_set_wake (struct irq_data *d , unsigned int state ); ARGUMENTS d interrupt data state wake-up state DESCRIPTION Note that this should be called only for suspend and resume. For runtime PM, the wake-up events s...
pcs_irq_unmask(9)
NAME pcs_irq_unmask - unmask pinctrl interrupt SYNOPSIS void pcs_irq_unmask (struct irq_data *d ); ARGUMENTS d interrupt data SEE ALSO Kernel file ./drivers/pinctrl/pinctrl-single.c struct pcs_func_vals(9), struct pcs_conf_vals(9), struct pcs_conf_type(9), struct pcs_function(9), struct pcs_gpiofunc_rang...
pcs_link_up(9)
NAME pcs_link_up - program the PCS for the resolved link configuration SYNOPSIS void pcs_link_up (struct phylink_pcs *pcs , unsigned int neg_mode , phy_interface_t interface , int speed , int duplex ); ARGUMENTS pcs a pointer to a struct phylink_pcs. neg_mode link negotiation mode (see below) ...
pcs_parse_one_pinctrl_entry(9)
NAME pcs_parse_one_pinctrl_entry - parses a device tree mux entry SYNOPSIS int pcs_parse_one_pinctrl_entry (struct pcs_device *pcs , struct device_node *np , struct pinctrl_map **map , unsigned *num_maps , const char **pgnames ); ARGUMENTS pcs pinctrl driver instance np device node of the mux...
pcs_pre_init(9)
NAME pcs_pre_init - Configure PCS components necessary for MAC initialization SYNOPSIS int pcs_pre_init (struct phylink_pcs *pcs ); ARGUMENTS pcs a pointer to a struct phylink_pcs. DESCRIPTION This function can be called by MAC drivers through the phylink_pcs_pre_init wrapper, before their hardware is initia...
pcs_quirk_missing_pinctrl_cells(9)
NAME pcs_quirk_missing_pinctrl_cells - handle legacy binding SYNOPSIS int pcs_quirk_missing_pinctrl_cells (struct pcs_device *pcs , struct device_node *np , int cells ); ARGUMENTS pcs pinctrl driver instance np device tree node cells number of cells DESCRIPTION Handle legacy bi...
pcs_validate(9)
NAME pcs_validate - validate the link configuration. SYNOPSIS int pcs_validate (struct phylink_pcs *pcs , unsigned long *supported , const struct phylink_link_state *state ); ARGUMENTS pcs a pointer to a struct phylink_pcs. supported ethtool bitmask for supported link modes. state a co...
pcxhr_init_rmh(9)
NAME pcxhr_init_rmh - initialize the RMH instance SYNOPSIS void pcxhr_init_rmh (struct pcxhr_rmh *rmh , int cmd ); ARGUMENTS rmh the rmh pointer to be initialized cmd the rmh command to be set SEE ALSO Kernel file ./sound/pci/pcxhr/pcxhr_core.c April 2026 ...
pd_to_blkg(9)
NAME pd_to_blkg - get blkg associated with policy private data SYNOPSIS struct blkcg_gq * pd_to_blkg (struct blkg_policy_data *pd ); ARGUMENTS pd policy private data of interest DESCRIPTION pd is policy private data. Determine the blkg it's associated with. SEE ALSO Kernel file ./block/blk-cgroup.h bio_...
pdc2026x_bmdma_start(9)
NAME pdc2026x_bmdma_start - DMA engine begin SYNOPSIS void pdc2026x_bmdma_start (struct ata_queued_cmd *qc ); ARGUMENTS qc ATA command DESCRIPTION In UDMA3 or higher we have to clock switch for the duration of the DMA transfer sequence. NOTE The host lock held by the libata layer protects us from two chann...
pdc2026x_bmdma_stop(9)
NAME pdc2026x_bmdma_stop - DMA engine stop SYNOPSIS void pdc2026x_bmdma_stop (struct ata_queued_cmd *qc ); ARGUMENTS qc ATA command DESCRIPTION After a DMA completes we need to put the clock back to 33MHz for PIO timings. NOTE The host lock held by the libata layer protects us from two channels both trying...
pdc2026x_check_atapi_dma(9)
NAME pdc2026x_check_atapi_dma - Check whether ATAPI DMA can be supported for this command SYNOPSIS int pdc2026x_check_atapi_dma (struct ata_queued_cmd *qc ); ARGUMENTS qc Metadata associated with taskfile to check DESCRIPTION Just say no - not supported on older Promise. LOCKING: None (inherited from calle...
pdc2026x_dev_config(9)
NAME pdc2026x_dev_config - device setup hook SYNOPSIS void pdc2026x_dev_config (struct ata_device *adev ); ARGUMENTS adev newly found device DESCRIPTION Perform chip specific early setup. We need to lock the transfer sizes to 8bit to avoid making the state engine on the 2026x cards barf. SEE ALSO Kernel file...
pdc2027x_cable_detect(9)
NAME pdc2027x_cable_detect - Probe host controller cable detect info SYNOPSIS int pdc2027x_cable_detect (struct ata_port *ap ); ARGUMENTS ap Port for which cable detect info is desired DESCRIPTION Read 80c cable indicator from Promise extended register. This register is latched when the system is reset. L...
pdc2027x_check_atapi_dma(9)
NAME pdc2027x_check_atapi_dma - Check whether ATAPI DMA can be supported for this command SYNOPSIS int pdc2027x_check_atapi_dma (struct ata_queued_cmd *qc ); ARGUMENTS qc Metadata associated with taskfile to check DESCRIPTION LOCKING: None (inherited from caller). RETURN 0 when ATAPI DMA can be used 1 othe...
pdc2027x_init_one(9)
NAME pdc2027x_init_one - PCI probe function Called when an instance of PCI adapter is inserted. This function checks whether the hardware is supported, initialize hardware and register an instance of ata_host to libata. (im‐ plements struct pci_driver.probe() ) SYNOPSIS int pdc2027x_init_one (struct pci_dev *pdev , ...
pdc2027x_mode_filter(9)
NAME pdc2027x_mode_filter - mode selection filter SYNOPSIS unsigned int pdc2027x_mode_filter (struct ata_device *adev , unsigned int mask ); ARGUMENTS adev ATA device mask list of modes proposed DESCRIPTION Block UDMA on devices that cause trouble with this controller. SEE ALSO Kernel file ....
pdc2027x_port_enabled(9)
NAME pdc2027x_port_enabled - Check PDC ATA control register to see whether the port is enabled. SYNOPSIS int pdc2027x_port_enabled (struct ata_port *ap ); ARGUMENTS ap Port to check SEE ALSO Kernel file ./drivers/ata/pata_pdc2027x.c port_mmio(9), dev_mmio(9), pdc2027x_cable_detect(9), pdc2027x_prerese...
pdc2027x_prereset(9)
NAME pdc2027x_prereset - prereset for PATA host controller SYNOPSIS int pdc2027x_prereset (struct ata_link *link , unsigned long deadline ); ARGUMENTS link Target link deadline deadline jiffies for the operation DESCRIPTION Probeinit including cable detection. LOCKING: None (inherited from caller)...
pdc2027x_set_dmamode(9)
NAME pdc2027x_set_dmamode - Initialize host controller PATA UDMA timings SYNOPSIS void pdc2027x_set_dmamode (struct ata_port *ap , struct ata_device *adev ); ARGUMENTS ap Port to configure adev um DESCRIPTION Set UDMA mode for device. LOCKING: None (inherited from caller). SEE ALSO Kernel ...
pdc2027x_set_mode(9)
NAME pdc2027x_set_mode - Set the timing registers back to correct values. SYNOPSIS int pdc2027x_set_mode (struct ata_link *link , struct ata_device **r_failed ); ARGUMENTS link link to configure r_failed Returned device for failure DESCRIPTION The pdc2027x hardware will look at "SET FEATURES" and c...
pdc2027x_set_piomode(9)
NAME pdc2027x_set_piomode - Initialize host controller PATA PIO timings SYNOPSIS void pdc2027x_set_piomode (struct ata_port *ap , struct ata_device *adev ); ARGUMENTS ap Port to configure adev um DESCRIPTION Set PIO mode for device. LOCKING: None (inherited from caller). SEE ALSO Kernel fi...
pdc202xx_configure_piomode(9)
NAME pdc202xx_configure_piomode - set chip PIO timing SYNOPSIS void pdc202xx_configure_piomode (struct ata_port *ap , struct ata_device *adev , int pio ); ARGUMENTS ap ATA interface adev ATA device pio PIO mode DESCRIPTION Called to do the PIO mode setup. Our timing registers ...
pdc202xx_set_dmamode(9)
NAME pdc202xx_set_dmamode - set DMA mode in chip SYNOPSIS void pdc202xx_set_dmamode (struct ata_port *ap , struct ata_device *adev ); ARGUMENTS ap ATA interface adev ATA device DESCRIPTION Load DMA cycle times into the chip ready for a DMA transfer to occur. SEE ALSO Kernel file ./drivers/at...