id
stringlengths
4
63
text
stringlengths
153
8.81M
kstat_irqs_usr(9)
NAME kstat_irqs_usr - Get the statistics for an interrupt from thread context SYNOPSIS unsigned int kstat_irqs_usr (unsigned int irq ); ARGUMENTS irq The interrupt number DESCRIPTION Returns the sum of interrupt counts on all cpus since boot for irq. It uses rcu to protect the access since a concurrent remo...
kstats(1)
NAME kstats - show statistical FMS algorithm votes for an ivs dump and a specified WEP key SYNOPSIS kstats <ivs file> <104-bit key> DESCRIPTION kstats is a tool designed to show the FMS algorithm votes for an ivs dump (initialization vectors) with a specified WEP key. The ivs dump can be get by using the combination ...
kstrdup(9)
NAME kstrdup - allocate space for and copy an existing string SYNOPSIS char * kstrdup (const char *s , gfp_t gfp ); ARGUMENTS s the string to duplicate gfp the GFP mask used in the kmalloc call when allocating memory RETURN newly allocated copy of s or NULL in case of error SEE ALSO Kernel...
kstrdup_const(9)
NAME kstrdup_const - conditionally duplicate an existing const string SYNOPSIS const char * kstrdup_const (const char *s , gfp_t gfp ); ARGUMENTS s the string to duplicate gfp the GFP mask used in the kmalloc call when allocating memory NOTE Strings allocated by kstrdup_const should be free...
kstrndup(9)
NAME kstrndup - allocate space for and copy an existing string SYNOPSIS char * kstrndup (const char *s , size_t max , gfp_t gfp ); ARGUMENTS s the string to duplicate max read at most max chars from s gfp the GFP mask used in the kmalloc call when allocating memory NOTE Use ...
kstrtobool(9)
NAME kstrtobool - convert common user inputs into boolean values SYNOPSIS int kstrtobool (const char *s , bool *res ); ARGUMENTS s input string res result DESCRIPTION This routine returns 0 iff the first character is one of 'EeYyTt1DdNnFf0', or [oO][NnFf] for "on" and "off". Otherwise it wi...
kstrtoint(9)
NAME kstrtoint - convert a string to an int SYNOPSIS int kstrtoint (const char *s , unsigned int base , int *res ); ARGUMENTS s The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a min...
kstrtol(9)
NAME kstrtol - convert a string to a long SYNOPSIS int kstrtol (const char *s , unsigned int base , long *res ); ARGUMENTS s The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign or a minus ...
kstrtoll(9)
NAME kstrtoll - convert a string to a long long SYNOPSIS int kstrtoll (const char *s , unsigned int base , long long *res ); ARGUMENTS s The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a plus sign...
kstrtouint(9)
NAME kstrtouint - convert a string to an unsigned int SYNOPSIS int kstrtouint (const char *s , unsigned int base , unsigned int *res ); ARGUMENTS s The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be ...
kstrtoul(9)
NAME kstrtoul - convert a string to an unsigned long SYNOPSIS int kstrtoul (const char *s , unsigned int base , unsigned long *res ); ARGUMENTS s The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character may also be a ...
kstrtoull(9)
NAME kstrtoull - convert a string to an unsigned long long SYNOPSIS int kstrtoull (const char *s , unsigned int base , unsigned long long *res ); ARGUMENTS s The start of the string. The string must be null-terminated, and may also include a single newline before its terminating null. The first character ma...
ksz879x_get_loopback(9)
NAME ksz879x_get_loopback - KSZ879x specific function to get loopback configuration status for a specific port SYNOPSIS int ksz879x_get_loopback (struct ksz_device *dev , u16 port , u16 *val ); ARGUMENTS dev Pointer to the device structure port Port number to query val Pointer t...
ksz879x_set_loopback(9)
NAME ksz879x_set_loopback - KSZ879x specific function to set loopback mode for a specific port SYNOPSIS int ksz879x_set_loopback (struct ksz_device *dev , u16 port , u16 val ); ARGUMENTS dev Pointer to the device structure. port Port number to modify. val Value indicating whethe...
ksz88x3_drive_strength_write(9)
NAME ksz88x3_drive_strength_write - Set the drive strength configuration for KSZ8863 compatible chip variants. SYNOPSIS int ksz88x3_drive_strength_write (struct ksz_device *dev , struct ksz_driver_strength_prop *props , int num_props ); ARGUMENTS dev ksz device props Array of drive strength prop...
ksz88x3_tc_ets_add(9)
NAME ksz88x3_tc_ets_add - Configure ETS (Enhanced Transmission Selection) for a port on KSZ88x3 switch SYNOPSIS int ksz88x3_tc_ets_add (struct ksz_device *dev , int port , struct tc_ets_qopt_offload_replace_params *p ); ARGUMENTS dev Pointer to the KSZ switch device structure port Port number t...
ksz88x3_tc_ets_del(9)
NAME ksz88x3_tc_ets_del - Reset ETS (Enhanced Transmission Selection) config for a port on KSZ88x3 switch SYNOPSIS int ksz88x3_tc_ets_del (struct ksz_device *dev , int port ); ARGUMENTS dev Pointer to the KSZ switch device structure port Port number to reset DESCRIPTION The KSZ88x3 supports o...
ksz8_cpu_port_link_up(9)
NAME ksz8_cpu_port_link_up - Configures the CPU port of the switch. SYNOPSIS void ksz8_cpu_port_link_up (struct ksz_device *dev , int speed , int duplex , bool tx_pause , bool rx_pause ); ARGUMENTS dev The KSZ device instance. speed The desired link speed. duplex The desired duplex ...
ksz8_ind_read8(9)
NAME ksz8_ind_read8 - EEE/ACL/PME indirect register read SYNOPSIS int ksz8_ind_read8 (struct ksz_device *dev , u8 table , u16 addr , u8 *val ); ARGUMENTS dev The device structure. table Function & table select, register 110. addr Indirect access control, register 111. val ...
ksz8_ind_write8(9)
NAME ksz8_ind_write8 - EEE/ACL/PME indirect register write SYNOPSIS int ksz8_ind_write8 (struct ksz_device *dev , u8 table , u16 addr , u8 data ); ARGUMENTS dev The device structure. table Function & table select, register 110. addr Indirect access control, register 111. d...
ksz8_phy_port_link_up(9)
NAME ksz8_phy_port_link_up - Configures ports with integrated PHYs SYNOPSIS void ksz8_phy_port_link_up (struct ksz_device *dev , int port , int duplex , bool tx_pause , bool rx_pause ); ARGUMENTS dev The KSZ device instance. port The port number to configure. duplex The desired dup...
ksz8_r_phy_bmcr(9)
NAME ksz8_r_phy_bmcr - Translates and reads from the SMI interface to a MIIM PHY Basic mode control register (Reg. 0). SYNOPSIS int ksz8_r_phy_bmcr (struct ksz_device *dev , u16 port , u16 *val ); ARGUMENTS dev The KSZ device instance. port The port number to be read. val The va...
ksz8_r_phy_ctrl(9)
NAME ksz8_r_phy_ctrl - Translates and reads from the SMI interface to a MIIM PHY Control register (Reg. 31). SYNOPSIS int ksz8_r_phy_ctrl (struct ksz_device *dev , int port , u16 *val ); ARGUMENTS dev The KSZ device instance. port The port number to be read. val The value read f...
ksz8_w_phy_bmcr(9)
NAME ksz8_w_phy_bmcr - Translates and writes to the SMI interface from a MIIM PHY Basic mode control register (Reg. 0). SYNOPSIS int ksz8_w_phy_bmcr (struct ksz_device *dev , u16 port , u16 val ); ARGUMENTS dev The KSZ device instance. port The port number to be configured. val ...
ksz8_w_phy_ctrl(9)
NAME ksz8_w_phy_ctrl - Translates and writes to the SMI interface from a MIIM PHY Control register (Reg. 31). SYNOPSIS int ksz8_w_phy_ctrl (struct ksz_device *dev , int port , u16 val ); ARGUMENTS dev The KSZ device instance. port The port number to be configured. val The regist...
ksz9477_acl_action_rule_cfg(9)
NAME ksz9477_acl_action_rule_cfg - Set action for an ACL entry SYNOPSIS void ksz9477_acl_action_rule_cfg (u8 *entry , bool force_prio , u8 prio_val ); ARGUMENTS entry Pointer to the ACL entry force_prio If true, force the priority value prio_val Priority value DESCRIPTION This function se...
ksz9477_acl_entry_write(9)
NAME ksz9477_acl_entry_write - Writes an ACL entry to a given port at the specified index. SYNOPSIS int ksz9477_acl_entry_write (struct ksz_device *dev , int port , u8 *entry , int idx ); ARGUMENTS dev The ksz_device instance. port The port number to write the ACL entry to. entry ...
ksz9477_acl_get_cont_entr(9)
NAME ksz9477_acl_get_cont_entr - Get count of contiguous ACL entries and validate the matching rules. SYNOPSIS int ksz9477_acl_get_cont_entr (struct ksz_device *dev , int port , int index ); ARGUMENTS dev Pointer to the KSZ9477 device structure. port Port number. index Index of th...
ksz9477_acl_get_init_entry(9)
NAME ksz9477_acl_get_init_entry - Get a new uninitialized entry for a specified port on a ksz_device. SYNOPSIS struct ksz9477_acl_entry * ksz9477_acl_get_init_entry (struct ksz_device *dev , int port , unsigned long cookie , u32 prio ); ARGUMENTS dev The ksz_device instance. port The port numbe...
ksz9477_acl_is_valid_matching_rule(9)
NAME ksz9477_acl_is_valid_matching_rule - Check if an ACL entry contains a valid matching rule. SYNOPSIS bool ksz9477_acl_is_valid_matching_rule (u8 *entry ); ARGUMENTS entry Pointer to ACL entry buffer DESCRIPTION This function checks if the given ACL entry buffer contains a valid matching rule by inspecting ...
ksz9477_acl_match_process_l2(9)
NAME ksz9477_acl_match_process_l2 - Configure Layer 2 ACL matching rules and processing rules. SYNOPSIS void ksz9477_acl_match_process_l2 (struct ksz_device *dev , int port , u16 ethtype , u8 *src_mac , u8 *dst_mac , unsigned long cookie , u32 prio ); ARGUMENTS dev Pointer to the ksz_device. port ...
ksz9477_acl_matching_rule_cfg_l2(9)
NAME ksz9477_acl_matching_rule_cfg_l2 - Configure an ACL filtering entry to match L2 types of Ethernet frames SYNOPSIS void ksz9477_acl_matching_rule_cfg_l2 (u8 *entry , u16 ethertype , u8 *eth_addr , bool is_src ); ARGUMENTS entry Pointer to ACL entry buffer ethertype Ethertype value eth_addr...
ksz9477_acl_move_entries(9)
NAME ksz9477_acl_move_entries - Move a block of contiguous ACL entries from a source to a destination index. SYNOPSIS int ksz9477_acl_move_entries (struct ksz_device *dev , int port , u16 src_idx , u16 dst_idx ); ARGUMENTS dev Pointer to the KSZ9477 device structure. port Port number. s...
ksz9477_acl_port_disable(9)
NAME ksz9477_acl_port_disable - Disables ACL functionality on a given port. SYNOPSIS int ksz9477_acl_port_disable (struct ksz_device *dev , int port ); ARGUMENTS dev The ksz_device instance. port The port number on which to disable ACL functionality. DESCRIPTION This function disables ACL func...
ksz9477_acl_port_enable(9)
NAME ksz9477_acl_port_enable - Enables ACL functionality on a given port. SYNOPSIS int ksz9477_acl_port_enable (struct ksz_device *dev , int port ); ARGUMENTS dev The ksz_device instance. port The port number on which to enable ACL functionality. DESCRIPTION This function enables ACL function...
ksz9477_acl_processing_rule_add_match(9)
NAME ksz9477_acl_processing_rule_add_match - Add a matching rule to the rule set SYNOPSIS void ksz9477_acl_processing_rule_add_match (u8 *entry , u8 match_idx ); ARGUMENTS entry Pointer to the ACL entry match_idx Index of the matching rule to be added DESCRIPTION This function adds a matching rule t...
ksz9477_acl_processing_rule_set_action(9)
NAME ksz9477_acl_processing_rule_set_action - Set the action for the processing rule set. SYNOPSIS void ksz9477_acl_processing_rule_set_action (u8 *entry , u8 action_idx ); ARGUMENTS entry Pointer to the ACL entry action_idx Index of the action to be applied DESCRIPTION This function sets the action...
ksz9477_acl_remove_entries(9)
NAME ksz9477_acl_remove_entries - Remove ACL entries with a given cookie from a specified ksz9477_acl_entries structure. SYNOPSIS void ksz9477_acl_remove_entries (struct ksz_device *dev , int port , struct ksz9477_acl_entries *acles , unsigned long cookie ); ARGUMENTS dev The ksz_device instance. port...
ksz9477_acl_set_reg(9)
NAME ksz9477_acl_set_reg - Set entry[16] and entry[17] depending on the updated entry[] SYNOPSIS void ksz9477_acl_set_reg (u8 *entry , enum ksz9477_acl_port_access reg , u8 value ); ARGUMENTS entry An array containing the entries reg The register of the entry that needs to be updated val...
ksz9477_acl_update_linkage(9)
NAME ksz9477_acl_update_linkage - Update the RuleSet linkage for an ACL entry after a move operation. SYNOPSIS int ksz9477_acl_update_linkage (struct ksz_device *dev , u8 *entry , u16 old_idx , u16 new_idx ); ARGUMENTS dev Pointer to the ksz_device. entry Pointer to the ACL entry array. ...
ksz9477_acl_wait_ready(9)
NAME ksz9477_acl_wait_ready - Waits for the ACL operation to complete on a given port. SYNOPSIS int ksz9477_acl_wait_ready (struct ksz_device *dev , int port ); ARGUMENTS dev The ksz_device instance. port The port number to wait for. DESCRIPTION This function checks if the ACL write or read op...
ksz9477_acl_write_list(9)
NAME ksz9477_acl_write_list - Write a list of ACL entries to a given port. SYNOPSIS int ksz9477_acl_write_list (struct ksz_device *dev , int port ); ARGUMENTS dev The ksz_device instance. port The port number on which to write ACL entries. DESCRIPTION This function enables ACL functionality on...
ksz9477_cls_flower_add(9)
NAME ksz9477_cls_flower_add - Add a flow classification rule for a specified port on a ksz_device. SYNOPSIS int ksz9477_cls_flower_add (struct dsa_switch *ds , int port , struct flow_cls_offload *cls , bool ingress ); ARGUMENTS ds The DSA switch instance. port The port number to add the flow c...
ksz9477_cls_flower_del(9)
NAME ksz9477_cls_flower_del - Remove a flow classification rule for a specified port on a ksz_device. SYNOPSIS int ksz9477_cls_flower_del (struct dsa_switch *ds , int port , struct flow_cls_offload *cls , bool ingress ); ARGUMENTS ds The DSA switch instance. port The port number to remove the ...
ksz9477_drive_strength_write(9)
NAME ksz9477_drive_strength_write - Set the drive strength for specific KSZ9477 chip variants. SYNOPSIS int ksz9477_drive_strength_write (struct ksz_device *dev , struct ksz_driver_strength_prop *props , int num_props ); ARGUMENTS dev ksz device props Array of drive strength properties to be app...
ksz9477_dump_acl(9)
NAME ksz9477_dump_acl - Print ACL entries SYNOPSIS void ksz9477_dump_acl (struct ksz_device *dev , struct ksz9477_acl_entry *acle ); ARGUMENTS dev Pointer to the device structure. acle Pointer to the ACL entry array. SEE ALSO Kernel file ./drivers/net/dsa/microchip/ksz9477_acl.c ksz9477_dump...
ksz9477_dump_acl_index(9)
NAME ksz9477_dump_acl_index - Print the ACL entry at the specified index SYNOPSIS int ksz9477_dump_acl_index (struct ksz_device *dev , struct ksz9477_acl_entry *acle , int index ); ARGUMENTS dev Pointer to the ksz9477 device structure. acle Pointer to the ACL entry array. index Th...
ksz9477_flower_parse_action(9)
NAME ksz9477_flower_parse_action - Parse flow rule actions for a specified port on a ksz_device. SYNOPSIS int ksz9477_flower_parse_action (struct ksz_device *dev , int port , struct netlink_ext_ack *extack , struct flow_cls_offload *cls , int entry_idx ); ARGUMENTS dev The ksz_device instance. port ...
ksz9477_flower_parse_key(9)
NAME ksz9477_flower_parse_key - Parse flow rule keys for a specified port on a ksz_device. SYNOPSIS int ksz9477_flower_parse_key (struct ksz_device *dev , int port , struct netlink_ext_ack *extack , struct flow_rule *rule , unsigned long cookie , u32 prio ); ARGUMENTS dev The ksz_device instance. port...
ksz9477_flower_parse_key_l2(9)
NAME ksz9477_flower_parse_key_l2 - Parse Layer 2 key from flow rule and configure ACL entries accordingly. SYNOPSIS int ksz9477_flower_parse_key_l2 (struct ksz_device *dev , int port , struct netlink_ext_ack *extack , struct flow_rule *rule , unsigned long cookie , u32 prio ); ARGUMENTS dev Pointer to the ksz...
ksz9477_get_next_block_start(9)
NAME ksz9477_get_next_block_start - Identify the starting index of the next ACL block. SYNOPSIS int ksz9477_get_next_block_start (struct ksz_device *dev , int port , int start ); ARGUMENTS dev Pointer to the device structure. port The port number on which the ACL entries are being checked. ...
ksz9477_move_entries_downwards(9)
NAME ksz9477_move_entries_downwards - Move a range of ACL entries downwards in the list. SYNOPSIS int ksz9477_move_entries_downwards (struct ksz_device *dev , struct ksz9477_acl_entries *acles , u16 start_idx , u16 num_entries_to_move , u16 end_idx ); ARGUMENTS dev Pointer to the KSZ device structure. ...
ksz9477_move_entries_upwards(9)
NAME ksz9477_move_entries_upwards - Move a range of ACL entries upwards in the list. SYNOPSIS int ksz9477_move_entries_upwards (struct ksz_device *dev , struct ksz9477_acl_entries *acles , u16 start_idx , u16 num_entries_to_move , u16 target_idx ); ARGUMENTS dev Pointer to the KSZ device structure. ac...
ksz9477_port_acl_free(9)
NAME ksz9477_port_acl_free - Free the ACL resources for a specified port on a ksz device. SYNOPSIS void ksz9477_port_acl_free (struct ksz_device *dev , int port ); ARGUMENTS dev The ksz_device instance. port The port number to initialize the ACL for. DESCRIPTION This disables the ACL for the s...
ksz9477_port_acl_init(9)
NAME ksz9477_port_acl_init - Initialize the ACL for a specified port on a ksz device. SYNOPSIS int ksz9477_port_acl_init (struct ksz_device *dev , int port ); ARGUMENTS dev The ksz_device instance. port The port number to initialize the ACL for. DESCRIPTION This function allocates memory for...
ksz9477_sort_acl_entr_no_back(9)
NAME ksz9477_sort_acl_entr_no_back - Sort ACL entries for a given port based on priority without backing up entries. SYNOPSIS int ksz9477_sort_acl_entr_no_back (struct ksz_device *dev , int port ); ARGUMENTS dev Pointer to the device structure. port The port number whose ACL entries need to be ...
ksz9477_sort_acl_entries(9)
NAME ksz9477_sort_acl_entries - Sort the ACL entries for a given port. SYNOPSIS int ksz9477_sort_acl_entries (struct ksz_device *dev , int port ); ARGUMENTS dev Pointer to the KSZ device. port Port number. DESCRIPTION This function sorts the Access Control List (ACL) entries for a specified po...
ksz9477_swap_acl_blocks(9)
NAME ksz9477_swap_acl_blocks - Swap two ACL blocks SYNOPSIS int ksz9477_swap_acl_blocks (struct ksz_device *dev , int port , int i , int j ); ARGUMENTS dev Pointer to the device structure. port The port number on which the ACL blocks are to be swapped. i The starting index of ...
ksz9477_validate_and_get_src_count(9)
NAME ksz9477_validate_and_get_src_count - Validate source and destination indices and determine the source entry count. SYNOPSIS int ksz9477_validate_and_get_src_count (struct ksz_device *dev , int port , int src_idx , int dst_idx , int *src_count , int *dst_count ); ARGUMENTS dev Pointer to the KSZ device st...
ksz_alloc_desc(9)
NAME ksz_alloc_desc - allocate hardware descriptors SYNOPSIS int ksz_alloc_desc (struct dev_info *adapter ); ARGUMENTS adapter Adapter information structure. DESCRIPTION This local function allocates hardware descriptors for receiving and transmitting. Return 0 if successful. SEE ALSO Kernel file ./drivers/n...
ksz_alloc_mem(9)
NAME ksz_alloc_mem - allocate memory for hardware descriptors SYNOPSIS int ksz_alloc_mem (struct dev_info *adapter ); ARGUMENTS adapter Adapter information structure. DESCRIPTION This function allocates memory for use by hardware descriptors for receiving and transmitting. Return 0 if successful. SEE ALSO Kern...
ksz_alloc_soft_desc(9)
NAME ksz_alloc_soft_desc - allocate software descriptors SYNOPSIS int ksz_alloc_soft_desc (struct ksz_desc_info *desc_info , int transmit ); ARGUMENTS desc_info Descriptor information structure. transmit Indication that descriptors are for transmit. DESCRIPTION This local function allocates software des...
ksz_apptrust_error(9)
NAME ksz_apptrust_error - Prints an error message for an invalid apptrust selector SYNOPSIS void ksz_apptrust_error (struct ksz_device *dev ); ARGUMENTS dev Pointer to the KSZ switch device structure DESCRIPTION This function prints an error message when an invalid apptrust selector is provided. SEE ALSO Ke...
ksz_dcb_init(9)
NAME ksz_dcb_init - Initializes the DCB configuration for a KSZ switch SYNOPSIS int ksz_dcb_init (struct ksz_device *dev ); ARGUMENTS dev Pointer to the KSZ switch device structure DESCRIPTION This function initializes the DCB configuration for a KSZ switch. The global DSCP-to-priority mapping table is initi...
ksz_dcb_init_port(9)
NAME ksz_dcb_init_port - Initializes the DCB configuration for a port on a KSZ SYNOPSIS int ksz_dcb_init_port (struct ksz_device *dev , int port ); ARGUMENTS dev Pointer to the KSZ switch device structure port Port number for which to initialize the DCB configuration DESCRIPTION This function...
ksz_drive_strength_error(9)
NAME ksz_drive_strength_error - Report invalid drive strength value SYNOPSIS void ksz_drive_strength_error (struct ksz_device *dev , const struct ksz_drive_strength *array , size_t array_size , int microamp ); ARGUMENTS dev ksz device array The array of drive strength values to search. a...
ksz_drive_strength_to_reg(9)
NAME ksz_drive_strength_to_reg - Convert drive strength value to corresponding register value. SYNOPSIS int ksz_drive_strength_to_reg (const struct ksz_drive_strength *array , size_t array_size , int microamp ); ARGUMENTS array The array of drive strength values to search. array_size The size of the ar...
ksz_free_buffers(9)
NAME ksz_free_buffers - free buffers used in the descriptors SYNOPSIS void ksz_free_buffers (struct dev_info *adapter , struct ksz_desc_info *desc_info , int direction ); ARGUMENTS adapter Adapter information structure. desc_info Descriptor information structure. direction to or from device D...
ksz_free_desc(9)
NAME ksz_free_desc - free software and hardware descriptors SYNOPSIS void ksz_free_desc (struct dev_info *adapter ); ARGUMENTS adapter Adapter information structure. DESCRIPTION This local routine frees the software and hardware descriptors allocated by ksz_alloc_desc. SEE ALSO Kernel file ./drivers/net/ether...
ksz_free_mem(9)
NAME ksz_free_mem - free all resources used by descriptors SYNOPSIS void ksz_free_mem (struct dev_info *adapter ); ARGUMENTS adapter Adapter information structure. DESCRIPTION This local routine frees all the resources allocated by ksz_alloc_mem. SEE ALSO Kernel file ./drivers/net/ethernet/micrel/ksz884x.c s...
ksz_get_apptrust_map_and_reg(9)
NAME ksz_get_apptrust_map_and_reg - Retrieves the apptrust map and register SYNOPSIS void ksz_get_apptrust_map_and_reg (struct ksz_device *dev , const struct ksz_apptrust_map **map , int *reg , u8 *mask ); ARGUMENTS dev Pointer to the KSZ switch device structure map Pointer to the apptrust map...
ksz_get_dscp_prio_reg(9)
NAME ksz_get_dscp_prio_reg - Retrieves the DSCP-to-priority-mapping register SYNOPSIS void ksz_get_dscp_prio_reg (struct ksz_device *dev , int *reg , int *per_reg , u8 *mask ); ARGUMENTS dev Pointer to the KSZ switch device structure reg Pointer to the register address to be set per_re...
ksz_get_wol(9)
NAME ksz_get_wol - Get Wake-on-LAN settings for a specified port. SYNOPSIS void ksz_get_wol (struct dsa_switch *ds , int port , struct ethtool_wolinfo *wol ); ARGUMENTS ds The dsa_switch structure. port The port number. wol Pointer to ethtool Wake-on-LAN settings structure. DE...
ksz_handle_wake_reason(9)
NAME ksz_handle_wake_reason - Handle wake reason on a specified port. SYNOPSIS int ksz_handle_wake_reason (struct ksz_device *dev , int port ); ARGUMENTS dev The device structure. port The port number. DESCRIPTION This function reads the PME (Power Management Event) status register of a...
ksz_init_global_dscp_map(9)
NAME ksz_init_global_dscp_map - Initializes the global DSCP-to-priority mapping SYNOPSIS int ksz_init_global_dscp_map (struct ksz_device *dev ); ARGUMENTS dev Pointer to the KSZ switch device structure DESCRIPTION This function initializes the global DSCP-to-priority mapping table for the switch. RETURN 0 o...
ksz_init_rx_buffers(9)
NAME ksz_init_rx_buffers - initialize receive descriptors SYNOPSIS void ksz_init_rx_buffers (struct dev_info *adapter ); ARGUMENTS adapter Adapter information structure. DESCRIPTION This routine initializes DMA buffers for receiving. SEE ALSO Kernel file ./drivers/net/ethernet/micrel/ksz884x.c struct ksz_hw...
ksz_irq_phy_free(9)
NAME ksz_irq_phy_free - Release IRQ mappings for PHYs in the KSZ device. SYNOPSIS void ksz_irq_phy_free (struct ksz_device *dev ); ARGUMENTS dev Pointer to the KSZ device structure. DESCRIPTION Releases any IRQ mappings previously assigned to active PHYs in the KSZ switch by disposing of each mapped IRQ in t...
ksz_irq_phy_setup(9)
NAME ksz_irq_phy_setup - Configure IRQs for PHYs in the KSZ device. SYNOPSIS int ksz_irq_phy_setup (struct ksz_device *dev ); ARGUMENTS dev Pointer to the KSZ device structure. DESCRIPTION Sets up IRQs for each active PHY connected to the KSZ switch by mapping the appropriate IRQs for each PHY and assigni...
ksz_is_port_mac_global_usable(9)
NAME ksz_is_port_mac_global_usable - Check if the MAC address on a given port can be used as a global address. SYNOPSIS bool ksz_is_port_mac_global_usable (struct dsa_switch *ds , int port ); ARGUMENTS ds Pointer to the DSA switch structure. port The port number on which the MAC address is to ...
ksz_mdio_register(9)
NAME ksz_mdio_register - Register and configure the MDIO bus for the KSZ device. SYNOPSIS int ksz_mdio_register (struct ksz_device *dev ); ARGUMENTS dev Pointer to the KSZ device structure. DESCRIPTION This function sets up and registers an MDIO bus for the KSZ switch device, allowing access to its internal...
ksz_parent_mdio_read(9)
NAME ksz_parent_mdio_read - Read data from a PHY register on the parent MDIO bus. SYNOPSIS int ksz_parent_mdio_read (struct mii_bus *bus , int addr , int regnum ); ARGUMENTS bus MDIO bus structure. addr PHY address on the parent MDIO bus. regnum Register number to read. DESCRIPTIO...
ksz_parent_mdio_write(9)
NAME ksz_parent_mdio_write - Write data to a PHY register on the parent MDIO bus. SYNOPSIS int ksz_parent_mdio_write (struct mii_bus *bus , int addr , int regnum , u16 val ); ARGUMENTS bus MDIO bus structure. addr PHY address on the parent MDIO bus. regnum Register number to write ...
ksz_parse_drive_strength(9)
NAME ksz_parse_drive_strength - Extract and apply drive strength configurations from device tree properties. SYNOPSIS int ksz_parse_drive_strength (struct ksz_device *dev ); ARGUMENTS dev ksz device DESCRIPTION This function reads the specified drive strength properties from the device tree, validates agains...
ksz_parse_dt_phy_config(9)
NAME ksz_parse_dt_phy_config - Parse and validate PHY configuration from DT SYNOPSIS int ksz_parse_dt_phy_config (struct ksz_device *dev , struct mii_bus *bus , struct device_node *mdio_np ); ARGUMENTS dev pointer to the KSZ device structure bus pointer to the MII bus structure mdio_np...
ksz_phy_addr_to_port(9)
NAME ksz_phy_addr_to_port - Map a PHY address to the corresponding switch port. SYNOPSIS int ksz_phy_addr_to_port (struct ksz_device *dev , int addr ); ARGUMENTS dev Pointer to device structure. addr PHY address to map to a port. DESCRIPTION This function finds the corresponding switch port ...
ksz_phylink_mac_disable_tx_lpi(9)
NAME ksz_phylink_mac_disable_tx_lpi - Callback to signal LPI support (Dummy) SYNOPSIS void ksz_phylink_mac_disable_tx_lpi (struct phylink_config *config ); ARGUMENTS config phylink config structure DESCRIPTION This function is a dummy handler. See ksz_phylink_mac_enable_tx_lpi for a detailed explanation of EEE/...
ksz_phylink_mac_enable_tx_lpi(9)
NAME ksz_phylink_mac_enable_tx_lpi - Callback to signal LPI support (Dummy) SYNOPSIS int ksz_phylink_mac_enable_tx_lpi (struct phylink_config *config , u32 timer , bool tx_clock_stop ); ARGUMENTS config phylink config structure timer timer value before entering LPI (unused) tx_clock_stop ...
ksz_port_add_dscp_prio(9)
NAME ksz_port_add_dscp_prio - Adds a DSCP-to-priority mapping entry for a port on a KSZ switch. SYNOPSIS int ksz_port_add_dscp_prio (struct dsa_switch *ds , int port , u8 dscp , u8 prio ); ARGUMENTS ds Pointer to the DSA switch structure port Port number for which to add the DSCP-to-priority m...
ksz_port_del_dscp_prio(9)
NAME ksz_port_del_dscp_prio - Deletes a DSCP-to-priority mapping entry for a port on a KSZ switch. SYNOPSIS int ksz_port_del_dscp_prio (struct dsa_switch *ds , int port , u8 dscp , u8 prio ); ARGUMENTS ds Pointer to the DSA switch structure port Port number for which to delete the DSCP-to-prio...
ksz_port_get_apptrust(9)
NAME ksz_port_get_apptrust - Retrieves the apptrust selectors for a port on a KSZ switch SYNOPSIS int ksz_port_get_apptrust (struct dsa_switch *ds , int port , u8 *sel , int *nsel ); ARGUMENTS ds Pointer to the DSA switch structure port Port number for which to get the apptrust selectors ...
ksz_port_get_default_prio(9)
NAME ksz_port_get_default_prio - Retrieves the default priority for a port on a KSZ switch SYNOPSIS int ksz_port_get_default_prio (struct dsa_switch *ds , int port ); ARGUMENTS ds Pointer to the DSA switch structure port Port number from which to get the default priority DESCRIPTION This func...
ksz_port_get_dscp_prio(9)
NAME ksz_port_get_dscp_prio - Retrieves the priority for a DSCP value on a KSZ switch SYNOPSIS int ksz_port_get_dscp_prio (struct dsa_switch *ds , int port , u8 dscp ); ARGUMENTS ds Pointer to the DSA switch structure port Port number for which to get the priority dscp DSCP valu...
ksz_port_set_apptrust(9)
NAME ksz_port_set_apptrust - Sets the apptrust selectors for a port on a KSZ switch SYNOPSIS int ksz_port_set_apptrust (struct dsa_switch *ds , int port , const u8 *sel , int nsel ); ARGUMENTS ds Pointer to the DSA switch structure port Port number for which to set the apptrust selectors ...
ksz_port_set_apptrust_validate(9)
NAME ksz_port_set_apptrust_validate - Validates the apptrust selectors SYNOPSIS int ksz_port_set_apptrust_validate (struct ksz_device *dev , int port , const u8 *sel , int nsel ); ARGUMENTS dev Pointer to the KSZ switch device structure port Port number for which to set the apptrust selectors ...
ksz_port_set_default_prio(9)
NAME ksz_port_set_default_prio - Sets the default priority for a port on a KSZ switch SYNOPSIS int ksz_port_set_default_prio (struct dsa_switch *ds , int port , u8 prio ); ARGUMENTS ds Pointer to the DSA switch structure port Port number for which to set the default priority prio ...
ksz_set_global_dscp_entry(9)
NAME ksz_set_global_dscp_entry - Sets the global DSCP-to-priority mapping entry SYNOPSIS int ksz_set_global_dscp_entry (struct ksz_device *dev , u8 dscp , u8 ipm ); ARGUMENTS dev Pointer to the KSZ switch device structure dscp DSCP value for which to set the priority ipm Priorit...
ksz_set_wol(9)
NAME ksz_set_wol - Set Wake-on-LAN settings for a specified port. SYNOPSIS int ksz_set_wol (struct dsa_switch *ds , int port , struct ethtool_wolinfo *wol ); ARGUMENTS ds The dsa_switch structure. port The port number. wol Pointer to ethtool Wake-on-LAN settings structure. DES...
ksz_start_timer(9)
NAME ksz_start_timer - start kernel timer SYNOPSIS void ksz_start_timer (struct ksz_timer_info *info , int time ); ARGUMENTS info Kernel timer information. time The time tick. DESCRIPTION This routine starts the kernel timer after the specified time tick. SEE ALSO Kernel file ./drivers/net/e...
ksz_stop_timer(9)
NAME ksz_stop_timer - stop kernel timer SYNOPSIS void ksz_stop_timer (struct ksz_timer_info *info ); ARGUMENTS info Kernel timer information. DESCRIPTION This routine stops the kernel timer. SEE ALSO Kernel file ./drivers/net/ethernet/micrel/ksz884x.c struct ksz_hw_desc(9), struct ksz_sw_desc(9), struct...
ksz_support_eee(9)
NAME ksz_support_eee - Determine Energy Efficient Ethernet (EEE) support for a port SYNOPSIS bool ksz_support_eee (struct dsa_switch *ds , int port ); ARGUMENTS ds Pointer to the DSA switch structure port Port number to check DESCRIPTION This function also documents devices where EEE was init...