Home
last modified time | relevance | path

Searched refs:mA (Results 1 – 25 of 29) sorted by relevance

12

/drivers/usb/phy/
Dphy-gpio-vbus-usb.c39 unsigned mA; member
60 static void set_vbus_draw(struct gpio_vbus_data *gpio_vbus, unsigned mA) in set_vbus_draw() argument
70 if (mA) { in set_vbus_draw()
71 regulator_set_current_limit(vbus_draw, 0, 1000 * mA); in set_vbus_draw()
86 gpio_vbus->mA = mA; in set_vbus_draw()
217 static int gpio_vbus_set_power(struct usb_phy *phy, unsigned mA) in gpio_vbus_set_power() argument
224 set_vbus_draw(gpio_vbus, mA); in gpio_vbus_set_power()
241 return gpio_vbus_set_power(phy, suspend ? 0 : gpio_vbus->mA); in gpio_vbus_set_suspend()
Dphy-generic.c76 static void nop_set_vbus_draw(struct usb_phy_generic *nop, unsigned mA) in nop_set_vbus_draw() argument
86 if (mA) { in nop_set_vbus_draw()
87 regulator_set_current_limit(vbus_draw, 0, 1000 * mA); in nop_set_vbus_draw()
102 nop->mA = mA; in nop_set_vbus_draw()
Dphy-ab8500-usb.c1026 static unsigned ab8500_eyediagram_workaroud(struct ab8500_usb *ab, unsigned mA) in ab8500_eyediagram_workaroud() argument
1033 if (mA > 100) in ab8500_eyediagram_workaroud()
1034 mA = 100; in ab8500_eyediagram_workaroud()
1036 return mA; in ab8500_eyediagram_workaroud()
1039 static int ab8500_usb_set_power(struct usb_phy *phy, unsigned mA) in ab8500_usb_set_power() argument
1048 mA = ab8500_eyediagram_workaroud(ab, mA); in ab8500_usb_set_power()
1050 ab->vbus_draw = mA; in ab8500_usb_set_power()
Dphy-isp1301-omap.c103 static inline int tps65010_set_vbus_draw(unsigned mA) in tps65010_set_vbus_draw() argument
105 pr_debug("tps65010: draw %d mA (STUB)\n", mA); in tps65010_set_vbus_draw()
111 static void enable_vbus_draw(struct isp1301 *isp, unsigned mA) in enable_vbus_draw() argument
113 int status = tps65010_set_vbus_draw(mA); in enable_vbus_draw()
115 pr_debug(" VBUS %d mA error %d\n", mA, status); in enable_vbus_draw()
120 static void enable_vbus_draw(struct isp1301 *isp, unsigned mA) in enable_vbus_draw() argument
1401 isp1301_set_power(struct usb_phy *dev, unsigned mA) in isp1301_set_power() argument
1406 enable_vbus_draw(the_transceiver, mA); in isp1301_set_power()
Dphy-generic.h17 unsigned long mA; member
Dphy-msm-usb.c835 static void msm_otg_notify_charger(struct msm_otg *motg, unsigned mA) in msm_otg_notify_charger() argument
837 if (motg->cur_power == mA) in msm_otg_notify_charger()
841 dev_info(motg->phy.dev, "Avail curr from USB = %u\n", mA); in msm_otg_notify_charger()
842 motg->cur_power = mA; in msm_otg_notify_charger()
845 static int msm_otg_set_power(struct usb_phy *phy, unsigned mA) in msm_otg_set_power() argument
857 msm_otg_notify_charger(motg, mA); in msm_otg_set_power()
Dphy-fsl-usb.c646 static int fsl_otg_set_power(struct usb_phy *phy, unsigned mA) in fsl_otg_set_power() argument
651 pr_info("FSL OTG: Draw %d mA\n", mA); in fsl_otg_set_power()
/drivers/usb/gadget/udc/
Dtrace.h38 __field(unsigned, mA)
59 __entry->mA = g->mA;
77 __entry->speed, __entry->max_speed, __entry->state, __entry->mA,
Dcore.c582 int usb_gadget_vbus_draw(struct usb_gadget *gadget, unsigned mA) in usb_gadget_vbus_draw() argument
591 ret = gadget->ops->vbus_draw(gadget, mA); in usb_gadget_vbus_draw()
593 gadget->mA = mA; in usb_gadget_vbus_draw()
Ds3c-hsudc.c1246 static int s3c_hsudc_vbus_draw(struct usb_gadget *gadget, unsigned mA) in s3c_hsudc_vbus_draw() argument
1254 return usb_phy_set_power(hsudc->transceiver, mA); in s3c_hsudc_vbus_draw()
Dpxa25x_udc.c1211 static int pxa25x_udc_vbus_draw(struct usb_gadget *_gadget, unsigned mA) in pxa25x_udc_vbus_draw() argument
1218 return usb_phy_set_power(udc->transceiver, mA); in pxa25x_udc_vbus_draw()
Dmv_u3d_core.c1178 static int mv_u3d_vbus_draw(struct usb_gadget *gadget, unsigned mA) in mv_u3d_vbus_draw() argument
1182 u3d->power = mA; in mv_u3d_vbus_draw()
Dpxa27x_udc.c1649 static int pxa_udc_vbus_draw(struct usb_gadget *_gadget, unsigned mA) in pxa_udc_vbus_draw() argument
1655 return usb_phy_set_power(udc->transceiver, mA); in pxa_udc_vbus_draw()
Dfsl_udc_core.c1204 static int fsl_vbus_draw(struct usb_gadget *gadget, unsigned mA) in fsl_vbus_draw() argument
1210 return usb_phy_set_power(udc->transceiver, mA); in fsl_vbus_draw()
/drivers/power/supply/
Dbq2415x_charger.c531 static int bq2415x_set_current_limit(struct bq2415x_device *bq, int mA) in bq2415x_set_current_limit() argument
535 if (mA <= 100) in bq2415x_set_current_limit()
537 else if (mA <= 500) in bq2415x_set_current_limit()
539 else if (mA <= 800) in bq2415x_set_current_limit()
630 static int bq2415x_set_charge_current(struct bq2415x_device *bq, int mA) in bq2415x_set_charge_current() argument
637 val = (mA * bq->init_data.resistor_sense - 37400) / 6800; in bq2415x_set_charge_current()
664 static int bq2415x_set_termination_current(struct bq2415x_device *bq, int mA) in bq2415x_set_termination_current() argument
671 val = (mA * bq->init_data.resistor_sense - 3400) / 3400; in bq2415x_set_termination_current()
795 static bool bq2415x_update_reported_mode(struct bq2415x_device *bq, int mA) in bq2415x_update_reported_mode() argument
799 if (mA == 0) in bq2415x_update_reported_mode()
[all …]
Dda9030_battery.c111 int mA; member
147 charger->mA, charger->mV); in bat_debug_show()
224 charger->mA = ((val >> 3) & 0xf) * 100; in da9030_charger_update_state()
Dab8500_charger.c3278 unsigned mA = *((unsigned *)power); in ab8500_charger_usb_notifier_call() local
3291 if ((di->usb_state.usb_current == 2) && (mA > 2)) in ab8500_charger_usb_notifier_call()
3293 else if (mA == 0) in ab8500_charger_usb_notifier_call()
3295 else if (mA == 2) in ab8500_charger_usb_notifier_call()
3297 else if (mA >= 8) /* 8, 100, 500 */ in ab8500_charger_usb_notifier_call()
3303 __func__, bm_usb_state, mA); in ab8500_charger_usb_notifier_call()
3307 di->usb_state.usb_current_tmp = mA; in ab8500_charger_usb_notifier_call()
/drivers/mfd/
Dtps65010.c698 int tps65010_set_vbus_draw(unsigned mA) in tps65010_set_vbus_draw() argument
707 if (mA >= 500) in tps65010_set_vbus_draw()
708 mA = 500; in tps65010_set_vbus_draw()
709 else if (mA >= 100) in tps65010_set_vbus_draw()
710 mA = 100; in tps65010_set_vbus_draw()
712 mA = 0; in tps65010_set_vbus_draw()
713 the_tps->vbus = mA; in tps65010_set_vbus_draw()
/drivers/usb/musb/
Dtusb6010.c327 static int tusb_draw_power(struct usb_phy *x, unsigned mA) in tusb_draw_power() argument
343 if (x->otg->default_a || mA < (musb->min_power << 1)) in tusb_draw_power()
344 mA = 0; in tusb_draw_power()
347 if (mA) { in tusb_draw_power()
356 dev_dbg(musb->controller, "draw max %d mA VBUS\n", mA); in tusb_draw_power()
Dblackfin.c349 static int bfin_musb_set_power(struct usb_phy *x, unsigned mA) in bfin_musb_set_power() argument
Dmusb_gadget.c1669 static int musb_gadget_vbus_draw(struct usb_gadget *gadget, unsigned mA) in musb_gadget_vbus_draw() argument
1675 return usb_phy_set_power(musb->xceiv, mA); in musb_gadget_vbus_draw()
/drivers/hid/
Dhid-cp2112.c892 int mA;
894 if (sscanf(buf, "%i", &mA) != 1)
897 cfg.max_power = (mA + 1) / 2;
/drivers/usb/gadget/
DKconfig99 int "Maximum VBUS Power usage (2-500 mA)"
109 milliAmperes. The permitted range of values is 2 - 500 mA;
110 0 mA would be legal, but can make some hosts misbehave.
/drivers/staging/emxx_udc/
Demxx_udc.h589 unsigned int mA; member
Demxx_udc.c3054 static int nbu2ss_gad_vbus_draw(struct usb_gadget *pgadget, unsigned int mA) in nbu2ss_gad_vbus_draw() argument
3067 udc->mA = mA; in nbu2ss_gad_vbus_draw()
3204 udc->mA = 0; in nbu2ss_drv_contest_init()

12