@@ -812,7 +812,7 @@ static void lan91c111_interrupt_work(FAR void *arg)
812812 * thread has been configured.
813813 */
814814
815- net_lock ( );
815+ netdev_lock ( dev );
816816
817817 /* Process pending Ethernet interrupts */
818818
@@ -873,7 +873,7 @@ static void lan91c111_interrupt_work(FAR void *arg)
873873 }
874874 }
875875
876- net_unlock ( );
876+ netdev_unlock ( dev );
877877
878878 /* Re-enable Ethernet interrupts */
879879
@@ -949,7 +949,7 @@ static int lan91c111_ifup(FAR struct net_driver_s *dev)
949949 dev -> d_ipv6addr [6 ], dev -> d_ipv6addr [7 ]);
950950#endif
951951
952- net_lock ( );
952+ netdev_lock ( dev );
953953
954954 /* Initialize PHYs, Ethernet interface, and setup up Ethernet interrupts */
955955
@@ -974,7 +974,7 @@ static int lan91c111_ifup(FAR struct net_driver_s *dev)
974974
975975 copyto16 (priv , ADDR0_REG , & dev -> d_mac .ether , sizeof (dev -> d_mac .ether ));
976976
977- net_unlock ( );
977+ netdev_unlock ( dev );
978978
979979 /* Enable the Ethernet interrupt */
980980
@@ -1056,7 +1056,7 @@ static void lan91c111_txavail_work(FAR void *arg)
10561056 * thread has been configured.
10571057 */
10581058
1059- net_lock ( );
1059+ netdev_lock ( dev );
10601060
10611061 /* Ignore the notification if the interface is not yet up */
10621062
@@ -1074,7 +1074,7 @@ static void lan91c111_txavail_work(FAR void *arg)
10741074 }
10751075 }
10761076
1077- net_unlock ( );
1077+ netdev_unlock ( dev );
10781078}
10791079
10801080/****************************************************************************
@@ -1187,9 +1187,9 @@ static int lan91c111_addmac(FAR struct net_driver_s *dev,
11871187
11881188 /* Add the MAC address to the hardware multicast routing table */
11891189
1190- net_lock ( );
1190+ netdev_lock ( dev );
11911191 modifyreg16 (priv , MCAST_REG1 + off , 0 , 1 << bit );
1192- net_unlock ( );
1192+ netdev_unlock ( dev );
11931193
11941194 return OK ;
11951195}
@@ -1234,9 +1234,9 @@ static int lan91c111_rmmac(FAR struct net_driver_s *dev,
12341234
12351235 /* Remove the MAC address from the hardware multicast routing table */
12361236
1237- net_lock ( );
1237+ netdev_lock ( dev );
12381238 modifyreg16 (priv , MCAST_REG1 + off , 1 << bit , 0 );
1239- net_unlock ( );
1239+ netdev_unlock ( dev );
12401240
12411241 return OK ;
12421242}
@@ -1269,7 +1269,7 @@ static int lan91c111_ioctl(FAR struct net_driver_s *dev, int cmd,
12691269 FAR struct mii_ioctl_data_s * req = (FAR void * )arg ;
12701270 int ret = OK ;
12711271
1272- net_lock ( );
1272+ netdev_lock ( dev );
12731273
12741274 /* Decode and dispatch the driver-specific IOCTL command */
12751275
@@ -1292,7 +1292,7 @@ static int lan91c111_ioctl(FAR struct net_driver_s *dev, int cmd,
12921292 ret = - ENOTTY ; /* Special return value for this case */
12931293 }
12941294
1295- net_unlock ( );
1295+ netdev_unlock ( dev );
12961296 return ret ;
12971297}
12981298#endif
0 commit comments