Searched refs:mah (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.15/drivers/power/supply/ |
D | ab8500_fg.c | 125 int mah; member 1038 di->bat_cap.mah, in ab8500_fg_calc_cap_charging() 1042 if (di->bat_cap.mah + di->accu_charge > 0) in ab8500_fg_calc_cap_charging() 1043 di->bat_cap.mah += di->accu_charge; in ab8500_fg_calc_cap_charging() 1045 di->bat_cap.mah = 0; in ab8500_fg_calc_cap_charging() 1050 if (di->bat_cap.mah >= di->bat_cap.max_mah_design || in ab8500_fg_calc_cap_charging() 1052 di->bat_cap.mah = di->bat_cap.max_mah_design; in ab8500_fg_calc_cap_charging() 1055 ab8500_fg_fill_cap_sample(di, di->bat_cap.mah); in ab8500_fg_calc_cap_charging() 1057 ab8500_fg_convert_mah_to_permille(di, di->bat_cap.mah); in ab8500_fg_calc_cap_charging() 1063 return di->bat_cap.mah; in ab8500_fg_calc_cap_charging() [all …]
|
/Linux-v5.15/drivers/infiniband/hw/mlx4/ |
D | ah.c | 172 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()
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
D | ipoib.c | 631 struct mlx5_ib_ah *mah = to_mah(address); in mlx5i_xmit() local 634 mlx5i_sq_xmit(sq, skb, &mah->av, dqpn, ipriv->qkey, netdev_xmit_more()); in mlx5i_xmit()
|