Home
last modified time | relevance | path

Searched refs:ifidx (Results 1 – 25 of 30) sorted by relevance

12

/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dproto.h21 int (*query_dcmd)(struct brcmf_pub *drvr, int ifidx, uint cmd,
23 int (*set_dcmd)(struct brcmf_pub *drvr, int ifidx, uint cmd, void *buf,
25 int (*tx_queue_data)(struct brcmf_pub *drvr, int ifidx,
27 int (*txdata)(struct brcmf_pub *drvr, int ifidx, u8 offset,
29 void (*configure_addr_mode)(struct brcmf_pub *drvr, int ifidx,
31 void (*delete_peer)(struct brcmf_pub *drvr, int ifidx,
33 void (*add_tdls_peer)(struct brcmf_pub *drvr, int ifidx,
63 static inline int brcmf_proto_query_dcmd(struct brcmf_pub *drvr, int ifidx, in brcmf_proto_query_dcmd() argument
67 return drvr->proto->query_dcmd(drvr, ifidx, cmd, buf, len,fwerr); in brcmf_proto_query_dcmd()
69 static inline int brcmf_proto_set_dcmd(struct brcmf_pub *drvr, int ifidx, in brcmf_proto_set_dcmd() argument
[all …]
Dflowring.c25 #define BRCMF_FLOWRING_HASH_AP(da, fifo, ifidx) (da[5] * 2 + fifo + ifidx * 16) argument
26 #define BRCMF_FLOWRING_HASH_STA(fifo, ifidx) (fifo + ifidx * 16) argument
60 u8 prio, u8 ifidx) in brcmf_flowring_lookup() argument
71 sta = (flow->addr_mode[ifidx] == ADDR_INDIRECT); in brcmf_flowring_lookup()
81 hash_idx = sta ? BRCMF_FLOWRING_HASH_STA(fifo, ifidx) : in brcmf_flowring_lookup()
82 BRCMF_FLOWRING_HASH_AP(mac, fifo, ifidx); in brcmf_flowring_lookup()
89 (hash[hash_idx].ifidx == ifidx)) { in brcmf_flowring_lookup()
104 u8 prio, u8 ifidx) in brcmf_flowring_create() argument
116 sta = (flow->addr_mode[ifidx] == ADDR_INDIRECT); in brcmf_flowring_create()
126 hash_idx = sta ? BRCMF_FLOWRING_HASH_STA(fifo, ifidx) : in brcmf_flowring_create()
[all …]
Dbcdc.c109 brcmf_proto_bcdc_msg(struct brcmf_pub *drvr, int ifidx, uint cmd, void *buf, in brcmf_proto_bcdc_msg() argument
126 (ifidx << BCDC_DCMD_IF_SHIFT); in brcmf_proto_bcdc_msg()
158 brcmf_proto_bcdc_query_dcmd(struct brcmf_pub *drvr, int ifidx, uint cmd, in brcmf_proto_bcdc_query_dcmd() argument
170 ret = brcmf_proto_bcdc_msg(drvr, ifidx, cmd, buf, len, false); in brcmf_proto_bcdc_query_dcmd()
190 brcmf_ifname(brcmf_get_ifp(drvr, ifidx)), id, in brcmf_proto_bcdc_query_dcmd()
216 brcmf_proto_bcdc_set_dcmd(struct brcmf_pub *drvr, int ifidx, uint cmd, in brcmf_proto_bcdc_set_dcmd() argument
227 ret = brcmf_proto_bcdc_msg(drvr, ifidx, cmd, buf, len, true); in brcmf_proto_bcdc_set_dcmd()
240 brcmf_ifname(brcmf_get_ifp(drvr, ifidx)), id, in brcmf_proto_bcdc_set_dcmd()
257 brcmf_proto_bcdc_hdrpush(struct brcmf_pub *drvr, int ifidx, u8 offset, in brcmf_proto_bcdc_hdrpush() argument
276 BCDC_SET_IF_IDX(h, ifidx); in brcmf_proto_bcdc_hdrpush()
[all …]
Dflowring.h16 u8 ifidx; member
51 u8 prio, u8 ifidx);
53 u8 prio, u8 ifidx);
66 void brcmf_flowring_configure_addr_mode(struct brcmf_flowring *flow, int ifidx,
68 void brcmf_flowring_delete_peer(struct brcmf_flowring *flow, int ifidx,
70 void brcmf_flowring_add_tdls_peer(struct brcmf_flowring *flow, int ifidx,
Dmsgbuf.c78 u8 ifidx; member
224 int ifidx; member
431 static int brcmf_msgbuf_tx_ioctl(struct brcmf_pub *drvr, int ifidx, in brcmf_msgbuf_tx_ioctl() argument
454 request->msg.ifidx = (u8)ifidx; in brcmf_msgbuf_tx_ioctl()
492 static int brcmf_msgbuf_query_dcmd(struct brcmf_pub *drvr, int ifidx, in brcmf_msgbuf_query_dcmd() argument
500 brcmf_dbg(MSGBUF, "ifidx=%d, cmd=%d, len=%d\n", ifidx, cmd, len); in brcmf_msgbuf_query_dcmd()
503 err = brcmf_msgbuf_tx_ioctl(drvr, ifidx, cmd, buf, len); in brcmf_msgbuf_query_dcmd()
530 static int brcmf_msgbuf_set_dcmd(struct brcmf_pub *drvr, int ifidx, in brcmf_msgbuf_set_dcmd() argument
533 return brcmf_msgbuf_query_dcmd(drvr, ifidx, cmd, buf, len, fwerr); in brcmf_msgbuf_set_dcmd()
623 create->msg.ifidx = work->ifidx; in brcmf_msgbuf_flowring_create_worker()
[all …]
Dfwsignal.c546 u32 ifidx = brcmf_skb_if_flags_get_field(skb, INDEX); in brcmf_fws_ifidx_match() local
547 return ifidx == *(int *)arg; in brcmf_fws_ifidx_match()
622 int ifidx) in brcmf_fws_psq_flush() argument
630 if (ifidx != -1) in brcmf_fws_psq_flush()
633 skb = brcmu_pktq_pdeq_match(q, prec, matchfn, &ifidx); in brcmf_fws_psq_flush()
642 skb = brcmu_pktq_pdeq_match(q, prec, matchfn, &ifidx); in brcmf_fws_psq_flush()
664 int ifidx) in brcmf_fws_hanger_cleanup() argument
676 if (fn == NULL || fn(skb, &ifidx)) { in brcmf_fws_hanger_cleanup()
701 u8 *addr, u8 ifidx) in brcmf_fws_macdesc_init() argument
704 "enter: desc %p ea=%pM, ifidx=%u\n", desc, addr, ifidx); in brcmf_fws_macdesc_init()
[all …]
Dfweh.c32 u8 ifidx; member
134 ifevent->action, ifevent->ifidx, ifevent->bsscfgidx, in brcmf_fweh_handle_if_event()
150 if (ifevent->ifidx >= BRCMF_MAX_IFS) { in brcmf_fweh_handle_if_event()
151 bphy_err(drvr, "invalid interface index: %u\n", ifevent->ifidx); in brcmf_fweh_handle_if_event()
160 ifp = brcmf_add_if(drvr, ifevent->bsscfgidx, ifevent->ifidx, in brcmf_fweh_handle_if_event()
229 event->emsg.ifidx, event->emsg.bsscfgidx, in brcmf_fweh_event_worker()
247 emsg.ifidx = emsg_be->ifidx; in brcmf_fweh_event_worker()
426 event->ifidx = event_packet->msg.ifidx; in brcmf_fweh_process_event()
Dcore.c78 struct brcmf_if *brcmf_get_ifp(struct brcmf_pub *drvr, int ifidx) in brcmf_get_ifp() argument
83 if (ifidx < 0 || ifidx >= BRCMF_MAX_IFS) { in brcmf_get_ifp()
84 bphy_err(drvr, "ifidx %d out of range\n", ifidx); in brcmf_get_ifp()
89 bsscfgidx = drvr->if2bss[ifidx]; in brcmf_get_ifp()
363 ret = brcmf_proto_tx_queue_data(drvr, ifp->ifidx, skb); in brcmf_netdev_start_xmit()
842 struct brcmf_if *brcmf_add_if(struct brcmf_pub *drvr, s32 bsscfgidx, s32 ifidx, in brcmf_add_if() argument
848 brcmf_dbg(TRACE, "Enter, bsscfgidx=%d, ifidx=%d\n", bsscfgidx, ifidx); in brcmf_add_if()
856 if (ifidx) { in brcmf_add_if()
887 if (drvr->if2bss[ifidx] == BRCMF_BSSIDX_INVALID) in brcmf_add_if()
888 drvr->if2bss[ifidx] = bsscfgidx; in brcmf_add_if()
[all …]
Dfwil.c110 err = brcmf_proto_set_dcmd(drvr, ifp->ifidx, cmd, in brcmf_fil_cmd_data()
113 err = brcmf_proto_query_dcmd(drvr, ifp->ifidx, cmd, in brcmf_fil_cmd_data()
136 brcmf_dbg(FIL, "ifidx=%d, cmd=%d, len=%d\n", ifp->ifidx, cmd, len); in brcmf_fil_cmd_data_set()
154 brcmf_dbg(FIL, "ifidx=%d, cmd=%d, len=%d, err=%d\n", ifp->ifidx, cmd, in brcmf_fil_cmd_data_get()
172 brcmf_dbg(FIL, "ifidx=%d, cmd=%d, value=%d\n", ifp->ifidx, cmd, data); in brcmf_fil_cmd_int_set()
189 brcmf_dbg(FIL, "ifidx=%d, cmd=%d, value=%d\n", ifp->ifidx, cmd, *data); in brcmf_fil_cmd_int_get()
225 brcmf_dbg(FIL, "ifidx=%d, name=%s, len=%d\n", ifp->ifidx, name, len); in brcmf_fil_iovar_data_set()
266 brcmf_dbg(FIL, "ifidx=%d, name=%s, len=%d, err=%d\n", ifp->ifidx, name, in brcmf_fil_iovar_data_get()
350 brcmf_dbg(FIL, "ifidx=%d, bsscfgidx=%d, name=%s, len=%d\n", ifp->ifidx, in brcmf_fil_bsscfg_data_set()
391 ifp->ifidx, ifp->bsscfgidx, name, len, err); in brcmf_fil_bsscfg_data_get()
[all …]
Dcore.h195 int ifidx; member
211 struct brcmf_if *brcmf_get_ifp(struct brcmf_pub *drvr, int ifidx);
214 struct brcmf_if *brcmf_add_if(struct brcmf_pub *drvr, s32 bsscfgidx, s32 ifidx,
Dfweh.h232 u8 ifidx; member
274 u8 ifidx; member
279 u8 ifidx; member
Dvendor.c40 brcmf_dbg(TRACE, "ifidx=%d, cmd=%d\n", ifp->ifidx, cmdhdr->cmd); in brcmf_cfg80211_vndr_cmds_dcmd_handler()
/drivers/net/ethernet/cavium/liquidio/
Dlio_vf_rep.c120 rep_cfg.ifidx = vf_rep->ifidx; in lio_vf_rep_open()
153 rep_cfg.ifidx = vf_rep->ifidx; in lio_vf_rep_stop()
210 rep_cfg.ifidx = vf_rep->ifidx; in lio_vf_rep_change_mtu()
235 vf_rep->ifidx - oct->pf_num * 64 - 1); in lio_vf_rep_phys_port_name()
243 lio_vf_rep_get_ndev(struct octeon_device *oct, int ifidx) in lio_vf_rep_get_ndev() argument
248 if (ifidx <= oct->pf_num * max_vfs || in lio_vf_rep_get_ndev()
249 ifidx >= oct->pf_num * max_vfs + max_vfs) in lio_vf_rep_get_ndev()
255 vf_id = (ifidx & vfid_mask) - 1; in lio_vf_rep_get_ndev()
301 int i, ifidx; in lio_vf_rep_pkt_recv() local
309 ifidx = rh->r.ossp; in lio_vf_rep_pkt_recv()
[all …]
Dlio_core.c515 netdev = oct->props[iq->ifidx].netdev; in lio_update_txq_status()
811 int liquidio_setup_io_queues(struct octeon_device *octeon_dev, int ifidx, in liquidio_setup_io_queues() argument
825 netdev = octeon_dev->props[ifidx].netdev; in liquidio_setup_io_queues()
848 lio->ifidx), in liquidio_setup_io_queues()
850 lio->ifidx), in liquidio_setup_io_queues()
886 octeon_get_conf(octeon_dev), lio->ifidx); in liquidio_setup_io_queues()
887 retval = octeon_setup_iq(octeon_dev, ifidx, q, in liquidio_setup_io_queues()
1689 if (oct->props[lio->ifidx].fec == on_off) in liquidio_set_fec()
1748 oct->props[lio->ifidx].fec = var; in liquidio_set_fec()
1750 oct->props[lio->ifidx].fec = 1; in liquidio_set_fec()
[all …]
Dlio_vf_main.c602 if (oct->props[lio->ifidx].rx_on == start_stop) in send_rx_ctrl_cmd()
642 oct->props[lio->ifidx].rx_on = start_stop; in send_rx_ctrl_cmd()
657 static void liquidio_destroy_nic_device(struct octeon_device *oct, int ifidx) in liquidio_destroy_nic_device() argument
659 struct net_device *netdev = oct->props[ifidx].netdev; in liquidio_destroy_nic_device()
666 __func__, ifidx); in liquidio_destroy_nic_device()
677 if (oct->props[lio->ifidx].napi_enabled == 1) { in liquidio_destroy_nic_device()
681 oct->props[lio->ifidx].napi_enabled = 0; in liquidio_destroy_nic_device()
703 oct->props[ifidx].gmxport = -1; in liquidio_destroy_nic_device()
705 oct->props[ifidx].netdev = NULL; in liquidio_destroy_nic_device()
913 if (!oct->props[lio->ifidx].napi_enabled) { in liquidio_open()
[all …]
Docteon_iq.h176 int ifidx; member
393 int octeon_setup_iq(struct octeon_device *oct, int ifidx,
Dlio_vf_rep.h38 int ifidx; member
Dcn23xx_pf_device.h71 int cn23xx_get_vf_stats(struct octeon_device *oct, int ifidx,
Dlio_main.c1154 if (oct->props[lio->ifidx].rx_on == start_stop) in send_rx_ctrl_cmd()
1194 oct->props[lio->ifidx].rx_on = start_stop; in send_rx_ctrl_cmd()
1209 static void liquidio_destroy_nic_device(struct octeon_device *oct, int ifidx) in liquidio_destroy_nic_device() argument
1211 struct net_device *netdev = oct->props[ifidx].netdev; in liquidio_destroy_nic_device()
1218 __func__, ifidx); in liquidio_destroy_nic_device()
1229 if (oct->props[lio->ifidx].napi_enabled == 1) { in liquidio_destroy_nic_device()
1233 oct->props[lio->ifidx].napi_enabled = 0; in liquidio_destroy_nic_device()
1257 oct->props[ifidx].gmxport = -1; in liquidio_destroy_nic_device()
1259 oct->props[ifidx].netdev = NULL; in liquidio_destroy_nic_device()
1778 if (oct->props[lio->ifidx].napi_enabled == 0) { in liquidio_open()
[all …]
Docteon_network.h102 int ifidx; member
219 int liquidio_setup_io_queues(struct octeon_device *octeon_dev, int ifidx,
Dlio_ethtool.c320 if (oct->props[lio->ifidx].fec == 1) { in lio_get_link_ksettings()
509 rx_count = CFG_GET_NUM_RXQS_NIC_IF(conf6x, lio->ifidx); in lio_ethtool_get_channels()
510 tx_count = CFG_GET_NUM_TXQS_NIC_IF(conf6x, lio->ifidx); in lio_ethtool_get_channels()
967 rx_pending = CFG_GET_NUM_RX_DESCS_NIC_IF(conf6x, lio->ifidx); in lio_ethtool_get_ringparam()
968 tx_pending = CFG_GET_NUM_TX_DESCS_NIC_IF(conf6x, lio->ifidx); in lio_ethtool_get_ringparam()
1056 lio->ifidx = ifidx_or_pfnum; in lio_23xx_reconfigure_queue_count()
1294 CFG_SET_NUM_TX_DESCS_NIC_IF(octeon_get_conf(oct), lio->ifidx, in lio_ethtool_set_ringparam()
1297 CFG_SET_NUM_RX_DESCS_NIC_IF(octeon_get_conf(oct), lio->ifidx, in lio_ethtool_set_ringparam()
1312 CFG_SET_NUM_TX_DESCS_NIC_IF(octeon_get_conf(oct), lio->ifidx, in lio_ethtool_set_ringparam()
1315 CFG_SET_NUM_RX_DESCS_NIC_IF(octeon_get_conf(oct), lio->ifidx, in lio_ethtool_set_ringparam()
[all …]
/drivers/net/ethernet/chelsio/cxgb3/
Dl2t.c311 int ifidx; in t3_l2t_get() local
320 ifidx = neigh->dev->ifindex; in t3_l2t_get()
331 hash = arp_hash(addr, ifidx, d); in t3_l2t_get()
335 if (e->addr == addr && e->ifindex == ifidx && in t3_l2t_get()
351 e->ifindex = ifidx; in t3_l2t_get()
405 int ifidx = neigh->dev->ifindex; in t3_l2t_update() local
406 int hash = arp_hash(addr, ifidx, d); in t3_l2t_update()
410 if (e->addr == addr && e->ifindex == ifidx) { in t3_l2t_update()
/drivers/net/ethernet/chelsio/cxgb4/
Dl2t.c424 int ifidx = neigh->dev->ifindex; in cxgb4_l2t_get() local
425 int hash = addr_hash(d, addr, addr_len, ifidx); in cxgb4_l2t_get()
441 if (!addreq(e, addr) && e->ifindex == ifidx && in cxgb4_l2t_get()
457 e->ifindex = ifidx; in cxgb4_l2t_get()
513 int hash, ifidx = neigh->dev->ifindex; in t4_l2t_update() local
518 hash = addr_hash(d, addr, addr_len, ifidx); in t4_l2t_update()
521 if (!addreq(e, addr) && e->ifindex == ifidx) { in t4_l2t_update()
/drivers/net/wireless/quantenna/qtnfmac/
Dcore.c857 if (unlikely(meta->ifidx >= QTNF_MAX_INTF)) { in qtnf_classify_skb()
858 pr_err_ratelimited("invalid vif(%u)\n", meta->ifidx); in qtnf_classify_skb()
869 vif = &mac->iflist[meta->ifidx]; in qtnf_classify_skb()
872 pr_err_ratelimited("vif(%u) does not exists\n", meta->ifidx); in qtnf_classify_skb()
880 meta->macid, meta->ifidx); in qtnf_classify_skb()
Dbus.h20 u8 ifidx; member

12