Searched refs:mA (Results 1 - 20 of 20) sorted by relevance

/drivers/usb/otg/
H A Dgpio_vbus.c39 unsigned mA; member in struct:gpio_vbus_data
59 static void set_vbus_draw(struct gpio_vbus_data *gpio_vbus, unsigned mA) argument
68 if (mA) {
69 regulator_set_current_limit(vbus_draw, 0, 1000 * mA);
80 gpio_vbus->mA = mA;
203 static int gpio_vbus_set_power(struct usb_phy *phy, unsigned mA) argument
210 set_vbus_draw(gpio_vbus, mA);
221 /* draw max 0 mA from vbus in suspend mode; or the previously
224 * NOTE: high powered configs (mA > 10
[all...]
H A Dab8500-usb.c272 static int ab8500_usb_set_power(struct usb_phy *phy, unsigned mA) argument
281 ab->vbus_draw = mA;
283 if (mA)
H A Disp1301_omap.c105 static inline int tps65010_set_vbus_draw(unsigned mA) argument
107 pr_debug("tps65010: draw %d mA (STUB)\n", mA);
113 static void enable_vbus_draw(struct isp1301 *isp, unsigned mA) argument
115 int status = tps65010_set_vbus_draw(mA);
117 pr_debug(" VBUS %d mA error %d\n", mA, status);
122 static void enable_vbus_draw(struct isp1301 *isp, unsigned mA) argument
134 /* this board won't supply more than 8mA vbus power.
1405 isp1301_set_power(struct usb_phy *dev, unsigned mA) argument
[all...]
H A Dmsm_otg.c620 static void msm_otg_notify_charger(struct msm_otg *motg, unsigned mA) argument
622 if (motg->cur_power == mA)
626 dev_info(motg->phy.dev, "Avail curr from USB = %u\n", mA);
627 motg->cur_power = mA;
630 static int msm_otg_set_power(struct usb_phy *phy, unsigned mA) argument
642 msm_otg_notify_charger(motg, mA);
H A Dfsl_otg.c628 static int fsl_otg_set_power(struct usb_phy *phy, unsigned mA) argument
633 pr_info("FSL OTG: Draw %d mA\n", mA);
/drivers/mfd/
H A Dtps65010.c698 * 0 mA -- DON'T DRAW (might supply power instead)
699 * 100 mA -- usb unit load (slowest charge rate)
700 * 500 mA -- usb high power (fast battery charge)
702 int tps65010_set_vbus_draw(unsigned mA) argument
711 if (mA >= 500)
712 mA = 500;
713 else if (mA >= 100)
714 mA = 100;
716 mA = 0;
717 the_tps->vbus = mA;
[all...]
/drivers/usb/musb/
H A Dtusb6010.c275 * at most mA current to be drawn from VBUS during a Default-B session
280 static int tusb_draw_power(struct usb_phy *x, unsigned mA) argument
286 /* tps65030 seems to consume max 100mA, with maybe 60mA available
296 if (x->otg->default_a || mA < (musb->min_power << 1))
297 mA = 0;
300 if (mA) {
309 dev_dbg(musb->controller, "draw max %d mA VBUS\n", mA);
H A Dblackfin.c320 static int bfin_musb_set_power(struct usb_phy *x, unsigned mA) argument
H A Dmusb_gadget.c1719 static int musb_gadget_vbus_draw(struct usb_gadget *gadget, unsigned mA) argument
1725 return usb_phy_set_power(musb->xceiv, mA);
/drivers/power/
H A Dda9030_battery.c109 int mA; member in struct:da9030_charger
145 charger->mA, charger->mV);
222 charger->mA = ((val >> 3) & 0xf) * 100;
H A Dab8500_charger.c109 /* VBUS input current limits supported in AB8500 in mA */
577 * can consume (300mA). Closest level is 1100mA
583 * Dedicated charger level minus 120mA (20mA for ACA and
584 * 100mA for potential accessory). Closest level is 1300mA
906 * the standard usb host. This will be in mA.
907 * This function converts current in mA to a value that can be written
995 /* Power ON charging LED indicator, set LED current to 5mA */
2403 unsigned mA = *((unsigned *)power); local
[all...]
/drivers/usb/gadget/
H A Ds3c-hsudc.c1248 static int s3c_hsudc_vbus_draw(struct usb_gadget *gadget, unsigned mA) argument
1256 return usb_phy_set_power(hsudc->transceiver, mA);
H A Dpxa25x_udc.c987 /* boards may consume current from VBUS, up to 100-500mA based on config.
991 static int pxa25x_udc_vbus_draw(struct usb_gadget *_gadget, unsigned mA) argument
998 return usb_phy_set_power(udc->transceiver, mA);
H A Dci13xxx_udc.c2536 static int ci13xxx_vbus_draw(struct usb_gadget *_gadget, unsigned mA) argument
2541 return usb_phy_set_power(udc->transceiver, mA);
H A Dfsl_udc_core.c1210 static int fsl_vbus_draw(struct usb_gadget *gadget, unsigned mA) argument
1216 return usb_phy_set_power(udc->transceiver, mA);
H A Domap_udc.c1342 static int omap_vbus_draw(struct usb_gadget *gadget, unsigned mA) argument
1348 return usb_phy_set_power(udc->transceiver, mA);
H A Dpxa27x_udc.c1654 * @mA: current drawn
1663 static int pxa_udc_vbus_draw(struct usb_gadget *_gadget, unsigned mA) argument
1669 return usb_phy_set_power(udc->transceiver, mA);
H A Dlangwell_udc.c1222 static int langwell_vbus_draw(struct usb_gadget *_gadget, unsigned mA) argument
1235 return usb_phy_set_power(dev->transceiver, mA);
H A Dfsl_qe_udc.c1918 static int qe_vbus_draw(struct usb_gadget *gadget, unsigned mA) argument
H A Dpch_udc.c1228 * @mA: specifies the current limit in 2mA unit
1234 static int pch_udc_pcd_vbus_draw(struct usb_gadget *gadget, unsigned int mA) argument

Completed in 246 milliseconds