/freebsd-10.0-release/sys/dev/cxgbe/iw_cxgbe/ |
H A D | mem.c | 234 static int finish_mem_reg(struct c4iw_mr *mhp, u32 stag) argument 238 mhp->attr.state = 1; 239 mhp->attr.stag = stag; 241 mhp->ibmr.rkey = mhp->ibmr.lkey = stag; 242 CTR3(KTR_IW_CXGBE, "%s mmid 0x%x mhp %p", __func__, mmid, mhp); 243 return insert_handle(mhp->rhp, &mhp->rhp->mmidr, mhp, mmi 246 register_mem(struct c4iw_dev *rhp, struct c4iw_pd *php, struct c4iw_mr *mhp, int shift) argument 267 reregister_mem(struct c4iw_dev *rhp, struct c4iw_pd *php, struct c4iw_mr *mhp, int shift, int npages) argument 293 alloc_pbl(struct c4iw_mr *mhp, int npages) argument 379 struct c4iw_mr mh, *mhp; local 449 struct c4iw_mr *mhp; local 521 struct c4iw_mr *mhp; local 571 struct c4iw_mr *mhp; local 669 struct c4iw_mw *mhp; local 703 struct c4iw_mw *mhp; local 721 struct c4iw_mr *mhp; local 803 struct c4iw_mr *mhp; local [all...] |
/freebsd-10.0-release/sys/dev/cxgb/ulp/iw_cxgb/ |
H A D | iw_cxgb_mem.c | 79 static int iwch_finish_mem_reg(struct iwch_mr *mhp, u32 stag) argument 83 mhp->attr.state = 1; 84 mhp->attr.stag = stag; 86 mhp->ibmr.rkey = mhp->ibmr.lkey = stag; 87 CTR3(KTR_IW_CXGB, "%s mmid 0x%x mhp %p", __func__, mmid, mhp); 88 return insert_handle(mhp->rhp, &mhp->rhp->mmidr, mhp, mmi 91 iwch_register_mem(struct iwch_dev *rhp, struct iwch_pd *php, struct iwch_mr *mhp, int shift) argument 115 iwch_reregister_mem(struct iwch_dev *rhp, struct iwch_pd *php, struct iwch_mr *mhp, int shift, int npages) argument 145 iwch_alloc_pbl(struct iwch_mr *mhp, int npages) argument 158 iwch_free_pbl(struct iwch_mr *mhp) argument 164 iwch_write_pbl(struct iwch_mr *mhp, __be64 *pages, int npages, int offset) argument [all...] |
H A D | iw_cxgb_provider.c | 375 struct iwch_mr *mhp; local 383 mhp = to_iwch_mr(ib_mr); 384 rhp = mhp->rhp; 385 mmid = mhp->attr.stag >> 8; 386 cxio_dereg_mem(&rhp->rdev, mhp->attr.stag, mhp->attr.pbl_size, 387 mhp->attr.pbl_addr); 388 iwch_free_pbl(mhp); 390 if (mhp->kva) 391 cxfree((void *) (unsigned long) mhp 411 struct iwch_mr *mhp; local 484 struct iwch_mr mh, *mhp; local 553 struct iwch_mr *mhp; local 679 struct iwch_mw *mhp; local 712 struct iwch_mw *mhp; local [all...] |
H A D | iw_cxgb_provider.h | 342 struct iwch_mr *mhp, 345 struct iwch_mr *mhp, 348 int iwch_alloc_pbl(struct iwch_mr *mhp, int npages); 349 void iwch_free_pbl(struct iwch_mr *mhp); 350 int iwch_write_pbl(struct iwch_mr *mhp, __be64 *pages, int npages, int offset);
|
H A D | iw_cxgb_qp.c | 203 struct iwch_mr *mhp; local 207 mhp = get_mhp(rhp, (sg_list[i].lkey) >> 8); 208 if (!mhp) { 212 if (!mhp->attr.state) { 216 if (mhp->attr.zbva) { 221 if (sg_list[i].addr < mhp->attr.va_fbo) { 231 mhp->attr.va_fbo + ((u64) mhp->attr.len)) { 235 offset = sg_list[i].addr - mhp->attr.va_fbo; 236 offset += mhp 518 struct iwch_mw *mhp; local [all...] |
/freebsd-10.0-release/lib/libipsec/ |
H A D | pfkey_dump.c | 211 caddr_t mhp[SADB_EXT_MAX + 1]; local 221 if (pfkey_align(m, mhp)) { 225 if (pfkey_check(mhp)) { 230 m_sa = (struct sadb_sa *)mhp[SADB_EXT_SA]; 231 m_sa2 = (struct sadb_x_sa2 *)mhp[SADB_X_EXT_SA2]; 232 m_lftc = (struct sadb_lifetime *)mhp[SADB_EXT_LIFETIME_CURRENT]; 233 m_lfth = (struct sadb_lifetime *)mhp[SADB_EXT_LIFETIME_HARD]; 234 m_lfts = (struct sadb_lifetime *)mhp[SADB_EXT_LIFETIME_SOFT]; 235 m_saddr = (struct sadb_address *)mhp[SADB_EXT_ADDRESS_SRC]; 236 m_daddr = (struct sadb_address *)mhp[SADB_EXT_ADDRESS_DS 371 caddr_t mhp[SADB_EXT_MAX + 1]; local [all...] |
H A D | test-policy.c | 324 caddr_t mhp[SADB_EXT_MAX + 1]; local 328 if (pfkey_align(msg, mhp) < 0) 331 return ((struct sadb_x_policy *)mhp[SADB_X_EXT_POLICY])->sadb_x_policy_id;
|
H A D | pfkey.c | 1706 * mhp: pointer to the buffer initialized like below: 1707 * caddr_t mhp[SADB_EXT_MAX + 1]; 1714 pfkey_align(msg, mhp) 1716 caddr_t *mhp; 1724 if (msg == NULL || mhp == NULL) { 1731 mhp[i] = NULL; 1733 mhp[0] = (caddr_t)msg; 1752 if (mhp[ext->sadb_ext_type] != NULL) { 1779 mhp[ext->sadb_ext_type] = (caddr_t)ext; 1789 mhp[ex [all...] |
/freebsd-10.0-release/sys/netipsec/ |
H A D | key.c | 1684 key_gather_mbuf(struct mbuf *m, const struct sadb_msghdr *mhp, argument 1687 key_gather_mbuf(m, mhp, ndeep, nitem, va_alist) 1689 const struct sadb_msghdr *mhp; 1702 IPSEC_ASSERT(mhp != NULL, ("null msghdr")); 1710 if (idx == SADB_EXT_RESERVED && mhp->msg == NULL) 1713 (mhp->ext[idx] == NULL || mhp->extlen[idx] == 0)) 1729 len = mhp->extlen[idx]; 1735 m_copydata(m, mhp->extoff[idx], mhp 5722 key_delete_all(struct socket *so, struct mbuf *m, const struct sadb_msghdr *mhp, u_int16_t proto) argument [all...] |
/freebsd-10.0-release/contrib/amd/conf/mtab/ |
H A D | mtab_bsd.c | 111 mntlist **mpp, *mhp; local 120 mpp = &mhp; 143 return mhp;
|
/freebsd-10.0-release/sbin/setkey/ |
H A D | setkey.c | 412 caddr_t mhp[SADB_EXT_MAX + 1]; local 414 pfkey_align(msg, mhp); 415 pfkey_check(mhp); 416 if ((sa = (struct sadb_sa *)mhp[SADB_EXT_SA]) != NULL) { 494 caddr_t mhp[SADB_EXT_MAX + 1]; local 503 pfkey_align(msg, mhp); 504 pfkey_check(mhp); 510 if ((sa = (struct sadb_sa *)mhp[SADB_EXT_SA]) != NULL) { 516 lts = (struct sadb_lifetime *)mhp[SADB_EXT_LIFETIME_SOFT]; 517 lth = (struct sadb_lifetime *)mhp[SADB_EXT_LIFETIME_HAR [all...] |
/freebsd-10.0-release/tools/regression/netinet6/inet6_rth/ |
H A D | inet6_rth-segments.c | 328 init_hdrs(struct msghdr *mhp, struct cmsghdr *cmhp, char *bufp, size_t bufsize) argument 330 if (mhp != NULL) 331 memset((void *)mhp, 0, sizeof(struct msghdr));
|