Home
last modified time | relevance | path

Searched refs:chg (Results 1 – 25 of 30) sorted by relevance

12

/linux/drivers/power/supply/
H A Dmax14577_charger.c47 static int max14577_get_charger_state(struct max14577_charger *chg, int *val) in max14577_get_charger_state() argument
49 struct regmap *rmap = chg->max14577->regmap; in max14577_get_charger_state()
97 static int max14577_get_charge_type(struct max14577_charger *chg, int *val) in max14577_get_charge_type() argument
109 ret = max14577_get_charger_state(chg, &charging); in max14577_get_charge_type()
121 static int max14577_get_online(struct max14577_charger *chg, int *val) in max14577_get_online() argument
123 struct regmap *rmap = chg->max14577->regmap; in max14577_get_online()
133 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); in max14577_get_online()
160 static int max14577_get_battery_health(struct max14577_charger *chg, int *val) in max14577_get_battery_health() argument
162 struct regmap *rmap = chg->max14577->regmap; in max14577_get_battery_health()
172 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); in max14577_get_battery_health()
[all …]
H A Dab8500_bmdata.c113 static const struct ab8500_bm_charger_parameters chg = { variable
136 .chg_params = &chg,
H A Dtwl4030_madc_battery.c158 int chg = (percent * (bat->pdata->capacity/1000))/100; in twl4030_madc_bat_get_property() local
161 val->intval = (3600l * chg) / 400; in twl4030_madc_bat_get_property()
/linux/tools/gpio/
H A Dgpio-watch.c25 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 Dess.c474 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 Dice_flex_pipe.c3243 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 Dpm8226.dtsi76 interrupt-names = "chg-done",
77 "chg-fast",
78 "chg-trkl",
81 "chg-gone",
H A Dpm8941.dtsi91 interrupt-names = "chg-done",
92 "chg-fast",
93 "chg-trkl",
96 "chg-gone",
/linux/mm/
H A Dhugetlb.c799 long chg = 0; in region_chg() local
804 chg = add_reservation_in_range(resv, f, t, NULL, NULL, in region_chg()
816 return chg; in region_chg()
986 long chg = 0; in region_count() local
1002 chg += seg_to - seg_from; in region_count()
1006 return chg; in region_count()
6575 long chg = -1, add = -1, spool_resv, gbl_resv; in hugetlb_reserve_pages() local
6611 chg = region_chg(resv_map, from, to, &regions_needed); in hugetlb_reserve_pages()
6620 chg = to - from; in hugetlb_reserve_pages()
6626 if (chg < 0) { in hugetlb_reserve_pages()
[all …]
/linux/drivers/clk/mediatek/
H A Dclk-pll.c104 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 Dparallel-perf.py197 chg = False
200 if chg and verbosity.normal:
205 chg = False
214 chg = True
229 chg = True
/linux/drivers/scsi/sym53c8xx_2/
H A Dsym_hipd.c3948 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/drivers/usb/host/
H A Dmax3421-hcd.c1080 u32 old_port_status, chg; in max3421_detect_conn() local
1127 chg = (old_port_status ^ max3421_hcd->port_status); in max3421_detect_conn()
1128 max3421_hcd->port_status |= chg << 16; in max3421_detect_conn()
1193 u32 chg, old_port_status; in max3421_handle_irqs() local
1248 chg = (old_port_status ^ max3421_hcd->port_status); in max3421_handle_irqs()
1249 max3421_hcd->port_status |= chg << 16; in max3421_handle_irqs()
/linux/drivers/gpio/
H A Dgpiolib-cdev.c2481 struct gpio_v2_line_info_changed chg; member
2493 if (!(ctx->chg.info.flags & GPIO_V2_LINE_FLAG_USED)) { in lineinfo_changed_func()
2503 !pinctrl_gpio_can_use_line(gc, ctx->chg.info.offset)) in lineinfo_changed_func()
2504 ctx->chg.info.flags |= GPIO_V2_LINE_FLAG_USED; in lineinfo_changed_func()
2508 ret = kfifo_in_spinlocked(&ctx->cdev->events, &ctx->chg, 1, in lineinfo_changed_func()
2556 ctx->chg.event_type = action; in lineinfo_changed_notify()
2557 ctx->chg.timestamp_ns = ktime_get_ns(); in lineinfo_changed_notify()
2558 gpio_desc_to_lineinfo(desc, &ctx->chg.info, true); in lineinfo_changed_notify()
/linux/Documentation/translations/zh_CN/mm/
H A Dhugetlbfs_reserv.rst167 - chg,尽管这个参数的类型是long,但只有0或1的值被传递给dequeue_huge_page_vma。如果该值为0,
/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6sll-kobo-librah2o.dts177 MX6SLL_PAD_GPIO4_IO20__GPIO4_IO20 0x1b8b1 /* ricoh619 chg */
H A Dimx6sl-tolino-vision5.dts167 MX6SL_PAD_FEC_MDIO__GPIO4_IO20 0x1b8b1 /* ricoh619 chg */
H A Dimx6sl-kobo-aura2.dts430 MX6SL_PAD_SD1_CLK__GPIO5_IO15 0x1b8b1 /* ricoh619 chg */
/linux/net/ipv6/
H A Dsit.c371 ipip6_tunnel_add_prl(struct ip_tunnel *t, struct ip_tunnel_prl *a, int chg) in ipip6_tunnel_add_prl() argument
383 if (chg) { in ipip6_tunnel_add_prl()
392 if (chg) { in ipip6_tunnel_add_prl()
/linux/drivers/hid/
H A Dwacom_wac.c1497 bool chg = data[284] & 0x80; in wacom_intuos_pro2_bt_battery() local
1501 battery_status, chg, 1, chg); in wacom_intuos_pro2_bt_battery()
1524 bool chg = data[45] & 0x80; in wacom_intuos_gen3_bt_battery() local
1528 battery_status, chg, 1, chg); in wacom_intuos_gen3_bt_battery()
/linux/arch/arm64/boot/dts/qcom/
H A Dsm7325-nothing-spacewar.dts170 chg-skin-thermal {
1108 chg-skin-therm@6 {
H A Dqcm6490-shift-otter.dts149 chg-skin-thermal {
H A Dqcm6490-fairphone-fp5.dts252 chg-skin-thermal {
/linux/arch/arm64/boot/dts/hisilicon/
H A Dhi3660-hikey960.dts674 snps,dis-del-phy-power-chg-quirk;
/linux/arch/arm64/boot/dts/rockchip/
H A Drk3399-orangepi.dts691 chg_cc_int_l: chg-cc-int-l {

12