/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
D | proto.h | 21 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 …]
|
D | flowring.c | 25 #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 …]
|
D | bcdc.c | 107 brcmf_proto_bcdc_msg(struct brcmf_pub *drvr, int ifidx, uint cmd, void *buf, in brcmf_proto_bcdc_msg() argument 124 (ifidx << BCDC_DCMD_IF_SHIFT); in brcmf_proto_bcdc_msg() 156 brcmf_proto_bcdc_query_dcmd(struct brcmf_pub *drvr, int ifidx, uint cmd, in brcmf_proto_bcdc_query_dcmd() argument 168 ret = brcmf_proto_bcdc_msg(drvr, ifidx, cmd, buf, len, false); in brcmf_proto_bcdc_query_dcmd() 188 brcmf_ifname(brcmf_get_ifp(drvr, ifidx)), id, in brcmf_proto_bcdc_query_dcmd() 214 brcmf_proto_bcdc_set_dcmd(struct brcmf_pub *drvr, int ifidx, uint cmd, in brcmf_proto_bcdc_set_dcmd() argument 225 ret = brcmf_proto_bcdc_msg(drvr, ifidx, cmd, buf, len, true); in brcmf_proto_bcdc_set_dcmd() 238 brcmf_ifname(brcmf_get_ifp(drvr, ifidx)), id, in brcmf_proto_bcdc_set_dcmd() 255 brcmf_proto_bcdc_hdrpush(struct brcmf_pub *drvr, int ifidx, u8 offset, in brcmf_proto_bcdc_hdrpush() argument 274 BCDC_SET_IF_IDX(h, ifidx); in brcmf_proto_bcdc_hdrpush() [all …]
|
D | flowring.h | 16 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,
|
D | msgbuf.c | 77 u8 ifidx; member 223 int ifidx; member 430 static int brcmf_msgbuf_tx_ioctl(struct brcmf_pub *drvr, int ifidx, in brcmf_msgbuf_tx_ioctl() argument 453 request->msg.ifidx = (u8)ifidx; in brcmf_msgbuf_tx_ioctl() 491 static int brcmf_msgbuf_query_dcmd(struct brcmf_pub *drvr, int ifidx, in brcmf_msgbuf_query_dcmd() argument 499 brcmf_dbg(MSGBUF, "ifidx=%d, cmd=%d, len=%d\n", ifidx, cmd, len); in brcmf_msgbuf_query_dcmd() 502 err = brcmf_msgbuf_tx_ioctl(drvr, ifidx, cmd, buf, len); in brcmf_msgbuf_query_dcmd() 529 static int brcmf_msgbuf_set_dcmd(struct brcmf_pub *drvr, int ifidx, in brcmf_msgbuf_set_dcmd() argument 532 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 …]
|
D | fwsignal.c | 546 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 …]
|
D | fweh.c | 32 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() 425 event->ifidx = event_packet->msg.ifidx; in brcmf_fweh_process_event()
|
D | fwil.c | 109 err = brcmf_proto_set_dcmd(drvr, ifp->ifidx, cmd, in brcmf_fil_cmd_data() 112 err = brcmf_proto_query_dcmd(drvr, ifp->ifidx, cmd, in brcmf_fil_cmd_data() 135 brcmf_dbg(FIL, "ifidx=%d, cmd=%d, len=%d\n", ifp->ifidx, cmd, len); in brcmf_fil_cmd_data_set() 153 brcmf_dbg(FIL, "ifidx=%d, cmd=%d, len=%d\n", ifp->ifidx, cmd, len); in brcmf_fil_cmd_data_get() 170 brcmf_dbg(FIL, "ifidx=%d, cmd=%d, value=%d\n", ifp->ifidx, cmd, data); in brcmf_fil_cmd_int_set() 187 brcmf_dbg(FIL, "ifidx=%d, cmd=%d, value=%d\n", ifp->ifidx, cmd, *data); in brcmf_fil_cmd_int_get() 223 brcmf_dbg(FIL, "ifidx=%d, name=%s, len=%d\n", ifp->ifidx, name, len); in brcmf_fil_iovar_data_set() 263 brcmf_dbg(FIL, "ifidx=%d, name=%s, len=%d\n", ifp->ifidx, name, len); in brcmf_fil_iovar_data_get() 346 brcmf_dbg(FIL, "ifidx=%d, bsscfgidx=%d, name=%s, len=%d\n", ifp->ifidx, in brcmf_fil_bsscfg_data_set() 386 brcmf_dbg(FIL, "ifidx=%d, bsscfgidx=%d, name=%s, len=%d\n", ifp->ifidx, in brcmf_fil_bsscfg_data_get()
|
D | core.c | 76 struct brcmf_if *brcmf_get_ifp(struct brcmf_pub *drvr, int ifidx) in brcmf_get_ifp() argument 81 if (ifidx < 0 || ifidx >= BRCMF_MAX_IFS) { in brcmf_get_ifp() 82 bphy_err(drvr, "ifidx %d out of range\n", ifidx); in brcmf_get_ifp() 87 bsscfgidx = drvr->if2bss[ifidx]; in brcmf_get_ifp() 360 ret = brcmf_proto_tx_queue_data(drvr, ifp->ifidx, skb); in brcmf_netdev_start_xmit() 847 struct brcmf_if *brcmf_add_if(struct brcmf_pub *drvr, s32 bsscfgidx, s32 ifidx, in brcmf_add_if() argument 853 brcmf_dbg(TRACE, "Enter, bsscfgidx=%d, ifidx=%d\n", bsscfgidx, ifidx); in brcmf_add_if() 861 if (ifidx) { in brcmf_add_if() 892 if (drvr->if2bss[ifidx] == BRCMF_BSSIDX_INVALID) in brcmf_add_if() 893 drvr->if2bss[ifidx] = bsscfgidx; in brcmf_add_if() [all …]
|
D | core.h | 186 int ifidx; member 202 struct brcmf_if *brcmf_get_ifp(struct brcmf_pub *drvr, int ifidx); 205 struct brcmf_if *brcmf_add_if(struct brcmf_pub *drvr, s32 bsscfgidx, s32 ifidx,
|
D | fweh.h | 232 u8 ifidx; member 274 u8 ifidx; member 279 u8 ifidx; member
|
D | vendor.c | 40 brcmf_dbg(TRACE, "ifidx=%d, cmd=%d\n", ifp->ifidx, cmdhdr->cmd); in brcmf_cfg80211_vndr_cmds_dcmd_handler()
|
/drivers/net/ethernet/cavium/liquidio/ |
D | lio_vf_rep.c | 120 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() 302 int i, ifidx; in lio_vf_rep_pkt_recv() local 310 ifidx = rh->r.ossp; in lio_vf_rep_pkt_recv() [all …]
|
D | lio_core.c | 507 netdev = oct->props[iq->ifidx].netdev; in lio_update_txq_status() 808 int liquidio_setup_io_queues(struct octeon_device *octeon_dev, int ifidx, in liquidio_setup_io_queues() argument 822 netdev = octeon_dev->props[ifidx].netdev; in liquidio_setup_io_queues() 845 lio->ifidx), in liquidio_setup_io_queues() 847 lio->ifidx), in liquidio_setup_io_queues() 883 octeon_get_conf(octeon_dev), lio->ifidx); in liquidio_setup_io_queues() 884 retval = octeon_setup_iq(octeon_dev, ifidx, q, in liquidio_setup_io_queues() 1680 if (oct->props[lio->ifidx].fec == on_off) in liquidio_set_fec() 1739 oct->props[lio->ifidx].fec = var; in liquidio_set_fec() 1741 oct->props[lio->ifidx].fec = 1; in liquidio_set_fec() [all …]
|
D | lio_vf_main.c | 605 if (oct->props[lio->ifidx].rx_on == start_stop) in send_rx_ctrl_cmd() 645 oct->props[lio->ifidx].rx_on = start_stop; in send_rx_ctrl_cmd() 660 static void liquidio_destroy_nic_device(struct octeon_device *oct, int ifidx) in liquidio_destroy_nic_device() argument 662 struct net_device *netdev = oct->props[ifidx].netdev; in liquidio_destroy_nic_device() 670 __func__, ifidx); in liquidio_destroy_nic_device() 681 if (oct->props[lio->ifidx].napi_enabled == 1) { in liquidio_destroy_nic_device() 685 oct->props[lio->ifidx].napi_enabled = 0; in liquidio_destroy_nic_device() 707 oct->props[ifidx].gmxport = -1; in liquidio_destroy_nic_device() 709 oct->props[ifidx].netdev = NULL; in liquidio_destroy_nic_device() 918 if (!oct->props[lio->ifidx].napi_enabled) { in liquidio_open() [all …]
|
D | octeon_iq.h | 176 int ifidx; member 393 int octeon_setup_iq(struct octeon_device *oct, int ifidx,
|
D | lio_vf_rep.h | 38 int ifidx; member
|
D | cn23xx_pf_device.h | 71 int cn23xx_get_vf_stats(struct octeon_device *oct, int ifidx,
|
D | lio_main.c | 1163 if (oct->props[lio->ifidx].rx_on == start_stop) in send_rx_ctrl_cmd() 1203 oct->props[lio->ifidx].rx_on = start_stop; in send_rx_ctrl_cmd() 1218 static void liquidio_destroy_nic_device(struct octeon_device *oct, int ifidx) in liquidio_destroy_nic_device() argument 1220 struct net_device *netdev = oct->props[ifidx].netdev; in liquidio_destroy_nic_device() 1228 __func__, ifidx); in liquidio_destroy_nic_device() 1239 if (oct->props[lio->ifidx].napi_enabled == 1) { in liquidio_destroy_nic_device() 1243 oct->props[lio->ifidx].napi_enabled = 0; in liquidio_destroy_nic_device() 1267 oct->props[ifidx].gmxport = -1; in liquidio_destroy_nic_device() 1269 oct->props[ifidx].netdev = NULL; in liquidio_destroy_nic_device() 1784 if (oct->props[lio->ifidx].napi_enabled == 0) { in liquidio_open() [all …]
|
D | octeon_network.h | 102 int ifidx; member 219 int liquidio_setup_io_queues(struct octeon_device *octeon_dev, int ifidx,
|
D | lio_ethtool.c | 319 if (oct->props[lio->ifidx].fec == 1) { in lio_get_link_ksettings() 508 rx_count = CFG_GET_NUM_RXQS_NIC_IF(conf6x, lio->ifidx); in lio_ethtool_get_channels() 509 tx_count = CFG_GET_NUM_TXQS_NIC_IF(conf6x, lio->ifidx); in lio_ethtool_get_channels() 964 rx_pending = CFG_GET_NUM_RX_DESCS_NIC_IF(conf6x, lio->ifidx); in lio_ethtool_get_ringparam() 965 tx_pending = CFG_GET_NUM_TX_DESCS_NIC_IF(conf6x, lio->ifidx); in lio_ethtool_get_ringparam() 1053 lio->ifidx = ifidx_or_pfnum; in lio_23xx_reconfigure_queue_count() 1288 CFG_SET_NUM_TX_DESCS_NIC_IF(octeon_get_conf(oct), lio->ifidx, in lio_ethtool_set_ringparam() 1291 CFG_SET_NUM_RX_DESCS_NIC_IF(octeon_get_conf(oct), lio->ifidx, in lio_ethtool_set_ringparam() 1306 CFG_SET_NUM_TX_DESCS_NIC_IF(octeon_get_conf(oct), lio->ifidx, in lio_ethtool_set_ringparam() 1309 CFG_SET_NUM_RX_DESCS_NIC_IF(octeon_get_conf(oct), lio->ifidx, in lio_ethtool_set_ringparam() [all …]
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | l2t.c | 311 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/ |
D | l2t.c | 424 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/ |
D | core.c | 864 if (unlikely(meta->ifidx >= QTNF_MAX_INTF)) { in qtnf_classify_skb() 865 pr_err_ratelimited("invalid vif(%u)\n", meta->ifidx); in qtnf_classify_skb() 876 vif = &mac->iflist[meta->ifidx]; in qtnf_classify_skb() 879 pr_err_ratelimited("vif(%u) does not exists\n", meta->ifidx); in qtnf_classify_skb() 887 meta->macid, meta->ifidx); in qtnf_classify_skb()
|
D | bus.h | 20 u8 ifidx; member
|