Home
last modified time | relevance | path

Searched refs:ma (Results 1 – 21 of 21) sorted by relevance

/drivers/power/supply/
Dpcf50633-charger.c36 int pcf50633_mbc_usb_curlim_set(struct pcf50633 *pcf, int ma) in pcf50633_mbc_usb_curlim_set() argument
44 if (ma >= 1000) { in pcf50633_mbc_usb_curlim_set()
46 ma = 1000; in pcf50633_mbc_usb_curlim_set()
47 } else if (ma >= 500) { in pcf50633_mbc_usb_curlim_set()
49 ma = 500; in pcf50633_mbc_usb_curlim_set()
50 } else if (ma >= 100) { in pcf50633_mbc_usb_curlim_set()
52 ma = 100; in pcf50633_mbc_usb_curlim_set()
55 ma = 0; in pcf50633_mbc_usb_curlim_set()
61 dev_err(pcf->dev, "error setting usb curlim to %d mA\n", ma); in pcf50633_mbc_usb_curlim_set()
63 dev_info(pcf->dev, "usb curlim to %d mA\n", ma); in pcf50633_mbc_usb_curlim_set()
[all …]
/drivers/acpi/numa/
Dsrat.c242 acpi_numa_memory_affinity_init(struct acpi_srat_mem_affinity *ma) in acpi_numa_memory_affinity_init() argument
250 if (ma->header.length < sizeof(struct acpi_srat_mem_affinity)) { in acpi_numa_memory_affinity_init()
252 ma->header.length); in acpi_numa_memory_affinity_init()
255 if ((ma->flags & ACPI_SRAT_MEM_ENABLED) == 0) in acpi_numa_memory_affinity_init()
257 hotpluggable = ma->flags & ACPI_SRAT_MEM_HOT_PLUGGABLE; in acpi_numa_memory_affinity_init()
261 start = ma->base_address; in acpi_numa_memory_affinity_init()
262 end = start + ma->length; in acpi_numa_memory_affinity_init()
263 pxm = ma->proximity_domain; in acpi_numa_memory_affinity_init()
286 ma->flags & ACPI_SRAT_MEM_NON_VOLATILE ? " non-volatile" : ""); in acpi_numa_memory_affinity_init()
289 if (hotpluggable && memblock_mark_hotplug(start, ma->length)) in acpi_numa_memory_affinity_init()
Dhmat.c484 struct acpi_srat_mem_affinity *ma = (void *)header; in srat_parse_mem_affinity() local
486 if (!ma) in srat_parse_mem_affinity()
488 if (!(ma->flags & ACPI_SRAT_MEM_ENABLED)) in srat_parse_mem_affinity()
490 alloc_memory_target(ma->proximity_domain, ma->base_address, ma->length); in srat_parse_mem_affinity()
/drivers/hwtracing/intel_th/
Dgth.c146 struct master_attribute *ma = in master_attr_show() local
148 struct gth_device *gth = ma->gth; in master_attr_show()
153 port = gth->master[ma->master]; in master_attr_show()
168 struct master_attribute *ma = in master_attr_store() local
170 struct gth_device *gth = ma->gth; in master_attr_store()
182 old_port = gth->master[ma->master]; in master_attr_store()
184 gth->master[ma->master] = -1; in master_attr_store()
185 clear_bit(ma->master, gth->output[old_port].master); in master_attr_store()
192 gth_master_set(gth, ma->master, -1); in master_attr_store()
203 set_bit(ma->master, gth->output[port].master); in master_attr_store()
[all …]
/drivers/gpu/drm/i915/gvt/
Ddebugfs.c46 struct diff_mmio *ma; in mmio_offset_compare() local
49 ma = container_of(a, struct diff_mmio, node); in mmio_offset_compare()
51 if (ma->offset < mb->offset) in mmio_offset_compare()
53 else if (ma->offset > mb->offset) in mmio_offset_compare()
/drivers/tee/optee/
Dcall.c184 struct optee_msg_arg *ma; in get_msg_arg() local
191 ma = tee_shm_get_va(shm, 0); in get_msg_arg()
192 if (IS_ERR(ma)) { in get_msg_arg()
193 rc = PTR_ERR(ma); in get_msg_arg()
201 memset(ma, 0, OPTEE_MSG_GET_ARG_SIZE(num_params)); in get_msg_arg()
202 ma->num_params = num_params; in get_msg_arg()
203 *msg_arg = ma; in get_msg_arg()
/drivers/net/ethernet/chelsio/cxgb/
Dpm3393.c499 static int pm3393_macaddress_set(struct cmac *cmac, const u8 ma[6]) in pm3393_macaddress_set()
522 memcpy(cmac->instance->mac_addr, ma, ETH_ALEN); in pm3393_macaddress_set()
524 lo = ((u32) ma[1] << 8) | (u32) ma[0]; in pm3393_macaddress_set()
525 mid = ((u32) ma[3] << 8) | (u32) ma[2]; in pm3393_macaddress_set()
526 hi = ((u32) ma[5] << 8) | (u32) ma[4]; in pm3393_macaddress_set()
/drivers/net/fddi/skfp/h/
Dskfbi.h818 #define MARW(ma) outpw(FM_A(FM_MARW),(unsigned int)(ma)) argument
819 #define MARR(ma) outpw(FM_A(FM_MARR),(unsigned int)(ma)) argument
/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
Dtc.c148 struct tc_cls_matchall_offload *ma) in mlx5e_rep_setup_tc_cls_matchall() argument
150 switch (ma->command) { in mlx5e_rep_setup_tc_cls_matchall()
152 return mlx5e_tc_configure_matchall(priv, ma); in mlx5e_rep_setup_tc_cls_matchall()
154 return mlx5e_tc_delete_matchall(priv, ma); in mlx5e_rep_setup_tc_cls_matchall()
156 mlx5e_tc_stats_matchall(priv, ma); in mlx5e_rep_setup_tc_cls_matchall()
/drivers/ata/
Dpata_sil680.c168 unsigned long ma = sil680_seldev(ap, adev, 0x08); in sil680_set_dmamode() local
177 pci_read_config_word(pdev, ma, &multi); in sil680_set_dmamode()
196 pci_write_config_word(pdev, ma, multi); in sil680_set_dmamode()
/drivers/virtio/
Dvirtio_input.c174 u32 mi, ma, re, fu, fl; in virtinput_cfg_abs() local
178 virtio_cread_le(vi->vdev, struct virtio_input_config, u.abs.max, &ma); in virtinput_cfg_abs()
182 input_set_abs_params(vi->idev, abs, mi, ma, fu, fl); in virtinput_cfg_abs()
/drivers/media/tuners/
Dmt2063.c693 u32 ma, mb, mc, md, me, mf; in IsSpurInBand() local
724 ma = (n * ((f_LO1 + hgds) / gd_Scale) + in IsSpurInBand()
728 if (md == ma) in IsSpurInBand()
764 if (ma != mb) { in IsSpurInBand()
766 f_nsLO2 = ma * (f_LO2 / gc_Scale); in IsSpurInBand()
769 n * (f_LO1 % gc_Scale) - ma * (f_LO2 % gc_Scale); in IsSpurInBand()
771 *fp = (((s32) d + f_Spur) / (ma - n)) + 1; in IsSpurInBand()
772 *fm = (-(f_Spur + (s32) c) / (ma - n)) + 1; in IsSpurInBand()
/drivers/pinctrl/freescale/
Dpinctrl-mxs.c260 u8 ma, vol, pull, bank, shift; in mxs_pinconf_group_set() local
269 ma = CONFIG_TO_MA(config); in mxs_pinconf_group_set()
284 mxs_pinctrl_rmwl(ma, 0x3, shift, reg); in mxs_pinconf_group_set()
/drivers/pinctrl/bcm/
Dpinctrl-nsp-mux.c227 #define NSP_PIN_GROUP(group_name, ba, sh, ma, al) \ argument
235 .mask = ma, \
Dpinctrl-ns2-mux.c372 #define NS2_PIN_GROUP(group_name, ba, off, sh, ma, al) \ argument
381 .mask = ma, \
/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.h166 struct tc_cls_matchall_offload *ma);
Den_tc.c4856 struct tc_cls_matchall_offload *ma) in mlx5e_tc_configure_matchall() argument
4859 struct netlink_ext_ack *extack = ma->common.extack; in mlx5e_tc_configure_matchall()
4866 if (ma->common.prio != 1) { in mlx5e_tc_configure_matchall()
4871 return scan_tc_matchall_fdb_actions(priv, &ma->rule->action, extack); in mlx5e_tc_configure_matchall()
4875 struct tc_cls_matchall_offload *ma) in mlx5e_tc_delete_matchall() argument
4877 struct netlink_ext_ack *extack = ma->common.extack; in mlx5e_tc_delete_matchall()
4883 struct tc_cls_matchall_offload *ma) in mlx5e_tc_stats_matchall() argument
4894 flow_stats_update(&ma->stats, dbytes, dpkts, 0, jiffies, in mlx5e_tc_stats_matchall()
/drivers/net/ethernet/freescale/enetc/
Denetc_qos.c269 u32 m0, ma, r0, ra; in enetc_setup_tc_cbs() local
272 ma = enetc_port_rd(hw, ENETC_PTCMSDUR(prio_top)) * 8; in enetc_setup_tc_cbs()
276 max_interference_size = m0 + ma + in enetc_setup_tc_cbs()
/drivers/usb/typec/tcpm/
Dtcpm.c3267 unsigned int mv, ma, mw, flags; in tcpm_pd_build_request() local
3299 ma = 1000 * mw / mv; in tcpm_pd_build_request()
3301 ma = min_current(pdo, matching_snk_pdo); in tcpm_pd_build_request()
3302 mw = ma * mv / 1000; in tcpm_pd_build_request()
3308 max_ma = ma; in tcpm_pd_build_request()
3332 *rdo = RDO_FIXED(src_pdo_index + 1, ma, max_ma, flags); in tcpm_pd_build_request()
3335 src_pdo_index, mv, ma, in tcpm_pd_build_request()
3339 port->req_current_limit = ma; in tcpm_pd_build_request()
/drivers/usb/gadget/udc/
Ds3c2410_udc.c1479 static int s3c2410_vbus_draw(struct usb_gadget *_gadget, unsigned ma) in s3c2410_vbus_draw() argument
1484 udc_info->vbus_draw(ma); in s3c2410_vbus_draw()
/drivers/usb/chipidea/
Dudc.c1731 static int ci_udc_vbus_draw(struct usb_gadget *_gadget, unsigned ma) in ci_udc_vbus_draw() argument
1736 return usb_phy_set_power(ci->usb_phy, ma); in ci_udc_vbus_draw()