• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/chelsio/

Lines Matching defs:cphy

2 #include "cphy.h"
7 static int my3126_reset(struct cphy *cphy, int wait)
16 static int my3126_interrupt_enable(struct cphy *cphy)
18 schedule_delayed_work(&cphy->phy_update, HZ/30);
19 t1_tpi_read(cphy->adapter, A_ELMER0_GPO, &cphy->elmer_gpo);
23 static int my3126_interrupt_disable(struct cphy *cphy)
25 cancel_rearming_delayed_work(&cphy->phy_update);
29 static int my3126_interrupt_clear(struct cphy *cphy)
36 static int my3126_interrupt_handler(struct cphy *cphy)
43 adapter = cphy->adapter;
45 if (cphy->count == 50) {
46 mdio_read(cphy, 0x1, 0x1, &val);
48 status = cphy->bmsr ^ val16;
52 cphy->bmsr = val16;
57 cphy->count = 0;
70 cphy->elmer_gpo = val;
73 (cphy->act_count == act_count) || cphy->act_on ) {
78 cphy->act_on = 0;
84 cphy->act_on = 1;
89 cphy->elmer_gpo = val;
90 cphy->act_count = act_count;
91 cphy->count++;
98 struct cphy *cphy = container_of(work, struct cphy, phy_update.work);
100 my3126_interrupt_handler(cphy);
103 static int my3126_set_loopback(struct cphy *cphy, int on)
109 static int my3126_get_link_status(struct cphy *cphy,
116 adapter = cphy->adapter;
117 mdio_read(cphy, 0x1, 0x1, &val);
122 cphy->elmer_gpo = val;
141 cphy->elmer_gpo = val;
152 static void my3126_destroy(struct cphy *cphy)
154 kfree(cphy);
168 static struct cphy *my3126_phy_create(adapter_t *adapter,
171 struct cphy *cphy = kzalloc(sizeof (*cphy), GFP_KERNEL);
173 if (!cphy)
176 cphy_init(cphy, adapter, phy_addr, &my3126_ops, mdio_ops);
177 INIT_DELAYED_WORK(&cphy->phy_update, my3216_poll);
178 cphy->bmsr = 0;
180 return cphy;