Lines Matching refs:av
92 ah->av = malloc(sizeof *ah->av);
93 if (!ah->av)
102 pp = ps / (sizeof *ah->av * 8 * sizeof (int));
106 if (page->use_cnt < ps / sizeof *ah->av)
124 ah->av = page->buf.buf +
125 (i * 8 * sizeof (int) + (j - 1)) * sizeof *ah->av;
135 memset(ah->av, 0, sizeof *ah->av);
137 ah->av->port_pd = htonl(pd->pdn | (attr->port_num << 24));
138 ah->av->g_slid = attr->src_path_bits;
139 ah->av->dlid = htons(attr->dlid);
140 ah->av->msg_sr = (3 << 4) | /* 2K message */
142 ah->av->sl_tclass_flowlabel = htonl(attr->sl << 28);
144 ah->av->g_slid |= 0x80;
146 ah->av->gid_index = (attr->port_num - 1) * 32 +
148 ah->av->hop_limit = attr->grh.hop_limit;
149 ah->av->sl_tclass_flowlabel |=
152 memcpy(ah->av->dgid, attr->grh.dgid.raw, 16);
155 ah->av->dgid[3] = htonl(2);
164 free(ah->av);
173 i = ((void *) ah->av - page->buf.buf) / sizeof *ah->av;