Home
last modified time | relevance | path

Searched refs:bci (Results 1 – 5 of 5) sorted by relevance

/drivers/power/
Dtwl4030_charger.c211 static int twl4030_is_battery_present(struct twl4030_bci *bci) in twl4030_is_battery_present() argument
271 static int twl4030_charger_update_current(struct twl4030_bci *bci) in twl4030_charger_update_current() argument
284 if (ac_available(bci->channel_vac)) { in twl4030_charger_update_current()
285 cur = bci->ac_cur; in twl4030_charger_update_current()
286 bci->ac_is_active = true; in twl4030_charger_update_current()
288 cur = bci->usb_cur; in twl4030_charger_update_current()
289 bci->ac_is_active = false; in twl4030_charger_update_current()
290 if (cur > bci->usb_cur_target) { in twl4030_charger_update_current()
291 cur = bci->usb_cur_target; in twl4030_charger_update_current()
292 bci->usb_cur = cur; in twl4030_charger_update_current()
[all …]
/drivers/mtd/
Dinftlcore.c480 struct inftl_bci bci; in INFTL_findwriteunit() local
499 blockofs, 8, &retlen, (char *)&bci); in INFTL_findwriteunit()
501 status = bci.Status | bci.Status1; in INFTL_findwriteunit()
645 struct inftl_bci bci; in INFTL_trydeletechain() local
673 (char *)&bci) < 0) in INFTL_trydeletechain()
676 status = bci.Status | bci.Status1; in INFTL_trydeletechain()
766 struct inftl_bci bci; in INFTL_deleteblock() local
773 blockofs, 8, &retlen, (char *)&bci) < 0) in INFTL_deleteblock()
776 status = bci.Status | bci.Status1; in INFTL_deleteblock()
807 if (inftl_read_oob(mtd, ptr, 8, &retlen, (char *)&bci) < 0) in INFTL_deleteblock()
[all …]
Dnftlcore.c558 struct nftl_bci bci; in NFTL_findwriteunit() local
566 8, &retlen, (char *)&bci); in NFTL_findwriteunit()
569 block , writeEUN, le16_to_cpu(bci.Status)); in NFTL_findwriteunit()
571 status = bci.Status | bci.Status1; in NFTL_findwriteunit()
725 struct nftl_bci bci; in nftl_readblock() local
733 (char *)&bci) < 0) in nftl_readblock()
736 status = bci.Status | bci.Status1; in nftl_readblock()
Dnftlmount.c380 struct nftl_bci bci; in check_sectors_in_chain() local
390 8, &retlen, (char *)&bci) < 0) in check_sectors_in_chain()
393 status = bci.Status | bci.Status1; in check_sectors_in_chain()
399 if (memcmpb(&bci, 0xff, 8) != 0 || in check_sectors_in_chain()
407 bci.Status = SECTOR_IGNORE; in check_sectors_in_chain()
408 bci.Status1 = SECTOR_IGNORE; in check_sectors_in_chain()
412 &retlen, (char *)&bci); in check_sectors_in_chain()
/drivers/mfd/
Dtwl-core.c956 if (IS_ENABLED(CONFIG_CHARGER_TWL4030) && pdata->bci && in add_children()
959 pdata->bci, sizeof(*pdata->bci), false, in add_children()