Searched refs:ufdev (Results 1 – 8 of 8) sorted by relevance
/linux-6.3-rc2/drivers/infiniband/hw/usnic/ |
A D | usnic_fwd.c | 88 ufdev = kzalloc(sizeof(*ufdev), GFP_KERNEL); in usnic_fwd_dev_alloc() 89 if (!ufdev) in usnic_fwd_dev_alloc() 92 ufdev->pdev = pdev; in usnic_fwd_dev_alloc() 95 BUILD_BUG_ON(sizeof(ufdev->name) != sizeof(ufdev->netdev->name)); in usnic_fwd_dev_alloc() 96 strcpy(ufdev->name, ufdev->netdev->name); in usnic_fwd_dev_alloc() 98 return ufdev; in usnic_fwd_dev_alloc() 103 kfree(ufdev); in usnic_fwd_dev_free() 109 memcpy(&ufdev->mac, mac, sizeof(ufdev->mac)); in usnic_fwd_set_mac() 124 ufdev->inaddr = 0; in usnic_fwd_del_ipaddr() 145 ufdev->mtu = mtu; in usnic_fwd_set_mtu() [all …]
|
A D | usnic_fwd.h | 65 struct usnic_fwd_dev *ufdev; member 75 void usnic_fwd_dev_free(struct usnic_fwd_dev *ufdev); 77 void usnic_fwd_set_mac(struct usnic_fwd_dev *ufdev, const char mac[ETH_ALEN]); 78 void usnic_fwd_add_ipaddr(struct usnic_fwd_dev *ufdev, __be32 inaddr); 79 void usnic_fwd_del_ipaddr(struct usnic_fwd_dev *ufdev); 80 void usnic_fwd_carrier_up(struct usnic_fwd_dev *ufdev); 81 void usnic_fwd_carrier_down(struct usnic_fwd_dev *ufdev); 82 void usnic_fwd_set_mtu(struct usnic_fwd_dev *ufdev, unsigned int mtu); 91 usnic_fwd_alloc_flow(struct usnic_fwd_dev *ufdev, struct filter *filter, 94 int usnic_fwd_enable_qp(struct usnic_fwd_dev *ufdev, int vnic_idx, int qp_idx); [all …]
|
A D | usnic_ib_main.c | 157 if (!us_ibdev->ufdev->link_up && in usnic_ib_handle_usdev_event() 166 } else if (us_ibdev->ufdev->link_up && in usnic_ib_handle_usdev_event() 184 sizeof(us_ibdev->ufdev->mac))) { in usnic_ib_handle_usdev_event() 190 us_ibdev->ufdev->mac, in usnic_ib_handle_usdev_event() 205 us_ibdev->ufdev->mtu, netdev->mtu); in usnic_ib_handle_usdev_event() 257 usnic_fwd_del_ipaddr(us_ibdev->ufdev); in usnic_ib_handle_inet_event() 268 &us_ibdev->ufdev->inaddr); in usnic_ib_handle_inet_event() 387 if (!us_ibdev->ufdev) { in usnic_ib_device_add() 438 us_ibdev->ufdev->link_up, us_ibdev->ufdev->mtu); in usnic_ib_device_add() 442 usnic_fwd_dev_free(us_ibdev->ufdev); in usnic_ib_device_add() [all …]
|
A D | usnic_ib_qp_grp.c | 127 status = usnic_fwd_enable_qp(qp_grp->ufdev, vnic_idx, in enable_qp_grp() 131 res->vnic_idx, qp_grp->ufdev->name, in enable_qp_grp() 142 usnic_fwd_disable_qp(qp_grp->ufdev, vnic_idx, in enable_qp_grp() 168 status = usnic_fwd_disable_qp(qp_grp->ufdev, vnic_idx, in disable_qp_grp() 173 qp_grp->ufdev->name, in disable_qp_grp() 228 flow = usnic_fwd_alloc_flow(qp_grp->ufdev, &filter, &uaction); in create_roce_custom_flow() 301 flow = usnic_fwd_alloc_flow(qp_grp->ufdev, &filter, &uaction); in create_udp_flow() 668 struct usnic_fwd_dev *ufdev, struct usnic_ib_vf *vf, in usnic_ib_qp_grp_create() argument 701 qp_grp->ufdev = ufdev; in usnic_ib_qp_grp_create()
|
A D | usnic_ib_verbs.c | 206 us_ibdev->ufdev, in find_free_vf_and_create_qp_grp() 226 ret = usnic_ib_qp_grp_create(qp_grp, us_ibdev->ufdev, in find_free_vf_and_create_qp_grp() 293 usnic_mac_ip_to_gid(us_ibdev->ufdev->mac, us_ibdev->ufdev->inaddr, in usnic_ib_query_device() 359 if (!us_ibdev->ufdev->link_up) { in usnic_ib_query_port() 362 } else if (!us_ibdev->ufdev->inaddr) { in usnic_ib_query_port() 376 props->active_mtu = iboe_get_mtu(us_ibdev->ufdev->mtu); in usnic_ib_query_port() 378 props->max_msg_sz = us_ibdev->ufdev->mtu; in usnic_ib_query_port() 435 usnic_mac_ip_to_gid(us_ibdev->ufdev->mac, us_ibdev->ufdev->inaddr, in usnic_ib_query_gid()
|
A D | usnic_ib_qp_grp.h | 53 struct usnic_fwd_dev *ufdev; member 93 struct usnic_fwd_dev *ufdev, struct usnic_ib_vf *vf,
|
A D | usnic_ib.h | 77 struct usnic_fwd_dev *ufdev; member
|
A D | usnic_ib_sysfs.c | 92 us_ibdev->ufdev->mac, in config_show()
|
Completed in 16 milliseconds