Home
last modified time | relevance | path

Searched refs:mv (Results 1 – 25 of 29) sorted by relevance

12

/drivers/gpu/drm/nouveau/nvkm/subdev/volt/
Dgk20a.c54 int mv; in gk20a_volt_get_cvb_voltage() local
56 mv = DIV_ROUND_CLOSEST(coef->c2 * speedo, s_scale); in gk20a_volt_get_cvb_voltage()
57 mv = DIV_ROUND_CLOSEST((mv + coef->c1) * speedo, s_scale) + coef->c0; in gk20a_volt_get_cvb_voltage()
58 return mv; in gk20a_volt_get_cvb_voltage()
70 int cvb_mv, mv; in gk20a_volt_get_cvb_t_voltage() local
74 mv = DIV_ROUND_CLOSEST(coef->c3 * speedo, s_scale) + coef->c4 + in gk20a_volt_get_cvb_t_voltage()
76 mv = DIV_ROUND_CLOSEST(mv * temp, t_scale) + cvb_mv; in gk20a_volt_get_cvb_t_voltage()
77 return mv; in gk20a_volt_get_cvb_t_voltage()
84 int mv; in gk20a_volt_calc_voltage() local
86 mv = gk20a_volt_get_cvb_t_voltage(speedo, -10, 100, 10, coef); in gk20a_volt_calc_voltage()
[all …]
/drivers/clk/tegra/
Dcvb.c17 int mv; in get_cvb_voltage() local
20 mv = DIV_ROUND_CLOSEST(cvb->c2 * speedo, s_scale); in get_cvb_voltage()
21 mv = DIV_ROUND_CLOSEST((mv + cvb->c1) * speedo, s_scale) + cvb->c0; in get_cvb_voltage()
22 return mv; in get_cvb_voltage()
25 static int round_cvb_voltage(int mv, int v_scale, in round_cvb_voltage() argument
33 uv = max(mv * 1000, offset) - offset; in round_cvb_voltage()
43 static int round_voltage(int mv, const struct rail_alignment *align, int up) in round_voltage() argument
48 uv = max(mv * 1000, align->offset_uv) - align->offset_uv; in round_voltage()
52 return mv; in round_voltage()
/drivers/scsi/
Dch.c701 struct changer_move mv; in ch_ioctl() local
703 if (copy_from_user(&mv, argp, sizeof (mv))) in ch_ioctl()
706 if (0 != ch_checkrange(ch, mv.cm_fromtype, mv.cm_fromunit) || in ch_ioctl()
707 0 != ch_checkrange(ch, mv.cm_totype, mv.cm_tounit )) { in ch_ioctl()
714 ch->firsts[mv.cm_fromtype] + mv.cm_fromunit, in ch_ioctl()
715 ch->firsts[mv.cm_totype] + mv.cm_tounit, in ch_ioctl()
716 mv.cm_flags & CM_INVERT); in ch_ioctl()
723 struct changer_exchange mv; in ch_ioctl() local
725 if (copy_from_user(&mv, argp, sizeof (mv))) in ch_ioctl()
728 if (0 != ch_checkrange(ch, mv.ce_srctype, mv.ce_srcunit ) || in ch_ioctl()
[all …]
Dhptiop.c163 u32 inbound_head = readl(&hba->u.mv.mu->inbound_head); in mv_inbound_write()
169 memcpy_toio(&hba->u.mv.mu->inbound_q[inbound_head], &p, 8); in mv_inbound_write()
170 writel(head, &hba->u.mv.mu->inbound_head); in mv_inbound_write()
172 &hba->u.mv.regs->inbound_doorbell); in mv_inbound_write()
208 status = readl(&hba->u.mv.regs->outbound_doorbell); in iop_intr_mv()
209 writel(~status, &hba->u.mv.regs->outbound_doorbell); in iop_intr_mv()
213 msg = readl(&hba->u.mv.mu->outbound_msg); in iop_intr_mv()
222 while ((tag = mv_outbound_read(hba->u.mv.mu))) in iop_intr_mv()
323 struct hpt_iop_request_header *reqhdr = hba->u.mv.internal_req; in iop_send_sync_request_mv()
328 mv_inbound_write(hba->u.mv.internal_req_phy | in iop_send_sync_request_mv()
[all …]
Dhptiop.h281 } mv; member
/drivers/scsi/aic7xxx/aicasm/
DMakefile70 mv $(<:.y=).tab.c $(OUTDIR)/$(<:.y=.c)
71 mv $(<:.y=).tab.h $(OUTDIR)/$(<:.y=.h)
79 mv $(<:.y=).tab.c $(OUTDIR)/$(<:.y=.c)
80 mv $(<:.y=).tab.h $(OUTDIR)/$(<:.y=.h)
/drivers/staging/fbtft/
Dfb_hx8353d.c78 #define mv BIT(5) macro
96 my | mv | (par->bgr << 3)); in set_var()
104 mx | mv | (par->bgr << 3)); in set_var()
/drivers/media/pci/tw5864/
Dtw5864-video.c968 frame->mv.addr = dma_alloc_coherent(&dev->pci->dev, in tw5864_video_init()
970 &frame->mv.dma_addr, in tw5864_video_init()
972 if (!frame->mv.addr) { in tw5864_video_init()
1024 dev->h264_buf[dev->h264_buf_w_index].mv.dma_addr); in tw5864_video_init()
1091 dev->h264_buf[i].mv.addr, in tw5864_video_init()
1092 dev->h264_buf[i].mv.dma_addr); in tw5864_video_init()
1212 dev->h264_buf[i].mv.addr, in tw5864_video_fini()
1213 dev->h264_buf[i].mv.dma_addr); in tw5864_video_fini()
1302 u32 *mv = (u32 *)frame->mv.addr; in tw5864_is_motion_triggered() local
1308 const unsigned int metric = tw5864_md_metric_from_mvd(mv[i]); in tw5864_is_motion_triggered()
[all …]
Dtw5864.h134 struct tw5864_dma_buf mv; member
Dtw5864-core.c168 tw_writel(TW5864_MV_STREAM_BASE_ADDR, cur_frame->mv.dma_addr); in tw5864_h264_isr()
/drivers/usb/serial/
DMakefile-keyspan_pda_fw14 mv $*.obj $@
/drivers/usb/phy/
DMakefile22 obj-$(CONFIG_USB_MV_OTG) += phy-mv-usb.o
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_pf.c793 struct qlcnic_macvlan_mbx mv; in qlcnic_sriov_cfg_vf_def_mac() local
825 mv.vlan = vlan; in qlcnic_sriov_cfg_vf_def_mac()
826 mv.mac_addr0 = addr[0]; in qlcnic_sriov_cfg_vf_def_mac()
827 mv.mac_addr1 = addr[1]; in qlcnic_sriov_cfg_vf_def_mac()
828 mv.mac_addr2 = addr[2]; in qlcnic_sriov_cfg_vf_def_mac()
829 mv.mac_addr3 = addr[3]; in qlcnic_sriov_cfg_vf_def_mac()
830 mv.mac_addr4 = addr[4]; in qlcnic_sriov_cfg_vf_def_mac()
831 mv.mac_addr5 = addr[5]; in qlcnic_sriov_cfg_vf_def_mac()
833 memcpy(buf, &mv, sizeof(struct qlcnic_macvlan_mbx)); in qlcnic_sriov_cfg_vf_def_mac()
Dqlcnic_83xx_hw.c2098 struct qlcnic_macvlan_mbx mv; in qlcnic_83xx_sre_macaddr_change() local
2122 mv.vlan = vlan_id; in qlcnic_83xx_sre_macaddr_change()
2123 mv.mac_addr0 = addr[0]; in qlcnic_83xx_sre_macaddr_change()
2124 mv.mac_addr1 = addr[1]; in qlcnic_83xx_sre_macaddr_change()
2125 mv.mac_addr2 = addr[2]; in qlcnic_83xx_sre_macaddr_change()
2126 mv.mac_addr3 = addr[3]; in qlcnic_83xx_sre_macaddr_change()
2127 mv.mac_addr4 = addr[4]; in qlcnic_83xx_sre_macaddr_change()
2128 mv.mac_addr5 = addr[5]; in qlcnic_83xx_sre_macaddr_change()
2130 memcpy(buf, &mv, sizeof(struct qlcnic_macvlan_mbx)); in qlcnic_83xx_sre_macaddr_change()
/drivers/cpufreq/
Dspeedstep-centrino.c85 #define OP(mhz, mv) \ argument
88 .driver_data = (((mhz)/100) << 8) | ((mv - 700) / 16) \
/drivers/leds/flash/
Dleds-max77693.c130 static inline u8 max77693_led_vsys_to_reg(u32 mv) in max77693_led_vsys_to_reg() argument
132 return ((mv - MAX_FLASH1_VSYS_MIN) / MAX_FLASH1_VSYS_STEP) << 2; in max77693_led_vsys_to_reg()
135 static inline u8 max77693_led_vout_to_reg(u32 mv) in max77693_led_vout_to_reg() argument
137 return (mv - FLASH_VOUT_MIN) / FLASH_VOUT_STEP + FLASH_VOUT_RMIN; in max77693_led_vout_to_reg()
/drivers/usb/host/
DMakefile83 obj-$(CONFIG_USB_EHCI_MV) += ehci-mv.o
/drivers/hwmon/
Dmax16065.c117 static inline int MV_TO_LIMIT(int mv, int range) in MV_TO_LIMIT() argument
119 return clamp_val(DIV_ROUND_CLOSEST(mv * 256, range), 0, 255); in MV_TO_LIMIT()
/drivers/ata/
Dahci.c721 int mv; in ahci_pci_init_controller() local
725 mv = 2; in ahci_pci_init_controller()
727 mv = 4; in ahci_pci_init_controller()
728 port_mmio = __ahci_port_base(host, mv); in ahci_pci_init_controller()
/drivers/usb/typec/tcpm/
Dtcpm.c1019 static int tcpm_set_current_limit(struct tcpm_port *port, u32 max_ma, u32 mv) in tcpm_set_current_limit() argument
1023 tcpm_log(port, "Setting voltage/current limit %u mV %u mA", mv, max_ma); in tcpm_set_current_limit()
1025 port->supply_voltage = mv; in tcpm_set_current_limit()
1030 ret = port->tcpc->set_current_limit(port->tcpc, max_ma, mv); in tcpm_set_current_limit()
3267 unsigned int mv, ma, mw, flags; in tcpm_pd_build_request() local
3285 mv = pdo_fixed_voltage(pdo); in tcpm_pd_build_request()
3289 mv = pdo_min_voltage(pdo); in tcpm_pd_build_request()
3299 ma = 1000 * mw / mv; in tcpm_pd_build_request()
3302 mw = ma * mv / 1000; in tcpm_pd_build_request()
3329 src_pdo_index, mv, mw, in tcpm_pd_build_request()
[all …]
Dwcove.c325 static int wcove_set_current_limit(struct tcpc_dev *tcpc, u32 max_ma, u32 mv) in wcove_set_current_limit() argument
/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dramgk104.c257 int mv = !next->bios.ramcfg_11_02_04; in gk104_ram_calc_gddr5() local
360 u32 temp = ram_mask(fuc, gpioMV, 0x3000, fuc->r_funcMV[mv]); in gk104_ram_calc_gddr5()
708 int mv = !next->bios.ramcfg_11_02_04; in gk104_ram_calc_sddr3() local
811 u32 temp = ram_mask(fuc, gpioMV, 0x3000, fuc->r_funcMV[mv]); in gk104_ram_calc_sddr3()
/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
Dgm20b.c196 s32 mv = DIV_ROUND_CLOSEST(uv, 1000); in gm20b_dvfs_calc_det_coeff() local
199 coeff = DIV_ROUND_CLOSEST(mv * p->coeff_slope, 1000) + p->coeff_offs; in gm20b_dvfs_calc_det_coeff()
/drivers/rtc/
DMakefile110 obj-$(CONFIG_RTC_DRV_MV) += rtc-mv.o
/drivers/net/ethernet/intel/ice/
Dice_sched.c3074 s64 mv = 0; in ice_sched_bw_to_rl_profile() local
3098 mv = round_up_64bit(mv_tmp, ICE_RL_PROF_MULTIPLIER); in ice_sched_bw_to_rl_profile()
3103 if (mv > ICE_RL_PROF_ACCURACY_BYTES) { in ice_sched_bw_to_rl_profile()
3113 profile->rl_multiply = cpu_to_le16(mv); in ice_sched_bw_to_rl_profile()

12