Lines Matching defs:val
128 void et_phywr(et_info_t *et, uint reg, uint phyaddr, uint16 val);
160 et_phywr(et_info_t *et, uint phyaddr, uint reg, uint16 val)
162 et->etc->chops->phywr(et->etc->ch, phyaddr, reg, val);
411 int val;
427 val = ETHER_SPEED_UNKNOWN;
430 val = et->etc->duplex ? ETHER_SPEED_10FDX : ETHER_SPEED_10HDX;
432 val = et->etc->duplex ? ETHER_SPEED_100FDX : ETHER_SPEED_100HDX;
434 *((int *) buffer->buf_ptr) = val;
438 val = *((int *) buffer->buf_ptr);
439 if (val == ETHER_SPEED_AUTO)
440 val = ET_AUTO;
441 else if (val == ETHER_SPEED_10HDX)
442 val = ET_10HALF;
443 else if (val == ETHER_SPEED_10FDX)
444 val = ET_10FULL;
445 else if (val == ETHER_SPEED_100HDX)
446 val = ET_100HALF;
447 else if (val == ETHER_SPEED_100FDX)
448 val = ET_100FULL;
451 return etc_ioctl(et->etc, ETCSPEED, &val);
462 val = *((int *) buffer->buf_ptr);
463 if (val == ETHER_LOOPBACK_OFF)
464 val = (int) FALSE;
466 val = (int) TRUE;
467 return etc_ioctl(et->etc, ETCLOOP, &val);
556 int cmd, val, ret;
557 char *arg = (char *) &val;
606 else if (arg != (char *) &val) {
607 val = bcm_strtoul(arg, NULL, 0);
608 arg = (char *) &val;