Home
last modified time | relevance | path

Searched refs:ias_cmd (Results 1 – 3 of 3) sorted by relevance

/drivers/net/ethernet/i825xx/
D3c523.c623 volatile struct iasetup_cmd_struct *ias_cmd; in init586() local
667 ias_cmd = (struct iasetup_cmd_struct *) ptr; in init586()
669 ias_cmd->cmd_status = 0; in init586()
670 ias_cmd->cmd_cmd = CMD_IASETUP | CMD_LAST; in init586()
671 ias_cmd->cmd_link = 0xffff; in init586()
673 memcpy((char *) &ias_cmd->iaddr, (char *) dev->dev_addr, ETH_ALEN); in init586()
675 p->scb->cbl_offset = make16(ias_cmd); in init586()
681 while (!(ias_cmd->cmd_status & STAT_COMPL)) { in init586()
686 if ((ias_cmd->cmd_status & (STAT_OK | STAT_COMPL)) != (STAT_OK | STAT_COMPL)) { in init586()
688 dev->name, ias_cmd->cmd_status); in init586()
Dsun3_82586.c410 volatile struct iasetup_cmd_struct *ias_cmd; in init586() local
461 ias_cmd = (struct iasetup_cmd_struct *)ptr; in init586()
463 ias_cmd->cmd_status = 0; in init586()
464 ias_cmd->cmd_cmd = swab16(CMD_IASETUP | CMD_LAST); in init586()
465 ias_cmd->cmd_link = 0xffff; in init586()
467 memcpy((char *)&ias_cmd->iaddr,(char *) dev->dev_addr,ETH_ALEN); in init586()
469 p->scb->cbl_offset = make16(ias_cmd); in init586()
474 WAIT_4_STAT_COMPL(ias_cmd); in init586()
476 if((swab16(ias_cmd->cmd_status) & (STAT_OK|STAT_COMPL)) != (STAT_OK|STAT_COMPL)) { in init586()
477 …printk("%s (82586): individual address setup command failed: %04x\n",dev->name,swab16(ias_cmd->cmd… in init586()
Dni52.c594 struct iasetup_cmd_struct __iomem *ias_cmd; in init586() local
650 ias_cmd = ptr; in init586()
652 writew(0, &ias_cmd->cmd_status); in init586()
653 writew(CMD_IASETUP | CMD_LAST, &ias_cmd->cmd_cmd); in init586()
654 writew(0xffff, &ias_cmd->cmd_link); in init586()
656 memcpy_toio(&ias_cmd->iaddr, (char *)dev->dev_addr, ETH_ALEN); in init586()
658 writew(make16(ias_cmd), &p->scb->cbl_offset); in init586()
663 wait_for_stat_compl(ias_cmd); in init586()
665 if ((readw(&ias_cmd->cmd_status) & (STAT_OK|STAT_COMPL)) != in init586()
667 … (ni52): individual address setup command failed: %04x\n", dev->name, readw(&ias_cmd->cmd_status)); in init586()