Home
last modified time | relevance | path

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

123

/openbmc/linux/drivers/net/dsa/mv88e6xxx/
H A Dserdes.c243 u8 cmode = chip->ports[port].cmode; in mv88e6341_serdes_get_lane() local
249 cmode == MV88E6XXX_PORT_STS_CMODE_SGMII || in mv88e6341_serdes_get_lane()
260 u8 cmode = chip->ports[port].cmode; in mv88e6390_serdes_get_lane() local
266 cmode == MV88E6XXX_PORT_STS_CMODE_SGMII || in mv88e6390_serdes_get_lane()
272 cmode == MV88E6XXX_PORT_STS_CMODE_SGMII || in mv88e6390_serdes_get_lane()
283 u8 cmode_port = chip->ports[port].cmode; in mv88e6390x_serdes_get_lane()
284 u8 cmode_port10 = chip->ports[10].cmode; in mv88e6390x_serdes_get_lane()
285 u8 cmode_port9 = chip->ports[9].cmode; in mv88e6390x_serdes_get_lane()
361 u8 cmode = chip->ports[port].cmode; in mv88e6393x_serdes_get_lane() local
368 cmode == MV88E6XXX_PORT_STS_CMODE_SGMII || in mv88e6393x_serdes_get_lane()
[all …]
H A Dport.c526 u16 cmode; in mv88e6xxx_port_set_cmode() local
538 cmode = MV88E6XXX_PORT_STS_CMODE_RMII; in mv88e6xxx_port_set_cmode()
544 cmode = MV88E6XXX_PORT_STS_CMODE_RGMII; in mv88e6xxx_port_set_cmode()
550 cmode = MV88E6XXX_PORT_STS_CMODE_SGMII; in mv88e6xxx_port_set_cmode()
560 cmode = MV88E6XXX_PORT_STS_CMODE_XAUI; in mv88e6xxx_port_set_cmode()
572 cmode = 0; in mv88e6xxx_port_set_cmode()
576 if (cmode == chip->ports[port].cmode && !force) in mv88e6xxx_port_set_cmode()
579 chip->ports[port].cmode = 0; in mv88e6xxx_port_set_cmode()
581 if (cmode) { in mv88e6xxx_port_set_cmode()
587 reg |= cmode; in mv88e6xxx_port_set_cmode()
[all …]
H A Dpcs-6352.c307 u8 cmode; in mv88e6352_pcs_link_check() local
313 chip->info->ops->port_get_cmode(chip, port->port, &cmode); in mv88e6352_pcs_link_check()
316 return cmode == MV88E6XXX_PORT_STS_CMODE_100BASEX || in mv88e6352_pcs_link_check()
317 cmode == MV88E6XXX_PORT_STS_CMODE_1000BASEX || in mv88e6352_pcs_link_check()
318 cmode == MV88E6XXX_PORT_STS_CMODE_SGMII; in mv88e6352_pcs_link_check()
H A Dpcs-6185.c127 if (chip->ports[port].cmode != MV88E6185_PORT_STS_CMODE_SERDES && in mv88e6185_pcs_init()
128 chip->ports[port].cmode != MV88E6185_PORT_STS_CMODE_1000BASE_X) in mv88e6185_pcs_init()
/openbmc/linux/drivers/video/fbdev/
H A Dcontrolfb.c83 int vmode, cmode; member
167 switch (p->par.cmode) { in controlfb_setcolreg()
226 int i, cmode; in control_set_hardware() local
241 cmode = p->par.cmode; in control_set_hardware()
272 (cmode == CMODE_32? 32: cmode == CMODE_16? 16: 8), in control_set_hardware()
434 par->cmode = CMODE_8; in control_var_to_par()
572 switch(par->cmode) { in control_par_to_var()
852 if (cmode < CMODE_8 || cmode > CMODE_32) in init_control()
853 cmode = CMODE_8; in init_control()
865 cmode = min(cmode, control_mac_modes[vmode - 1].m[full]); in init_control()
[all …]
H A Dplatinumfb.c46 int vmode, cmode; member
205 switch (pinfo->cmode) { in platinumfb_setcolreg()
269 int vmode, cmode; in platinum_set_hardware() local
272 cmode = pinfo->cmode; in platinum_set_hardware()
283 init->offset[cmode] + 4 - cmode : in platinum_set_hardware()
284 init->offset[cmode])); in platinum_set_hardware()
288 init->mode[cmode+1] : in platinum_set_hardware()
289 init->mode[cmode])); in platinum_set_hardware()
300 init->dacula_ctrl[cmode])); in platinum_set_hardware()
440 int vmode, cmode; in platinum_var_to_par() local
[all …]
H A Dvalkyriefb.c69 int vmode, cmode; member
142 out_8(&valkyrie_regs->depth.r, par->cmode + 3); in valkyriefb_set_par()
234 if (regno < 16 && par->cmode == CMODE_16) in valkyriefb_setcolreg()
452 int vmode, cmode; in valkyrie_var_to_par() local
469 if (cmode != CMODE_8 && cmode != CMODE_16) { in valkyrie_var_to_par()
480 if (init->pitch[cmode] == 0) { in valkyrie_var_to_par()
482 "cmode %d.\n", vmode, cmode); in valkyrie_var_to_par()
488 "cmode %d.\n", vmode, cmode); in valkyrie_var_to_par()
493 par->cmode = cmode; in valkyrie_var_to_par()
525 fix->visual = (par->cmode == CMODE_8) ? in valkyrie_par_to_fix()
[all …]
H A 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()
H A Dmacmodes.h53 extern int mac_vmode_to_var(int vmode, int cmode,
56 int *cmode);
H A Dimsttfb.c1394 int vmode = init_vmode, cmode = init_cmode; in init_imstt() local
1401 if (cmode == -1) { in init_imstt()
1402 cmode = nvram_read_byte(NV_CMODE); in init_imstt()
1403 if (cmode < CMODE_8 || cmode > CMODE_32) in init_imstt()
1404 cmode = CMODE_8; in init_imstt()
1406 if (mac_vmode_to_var(vmode, cmode, &info->var)) { in init_imstt()
1596 int cmode = simple_strtoul(this_opt+6, NULL, 0); in imsttfb_setup() local
1597 switch (cmode) { in imsttfb_setup()
/openbmc/linux/drivers/media/platform/st/stm32/dma2d/
H A Ddma2d-hw.c70 if (frm->fmt->cmode >= CM_MODE_ARGB8888 && in dma2d_config_out()
71 frm->fmt->cmode <= CM_MODE_ARGB4444) in dma2d_config_out()
73 frm->fmt->cmode); in dma2d_config_out()
94 if (frm->fmt->cmode >= CM_MODE_ARGB8888 && in dma2d_config_fg()
95 frm->fmt->cmode <= CM_MODE_A4) in dma2d_config_fg()
97 frm->fmt->cmode); in dma2d_config_fg()
118 if (frm->fmt->cmode >= CM_MODE_ARGB8888 && in dma2d_config_bg()
119 frm->fmt->cmode <= CM_MODE_A4) in dma2d_config_bg()
121 frm->fmt->cmode); in dma2d_config_bg()
H A Ddma2d.c53 .cmode = DMA2D_CMODE_ARGB8888,
58 .cmode = DMA2D_CMODE_RGB888,
63 .cmode = DMA2D_CMODE_RGB565,
68 .cmode = DMA2D_CMODE_ARGB1555,
73 .cmode = DMA2D_CMODE_ARGB4444,
H A Ddma2d.h55 enum dma2d_cmode cmode; member
/openbmc/linux/arch/m68k/mm/
H A Dkmap.c324 void kernel_set_cachemode(void *addr, unsigned long size, int cmode) in kernel_set_cachemode() argument
334 switch (cmode) { in kernel_set_cachemode()
336 cmode = _PAGE_CACHE040; in kernel_set_cachemode()
340 cmode = _PAGE_NOCACHE_S; in kernel_set_cachemode()
343 cmode = _PAGE_NOCACHE; in kernel_set_cachemode()
346 cmode = _PAGE_CACHE040W; in kernel_set_cachemode()
350 switch (cmode) { in kernel_set_cachemode()
354 cmode = _PAGE_NOCACHE030; in kernel_set_cachemode()
358 cmode = 0; in kernel_set_cachemode()
378 *pmd_dir = __pmd((pmd & _CACHEMASK040) | cmode); in kernel_set_cachemode()
[all …]
/openbmc/linux/net/devlink/
H A Dparam.c145 enum devlink_param_cmode cmode) in devlink_param_cmode_is_supported() argument
147 return test_bit(cmode, &param->supported_cmodes); in devlink_param_cmode_is_supported()
190 enum devlink_param_cmode cmode, in devlink_nl_param_value_fill_one() argument
200 if (nla_put_u8(msg, DEVLINK_ATTR_PARAM_VALUE_CMODE, cmode)) in devlink_nl_param_value_fill_one()
266 ctx.cmode = i; in devlink_nl_param_fill()
537 enum devlink_param_cmode cmode; in __devlink_nl_cmd_param_set_doit() local
563 cmode = nla_get_u8(info->attrs[DEVLINK_ATTR_PARAM_VALUE_CMODE]); in __devlink_nl_cmd_param_set_doit()
564 if (!devlink_param_cmode_is_supported(param, cmode)) in __devlink_nl_cmd_param_set_doit()
567 if (cmode == DEVLINK_PARAM_CMODE_DRIVERINIT) { in __devlink_nl_cmd_param_set_doit()
574 ctx.cmode = cmode; in __devlink_nl_cmd_param_set_doit()
/openbmc/qemu/tcg/aarch64/
H A Dtcg-target.c.inc179 *cmode = 0x8;
183 *cmode = 0xa;
194 *cmode = 0x0;
198 *cmode = 0x2;
202 *cmode = 0x4;
206 *cmode = 0x6;
217 *cmode = 0xc;
221 *cmode = 0xd;
234 *cmode = 0xf;
249 *cmode = 0xf;
[all …]
/openbmc/linux/net/sched/
H A Dsch_htb.c565 if (new_mode == cl->cmode) in htb_change_class_mode()
574 if (cl->cmode != HTB_CANT_SEND) in htb_change_class_mode()
576 cl->cmode = new_mode; in htb_change_class_mode()
580 cl->cmode = new_mode; in htb_change_class_mode()
718 old_mode = cl->cmode; in htb_charge_class()
721 if (old_mode != cl->cmode) { in htb_charge_class()
771 if (cl->cmode != HTB_CAN_SEND) in htb_do_events()
1012 cl->cmode = HTB_CAN_SEND; in htb_reset()
1520 parent->cmode = HTB_CAN_SEND; in htb_parent_to_leaf()
1744 if (cl->cmode != HTB_CAN_SEND) in htb_delete()
[all …]
/openbmc/qemu/tcg/arm/
H A Dtcg-target.c.inc417 *cmode = 0x8;
421 *cmode = 0xa;
432 *cmode = 0x0;
436 *cmode = 0x2;
440 *cmode = 0x4;
444 *cmode = 0x6;
455 *cmode = 0xc;
459 *cmode = 0xd;
527 int cmode, imm8;
2488 int cmode, imm8, i;
[all …]
/openbmc/qemu/target/arm/tcg/
H A Dneon-dp.decode366 # 1111 001 i 1 D 000 imm:3 Vd:4 cmode:4 0 Q op 1 Vm:4
369 &1reg_imm vd q imm cmode op
376 # The cmode/op bits here decode VORR/VBIC/VMOV/VMNV, but
379 # VORR: op=0, (cmode & 1) && cmode < 12
380 # VBIC: op=1, (cmode & 1) && cmode < 12
382 # So we have a single decode line and check the cmode/op in the
384 Vimm_1r 1111 001 . 1 . 000 ... .... cmode:4 0 . op:1 1 .... @1reg_imm
H A Dmve.decode44 &1imm qd imm cmode op
81 @1imm .... .... .... .... .... cmode:4 .. op:1 . .... &1imm qd=%qd imm=%imm_28_16_0
589 # The cmode/op bits here decode VORR/VBIC/VMOV/VMVN, but
592 # VORR: op=0, (cmode & 1) && cmode < 12
593 # VBIC: op=1, (cmode & 1) && cmode < 12
595 # So we have a single decode line and check the cmode/op in the
/openbmc/linux/drivers/video/fbdev/core/
H A Dmodedb.c1002 struct fb_videomode *cmode, *best = NULL; in fb_find_nearest_mode() local
1007 cmode = &modelist->mode; in fb_find_nearest_mode()
1009 d = abs(cmode->xres - mode->xres) + in fb_find_nearest_mode()
1010 abs(cmode->yres - mode->yres); in fb_find_nearest_mode()
1013 diff_refresh = abs(cmode->refresh - mode->refresh); in fb_find_nearest_mode()
1014 best = cmode; in fb_find_nearest_mode()
1016 d = abs(cmode->refresh - mode->refresh); in fb_find_nearest_mode()
1019 best = cmode; in fb_find_nearest_mode()
/openbmc/linux/drivers/soc/fsl/qbman/
H A 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()
H A Dqman.c212 enum qm_dqrr_cmode cmode; member
221 enum qm_mr_cmode cmode; member
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()
833 DPAA_ASSERT(mr->cmode == qm_mr_cci); in qm_mr_cci_consume()
[all …]
/openbmc/linux/Documentation/networking/device_drivers/ethernet/ti/
H A 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
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/
H A Dtc_flower.sh508 name acl_region_rehash_interval cmode runtime value 0
516 name acl_region_rehash_interval cmode runtime value 3000
583 name acl_region_rehash_interval cmode runtime value 0
591 name acl_region_rehash_interval cmode runtime value 3000
743 name acl_region_rehash_interval cmode runtime value 0
760 name acl_region_rehash_interval cmode runtime value 3000
787 name acl_region_rehash_interval cmode runtime value 0

123