id
stringlengths
4
63
text
stringlengths
153
8.81M
t4_tp_pio_read(9)
NAME t4_tp_pio_read - Read TP PIO registers SYNOPSIS void t4_tp_pio_read (struct adapter *adap , u32 *buff , u32 nregs , u32 start_index , bool sleep_ok ); ARGUMENTS adap the adapter buff where the indirect register values are written nregs how many indirect registers to read ...
t4_tp_pio_write(9)
NAME t4_tp_pio_write - Write TP PIO registers SYNOPSIS void t4_tp_pio_write (struct adapter *adap , u32 *buff , u32 nregs , u32 start_index , bool sleep_ok ); ARGUMENTS adap the adapter buff where the indirect register values are stored nregs how many indirect registers to write ...
t4_tp_read_la(9)
NAME t4_tp_read_la - read TP LA capture buffer SYNOPSIS void t4_tp_read_la (struct adapter *adap , u64 *la_buf , unsigned int *wrptr ); ARGUMENTS adap the adapter la_buf where to store the LA data wrptr the HW write pointer within the capture buffer DESCRIPTION Reads the contents of...
t4_tp_tm_pio_read(9)
NAME t4_tp_tm_pio_read - Read TP TM PIO registers SYNOPSIS void t4_tp_tm_pio_read (struct adapter *adap , u32 *buff , u32 nregs , u32 start_index , bool sleep_ok ); ARGUMENTS adap the adapter buff where the indirect register values are written nregs how many indirect registers to r...
t4_tp_wr_bits_indirect(9)
NAME t4_tp_wr_bits_indirect - set/clear bits in an indirect TP register SYNOPSIS void t4_tp_wr_bits_indirect (struct adapter *adap , unsigned int addr , unsigned int mask , unsigned int val ); ARGUMENTS adap the adapter addr the indirect TP register address mask specifies the fiel...
t4_tx_completion_handler(9)
NAME t4_tx_completion_handler - handle CPL_SGE_EGR_UPDATE messages SYNOPSIS void t4_tx_completion_handler (struct sge_rspq *rspq , const __be64 *rsp , const struct pkt_gl *gl ); ARGUMENTS rspq Ethernet RX Response Queue associated with Ethernet TX Queue rsp Response Entry pointer into Response ...
t4_tx_hststamp(9)
NAME t4_tx_hststamp - Loopback PTP Transmit Event Message SYNOPSIS int t4_tx_hststamp (struct adapter *adapter , struct sk_buff *skb , struct net_device *dev ); ARGUMENTS adapter the adapter skb the packet dev the ingress net device DESCRIPTION Read hardware timestamp for the loop...
t4_update_port_info(9)
NAME t4_update_port_info - retrieve and update port information if changed SYNOPSIS int t4_update_port_info (struct port_info *pi ); ARGUMENTS pi the port_info DESCRIPTION We issue a Get Port Information Command to the Firmware and, if successful, we check to see if anything is different from what we last r...
t4_wait_op_done_val(9)
NAME t4_wait_op_done_val - wait until an operation is completed SYNOPSIS int t4_wait_op_done_val (struct adapter *adapter , int reg , u32 mask , int polarity , int attempts , int delay , u32 *valp ); ARGUMENTS adapter the adapter performing the operation reg the register to check for completion ...
t4_wr_mbox_meat_timeout(9)
NAME t4_wr_mbox_meat_timeout - send a command to FW through the given mailbox SYNOPSIS int t4_wr_mbox_meat_timeout (struct adapter *adap , int mbox , const void *cmd , int size , void *rpl , bool sleep_ok , int timeout ); ARGUMENTS adap the adapter mbox index of the mailbox to use cmd ...
t4_write_flash(9)
NAME t4_write_flash - write up to a page of data to the serial flash SYNOPSIS int t4_write_flash (struct adapter *adapter , unsigned int addr , unsigned int n , const u8 *data , bool byte_oriented ); ARGUMENTS adapter the adapter addr the start address to write n length of data to...
t4_write_indirect(9)
NAME t4_write_indirect - write indirectly addressed registers SYNOPSIS void t4_write_indirect (struct adapter *adap , unsigned int addr_reg , unsigned int data_reg , const u32 *vals , unsigned int nregs , unsigned int start_idx ); ARGUMENTS adap the adapter addr_reg register holding the indirect add...
t4_write_reg(9)
NAME t4_write_reg - write a HW register SYNOPSIS void t4_write_reg (struct adapter *adapter , u32 reg_addr , u32 val ); ARGUMENTS adapter the adapter reg_addr the register address val the value to write DESCRIPTION Write a 32-bit value into the given HW register. SEE ALSO Kernel file ...
t4_write_reg64(9)
NAME t4_write_reg64 - write a 64-bit HW register SYNOPSIS void t4_write_reg64 (struct adapter *adapter , u32 reg_addr , u64 val ); ARGUMENTS adapter the adapter reg_addr the register address val the value to write DESCRIPTION Write a 64-bit value into the given HW register. SEE ALSO K...
t4_write_rss_key(9)
NAME t4_write_rss_key - program one of the RSS keys SYNOPSIS void t4_write_rss_key (struct adapter *adap , const u32 *key , int idx , bool sleep_ok ); ARGUMENTS adap the adapter key 10-entry array holding the 320-bit RSS key idx which RSS key to write sleep_ok if true...
t4vf_alloc_mac_filt(9)
NAME t4vf_alloc_mac_filt - allocates exact-match filters for MAC addresses SYNOPSIS int t4vf_alloc_mac_filt (struct adapter *adapter , unsigned int viid , bool free , unsigned int naddr , const u8 **addr , u16 *idx , u64 *hash , bool sleep_ok ); ARGUMENTS adapter the adapter viid the Virtual Interf...
t4vf_alloc_vi(9)
NAME t4vf_alloc_vi - allocate a virtual interface on a port SYNOPSIS int t4vf_alloc_vi (struct adapter *adapter , int port_id ); ARGUMENTS adapter the adapter port_id physical port associated with the VI DESCRIPTION Allocate a new Virtual Interface and bind it to the indicated physical port. Return ...
t4vf_bar2_sge_qregs(9)
NAME t4vf_bar2_sge_qregs - return BAR2 SGE Queue register information SYNOPSIS int t4vf_bar2_sge_qregs (struct adapter *adapter , unsigned int qid , enum t4_bar2_qtype qtype , u64 *pbar2_qoffset , unsigned int *pbar2_qid ); ARGUMENTS adapter the adapter qid the Queue ID qtype the Ing...
t4vf_calc_tx_flits(9)
NAME t4vf_calc_tx_flits - calculate the number of flits for a packet TX WR SYNOPSIS unsigned int t4vf_calc_tx_flits (const struct sk_buff *skb ); ARGUMENTS skb the packet DESCRIPTION Returns the number of flits needed for a TX Work Request for the given Ethernet packet, including the needed WR and CPL header...
t4vf_change_mac(9)
NAME t4vf_change_mac - modifies the exact-match filter for a MAC address SYNOPSIS int t4vf_change_mac (struct adapter *adapter , unsigned int viid , int idx , const u8 *addr , bool persist ); ARGUMENTS adapter the adapter viid the Virtual Interface ID idx index of existing filter fo...
t4vf_config_rss_range(9)
NAME t4vf_config_rss_range - configure a portion of the RSS mapping table SYNOPSIS int t4vf_config_rss_range (struct adapter *adapter , unsigned int viid , int start , int n , const u16 *rspq , int nrspq ); ARGUMENTS adapter the adapter viid Virtual Interface of RSS Table Slice start ...
t4vf_enable_pi(9)
NAME t4vf_enable_pi - enable/disable a Port's virtual interface SYNOPSIS int t4vf_enable_pi (struct adapter *adapter , struct port_info *pi , bool rx_en , bool tx_en ); ARGUMENTS adapter the adapter pi the Port Information structure rx_en 1=enable Rx, 0=disable Rx tx_en ...
t4vf_enable_vi(9)
NAME t4vf_enable_vi - enable/disable a virtual interface SYNOPSIS int t4vf_enable_vi (struct adapter *adapter , unsigned int viid , bool rx_en , bool tx_en ); ARGUMENTS adapter the adapter viid the Virtual Interface ID rx_en 1=enable Rx, 0=disable Rx tx_en 1=enable Tx, 0...
t4vf_eth_eq_free(9)
NAME t4vf_eth_eq_free - free an Ethernet egress queue SYNOPSIS int t4vf_eth_eq_free (struct adapter *adapter , unsigned int eqid ); ARGUMENTS adapter the adapter eqid egress queue ID DESCRIPTION Frees an Ethernet egress queue. SEE ALSO Kernel file ./drivers/net/ethernet/chelsio/cxgb4vf/t4vf_h...
t4vf_eth_xmit(9)
NAME t4vf_eth_xmit - add a packet to an Ethernet TX queue SYNOPSIS netdev_tx_t t4vf_eth_xmit (struct sk_buff *skb , struct net_device *dev ); ARGUMENTS skb the packet dev the egress net device DESCRIPTION Add a packet to an SGE Ethernet TX queue. Runs with softirqs disabled. SEE ALSO Kernel...
t4vf_ethrx_handler(9)
NAME t4vf_ethrx_handler - process an ingress ethernet packet SYNOPSIS int t4vf_ethrx_handler (struct sge_rspq *rspq , const __be64 *rsp , const struct pkt_gl *gl ); ARGUMENTS rspq the response queue that received the packet rsp the response queue descriptor holding the RX_PKT message gl...
t4vf_fl_pkt_align(9)
NAME t4vf_fl_pkt_align - return the fl packet alignment SYNOPSIS int t4vf_fl_pkt_align (struct adapter *adapter ); ARGUMENTS adapter the adapter DESCRIPTION T4 has a single field to specify the packing and padding boundary. T5 onwards has separate fields for this and hence the alignment for next packet of...
t4vf_free_mac_filt(9)
NAME t4vf_free_mac_filt - frees exact-match filters of given MAC addresses SYNOPSIS int t4vf_free_mac_filt (struct adapter *adapter , unsigned int viid , unsigned int naddr , const u8 **addr , bool sleep_ok ); ARGUMENTS adapter the adapter viid the VI id naddr the number of MAC addres...
t4vf_free_sge_resources(9)
NAME t4vf_free_sge_resources - free SGE resources SYNOPSIS void t4vf_free_sge_resources (struct adapter *adapter ); ARGUMENTS adapter the adapter DESCRIPTION Frees resources used by the SGE queue sets. SEE ALSO Kernel file ./drivers/net/ethernet/chelsio/cxgb4vf/sge.c get_buf_addr(9), is_buf_mapped(9), ...
t4vf_free_vi(9)
NAME t4vf_free_vi - - free a virtual interface SYNOPSIS int t4vf_free_vi (struct adapter *adapter , int viid ); ARGUMENTS adapter the adapter viid the virtual interface identifier DESCRIPTION Free a previously allocated Virtual Interface. Return an error on failure. SEE ALSO Kernel file ./dr...
t4vf_fw_reset(9)
NAME t4vf_fw_reset - issue a reset to FW SYNOPSIS int t4vf_fw_reset (struct adapter *adapter ); ARGUMENTS adapter the adapter DESCRIPTION Issues a reset command to FW. For a Physical Function this would result in the Firmware resetting all of its state. For a Virtual Function this just resets the state associa...
t4vf_get_dev_params(9)
NAME t4vf_get_dev_params - retrieve device paremeters SYNOPSIS int t4vf_get_dev_params (struct adapter *adapter ); ARGUMENTS adapter the adapter DESCRIPTION Retrives various device parameters. The parameters are stored in adapter->params.dev. SEE ALSO Kernel file ./drivers/net/ethernet/chelsio/cxgb4vf/t4vf...
t4vf_get_port_stats(9)
NAME t4vf_get_port_stats - collect "port" statistics SYNOPSIS int t4vf_get_port_stats (struct adapter *adapter , int pidx , struct t4vf_port_stats *s ); ARGUMENTS adapter the adapter pidx the port index s the stats structure to fill DESCRIPTION Collect statistics for the "port"'s...
t4vf_get_rss_glb_config(9)
NAME t4vf_get_rss_glb_config - retrieve adapter RSS Global Configuration SYNOPSIS int t4vf_get_rss_glb_config (struct adapter *adapter ); ARGUMENTS adapter the adapter DESCRIPTION Retrieves global RSS mode and parameters with which we have to live and stores them in the adapter's RSS parameters. SEE ALSO Kernel...
t4vf_get_sge_params(9)
NAME t4vf_get_sge_params - retrieve adapter Scatter gather Engine parameters SYNOPSIS int t4vf_get_sge_params (struct adapter *adapter ); ARGUMENTS adapter the adapter DESCRIPTION Retrieves various core SGE parameters in the form of hardware SGE register values. The caller is responsible for decoding these as n...
t4vf_get_vf_mac_acl(9)
NAME t4vf_get_vf_mac_acl - Get the MAC address to be set to the VI of this VF. SYNOPSIS int t4vf_get_vf_mac_acl (struct adapter *adapter , unsigned int port , unsigned int *naddr , u8 *addr ); ARGUMENTS adapter The adapter port The port associated with vf naddr the number of ACL MAC a...
t4vf_get_vf_vlan_acl(9)
NAME t4vf_get_vf_vlan_acl - Get the VLAN ID to be set to the VI of this VF. SYNOPSIS int t4vf_get_vf_vlan_acl (struct adapter *adapter ); ARGUMENTS adapter The adapter DESCRIPTION Find the VLAN ID to be set to the VF's VI. The requested VLAN ID is from the host OS via callback in the PF driver. SEE ALSO Kernel ...
t4vf_get_vfres(9)
NAME t4vf_get_vfres - retrieve VF resource limits SYNOPSIS int t4vf_get_vfres (struct adapter *adapter ); ARGUMENTS adapter the adapter DESCRIPTION Retrieves configured resource limits and capabilities for a virtual function. The results are stored in adapter->vfres. SEE ALSO Kernel file ./drivers/net/ethe...
t4vf_get_vpd_params(9)
NAME t4vf_get_vpd_params - retrieve device VPD paremeters SYNOPSIS int t4vf_get_vpd_params (struct adapter *adapter ); ARGUMENTS adapter the adapter DESCRIPTION Retrives various device Vital Product Data parameters. The parameters are stored in adapter->params.vpd. SEE ALSO Kernel file ./drivers/net/ethern...
t4vf_handle_fw_rpl(9)
NAME t4vf_handle_fw_rpl - process a firmware reply message SYNOPSIS int t4vf_handle_fw_rpl (struct adapter *adapter , const __be64 *rpl ); ARGUMENTS adapter the adapter rpl start of the firmware message DESCRIPTION Processes a firmware message, such as link state change messages. SEE ALSO Kernel...
t4vf_handle_get_port_info(9)
NAME t4vf_handle_get_port_info - process a FW reply message SYNOPSIS void t4vf_handle_get_port_info (struct port_info *pi , const struct fw_port_cmd *cmd ); ARGUMENTS pi the port info cmd start of the FW message DESCRIPTION Processes a GET_PORT_INFO FW reply message. SEE ALSO Kernel file ...
t4vf_identify_port(9)
NAME t4vf_identify_port - identify a VI's port by blinking its LED SYNOPSIS int t4vf_identify_port (struct adapter *adapter , unsigned int viid , unsigned int nblinks ); ARGUMENTS adapter the adapter viid the Virtual Interface ID nblinks how many times to blink LED at 2.5 Hz DESCRIPTIO...
t4vf_intr_handler(9)
NAME t4vf_intr_handler - select the top-level interrupt handler SYNOPSIS irq_handler_t t4vf_intr_handler (struct adapter *adapter ); ARGUMENTS adapter the adapter DESCRIPTION Selects the top-level interrupt handler based on the type of interrupts (MSI-X or MSI). SEE ALSO Kernel file ./drivers/net/ethernet/c...
t4vf_iq_free(9)
NAME t4vf_iq_free - free an ingress queue and its free lists SYNOPSIS int t4vf_iq_free (struct adapter *adapter , unsigned int iqtype , unsigned int iqid , unsigned int fl0id , unsigned int fl1id ); ARGUMENTS adapter the adapter iqtype the ingress queue type (FW_IQ_TYPE_FL_INT_CAP, etc.) iqid...
t4vf_is_eth_imm(9)
NAME t4vf_is_eth_imm - can an Ethernet packet be sent as immediate data? SYNOPSIS int t4vf_is_eth_imm (const struct sk_buff *skb ); ARGUMENTS skb the packet DESCRIPTION Returns whether an Ethernet packet is small enough to fit completely as immediate data. SEE ALSO Kernel file ./drivers/net/ethernet/chels...
t4vf_link_down_rc_str(9)
NAME t4vf_link_down_rc_str - return a string for a Link Down Reason Code SYNOPSIS const char * t4vf_link_down_rc_str (unsigned char link_down_rc ); ARGUMENTS link_down_rc Link Down Reason Code DESCRIPTION Returns a string representation of the Link Down Reason Code. SEE ALSO Kernel file ./drivers/net/ethernet/c...
t4vf_pktgl_free(9)
NAME t4vf_pktgl_free - free a packet gather list SYNOPSIS void t4vf_pktgl_free (const struct pkt_gl *gl ); ARGUMENTS gl the gather list DESCRIPTION Releases the pages of a packet gather list. We do not own the last page on the list and do not free it. SEE ALSO Kernel file ./drivers/net/ethernet/chelsi...
t4vf_pktgl_to_skb(9)
NAME t4vf_pktgl_to_skb - build an sk_buff from a packet gather list SYNOPSIS struct sk_buff * t4vf_pktgl_to_skb (const struct pkt_gl *gl , unsigned int skb_len , unsigned int pull_len ); ARGUMENTS gl the gather list skb_len size of sk_buff main body if it carries fragments pull_len amo...
t4vf_port_init(9)
NAME t4vf_port_init - initialize port hardware/software state SYNOPSIS int t4vf_port_init (struct adapter *adapter , int pidx ); ARGUMENTS adapter the adapter pidx the adapter port index SEE ALSO Kernel file ./drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c t4vf_record_mbox(9), t4vf_wr_mbox...
t4vf_query_params(9)
NAME t4vf_query_params - query FW or device parameters SYNOPSIS int t4vf_query_params (struct adapter *adapter , unsigned int nparams , const u32 *params , u32 *vals ); ARGUMENTS adapter the adapter nparams the number of parameters params the parameter names vals the parame...
t4vf_read_rss_vi_config(9)
NAME t4vf_read_rss_vi_config - read a VI's RSS configuration SYNOPSIS int t4vf_read_rss_vi_config (struct adapter *adapter , unsigned int viid , union rss_vi_config *config ); ARGUMENTS adapter the adapter viid Virtual Interface ID config pointer to host-native VI RSS Configuration buf...
t4vf_record_mbox(9)
NAME t4vf_record_mbox - record a Firmware Mailbox Command/Reply in the log SYNOPSIS void t4vf_record_mbox (struct adapter *adapter , const __be64 *cmd , int size , int access , int execute ); ARGUMENTS adapter the adapter cmd the Firmware Mailbox Command or Reply size command length...
t4vf_set_addr_hash(9)
NAME t4vf_set_addr_hash - program the MAC inexact-match hash filter SYNOPSIS int t4vf_set_addr_hash (struct adapter *adapter , unsigned int viid , bool ucast , u64 vec , bool sleep_ok ); ARGUMENTS adapter the adapter viid the Virtual Interface Identifier ucast whether the hash filter ...
t4vf_set_params(9)
NAME t4vf_set_params - sets FW or device parameters SYNOPSIS int t4vf_set_params (struct adapter *adapter , unsigned int nparams , const u32 *params , const u32 *vals ); ARGUMENTS adapter the adapter nparams the number of parameters params the parameter names vals the param...
t4vf_set_rxmode(9)
NAME t4vf_set_rxmode - set Rx properties of a virtual interface SYNOPSIS int t4vf_set_rxmode (struct adapter *adapter , unsigned int viid , int mtu , int promisc , int all_multi , int bcast , int vlanex , bool sleep_ok ); ARGUMENTS adapter the adapter viid the VI id mtu the new MTU ...
t4vf_sge_alloc_eth_txq(9)
NAME t4vf_sge_alloc_eth_txq - allocate an SGE Ethernet TX Queue SYNOPSIS int t4vf_sge_alloc_eth_txq (struct adapter *adapter , struct sge_eth_txq *txq , struct net_device *dev , struct netdev_queue *devq , unsigned int iqid ); ARGUMENTS adapter the adapter txq pointer to the new txq to be filled i...
t4vf_sge_alloc_rxq(9)
NAME t4vf_sge_alloc_rxq - allocate an SGE RX Queue SYNOPSIS int t4vf_sge_alloc_rxq (struct adapter *adapter , struct sge_rspq *rspq , bool iqasynch , struct net_device *dev , int intr_dest , struct sge_fl *fl , rspq_handler_t hnd ); ARGUMENTS adapter the adapter rspq pointer to the new rxq's Respon...
t4vf_sge_init(9)
NAME t4vf_sge_init - initialize SGE SYNOPSIS int t4vf_sge_init (struct adapter *adapter ); ARGUMENTS adapter the adapter DESCRIPTION Performs SGE initialization needed every time after a chip reset. We do not initialize any of the queue sets here, instead the driver top-level must request those individual...
t4vf_sge_start(9)
NAME t4vf_sge_start - enable SGE operation SYNOPSIS void t4vf_sge_start (struct adapter *adapter ); ARGUMENTS adapter the adapter DESCRIPTION Start tasklets and timers associated with the DMA engine. SEE ALSO Kernel file ./drivers/net/ethernet/chelsio/cxgb4vf/sge.c get_buf_addr(9), is_buf_mapped(9), n...
t4vf_sge_stop(9)
NAME t4vf_sge_stop - disable SGE operation SYNOPSIS void t4vf_sge_stop (struct adapter *adapter ); ARGUMENTS adapter the adapter DESCRIPTION Stop tasklets and timers associated with the DMA engine. Note that this is effective only if measures have been taken to disable any HW events that may restart them. SEE ...
t4vf_update_port_info(9)
NAME t4vf_update_port_info - retrieve and update port information if changed SYNOPSIS int t4vf_update_port_info (struct port_info *pi ); ARGUMENTS pi the port_info DESCRIPTION We issue a Get Port Information Command to the Firmware and, if successful, we check to see if anything is different from what we la...
t4vf_wr_mbox_core(9)
NAME t4vf_wr_mbox_core - send a command to FW through the mailbox SYNOPSIS int t4vf_wr_mbox_core (struct adapter *adapter , const void *cmd , int size , void *rpl , bool sleep_ok ); ARGUMENTS adapter the adapter cmd the command to write size command length in bytes rpl ...
t4vf_write_rss_vi_config(9)
NAME t4vf_write_rss_vi_config - write a VI's RSS configuration SYNOPSIS int t4vf_write_rss_vi_config (struct adapter *adapter , unsigned int viid , union rss_vi_config *config ); ARGUMENTS adapter the adapter viid Virtual Interface ID config pointer to host-native VI RSS Configuration ...
t7xx_cldma_exception(9)
NAME t7xx_cldma_exception - CLDMA exception handler. SYNOPSIS void t7xx_cldma_exception (struct cldma_ctrl *md_ctrl , enum hif_ex_stage stage ); ARGUMENTS md_ctrl modem control struct. stage exception stage. DESCRIPTION Part of the modem exception recovery. Stages are one after the other as descr...
t7xx_cldma_hw_init(9)
NAME t7xx_cldma_hw_init - Initialize CLDMA HW. SYNOPSIS void t7xx_cldma_hw_init (struct t7xx_cldma_hw *hw_info ); ARGUMENTS hw_info Pointer to struct t7xx_cldma_hw. DESCRIPTION Write uplink and downlink configuration to CLDMA HW. SEE ALSO Kernel file ./drivers/net/wwan/t7xx/t7xx_cldma.c t7xx_cldma_hw_restore(9)...
t7xx_cldma_hw_restore(9)
NAME t7xx_cldma_hw_restore - Restore CLDMA HW registers. SYNOPSIS void t7xx_cldma_hw_restore (struct t7xx_cldma_hw *hw_info ); ARGUMENTS hw_info Pointer to struct t7xx_cldma_hw. DESCRIPTION Restore HW after resume. Writes uplink configuration for CLDMA HW. SEE ALSO Kernel file ./drivers/net/wwan/t7xx/t7xx_cldma...
t7xx_cldma_init(9)
NAME t7xx_cldma_init - Initialize CLDMA. SYNOPSIS int t7xx_cldma_init (struct cldma_ctrl *md_ctrl ); ARGUMENTS md_ctrl CLDMA context structure. DESCRIPTION Allocate and initialize device power management entity. Initialize HIF TX/RX queue structure. Register CLDMA callback ISR with PCIe driver. RETURN * 0 ...
t7xx_cldma_q_reset(9)
NAME t7xx_cldma_q_reset - Reset CLDMA request pointers to their initial values. SYNOPSIS void t7xx_cldma_q_reset (struct cldma_queue *queue ); ARGUMENTS queue Pointer to the queue structure. DESCRIPTION Called with ring_lock (unless called during initialization phase) SEE ALSO Kernel file ./drivers/net/wwan/t...
t7xx_cldma_send_skb(9)
NAME t7xx_cldma_send_skb - Send control data to modem. SYNOPSIS int t7xx_cldma_send_skb (struct cldma_ctrl *md_ctrl , int qno , struct sk_buff *skb ); ARGUMENTS md_ctrl CLDMA context structure. qno Queue number. skb Socket buffer. RETURN * 0 - Success. * -ENOMEM - All...
t7xx_cldma_set_recv_skb(9)
NAME t7xx_cldma_set_recv_skb - Set the callback to handle RX packets. SYNOPSIS void t7xx_cldma_set_recv_skb (struct cldma_queue *queue , int (*recv_skb)(struct cldma_queue *queue, struct sk_buff *skb) ); ARGUMENTS queue CLDMA queue. recv_skb Receiving skb callback. SEE ALSO Kernel file ./drivers/net...
t7xx_cldma_start(9)
NAME t7xx_cldma_start - Start CLDMA. SYNOPSIS void t7xx_cldma_start (struct cldma_ctrl *md_ctrl ); ARGUMENTS md_ctrl CLDMA context structure. DESCRIPTION Set TX/RX start address. Start all RX queues and enable L2 interrupt. SEE ALSO Kernel file ./drivers/net/wwan/t7xx/t7xx_hif_cldma.c t7xx_cldma_q_reset(9), t7...
t7xx_cldma_stop(9)
NAME t7xx_cldma_stop - Stop CLDMA. SYNOPSIS int t7xx_cldma_stop (struct cldma_ctrl *md_ctrl ); ARGUMENTS md_ctrl CLDMA context structure. DESCRIPTION Stop TX and RX queues. Disable L1 and L2 interrupts. Clear status registers. RETURN * 0 - Success. * -ERROR - Error code from polling cldma_queues_...
t7xx_dpmaif_bat_alloc(9)
NAME t7xx_dpmaif_bat_alloc - Allocate the BAT ring buffer. SYNOPSIS int t7xx_dpmaif_bat_alloc (const struct dpmaif_ctrl *dpmaif_ctrl , struct dpmaif_bat_request *bat_req , const enum bat_type buf_type ); ARGUMENTS dpmaif_ctrl Pointer to DPMAIF context structure. bat_req Pointer to BAT request structure. ...
t7xx_dpmaif_hif_init(9)
NAME t7xx_dpmaif_hif_init - Initialize data path. SYNOPSIS struct dpmaif_ctrl * t7xx_dpmaif_hif_init (struct t7xx_pci_dev *t7xx_dev , struct dpmaif_callbacks *callbacks ); ARGUMENTS t7xx_dev MTK context structure. callbacks Callbacks implemented by the network layer to handle RX skb and event notificatio...
t7xx_dpmaif_hw_get_intr_cnt(9)
NAME t7xx_dpmaif_hw_get_intr_cnt - Reads interrupt status and count from HW. SYNOPSIS int t7xx_dpmaif_hw_get_intr_cnt (struct dpmaif_hw_info *hw_info , struct dpmaif_hw_intr_st_para *para , int qno ); ARGUMENTS hw_info Pointer to struct hw_info. para Pointer to struct dpmaif_hw_intr_st_para. ...
t7xx_dpmaif_hw_init(9)
NAME t7xx_dpmaif_hw_init - Initialize HW data path API. SYNOPSIS int t7xx_dpmaif_hw_init (struct dpmaif_hw_info *hw_info , struct dpmaif_hw_params *init_param ); ARGUMENTS hw_info Pointer to struct hw_info. init_param Pointer to struct dpmaif_hw_params. DESCRIPTION Configures port mode, clock config, HW...
t7xx_dpmaif_hw_stop_all_rxq(9)
NAME t7xx_dpmaif_hw_stop_all_rxq - Stop all RX queues. SYNOPSIS int t7xx_dpmaif_hw_stop_all_rxq (struct dpmaif_hw_info *hw_info ); ARGUMENTS hw_info Pointer to struct hw_info. DESCRIPTION Disable HW DL queue. Checks busy UL queues to go to idle with an attempt count of 1000000. Check that HW PIT write index equ...
t7xx_dpmaif_hw_stop_all_txq(9)
NAME t7xx_dpmaif_hw_stop_all_txq - Stop all TX queues. SYNOPSIS int t7xx_dpmaif_hw_stop_all_txq (struct dpmaif_hw_info *hw_info ); ARGUMENTS hw_info Pointer to struct hw_info. DESCRIPTION Disable HW UL queues. Checks busy UL queues to go to idle with an attempt count of 1000000. RETURN * 0 - Su...
t7xx_dpmaif_rx_buf_alloc(9)
NAME t7xx_dpmaif_rx_buf_alloc - Allocate buffers for the BAT ring. SYNOPSIS int t7xx_dpmaif_rx_buf_alloc (struct dpmaif_ctrl *dpmaif_ctrl , const struct dpmaif_bat_request *bat_req , const unsigned int q_num , const unsigned int buf_cnt , const bool initial ); ARGUMENTS dpmaif_ctrl Pointer to DPMAIF context structure...
t7xx_dpmaif_rx_frag_alloc(9)
NAME t7xx_dpmaif_rx_frag_alloc - Allocates buffers for the Fragment BAT ring. SYNOPSIS int t7xx_dpmaif_rx_frag_alloc (struct dpmaif_ctrl *dpmaif_ctrl , struct dpmaif_bat_request *bat_req , const unsigned int buf_cnt , const bool initial ); ARGUMENTS dpmaif_ctrl Pointer to DPMAIF context structure. bat_req ...
t7xx_dpmaif_rx_stop(9)
NAME t7xx_dpmaif_rx_stop - Suspend RX flow. SYNOPSIS void t7xx_dpmaif_rx_stop (struct dpmaif_ctrl *dpmaif_ctrl ); ARGUMENTS dpmaif_ctrl Pointer to data path control struct dpmaif_ctrl. DESCRIPTION Wait for all the RX work to finish executing and mark the RX queue as paused. SEE ALSO Kernel file ./drivers/net/wwan/t...
t7xx_dpmaif_tx_send_skb(9)
NAME t7xx_dpmaif_tx_send_skb - Add skb to the transmit queue. SYNOPSIS int t7xx_dpmaif_tx_send_skb (struct dpmaif_ctrl *dpmaif_ctrl , unsigned int txq_number , struct sk_buff *skb ); ARGUMENTS dpmaif_ctrl Pointer to struct dpmaif_ctrl. txq_number Queue number to xmit on. skb Pointer to the sk...
t7xx_dpmaif_txq_init(9)
NAME t7xx_dpmaif_txq_init - Initialize TX queue. SYNOPSIS int t7xx_dpmaif_txq_init (struct dpmaif_tx_queue *txq ); ARGUMENTS txq Pointer to struct dpmaif_tx_queue. DESCRIPTION Initialize the TX queue data structure and allocate memory for it to use. RETURN * 0 - Success. * -ERROR - Error code ...
t7xx_md_init(9)
NAME t7xx_md_init - Initialize modem. SYNOPSIS int t7xx_md_init (struct t7xx_pci_dev *t7xx_dev ); ARGUMENTS t7xx_dev MTK device. DESCRIPTION Allocate and initialize MD control block, and initialize data path. Register MHCCIF ISR and RGU ISR, and start the state machine. RETURN * 0 - Success. * -ENOME...
t7xx_pci_disable_sleep(9)
NAME t7xx_pci_disable_sleep - Disable deep sleep capability. SYNOPSIS void t7xx_pci_disable_sleep (struct t7xx_pci_dev *t7xx_dev ); ARGUMENTS t7xx_dev MTK device. DESCRIPTION Lock the deep sleep capability, note that the device can still go into deep sleep state while device is in D0 state, from the host's poi...
t7xx_pci_enable_sleep(9)
NAME t7xx_pci_enable_sleep - Enable deep sleep capability. SYNOPSIS void t7xx_pci_enable_sleep (struct t7xx_pci_dev *t7xx_dev ); ARGUMENTS t7xx_dev MTK device. DESCRIPTION After enabling deep sleep, device can enter into deep sleep state. SEE ALSO Kernel file ./drivers/net/wwan/t7xx/t7xx_pci.c t7xx_pci_disable_s...
t7xx_pci_mhccif_isr(9)
NAME t7xx_pci_mhccif_isr - Process MHCCIF interrupts. SYNOPSIS int t7xx_pci_mhccif_isr (struct t7xx_pci_dev *t7xx_dev ); ARGUMENTS t7xx_dev MTK device. DESCRIPTION Check the interrupt status and queue commands accordingly. RETURN * 0 - Success. * -EINVAL - Failure to get FSM control. SEE ALSO Ker...
t7xx_pcie_mac_atr_init(9)
NAME t7xx_pcie_mac_atr_init - Initialize address translation. SYNOPSIS void t7xx_pcie_mac_atr_init (struct t7xx_pci_dev *t7xx_dev ); ARGUMENTS t7xx_dev MTK device. DESCRIPTION Setup ATR for ports & device. SEE ALSO Kernel file ./drivers/net/wwan/t7xx/t7xx_pcie_mac.c t7xx_pcie_mac_enable_disable_int(9), t7xx_pcie...
t7xx_pcie_mac_clear_int_status(9)
NAME t7xx_pcie_mac_clear_int_status - Clear interrupt status by type. SYNOPSIS void t7xx_pcie_mac_clear_int_status (struct t7xx_pci_dev *t7xx_dev , enum t7xx_int int_type ); ARGUMENTS t7xx_dev MTK device. int_type Interrupt type. DESCRIPTION Enable or disable device interrupts' status by type. SEE ALS...
t7xx_pcie_mac_clear_set_int(9)
NAME t7xx_pcie_mac_clear_set_int - Clear/set interrupt by type. SYNOPSIS void t7xx_pcie_mac_clear_set_int (struct t7xx_pci_dev *t7xx_dev , enum t7xx_int int_type , bool clear ); ARGUMENTS t7xx_dev MTK device. int_type Interrupt type. clear Clear/set. DESCRIPTION Clear or set device interr...
t7xx_pcie_mac_enable_disable_int(9)
NAME t7xx_pcie_mac_enable_disable_int - Enable/disable interrupts. SYNOPSIS void t7xx_pcie_mac_enable_disable_int (struct t7xx_pci_dev *t7xx_dev , bool enable ); ARGUMENTS t7xx_dev MTK device. enable Enable/disable. DESCRIPTION Enable or disable device interrupts. SEE ALSO Kernel file ./drivers/net/...
t7xx_pcie_set_mac_msix_cfg(9)
NAME t7xx_pcie_set_mac_msix_cfg - Write MSIX control configuration. SYNOPSIS void t7xx_pcie_set_mac_msix_cfg (struct t7xx_pci_dev *t7xx_dev , unsigned int irq_count ); ARGUMENTS t7xx_dev MTK device. irq_count Number of MSIX IRQ vectors. DESCRIPTION Write IRQ count to device. SEE ALSO Kernel file ./driv...
t7xx_port_enqueue_skb(9)
NAME t7xx_port_enqueue_skb - Enqueue the received skb into the port's rx_skb_list. SYNOPSIS int t7xx_port_enqueue_skb (struct t7xx_port *port , struct sk_buff *skb ); ARGUMENTS port port context. skb received skb. RETURN * 0 - Success. * -ENOBUFS - Not enough buffer space. Caller w...
t7xx_port_enum_msg_handler(9)
NAME t7xx_port_enum_msg_handler - Parse the port enumeration message to create/remove nodes. SYNOPSIS int t7xx_port_enum_msg_handler (struct t7xx_modem *md , void *msg ); ARGUMENTS md Modem context. msg Message. DESCRIPTION Used to control create/remove device node. RETURN * 0 - Su...
t7xx_port_proxy_init(9)
NAME t7xx_port_proxy_init - Initialize ports. SYNOPSIS int t7xx_port_proxy_init (struct t7xx_modem *md ); ARGUMENTS md Modem. DESCRIPTION Create all port instances. RETURN * 0 - Success. * -ERROR - Error code from failure sub-initializations. SEE ALSO Kernel file ./drivers/net/wwan/t7xx/t7xx...
t7xx_port_proxy_md_status_notify(9)
NAME t7xx_port_proxy_md_status_notify - Notify all ports of state. SYNOPSIS void t7xx_port_proxy_md_status_notify (struct port_proxy *port_prox , unsigned int state ); ARGUMENTS port_prox The port_proxy pointer. state State. DESCRIPTION Called by t7xx_fsm. Used to dispatch modem status for all ports,...
t7xx_port_proxy_recv_skb(9)
NAME t7xx_port_proxy_recv_skb - Dispatch received skb. SYNOPSIS int t7xx_port_proxy_recv_skb (struct cldma_queue *queue , struct sk_buff *skb ); ARGUMENTS queue CLDMA queue. skb Socket buffer. RETURN * 0 - Packet consumed. * -ERROR - Failed to process skb. SEE ALSO Kernel file ...
t7xx_port_proxy_recv_skb_from_dedicated_queue(9)
NAME t7xx_port_proxy_recv_skb_from_dedicated_queue - Dispatch early port received skb. SYNOPSIS int t7xx_port_proxy_recv_skb_from_dedicated_queue (struct cldma_queue *queue , struct sk_buff *skb ); ARGUMENTS queue CLDMA queue. skb Socket buffer. RETURN * 0 - Packet consumed. * -ERROR...
t_show_filters(9)
NAME t_show_filters - seq_file callback to display active event filters SYNOPSIS int t_show_filters (struct seq_file *m , void *v ); ARGUMENTS m The seq_file interface for formatted output v The current trace_event_file being iterated DESCRIPTION Identifies and prints active filters for t...
t_show_triggers(9)
NAME t_show_triggers - seq_file callback to display active event triggers SYNOPSIS int t_show_triggers (struct seq_file *m , void *v ); ARGUMENTS m The seq_file interface for formatted output v The current trace_event_file being iterated DESCRIPTION Iterates through the trigger list of th...