Home
last modified time | relevance | path

Searched refs:mv (Results 1 – 25 of 33) 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/uwb/
Ddrp.c106 struct uwb_rsv_move *mv; in uwb_rc_send_all_drp_ie() local
116 (rsv->mv.companion_drp_ie != NULL)) { in uwb_rc_send_all_drp_ie()
117 mv = &rsv->mv; in uwb_rc_send_all_drp_ie()
119 mv->companion_drp_ie->hdr.length + 2; in uwb_rc_send_all_drp_ie()
145 (rsv->mv.companion_drp_ie != NULL)) { in uwb_rc_send_all_drp_ie()
146 mv = &rsv->mv; in uwb_rc_send_all_drp_ie()
147 memcpy(IEDataptr, mv->companion_drp_ie, in uwb_rc_send_all_drp_ie()
148 mv->companion_drp_ie->hdr.length + 2); in uwb_rc_send_all_drp_ie()
150 mv->companion_drp_ie->hdr.length + 2; in uwb_rc_send_all_drp_ie()
256 struct uwb_rsv_move *mv = &rsv->mv; in handle_conflict_normal() local
[all …]
Drsv.c302 struct uwb_rsv_move *mv = &rsv->mv; in uwb_rsv_set_state() local
340 bitmap_andnot(rsv->mas.bm, rsv->mas.bm, mv->companion_mas.bm, UWB_NUM_MAS); in uwb_rsv_set_state()
346 uwb_drp_avail_release(rsv->rc, &mv->companion_mas); in uwb_rsv_set_state()
359 uwb_drp_avail_reserve(rsv->rc, &mv->companion_mas); in uwb_rsv_set_state()
360 bitmap_or(rsv->mas.bm, rsv->mas.bm, mv->companion_mas.bm, UWB_NUM_MAS); in uwb_rsv_set_state()
361 rsv->mas.safe += mv->companion_mas.safe; in uwb_rsv_set_state()
362 rsv->mas.unsafe += mv->companion_mas.unsafe; in uwb_rsv_set_state()
366 bitmap_andnot(mv->companion_mas.bm, rsv->mas.bm, mv->final_mas.bm, UWB_NUM_MAS); in uwb_rsv_set_state()
368 rsv->mas.safe = mv->final_mas.safe; in uwb_rsv_set_state()
369 rsv->mas.unsafe = mv->final_mas.unsafe; in uwb_rsv_set_state()
[all …]
Ddrp-ie.c194 struct uwb_rsv_move *mv; in uwb_drp_ie_update() local
235 mv = &rsv->mv; in uwb_drp_ie_update()
236 if (mv->companion_drp_ie == NULL) { in uwb_drp_ie_update()
237 mv->companion_drp_ie = uwb_drp_ie_alloc(); in uwb_drp_ie_update()
238 if (mv->companion_drp_ie == NULL) in uwb_drp_ie_update()
241 drp_ie = mv->companion_drp_ie; in uwb_drp_ie_update()
252 uwb_drp_ie_from_bm(drp_ie, &mv->companion_mas); in uwb_drp_ie_update()
/drivers/clk/tegra/
Dcvb.c26 int mv; in get_cvb_voltage() local
29 mv = DIV_ROUND_CLOSEST(cvb->c2 * speedo, s_scale); in get_cvb_voltage()
30 mv = DIV_ROUND_CLOSEST((mv + cvb->c1) * speedo, s_scale) + cvb->c0; in get_cvb_voltage()
31 return mv; in get_cvb_voltage()
34 static int round_cvb_voltage(int mv, int v_scale, in round_cvb_voltage() argument
42 uv = max(mv * 1000, offset) - offset; in round_cvb_voltage()
52 static int round_voltage(int mv, const struct rail_alignment *align, int up) in round_voltage() argument
57 uv = max(mv * 1000, align->offset_uv) - align->offset_uv; in round_voltage()
61 return mv; in round_voltage()
/drivers/staging/typec/
Dpd.h139 #define PDO_FIXED_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_FIXED_VOLT_SHIFT) argument
142 #define PDO_FIXED(mv, ma, flags) \ argument
144 PDO_FIXED_VOLT(mv) | PDO_FIXED_CURR(ma))
150 #define PDO_BATT_MIN_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_BATT_MIN_VOLT_SHIFT) argument
151 #define PDO_BATT_MAX_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_BATT_MAX_VOLT_SHIFT) argument
162 #define PDO_VAR_MIN_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_VAR_MIN_VOLT_SHIFT) argument
163 #define PDO_VAR_MAX_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_VAR_MAX_VOLT_SHIFT) argument
Dtcpm.c698 static int tcpm_set_current_limit(struct tcpm_port *port, u32 max_ma, u32 mv) in tcpm_set_current_limit() argument
702 tcpm_log(port, "Setting voltage/current limit %u mV %u mA", mv, max_ma); in tcpm_set_current_limit()
705 ret = port->tcpc->set_current_limit(port->tcpc, max_ma, mv); in tcpm_set_current_limit()
1724 unsigned int mv, ma, mw; in tcpm_pd_select_pdo() local
1727 mv = pdo_fixed_voltage(pdo); in tcpm_pd_select_pdo()
1729 mv = pdo_min_voltage(pdo); in tcpm_pd_select_pdo()
1736 mw = ma * mv / 1000; in tcpm_pd_select_pdo()
1740 if ((mw > max_mw || (mw == max_mw && mv > max_mv)) && in tcpm_pd_select_pdo()
1741 mv <= port->max_snk_mv) { in tcpm_pd_select_pdo()
1744 max_mv = mv; in tcpm_pd_select_pdo()
[all …]
Dtcpm.h126 int (*set_current_limit)(struct tcpc_dev *dev, u32 max_ma, u32 mv);
/drivers/scsi/
Dch.c691 struct changer_move mv; in ch_ioctl() local
693 if (copy_from_user(&mv, argp, sizeof (mv))) in ch_ioctl()
696 if (0 != ch_checkrange(ch, mv.cm_fromtype, mv.cm_fromunit) || in ch_ioctl()
697 0 != ch_checkrange(ch, mv.cm_totype, mv.cm_tounit )) { in ch_ioctl()
704 ch->firsts[mv.cm_fromtype] + mv.cm_fromunit, in ch_ioctl()
705 ch->firsts[mv.cm_totype] + mv.cm_tounit, in ch_ioctl()
706 mv.cm_flags & CM_INVERT); in ch_ioctl()
713 struct changer_exchange mv; in ch_ioctl() local
715 if (copy_from_user(&mv, argp, sizeof (mv))) in ch_ioctl()
718 if (0 != ch_checkrange(ch, mv.ce_srctype, mv.ce_srcunit ) || in ch_ioctl()
[all …]
Dhptiop.c171 u32 inbound_head = readl(&hba->u.mv.mu->inbound_head); in mv_inbound_write()
177 memcpy_toio(&hba->u.mv.mu->inbound_q[inbound_head], &p, 8); in mv_inbound_write()
178 writel(head, &hba->u.mv.mu->inbound_head); in mv_inbound_write()
180 &hba->u.mv.regs->inbound_doorbell); in mv_inbound_write()
216 status = readl(&hba->u.mv.regs->outbound_doorbell); in iop_intr_mv()
217 writel(~status, &hba->u.mv.regs->outbound_doorbell); in iop_intr_mv()
221 msg = readl(&hba->u.mv.mu->outbound_msg); in iop_intr_mv()
230 while ((tag = mv_outbound_read(hba->u.mv.mu))) in iop_intr_mv()
331 struct hpt_iop_request_header *reqhdr = hba->u.mv.internal_req; in iop_send_sync_request_mv()
336 mv_inbound_write(hba->u.mv.internal_req_phy | in iop_send_sync_request_mv()
[all …]
Dhptiop.h289 } 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.c87 #define mv BIT(5) macro
105 my | mv | (par->bgr << 3)); in set_var()
113 mx | mv | (par->bgr << 3)); in set_var()
/drivers/media/pci/tw5864/
Dtw5864-video.c971 frame->mv.addr = dma_alloc_coherent(&dev->pci->dev, in tw5864_video_init()
973 &frame->mv.dma_addr, in tw5864_video_init()
975 if (!frame->mv.addr) { in tw5864_video_init()
1027 dev->h264_buf[dev->h264_buf_w_index].mv.dma_addr); in tw5864_video_init()
1095 dev->h264_buf[i].mv.addr, in tw5864_video_init()
1096 dev->h264_buf[i].mv.dma_addr); in tw5864_video_init()
1218 dev->h264_buf[i].mv.addr, in tw5864_video_fini()
1219 dev->h264_buf[i].mv.dma_addr); in tw5864_video_fini()
1308 u32 *mv = (u32 *)frame->mv.addr; in tw5864_is_motion_triggered() local
1314 const unsigned int metric = tw5864_md_metric_from_mvd(mv[i]); in tw5864_is_motion_triggered()
[all …]
Dtw5864.h143 struct tw5864_dma_buf mv; member
Dtw5864-core.c177 tw_writel(TW5864_MV_STREAM_BASE_ADDR, cur_frame->mv.dma_addr); in tw5864_h264_isr()
/drivers/usb/serial/
DMakefile-keyspan_pda_fw13 mv $*.obj $@
/drivers/media/usb/usbvision/
Dusbvision.h189 #define YUV_TO_RGB_BY_THE_BOOK(my, mu, mv, mr, mg, mb) { \ argument
193 mm_v = (mv) - 128; \
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sriov_pf.c792 struct qlcnic_macvlan_mbx mv; in qlcnic_sriov_cfg_vf_def_mac() local
824 mv.vlan = vlan; in qlcnic_sriov_cfg_vf_def_mac()
825 mv.mac_addr0 = addr[0]; in qlcnic_sriov_cfg_vf_def_mac()
826 mv.mac_addr1 = addr[1]; in qlcnic_sriov_cfg_vf_def_mac()
827 mv.mac_addr2 = addr[2]; in qlcnic_sriov_cfg_vf_def_mac()
828 mv.mac_addr3 = addr[3]; in qlcnic_sriov_cfg_vf_def_mac()
829 mv.mac_addr4 = addr[4]; in qlcnic_sriov_cfg_vf_def_mac()
830 mv.mac_addr5 = addr[5]; in qlcnic_sriov_cfg_vf_def_mac()
832 memcpy(buf, &mv, sizeof(struct qlcnic_macvlan_mbx)); in qlcnic_sriov_cfg_vf_def_mac()
Dqlcnic_83xx_hw.c2093 struct qlcnic_macvlan_mbx mv; in qlcnic_83xx_sre_macaddr_change() local
2117 mv.vlan = vlan_id; in qlcnic_83xx_sre_macaddr_change()
2118 mv.mac_addr0 = addr[0]; in qlcnic_83xx_sre_macaddr_change()
2119 mv.mac_addr1 = addr[1]; in qlcnic_83xx_sre_macaddr_change()
2120 mv.mac_addr2 = addr[2]; in qlcnic_83xx_sre_macaddr_change()
2121 mv.mac_addr3 = addr[3]; in qlcnic_83xx_sre_macaddr_change()
2122 mv.mac_addr4 = addr[4]; in qlcnic_83xx_sre_macaddr_change()
2123 mv.mac_addr5 = addr[5]; in qlcnic_83xx_sre_macaddr_change()
2125 memcpy(buf, &mv, sizeof(struct qlcnic_macvlan_mbx)); in qlcnic_83xx_sre_macaddr_change()
/drivers/usb/phy/
DMakefile26 obj-$(CONFIG_USB_MV_OTG) += phy-mv-usb.o
/drivers/cpufreq/
Dspeedstep-centrino.c84 #define OP(mhz, mv) \ argument
87 .driver_data = (((mhz)/100) << 8) | ((mv - 700) / 16) \
/drivers/leds/
Dleds-max77693.c133 static inline u8 max77693_led_vsys_to_reg(u32 mv) in max77693_led_vsys_to_reg() argument
135 return ((mv - MAX_FLASH1_VSYS_MIN) / MAX_FLASH1_VSYS_STEP) << 2; in max77693_led_vsys_to_reg()
138 static inline u8 max77693_led_vout_to_reg(u32 mv) in max77693_led_vout_to_reg() argument
140 return (mv - FLASH_VOUT_MIN) / FLASH_VOUT_STEP + FLASH_VOUT_RMIN; in max77693_led_vout_to_reg()
/drivers/ata/
Dahci.c660 int mv; in ahci_pci_init_controller() local
664 mv = 2; in ahci_pci_init_controller()
666 mv = 4; in ahci_pci_init_controller()
667 port_mmio = __ahci_port_base(host, mv); in ahci_pci_init_controller()
/drivers/hwmon/
Dmax16065.c120 static inline int MV_TO_LIMIT(int mv, int range) in MV_TO_LIMIT() argument
122 return clamp_val(DIV_ROUND_CLOSEST(mv * 256, range), 0, 255); in MV_TO_LIMIT()

12