Home
last modified time | relevance | path

Searched refs:minfo (Results 1 – 25 of 47) sorted by relevance

12

/linux-6.1.9/drivers/video/fbdev/matrox/
Dmatroxfb_DAC1064.c37 static void DAC1064_calcclock(const struct matrox_fb_info *minfo, in DAC1064_calcclock() argument
49 fvco = PLL_calcclock(minfo, freq, fmax, in, feed, &p); in DAC1064_calcclock()
88 static void DAC1064_setpclk(struct matrox_fb_info *minfo, unsigned long fout) in DAC1064_setpclk() argument
94 DAC1064_calcclock(minfo, fout, minfo->max_pixel_clock, &m, &n, &p); in DAC1064_setpclk()
95 minfo->hw.DACclk[0] = m; in DAC1064_setpclk()
96 minfo->hw.DACclk[1] = n; in DAC1064_setpclk()
97 minfo->hw.DACclk[2] = p; in DAC1064_setpclk()
100 static void DAC1064_setmclk(struct matrox_fb_info *minfo, int oscinfo, in DAC1064_setmclk() argument
104 struct matrox_hw_state *hw = &minfo->hw; in DAC1064_setmclk()
108 if (minfo->devflags.noinit) { in DAC1064_setmclk()
[all …]
Dmatroxfb_Ti3026.c283 static int Ti3026_calcclock(const struct matrox_fb_info *minfo, in Ti3026_calcclock() argument
292 fvco = PLL_calcclock(minfo, freq, fmax, &lin, &lfeed, &lpost); in Ti3026_calcclock()
299 static int Ti3026_setpclk(struct matrox_fb_info *minfo, int clk) in Ti3026_setpclk() argument
303 struct matrox_hw_state *hw = &minfo->hw; in Ti3026_setpclk()
307 f_pll = Ti3026_calcclock(minfo, clk, minfo->max_pixel_clock, &pixin, &pixfeed, &pixpost); in Ti3026_setpclk()
317 Bpp = minfo->curr.final_bppShift; in Ti3026_setpclk()
319 if (minfo->fbcon.var.bits_per_pixel == 24) { in Ti3026_setpclk()
338 if (minfo->fbcon.var.bits_per_pixel == 24) { in Ti3026_setpclk()
341 if (minfo->accel.ramdac_rev > 0x20) { in Ti3026_setpclk()
342 if (isInterleave(minfo)) in Ti3026_setpclk()
[all …]
Dmatroxfb_base.c126 static void matroxfb_unregister_device(struct matrox_fb_info* minfo);
157 static void update_crtc2(struct matrox_fb_info *minfo, unsigned int pos) in update_crtc2() argument
159 struct matroxfb_dh_fb_info *info = minfo->crtc2.info; in update_crtc2()
162 if (info && (info->fbcon.var.bits_per_pixel == minfo->fbcon.var.bits_per_pixel) in update_crtc2()
163 && (info->fbcon.var.xres_virtual == minfo->fbcon.var.xres_virtual) in update_crtc2()
164 && (info->fbcon.var.green.length == minfo->fbcon.var.green.length) in update_crtc2()
166 switch (minfo->fbcon.var.bits_per_pixel) { in update_crtc2()
172 mga_outl(0x3C28, pos + minfo->fbcon.var.xres_virtual * minfo->fbcon.var.bits_per_pixel / 8); in update_crtc2()
181 static void matroxfb_crtc1_panpos(struct matrox_fb_info *minfo) in matroxfb_crtc1_panpos() argument
183 if (minfo->crtc1.panpos >= 0) { in matroxfb_crtc1_panpos()
[all …]
Dg450_pll.c28 static unsigned int g450_mnp2vco(const struct matrox_fb_info *minfo, in g450_mnp2vco() argument
35 return (minfo->features.pll.ref_freq * n + (m >> 1)) / m; in g450_mnp2vco()
38 unsigned int g450_mnp2f(const struct matrox_fb_info *minfo, unsigned int mnp) in g450_mnp2f() argument
40 return g450_vco2f(mnp, g450_mnp2vco(minfo, mnp)); in g450_mnp2f()
55 static unsigned int g450_nextpll(const struct matrox_fb_info *minfo, in g450_nextpll() argument
99 n = ((tvco * (m+1) + minfo->features.pll.ref_freq) / (minfo->features.pll.ref_freq * 2)) - 2; in g450_nextpll()
104 static unsigned int g450_firstpll(const struct matrox_fb_info *minfo, in g450_firstpll() argument
133 return g450_nextpll(minfo, pi, vco, 0xFF0000 | p); in g450_firstpll()
136 static inline unsigned int g450_setpll(const struct matrox_fb_info *minfo, in g450_setpll() argument
141 matroxfb_DAC_out(minfo, M1064_XPIXPLLAM, mnp >> 16); in g450_setpll()
[all …]
Dmatroxfb_g450.c84 static inline int *get_ctrl_ptr(struct matrox_fb_info *minfo, unsigned int idx) in get_ctrl_ptr() argument
86 return (int*)((char*)minfo + g450_controls[idx].control); in get_ctrl_ptr()
89 static void tvo_fill_defaults(struct matrox_fb_info *minfo) in tvo_fill_defaults() argument
94 *get_ctrl_ptr(minfo, i) = g450_controls[i].desc.default_value; in tvo_fill_defaults()
98 static int cve2_get_reg(struct matrox_fb_info *minfo, int reg) in cve2_get_reg() argument
104 matroxfb_DAC_out(minfo, 0x87, reg); in cve2_get_reg()
105 val = matroxfb_DAC_in(minfo, 0x88); in cve2_get_reg()
110 static void cve2_set_reg(struct matrox_fb_info *minfo, int reg, int val) in cve2_set_reg() argument
115 matroxfb_DAC_out(minfo, 0x87, reg); in cve2_set_reg()
116 matroxfb_DAC_out(minfo, 0x88, val); in cve2_set_reg()
[all …]
Dmatroxfb_misc.c93 void matroxfb_DAC_out(const struct matrox_fb_info *minfo, int reg, int val) in matroxfb_DAC_out() argument
100 int matroxfb_DAC_in(const struct matrox_fb_info *minfo, int reg) in matroxfb_DAC_in() argument
190 int matroxfb_vgaHWinit(struct matrox_fb_info *minfo, struct my_timming *m) in matroxfb_vgaHWinit() argument
197 struct matrox_hw_state * const hw = &minfo->hw; in matroxfb_vgaHWinit()
247 divider = minfo->curr.final_bppShift; in matroxfb_vgaHWinit()
277 wd = minfo->fbcon.var.xres_virtual * minfo->curr.final_bppShift / 64; in matroxfb_vgaHWinit()
294 if (minfo->outputs[1].src == MATROXFB_SRC_CRTC1) in matroxfb_vgaHWinit()
338 void matroxfb_vgaHWrestore(struct matrox_fb_info *minfo) in matroxfb_vgaHWrestore() argument
341 struct matrox_hw_state * const hw = &minfo->hw; in matroxfb_vgaHWrestore()
530 static int parse_pins1(struct matrox_fb_info *minfo, in parse_pins1() argument
[all …]
Dmatroxfb_accel.c111 void matrox_cfbX_init(struct matrox_fb_info *minfo) in matrox_cfbX_init() argument
120 mpitch = minfo->fbcon.var.xres_virtual; in matrox_cfbX_init()
122 minfo->fbops.fb_copyarea = cfb_copyarea; in matrox_cfbX_init()
123 minfo->fbops.fb_fillrect = cfb_fillrect; in matrox_cfbX_init()
124 minfo->fbops.fb_imageblit = cfb_imageblit; in matrox_cfbX_init()
125 minfo->fbops.fb_cursor = NULL; in matrox_cfbX_init()
127 accel = (minfo->fbcon.var.accel_flags & FB_ACCELF_TEXT) == FB_ACCELF_TEXT; in matrox_cfbX_init()
129 switch (minfo->fbcon.var.bits_per_pixel) { in matrox_cfbX_init()
133 matrox_cfb4_pal(minfo->cmap); in matrox_cfbX_init()
135 minfo->fbops.fb_copyarea = matroxfb_cfb4_copyarea; in matrox_cfbX_init()
[all …]
Dmatroxfb_crtc2.c70 struct matrox_fb_info *minfo = m2info->primary_dev; in matroxfb_dh_restore() local
86 if (minfo->outputs[1].src == MATROXFB_SRC_CRTC2) { in matroxfb_dh_restore()
87 if (minfo->devflags.g450dac) { in matroxfb_dh_restore()
90 if (minfo->outputs[1].mode != MATROXFB_OUTPUT_MODE_MONITOR) { in matroxfb_dh_restore()
98 } else if (minfo->outputs[0].src == MATROXFB_SRC_CRTC2) { in matroxfb_dh_restore()
102 if (minfo->outputs[0].src == MATROXFB_SRC_CRTC2) { in matroxfb_dh_restore()
151 minfo->hw.crtc2.ctl = tmp; in matroxfb_dh_restore()
162 struct matrox_fb_info *minfo = m2info->primary_dev; in matroxfb_dh_disable() local
165 minfo->hw.crtc2.ctl = 0x00000004; in matroxfb_dh_disable()
173 struct matrox_fb_info *minfo = m2info->primary_dev; in matroxfb_dh_pan_var() local
[all …]
Di2c-matroxfb.c41 static int matroxfb_read_gpio(struct matrox_fb_info* minfo) { in matroxfb_read_gpio() argument
46 v = matroxfb_DAC_in(minfo, DAC_XGENIODATA); in matroxfb_read_gpio()
51 static void matroxfb_set_gpio(struct matrox_fb_info* minfo, int mask, int val) { in matroxfb_set_gpio() argument
56 v = (matroxfb_DAC_in(minfo, DAC_XGENIOCTRL) & mask) | val; in matroxfb_set_gpio()
57 matroxfb_DAC_out(minfo, DAC_XGENIOCTRL, v); in matroxfb_set_gpio()
59 matroxfb_DAC_out(minfo, DAC_XGENIODATA, 0x00); in matroxfb_set_gpio()
64 static inline void matroxfb_i2c_set(struct matrox_fb_info* minfo, int mask, int state) { in matroxfb_i2c_set() argument
69 matroxfb_set_gpio(minfo, ~mask, state); in matroxfb_i2c_set()
74 matroxfb_i2c_set(b->minfo, b->mask.data, state); in matroxfb_gpio_setsda()
79 matroxfb_i2c_set(b->minfo, b->mask.clock, state); in matroxfb_gpio_setscl()
[all …]
Dmatroxfb_misc.h10 static inline int PLL_calcclock(const struct matrox_fb_info *minfo, in PLL_calcclock() argument
15 return matroxfb_PLL_calcclock(&minfo->features.pll, freq, fmax, in, feed, post); in PLL_calcclock()
18 int matroxfb_vgaHWinit(struct matrox_fb_info *minfo, struct my_timming* m);
19 void matroxfb_vgaHWrestore(struct matrox_fb_info *minfo);
20 void matroxfb_read_pins(struct matrox_fb_info *minfo);
Dmatroxfb_base.h499 int (*preinit)(struct matrox_fb_info *minfo);
500 void (*reset)(struct matrox_fb_info *minfo);
501 int (*init)(struct matrox_fb_info *minfo, struct my_timming*);
502 void (*restore)(struct matrox_fb_info *minfo);
665 #define mga_inb(addr) mga_readb(minfo->mmio.vbase, (addr))
666 #define mga_inl(addr) mga_readl(minfo->mmio.vbase, (addr))
667 #define mga_outb(addr,val) mga_writeb(minfo->mmio.vbase, (addr), (val))
668 #define mga_outw(addr,val) mga_writew(minfo->mmio.vbase, (addr), (val))
669 #define mga_outl(addr,val) mga_writel(minfo->mmio.vbase, (addr), (val))
688 #define matroxfb_DAC_lock() spin_lock(&minfo->lock.DAC)
[all …]
Dmatroxfb_g450.h8 void matroxfb_g450_connect(struct matrox_fb_info *minfo);
9 void matroxfb_g450_shutdown(struct matrox_fb_info *minfo);
11 static inline void matroxfb_g450_connect(struct matrox_fb_info *minfo) { }; in matroxfb_g450_connect() argument
12 static inline void matroxfb_g450_shutdown(struct matrox_fb_info *minfo) { }; in matroxfb_g450_shutdown() argument
Dmatroxfb_maven.c477 struct matrox_fb_info *minfo = md->primary_head; in maven_init_TVdata() local
479 if (minfo->outputs[1].mode == MATROXFB_OUTPUT_MODE_PAL) in maven_init_TVdata()
515 data->regs[0x22] = minfo->altout.tvo_params.saturation; in maven_init_TVdata()
519 data->regs[0x25] = minfo->altout.tvo_params.hue; in maven_init_TVdata()
760 struct matrox_fb_info *minfo = md->primary_head; in maven_compute_timming() local
762 m->mode = minfo->outputs[1].mode; in maven_compute_timming()
1150 #define minfo (mdinfo->primary_head) in maven_out_compute() macro
1151 return maven_compute_timming(md, mt, &minfo->hw.maven); in maven_out_compute()
1152 #undef minfo in maven_out_compute()
1158 #define minfo (mdinfo->primary_head) in maven_out_program() macro
[all …]
Dg450_pll.h7 int matroxfb_g450_setclk(struct matrox_fb_info *minfo, unsigned int fout,
9 unsigned int g450_mnp2f(const struct matrox_fb_info *minfo, unsigned int mnp);
10 void matroxfb_g450_setpll_cond(struct matrox_fb_info *minfo, unsigned int mnp,
/linux-6.1.9/net/netfilter/
Dxt_multiport.c28 ports_match_v1(const struct xt_multiport_v1 *minfo, in ports_match_v1() argument
34 for (i = 0; i < minfo->count; i++) { in ports_match_v1()
35 s = minfo->ports[i]; in ports_match_v1()
37 if (minfo->pflags[i]) { in ports_match_v1()
39 e = minfo->ports[++i]; in ports_match_v1()
42 switch (minfo->flags) { in ports_match_v1()
45 return true ^ minfo->invert; in ports_match_v1()
49 return true ^ minfo->invert; in ports_match_v1()
54 return true ^ minfo->invert; in ports_match_v1()
63 switch (minfo->flags) { in ports_match_v1()
[all …]
/linux-6.1.9/drivers/media/i2c/ccs/
Dccs-quirk.h68 ((sensor)->minfo.quirk && \
69 (sensor)->minfo.quirk->_quirk ? \
70 (sensor)->minfo.quirk->_quirk(sensor, ##__VA_ARGS__) : 0)
73 ((sensor)->minfo.quirk ? \
74 (sensor)->minfo.quirk->flags & _quirk : 0)
Dccs-core.c2760 struct ccs_module_info *minfo = &sensor->minfo; in ident_show() local
2762 if (minfo->mipi_manufacturer_id) in ident_show()
2764 minfo->mipi_manufacturer_id, minfo->model_id, in ident_show()
2765 minfo->revision_number) + 1; in ident_show()
2768 minfo->smia_manufacturer_id, minfo->model_id, in ident_show()
2769 minfo->revision_number) + 1; in ident_show()
2780 struct ccs_module_info *minfo = &sensor->minfo; in ccs_identify_module() local
2787 &minfo->mipi_manufacturer_id); in ccs_identify_module()
2788 if (!rval && !minfo->mipi_manufacturer_id) in ccs_identify_module()
2791 &minfo->smia_manufacturer_id); in ccs_identify_module()
[all …]
/linux-6.1.9/drivers/platform/chrome/
Dcros_usbpd_logger.c85 struct mcdp_info *minfo; in cros_usbpd_print_log_entry() local
141 minfo = (struct mcdp_info *)r->payload; in cros_usbpd_print_log_entry()
143 MCDP_FAMILY(minfo->family), in cros_usbpd_print_log_entry()
144 MCDP_CHIPID(minfo->chipid)); in cros_usbpd_print_log_entry()
146 minfo->irom.major, minfo->irom.minor, in cros_usbpd_print_log_entry()
147 minfo->irom.build, minfo->fw.major, in cros_usbpd_print_log_entry()
148 minfo->fw.minor, minfo->fw.build); in cros_usbpd_print_log_entry()
/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/
Dkfd_mqd_manager_cik.c46 struct mqd_update_info *minfo) in update_cu_mask() argument
51 if (!minfo || (minfo->update_flag != UPDATE_FLAG_CU_MASK) || in update_cu_mask()
52 !minfo->cu_mask.ptr) in update_cu_mask()
56 minfo->cu_mask.ptr, minfo->cu_mask.count, se_mask); in update_cu_mask()
174 struct queue_properties *q, struct mqd_update_info *minfo, in __update_mqd() argument
204 update_cu_mask(mm, mqd, minfo); in __update_mqd()
212 struct mqd_update_info *minfo) in update_mqd() argument
214 __update_mqd(mm, mqd, q, minfo, 1); in update_mqd()
226 struct mqd_update_info *minfo) in update_mqd_hawaii() argument
228 __update_mqd(mm, mqd, q, minfo, 0); in update_mqd_hawaii()
[all …]
Dkfd_mqd_manager_vi.c49 struct mqd_update_info *minfo) in update_cu_mask() argument
54 if (!minfo || (minfo->update_flag != UPDATE_FLAG_CU_MASK) || in update_cu_mask()
55 !minfo->cu_mask.ptr) in update_cu_mask()
59 minfo->cu_mask.ptr, minfo->cu_mask.count, se_mask); in update_cu_mask()
172 struct queue_properties *q, struct mqd_update_info *minfo, in __update_mqd() argument
235 update_cu_mask(mm, mqd, minfo); in __update_mqd()
244 struct mqd_update_info *minfo) in update_mqd() argument
246 __update_mqd(mm, mqd, q, minfo, MTYPE_CC, 1); in update_mqd()
258 struct mqd_update_info *minfo) in update_mqd_tonga() argument
260 __update_mqd(mm, mqd, q, minfo, MTYPE_UC, 0); in update_mqd_tonga()
[all …]
Dkfd_mqd_manager_v11.c45 struct mqd_update_info *minfo) in update_cu_mask() argument
50 if (!minfo || (minfo->update_flag != UPDATE_FLAG_CU_MASK) || in update_cu_mask()
51 !minfo->cu_mask.ptr) in update_cu_mask()
55 minfo->cu_mask.ptr, minfo->cu_mask.count, se_mask); in update_cu_mask()
186 struct mqd_update_info *minfo) in update_mqd() argument
242 update_cu_mask(mm, mqd, minfo); in update_mqd()
327 struct mqd_update_info *minfo) in update_mqd_sdma() argument
/linux-6.1.9/drivers/firmware/
Dti_sci.c114 struct ti_sci_xfers_info minfo; member
248 struct ti_sci_xfers_info *minfo = &info->minfo; in ti_sci_rx_callback() local
260 if (!test_bit(xfer_id, minfo->xfer_alloc_table)) { in ti_sci_rx_callback()
265 xfer = &minfo->xfer_block[xfer_id]; in ti_sci_rx_callback()
309 struct ti_sci_xfers_info *minfo = &info->minfo; in ti_sci_get_one_xfer() local
330 ret = down_timeout(&minfo->sem_xfer_count, timeout); in ti_sci_get_one_xfer()
335 spin_lock_irqsave(&minfo->xfer_lock, flags); in ti_sci_get_one_xfer()
336 bit_pos = find_first_zero_bit(minfo->xfer_alloc_table, in ti_sci_get_one_xfer()
338 set_bit(bit_pos, minfo->xfer_alloc_table); in ti_sci_get_one_xfer()
339 spin_unlock_irqrestore(&minfo->xfer_lock, flags); in ti_sci_get_one_xfer()
[all …]
/linux-6.1.9/net/rds/
Drecv.c780 struct rds_info_message minfo; in rds_inc_info_copy() local
782 minfo.seq = be64_to_cpu(inc->i_hdr.h_sequence); in rds_inc_info_copy()
783 minfo.len = be32_to_cpu(inc->i_hdr.h_len); in rds_inc_info_copy()
784 minfo.tos = inc->i_conn->c_tos; in rds_inc_info_copy()
787 minfo.laddr = daddr; in rds_inc_info_copy()
788 minfo.faddr = saddr; in rds_inc_info_copy()
789 minfo.lport = inc->i_hdr.h_dport; in rds_inc_info_copy()
790 minfo.fport = inc->i_hdr.h_sport; in rds_inc_info_copy()
792 minfo.laddr = saddr; in rds_inc_info_copy()
793 minfo.faddr = daddr; in rds_inc_info_copy()
[all …]
/linux-6.1.9/drivers/firmware/arm_scmi/
Ddriver.c275 static int scmi_xfer_token_set(struct scmi_xfers_info *minfo, in scmi_xfer_token_set() argument
291 xfer_id = find_next_zero_bit(minfo->xfer_alloc_table, in scmi_xfer_token_set()
299 xfer_id = find_next_zero_bit(minfo->xfer_alloc_table, in scmi_xfer_token_set()
315 set_bit(xfer_id, minfo->xfer_alloc_table); in scmi_xfer_token_set()
327 static inline void scmi_xfer_token_clear(struct scmi_xfers_info *minfo, in scmi_xfer_token_clear() argument
330 clear_bit(xfer->hdr.seq, minfo->xfer_alloc_table); in scmi_xfer_token_clear()
356 struct scmi_xfers_info *minfo, in scmi_xfer_get() argument
363 spin_lock_irqsave(&minfo->xfer_lock, flags); in scmi_xfer_get()
364 if (hlist_empty(&minfo->free_xfers)) { in scmi_xfer_get()
365 spin_unlock_irqrestore(&minfo->xfer_lock, flags); in scmi_xfer_get()
[all …]
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_uld.c327 struct msix_info *minfo; in request_msix_queue_irqs_uld() local
332 minfo = rxq_info->uldrxq[idx].msix; in request_msix_queue_irqs_uld()
333 err = request_irq(minfo->vec, in request_msix_queue_irqs_uld()
335 minfo->desc, in request_msix_queue_irqs_uld()
340 cxgb4_set_msix_aff(adap, minfo->vec, in request_msix_queue_irqs_uld()
341 &minfo->aff_mask, idx); in request_msix_queue_irqs_uld()
347 minfo = rxq_info->uldrxq[idx].msix; in request_msix_queue_irqs_uld()
348 cxgb4_clear_msix_aff(minfo->vec, minfo->aff_mask); in request_msix_queue_irqs_uld()
349 cxgb4_free_msix_idx_in_bmap(adap, minfo->idx); in request_msix_queue_irqs_uld()
350 free_irq(minfo->vec, &rxq_info->uldrxq[idx].rspq); in request_msix_queue_irqs_uld()
[all …]

12