Home
last modified time | relevance | path

Searched refs:dev_addr (Results 1 – 25 of 88) sorted by relevance

1234

/freebsd/sys/ofed/include/rdma/
H A Dib_addr.h112 struct rdma_dev_addr *dev_addr);
143 int rdma_copy_addr(struct rdma_dev_addr *dev_addr, if_t dev,
155 static inline u16 ib_addr_get_pkey(struct rdma_dev_addr *dev_addr) in ib_addr_get_pkey() argument
157 return ((u16)dev_addr->broadcast[8] << 8) | (u16)dev_addr->broadcast[9]; in ib_addr_get_pkey()
160 static inline void ib_addr_set_pkey(struct rdma_dev_addr *dev_addr, u16 pkey) in ib_addr_set_pkey() argument
162 dev_addr->broadcast[8] = pkey >> 8; in ib_addr_set_pkey()
163 dev_addr->broadcast[9] = (unsigned char) pkey; in ib_addr_set_pkey()
166 static inline void ib_addr_get_mgid(struct rdma_dev_addr *dev_addr, in ib_addr_get_mgid() argument
169 memcpy(gid, dev_addr->broadcast + 4, sizeof *gid); in ib_addr_get_mgid()
172 static inline int rdma_addr_gid_offset(struct rdma_dev_addr *dev_addr) in rdma_addr_gid_offset() argument
[all …]
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_addr.c141 int rdma_copy_addr(struct rdma_dev_addr *dev_addr, if_t dev, in rdma_copy_addr() argument
148 dev_addr->dev_type = ARPHRD_ETHER; in rdma_copy_addr()
149 memset(dev_addr->src_dev_addr, 0, MAX_ADDR_LEN); in rdma_copy_addr()
150 memset(dev_addr->broadcast, 0, MAX_ADDR_LEN); in rdma_copy_addr()
151 memset(dev_addr->dst_dev_addr, 0, MAX_ADDR_LEN); in rdma_copy_addr()
152 dev_addr->bound_dev_if = if_getindex(dev); in rdma_copy_addr()
155 dev_addr->dev_type = ARPHRD_INFINIBAND; in rdma_copy_addr()
157 dev_addr->dev_type = ARPHRD_ETHER; in rdma_copy_addr()
159 dev_addr->dev_type = 0; in rdma_copy_addr()
160 rdma_copy_addr_sub(dev_addr->src_dev_addr, if_getlladdr(dev), in rdma_copy_addr()
[all …]
H A Dib_cma.c490 id_priv->id.route.addr.dev_addr.transport = in _cma_attach_to_dev()
564 ib_addr_get_mgid(&id_priv->id.route.addr.dev_addr, &rec.mgid); in cma_set_qkey()
577 static void cma_translate_ib(struct sockaddr_ib *sib, struct rdma_dev_addr *dev_addr) in cma_translate_ib() argument
579 dev_addr->dev_type = ARPHRD_INFINIBAND; in cma_translate_ib()
580 rdma_addr_set_sgid(dev_addr, (union ib_gid *) &sib->sib_addr); in cma_translate_ib()
581 ib_addr_set_pkey(dev_addr, ntohs(sib->sib_pkey)); in cma_translate_ib()
584 static int cma_translate_addr(struct sockaddr *addr, struct rdma_dev_addr *dev_addr) in cma_translate_addr() argument
589 ret = rdma_translate_ip(addr, dev_addr); in cma_translate_addr()
591 cma_translate_ib((struct sockaddr_ib *) addr, dev_addr); in cma_translate_addr()
601 const struct rdma_dev_addr *dev_addr) in cma_validate_port() argument
[all …]
H A Dib_ucma.c750 struct rdma_dev_addr *dev_addr; in ucma_copy_ib_route() local
755 dev_addr = &route->addr.dev_addr; in ucma_copy_ib_route()
756 rdma_addr_get_dgid(dev_addr, in ucma_copy_ib_route()
758 rdma_addr_get_sgid(dev_addr, in ucma_copy_ib_route()
760 resp->ib_route[0].pkey = cpu_to_be16(ib_addr_get_pkey(dev_addr)); in ucma_copy_ib_route()
804 struct rdma_dev_addr *dev_addr; in ucma_copy_iw_route() local
806 dev_addr = &route->addr.dev_addr; in ucma_copy_iw_route()
807 rdma_addr_get_dgid(dev_addr, (union ib_gid *) &resp->ib_route[0].dgid); in ucma_copy_iw_route()
808 rdma_addr_get_sgid(dev_addr, (union ib_gid *) &resp->ib_route[0].sgid); in ucma_copy_iw_route()
871 ib_addr_get_pkey(&cm_id->route.addr.dev_addr)); in ucma_query_device_addr()
[all …]
/freebsd/sys/dev/enetc/
H A Denetc_mdio.c67 uint16_t dev_addr; in enetc_mdio_read() local
72 dev_addr = (reg >> 16) & 0x1f; in enetc_mdio_read()
76 dev_addr = reg & 0x1f; in enetc_mdio_read()
86 mdio_ctl = MDIO_CTL_PORT_ADDR(phy) | MDIO_CTL_DEV_ADDR(dev_addr); in enetc_mdio_read()
115 uint16_t dev_addr; in enetc_mdio_write() local
120 dev_addr = (reg >> 16) & 0x1f; in enetc_mdio_write()
124 dev_addr = reg & 0x1f; in enetc_mdio_write()
134 mdio_ctl = MDIO_CTL_PORT_ADDR(phy) | MDIO_CTL_DEV_ADDR(dev_addr); in enetc_mdio_write()
/freebsd/sys/dev/qat/qat_api/common/ctrl/
H A Dsal_get_instances.c51 icp_accel_dev_t *dev_addr = NULL; in Lac_GetSingleCyNumInstances() local
103 dev_addr = pAdfInsts[i]; in Lac_GetSingleCyNumInstances()
104 if (NULL == dev_addr || NULL == dev_addr->pSalHandle) { in Lac_GetSingleCyNumInstances()
107 base_addr = dev_addr->pSalHandle; in Lac_GetSingleCyNumInstances()
140 icp_accel_dev_t *dev_addr = NULL; in Lac_GetSingleCyInstances() local
208 dev_addr = pAdfInsts[i]; in Lac_GetSingleCyInstances()
214 base_addr = dev_addr->pSalHandle; in Lac_GetSingleCyInstances()
H A Dsal_compression.c1223 icp_accel_dev_t *dev_addr = NULL; in cpaDcGetNumInstances() local
1246 dev_addr = (icp_accel_dev_t *)pAdfInsts[i]; in cpaDcGetNumInstances()
1247 if (NULL != dev_addr) { in cpaDcGetNumInstances()
1248 base_addr = dev_addr->pSalHandle; in cpaDcGetNumInstances()
1274 icp_accel_dev_t *dev_addr = NULL; in cpaDcGetInstances() local
1303 dev_addr = (icp_accel_dev_t *)pAdfInsts[i]; in cpaDcGetInstances()
1304 if (NULL != dev_addr) { in cpaDcGetInstances()
1305 base_addr = dev_addr->pSalHandle; in cpaDcGetInstances()
1336 dev_addr = (icp_accel_dev_t *)pAdfInsts[i]; in cpaDcGetInstances()
1342 base_addr = dev_addr->pSalHandle; in cpaDcGetInstances()
[all …]
H A Dsal_crypto.c1087 icp_accel_dev_t *dev_addr = NULL; in cpaCyGetNumInstances() local
1119 dev_addr = (icp_accel_dev_t *)pAdfInsts[i]; in cpaCyGetNumInstances()
1120 if (NULL == dev_addr || NULL == dev_addr->pSalHandle) { in cpaCyGetNumInstances()
1124 base_addr = dev_addr->pSalHandle; in cpaCyGetNumInstances()
1174 icp_accel_dev_t *dev_addr = NULL; in cpaCyGetInstances() local
1224 dev_addr = (icp_accel_dev_t *)pAdfInsts[i]; in cpaCyGetInstances()
1230 base_addr = dev_addr->pSalHandle; in cpaCyGetInstances()
1778 icp_accel_dev_t *dev_addr = NULL; in Lac_GetFirstAsymHandle() local
1786 dev_addr = (icp_accel_dev_t *)adfInsts[i]; in Lac_GetFirstAsymHandle()
1787 base_addr = dev_addr->pSalHandle; in Lac_GetFirstAsymHandle()
[all …]
/freebsd/contrib/wpa/wpa_supplicant/dbus/
H A Ddbus_new.h197 int wpas_dbus_register_peer(struct wpa_supplicant *wpa_s, const u8 *dev_addr);
200 const u8 *dev_addr);
202 const u8 *dev_addr);
204 const u8 *dev_addr);
206 const u8 *dev_addr);
210 const u8 *dev_addr, int request,
264 const u8 *sa, const u8 *dev_addr,
421 const u8 *dev_addr) in wpas_dbus_register_peer() argument
427 const u8 *dev_addr) in wpas_dbus_unregister_peer() argument
434 const u8 *dev_addr) in wpas_dbus_signal_peer_groups_changed() argument
[all …]
/freebsd/sys/dev/ixl/
H A Dixl_pf_i2c.c457 u8 dev_addr, u8 *data) in ixl_read_i2c_byte_bb() argument
475 status = ixl_clock_out_i2c_byte(pf, dev_addr); in ixl_read_i2c_byte_bb()
502 status = ixl_clock_out_i2c_byte(pf, (dev_addr | 0x1)); in ixl_read_i2c_byte_bb()
546 u8 dev_addr, u8 data) in ixl_write_i2c_byte_bb() argument
561 status = ixl_clock_out_i2c_byte(pf, dev_addr); in ixl_write_i2c_byte_bb()
612 u8 dev_addr, u8 *data) in ixl_read_i2c_byte_reg() argument
620 reg |= (((dev_addr >> 1) & 0x7) << I40E_GLGEN_I2CCMD_PHYADD_SHIFT); in ixl_read_i2c_byte_reg()
642 u8 dev_addr, u8 data) in ixl_write_i2c_byte_reg() argument
650 status = ixl_read_i2c_byte_reg(pf, byte_offset + 1, dev_addr, &upperbyte); in ixl_write_i2c_byte_reg()
656 reg |= (((dev_addr >> 1) & 0x7) << I40E_GLGEN_I2CCMD_PHYADD_SHIFT); in ixl_write_i2c_byte_reg()
[all …]
H A Dixl_pf.h166 u8 dev_addr, u8 *data);
168 u8 dev_addr, u8 data);
433 u8 dev_addr, u8 *data);
435 u8 dev_addr, u8 data);
437 u8 dev_addr, u8 *data);
439 u8 dev_addr, u8 data);
441 u8 dev_addr, u8 *data);
443 u8 dev_addr, u8 data);
/freebsd/contrib/wpa/src/p2p/
H A Dp2p_group.c24 u8 dev_addr[ETH_ALEN]; /* P2P Device Address */ member
239 p2p_buf_add_device_id(ie, group->p2p->cfg->dev_addr); in p2p_group_build_beacon_ie()
335 wpabuf_put_data(buf, m->dev_addr, ETH_ALEN); in wifi_display_add_dev_info_descr()
438 p2p_buf_add_group_id(buf, group->p2p->cfg->dev_addr, group->cfg->ssid, in p2p_group_buf_add_id()
524 u8 *dev_capab, u8 *dev_addr) in p2p_build_client_info() argument
544 os_memcpy(dev_addr, msg.p2p_device_addr, ETH_ALEN); in p2p_build_client_info()
620 m->dev_addr); in p2p_group_notif_assoc()
788 if (ether_addr_equal(msg.device_id, group->p2p->cfg->dev_addr)) in p2p_group_match_dev_id()
792 if (ether_addr_equal(msg.device_id, m->dev_addr)) in p2p_group_match_dev_id()
847 if (ether_addr_equal(dev_id, m->dev_addr)) in p2p_group_get_client()
[all …]
H A Dp2p_build.c204 wpabuf_put_data(buf, p2p->cfg->dev_addr, ETH_ALEN); in p2p_buf_add_device_info()
251 void p2p_buf_add_device_id(struct wpabuf *buf, const u8 *dev_addr) in p2p_buf_add_device_id() argument
256 wpabuf_put_data(buf, dev_addr, ETH_ALEN); in p2p_buf_add_device_id()
257 wpa_printf(MSG_DEBUG, "P2P: * Device ID: " MACSTR, MAC2STR(dev_addr)); in p2p_buf_add_device_id()
296 void p2p_buf_add_group_id(struct wpabuf *buf, const u8 *dev_addr, in p2p_buf_add_group_id() argument
302 wpabuf_put_data(buf, dev_addr, ETH_ALEN); in p2p_buf_add_group_id()
305 MAC2STR(dev_addr)); in p2p_buf_add_group_id()
365 wpabuf_put_data(buf, p2p->cfg->dev_addr, ETH_ALEN); in p2p_buf_add_p2p_interface()
372 wpabuf_put_data(buf, p2p->cfg->dev_addr, ETH_ALEN); in p2p_buf_add_p2p_interface()
699 void p2p_buf_add_persistent_group_info(struct wpabuf *buf, const u8 *dev_addr, in p2p_buf_add_persistent_group_info() argument
[all …]
H A Dp2p.h533 u8 dev_addr[ETH_ALEN]; member
775 void (*dev_lost)(void *ctx, const u8 *dev_addr);
874 const u8 *dev_addr, const u8 *pri_dev_type,
1003 int (*go_connected)(void *ctx, const u8 *dev_addr);
1905 int p2p_parse_dev_addr_in_p2p_ie(struct wpabuf *p2p_ie, u8 *dev_addr);
1914 int p2p_parse_dev_addr(const u8 *ies, size_t ies_len, u8 *dev_addr);
2050 int p2p_get_interface_addr(struct p2p_data *p2p, const u8 *dev_addr,
2053 u8 *dev_addr);
2172 const u8 *dev_addr);
2189 int p2p_group_is_client_connected(struct p2p_group *group, const u8 *dev_addr);
H A Dp2p_invitation.c25 const u8 *dev_addr; in p2p_build_invitation_req() local
83 dev_addr = go_dev_addr; in p2p_build_invitation_req()
85 dev_addr = peer->info.p2p_device_addr; in p2p_build_invitation_req()
87 dev_addr = p2p->cfg->dev_addr; in p2p_build_invitation_req()
88 p2p_buf_add_group_id(buf, dev_addr, p2p->inv_ssid, p2p->inv_ssid_len); in p2p_build_invitation_req()
429 if (p2p_send_action(p2p, freq, sa, p2p->cfg->dev_addr, in p2p_process_invitation_req()
430 p2p->cfg->dev_addr, in p2p_process_invitation_req()
605 p2p->cfg->dev_addr, dev->info.p2p_device_addr, in p2p_invite_send()
H A Dp2p_dev_disc.c96 p2p->cfg->dev_addr, go->info.p2p_device_addr, in p2p_send_dev_disc_req()
151 if (p2p_send_action(p2p, freq, addr, p2p->cfg->dev_addr, in p2p_send_dev_disc_resp()
152 p2p->cfg->dev_addr, in p2p_send_dev_disc_resp()
/freebsd/sys/dev/igc/
H A Digc_phy.c947 u8 dev_addr = (offset & GPY_MMD_MASK) >> GPY_MMD_SHIFT; in igc_write_phy_reg_gpy() local
953 if (!dev_addr) { in igc_write_phy_reg_gpy()
962 ret_val = igc_write_xmdio_reg(hw, (u16)offset, dev_addr, in igc_write_phy_reg_gpy()
981 u8 dev_addr = (offset & GPY_MMD_MASK) >> GPY_MMD_SHIFT; in igc_read_phy_reg_gpy() local
987 if (!dev_addr) { in igc_read_phy_reg_gpy()
996 ret_val = igc_read_xmdio_reg(hw, (u16)offset, dev_addr, in igc_read_phy_reg_gpy()
1012 u8 dev_addr, u16 *data, bool read) in __igc_access_xmdio_reg() argument
1018 ret_val = hw->phy.ops.write_reg(hw, IGC_MMDAC, dev_addr); in __igc_access_xmdio_reg()
1027 dev_addr); in __igc_access_xmdio_reg()
1053 s32 igc_read_xmdio_reg(struct igc_hw *hw, u16 addr, u8 dev_addr, u16 *data) in igc_read_xmdio_reg() argument
[all …]
H A Digc_phy.h35 s32 igc_read_xmdio_reg(struct igc_hw *hw, u16 addr, u8 dev_addr,
37 s32 igc_write_xmdio_reg(struct igc_hw *hw, u16 addr, u8 dev_addr,
/freebsd/sys/dev/ixgbe/
H A Dixgbe_phy.h202 u8 dev_addr, u8 *data);
204 u8 dev_addr, u8 *data);
206 u8 dev_addr, u8 data);
208 u8 dev_addr, u8 data);
H A Dixgbe_phy.c2005 u8 dev_addr, u8 *data, bool lock) in ixgbe_read_i2c_byte_generic_int() argument
2018 if (ixgbe_is_sfp_probe(hw, byte_offset, dev_addr)) in ixgbe_read_i2c_byte_generic_int()
2028 status = ixgbe_clock_out_i2c_byte(hw, dev_addr); in ixgbe_read_i2c_byte_generic_int()
2047 status = ixgbe_clock_out_i2c_byte(hw, (dev_addr | 0x1)); in ixgbe_read_i2c_byte_generic_int()
2093 u8 dev_addr, u8 *data) in ixgbe_read_i2c_byte_generic() argument
2095 return ixgbe_read_i2c_byte_generic_int(hw, byte_offset, dev_addr, in ixgbe_read_i2c_byte_generic()
2110 u8 dev_addr, u8 *data) in ixgbe_read_i2c_byte_generic_unlocked() argument
2112 return ixgbe_read_i2c_byte_generic_int(hw, byte_offset, dev_addr, in ixgbe_read_i2c_byte_generic_unlocked()
2128 u8 dev_addr, u8 data, bool lock) in ixgbe_write_i2c_byte_generic_int() argument
2144 status = ixgbe_clock_out_i2c_byte(hw, dev_addr); in ixgbe_write_i2c_byte_generic_int()
[all …]
H A Dixgbe_api.h179 s32 ixgbe_read_i2c_byte(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr,
182 u8 dev_addr, u8 *data);
185 s32 ixgbe_write_i2c_byte(struct ixgbe_hw *hw, u8 byte_offset, u8 dev_addr,
189 u8 dev_addr, u8 data);
/freebsd/sys/dev/cxgb/common/
H A Dcxgb_ael1002.c127 static int ael_i2c_rd(struct cphy *phy, int dev_addr, int word_addr) in ael_i2c_rd() argument
133 (dev_addr << 8) | (1 << 8) | word_addr); in ael_i2c_rd()
151 phy->addr, dev_addr, word_addr); in ael_i2c_rd()
158 static int ael_i2c_wr(struct cphy *phy, int dev_addr, int word_addr, int data) in ael_i2c_wr() argument
168 (dev_addr << 8) | word_addr); in ael_i2c_wr()
181 phy->addr, dev_addr, word_addr, data); in ael_i2c_wr()
198 int v, dev_addr; in ael_laser_down() local
214 dev_addr = SFF_DEV_ADDR; in ael_laser_down()
216 dev_addr = MODULE_DEV_ADDR; in ael_laser_down()
220 v = ael_i2c_rd(phy, dev_addr, 110); in ael_laser_down()
[all …]
/freebsd/contrib/wpa/wpa_supplicant/
H A Dnotify.c653 const u8 *dev_addr, int new_device) in wpas_notify_p2p_device_found() argument
657 wpas_dbus_register_peer(wpa_s, dev_addr); in wpas_notify_p2p_device_found()
661 wpas_dbus_signal_peer_device_found(wpa_s, dev_addr); in wpas_notify_p2p_device_found()
666 const u8 *dev_addr) in wpas_notify_p2p_device_lost() argument
668 wpas_dbus_unregister_peer(wpa_s, dev_addr); in wpas_notify_p2p_device_lost()
671 wpas_dbus_signal_peer_device_lost(wpa_s, dev_addr); in wpas_notify_p2p_device_lost()
739 const u8 *dev_addr, int request, in wpas_notify_p2p_provision_discovery() argument
744 wpas_dbus_signal_p2p_provision_discovery(wpa_s, dev_addr, request, in wpas_notify_p2p_provision_discovery()
H A Dnotify.h102 const u8 *dev_addr, int new_device);
104 const u8 *dev_addr);
122 const u8 *dev_addr, int request,
/freebsd/sys/dev/e1000/
H A De1000_phy.h45 u8 dev_addr, u8 *data);
47 u8 dev_addr, u8 data);
124 s32 e1000_read_xmdio_reg(struct e1000_hw *hw, u16 addr, u8 dev_addr,
126 s32 e1000_write_xmdio_reg(struct e1000_hw *hw, u16 addr, u8 dev_addr,

1234