/illumos-gate/usr/src/uts/common/sys/ |
H A D | ddi_obsolete.h | 35 void ddi_mem_put8(ddi_acc_handle_t handle, uint8_t *dev_addr, uint8_t value); 36 void ddi_mem_put16(ddi_acc_handle_t handle, uint16_t *dev_addr, uint16_t value); 37 void ddi_mem_put32(ddi_acc_handle_t handle, uint32_t *dev_addr, uint32_t value); 38 void ddi_mem_put64(ddi_acc_handle_t handle, uint64_t *dev_addr, uint64_t value); 41 uint8_t *dev_addr, size_t repcount, uint_t flags); 43 uint16_t *dev_addr, size_t repcount, uint_t flags); 45 uint32_t *dev_addr, size_t repcount, uint_t flags); 47 uint64_t *dev_addr, size_t repcount, uint_t flags); 49 uint8_t *dev_addr, size_t repcount, uint_t flags); 51 uint16_t *dev_addr, size_t repcount, uint_t flags); [all …]
|
/illumos-gate/usr/src/uts/intel/sys/ |
H A D | ddi_isa.h | 89 uint8_t *host_addr, uint8_t *dev_addr, 92 uint16_t *host_addr, uint16_t *dev_addr, 95 uint32_t *host_addr, uint32_t *dev_addr, 98 uint64_t *host_addr, uint64_t *dev_addr, 102 uint8_t *host_addr, uint8_t *dev_addr, 105 uint16_t *host_addr, uint16_t *dev_addr, 108 uint32_t *host_addr, uint32_t *dev_addr, 111 uint64_t *host_addr, uint64_t *dev_addr, 178 uint8_t *dev_addr, size_t repcount, uint_t flags); 182 uint16_t *dev_addr, size_t repcount, uint_t flags); [all …]
|
/illumos-gate/usr/src/uts/common/sys/ib/clients/of/rdma/ |
H A D | ib_addr.h | 65 static inline uint16_t ib_addr_get_pkey(struct rdma_dev_addr *dev_addr) in ib_addr_get_pkey() argument 67 return (((uint16_t)dev_addr->broadcast[8] << 8) | in ib_addr_get_pkey() 68 (uint16_t)dev_addr->broadcast[9]); in ib_addr_get_pkey() 71 static inline void ib_addr_set_pkey(struct rdma_dev_addr *dev_addr, in ib_addr_set_pkey() argument 74 dev_addr->broadcast[8] = pkey >> 8; in ib_addr_set_pkey() 75 dev_addr->broadcast[9] = (unsigned char) pkey; in ib_addr_set_pkey() 78 static inline void ib_addr_get_mgid(struct rdma_dev_addr *dev_addr, in ib_addr_get_mgid() argument 81 (void) memcpy(gid, dev_addr->broadcast + 4, sizeof (*gid)); in ib_addr_get_mgid() 84 static inline void ib_addr_get_sgid(struct rdma_dev_addr *dev_addr, in ib_addr_get_sgid() argument 87 (void) memcpy(gid, dev_addr->src_dev_addr + 4, sizeof (*gid)); in ib_addr_get_sgid() [all …]
|
/illumos-gate/usr/src/uts/sparc/sys/ |
H A D | ddi_isa.h | 77 uint8_t *host_addr, uint8_t *dev_addr, 80 uint16_t *host_addr, uint16_t *dev_addr, 83 uint32_t *host_addr, uint32_t *dev_addr, 86 uint64_t *host_addr, uint64_t *dev_addr, 90 uint8_t *host_addr, uint8_t *dev_addr, 93 uint16_t *host_addr, uint16_t *dev_addr, 96 uint32_t *host_addr, uint32_t *dev_addr, 99 uint64_t *host_addr, uint64_t *dev_addr, 160 i_ddi_rep_get8(ddi_acc_impl_t *hdlp, uint8_t *host_addr, uint8_t *dev_addr, 164 i_ddi_rep_get16(ddi_acc_impl_t *hdlp, uint16_t *host_addr, uint16_t *dev_addr, [all …]
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | ddi_i86.c | 570 uint8_t *dev_addr, size_t repcount, uint_t flags) in i_ddi_vaddr_rep_get8() argument 575 d = dev_addr; in i_ddi_vaddr_rep_get8() 588 uint16_t *dev_addr, size_t repcount, uint_t flags) in i_ddi_vaddr_rep_get16() argument 593 d = dev_addr; in i_ddi_vaddr_rep_get16() 606 uint16_t *dev_addr, size_t repcount, uint_t flags) in i_ddi_vaddr_swap_rep_get16() argument 611 d = dev_addr; in i_ddi_vaddr_swap_rep_get16() 624 uint16_t *dev_addr, size_t repcount, uint_t flags) in i_ddi_io_swap_rep_get16() argument 630 port = (uintptr_t)dev_addr; in i_ddi_io_swap_rep_get16() 643 uint32_t *dev_addr, size_t repcount, uint_t flags) in i_ddi_vaddr_rep_get32() argument 648 d = dev_addr; in i_ddi_vaddr_rep_get32() [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/pci/ |
H A D | pci_common.c | 1132 uintptr_t dev_addr = in_args->dev_addr; in pci_common_ctlops_poke() local 1154 pci_config_wr8(hp, (uint8_t *)dev_addr, in pci_common_ctlops_poke() 1158 pci_config_wr16(hp, (uint16_t *)dev_addr, in pci_common_ctlops_poke() 1162 pci_config_wr32(hp, (uint32_t *)dev_addr, in pci_common_ctlops_poke() 1166 pci_config_wr64(hp, (uint64_t *)dev_addr, in pci_common_ctlops_poke() 1179 (uint8_t *)dev_addr, in pci_common_ctlops_poke() 1184 (uint16_t *)dev_addr, in pci_common_ctlops_poke() 1189 (uint32_t *)dev_addr, in pci_common_ctlops_poke() 1198 (uint64_t *)dev_addr, in pci_common_ctlops_poke() 1209 (uint8_t *)dev_addr, in pci_common_ctlops_poke() [all …]
|
H A D | pci_common.h | 78 uint8_t *dev_addr, size_t repcount, uint_t flags); 80 uint16_t *dev_addr, size_t repcount, uint_t flags); 82 uint32_t *dev_addr, size_t repcount, uint_t flags); 84 uint64_t *dev_addr, size_t repcount, uint_t flags); 87 uint8_t *dev_addr, size_t repcount, uint_t flags); 89 uint16_t *dev_addr, size_t repcount, uint_t flags); 91 uint32_t *dev_addr, size_t repcount, uint_t flags); 93 uint64_t *dev_addr, size_t repcount, uint_t flags);
|
/illumos-gate/usr/src/uts/sun4u/lw2plus/io/ |
H A D | lombus.c | 1020 uint8_t *dev_addr, size_t repcount, uint_t flags) in lombus_vreg_rep_get8() argument 1025 for (; repcount--; dev_addr += inc) in lombus_vreg_rep_get8() 1026 *host_addr++ = lombus_vreg_get8(hdlp, dev_addr); in lombus_vreg_rep_get8() 1031 uint8_t *dev_addr, size_t repcount, uint_t flags) in lombus_vreg_rep_put8() argument 1036 for (; repcount--; dev_addr += inc) in lombus_vreg_rep_put8() 1037 lombus_vreg_put8(hdlp, dev_addr, *host_addr++); in lombus_vreg_rep_put8() 1114 uint8_t *dev_addr, size_t repcount, uint_t flags) in lombus_pat_rep_get8() argument 1119 for (; repcount--; dev_addr += inc) in lombus_pat_rep_get8() 1120 *host_addr++ = lombus_pat_get8(hdlp, dev_addr); in lombus_pat_rep_get8() 1125 uint8_t *dev_addr, size_t repcount, uint_t flags) in lombus_pat_rep_put8() argument [all …]
|
/illumos-gate/usr/src/lib/storage/liba5k/common/ |
H A D | mon.c | 544 map.dev_addr = (gfc_port_dev_info_t *)NULL; in l_led() 551 free((void *)map.dev_addr); in l_led() 559 free((void *)map.dev_addr); in l_led() 564 if ((map.dev_addr != NULL) && in l_led() 573 free((void *)map.dev_addr); in l_led() 578 free((void *)map.dev_addr); in l_led() 585 free((void *)map.dev_addr); in l_led() 589 if (map.dev_addr != NULL) in l_led() 590 free((void *)map.dev_addr); /* Not used anymore */ in l_led() 817 map.dev_addr = (gfc_port_dev_info_t *)NULL; in l_dev_pwr_up_down() [all …]
|
H A D | diag.c | 424 map.dev_addr = (gfc_port_dev_info_t *)NULL; in l_dev_bypass_enable() 483 free((void *)map.dev_addr); in l_dev_bypass_enable() 490 if ((map.dev_addr == (gfc_port_dev_info_t *)NULL) && in l_dev_bypass_enable() 499 free((void *)map.dev_addr); in l_dev_bypass_enable() 504 free((void *)map.dev_addr); in l_dev_bypass_enable() 511 free((void *)map.dev_addr); in l_dev_bypass_enable() 516 if (map.dev_addr != (gfc_port_dev_info_t *)NULL) { in l_dev_bypass_enable() 517 free((void *)map.dev_addr); in l_dev_bypass_enable()
|
/illumos-gate/usr/src/uts/sun4v/io/px/ |
H A D | px_lib4v.c | 1413 uint8_t *dev_addr, size_t repcount, uint_t flags) in px_pci_config_rep_get8() argument 1417 *host_addr++ = px_pci_config_get8(handle, dev_addr++); in px_pci_config_rep_get8() 1420 *host_addr++ = px_pci_config_get8(handle, dev_addr); in px_pci_config_rep_get8() 1429 uint16_t *dev_addr, size_t repcount, uint_t flags) in px_pci_config_rep_get16() argument 1433 *host_addr++ = px_pci_config_get16(handle, dev_addr++); in px_pci_config_rep_get16() 1436 *host_addr++ = px_pci_config_get16(handle, dev_addr); in px_pci_config_rep_get16() 1445 uint32_t *dev_addr, size_t repcount, uint_t flags) in px_pci_config_rep_get32() argument 1449 *host_addr++ = px_pci_config_get32(handle, dev_addr++); in px_pci_config_rep_get32() 1452 *host_addr++ = px_pci_config_get32(handle, dev_addr); in px_pci_config_rep_get32() 1461 uint64_t *dev_addr, size_t repcount, uint_t flags) in px_pci_config_rep_get64() argument [all …]
|
/illumos-gate/usr/src/uts/common/io/igc/core/ |
H A D | igc_phy.c | 946 u8 dev_addr = (offset & GPY_MMD_MASK) >> GPY_MMD_SHIFT; in igc_write_phy_reg_gpy() local 952 if (!dev_addr) { in igc_write_phy_reg_gpy() 961 ret_val = igc_write_xmdio_reg(hw, (u16)offset, dev_addr, in igc_write_phy_reg_gpy() 980 u8 dev_addr = (offset & GPY_MMD_MASK) >> GPY_MMD_SHIFT; in igc_read_phy_reg_gpy() local 986 if (!dev_addr) { in igc_read_phy_reg_gpy() 995 ret_val = igc_read_xmdio_reg(hw, (u16)offset, dev_addr, in igc_read_phy_reg_gpy() 1011 u8 dev_addr, u16 *data, bool read) in __igc_access_xmdio_reg() argument 1017 ret_val = hw->phy.ops.write_reg(hw, IGC_MMDAC, dev_addr); in __igc_access_xmdio_reg() 1026 dev_addr); in __igc_access_xmdio_reg() 1052 s32 igc_read_xmdio_reg(struct igc_hw *hw, u16 addr, u8 dev_addr, u16 *data) in igc_read_xmdio_reg() argument [all …]
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | ddi_impl.c | 1762 ddi_acc_impl_t *hp, uint64_t host_addr, uint64_t dev_addr, size_t size, in i_ddi_caut_getput_ctlops() argument 1768 cautacc_ctlops_arg.dev_addr = dev_addr; in i_ddi_caut_getput_ctlops() 1847 i_ddi_caut_rep_get8(ddi_acc_impl_t *hp, uint8_t *host_addr, uint8_t *dev_addr, in i_ddi_caut_rep_get8() argument 1850 i_ddi_caut_getput_ctlops(hp, (uint64_t)host_addr, (uint64_t)dev_addr, in i_ddi_caut_rep_get8() 1856 uint16_t *dev_addr, size_t repcount, uint_t flags) in i_ddi_caut_rep_get16() argument 1858 i_ddi_caut_getput_ctlops(hp, (uint64_t)host_addr, (uint64_t)dev_addr, in i_ddi_caut_rep_get16() 1864 uint32_t *dev_addr, size_t repcount, uint_t flags) in i_ddi_caut_rep_get32() argument 1866 i_ddi_caut_getput_ctlops(hp, (uint64_t)host_addr, (uint64_t)dev_addr, in i_ddi_caut_rep_get32() 1872 uint64_t *dev_addr, size_t repcount, uint_t flags) in i_ddi_caut_rep_get64() argument 1874 i_ddi_caut_getput_ctlops(hp, (uint64_t)host_addr, (uint64_t)dev_addr, in i_ddi_caut_rep_get64() [all …]
|
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | isadma.c | 357 uint8_t *dev_addr, size_t repcount, uint_t flags) in isadma_norep_get8() argument 364 uint16_t *dev_addr, size_t repcount, uint_t flags) in isadma_norep_get16() argument 371 uint32_t *dev_addr, size_t repcount, uint_t flags) in isadma_norep_get32() argument 378 uint64_t *dev_addr, size_t repcount, uint_t flags) in isadma_norep_get64() argument 385 uint8_t *dev_addr, size_t repcount, uint_t flags) in isadma_norep_put8() argument 392 uint16_t *dev_addr, size_t repcount, uint_t flags) in isadma_norep_put16() argument 399 uint32_t *dev_addr, size_t repcount, uint_t flags) in isadma_norep_put32() argument 406 uint64_t *dev_addr, size_t repcount, uint_t flags) in isadma_norep_put64() argument
|
H A D | pmubus.c | 336 uint8_t *dev_addr, size_t repcount, uint_t flags) in pmubus_norep_get8() argument 343 uint16_t *dev_addr, size_t repcount, uint_t flags) in pmubus_norep_get16() argument 350 uint32_t *dev_addr, size_t repcount, uint_t flags) in pmubus_norep_get32() argument 357 uint64_t *dev_addr, size_t repcount, uint_t flags) in pmubus_norep_get64() argument 364 uint8_t *dev_addr, size_t repcount, uint_t flags) in pmubus_norep_put8() argument 371 uint16_t *dev_addr, size_t repcount, uint_t flags) in pmubus_norep_put16() argument 378 uint32_t *dev_addr, size_t repcount, uint_t flags) in pmubus_norep_put32() argument 385 uint64_t *dev_addr, size_t repcount, uint_t flags) in pmubus_norep_put64() argument
|
/illumos-gate/usr/src/uts/sun4u/opl/io/oplpanel/ |
H A D | oplpanel.c | 391 panel_ddi_put8(ddi_acc_handle_t handle, uint8_t *dev_addr, uint8_t value) in panel_ddi_put8() argument 395 panel_name, ddi_get8(handle, dev_addr)); in panel_ddi_put8() 398 ddi_put8(handle, dev_addr, value); in panel_ddi_put8() 400 panel_name, ddi_get8(handle, dev_addr)); in panel_ddi_put8() 402 ddi_put8(handle, dev_addr, value); in panel_ddi_put8()
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | ddi_impl.c | 2304 *(uint8_t *)(in_args->dev_addr) = in poke_mem() 2309 *(uint16_t *)(in_args->dev_addr) = in poke_mem() 2314 *(uint32_t *)(in_args->dev_addr) = in poke_mem() 2319 *(uint64_t *)(in_args->dev_addr) = in poke_mem() 2349 *(uint8_t *)in_args->dev_addr; in peek_mem() 2354 *(uint16_t *)in_args->dev_addr; in peek_mem() 2359 *(uint32_t *)in_args->dev_addr; in peek_mem() 2364 *(uint64_t *)in_args->dev_addr; in peek_mem() 2776 uint64_t dev_addr, size_t size, size_t repcount, uint_t flags, in i_ddi_caut_getput_ctlops() argument 2782 cautacc_ctlops_arg.dev_addr = dev_addr; in i_ddi_caut_getput_ctlops() [all …]
|
/illumos-gate/usr/src/uts/common/io/ixgbe/core/ |
H A D | ixgbe_phy.h | 204 u8 dev_addr, u8 *data); 206 u8 dev_addr, u8 *data); 208 u8 dev_addr, u8 data); 210 u8 dev_addr, u8 data);
|
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | forcedeth.c | 971 if (!is_valid_ether_addr(dev->dev_addr)) { in forcedeth_probe() 978 pci_name(pci_dev), dev->dev_addr[0], in forcedeth_probe() 979 dev->dev_addr[1], dev->dev_addr[2], in forcedeth_probe() 980 dev->dev_addr[3], dev->dev_addr[4], in forcedeth_probe() 981 dev->dev_addr[5]); in forcedeth_probe() 984 dev->dev_addr[0] = 0x00; in forcedeth_probe() 985 dev->dev_addr[1] = 0x00; in forcedeth_probe() 986 dev->dev_addr[2] = 0x6c; in forcedeth_probe() 987 get_random_bytes(&dev->dev_addr[3], 3); in forcedeth_probe()
|
/illumos-gate/usr/src/uts/sun4u/io/pci/ |
H A D | db21554.c | 364 uint8_t *dev_addr, size_t repcount, uint_t flags); 366 uint16_t *dev_addr, size_t repcount, uint_t flags); 368 uint32_t *dev_addr, size_t repcount, uint_t flags); 370 uint64_t *dev_addr, size_t repcount, uint_t flags); 372 uint8_t *dev_addr, size_t repcount, uint_t flags); 374 uint16_t *dev_addr, size_t repcount, uint_t flags); 376 uint32_t *dev_addr, size_t repcount, uint_t flags); 378 uint64_t *dev_addr, size_t repcount, uint_t flags); 1854 pci_addr = &db_pvt->dev_addr; in db_pci_map() 2868 uint8_t *dev_addr, size_t repcount, uint_t flags) in db_ddi_rep_get8() argument [all …]
|
H A D | pci.c | 989 err = do_poke(in_args->size, (void *)in_args->dev_addr, in pci_do_poke() 1022 uintptr_t dev_addr = cautacc_ctlops_arg->dev_addr; in pci_do_caut_put() local 1041 i_ddi_put8(hp, (uint8_t *)dev_addr, in pci_do_caut_put() 1046 i_ddi_put16(hp, (uint16_t *)dev_addr, in pci_do_caut_put() 1051 i_ddi_put32(hp, (uint32_t *)dev_addr, in pci_do_caut_put() 1056 i_ddi_put64(hp, (uint64_t *)dev_addr, in pci_do_caut_put() 1064 dev_addr += size; in pci_do_caut_put() 1101 err = do_peek(in_args->size, (void *)in_args->dev_addr, in pci_do_peek() 1120 uintptr_t dev_addr = cautacc_ctlops_arg->dev_addr; in pci_do_caut_get() local 1133 i_ddi_caut_get(size, (void *)dev_addr, in pci_do_caut_get() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | ib.c | 294 struct rdma_dev_addr *dev_addr; in rds_ib_conn_info_visitor() local 297 dev_addr = &ic->i_cm_id->route.addr.dev_addr; in rds_ib_conn_info_visitor() 299 ib_addr_get_sgid(dev_addr, (union ib_gid *)&iinfo->src_gid); in rds_ib_conn_info_visitor() 300 ib_addr_get_dgid(dev_addr, (union ib_gid *)&iinfo->dst_gid); in rds_ib_conn_info_visitor()
|
/illumos-gate/usr/src/uts/common/io/e1000api/ |
H A D | e1000_i210.c | 757 u8 dev_addr, u16 *data, bool read) in __e1000_access_xmdio_reg() argument 763 ret_val = hw->phy.ops.write_reg(hw, E1000_MMDAC, dev_addr); in __e1000_access_xmdio_reg() 772 dev_addr); in __e1000_access_xmdio_reg() 798 s32 e1000_read_xmdio_reg(struct e1000_hw *hw, u16 addr, u8 dev_addr, u16 *data) in e1000_read_xmdio_reg() argument 802 return __e1000_access_xmdio_reg(hw, addr, dev_addr, data, TRUE); in e1000_read_xmdio_reg() 812 s32 e1000_write_xmdio_reg(struct e1000_hw *hw, u16 addr, u8 dev_addr, u16 data) in e1000_write_xmdio_reg() argument 816 return __e1000_access_xmdio_reg(hw, addr, dev_addr, &data, FALSE); in e1000_write_xmdio_reg()
|
H A D | e1000_i210.h | 48 s32 e1000_read_xmdio_reg(struct e1000_hw *hw, u16 addr, u8 dev_addr, 50 s32 e1000_write_xmdio_reg(struct e1000_hw *hw, u16 addr, u8 dev_addr,
|
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | hotplug.c | 514 map.dev_addr = NULL; in hotplug() 663 free((void *)map.dev_addr); in hotplug() 986 free((void *)map.dev_addr); in hotplug() 1763 free((void *)map.dev_addr); in h_post_hotplug_sena() 1773 free((void *)map.dev_addr); in h_post_hotplug_sena() 1777 FREE_DEV_ADDR(map.dev_addr); in h_post_hotplug_sena() 1782 FREE_DEV_ADDR(map.dev_addr); in h_post_hotplug_sena() 1932 map.dev_addr = (gfc_port_dev_info_t *)NULL; in h_post_hotplug_sena() 1947 FREE_DEV_ADDR(map.dev_addr); in h_post_hotplug_sena() 1955 FREE_DEV_ADDR(map.dev_addr); in h_post_hotplug_sena() [all …]
|