Home
last modified time | relevance | path

Searched refs:mah (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/drivers/power/supply/
Dab8500_fg.c125 int mah; member
1036 di->bat_cap.mah, in ab8500_fg_calc_cap_charging()
1040 if (di->bat_cap.mah + di->accu_charge > 0) in ab8500_fg_calc_cap_charging()
1041 di->bat_cap.mah += di->accu_charge; in ab8500_fg_calc_cap_charging()
1043 di->bat_cap.mah = 0; in ab8500_fg_calc_cap_charging()
1048 if (di->bat_cap.mah >= di->bat_cap.max_mah_design || in ab8500_fg_calc_cap_charging()
1050 di->bat_cap.mah = di->bat_cap.max_mah_design; in ab8500_fg_calc_cap_charging()
1053 ab8500_fg_fill_cap_sample(di, di->bat_cap.mah); in ab8500_fg_calc_cap_charging()
1055 ab8500_fg_convert_mah_to_permille(di, di->bat_cap.mah); in ab8500_fg_calc_cap_charging()
1061 return di->bat_cap.mah; in ab8500_fg_calc_cap_charging()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dah.c172 struct mlx4_ib_ah *mah = to_mah(ah); in mlx4_ib_create_ah_slave() local
185 mah->av.ib.port_pd &= cpu_to_be32(0x7FFFFFFF); in mlx4_ib_create_ah_slave()
188 memcpy(mah->av.eth.s_mac, s_mac, 6); in mlx4_ib_create_ah_slave()
192 mah->av.eth.vlan = cpu_to_be16(vlan_tag); in mlx4_ib_create_ah_slave()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ipoib/
Dipoib.c660 struct mlx5_ib_ah *mah = to_mah(address); in mlx5i_xmit() local
663 mlx5i_sq_xmit(sq, skb, &mah->av, dqpn, ipriv->qkey, netdev_xmit_more()); in mlx5i_xmit()