| /linux/drivers/net/ethernet/cavium/thunder/ |
| H A D | nic_main.c | 14 #include "nic.h" 88 static void nic_reg_write(struct nicpf *nic, u64 offset, u64 val) in nic_reg_write() argument 90 writeq_relaxed(val, nic->reg_base + offset); in nic_reg_write() 93 static u64 nic_reg_read(struct nicpf *nic, u64 offset) in nic_reg_read() argument 95 return readq_relaxed(nic->reg_base + offset); in nic_reg_read() 99 static void nic_enable_mbx_intr(struct nicpf *nic) in nic_enable_mbx_intr() argument 101 int vf_cnt = pci_sriov_get_totalvfs(nic->pdev); in nic_enable_mbx_intr() 106 nic_reg_write(nic, NIC_PF_MAILBOX_INT, INTR_MASK(vf_cnt)); in nic_enable_mbx_intr() 109 nic_reg_write(nic, NIC_PF_MAILBOX_ENA_W1S, INTR_MASK(vf_cnt)); in nic_enable_mbx_intr() 112 nic_reg_write(nic, NIC_PF_MAILBOX_IN in nic_enable_mbx_intr() 119 nic_clear_mbx_intr(struct nicpf * nic,int vf,int mbx_reg) nic_clear_mbx_intr() argument 133 nic_send_msg_to_vf(struct nicpf * nic,int vf,union nic_mbx * mbx) nic_send_msg_to_vf() argument 158 nic_mbx_send_ready(struct nicpf * nic,int vf) nic_mbx_send_ready() argument 188 nic_mbx_send_ack(struct nicpf * nic,int vf) nic_mbx_send_ack() argument 200 nic_mbx_send_nack(struct nicpf * nic,int vf) nic_mbx_send_nack() argument 211 nic_rcv_queue_sw_sync(struct nicpf * nic) nic_rcv_queue_sw_sync() argument 231 nic_get_bgx_stats(struct nicpf * nic,struct bgx_stats_msg * bgx) nic_get_bgx_stats() argument 253 nic_update_hw_frs(struct nicpf * nic,int new_frs,int vf) nic_update_hw_frs() argument 284 nic_set_tx_pkt_pad(struct nicpf * nic,int size) nic_set_tx_pkt_pad() argument 317 nic_set_lmac_vf_mapping(struct nicpf * nic) nic_set_lmac_vf_mapping() argument 357 nic_get_hw_info(struct nicpf * nic) nic_get_hw_info() argument 411 nic_init_hw(struct nicpf * nic) nic_init_hw() argument 472 nic_config_cpi(struct nicpf * nic,struct cpi_cfg_msg * cfg) nic_config_cpi() argument 550 nic_send_rss_size(struct nicpf * nic,int vf) nic_send_rss_size() argument 565 nic_config_rss(struct nicpf * nic,struct rss_cfg_msg * cfg) nic_config_rss() argument 611 nic_tx_channel_cfg(struct nicpf * nic,u8 vnic,struct sq_cfg_msg * sq) nic_tx_channel_cfg() argument 696 nic_send_pnicvf(struct nicpf * nic,int sqs) nic_send_pnicvf() argument 706 nic_send_snicvf(struct nicpf * nic,struct nicvf_ptr * nicvf) nic_send_snicvf() argument 720 nic_nxt_avail_sqs(struct nicpf * nic) nic_nxt_avail_sqs() argument 735 nic_alloc_sqs(struct nicpf * nic,struct sqs_alloc * sqs) nic_alloc_sqs() argument 760 nic_config_loopback(struct nicpf * nic,struct set_loopback * lbk) nic_config_loopback() argument 785 nic_reset_stat_counters(struct nicpf * nic,int vf,struct reset_stat_cfg * cfg) nic_reset_stat_counters() argument 827 nic_enable_tunnel_parsing(struct nicpf * nic,int vf) nic_enable_tunnel_parsing() argument 846 nic_enable_vf(struct nicpf * nic,int vf,bool enable) nic_enable_vf() argument 861 nic_pause_frame(struct nicpf * nic,int vf,struct pfc * cfg) nic_pause_frame() argument 886 nic_config_timestamp(struct nicpf * nic,int vf,struct set_ptp * ptp) nic_config_timestamp() argument 927 nic_link_status_get(struct nicpf * nic,u8 vf) nic_link_status_get() argument 953 nic_handle_mbx_intr(struct nicpf * nic,int vf) nic_handle_mbx_intr() argument 1148 struct nicpf *nic = (struct nicpf *)nic_irq; nic_mbx_intr_handler() local 1173 nic_free_all_interrupts(struct nicpf * nic) nic_free_all_interrupts() argument 1184 nic_register_interrupts(struct nicpf * nic) nic_register_interrupts() argument 1225 nic_unregister_interrupts(struct nicpf * nic) nic_unregister_interrupts() argument 1232 nic_num_sqs_en(struct nicpf * nic,int vf_en) nic_num_sqs_en() argument 1252 nic_sriov_init(struct pci_dev * pdev,struct nicpf * nic) nic_sriov_init() argument 1294 struct nicpf *nic; nic_probe() local 1381 struct nicpf *nic = pci_get_drvdata(pdev); nic_remove() local [all...] |
| H A D | nicvf_queues.c | 16 #include "nic.h" 22 static void nicvf_get_page(struct nicvf *nic) in nicvf_get_page() argument 24 if (!nic->rb_pageref || !nic->rb_page) in nicvf_get_page() 27 page_ref_add(nic->rb_page, nic->rb_pageref); in nicvf_get_page() 28 nic->rb_pageref = 0; in nicvf_get_page() 32 static int nicvf_poll_reg(struct nicvf *nic, int qidx, in nicvf_poll_reg() argument 43 reg_val = nicvf_queue_reg_read(nic, reg, qidx); in nicvf_poll_reg() 49 netdev_err(nic in nicvf_poll_reg() 54 nicvf_alloc_q_desc_mem(struct nicvf * nic,struct q_desc_mem * dmem,int q_len,int desc_size,int align_bytes) nicvf_alloc_q_desc_mem() argument 72 nicvf_free_q_desc_mem(struct nicvf * nic,struct q_desc_mem * dmem) nicvf_free_q_desc_mem() argument 93 nicvf_alloc_page(struct nicvf * nic,struct rbdr * rbdr,gfp_t gfp) nicvf_alloc_page() argument 176 nicvf_alloc_rcv_buffer(struct nicvf * nic,struct rbdr * rbdr,gfp_t gfp,u32 buf_len,u64 * rbuf) nicvf_alloc_rcv_buffer() argument 233 nicvf_rb_ptr_to_skb(struct nicvf * nic,u64 rb_ptr,int len) nicvf_rb_ptr_to_skb() argument 253 nicvf_init_rbdr(struct nicvf * nic,struct rbdr * rbdr,int ring_len,int buf_size) nicvf_init_rbdr() argument 318 nicvf_free_rbdr(struct nicvf * nic,struct rbdr * rbdr) nicvf_free_rbdr() argument 379 nicvf_refill_rbdr(struct nicvf * nic,gfp_t gfp) nicvf_refill_rbdr() argument 453 struct nicvf *nic = container_of(work, struct nicvf, rbdr_work.work); nicvf_rbdr_work() local 465 struct nicvf *nic = from_tasklet(nic, t, rbdr_task); nicvf_rbdr_task() local 475 nicvf_init_cmp_queue(struct nicvf * nic,struct cmp_queue * cq,int q_len) nicvf_init_cmp_queue() argument 492 nicvf_free_cmp_queue(struct nicvf * nic,struct cmp_queue * cq) nicvf_free_cmp_queue() argument 503 nicvf_init_snd_queue(struct nicvf * nic,struct snd_queue * sq,int q_len,int qidx) nicvf_init_snd_queue() argument 553 nicvf_unmap_sndq_buffers(struct nicvf * nic,struct snd_queue * sq,int hdr_sqe,u8 subdesc_cnt) nicvf_unmap_sndq_buffers() argument 571 nicvf_free_snd_queue(struct nicvf * nic,struct snd_queue * sq) nicvf_free_snd_queue() argument 626 nicvf_reclaim_snd_queue(struct nicvf * nic,struct queue_set * qs,int qidx) nicvf_reclaim_snd_queue() argument 638 nicvf_reclaim_rcv_queue(struct nicvf * nic,struct queue_set * qs,int qidx) nicvf_reclaim_rcv_queue() argument 648 nicvf_reclaim_cmp_queue(struct nicvf * nic,struct queue_set * qs,int qidx) nicvf_reclaim_cmp_queue() argument 659 nicvf_reclaim_rbdr(struct nicvf * nic,struct rbdr * rbdr,int qidx) nicvf_reclaim_rbdr() argument 709 nicvf_config_vlan_stripping(struct nicvf * nic,netdev_features_t features) nicvf_config_vlan_stripping() argument 730 nicvf_reset_rcv_queue_stats(struct nicvf * nic) nicvf_reset_rcv_queue_stats() argument 744 nicvf_rcv_queue_config(struct nicvf * nic,struct queue_set * qs,int qidx,bool enable) nicvf_rcv_queue_config() argument 817 nicvf_cmp_queue_config(struct nicvf * nic,struct queue_set * qs,int qidx,bool enable) nicvf_cmp_queue_config() argument 858 nicvf_snd_queue_config(struct nicvf * nic,struct queue_set * qs,int qidx,bool enable) nicvf_snd_queue_config() argument 916 nicvf_rbdr_config(struct nicvf * nic,struct queue_set * qs,int qidx,bool enable) nicvf_rbdr_config() argument 953 nicvf_qset_config(struct nicvf * nic,bool enable) nicvf_qset_config() argument 988 nicvf_free_resources(struct nicvf * nic) nicvf_free_resources() argument 1006 nicvf_alloc_resources(struct nicvf * nic) nicvf_alloc_resources() argument 1036 nicvf_set_qset_resources(struct nicvf * nic) nicvf_set_qset_resources() argument 1063 nicvf_config_data_transfer(struct nicvf * nic,bool enable) nicvf_config_data_transfer() argument 1159 nicvf_sq_enable(struct nicvf * nic,struct snd_queue * sq,int qidx) nicvf_sq_enable() argument 1170 nicvf_sq_disable(struct nicvf * nic,int qidx) nicvf_sq_disable() argument 1184 struct nicvf *nic = netdev_priv(netdev); nicvf_sq_free_used_descs() local 1205 nicvf_xdp_sq_doorbell(struct nicvf * nic,struct snd_queue * sq,int sq_num) nicvf_xdp_sq_doorbell() argument 1235 nicvf_xdp_sq_append_pkt(struct nicvf * nic,struct snd_queue * sq,u64 bufaddr,u64 dma_addr,u16 len) nicvf_xdp_sq_append_pkt() argument 1306 nicvf_sq_subdesc_required(struct nicvf * nic,struct sk_buff * skb) nicvf_sq_subdesc_required() argument 1329 nicvf_sq_add_hdr_subdesc(struct nicvf * nic,struct snd_queue * sq,int qentry,int subdesc_cnt,struct sk_buff * skb,int len) nicvf_sq_add_hdr_subdesc() argument 1462 nicvf_sq_doorbell(struct nicvf * nic,struct sk_buff * skb,int sq_num,int desc_cnt) nicvf_sq_doorbell() argument 1485 nicvf_sq_append_tso(struct nicvf * nic,struct snd_queue * sq,int sq_num,int qentry,struct sk_buff * skb) nicvf_sq_append_tso() argument 1549 nicvf_sq_append_skb(struct nicvf * nic,struct snd_queue * sq,struct sk_buff * skb,u8 sq_num) nicvf_sq_append_skb() argument 1637 nicvf_unmap_rcv_buffer(struct nicvf * nic,u64 dma_addr,u64 buf_addr,bool xdp) nicvf_unmap_rcv_buffer() argument 1662 nicvf_get_rcv_skb(struct nicvf * nic,struct cqe_rx_t * cqe_rx,bool xdp) nicvf_get_rcv_skb() argument 1756 nicvf_enable_intr(struct nicvf * nic,int int_type,int q_idx) nicvf_enable_intr() argument 1770 nicvf_disable_intr(struct nicvf * nic,int int_type,int q_idx) nicvf_disable_intr() argument 1784 nicvf_clear_intr(struct nicvf * nic,int int_type,int q_idx) nicvf_clear_intr() argument 1798 nicvf_is_intr_enabled(struct nicvf * nic,int int_type,int q_idx) nicvf_is_intr_enabled() argument 1811 nicvf_update_rq_stats(struct nicvf * nic,int rq_idx) nicvf_update_rq_stats() argument 1824 nicvf_update_sq_stats(struct nicvf * nic,int sq_idx) nicvf_update_sq_stats() argument 1838 nicvf_check_cqe_rx_errs(struct nicvf * nic,struct cqe_rx_t * cqe_rx) nicvf_check_cqe_rx_errs() argument 1923 nicvf_check_cqe_tx_errs(struct nicvf * nic,struct cqe_send_t * cqe_tx) nicvf_check_cqe_tx_errs() argument [all...] |
| H A D | nicvf_queues.h | 320 static inline u64 nicvf_iova_to_phys(struct nicvf *nic, dma_addr_t dma_addr) in nicvf_iova_to_phys() argument 323 if (nic->iommu_domain) in nicvf_iova_to_phys() 324 return iommu_iova_to_phys(nic->iommu_domain, dma_addr); in nicvf_iova_to_phys() 328 void nicvf_unmap_sndq_buffers(struct nicvf *nic, struct snd_queue *sq, 330 void nicvf_config_vlan_stripping(struct nicvf *nic, 332 int nicvf_set_qset_resources(struct nicvf *nic); 333 int nicvf_config_data_transfer(struct nicvf *nic, bool enable); 334 void nicvf_qset_config(struct nicvf *nic, bool enable); 335 void nicvf_cmp_queue_config(struct nicvf *nic, struct queue_set *qs, 338 void nicvf_sq_enable(struct nicvf *nic, struct snd_queue *sq, int qidx); [all …]
|
| H A D | nic.h | 632 void nicvf_config_rss(struct nicvf *nic); 633 void nicvf_set_rss_key(struct nicvf *nic); 635 void nicvf_update_stats(struct nicvf *nic); 636 void nicvf_update_lmac_stats(struct nicvf *nic);
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_tc.c | 35 static void otx2_get_egress_burst_cfg(struct otx2_nic *nic, u32 burst, in otx2_get_egress_burst_cfg() argument 41 if (is_dev_otx2(nic->pdev)) { in otx2_get_egress_burst_cfg() 103 u64 otx2_get_txschq_rate_regval(struct otx2_nic *nic, in otx2_get_txschq_rate_regval() argument 111 otx2_get_egress_burst_cfg(nic, burst, &burst_exp, &burst_mantissa); in otx2_get_txschq_rate_regval() 114 if (is_dev_otx2(nic->pdev)) { in otx2_get_txschq_rate_regval() 131 static int otx2_set_matchall_egress_rate(struct otx2_nic *nic, in otx2_set_matchall_egress_rate() argument 134 struct otx2_hw *hw = &nic->hw; in otx2_set_matchall_egress_rate() 141 mutex_lock(&nic->mbox.lock); in otx2_set_matchall_egress_rate() 142 req = otx2_mbox_alloc_msg_nix_txschq_cfg(&nic->mbox); in otx2_set_matchall_egress_rate() 144 mutex_unlock(&nic in otx2_set_matchall_egress_rate() 158 otx2_tc_validate_flow(struct otx2_nic * nic,struct flow_action * actions,struct netlink_ext_ack * extack) otx2_tc_validate_flow() argument 214 otx2_tc_egress_matchall_install(struct otx2_nic * nic,struct tc_cls_matchall_offload * cls) otx2_tc_egress_matchall_install() argument 258 otx2_tc_egress_matchall_delete(struct otx2_nic * nic,struct tc_cls_matchall_offload * cls) otx2_tc_egress_matchall_delete() argument 274 otx2_tc_act_set_hw_police(struct otx2_nic * nic,struct otx2_tc_flow * node) otx2_tc_act_set_hw_police() argument 309 otx2_tc_act_set_police(struct otx2_nic * nic,struct otx2_tc_flow * node,struct flow_cls_offload * f,u64 rate,u32 burst,u32 mark,struct npc_install_flow_req * req,bool pps) otx2_tc_act_set_police() argument 342 otx2_tc_update_mcast(struct otx2_nic * nic,struct npc_install_flow_req * req,struct netlink_ext_ack * extack,struct otx2_tc_flow * node,struct nix_mcast_grp_update_req * ureq,u8 num_intf) otx2_tc_update_mcast() argument 415 otx2_tc_parse_actions(struct otx2_nic * nic,struct flow_action * flow_action,struct npc_install_flow_req * req,struct flow_cls_offload * f,struct otx2_tc_flow * node) otx2_tc_parse_actions() argument 554 otx2_tc_process_vlan(struct otx2_nic * nic,struct flow_msg * flow_spec,struct flow_msg * flow_mask,struct flow_rule * rule,struct npc_install_flow_req * req,bool is_inner) otx2_tc_process_vlan() argument 610 otx2_tc_prepare_flow(struct otx2_nic * nic,struct otx2_tc_flow * node,struct flow_cls_offload * f,struct npc_install_flow_req * req) otx2_tc_prepare_flow() argument 1023 otx2_add_mcam_flow_entry(struct otx2_nic * nic,struct npc_install_flow_req * req) otx2_add_mcam_flow_entry() argument 1050 otx2_del_mcam_flow_entry(struct otx2_nic * nic,u16 entry,u16 * cntr_val) otx2_del_mcam_flow_entry() argument 1091 otx2_tc_update_mcam_table_del_req(struct otx2_nic * nic,struct otx2_flow_config * flow_cfg,struct otx2_tc_flow * node) otx2_tc_update_mcam_table_del_req() argument 1135 otx2_tc_update_mcam_table_add_req(struct otx2_nic * nic,struct otx2_flow_config * flow_cfg,struct otx2_tc_flow * node) otx2_tc_update_mcam_table_add_req() argument 1169 otx2_tc_update_mcam_table(struct otx2_nic * nic,struct otx2_flow_config * flow_cfg,struct otx2_tc_flow * node,bool add_req) otx2_tc_update_mcam_table() argument 1180 otx2_tc_del_flow(struct otx2_nic * nic,struct flow_cls_offload * tc_flow_cmd) otx2_tc_del_flow() argument 1240 otx2_tc_add_flow(struct otx2_nic * nic,struct flow_cls_offload * tc_flow_cmd) otx2_tc_add_flow() argument 1361 otx2_tc_get_flow_stats(struct otx2_nic * nic,struct flow_cls_offload * tc_flow_cmd) otx2_tc_get_flow_stats() argument 1418 otx2_setup_tc_cls_flower(struct otx2_nic * nic,struct flow_cls_offload * cls_flower) otx2_setup_tc_cls_flower() argument 1434 otx2_tc_ingress_matchall_install(struct otx2_nic * nic,struct tc_cls_matchall_offload * cls) otx2_tc_ingress_matchall_install() argument 1483 otx2_tc_ingress_matchall_delete(struct otx2_nic * nic,struct tc_cls_matchall_offload * cls) otx2_tc_ingress_matchall_delete() argument 1499 otx2_setup_tc_ingress_matchall(struct otx2_nic * nic,struct tc_cls_matchall_offload * cls_matchall) otx2_setup_tc_ingress_matchall() argument 1518 struct otx2_nic *nic = cb_priv; otx2_setup_tc_block_ingress_cb() local 1543 otx2_setup_tc_egress_matchall(struct otx2_nic * nic,struct tc_cls_matchall_offload * cls_matchall) otx2_setup_tc_egress_matchall() argument 1562 struct otx2_nic *nic = cb_priv; otx2_setup_tc_block_egress_cb() local 1582 struct otx2_nic *nic = netdev_priv(netdev); otx2_setup_tc_block() local 1617 otx2_init_tc(struct otx2_nic * nic) otx2_init_tc() argument 1632 otx2_shutdown_tc(struct otx2_nic * nic) otx2_shutdown_tc() argument 1638 otx2_tc_config_ingress_rule(struct otx2_nic * nic,struct otx2_tc_flow * node) otx2_tc_config_ingress_rule() argument 1661 otx2_tc_apply_ingress_police_rules(struct otx2_nic * nic) otx2_tc_apply_ingress_police_rules() argument [all...] |
| H A D | otx2_ptp.c | 19 if (!ptp->nic) in is_tstmp_atomic_update_supported() 22 mutex_lock(&ptp->nic->mbox.lock); in is_tstmp_atomic_update_supported() 23 req = otx2_mbox_alloc_msg_ptp_get_cap(&ptp->nic->mbox); in is_tstmp_atomic_update_supported() 25 mutex_unlock(&ptp->nic->mbox.lock); in is_tstmp_atomic_update_supported() 29 err = otx2_sync_mbox_msg(&ptp->nic->mbox); in is_tstmp_atomic_update_supported() 31 mutex_unlock(&ptp->nic->mbox.lock); in is_tstmp_atomic_update_supported() 34 rsp = (struct ptp_get_cap_rsp *)otx2_mbox_get_rsp(&ptp->nic->mbox.mbox, 0, in is_tstmp_atomic_update_supported() 36 mutex_unlock(&ptp->nic->mbox.lock); in is_tstmp_atomic_update_supported() 51 struct otx2_nic *pfvf = ptp->nic; in otx2_ptp_hw_adjtime() 55 if (!ptp->nic) in otx2_ptp_hw_adjtime() [all …]
|
| H A D | cn20k.c | 260 int cn20k_tc_free_mcam_entry(struct otx2_nic *nic, u16 entry) 265 mutex_lock(&nic->mbox.lock); in cn20k_tc_free_mcam_entry() 266 req = otx2_mbox_alloc_msg_npc_mcam_free_entry(&nic->mbox); in cn20k_tc_free_mcam_entry() 268 mutex_unlock(&nic->mbox.lock); in cn20k_tc_free_mcam_entry() 274 err = otx2_sync_mbox_msg(&nic->mbox); in cn20k_tc_free_mcam_entry() 276 mutex_unlock(&nic->mbox.lock); in cn20k_tc_free_mcam_entry() 280 mutex_unlock(&nic->mbox.lock); in cn20k_tc_free_mcam_entry() 285 static bool cn20k_tc_check_entry_shiftable(struct otx2_nic *nic, 311 dev_err(nic->dev, "Rule %d cannot be shifted to %d\n", in cn20k_tc_check_entry_shiftable() 324 void cn20k_tc_update_mcam_table_del_req(struct otx2_nic *nic, 261 cn20k_tc_free_mcam_entry(struct otx2_nic * nic,u16 entry) cn20k_tc_free_mcam_entry() argument 286 cn20k_tc_check_entry_shiftable(struct otx2_nic * nic,struct otx2_flow_config * flow_cfg,struct otx2_tc_flow * node,int index,bool error) cn20k_tc_check_entry_shiftable() argument 325 cn20k_tc_update_mcam_table_del_req(struct otx2_nic * nic,struct otx2_flow_config * flow_cfg,struct otx2_tc_flow * node) cn20k_tc_update_mcam_table_del_req() argument 384 cn20k_tc_update_mcam_table_add_req(struct otx2_nic * nic,struct otx2_flow_config * flow_cfg,struct otx2_tc_flow * node) cn20k_tc_update_mcam_table_add_req() argument 428 __cn20k_tc_alloc_entry(struct otx2_nic * nic,struct npc_install_flow_req * flow_req,u16 * entry,u8 * type,u32 tc_priority,bool hw_priority) __cn20k_tc_alloc_entry() argument 474 cn20k_tc_alloc_entry(struct otx2_nic * nic,struct flow_cls_offload * tc_flow_cmd,struct otx2_tc_flow * new_node,struct npc_install_flow_req * flow_req) cn20k_tc_alloc_entry() argument [all...] |
| H A D | otx2_common.h | 316 struct otx2_nic *nic; 688 static inline void __iomem *otx2_get_regaddr(struct otx2_nic *nic, u64 offset) 694 blkaddr = nic->nix_blkaddr; in otx2_get_regaddr() 710 return nic->reg_base + offset; in otx2_get_regaddr() 713 static inline void otx2_write64(struct otx2_nic *nic, u64 offset, u64 val) 715 void __iomem *addr = otx2_get_regaddr(nic, offset); in otx2_write64() 720 static inline u64 otx2_read64(struct otx2_nic *nic, u64 offset) 722 void __iomem *addr = otx2_get_regaddr(nic, offset); in otx2_read64() 1185 int otx2_init_tc(struct otx2_nic *nic); 1186 void otx2_shutdown_tc(struct otx2_nic *nic); 317 struct otx2_nic *nic; global() member 689 otx2_get_regaddr(struct otx2_nic * nic,u64 offset) otx2_get_regaddr() argument 714 otx2_write64(struct otx2_nic * nic,u64 offset,u64 val) otx2_write64() argument 721 otx2_read64(struct otx2_nic * nic,u64 offset) otx2_read64() argument [all...] |
| /linux/drivers/net/ethernet/aquantia/atlantic/ |
| H A D | aq_macsec.c | 24 static int aq_clear_txsc(struct aq_nic_s *nic, const int txsc_idx, 26 static int aq_clear_txsa(struct aq_nic_s *nic, struct aq_macsec_txsc *aq_txsc, 28 static int aq_clear_rxsc(struct aq_nic_s *nic, const int rxsc_idx, 30 static int aq_clear_rxsa(struct aq_nic_s *nic, struct aq_macsec_rxsc *aq_rxsc, 32 static int aq_clear_secy(struct aq_nic_s *nic, const struct macsec_secy *secy, 34 static int aq_apply_macsec_cfg(struct aq_nic_s *nic); 35 static int aq_apply_secy_cfg(struct aq_nic_s *nic, 292 struct aq_nic_s *nic = macsec_netdev_priv(ctx->netdev); in aq_mdo_dev_open() local 295 if (netif_carrier_ok(nic->ndev)) in aq_mdo_dev_open() 296 ret = aq_apply_secy_cfg(nic, ctx->secy); in aq_mdo_dev_open() [all …]
|
| H A D | aq_macsec.h | 122 int aq_macsec_init(struct aq_nic_s *nic); 123 void aq_macsec_free(struct aq_nic_s *nic); 124 int aq_macsec_enable(struct aq_nic_s *nic); 125 void aq_macsec_work(struct aq_nic_s *nic); 126 u64 *aq_macsec_get_stats(struct aq_nic_s *nic, u64 *data); 127 int aq_macsec_rx_sa_cnt(struct aq_nic_s *nic); 128 int aq_macsec_tx_sc_cnt(struct aq_nic_s *nic); 129 int aq_macsec_tx_sa_cnt(struct aq_nic_s *nic);
|
| H A D | aq_drvinfo.c | 90 const struct aq_nic_s *nic = data; in aq_hwmon_is_visible() local 95 if (channel == 0 && !nic->aq_fw_ops->get_phy_temp) in aq_hwmon_is_visible() 97 else if (channel == 1 && !nic->aq_fw_ops->get_mac_temp && in aq_hwmon_is_visible() 98 !nic->aq_hw_ops->hw_get_mac_temp) in aq_hwmon_is_visible()
|
| /linux/drivers/firmware/ |
| H A D | iscsi_ibft.c | 175 struct ibft_nic *nic; member 294 struct ibft_nic *nic = entry->nic; in ibft_attr_show_nic() local 299 if (!nic) in ibft_attr_show_nic() 304 str += sprintf(str, "%d\n", nic->hdr.index); in ibft_attr_show_nic() 307 str += sprintf(str, "%d\n", nic->hdr.flags); in ibft_attr_show_nic() 310 str += sprintf_ipaddr(str, nic->ip_addr); in ibft_attr_show_nic() 313 if (nic->subnet_mask_prefix > 32) in ibft_attr_show_nic() 316 val = cpu_to_be32(~((1 << (32-nic->subnet_mask_prefix))-1)); in ibft_attr_show_nic() 320 str += sprintf(str, "%d\n", nic->subnet_mask_prefix); in ibft_attr_show_nic() 323 str += sprintf(str, "%d\n", nic->origin); in ibft_attr_show_nic() [all …]
|
| /linux/drivers/net/ethernet/tehuti/ |
| H A D | tehuti.c | 99 struct pci_nic *nic = pci_get_drvdata(pdev); in print_hw_id() local 107 nic->port_num == 1 ? "" : ", 2-Port"); in print_hw_id() 109 readl(nic->regs + SROM_VER), readl(nic->regs + FPGA_VER) & 0xFFF, in print_hw_id() 110 readl(nic->regs + FPGA_SEED), in print_hw_id() 115 static void print_fw_id(struct pci_nic *nic) in print_fw_id() argument 117 pr_info("fw 0x%x\n", readl(nic->regs + FW_VER)); in print_fw_id() 426 #define BDX_IRQ_TYPE ((priv->nic->irq_type == IRQ_MSI) ? 0 : IRQF_SHARED) in bdx_hw_start() 625 print_fw_id(priv->nic); in bdx_open() 636 return (offset > (u32) (BDX_REGS_SIZE / priv->nic->port_num)) ? in bdx_range_check() 1889 struct pci_nic *nic; in bdx_probe() local [all …]
|
| /linux/Documentation/devicetree/bindings/net/ |
| H A D | hisilicon-hns-nic.txt | |
| /linux/arch/arm/boot/dts/aspeed/ |
| H A D | aspeed-bmc-facebook-greatlakes.dts | 247 /*B0-B7*/ "power-bmc-nic","presence-ocp-debug", 250 /*C0-C7*/ "presence-ocp-nic","","","reset-cause-nic-primary", 251 "reset-cause-nic-secondary","","","", 265 /*M0-M7*/ "","power-nic-bmc-enable","","usb-bmc-enable","","reset-cause-usb-hub","","",
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| H A D | hclge_tm.c | 273 hdev->vport[0].nic.kinfo.tc_map_mode = HNAE3_TC_MAP_MODE_PRIO; in hclge_dscp_to_prio_map_init() 274 hdev->vport[0].nic.kinfo.dscp_app_cnt = 0; in hclge_dscp_to_prio_map_init() 276 hdev->vport[0].nic.kinfo.dscp_prio[i] = HNAE3_PRIO_ID_INVALID; in hclge_dscp_to_prio_map_init() 292 pri_id = hdev->vport[0].nic.kinfo.dscp_prio[i]; in hclge_dscp_to_tc_map() 301 pri_id = hdev->vport[0].nic.kinfo.dscp_prio[j]; in hclge_dscp_to_tc_map() 589 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_tm_qs_shaper_cfg() 637 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_vport_get_max_rss_size() 658 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_vport_get_tqp_num() 677 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_tm_update_kinfo_rss_size() 717 struct hnae3_knic_private_info *kinfo = &vport->nic in hclge_tm_vport_tc_info_update() [all...] |
| H A D | hclge_mbx.c | 196 if (req->msg.param[i].tqp_index >= vport->nic.kinfo.num_tqps) { in hclge_get_ring_chain_from_mbx() 199 vport->nic.kinfo.num_tqps - 1U); in hclge_get_ring_chain_from_mbx() 207 hclge_get_queue_id(vport->nic.kinfo.tqp in hclge_get_ring_chain_from_mbx() 223 hclge_get_queue_id(vport->nic.kinfo.tqp in hclge_get_ring_chain_from_mbx() 337 struct hnae3_handle *handle = &vport->nic; in hclge_set_vf_promisc_mode() 439 struct hnae3_handle *handle = &vport->nic; in hclge_set_vf_vlan_cfg() 490 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_get_basic_info() 519 queue_info->rss_size = cpu_to_le16(vport->nic.kinfo.rss_size); in hclge_get_vf_queue_info() 624 struct hnae3_handle *handle = &vport->nic; in hclge_mbx_reset_vf_queue() 725 struct hnae3_handle *handle = &vport->nic; in hclge_get_queue_id_in_pf() [all...] |
| H A D | hclge_devlink.c | 77 struct hnae3_handle *h = &hdev->vport->nic; in hclge_devlink_reload_down() 112 struct hnae3_handle *h = &hdev->vport->nic; in hclge_devlink_reload_up()
|
| H A D | hclge_main.c | 547 handle = &hdev->vport[0].nic; in hclge_update_stats_for_all() 1635 struct hnae3_knic_private_info *kinfo = &vport->nic.kinfo; in hclge_assign_tqp() 1642 hdev->htqp[i].q.handle = &vport->nic; in hclge_assign_tqp() 1666 struct hnae3_handle *nic = &vport->nic; in hclge_knic_setup() local 1667 struct hnae3_knic_private_info *kinfo = &nic->kinfo; in hclge_knic_setup() 1692 struct hnae3_handle *nic = &vport->nic; in hclge_map_tqp_to_vport() local 1696 kinfo = &nic->kinfo; in hclge_map_tqp_to_vport() 1734 struct hnae3_handle *nic in hclge_vport_setup() local 2417 struct hnae3_handle *nic = &vport->nic; hclge_init_roce_base_info() local 8144 struct hnae3_handle *nic = &vport->nic; hclge_update_port_base_vlan_cfg() local [all...] |
| /linux/drivers/net/ethernet/qlogic/qlcnic/ |
| H A D | qlcnic_ctx.c | 880 "Failed to get nic info%d\n", err); in qlcnic_82xx_get_nic_info() 905 struct qlcnic_info *nic) in qlcnic_82xx_set_nic_info() argument 924 nic_info->pci_func = cpu_to_le16(nic->pci_func); in qlcnic_82xx_set_nic_info() 925 nic_info->op_mode = cpu_to_le16(nic->op_mode); in qlcnic_82xx_set_nic_info() 926 nic_info->phys_port = cpu_to_le16(nic->phys_port); in qlcnic_82xx_set_nic_info() 927 nic_info->switch_mode = cpu_to_le16(nic->switch_mode); in qlcnic_82xx_set_nic_info() 928 nic_info->capabilities = cpu_to_le32(nic->capabilities); in qlcnic_82xx_set_nic_info() 929 nic_info->max_mac_filters = nic->max_mac_filters; in qlcnic_82xx_set_nic_info() 930 nic_info->max_tx_ques = cpu_to_le16(nic->max_tx_ques); in qlcnic_82xx_set_nic_info() 931 nic_info->max_rx_ques = cpu_to_le16(nic in qlcnic_82xx_set_nic_info() 965 u16 nic = 0, fcoe = 0, iscsi = 0; qlcnic_82xx_get_pci_info() local [all...] |
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
| H A D | hclgevf_devlink.c | 40 struct hnae3_handle *h = &hdev->nic; in hclgevf_devlink_reload_down() 75 struct hnae3_handle *h = &hdev->nic; in hclgevf_devlink_reload_up()
|
| /linux/drivers/net/ethernet/netronome/nfp/ |
| H A D | Makefile | 45 nic/main.o 87 nfp-$(CONFIG_DCB) += nic/dcb.o
|
| /linux/drivers/net/ethernet/marvell/octeontx2/ |
| H A D | Makefile | 8 obj-$(CONFIG_OCTEONTX2_PF) += nic/
|
| /linux/drivers/net/ethernet/sfc/falcon/ |
| H A D | Makefile | 2 sfc-falcon-y += efx.o nic.o farch.o falcon.o tx.o rx.o selftest.o \
|
| /linux/Documentation/networking/device_drivers/ethernet/wangxun/ |
| H A D | txgbe.rst | 19 If you got any problem, contact Wangxun support team via nic-support@net-swift.com
|