Searched refs:ufdev (Results 1 – 8 of 8) sorted by relevance
/kernel/linux/linux-5.10/drivers/infiniband/hw/usnic/ |
D | usnic_fwd.c | 41 static int usnic_fwd_devcmd_locked(struct usnic_fwd_dev *ufdev, int vnic_idx, in usnic_fwd_devcmd_locked() argument 46 struct net_device *netdev = ufdev->netdev; in usnic_fwd_devcmd_locked() 48 lockdep_assert_held(&ufdev->lock); in usnic_fwd_devcmd_locked() 58 ufdev->name, vnic_idx, cmd); in usnic_fwd_devcmd_locked() 61 ufdev->name, vnic_idx, cmd, in usnic_fwd_devcmd_locked() 66 ufdev->name, vnic_idx, cmd); in usnic_fwd_devcmd_locked() 72 static int usnic_fwd_devcmd(struct usnic_fwd_dev *ufdev, int vnic_idx, in usnic_fwd_devcmd() argument 77 spin_lock(&ufdev->lock); in usnic_fwd_devcmd() 78 status = usnic_fwd_devcmd_locked(ufdev, vnic_idx, cmd, a0, a1); in usnic_fwd_devcmd() 79 spin_unlock(&ufdev->lock); in usnic_fwd_devcmd() [all …]
|
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, 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 …]
|
D | usnic_ib_main.c | 157 if (!us_ibdev->ufdev->link_up && in usnic_ib_handle_usdev_event() 159 usnic_fwd_carrier_up(us_ibdev->ufdev); in usnic_ib_handle_usdev_event() 166 } else if (us_ibdev->ufdev->link_up && in usnic_ib_handle_usdev_event() 168 usnic_fwd_carrier_down(us_ibdev->ufdev); in usnic_ib_handle_usdev_event() 183 if (!memcmp(us_ibdev->ufdev->mac, netdev->dev_addr, 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() 192 usnic_fwd_set_mac(us_ibdev->ufdev, netdev->dev_addr); in usnic_ib_handle_usdev_event() 202 if (us_ibdev->ufdev->mtu != netdev->mtu) { in usnic_ib_handle_usdev_event() 205 us_ibdev->ufdev->mtu, netdev->mtu); in usnic_ib_handle_usdev_event() [all …]
|
D | usnic_ib_qp_grp.c | 128 status = usnic_fwd_enable_qp(qp_grp->ufdev, vnic_idx, in enable_qp_grp() 132 res->vnic_idx, qp_grp->ufdev->name, in enable_qp_grp() 143 usnic_fwd_disable_qp(qp_grp->ufdev, vnic_idx, in enable_qp_grp() 169 status = usnic_fwd_disable_qp(qp_grp->ufdev, vnic_idx, in disable_qp_grp() 174 qp_grp->ufdev->name, in disable_qp_grp() 229 flow = usnic_fwd_alloc_flow(qp_grp->ufdev, &filter, &uaction); in create_roce_custom_flow() 302 flow = usnic_fwd_alloc_flow(qp_grp->ufdev, &filter, &uaction); in create_udp_flow() 669 usnic_ib_qp_grp_create(struct usnic_fwd_dev *ufdev, struct usnic_ib_vf *vf, in usnic_ib_qp_grp_create() argument 708 qp_grp->ufdev = ufdev; in usnic_ib_qp_grp_create()
|
D | usnic_ib_verbs.c | 205 qp_grp = usnic_ib_qp_grp_create(us_ibdev->ufdev, in find_free_vf_and_create_qp_grp() 226 qp_grp = usnic_ib_qp_grp_create(us_ibdev->ufdev, vf, in find_free_vf_and_create_qp_grp() 294 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()
|
D | usnic_ib_qp_grp.h | 53 struct usnic_fwd_dev *ufdev; member 93 usnic_ib_qp_grp_create(struct usnic_fwd_dev *ufdev, struct usnic_ib_vf *vf,
|
D | usnic_ib.h | 77 struct usnic_fwd_dev *ufdev; member
|
D | usnic_ib_sysfs.c | 100 us_ibdev->ufdev->mac, in config_show()
|