Home
last modified time | relevance | path

Searched refs:naddr (Results 1 – 13 of 13) sorted by relevance

/drivers/net/ethernet/ti/
Dnetcp_core.c1320 struct netcp_addr *naddr; in netcp_addr_find() local
1322 list_for_each_entry(naddr, &netcp->addr_list, node) { in netcp_addr_find()
1323 if (naddr->type != type) in netcp_addr_find()
1325 if (addr && memcmp(addr, naddr->addr, ETH_ALEN)) in netcp_addr_find()
1327 return naddr; in netcp_addr_find()
1337 struct netcp_addr *naddr; in netcp_addr_add() local
1339 naddr = devm_kmalloc(netcp->dev, sizeof(*naddr), GFP_ATOMIC); in netcp_addr_add()
1340 if (!naddr) in netcp_addr_add()
1343 naddr->type = type; in netcp_addr_add()
1344 naddr->flags = 0; in netcp_addr_add()
[all …]
Dnetcp.h189 int (*add_addr)(void *intf_priv, struct netcp_addr *naddr);
190 int (*del_addr)(void *intf_priv, struct netcp_addr *naddr);
Dnetcp_ethss.c2282 static int gbe_add_addr(void *intf_priv, struct netcp_addr *naddr) in gbe_add_addr() argument
2288 naddr->addr, naddr->type); in gbe_add_addr()
2290 switch (naddr->type) { in gbe_add_addr()
2293 gbe_add_mcast_addr(gbe_intf, naddr->addr); in gbe_add_addr()
2297 gbe_add_ucast_addr(gbe_intf, naddr->addr); in gbe_add_addr()
2308 static int gbe_del_addr(void *intf_priv, struct netcp_addr *naddr) in gbe_del_addr() argument
2314 naddr->addr, naddr->type); in gbe_del_addr()
2316 switch (naddr->type) { in gbe_del_addr()
2319 gbe_del_mcast_addr(gbe_intf, naddr->addr); in gbe_del_addr()
2323 gbe_del_ucast_addr(gbe_intf, naddr->addr); in gbe_del_addr()
/drivers/staging/rdma/ipath/
Dipath_user_sdma.c56 u8 naddr; /* dimension of addr (1..3) ... */ member
167 pkt->naddr = 1; in ipath_user_sdma_init_header()
216 pkt->naddr = 2; in ipath_user_sdma_coalesce()
307 ipath_user_sdma_init_frag(pkt, pkt->naddr, fofs, flen, 1, 1, in ipath_user_sdma_pin_pages()
311 pkt->naddr++; in ipath_user_sdma_pin_pages()
343 for (idx = 0; idx < pkt->naddr; idx++) in ipath_user_sdma_pin_pkt()
376 for (i = 0; i < pkt->naddr; i++) in ipath_user_sdma_free_pkt_list()
698 if (idx == pkt->naddr - 1) in ipath_user_sdma_send_frag()
736 if (pkt->naddr > ipath_sdma_descq_freecnt(dd)) in ipath_user_sdma_push_pkts()
739 for (i = 0; i < pkt->naddr; i++) { in ipath_user_sdma_push_pkts()
[all …]
/drivers/infiniband/hw/qib/
Dqib_user_sdma.c74 u16 naddr; /* dimension of addr (1..3) ... */ member
369 qib_user_sdma_init_frag(pkt, pkt->naddr, /* index */ in qib_user_sdma_page_to_frags()
377 pkt->naddr++; in qib_user_sdma_page_to_frags()
378 if (pkt->naddr == pkt->addrlimit) { in qib_user_sdma_page_to_frags()
529 qib_user_sdma_init_frag(pkt, pkt->naddr, /* index */ in qib_user_sdma_page_to_frags()
535 pkt->index = pkt->naddr; in qib_user_sdma_page_to_frags()
537 pkt->naddr++; in qib_user_sdma_page_to_frags()
538 if (pkt->naddr == pkt->addrlimit) { in qib_user_sdma_page_to_frags()
743 for (idx = 1; idx < pkt->naddr; idx++) in qib_user_sdma_pin_pkt()
789 for (i = 0; i < pkt->naddr; i++) in qib_user_sdma_free_pkt_list()
[all …]
/drivers/scsi/qla2xxx/
Dqla_sup.c442 nvram_conf_addr(struct qla_hw_data *ha, uint32_t naddr) in nvram_conf_addr() argument
444 return ha->nvram_conf_off | naddr; in nvram_conf_addr()
448 nvram_data_addr(struct qla_hw_data *ha, uint32_t naddr) in nvram_data_addr() argument
450 return ha->nvram_data_off | naddr; in nvram_data_addr()
1321 qla2x00_read_nvram_data(scsi_qla_host_t *vha, uint8_t *buf, uint32_t naddr, in qla2x00_read_nvram_data() argument
1331 for (i = 0; i < bytes >> 1; i++, naddr++) in qla2x00_read_nvram_data()
1333 naddr)); in qla2x00_read_nvram_data()
1340 qla24xx_read_nvram_data(scsi_qla_host_t *vha, uint8_t *buf, uint32_t naddr, in qla24xx_read_nvram_data() argument
1352 for (i = 0; i < bytes >> 2; i++, naddr++) in qla24xx_read_nvram_data()
1354 nvram_data_addr(ha, naddr))); in qla24xx_read_nvram_data()
[all …]
/drivers/net/ethernet/chelsio/cxgb4vf/
Dcxgb4vf_main.c873 unsigned int naddr = 0; in collect_netdev_uc_list_addrs() local
878 addr[naddr++] = ha->addr; in collect_netdev_uc_list_addrs()
879 if (naddr >= maxaddrs) in collect_netdev_uc_list_addrs()
882 return naddr; in collect_netdev_uc_list_addrs()
896 unsigned int naddr = 0; in collect_netdev_mc_list_addrs() local
901 addr[naddr++] = ha->addr; in collect_netdev_mc_list_addrs()
902 if (naddr >= maxaddrs) in collect_netdev_mc_list_addrs()
905 return naddr; in collect_netdev_mc_list_addrs()
917 unsigned int offset, naddr; in set_addr_filters() local
923 for (offset = 0; ; offset += naddr) { in set_addr_filters()
[all …]
Dt4vf_hw.c1188 unsigned int naddr, const u8 **addr, u16 *idx, in t4vf_alloc_mac_filt() argument
1193 unsigned int rem = naddr; in t4vf_alloc_mac_filt()
1197 if (naddr > max_naddr) in t4vf_alloc_mac_filt()
1200 for (offset = 0; offset < naddr; /**/) { in t4vf_alloc_mac_filt()
/drivers/of/
Daddress.c941 int len, naddr, nsize, pna; in of_dma_get_range() local
949 naddr = of_n_addr_cells(node); in of_dma_get_range()
985 dmaaddr = of_read_number(ranges, naddr); in of_dma_get_range()
995 *size = of_read_number(ranges + naddr + pna, nsize); in of_dma_get_range()
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_main.c392 int ret, naddr = 0; in set_addr_filters() local
401 addr[naddr++] = ha->addr; in set_addr_filters()
402 if (--uc_cnt == 0 || naddr >= ARRAY_SIZE(addr)) { in set_addr_filters()
404 naddr, addr, filt_idx, &uhash, sleep); in set_addr_filters()
409 naddr = 0; in set_addr_filters()
415 addr[naddr++] = ha->addr; in set_addr_filters()
416 if (--mc_cnt == 0 || naddr >= ARRAY_SIZE(addr)) { in set_addr_filters()
418 naddr, addr, filt_idx, &mhash, sleep); in set_addr_filters()
423 naddr = 0; in set_addr_filters()
Dt4_hw.c6552 unsigned int viid, bool free, unsigned int naddr, in t4_alloc_mac_filt() argument
6559 unsigned int rem = naddr; in t4_alloc_mac_filt()
6561 if (naddr > max_naddr) in t4_alloc_mac_filt()
6564 for (offset = 0; offset < naddr ; /**/) { in t4_alloc_mac_filt()
Dcxgb4.h1385 unsigned int viid, bool free, unsigned int naddr,
/drivers/scsi/
D53c700.c1606 __u32 naddr = NCR_700_readl(host, DNAD_REG); in NCR_700_intr() local
1633 if(pAddr != naddr) { in NCR_700_intr()
1634 …dual=%d\n", host->host_no, pun, lun, (unsigned long)pAddr, (unsigned long)naddr, data_transfer, re… in NCR_700_intr()