/drivers/usb/phy/ |
H A D | phy-gpio-vbus-usb.c | 39 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 D | phy-ab8500-usb.c | 1013 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 D | phy-isp1301-omap.c | 103 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 D | phy-msm-usb.c | 642 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 D | phy-fsl-usb.c | 680 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 D | bq2415x_charger.c | 535 /* 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 D | da9030_battery.c | 110 int mA; member in struct:da9030_charger 146 charger->mA, charger->mV); 223 charger->mA = ((val >> 3) & 0xf) * 100;
|
H A D | ab8500_charger.c | 148 /* 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 D | tps65010.c | 694 * 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 D | tusb6010.c | 276 * 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 D | blackfin.c | 314 static int bfin_musb_set_power(struct usb_phy *x, unsigned mA) argument
|
H A D | musb_gadget.c | 1652 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 D | hid-cp2112.c | 87 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 D | emxx_udc.h | 631 unsigned mA; member in struct:nbu2ss_udc
|
H A D | emxx_udc.c | 3148 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 D | s3c-hsudc.c | 1239 static int s3c_hsudc_vbus_draw(struct usb_gadget *gadget, unsigned mA) argument 1247 return usb_phy_set_power(hsudc->transceiver, mA);
|
H A D | pxa25x_udc.c | 984 /* 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 D | pxa27x_udc.c | 1653 * @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 D | fsl_udc_core.c | 1204 static int fsl_vbus_draw(struct usb_gadget *gadget, unsigned mA) argument 1210 return usb_phy_set_power(udc->transceiver, mA);
|
H A D | mv_u3d_core.c | 1195 static int mv_u3d_vbus_draw(struct usb_gadget *gadget, unsigned mA) argument 1199 u3d->power = mA;
|
H A D | omap_udc.c | 1286 static int omap_vbus_draw(struct usb_gadget *gadget, unsigned mA) argument 1292 return usb_phy_set_power(udc->transceiver, mA);
|
H A D | pch_udc.c | 1230 * @mA: specifies the current limit in 2mA unit 1236 static int pch_udc_pcd_vbus_draw(struct usb_gadget *gadget, unsigned int mA) argument
|