/openbmc/linux/arch/powerpc/boot/ |
H A D | devtree.c | 21 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 …]
|
H A D | fsl-soc.c | 25 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()
|
H A D | cuboot-pq2.c | 53 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()
|
/openbmc/linux/arch/powerpc/platforms/maple/ |
H A D | setup.c | 200 int naddr, n, i, opplen, has_isus = 0; in maple_init_IRQ() local 227 naddr = of_n_addr_cells(root); in maple_init_IRQ() 230 openpic_addr = of_read_number(opprop, naddr); in maple_init_IRQ() 231 has_isus = (opplen > naddr); in maple_init_IRQ() 257 for (n = 0, i = naddr; i < opplen; i += naddr, n++) { in maple_init_IRQ() 258 unsigned long isuaddr = of_read_number(opprop + i, naddr); in maple_init_IRQ()
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_mps.c | 83 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()
|
/openbmc/linux/drivers/net/ethernet/ti/ |
H A D | netcp_core.c | 1392 return naddr; in netcp_addr_find() 1404 naddr = devm_kmalloc(netcp->dev, sizeof(*naddr), GFP_ATOMIC); in netcp_addr_add() 1405 if (!naddr) in netcp_addr_add() 1408 naddr->type = type; in netcp_addr_add() 1409 naddr->flags = 0; in netcp_addr_add() 1417 return naddr; in netcp_addr_add() 1431 naddr->flags = 0; in netcp_addr_clear_mark() 1440 if (naddr) { in netcp_addr_add_mark() 1461 naddr->addr, naddr->type); in netcp_addr_sweep_del() 1467 naddr); in netcp_addr_sweep_del() [all …]
|
H A D | netcp.h | 204 int (*add_addr)(void *intf_priv, struct netcp_addr *naddr); 205 int (*del_addr)(void *intf_priv, struct netcp_addr *naddr);
|
/openbmc/linux/drivers/misc/cxl/ |
H A D | of.c | 72 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() 346 int rc, len, naddr, i; in cxl_of_read_adapter_properties() local 353 naddr = of_n_addr_cells(np); in cxl_of_read_adapter_properties() 374 of_read_number(prop, naddr), in cxl_of_read_adapter_properties() 375 be32_to_cpu(prop[naddr])); in cxl_of_read_adapter_properties()
|
/openbmc/linux/drivers/infiniband/hw/qib/ |
H A D | qib_user_sdma.c | 363 qib_user_sdma_init_frag(pkt, pkt->naddr, /* index */ in qib_user_sdma_page_to_frags() 371 pkt->naddr++; in qib_user_sdma_page_to_frags() 372 if (pkt->naddr == pkt->addrlimit) { in qib_user_sdma_page_to_frags() 529 pkt->index = pkt->naddr; in qib_user_sdma_page_to_frags() 531 pkt->naddr++; in qib_user_sdma_page_to_frags() 532 if (pkt->naddr == pkt->addrlimit) { in qib_user_sdma_page_to_frags() 733 for (idx = 1; idx < pkt->naddr; idx++) in qib_user_sdma_pin_pkt() 779 for (i = 0; i < pkt->naddr; i++) in qib_user_sdma_free_pkt_list() 989 pkt->naddr = 1; in qib_user_sdma_queue_pkts() 1023 *ndesc += pkt->naddr; in qib_user_sdma_queue_pkts() [all …]
|
/openbmc/u-boot/board/freescale/qemu-ppce500/ |
H A D | qemu-ppce500.c | 53 u32 naddr; in get_phys_ccsrbar_addr_early() local 62 naddr = fdt_address_cells(fdt, node); in get_phys_ccsrbar_addr_early() 64 r = fdt_translate_address(fdt, node, prop + naddr); in get_phys_ccsrbar_addr_early()
|
/openbmc/linux/drivers/scsi/qla2xxx/ |
H A D | qla_sup.c | 443 return ha->nvram_conf_off + naddr; in nvram_conf_addr() 449 return ha->nvram_data_off + naddr; in nvram_data_addr() 1405 for (i = 0; i < bytes >> 1; i++, naddr++) in qla2x00_read_nvram_data() 1407 naddr)); in qla2x00_read_nvram_data() 1425 naddr = nvram_data_addr(ha, naddr); in qla24xx_read_nvram_data() 1455 for (i = 0; i < bytes >> 1; i++, naddr++) { in qla2x00_write_nvram_data() 1456 qla2x00_write_nvram_word(ha, naddr, in qla2x00_write_nvram_data() 1495 naddr = nvram_data_addr(ha, naddr); in qla24xx_write_nvram_data() 1501 naddr, *dwptr); in qla24xx_write_nvram_data() 1526 naddr = flash_data_addr(ha, ha->flt_region_vpd_nvram | naddr); in qla25xx_read_nvram_data() [all …]
|
/openbmc/linux/include/net/ |
H A D | ip.h | 594 static inline void ip_eth_mc_map(__be32 naddr, char *buf) in ip_eth_mc_map() argument 596 __u32 addr=ntohl(naddr); in ip_eth_mc_map() 612 static inline void ip_ib_mc_map(__be32 naddr, const unsigned char *broadcast, char *buf) in ip_ib_mc_map() argument 621 addr = ntohl(naddr); in ip_ib_mc_map() 643 static inline void ip_ipgre_mc_map(__be32 naddr, const unsigned char *broadcast, char *buf) in ip_ipgre_mc_map() argument 648 memcpy(buf, &naddr, sizeof(naddr)); in ip_ipgre_mc_map()
|
/openbmc/linux/arch/powerpc/platforms/pasemi/ |
H A D | setup.c | 247 int naddr, opplen; in pas_init_IRQ() local 271 naddr = of_n_addr_cells(root); in pas_init_IRQ() 278 openpic_addr = of_read_number(opprop, naddr); in pas_init_IRQ()
|
/openbmc/qemu/tests/qtest/libqos/ |
H A D | libqos-malloc.c | 256 uint64_t naddr; in guest_alloc() local 267 naddr = mlist_alloc(allocator, rsize); in guest_alloc() 272 return naddr; in guest_alloc()
|
/openbmc/linux/arch/powerpc/platforms/cell/ |
H A D | iommu.c | 802 int i, len, best, naddr, nsize, pna, range_size; in cell_iommu_get_fixed_address() local 810 naddr = of_n_addr_cells(np); in cell_iommu_get_fixed_address() 831 range_size = naddr + nsize + pna; in cell_iommu_get_fixed_address() 839 cpu_addr = of_translate_dma_address(np, ranges + i + naddr); in cell_iommu_get_fixed_address() 840 size = of_read_number(ranges + i + naddr + pna, nsize); in cell_iommu_get_fixed_address() 849 dev_addr = of_read_number(ranges + best, naddr); in cell_iommu_get_fixed_address()
|
/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A D | setup.c | 219 int naddr; in pseries_setup_i8259_cascade() local 250 naddr = of_n_addr_cells(np); in pseries_setup_i8259_cascade() 251 intack = addrp[naddr-1]; in pseries_setup_i8259_cascade() 252 if (naddr > 1) in pseries_setup_i8259_cascade() 253 intack |= ((unsigned long)addrp[naddr-2]) << 32; in pseries_setup_i8259_cascade()
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | t4vf_hw.c | 1528 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 …]
|
H A D | t4vf_common.h | 405 int t4vf_free_mac_filt(struct adapter *, unsigned int, unsigned int naddr, 419 unsigned int *naddr, u8 *addr);
|
/openbmc/linux/fs/nfs/ |
H A D | nfs42xdr.c | 833 struct nfs42_netaddr *naddr; in decode_nl4_server() local 856 naddr = &ns->u.nl4_addr; in decode_nl4_server() 864 naddr->netid_len = dummy; in decode_nl4_server() 865 memcpy(naddr->netid, dummy_str, naddr->netid_len); in decode_nl4_server() 873 naddr->addr_len = dummy; in decode_nl4_server() 874 memcpy(naddr->addr, dummy_str, naddr->addr_len); in decode_nl4_server()
|
H A D | nfs42proc.c | 25 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()
|
/openbmc/linux/include/linux/mtd/ |
H A D | spinand.h | 35 #define SPINAND_READID_OP(naddr, ndummy, buf, len) \ argument 37 SPI_MEM_OP_ADDR(naddr, 0, 1), \
|
/openbmc/linux/drivers/mtd/spi-nor/ |
H A D | core.h | 15 #define SPI_NOR_READID_OP(naddr, ndummy, buf, len) \ argument 17 SPI_MEM_OP_ADDR(naddr, 0, 0), \ 670 int spi_nor_read_id(struct spi_nor *nor, u8 naddr, u8 ndummy, u8 *id,
|
H A D | spansion.c | 48 #define CYPRESS_NOR_WR_ANY_REG_OP(naddr, addr, ndata, buf) \ argument 50 SPI_MEM_OP_ADDR(naddr, addr, 0), \ 54 #define CYPRESS_NOR_RD_ANY_REG_OP(naddr, addr, ndummy, buf) \ argument 56 SPI_MEM_OP_ADDR(naddr, addr, 0), \
|
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/ |
H A D | fdt.c | 776 u32 naddr; local 779 naddr = fdt_address_cells(fdt, off); 781 addr = fdt_translate_address(fdt, off, prop + naddr);
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_ipip.c | 145 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()
|