| /linux/drivers/power/supply/ |
| H A D | pm8916_lbc.c | 82 static int pm8916_lbc_charger_configure(struct pm8916_lbc_charger *chg) in pm8916_lbc_charger_configure() argument 87 chg->charge_voltage_max = clamp_t(u32, chg->charge_voltage_max, in pm8916_lbc_charger_configure() 88 PM8916_LBC_CHGR_MIN_VOLTAGE, chg->charge_voltage_safe); in pm8916_lbc_charger_configure() 90 tmp = chg->charge_voltage_max - PM8916_LBC_CHGR_MIN_VOLTAGE; in pm8916_lbc_charger_configure() 92 chg->charge_voltage_max = PM8916_LBC_CHGR_MIN_VOLTAGE + tmp * PM8916_LBC_CHGR_VOLTAGE_STEP; in pm8916_lbc_charger_configure() 94 ret = regmap_write(chg->regmap, chg->reg[LBC_CHGR] + PM8916_LBC_CHGR_VDD_MAX, tmp); in pm8916_lbc_charger_configure() 98 chg->charge_current_max = min(chg->charge_current_max, chg->charge_current_safe); in pm8916_lbc_charger_configure() 100 tmp = clamp_t(u32, chg->charge_current_max, in pm8916_lbc_charger_configure() 103 tmp = chg->charge_current_max / PM8916_LBC_CHGR_MIN_CURRENT - 1; in pm8916_lbc_charger_configure() 104 chg->charge_current_max = (tmp + 1) * PM8916_LBC_CHGR_MIN_CURRENT; in pm8916_lbc_charger_configure() [all …]
|
| H A D | max77759_charger.c | 89 static inline int unlock_prot_regs(struct max77759_charger *chg, bool unlock) in unlock_prot_regs() argument 91 return regmap_update_bits(chg->regmap, MAX77759_CHGR_REG_CHG_CNFG_06, in unlock_prot_regs() 96 static int charger_input_valid(struct max77759_charger *chg) in charger_input_valid() argument 101 ret = regmap_read(chg->regmap, MAX77759_CHGR_REG_CHG_INT_OK, &val); in charger_input_valid() 109 static int get_online(struct max77759_charger *chg) in get_online() argument 114 ret = charger_input_valid(chg); in get_online() 118 ret = regmap_read(chg->regmap, MAX77759_CHGR_REG_CHG_DETAILS_02, &val); in get_online() 122 guard(mutex)(&chg->lock); in get_online() 125 (chg->mode == MAX77759_CHGR_MODE_CHG_BUCK_ON); in get_online() 128 static int get_status(struct max77759_charger *chg) in get_status() argument [all …]
|
| H A D | rt5033_charger.c | 32 struct rt5033_charger_data chg; member 134 struct rt5033_charger_data *chg = &charger->chg; in rt5033_init_const_charge() local 140 if (chg->const_uvolt < RT5033_CHARGER_CONST_VOLTAGE_LIMIT_MIN || in rt5033_init_const_charge() 141 chg->const_uvolt > RT5033_CHARGER_CONST_VOLTAGE_LIMIT_MAX) { in rt5033_init_const_charge() 147 if (chg->const_uvolt == RT5033_CHARGER_CONST_VOLTAGE_LIMIT_MIN) in rt5033_init_const_charge() 149 else if (chg->const_uvolt == RT5033_CHARGER_CONST_VOLTAGE_LIMIT_MAX) in rt5033_init_const_charge() 152 val = chg->const_uvolt; in rt5033_init_const_charge() 170 if (chg->eoc_uamp < RT5033_CHARGER_EOC_MIN || in rt5033_init_const_charge() 171 chg->eoc_uamp > RT5033_CHARGER_EOC_MAX) { in rt5033_init_const_charge() 177 if (chg->eoc_uamp == RT5033_CHARGER_EOC_MIN) in rt5033_init_const_charge() [all …]
|
| H A D | ab8500_bmdata.c | 113 static const struct ab8500_bm_charger_parameters chg = { variable 136 .chg_params = &chg,
|
| /linux/tools/gpio/ |
| H A D | gpio-watch.c | 25 struct gpio_v2_line_info_changed chg; in main() local 64 memset(&chg, 0, sizeof(chg)); in main() 65 rd = read(pfd.fd, &chg, sizeof(chg)); in main() 66 if (rd < 0 || rd != sizeof(chg)) { in main() 67 if (rd != sizeof(chg)) in main() 74 switch (chg.event_type) { in main() 91 chg.info.offset, event, (uint64_t)chg.timestamp_ns); in main()
|
| /linux/drivers/net/fddi/skfp/ |
| H A D | ess.c | 474 struct smt_sba_chg *chg ; in ess_send_response() local 492 chg = smtod(mb,struct smt_sba_chg *) ; in ess_send_response() 493 chg->smt.smt_tid = sm->smt_tid ; in ess_send_response() 494 chg->smt.smt_dest = sm->smt_source ; in ess_send_response() 497 chg->s_type.para.p_type = SMT_P0015 ; in ess_send_response() 498 chg->s_type.para.p_len = sizeof(struct smt_p_0015) - PARA_LEN ; in ess_send_response() 499 chg->s_type.res_type = SYNC_BW ; in ess_send_response() 502 chg->cmd.para.p_type = SMT_P0016 ; in ess_send_response() 503 chg->cmd.para.p_len = sizeof(struct smt_p_0016) - PARA_LEN ; in ess_send_response() 504 chg->cmd.sba_cmd = sba_cmd ; in ess_send_response() [all …]
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_flex_pipe.c | 3243 struct list_head *chg) in ice_rem_vsig() argument 3283 list_add(&p->list_entry, chg); in ice_rem_vsig() 3301 struct list_head *chg) in ice_rem_prof_id_vsig() argument 3314 return ice_rem_vsig(hw, blk, vsig, chg); in ice_rem_prof_id_vsig() 3336 struct list_head chg; in ice_rem_flow_all() local 3340 INIT_LIST_HEAD(&chg); in ice_rem_flow_all() 3346 &chg); in ice_rem_flow_all() 3352 status = ice_upd_prof_hw(hw, blk, &chg); in ice_rem_flow_all() 3355 list_for_each_entry_safe(del, tmp, &chg, list_entry) { in ice_rem_flow_all() 3411 struct list_head *chg) in ice_get_prof() argument [all …]
|
| /linux/arch/arm/boot/dts/qcom/ |
| H A D | pm8226.dtsi | 76 interrupt-names = "chg-done", 77 "chg-fast", 78 "chg-trkl", 81 "chg-gone",
|
| H A D | pm8941.dtsi | 91 interrupt-names = "chg-done", 92 "chg-fast", 93 "chg-trkl", 96 "chg-gone",
|
| /linux/drivers/clk/mediatek/ |
| H A D | clk-pll.c | 104 u32 chg, val; in mtk_pll_set_rate_regs() local 125 chg = readl(pll->pcw_chg_addr) | in mtk_pll_set_rate_regs() 127 writel(chg, pll->pcw_chg_addr); in mtk_pll_set_rate_regs()
|
| /linux/tools/perf/scripts/python/ |
| H A D | parallel-perf.py | 197 chg = False 200 if chg and verbosity.normal: 205 chg = False 214 chg = True 229 chg = True
|
| /linux/drivers/scsi/sym53c8xx_2/ |
| H A D | sym_hipd.c | 3948 u_char chg, ofs, per, fak, div; local 3957 chg = 0; 3966 {chg = 1; ofs = np->maxoffs;} 3971 {chg = 1; per = np->minsync;} 3984 ofs, per, div, fak, chg); 3991 if (!req && chg) 4064 int dt, chg = 0; local 4079 chg = 1; 4086 chg = 1; 4093 chg = 1; [all …]
|
| /linux/Documentation/translations/zh_CN/mm/ |
| H A D | hugetlbfs_reserv.rst | 167 - chg,尽管这个参数的类型是long,但只有0或1的值被传递给dequeue_huge_page_vma。如果该值为0,
|
| /linux/arch/arm/boot/dts/nxp/imx/ |
| H A D | imx6sll-kobo-librah2o.dts | 177 MX6SLL_PAD_GPIO4_IO20__GPIO4_IO20 0x1b8b1 /* ricoh619 chg */
|
| H A D | imx6sl-tolino-vision5.dts | 167 MX6SL_PAD_FEC_MDIO__GPIO4_IO20 0x1b8b1 /* ricoh619 chg */
|
| H A D | imx6sl-kobo-aura2.dts | 430 MX6SL_PAD_SD1_CLK__GPIO5_IO15 0x1b8b1 /* ricoh619 chg */
|
| /linux/net/ipv6/ |
| H A D | sit.c | 372 ipip6_tunnel_add_prl(struct ip_tunnel *t, struct ip_tunnel_prl *a, int chg) in ipip6_tunnel_add_prl() argument 384 if (chg) { in ipip6_tunnel_add_prl() 393 if (chg) { in ipip6_tunnel_add_prl()
|
| /linux/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3399-orangepi.dts | 691 chg_cc_int_l: chg-cc-int-l {
|
| H A D | rk3328.dtsi | 1104 snps,dis-del-phy-power-chg-quirk;
|
| /linux/drivers/net/wireless/realtek/rtw89/ |
| H A D | coex.c | 4521 if (cx->bt0.link_info.link_cnt.chg || in _set_bt_afh_info() 4522 cx->bt1.link_info.link_cnt.chg) in _set_bt_afh_info() 4527 if (cx->bt0.link_info_56g.link_cnt.chg || in _set_bt_afh_info() 4528 cx->bt1.link_info_56g.link_cnt.chg) in _set_bt_afh_info() 7937 b->link_cnt.chg = 0; in _update_bt_link_cnt() 7965 b->link_cnt.chg = 1; in _update_bt_link_cnt()
|
| H A D | core.h | 1769 u8 chg; member
|