mA 106 arch/arm/mach-davinci/include/mach/da8xx.h int da8xx_register_usb20(unsigned mA, unsigned potpgt); mA 94 arch/arm/mach-davinci/usb-da8xx.c int __init da8xx_register_usb20(unsigned int mA, unsigned int potpgt) mA 96 arch/arm/mach-davinci/usb-da8xx.c usb_data.power = mA > 510 ? 255 : mA / 2; mA 66 arch/arm/mach-davinci/usb.c void __init davinci_setup_usb(unsigned mA, unsigned potpgt_ms) mA 68 arch/arm/mach-davinci/usb.c usb_data.power = mA > 510 ? 255 : mA / 2; mA 84 arch/arm/mach-davinci/usb.c void __init davinci_setup_usb(unsigned mA, unsigned potpgt_ms) mA 915 drivers/hid/hid-cp2112.c int mA; mA 917 drivers/hid/hid-cp2112.c if (sscanf(buf, "%i", &mA) != 1) mA 920 drivers/hid/hid-cp2112.c cfg.max_power = (mA + 1) / 2; mA 685 drivers/mfd/tps65010.c int tps65010_set_vbus_draw(unsigned mA) mA 694 drivers/mfd/tps65010.c if (mA >= 500) mA 695 drivers/mfd/tps65010.c mA = 500; mA 696 drivers/mfd/tps65010.c else if (mA >= 100) mA 697 drivers/mfd/tps65010.c mA = 100; mA 699 drivers/mfd/tps65010.c mA = 0; mA 700 drivers/mfd/tps65010.c the_tps->vbus = mA; mA 445 drivers/pinctrl/pinctrl-artpec6.c static int artpec6_pconf_drive_mA_to_field(unsigned int mA) mA 447 drivers/pinctrl/pinctrl-artpec6.c switch (mA) { mA 1013 drivers/pinctrl/pinctrl-bm1880.c static int bm1880_pinconf_drv_set(unsigned int mA, u32 width, mA 1025 drivers/pinctrl/pinctrl-bm1880.c switch (mA) { mA 1062 drivers/pinctrl/pinctrl-bm1880.c switch (mA) { mA 501 drivers/pinctrl/sprd/pinctrl-sprd.c static unsigned int sprd_pinconf_drive(unsigned int mA) mA 505 drivers/pinctrl/sprd/pinctrl-sprd.c switch (mA) { mA 3162 drivers/power/supply/ab8500_charger.c unsigned mA = *((unsigned *)power); mA 3175 drivers/power/supply/ab8500_charger.c if ((di->usb_state.usb_current == 2) && (mA > 2)) mA 3177 drivers/power/supply/ab8500_charger.c else if (mA == 0) mA 3179 drivers/power/supply/ab8500_charger.c else if (mA == 2) mA 3181 drivers/power/supply/ab8500_charger.c else if (mA >= 8) /* 8, 100, 500 */ mA 3187 drivers/power/supply/ab8500_charger.c __func__, bm_usb_state, mA); mA 3191 drivers/power/supply/ab8500_charger.c di->usb_state.usb_current_tmp = mA; mA 522 drivers/power/supply/bq2415x_charger.c static int bq2415x_set_current_limit(struct bq2415x_device *bq, int mA) mA 526 drivers/power/supply/bq2415x_charger.c if (mA <= 100) mA 528 drivers/power/supply/bq2415x_charger.c else if (mA <= 500) mA 530 drivers/power/supply/bq2415x_charger.c else if (mA <= 800) mA 621 drivers/power/supply/bq2415x_charger.c static int bq2415x_set_charge_current(struct bq2415x_device *bq, int mA) mA 628 drivers/power/supply/bq2415x_charger.c val = (mA * bq->init_data.resistor_sense - 37400) / 6800; mA 655 drivers/power/supply/bq2415x_charger.c static int bq2415x_set_termination_current(struct bq2415x_device *bq, int mA) mA 662 drivers/power/supply/bq2415x_charger.c val = (mA * bq->init_data.resistor_sense - 3400) / 3400; mA 786 drivers/power/supply/bq2415x_charger.c static bool bq2415x_update_reported_mode(struct bq2415x_device *bq, int mA) mA 790 drivers/power/supply/bq2415x_charger.c if (mA == 0) mA 792 drivers/power/supply/bq2415x_charger.c else if (mA < 500) mA 794 drivers/power/supply/bq2415x_charger.c else if (mA < 1800) mA 108 drivers/power/supply/da9030_battery.c int mA; mA 144 drivers/power/supply/da9030_battery.c charger->mA, charger->mV); mA 221 drivers/power/supply/da9030_battery.c charger->mA = ((val >> 3) & 0xf) * 100; mA 2904 drivers/staging/emxx_udc/emxx_udc.c static int nbu2ss_gad_vbus_draw(struct usb_gadget *pgadget, unsigned int mA) mA 2917 drivers/staging/emxx_udc/emxx_udc.c udc->mA = mA; mA 3051 drivers/staging/emxx_udc/emxx_udc.c udc->mA = 0; mA 578 drivers/staging/emxx_udc/emxx_udc.h unsigned int mA; mA 4598 drivers/usb/dwc2/gadget.c static int dwc2_hsotg_vbus_draw(struct usb_gadget *gadget, unsigned int mA) mA 4604 drivers/usb/dwc2/gadget.c return usb_phy_set_power(hsotg->uphy, mA); mA 607 drivers/usb/gadget/udc/core.c int usb_gadget_vbus_draw(struct usb_gadget *gadget, unsigned mA) mA 616 drivers/usb/gadget/udc/core.c ret = gadget->ops->vbus_draw(gadget, mA); mA 618 drivers/usb/gadget/udc/core.c gadget->mA = mA; mA 1200 drivers/usb/gadget/udc/fsl_udc_core.c static int fsl_vbus_draw(struct usb_gadget *gadget, unsigned mA) mA 1206 drivers/usb/gadget/udc/fsl_udc_core.c return usb_phy_set_power(udc->transceiver, mA); mA 1183 drivers/usb/gadget/udc/mv_u3d_core.c static int mv_u3d_vbus_draw(struct usb_gadget *gadget, unsigned mA) mA 1187 drivers/usb/gadget/udc/mv_u3d_core.c u3d->power = mA; mA 1283 drivers/usb/gadget/udc/omap_udc.c static int omap_vbus_draw(struct usb_gadget *gadget, unsigned mA) mA 1289 drivers/usb/gadget/udc/omap_udc.c return usb_phy_set_power(udc->transceiver, mA); mA 1222 drivers/usb/gadget/udc/pch_udc.c static int pch_udc_pcd_vbus_draw(struct usb_gadget *gadget, unsigned int mA) mA 1207 drivers/usb/gadget/udc/pxa25x_udc.c static int pxa25x_udc_vbus_draw(struct usb_gadget *_gadget, unsigned mA) mA 1214 drivers/usb/gadget/udc/pxa25x_udc.c return usb_phy_set_power(udc->transceiver, mA); mA 1572 drivers/usb/gadget/udc/pxa27x_udc.c static int pxa_udc_vbus_draw(struct usb_gadget *_gadget, unsigned mA) mA 1578 drivers/usb/gadget/udc/pxa27x_udc.c return usb_phy_set_power(udc->transceiver, mA); mA 1243 drivers/usb/gadget/udc/s3c-hsudc.c static int s3c_hsudc_vbus_draw(struct usb_gadget *gadget, unsigned mA) mA 1251 drivers/usb/gadget/udc/s3c-hsudc.c return usb_phy_set_power(hsudc->transceiver, mA); mA 27 drivers/usb/gadget/udc/trace.h __field(unsigned, mA) mA 48 drivers/usb/gadget/udc/trace.h __entry->mA = g->mA; mA 66 drivers/usb/gadget/udc/trace.h __entry->speed, __entry->max_speed, __entry->state, __entry->mA, mA 1623 drivers/usb/musb/musb_gadget.c static int musb_gadget_vbus_draw(struct usb_gadget *gadget, unsigned mA) mA 1629 drivers/usb/musb/musb_gadget.c return usb_phy_set_power(musb->xceiv, mA); mA 324 drivers/usb/musb/tusb6010.c static int tusb_draw_power(struct usb_phy *x, unsigned mA) mA 340 drivers/usb/musb/tusb6010.c if (x->otg->default_a || mA < (musb->min_power << 1)) mA 341 drivers/usb/musb/tusb6010.c mA = 0; mA 344 drivers/usb/musb/tusb6010.c if (mA) { mA 353 drivers/usb/musb/tusb6010.c dev_dbg(musb->controller, "draw max %d mA VBUS\n", mA); mA 72 drivers/usb/phy/phy-generic.c static void nop_set_vbus_draw(struct usb_phy_generic *nop, unsigned mA) mA 82 drivers/usb/phy/phy-generic.c if (mA) { mA 83 drivers/usb/phy/phy-generic.c regulator_set_current_limit(vbus_draw, 0, 1000 * mA); mA 98 drivers/usb/phy/phy-generic.c nop->mA = mA; mA 18 drivers/usb/phy/phy-generic.h unsigned long mA; mA 36 drivers/usb/phy/phy-gpio-vbus-usb.c unsigned mA; mA 57 drivers/usb/phy/phy-gpio-vbus-usb.c static void set_vbus_draw(struct gpio_vbus_data *gpio_vbus, unsigned mA) mA 67 drivers/usb/phy/phy-gpio-vbus-usb.c if (mA) { mA 68 drivers/usb/phy/phy-gpio-vbus-usb.c regulator_set_current_limit(vbus_draw, 0, 1000 * mA); mA 83 drivers/usb/phy/phy-gpio-vbus-usb.c gpio_vbus->mA = mA; mA 214 drivers/usb/phy/phy-gpio-vbus-usb.c static int gpio_vbus_set_power(struct usb_phy *phy, unsigned mA) mA 221 drivers/usb/phy/phy-gpio-vbus-usb.c set_vbus_draw(gpio_vbus, mA); mA 238 drivers/usb/phy/phy-gpio-vbus-usb.c return gpio_vbus_set_power(phy, suspend ? 0 : gpio_vbus->mA); mA 90 drivers/usb/phy/phy-isp1301-omap.c static inline int tps65010_set_vbus_draw(unsigned mA) mA 92 drivers/usb/phy/phy-isp1301-omap.c pr_debug("tps65010: draw %d mA (STUB)\n", mA); mA 98 drivers/usb/phy/phy-isp1301-omap.c static void enable_vbus_draw(struct isp1301 *isp, unsigned mA) mA 100 drivers/usb/phy/phy-isp1301-omap.c int status = tps65010_set_vbus_draw(mA); mA 102 drivers/usb/phy/phy-isp1301-omap.c pr_debug(" VBUS %d mA error %d\n", mA, status); mA 107 drivers/usb/phy/phy-isp1301-omap.c static void enable_vbus_draw(struct isp1301 *isp, unsigned mA) mA 1389 drivers/usb/phy/phy-isp1301-omap.c isp1301_set_power(struct usb_phy *dev, unsigned mA) mA 1394 drivers/usb/phy/phy-isp1301-omap.c enable_vbus_draw(the_transceiver, mA); mA 182 drivers/usb/phy/phy.c void usb_phy_set_charger_current(struct usb_phy *usb_phy, unsigned int mA) mA 186 drivers/usb/phy/phy.c if (usb_phy->chg_cur.sdp_max == mA) mA 189 drivers/usb/phy/phy.c usb_phy->chg_cur.sdp_max = (mA > DEFAULT_SDP_CUR_MAX_SS) ? mA 190 drivers/usb/phy/phy.c DEFAULT_SDP_CUR_MAX_SS : mA; mA 193 drivers/usb/phy/phy.c if (usb_phy->chg_cur.dcp_max == mA) mA 196 drivers/usb/phy/phy.c usb_phy->chg_cur.dcp_max = (mA > DEFAULT_DCP_CUR_MAX) ? mA 197 drivers/usb/phy/phy.c DEFAULT_DCP_CUR_MAX : mA; mA 200 drivers/usb/phy/phy.c if (usb_phy->chg_cur.cdp_max == mA) mA 203 drivers/usb/phy/phy.c usb_phy->chg_cur.cdp_max = (mA > DEFAULT_CDP_CUR_MAX) ? mA 204 drivers/usb/phy/phy.c DEFAULT_CDP_CUR_MAX : mA; mA 207 drivers/usb/phy/phy.c if (usb_phy->chg_cur.aca_max == mA) mA 210 drivers/usb/phy/phy.c usb_phy->chg_cur.aca_max = (mA > DEFAULT_ACA_CUR_MAX) ? mA 211 drivers/usb/phy/phy.c DEFAULT_ACA_CUR_MAX : mA; mA 462 include/linux/mfd/abx500/ab8500-bm.h void ab8500_charger_usb_state_changed(u8 bm_usb_state, u16 mA); mA 135 include/linux/mfd/tps65010.h extern int tps65010_set_vbus_draw(unsigned mA); mA 20 include/linux/platform_data/usb-davinci.h void davinci_setup_usb(unsigned mA, unsigned potpgt_ms); mA 312 include/linux/usb/gadget.h int (*vbus_draw) (struct usb_gadget *, unsigned mA); mA 410 include/linux/usb/gadget.h unsigned mA; mA 566 include/linux/usb/gadget.h int usb_gadget_vbus_draw(struct usb_gadget *gadget, unsigned mA); mA 583 include/linux/usb/gadget.h static inline int usb_gadget_vbus_draw(struct usb_gadget *gadget, unsigned mA) mA 134 include/linux/usb/phy.h unsigned mA); mA 229 include/linux/usb/phy.h unsigned int mA); mA 271 include/linux/usb/phy.h unsigned int mA) mA 288 include/linux/usb/phy.h usb_phy_set_power(struct usb_phy *x, unsigned mA) mA 293 include/linux/usb/phy.h usb_phy_set_charger_current(x, mA); mA 296 include/linux/usb/phy.h return x->set_power(x, mA);