Home
last modified time | relevance | path

Searched refs:cmode (Results 1 – 25 of 34) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/video/fbdev/
Dcontrolfb.c86 int vmode, cmode; member
111 return (!DIRTY(cmode) && !DIRTY(xres) && !DIRTY(yres) in PAR_EQUAL()
177 switch (p->par.cmode) { in controlfb_setcolreg()
223 par->yoffset * par->pitch + (par->xoffset << par->cmode)); in set_screen_start()
236 int i, cmode; in control_set_hardware() local
251 cmode = p->par.cmode; in control_set_hardware()
272 + (par->xoffset << cmode)); in control_set_hardware()
282 (cmode == CMODE_32? 32: cmode == CMODE_16? 16: 8), in control_set_hardware()
434 int cmode, piped_diff, hstep; in control_var_to_par() local
444 par->cmode = CMODE_8; in control_var_to_par()
[all …]
Dplatinumfb.c46 int vmode, cmode; member
137 if ((pinfo->vmode == VMODE_832_624_75) && (pinfo->cmode > CMODE_8)) in platinumfb_set_par()
144 info->fix.visual = (pinfo->cmode == CMODE_8) ? in platinumfb_set_par()
146 info->fix.line_length = vmode_attrs[pinfo->vmode-1].hres * (1<<pinfo->cmode) in platinumfb_set_par()
207 switch (pinfo->cmode) { in platinumfb_setcolreg()
271 int vmode, cmode; in platinum_set_hardware() local
274 cmode = pinfo->cmode; in platinum_set_hardware()
285 init->offset[cmode] + 4 - cmode : in platinum_set_hardware()
286 init->offset[cmode])); in platinum_set_hardware()
288 out_be32(&platinum_regs->reg[18].r, init->pitch[cmode]); in platinum_set_hardware()
[all …]
Dvalkyriefb.c70 int vmode, cmode; member
149 out_8(&valkyrie_regs->depth.r, par->cmode + 3); in valkyriefb_set_par()
162 return mac_vmode_to_var(par->vmode, par->cmode, var); in valkyrie_par_to_var()
241 if (regno < 16 && par->cmode == CMODE_16) in valkyriefb_setcolreg()
459 int vmode, cmode; in valkyrie_var_to_par() local
464 if (mac_var_to_vmode(var, &vmode, &cmode) != 0) { in valkyrie_var_to_par()
476 if (cmode != CMODE_8 && cmode != CMODE_16) { in valkyrie_var_to_par()
477 printk(KERN_ERR "valkyriefb: cmode %d not valid.\n", cmode); in valkyrie_var_to_par()
487 if (init->pitch[cmode] == 0) { in valkyrie_var_to_par()
489 "cmode %d.\n", vmode, cmode); in valkyrie_var_to_par()
[all …]
Dmacmodes.c221 int mac_vmode_to_var(int vmode, int cmode, struct fb_var_screeninfo *var) in mac_vmode_to_var() argument
235 switch (cmode) { in mac_vmode_to_var()
304 int *cmode) in mac_var_to_vmode() argument
309 *cmode = CMODE_8; in mac_var_to_vmode()
311 *cmode = CMODE_16; in mac_var_to_vmode()
313 *cmode = CMODE_32; in mac_var_to_vmode()
Dmacmodes.h53 extern int mac_vmode_to_var(int vmode, int cmode,
56 int *cmode);
Dimsttfb.c1393 int vmode = init_vmode, cmode = init_cmode; in init_imstt() local
1400 if (cmode == -1) { in init_imstt()
1401 cmode = nvram_read_byte(NV_CMODE); in init_imstt()
1402 if (cmode < CMODE_8 || cmode > CMODE_32) in init_imstt()
1403 cmode = CMODE_8; in init_imstt()
1405 if (mac_vmode_to_var(vmode, cmode, &info->var)) { in init_imstt()
1570 int cmode = simple_strtoul(this_opt+6, NULL, 0); in imsttfb_setup() local
1571 switch (cmode) { in imsttfb_setup()
Dpxa168fb.h273 #define CFG_COLOR_KEY_MODE(cmode) ((cmode) << 24) argument
/kernel/linux/linux-5.10/drivers/net/dsa/mv88e6xxx/
Dserdes.c235 u8 cmode = chip->ports[port].cmode; in mv88e6352_serdes_get_lane() local
238 if ((cmode == MV88E6XXX_PORT_STS_CMODE_100BASEX) || in mv88e6352_serdes_get_lane()
239 (cmode == MV88E6XXX_PORT_STS_CMODE_1000BASEX) || in mv88e6352_serdes_get_lane()
240 (cmode == MV88E6XXX_PORT_STS_CMODE_SGMII)) in mv88e6352_serdes_get_lane()
416 u8 cmode = chip->ports[port].cmode; in mv88e6341_serdes_get_lane() local
421 if (cmode == MV88E6XXX_PORT_STS_CMODE_1000BASEX || in mv88e6341_serdes_get_lane()
422 cmode == MV88E6XXX_PORT_STS_CMODE_SGMII || in mv88e6341_serdes_get_lane()
423 cmode == MV88E6XXX_PORT_STS_CMODE_2500BASEX) in mv88e6341_serdes_get_lane()
433 u8 cmode = chip->ports[port].cmode; in mv88e6390_serdes_get_lane() local
438 if (cmode == MV88E6XXX_PORT_STS_CMODE_1000BASEX || in mv88e6390_serdes_get_lane()
[all …]
Dport.c397 u16 cmode; in mv88e6xxx_port_set_cmode() local
409 cmode = MV88E6XXX_PORT_STS_CMODE_1000BASEX; in mv88e6xxx_port_set_cmode()
412 cmode = MV88E6XXX_PORT_STS_CMODE_SGMII; in mv88e6xxx_port_set_cmode()
415 cmode = MV88E6XXX_PORT_STS_CMODE_2500BASEX; in mv88e6xxx_port_set_cmode()
419 cmode = MV88E6XXX_PORT_STS_CMODE_XAUI; in mv88e6xxx_port_set_cmode()
422 cmode = MV88E6XXX_PORT_STS_CMODE_RXAUI; in mv88e6xxx_port_set_cmode()
425 cmode = 0; in mv88e6xxx_port_set_cmode()
429 if (cmode == chip->ports[port].cmode && !force) in mv88e6xxx_port_set_cmode()
445 chip->ports[port].cmode = 0; in mv88e6xxx_port_set_cmode()
447 if (cmode) { in mv88e6xxx_port_set_cmode()
[all …]
Dport.h365 int mv88e6185_port_get_cmode(struct mv88e6xxx_chip *chip, int port, u8 *cmode);
366 int mv88e6352_port_get_cmode(struct mv88e6xxx_chip *chip, int port, u8 *cmode);
Dchip.h237 u8 cmode; member
472 int (*port_get_cmode)(struct mv88e6xxx_chip *chip, int port, u8 *cmode);
/kernel/linux/linux-5.10/arch/m68k/mm/
Dkmap.c316 void kernel_set_cachemode(void *addr, unsigned long size, int cmode) in kernel_set_cachemode() argument
326 switch (cmode) { in kernel_set_cachemode()
328 cmode = _PAGE_CACHE040; in kernel_set_cachemode()
332 cmode = _PAGE_NOCACHE_S; in kernel_set_cachemode()
335 cmode = _PAGE_NOCACHE; in kernel_set_cachemode()
338 cmode = _PAGE_CACHE040W; in kernel_set_cachemode()
342 switch (cmode) { in kernel_set_cachemode()
346 cmode = _PAGE_NOCACHE030; in kernel_set_cachemode()
350 cmode = 0; in kernel_set_cachemode()
370 *pmd_dir = __pmd((pmd & _CACHEMASK040) | cmode); in kernel_set_cachemode()
[all …]
/kernel/linux/linux-5.10/net/sched/
Dsch_htb.c135 enum htb_cmode cmode; /* current mode of the class */ member
405 while (cl->cmode == HTB_MAY_BORROW && p && mask) { in htb_activate_prios()
424 if (cl->cmode == HTB_CAN_SEND && mask) in htb_activate_prios()
440 while (cl->cmode == HTB_MAY_BORROW && p && mask) { in htb_deactivate_prios()
468 if (cl->cmode == HTB_CAN_SEND && mask) in htb_deactivate_prios()
475 return cl->cmode != HTB_CANT_SEND ? -cl->cbuffer : 0; in htb_lowater()
482 return cl->cmode == HTB_CAN_SEND ? -cl->buffer : 0; in htb_hiwater()
530 if (new_mode == cl->cmode) in htb_change_class_mode()
539 if (cl->cmode != HTB_CANT_SEND) in htb_change_class_mode()
541 cl->cmode = new_mode; in htb_change_class_mode()
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/core/
Dmodedb.c997 struct fb_videomode *cmode, *best = NULL; in fb_find_nearest_mode() local
1004 cmode = &modelist->mode; in fb_find_nearest_mode()
1006 d = abs(cmode->xres - mode->xres) + in fb_find_nearest_mode()
1007 abs(cmode->yres - mode->yres); in fb_find_nearest_mode()
1010 diff_refresh = abs(cmode->refresh - mode->refresh); in fb_find_nearest_mode()
1011 best = cmode; in fb_find_nearest_mode()
1013 d = abs(cmode->refresh - mode->refresh); in fb_find_nearest_mode()
1016 best = cmode; in fb_find_nearest_mode()
/kernel/linux/linux-5.10/drivers/soc/fsl/qbman/
Dbman.c128 enum bm_rcr_cmode cmode; member
330 DPAA_ASSERT(rcr->cmode == bm_rcr_cce); in bm_rcr_cce_prefetch()
339 DPAA_ASSERT(rcr->cmode == bm_rcr_cce); in bm_rcr_cce_update()
381 enum bm_rcr_cmode cmode) in bm_rcr_init() argument
399 rcr->cmode = cmode; in bm_rcr_init()
Dqman.c212 enum qm_dqrr_cmode cmode; member
221 enum qm_mr_cmode cmode; member
605 enum qm_dqrr_cmode cmode, u8 max_fill) in qm_dqrr_init() argument
625 dqrr->cmode = cmode; in qm_dqrr_init()
633 ((cmode & 3) << 16) | /* DCM */ in qm_dqrr_init()
647 if (dqrr->cmode != qm_dqrr_cdc && in qm_dqrr_finish()
700 DPAA_ASSERT(dqrr->cmode == qm_dqrr_cdc); in qm_dqrr_cdc_consume_1ptr()
712 DPAA_ASSERT(dqrr->cmode == qm_dqrr_cdc); in qm_dqrr_cdc_consume_n()
763 enum qm_mr_cmode cmode) in qm_mr_init() argument
778 mr->cmode = cmode; in qm_mr_init()
[all …]
/kernel/linux/linux-5.10/Documentation/networking/device_drivers/ethernet/ti/
Dcpsw_switchdev.rst49 cmode runtime value false
52 cmode runtime value false
88 name switch_mode value 1 cmode runtime
106 name switch_mode value 1 cmode runtime
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
Dtc_flower.sh507 name acl_region_rehash_interval cmode runtime value 0
515 name acl_region_rehash_interval cmode runtime value 3000
582 name acl_region_rehash_interval cmode runtime value 0
590 name acl_region_rehash_interval cmode runtime value 3000
742 name acl_region_rehash_interval cmode runtime value 0
759 name acl_region_rehash_interval cmode runtime value 3000
786 name acl_region_rehash_interval cmode runtime value 0
/kernel/linux/linux-5.10/Documentation/networking/device_drivers/ethernet/mellanox/
Dmlx5.rst147 $ devlink dev param set pci/0000:06:00.0 name flow_steering_mode value "smfs" cmode runtime
155 cmode runtime value smfs
162 To change RoCE enablement state a user must change the driverinit cmode value and run devlink reloa…
168 $ devlink dev param set pci/0000:06:00.0 name enable_roce value false cmode driverinit
177 cmode driverinit value true
/kernel/linux/linux-5.10/arch/m68k/include/asm/
Dpgtable_mm.h128 extern void kernel_set_cachemode(void *addr, unsigned long size, int cmode);
/kernel/linux/linux-5.10/drivers/crypto/chelsio/
Dchcr_algo.h145 #define FILL_SEC_CPL_SCMD0_SEQNO(ctrl, seq, cmode, amode, opad, size) \ argument
152 SCMD_CIPH_MODE_V((cmode)) | \
/kernel/linux/linux-5.10/Documentation/fb/
Daty128fb.rst60 cmode:x chooses PowerMacintosh colour mode <x>. Deprecated.
/kernel/linux/linux-5.10/drivers/video/fbdev/mmp/hw/
Dmmp_ctrl.h498 #define CFG_COLOR_KEY_MODE(cmode) ((cmode)<<24) argument
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/netdevsim/
Ddevlink.sh69 devlink dev param set $DL_HANDLE name $name cmode driverinit value $value
/kernel/linux/linux-5.10/drivers/video/fbdev/matrox/
Dmatroxfb_base.c2403 unsigned int cmode = simple_strtoul(this_opt+6, NULL, 0); in matroxfb_setup() local
2404 switch (cmode) { in matroxfb_setup()
2575 module_param_named(cmode, default_cmode, int, 0);
2576 MODULE_PARM_DESC(cmode, "Specify the video depth that should be used (8bit default)");

12