Lines Matching refs:enic

28 int enic_dev_fw_info(struct enic *enic, struct vnic_devcmd_fw_info **fw_info)  in enic_dev_fw_info()  argument
32 spin_lock_bh(&enic->devcmd_lock); in enic_dev_fw_info()
33 err = vnic_dev_fw_info(enic->vdev, fw_info); in enic_dev_fw_info()
34 spin_unlock_bh(&enic->devcmd_lock); in enic_dev_fw_info()
39 int enic_dev_stats_dump(struct enic *enic, struct vnic_stats **vstats) in enic_dev_stats_dump() argument
43 spin_lock_bh(&enic->devcmd_lock); in enic_dev_stats_dump()
44 err = vnic_dev_stats_dump(enic->vdev, vstats); in enic_dev_stats_dump()
45 spin_unlock_bh(&enic->devcmd_lock); in enic_dev_stats_dump()
50 int enic_dev_add_station_addr(struct enic *enic) in enic_dev_add_station_addr() argument
54 if (!is_valid_ether_addr(enic->netdev->dev_addr)) in enic_dev_add_station_addr()
57 spin_lock_bh(&enic->devcmd_lock); in enic_dev_add_station_addr()
58 err = vnic_dev_add_addr(enic->vdev, enic->netdev->dev_addr); in enic_dev_add_station_addr()
59 spin_unlock_bh(&enic->devcmd_lock); in enic_dev_add_station_addr()
64 int enic_dev_del_station_addr(struct enic *enic) in enic_dev_del_station_addr() argument
68 if (!is_valid_ether_addr(enic->netdev->dev_addr)) in enic_dev_del_station_addr()
71 spin_lock_bh(&enic->devcmd_lock); in enic_dev_del_station_addr()
72 err = vnic_dev_del_addr(enic->vdev, enic->netdev->dev_addr); in enic_dev_del_station_addr()
73 spin_unlock_bh(&enic->devcmd_lock); in enic_dev_del_station_addr()
78 int enic_dev_packet_filter(struct enic *enic, int directed, int multicast, in enic_dev_packet_filter() argument
83 spin_lock_bh(&enic->devcmd_lock); in enic_dev_packet_filter()
84 err = vnic_dev_packet_filter(enic->vdev, directed, in enic_dev_packet_filter()
86 spin_unlock_bh(&enic->devcmd_lock); in enic_dev_packet_filter()
91 int enic_dev_add_addr(struct enic *enic, const u8 *addr) in enic_dev_add_addr() argument
95 spin_lock_bh(&enic->devcmd_lock); in enic_dev_add_addr()
96 err = vnic_dev_add_addr(enic->vdev, addr); in enic_dev_add_addr()
97 spin_unlock_bh(&enic->devcmd_lock); in enic_dev_add_addr()
102 int enic_dev_del_addr(struct enic *enic, const u8 *addr) in enic_dev_del_addr() argument
106 spin_lock_bh(&enic->devcmd_lock); in enic_dev_del_addr()
107 err = vnic_dev_del_addr(enic->vdev, addr); in enic_dev_del_addr()
108 spin_unlock_bh(&enic->devcmd_lock); in enic_dev_del_addr()
113 int enic_dev_notify_unset(struct enic *enic) in enic_dev_notify_unset() argument
117 spin_lock_bh(&enic->devcmd_lock); in enic_dev_notify_unset()
118 err = vnic_dev_notify_unset(enic->vdev); in enic_dev_notify_unset()
119 spin_unlock_bh(&enic->devcmd_lock); in enic_dev_notify_unset()
124 int enic_dev_hang_notify(struct enic *enic) in enic_dev_hang_notify() argument
128 spin_lock_bh(&enic->devcmd_lock); in enic_dev_hang_notify()
129 err = vnic_dev_hang_notify(enic->vdev); in enic_dev_hang_notify()
130 spin_unlock_bh(&enic->devcmd_lock); in enic_dev_hang_notify()
135 int enic_dev_set_ig_vlan_rewrite_mode(struct enic *enic) in enic_dev_set_ig_vlan_rewrite_mode() argument
139 spin_lock_bh(&enic->devcmd_lock); in enic_dev_set_ig_vlan_rewrite_mode()
140 err = vnic_dev_set_ig_vlan_rewrite_mode(enic->vdev, in enic_dev_set_ig_vlan_rewrite_mode()
142 spin_unlock_bh(&enic->devcmd_lock); in enic_dev_set_ig_vlan_rewrite_mode()
147 int enic_dev_enable(struct enic *enic) in enic_dev_enable() argument
151 spin_lock_bh(&enic->devcmd_lock); in enic_dev_enable()
152 err = vnic_dev_enable_wait(enic->vdev); in enic_dev_enable()
153 spin_unlock_bh(&enic->devcmd_lock); in enic_dev_enable()
158 int enic_dev_disable(struct enic *enic) in enic_dev_disable() argument
162 spin_lock_bh(&enic->devcmd_lock); in enic_dev_disable()
163 err = vnic_dev_disable(enic->vdev); in enic_dev_disable()
164 spin_unlock_bh(&enic->devcmd_lock); in enic_dev_disable()
169 int enic_dev_intr_coal_timer_info(struct enic *enic) in enic_dev_intr_coal_timer_info() argument
173 spin_lock_bh(&enic->devcmd_lock); in enic_dev_intr_coal_timer_info()
174 err = vnic_dev_intr_coal_timer_info(enic->vdev); in enic_dev_intr_coal_timer_info()
175 spin_unlock_bh(&enic->devcmd_lock); in enic_dev_intr_coal_timer_info()
183 struct enic *enic = netdev_priv(netdev); in enic_vlan_rx_add_vid() local
186 spin_lock_bh(&enic->devcmd_lock); in enic_vlan_rx_add_vid()
187 err = enic_add_vlan(enic, vid); in enic_vlan_rx_add_vid()
188 spin_unlock_bh(&enic->devcmd_lock); in enic_vlan_rx_add_vid()
196 struct enic *enic = netdev_priv(netdev); in enic_vlan_rx_kill_vid() local
199 spin_lock_bh(&enic->devcmd_lock); in enic_vlan_rx_kill_vid()
200 err = enic_del_vlan(enic, vid); in enic_vlan_rx_kill_vid()
201 spin_unlock_bh(&enic->devcmd_lock); in enic_vlan_rx_kill_vid()