Home
last modified time | relevance | path

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

12

/linux/arch/powerpc/boot/
A Ddevtree.c21 int naddr, nsize, i; in dt_fixup_memory() local
25 if (getprop(root, "#address-cells", &naddr, sizeof(naddr)) < 0) in dt_fixup_memory()
26 naddr = 2; in dt_fixup_memory()
28 naddr = be32_to_cpu(naddr); in dt_fixup_memory()
29 if (naddr < 1 || naddr > 2) in dt_fixup_memory()
40 if (naddr == 2) in dt_fixup_memory()
140 *naddr = 2; in dt_get_reg_format()
142 *naddr = be32_to_cpu(*naddr); in dt_get_reg_format()
255 offset = (naddr + nsize) * res; in dt_xlate()
270 prev_naddr = naddr; in dt_xlate()
[all …]
A Dfsl-soc.c25 u32 naddr; in fsl_get_immr() local
29 naddr = prop_buf[0]; in fsl_get_immr()
31 naddr = 2; in fsl_get_immr()
33 if (naddr != 1 && naddr != 2) in fsl_get_immr()
42 if (naddr == 2 && prop_buf[1] != 0) in fsl_get_immr()
45 if (!dt_xlate_addr(soc, prop_buf + naddr, 8, &ret)) in fsl_get_immr()
A Dcuboot-pq2.c53 u32 naddr, nsize; in update_cs_ranges() local
61 dt_get_reg_format(bus_node, &naddr, &nsize); in update_cs_ranges()
62 if (naddr != 2 || nsize != 1) in update_cs_ranges()
69 dt_get_reg_format(parent_node, &naddr, &nsize); in update_cs_ranges()
70 if (naddr != 1 || nsize != 1) in update_cs_ranges()
128 u32 naddr, nsize, mem_pow2, mem_mask; in fixup_pci() local
143 dt_get_reg_format(node, &naddr, &nsize); in fixup_pci()
144 if (naddr != 3 || nsize != 2) in fixup_pci()
151 dt_get_reg_format(parent_node, &naddr, &nsize); in fixup_pci()
152 if (naddr != 1 || nsize != 1) in fixup_pci()
A Dops.h98 void dt_get_reg_format(void *node, u32 *naddr, u32 *nsize);
/linux/arch/powerpc/platforms/maple/
A Dsetup.c199 int naddr, n, i, opplen, has_isus = 0; in maple_init_IRQ() local
226 naddr = of_n_addr_cells(root); in maple_init_IRQ()
229 openpic_addr = of_read_number(opprop, naddr); in maple_init_IRQ()
230 has_isus = (opplen > naddr); in maple_init_IRQ()
256 for (n = 0, i = naddr; i < opplen; i += naddr, n++) { in maple_init_IRQ()
257 unsigned long isuaddr = of_read_number(opprop + i, naddr); in maple_init_IRQ()
/linux/drivers/net/ethernet/ti/
A Dnetcp_core.c1393 return naddr; in netcp_addr_find()
1405 naddr = devm_kmalloc(netcp->dev, sizeof(*naddr), GFP_ATOMIC); in netcp_addr_add()
1406 if (!naddr) in netcp_addr_add()
1409 naddr->type = type; in netcp_addr_add()
1410 naddr->flags = 0; in netcp_addr_add()
1418 return naddr; in netcp_addr_add()
1432 naddr->flags = 0; in netcp_addr_clear_mark()
1441 if (naddr) { in netcp_addr_add_mark()
1462 naddr->addr, naddr->type); in netcp_addr_sweep_del()
1468 naddr); in netcp_addr_sweep_del()
[all …]
A Dnetcp.h204 int (*add_addr)(void *intf_priv, struct netcp_addr *naddr);
205 int (*del_addr)(void *intf_priv, struct netcp_addr *naddr);
A Dnetcp_ethss.c2454 static int gbe_add_addr(void *intf_priv, struct netcp_addr *naddr) in gbe_add_addr() argument
2460 naddr->addr, naddr->type); in gbe_add_addr()
2462 switch (naddr->type) { in gbe_add_addr()
2465 gbe_add_mcast_addr(gbe_intf, naddr->addr); in gbe_add_addr()
2469 gbe_add_ucast_addr(gbe_intf, naddr->addr); in gbe_add_addr()
2480 static int gbe_del_addr(void *intf_priv, struct netcp_addr *naddr) in gbe_del_addr() argument
2486 naddr->addr, naddr->type); in gbe_del_addr()
2488 switch (naddr->type) { in gbe_del_addr()
2491 gbe_del_mcast_addr(gbe_intf, naddr->addr); in gbe_del_addr()
2495 gbe_del_ucast_addr(gbe_intf, naddr->addr); in gbe_del_addr()
/linux/drivers/net/ethernet/chelsio/cxgb4/
A Dcxgb4_mps.c83 unsigned int naddr, const u8 **addr, bool sleep_ok) in cxgb4_free_mac_filt() argument
87 for (i = 0; i < naddr; i++) { in cxgb4_free_mac_filt()
97 return naddr; in cxgb4_free_mac_filt()
101 bool free, unsigned int naddr, const u8 **addr, in cxgb4_alloc_mac_filt() argument
107 naddr, addr, idx, hash, sleep_ok); in cxgb4_alloc_mac_filt()
111 for (i = 0; i < naddr; i++) { in cxgb4_alloc_mac_filt()
122 cxgb4_free_mac_filt(adap, viid, naddr, addr, sleep_ok); in cxgb4_alloc_mac_filt()
A Dcxgb4.h2019 unsigned int viid, bool free, unsigned int naddr,
2022 unsigned int viid, unsigned int naddr,
2087 unsigned int naddr, u8 *addr);
2144 bool free, unsigned int naddr,
2148 unsigned int naddr, const u8 **addr, bool sleep_ok);
/linux/arch/powerpc/sysdev/
A Dfsl_soc.c56 u32 naddr; in get_immrbase() local
60 naddr = be32_to_cpup(prop); in get_immrbase()
62 naddr = 2; in get_immrbase()
66 immrbase = of_translate_address(soc, prop + naddr); in get_immrbase()
/linux/drivers/misc/cxl/
A Dof.c72 int i, len, entry_size, naddr, nsize, type; in read_phys_addr() local
76 naddr = of_n_addr_cells(np); in read_phys_addr()
81 entry_size = naddr + nsize; in read_phys_addr()
84 addr = of_read_number(prop, naddr); in read_phys_addr()
85 size = of_read_number(&prop[naddr], nsize); in read_phys_addr()
347 int rc, len, naddr, i; in cxl_of_read_adapter_properties() local
354 naddr = of_n_addr_cells(np); in cxl_of_read_adapter_properties()
375 of_read_number(prop, naddr), in cxl_of_read_adapter_properties()
376 be32_to_cpu(prop[naddr])); in cxl_of_read_adapter_properties()
/linux/drivers/infiniband/hw/qib/
A Dqib_user_sdma.c364 qib_user_sdma_init_frag(pkt, pkt->naddr, /* index */ in qib_user_sdma_page_to_frags()
372 pkt->naddr++; in qib_user_sdma_page_to_frags()
373 if (pkt->naddr == pkt->addrlimit) { in qib_user_sdma_page_to_frags()
530 pkt->index = pkt->naddr; in qib_user_sdma_page_to_frags()
532 pkt->naddr++; in qib_user_sdma_page_to_frags()
533 if (pkt->naddr == pkt->addrlimit) { in qib_user_sdma_page_to_frags()
738 for (idx = 1; idx < pkt->naddr; idx++) in qib_user_sdma_pin_pkt()
784 for (i = 0; i < pkt->naddr; i++) in qib_user_sdma_free_pkt_list()
994 pkt->naddr = 1; in qib_user_sdma_queue_pkts()
1028 *ndesc += pkt->naddr; in qib_user_sdma_queue_pkts()
[all …]
/linux/drivers/scsi/qla2xxx/
A Dqla_sup.c443 return ha->nvram_conf_off + naddr; in nvram_conf_addr()
449 return ha->nvram_data_off + naddr; in nvram_data_addr()
1389 for (i = 0; i < bytes >> 1; i++, naddr++) in qla2x00_read_nvram_data()
1391 naddr)); in qla2x00_read_nvram_data()
1409 naddr = nvram_data_addr(ha, naddr); in qla24xx_read_nvram_data()
1439 for (i = 0; i < bytes >> 1; i++, naddr++) { in qla2x00_write_nvram_data()
1440 qla2x00_write_nvram_word(ha, naddr, in qla2x00_write_nvram_data()
1479 naddr = nvram_data_addr(ha, naddr); in qla24xx_write_nvram_data()
1485 naddr, *dwptr); in qla24xx_write_nvram_data()
1510 naddr = flash_data_addr(ha, ha->flt_region_vpd_nvram | naddr); in qla25xx_read_nvram_data()
[all …]
/linux/include/net/
A Dip.h583 static inline void ip_eth_mc_map(__be32 naddr, char *buf) in ip_eth_mc_map() argument
585 __u32 addr=ntohl(naddr); in ip_eth_mc_map()
601 static inline void ip_ib_mc_map(__be32 naddr, const unsigned char *broadcast, char *buf) in ip_ib_mc_map() argument
610 addr = ntohl(naddr); in ip_ib_mc_map()
632 static inline void ip_ipgre_mc_map(__be32 naddr, const unsigned char *broadcast, char *buf) in ip_ipgre_mc_map() argument
637 memcpy(buf, &naddr, sizeof(naddr)); in ip_ipgre_mc_map()
/linux/arch/powerpc/platforms/pasemi/
A Dsetup.c245 int naddr, opplen; in pas_init_IRQ() local
269 naddr = of_n_addr_cells(root); in pas_init_IRQ()
276 openpic_addr = of_read_number(opprop, naddr); in pas_init_IRQ()
/linux/arch/powerpc/platforms/cell/
A Diommu.c798 int i, len, best, naddr, nsize, pna, range_size; in cell_iommu_get_fixed_address() local
806 naddr = of_n_addr_cells(np); in cell_iommu_get_fixed_address()
827 range_size = naddr + nsize + pna; in cell_iommu_get_fixed_address()
835 cpu_addr = of_translate_dma_address(np, ranges + i + naddr); in cell_iommu_get_fixed_address()
836 size = of_read_number(ranges + i + naddr + pna, nsize); in cell_iommu_get_fixed_address()
845 dev_addr = of_read_number(ranges + best, naddr); in cell_iommu_get_fixed_address()
/linux/arch/powerpc/platforms/pseries/
A Dsetup.c189 int naddr; in pseries_setup_i8259_cascade() local
220 naddr = of_n_addr_cells(np); in pseries_setup_i8259_cascade()
221 intack = addrp[naddr-1]; in pseries_setup_i8259_cascade()
222 if (naddr > 1) in pseries_setup_i8259_cascade()
223 intack |= ((unsigned long)addrp[naddr-2]) << 32; in pseries_setup_i8259_cascade()
/linux/drivers/net/ethernet/chelsio/cxgb4vf/
A Dt4vf_hw.c1528 unsigned int naddr, const u8 **addr, u16 *idx, in t4vf_alloc_mac_filt() argument
1533 unsigned int rem = naddr; in t4vf_alloc_mac_filt()
1537 if (naddr > max_naddr) in t4vf_alloc_mac_filt()
1540 for (offset = 0; offset < naddr; /**/) { in t4vf_alloc_mac_filt()
1614 unsigned int naddr, const u8 **addr, bool sleep_ok) in t4vf_free_mac_filt() argument
1620 unsigned int rem = naddr; in t4vf_free_mac_filt()
1622 if (naddr > max_naddr) in t4vf_free_mac_filt()
1625 for (offset = 0; offset < (int)naddr ; /**/) { in t4vf_free_mac_filt()
2199 unsigned int *naddr, u8 *addr) in t4vf_get_vf_mac_acl() argument
2213 if (cmd.nmac < *naddr) in t4vf_get_vf_mac_acl()
[all …]
A Dt4vf_common.h405 int t4vf_free_mac_filt(struct adapter *, unsigned int, unsigned int naddr,
419 unsigned int *naddr, u8 *addr);
/linux/fs/nfs/
A Dnfs42xdr.c898 struct nfs42_netaddr *naddr; in decode_nl4_server() local
921 naddr = &ns->u.nl4_addr; in decode_nl4_server()
929 naddr->netid_len = dummy; in decode_nl4_server()
930 memcpy(naddr->netid, dummy_str, naddr->netid_len); in decode_nl4_server()
938 naddr->addr_len = dummy; in decode_nl4_server()
939 memcpy(naddr->addr, dummy_str, naddr->addr_len); in decode_nl4_server()
A Dnfs42proc.c25 static void nfs42_set_netaddr(struct file *filep, struct nfs42_netaddr *naddr) in nfs42_set_netaddr() argument
31 naddr->netid_len = scnprintf(naddr->netid, in nfs42_set_netaddr()
32 sizeof(naddr->netid), "%s", in nfs42_set_netaddr()
35 naddr->addr_len = scnprintf(naddr->addr, in nfs42_set_netaddr()
36 sizeof(naddr->addr), in nfs42_set_netaddr()
/linux/include/linux/mtd/
A Dspinand.h35 #define SPINAND_READID_OP(naddr, ndummy, buf, len) \ argument
37 SPI_MEM_OP_ADDR(naddr, 0, 1), \
/linux/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_ipip.c145 union mlxsw_sp_l3addr naddr = {0}; in mlxsw_sp_l3addr_is_zero() local
147 return !memcmp(&addr, &naddr, sizeof(naddr)); in mlxsw_sp_l3addr_is_zero()
/linux/drivers/mtd/nand/raw/gpmi-nand/
A Dgpmi-nand.c2092 struct gpmi_nand_data *this, u8 cmd, const u8 *addr, int naddr) in gpmi_chain_command() argument
2107 | BF_GPMI_CTRL0_XFER_COUNT(naddr + 1); in gpmi_chain_command()
2120 if (naddr) in gpmi_chain_command()
2121 memcpy(&transfer->cmdbuf[1], addr, naddr); in gpmi_chain_command()
2123 sg_init_one(&transfer->sgl, transfer->cmdbuf, naddr + 1); in gpmi_chain_command()

Completed in 88 milliseconds

12