Home
last modified time | relevance | path

Searched refs:adpt (Results 1 – 25 of 184) sorted by relevance

12345678

/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/net/ethernet/qualcomm/emac/
H A Demac.c87 emac_mac_down(adpt); in emac_reinit_locked()
88 emac_sgmii_reset(adpt); in emac_reinit_locked()
123 return emac_mac_tx_buf_send(adpt, &adpt->tx_q, skb); in emac_start_xmit()
161 emac_mac_tx_process(adpt, &adpt->tx_q); in emac_isr()
217 netif_dbg(adpt, hw, adpt->netdev, in emac_change_mtu()
275 emac_mac_down(adpt); in emac_close()
278 free_irq(adpt->irq.irq, &adpt->irq); in emac_close()
421 adpt->irq_mod = reg; in emac_init_adapter()
450 adpt->clk[i] = clk; in emac_clks_get()
561 adpt->irq.irq = ret; in emac_probe_resources()
[all …]
H A Demac-mac.c757 adpt->tx_q.tpd.count = adpt->tx_desc_cnt; in emac_mac_rx_tx_rings_alloc_all()
759 adpt->rx_q.rrd.count = adpt->rx_desc_cnt; in emac_mac_rx_tx_rings_alloc_all()
760 adpt->rx_q.rfd.count = adpt->rx_desc_cnt; in emac_mac_rx_tx_rings_alloc_all()
780 ret = emac_tx_q_desc_alloc(adpt, &adpt->tx_q); in emac_mac_rx_tx_rings_alloc_all()
938 emac_mac_rx_descs_refill(adpt, &adpt->rx_q); in emac_mac_up()
952 writel(adpt->irq.mask, adpt->base + EMAC_INT_MASK); in emac_mac_up()
1134 netif_dbg(adpt, rx_status, adpt->netdev, in emac_mac_rx_process()
1218 adpt->rx_q.netdev = adpt->netdev; in emac_mac_rx_tx_ring_init_all()
1232 adpt->rx_q.irq = &adpt->irq; in emac_mac_rx_tx_ring_init_all()
1233 adpt->rx_q.intr = adpt->irq.mask & ISR_RX_PKT; in emac_mac_rx_tx_ring_init_all()
[all …]
H A Demac-sgmii.c50 if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->init)) in emac_sgmii_init()
53 return adpt->phy.sgmii_ops->init(adpt); in emac_sgmii_init()
58 if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->open)) in emac_sgmii_open()
61 return adpt->phy.sgmii_ops->open(adpt); in emac_sgmii_open()
66 if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->close)) in emac_sgmii_close()
69 adpt->phy.sgmii_ops->close(adpt); in emac_sgmii_close()
74 if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->link_change)) in emac_sgmii_link_change()
77 return adpt->phy.sgmii_ops->link_change(adpt, link_state); in emac_sgmii_link_change()
82 if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->reset)) in emac_sgmii_reset()
85 adpt->phy.sgmii_ops->reset(adpt); in emac_sgmii_reset()
[all …]
H A Demac-ethtool.c70 return adpt->msg_enable; in emac_get_msglevel()
77 adpt->msg_enable = data; in emac_set_msglevel()
117 spin_lock(&adpt->stats.lock); in emac_get_ethtool_stats()
119 emac_update_hw_stats(adpt); in emac_get_ethtool_stats()
122 spin_unlock(&adpt->stats.lock); in emac_get_ethtool_stats()
142 ring->rx_pending = adpt->rx_desc_cnt; in emac_get_ringparam()
157 adpt->tx_desc_cnt = in emac_set_ringparam()
160 adpt->rx_desc_cnt = in emac_set_ringparam()
164 return emac_reinit_locked(adpt); in emac_set_ringparam()
189 return emac_reinit_locked(adpt); in emac_set_pauseparam()
[all …]
H A Demac-sgmii.h18 int (*init)(struct emac_adapter *adpt);
19 int (*open)(struct emac_adapter *adpt);
20 void (*close)(struct emac_adapter *adpt);
22 void (*reset)(struct emac_adapter *adpt);
42 int emac_sgmii_init_fsm9900(struct emac_adapter *adpt);
43 int emac_sgmii_init_qdf2432(struct emac_adapter *adpt);
44 int emac_sgmii_init_qdf2400(struct emac_adapter *adpt);
46 int emac_sgmii_init(struct emac_adapter *adpt);
47 int emac_sgmii_open(struct emac_adapter *adpt);
48 void emac_sgmii_close(struct emac_adapter *adpt);
[all …]
H A Demac-phy.c46 struct emac_adapter *adpt = bus->priv; in emac_mdio_read() local
57 writel(reg, adpt->base + EMAC_MDIO_CTRL); in emac_mdio_read()
69 struct emac_adapter *adpt = bus->priv; in emac_mdio_write() local
81 writel(reg, adpt->base + EMAC_MDIO_CTRL); in emac_mdio_write()
108 mii_bus->priv = adpt; in emac_phy_config()
124 adpt->phydev = phy_find_first(mii_bus); in emac_phy_config()
126 adpt->phydev = mdiobus_get_phy(mii_bus, phy_addr); in emac_phy_config()
133 if (adpt->phydev) in emac_phy_config()
134 get_device(&adpt->phydev->mdio.dev); in emac_phy_config()
145 adpt->phydev = of_phy_find_device(phy_np); in emac_phy_config()
[all …]
H A Demac-mac.h223 int emac_mac_up(struct emac_adapter *adpt);
224 void emac_mac_down(struct emac_adapter *adpt);
225 void emac_mac_reset(struct emac_adapter *adpt);
226 void emac_mac_stop(struct emac_adapter *adpt);
227 void emac_mac_mode_config(struct emac_adapter *adpt);
230 netdev_tx_t emac_mac_tx_buf_send(struct emac_adapter *adpt,
235 struct emac_adapter *adpt);
236 int emac_mac_rx_tx_rings_alloc_all(struct emac_adapter *adpt);
237 void emac_mac_rx_tx_rings_free_all(struct emac_adapter *adpt);
238 void emac_mac_multicast_addr_clear(struct emac_adapter *adpt);
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/net/ethernet/qualcomm/emac/
H A Demac.c87 emac_mac_down(adpt); in emac_reinit_locked()
88 emac_sgmii_reset(adpt); in emac_reinit_locked()
123 return emac_mac_tx_buf_send(adpt, &adpt->tx_q, skb); in emac_start_xmit()
161 emac_mac_tx_process(adpt, &adpt->tx_q); in emac_isr()
217 netif_dbg(adpt, hw, adpt->netdev, in emac_change_mtu()
275 emac_mac_down(adpt); in emac_close()
278 free_irq(adpt->irq.irq, &adpt->irq); in emac_close()
421 adpt->irq_mod = reg; in emac_init_adapter()
450 adpt->clk[i] = clk; in emac_clks_get()
561 adpt->irq.irq = ret; in emac_probe_resources()
[all …]
H A Demac-mac.c757 adpt->tx_q.tpd.count = adpt->tx_desc_cnt; in emac_mac_rx_tx_rings_alloc_all()
759 adpt->rx_q.rrd.count = adpt->rx_desc_cnt; in emac_mac_rx_tx_rings_alloc_all()
760 adpt->rx_q.rfd.count = adpt->rx_desc_cnt; in emac_mac_rx_tx_rings_alloc_all()
780 ret = emac_tx_q_desc_alloc(adpt, &adpt->tx_q); in emac_mac_rx_tx_rings_alloc_all()
938 emac_mac_rx_descs_refill(adpt, &adpt->rx_q); in emac_mac_up()
952 writel(adpt->irq.mask, adpt->base + EMAC_INT_MASK); in emac_mac_up()
1134 netif_dbg(adpt, rx_status, adpt->netdev, in emac_mac_rx_process()
1218 adpt->rx_q.netdev = adpt->netdev; in emac_mac_rx_tx_ring_init_all()
1232 adpt->rx_q.irq = &adpt->irq; in emac_mac_rx_tx_ring_init_all()
1233 adpt->rx_q.intr = adpt->irq.mask & ISR_RX_PKT; in emac_mac_rx_tx_ring_init_all()
[all …]
H A Demac-sgmii.c50 if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->init)) in emac_sgmii_init()
53 return adpt->phy.sgmii_ops->init(adpt); in emac_sgmii_init()
58 if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->open)) in emac_sgmii_open()
61 return adpt->phy.sgmii_ops->open(adpt); in emac_sgmii_open()
66 if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->close)) in emac_sgmii_close()
69 adpt->phy.sgmii_ops->close(adpt); in emac_sgmii_close()
74 if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->link_change)) in emac_sgmii_link_change()
77 return adpt->phy.sgmii_ops->link_change(adpt, link_state); in emac_sgmii_link_change()
82 if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->reset)) in emac_sgmii_reset()
85 adpt->phy.sgmii_ops->reset(adpt); in emac_sgmii_reset()
[all …]
H A Demac-ethtool.c70 return adpt->msg_enable; in emac_get_msglevel()
77 adpt->msg_enable = data; in emac_set_msglevel()
117 spin_lock(&adpt->stats.lock); in emac_get_ethtool_stats()
119 emac_update_hw_stats(adpt); in emac_get_ethtool_stats()
122 spin_unlock(&adpt->stats.lock); in emac_get_ethtool_stats()
142 ring->rx_pending = adpt->rx_desc_cnt; in emac_get_ringparam()
157 adpt->tx_desc_cnt = in emac_set_ringparam()
160 adpt->rx_desc_cnt = in emac_set_ringparam()
164 return emac_reinit_locked(adpt); in emac_set_ringparam()
189 return emac_reinit_locked(adpt); in emac_set_pauseparam()
[all …]
H A Demac-sgmii.h18 int (*init)(struct emac_adapter *adpt);
19 int (*open)(struct emac_adapter *adpt);
20 void (*close)(struct emac_adapter *adpt);
22 void (*reset)(struct emac_adapter *adpt);
42 int emac_sgmii_init_fsm9900(struct emac_adapter *adpt);
43 int emac_sgmii_init_qdf2432(struct emac_adapter *adpt);
44 int emac_sgmii_init_qdf2400(struct emac_adapter *adpt);
46 int emac_sgmii_init(struct emac_adapter *adpt);
47 int emac_sgmii_open(struct emac_adapter *adpt);
48 void emac_sgmii_close(struct emac_adapter *adpt);
[all …]
H A Demac-phy.c46 struct emac_adapter *adpt = bus->priv; in emac_mdio_read() local
57 writel(reg, adpt->base + EMAC_MDIO_CTRL); in emac_mdio_read()
69 struct emac_adapter *adpt = bus->priv; in emac_mdio_write() local
81 writel(reg, adpt->base + EMAC_MDIO_CTRL); in emac_mdio_write()
108 mii_bus->priv = adpt; in emac_phy_config()
124 adpt->phydev = phy_find_first(mii_bus); in emac_phy_config()
126 adpt->phydev = mdiobus_get_phy(mii_bus, phy_addr); in emac_phy_config()
133 if (adpt->phydev) in emac_phy_config()
134 get_device(&adpt->phydev->mdio.dev); in emac_phy_config()
145 adpt->phydev = of_phy_find_device(phy_np); in emac_phy_config()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/net/ethernet/qualcomm/emac/
H A Demac.c87 emac_mac_down(adpt); in emac_reinit_locked()
88 emac_sgmii_reset(adpt); in emac_reinit_locked()
123 return emac_mac_tx_buf_send(adpt, &adpt->tx_q, skb); in emac_start_xmit()
161 emac_mac_tx_process(adpt, &adpt->tx_q); in emac_isr()
217 netif_dbg(adpt, hw, adpt->netdev, in emac_change_mtu()
275 emac_mac_down(adpt); in emac_close()
278 free_irq(adpt->irq.irq, &adpt->irq); in emac_close()
421 adpt->irq_mod = reg; in emac_init_adapter()
450 adpt->clk[i] = clk; in emac_clks_get()
561 adpt->irq.irq = ret; in emac_probe_resources()
[all …]
H A Demac-mac.c757 adpt->tx_q.tpd.count = adpt->tx_desc_cnt; in emac_mac_rx_tx_rings_alloc_all()
759 adpt->rx_q.rrd.count = adpt->rx_desc_cnt; in emac_mac_rx_tx_rings_alloc_all()
760 adpt->rx_q.rfd.count = adpt->rx_desc_cnt; in emac_mac_rx_tx_rings_alloc_all()
780 ret = emac_tx_q_desc_alloc(adpt, &adpt->tx_q); in emac_mac_rx_tx_rings_alloc_all()
938 emac_mac_rx_descs_refill(adpt, &adpt->rx_q); in emac_mac_up()
952 writel(adpt->irq.mask, adpt->base + EMAC_INT_MASK); in emac_mac_up()
1134 netif_dbg(adpt, rx_status, adpt->netdev, in emac_mac_rx_process()
1218 adpt->rx_q.netdev = adpt->netdev; in emac_mac_rx_tx_ring_init_all()
1232 adpt->rx_q.irq = &adpt->irq; in emac_mac_rx_tx_ring_init_all()
1233 adpt->rx_q.intr = adpt->irq.mask & ISR_RX_PKT; in emac_mac_rx_tx_ring_init_all()
[all …]
H A Demac-sgmii.c50 if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->init)) in emac_sgmii_init()
53 return adpt->phy.sgmii_ops->init(adpt); in emac_sgmii_init()
58 if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->open)) in emac_sgmii_open()
61 return adpt->phy.sgmii_ops->open(adpt); in emac_sgmii_open()
66 if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->close)) in emac_sgmii_close()
69 adpt->phy.sgmii_ops->close(adpt); in emac_sgmii_close()
74 if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->link_change)) in emac_sgmii_link_change()
77 return adpt->phy.sgmii_ops->link_change(adpt, link_state); in emac_sgmii_link_change()
82 if (!(adpt->phy.sgmii_ops && adpt->phy.sgmii_ops->reset)) in emac_sgmii_reset()
85 adpt->phy.sgmii_ops->reset(adpt); in emac_sgmii_reset()
[all …]
H A Demac-ethtool.c70 return adpt->msg_enable; in emac_get_msglevel()
77 adpt->msg_enable = data; in emac_set_msglevel()
117 spin_lock(&adpt->stats.lock); in emac_get_ethtool_stats()
119 emac_update_hw_stats(adpt); in emac_get_ethtool_stats()
122 spin_unlock(&adpt->stats.lock); in emac_get_ethtool_stats()
142 ring->rx_pending = adpt->rx_desc_cnt; in emac_get_ringparam()
157 adpt->tx_desc_cnt = in emac_set_ringparam()
160 adpt->rx_desc_cnt = in emac_set_ringparam()
164 return emac_reinit_locked(adpt); in emac_set_ringparam()
189 return emac_reinit_locked(adpt); in emac_set_pauseparam()
[all …]
H A Demac-sgmii.h18 int (*init)(struct emac_adapter *adpt);
19 int (*open)(struct emac_adapter *adpt);
20 void (*close)(struct emac_adapter *adpt);
22 void (*reset)(struct emac_adapter *adpt);
42 int emac_sgmii_init_fsm9900(struct emac_adapter *adpt);
43 int emac_sgmii_init_qdf2432(struct emac_adapter *adpt);
44 int emac_sgmii_init_qdf2400(struct emac_adapter *adpt);
46 int emac_sgmii_init(struct emac_adapter *adpt);
47 int emac_sgmii_open(struct emac_adapter *adpt);
48 void emac_sgmii_close(struct emac_adapter *adpt);
[all …]
H A Demac-phy.c46 struct emac_adapter *adpt = bus->priv; in emac_mdio_read() local
57 writel(reg, adpt->base + EMAC_MDIO_CTRL); in emac_mdio_read()
69 struct emac_adapter *adpt = bus->priv; in emac_mdio_write() local
81 writel(reg, adpt->base + EMAC_MDIO_CTRL); in emac_mdio_write()
108 mii_bus->priv = adpt; in emac_phy_config()
124 adpt->phydev = phy_find_first(mii_bus); in emac_phy_config()
126 adpt->phydev = mdiobus_get_phy(mii_bus, phy_addr); in emac_phy_config()
133 if (adpt->phydev) in emac_phy_config()
134 get_device(&adpt->phydev->mdio.dev); in emac_phy_config()
145 adpt->phydev = of_phy_find_device(phy_np); in emac_phy_config()
[all …]
H A Demac-mac.h223 int emac_mac_up(struct emac_adapter *adpt);
224 void emac_mac_down(struct emac_adapter *adpt);
225 void emac_mac_reset(struct emac_adapter *adpt);
226 void emac_mac_stop(struct emac_adapter *adpt);
227 void emac_mac_mode_config(struct emac_adapter *adpt);
230 netdev_tx_t emac_mac_tx_buf_send(struct emac_adapter *adpt,
235 struct emac_adapter *adpt);
236 int emac_mac_rx_tx_rings_alloc_all(struct emac_adapter *adpt);
237 void emac_mac_rx_tx_rings_free_all(struct emac_adapter *adpt);
238 void emac_mac_multicast_addr_clear(struct emac_adapter *adpt);
[all …]
/dports/science/mcstas-comps/mcstas-comps-2.5-src/sources/
H A DSource_adapt.comp166 adpt.psi = malloc(adpt.num*sizeof(*adpt.psi));
167 adpt.n = malloc(adpt.num*sizeof(*adpt.n));
194 if(adpt.idx >= adpt.num)
238 p /= adpt.atree->v[adpt.idx]/(adpt.atree->total/adpt.num);
242 if(adpt.n[adpt.idx] > 0)
243 adpt.psi_tot -= adpt.psi[adpt.idx]/
244 (adpt.n[adpt.idx]*(adpt.n[adpt.idx] + 1));
245 adpt.n[adpt.idx]++;
248 new_v = (1 - adpt.a_beta)*adpt.factor*adpt.psi[adpt.idx]/
249 (adpt.n[adpt.idx]*adpt.psi_tot) +
[all …]
H A DAdapt_check.comp50 struct source_adapt *adpt = &(MC_GETPAR(source_comp, adpt));
54 psi = p/adpt->pi;
55 adpt->psi[adpt->idx] += psi;
56 adpt->psi_tot += psi/adpt->n[adpt->idx];
57 new_v = (1 - adpt->a_beta)*adpt->factor*adpt->psi[adpt->idx]/
58 (adpt->n[adpt->idx]*adpt->psi_tot) +
59 adpt->a_beta/adpt->num;
60 adapt_tree_add(adpt->atree, adpt->idx, new_v - adpt->atree->v[adpt->idx]);
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/most/
H A Dmost_snd.c493 if (adpt->card) in release_adapter()
496 kfree(adpt); in release_adapter()
540 adpt->pcm_dev_idx++; in audio_probe_channel()
543 adpt = kzalloc(sizeof(*adpt), GFP_KERNEL); in audio_probe_channel()
544 if (!adpt) in audio_probe_channel()
547 adpt->iface = iface; in audio_probe_channel()
549 iface->priv = adpt; in audio_probe_channel()
555 snprintf(adpt->card->driver, sizeof(adpt->card->driver), in audio_probe_channel()
557 snprintf(adpt->card->shortname, sizeof(adpt->card->shortname), in audio_probe_channel()
559 snprintf(adpt->card->longname, sizeof(adpt->card->longname), in audio_probe_channel()
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/most/
H A Dmost_snd.c493 if (adpt->card) in release_adapter()
496 kfree(adpt); in release_adapter()
540 adpt->pcm_dev_idx++; in audio_probe_channel()
543 adpt = kzalloc(sizeof(*adpt), GFP_KERNEL); in audio_probe_channel()
544 if (!adpt) in audio_probe_channel()
547 adpt->iface = iface; in audio_probe_channel()
549 iface->priv = adpt; in audio_probe_channel()
555 snprintf(adpt->card->driver, sizeof(adpt->card->driver), in audio_probe_channel()
557 snprintf(adpt->card->shortname, sizeof(adpt->card->shortname), in audio_probe_channel()
559 snprintf(adpt->card->longname, sizeof(adpt->card->longname), in audio_probe_channel()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/most/
H A Dmost_snd.c493 if (adpt->card) in release_adapter()
496 kfree(adpt); in release_adapter()
540 adpt->pcm_dev_idx++; in audio_probe_channel()
543 adpt = kzalloc(sizeof(*adpt), GFP_KERNEL); in audio_probe_channel()
544 if (!adpt) in audio_probe_channel()
547 adpt->iface = iface; in audio_probe_channel()
549 iface->priv = adpt; in audio_probe_channel()
555 snprintf(adpt->card->driver, sizeof(adpt->card->driver), in audio_probe_channel()
557 snprintf(adpt->card->shortname, sizeof(adpt->card->shortname), in audio_probe_channel()
559 snprintf(adpt->card->longname, sizeof(adpt->card->longname), in audio_probe_channel()
[all …]

12345678