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

/drivers/usb/phy/
H A Dphy-gpio-vbus-usb.c39 unsigned mA; member in struct:gpio_vbus_data
60 static void set_vbus_draw(struct gpio_vbus_data *gpio_vbus, unsigned mA) argument
70 if (mA) {
71 regulator_set_current_limit(vbus_draw, 0, 1000 * mA);
86 gpio_vbus->mA = mA;
215 static int gpio_vbus_set_power(struct usb_phy *phy, unsigned mA) argument
222 set_vbus_draw(gpio_vbus, mA);
233 /* draw max 0 mA from vbus in suspend mode; or the previously
236 * NOTE: high powered configs (mA > 10
[all...]
H A Dphy-ab8500-usb.c1013 static unsigned ab8500_eyediagram_workaroud(struct ab8500_usb *ab, unsigned mA) argument
1016 * AB8500 V2 has eye diagram issues when drawing more than 100mA from
1017 * VBUS. Set charging current to 100mA in case of standard host
1020 if (mA > 100)
1021 mA = 100;
1023 return mA;
1026 static int ab8500_usb_set_power(struct usb_phy *phy, unsigned mA) argument
1035 mA = ab8500_eyediagram_workaroud(ab, mA);
1037 ab->vbus_draw = mA;
[all...]
H A Dphy-isp1301-omap.c103 static inline int tps65010_set_vbus_draw(unsigned mA) argument
105 pr_debug("tps65010: draw %d mA (STUB)\n", mA);
111 static void enable_vbus_draw(struct isp1301 *isp, unsigned mA) argument
113 int status = tps65010_set_vbus_draw(mA);
115 pr_debug(" VBUS %d mA error %d\n", mA, status);
120 static void enable_vbus_draw(struct isp1301 *isp, unsigned mA) argument
132 /* this board won't supply more than 8mA vbus power.
1402 isp1301_set_power(struct usb_phy *dev, unsigned mA) argument
[all...]
H A Dphy-msm-usb.c642 static void msm_otg_notify_charger(struct msm_otg *motg, unsigned mA) argument
644 if (motg->cur_power == mA)
648 dev_info(motg->phy.dev, "Avail curr from USB = %u\n", mA);
649 motg->cur_power = mA;
652 static int msm_otg_set_power(struct usb_phy *phy, unsigned mA) argument
664 msm_otg_notify_charger(motg, mA);
H A Dphy-fsl-usb.c680 static int fsl_otg_set_power(struct usb_phy *phy, unsigned mA) argument
685 pr_info("FSL OTG: Draw %d mA\n", mA);
/drivers/power/
H A Dbq2415x_charger.c535 /* set current limit in mA */
536 static int bq2415x_set_current_limit(struct bq2415x_device *bq, int mA) argument
540 if (mA <= 100)
542 else if (mA <= 500)
544 else if (mA <= 800)
553 /* get current limit in mA */
634 /* set charge current in mA (platform data must provide resistor sense) */
635 static int bq2415x_set_charge_current(struct bq2415x_device *bq, int mA) argument
642 val = (mA * bq->init_data.resistor_sense - 37400) / 6800;
653 /* get charge current in mA (platfor
669 bq2415x_set_termination_current(struct bq2415x_device *bq, int mA) argument
809 int mA; local
[all...]
H A Dda9030_battery.c110 int mA; member in struct:da9030_charger
146 charger->mA, charger->mV);
223 charger->mA = ((val >> 3) & 0xf) * 100;
H A Dab8500_charger.c148 /* VBUS input current limits supported in AB8500 in mA */
682 * is maximum 500 mA. Every occurence of USB_STAT_*_HOST_*
710 * can consume (900mA). Closest level is 500mA
718 * Dedicated charger level minus 120mA (20mA for ACA and
719 * 100mA for potential accessory). Closest level is 1300mA
1050 * the standard usb host. This will be in mA.
1051 * This function converts current in mA t
3282 unsigned mA = *((unsigned *)power); local
[all...]
/drivers/mfd/
H A Dtps65010.c694 * 0 mA -- DON'T DRAW (might supply power instead)
695 * 100 mA -- usb unit load (slowest charge rate)
696 * 500 mA -- usb high power (fast battery charge)
698 int tps65010_set_vbus_draw(unsigned mA) argument
707 if (mA >= 500)
708 mA = 500;
709 else if (mA >= 100)
710 mA = 100;
712 mA = 0;
713 the_tps->vbus = mA;
[all...]
/drivers/usb/musb/
H A Dtusb6010.c276 * at most mA current to be drawn from VBUS during a Default-B session
281 static int tusb_draw_power(struct usb_phy *x, unsigned mA) argument
287 /* tps65030 seems to consume max 100mA, with maybe 60mA available
297 if (x->otg->default_a || mA < (musb->min_power << 1))
298 mA = 0;
301 if (mA) {
310 dev_dbg(musb->controller, "draw max %d mA VBUS\n", mA);
H A Dblackfin.c314 static int bfin_musb_set_power(struct usb_phy *x, unsigned mA) argument
H A Dmusb_gadget.c1652 static int musb_gadget_vbus_draw(struct usb_gadget *gadget, unsigned mA) argument
1658 return usb_phy_set_power(musb->xceiv, mA);
/drivers/hid/
H A Dhid-cp2112.c87 u8 max_power; /* Power requested in 2mA units */
801 int mA;
803 if (sscanf(buf, "%i", &mA) != 1)
806 cfg.max_power = (mA + 1) / 2;
808 }), "%u mA\n", cfg.max_power * 2);
/drivers/staging/emxx_udc/
H A Demxx_udc.h631 unsigned mA; member in struct:nbu2ss_udc
H A Demxx_udc.c3148 static int nbu2ss_gad_vbus_draw(struct usb_gadget *pgadget, unsigned mA) argument
3163 udc->mA = mA;
3315 udc->mA = 0;
/drivers/usb/gadget/udc/
H A Ds3c-hsudc.c1239 static int s3c_hsudc_vbus_draw(struct usb_gadget *gadget, unsigned mA) argument
1247 return usb_phy_set_power(hsudc->transceiver, mA);
H A Dpxa25x_udc.c984 /* boards may consume current from VBUS, up to 100-500mA based on config.
988 static int pxa25x_udc_vbus_draw(struct usb_gadget *_gadget, unsigned mA) argument
995 return usb_phy_set_power(udc->transceiver, mA);
H A Dpxa27x_udc.c1653 * @mA: current drawn
1662 static int pxa_udc_vbus_draw(struct usb_gadget *_gadget, unsigned mA) argument
1668 return usb_phy_set_power(udc->transceiver, mA);
H A Dfsl_udc_core.c1204 static int fsl_vbus_draw(struct usb_gadget *gadget, unsigned mA) argument
1210 return usb_phy_set_power(udc->transceiver, mA);
H A Dmv_u3d_core.c1195 static int mv_u3d_vbus_draw(struct usb_gadget *gadget, unsigned mA) argument
1199 u3d->power = mA;
H A Domap_udc.c1286 static int omap_vbus_draw(struct usb_gadget *gadget, unsigned mA) argument
1292 return usb_phy_set_power(udc->transceiver, mA);
H A Dpch_udc.c1230 * @mA: specifies the current limit in 2mA unit
1236 static int pch_udc_pcd_vbus_draw(struct usb_gadget *gadget, unsigned int mA) argument

Completed in 347 milliseconds