/drivers/power/supply/ |
D | pcf50633-charger.c | 36 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/ |
D | srat.c | 247 acpi_numa_memory_affinity_init(struct acpi_srat_mem_affinity *ma) in acpi_numa_memory_affinity_init() argument 255 if (ma->header.length < sizeof(struct acpi_srat_mem_affinity)) { in acpi_numa_memory_affinity_init() 257 ma->header.length); in acpi_numa_memory_affinity_init() 260 if ((ma->flags & ACPI_SRAT_MEM_ENABLED) == 0) in acpi_numa_memory_affinity_init() 263 (ma->flags & ACPI_SRAT_MEM_HOT_PLUGGABLE); in acpi_numa_memory_affinity_init() 265 start = ma->base_address; in acpi_numa_memory_affinity_init() 266 end = start + ma->length; in acpi_numa_memory_affinity_init() 267 pxm = ma->proximity_domain; in acpi_numa_memory_affinity_init() 290 ma->flags & ACPI_SRAT_MEM_NON_VOLATILE ? " non-volatile" : ""); in acpi_numa_memory_affinity_init() 293 if (hotpluggable && memblock_mark_hotplug(start, ma->length)) in acpi_numa_memory_affinity_init()
|
D | hmat.c | 483 struct acpi_srat_mem_affinity *ma = (void *)header; in srat_parse_mem_affinity() local 485 if (!ma) in srat_parse_mem_affinity() 487 if (!(ma->flags & ACPI_SRAT_MEM_ENABLED)) in srat_parse_mem_affinity() 489 alloc_memory_target(ma->proximity_domain, ma->base_address, ma->length); in srat_parse_mem_affinity()
|
/drivers/hwtracing/intel_th/ |
D | gth.c | 146 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/ |
D | debugfs.c | 46 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/net/ethernet/chelsio/cxgb/ |
D | pm3393.c | 490 static int pm3393_macaddress_set(struct cmac *cmac, const u8 ma[6]) in pm3393_macaddress_set() 513 memcpy(cmac->instance->mac_addr, ma, ETH_ALEN); in pm3393_macaddress_set() 515 lo = ((u32) ma[1] << 8) | (u32) ma[0]; in pm3393_macaddress_set() 516 mid = ((u32) ma[3] << 8) | (u32) ma[2]; in pm3393_macaddress_set() 517 hi = ((u32) ma[5] << 8) | (u32) ma[4]; in pm3393_macaddress_set()
|
/drivers/net/fddi/skfp/h/ |
D | skfbi.h | 818 #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/ata/ |
D | pata_sil680.c | 164 int ma = sil680_seldev(ap, adev, 0x08); in sil680_set_dmamode() local 173 pci_read_config_word(pdev, ma, &multi); in sil680_set_dmamode() 192 pci_write_config_word(pdev, ma, multi); in sil680_set_dmamode()
|
/drivers/tee/optee/ |
D | call.c | 190 struct optee_msg_arg *ma; in optee_get_msg_arg() local 238 ma = res; in optee_get_msg_arg() 240 memset(ma, 0, sz); in optee_get_msg_arg() 241 ma->num_params = num_params; in optee_get_msg_arg()
|
/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
D | tc.c | 152 struct tc_cls_matchall_offload *ma) in mlx5e_rep_setup_tc_cls_matchall() argument 154 switch (ma->command) { in mlx5e_rep_setup_tc_cls_matchall() 156 return mlx5e_tc_configure_matchall(priv, ma); in mlx5e_rep_setup_tc_cls_matchall() 158 return mlx5e_tc_delete_matchall(priv, ma); in mlx5e_rep_setup_tc_cls_matchall() 160 mlx5e_tc_stats_matchall(priv, ma); in mlx5e_rep_setup_tc_cls_matchall()
|
/drivers/pinctrl/cirrus/ |
D | pinctrl-cs42l43.c | 293 unsigned int ma) in cs42l43_pin_set_drv_str() argument 299 if (ma == cs42l43_pin_drv_str_ma[i]) { in cs42l43_pin_set_drv_str() 304 cs42l43_pin_pins[pin].name, ma); in cs42l43_pin_set_drv_str() 313 cs42l43_pin_pins[pin].name, ma); in cs42l43_pin_set_drv_str()
|
/drivers/virtio/ |
D | virtio_input.c | 174 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/ |
D | mt2063.c | 693 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/ |
D | pinctrl-mxs.c | 263 u8 ma, vol, pull, bank, shift; in mxs_pinconf_group_set() local 272 ma = PIN_CONFIG_TO_MA(config); in mxs_pinconf_group_set() 287 mxs_pinctrl_rmwl(ma, 0x3, shift, reg); in mxs_pinconf_group_set()
|
/drivers/pinctrl/bcm/ |
D | pinctrl-nsp-mux.c | 221 #define NSP_PIN_GROUP(group_name, ba, sh, ma, al) \ argument 229 .mask = ma, \
|
D | pinctrl-ns2-mux.c | 366 #define NS2_PIN_GROUP(group_name, ba, off, sh, ma, al) \ argument 375 .mask = ma, \
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_tc.h | 207 struct tc_cls_matchall_offload *ma);
|
D | en_tc.c | 5012 struct tc_cls_matchall_offload *ma) in mlx5e_tc_configure_matchall() argument 5014 struct netlink_ext_ack *extack = ma->common.extack; in mlx5e_tc_configure_matchall() 5016 if (ma->common.prio != 1) { in mlx5e_tc_configure_matchall() 5021 return scan_tc_matchall_fdb_actions(priv, &ma->rule->action, extack); in mlx5e_tc_configure_matchall() 5025 struct tc_cls_matchall_offload *ma) in mlx5e_tc_delete_matchall() argument 5027 struct netlink_ext_ack *extack = ma->common.extack; in mlx5e_tc_delete_matchall() 5033 struct tc_cls_matchall_offload *ma) in mlx5e_tc_stats_matchall() argument 5044 flow_stats_update(&ma->stats, dbytes, dpkts, 0, jiffies, in mlx5e_tc_stats_matchall()
|
/drivers/net/ethernet/freescale/enetc/ |
D | enetc_qos.c | 318 u32 m0, ma, r0, ra; in enetc_setup_tc_cbs() local 321 ma = enetc_port_rd(hw, ENETC_PTCMSDUR(prio_top)) * 8; in enetc_setup_tc_cbs() 325 max_interference_size = m0 + ma + in enetc_setup_tc_cbs()
|
/drivers/usb/typec/tcpm/ |
D | tcpm.c | 3342 unsigned int mv, ma, mw, flags; in tcpm_pd_build_request() local 3374 ma = 1000 * mw / mv; in tcpm_pd_build_request() 3376 ma = min_current(pdo, matching_snk_pdo); in tcpm_pd_build_request() 3377 mw = ma * mv / 1000; in tcpm_pd_build_request() 3383 max_ma = ma; in tcpm_pd_build_request() 3407 *rdo = RDO_FIXED(src_pdo_index + 1, ma, max_ma, flags); in tcpm_pd_build_request() 3410 src_pdo_index, mv, ma, in tcpm_pd_build_request() 3414 port->req_current_limit = ma; in tcpm_pd_build_request()
|
/drivers/usb/chipidea/ |
D | udc.c | 1759 static int ci_udc_vbus_draw(struct usb_gadget *_gadget, unsigned ma) in ci_udc_vbus_draw() argument 1764 return usb_phy_set_power(ci->usb_phy, ma); in ci_udc_vbus_draw()
|