k 303 arch/i386/i386/powernow-k7.c int j, k, n;
k 306 arch/i386/i386/powernow-k7.c k = -1;
k 309 arch/i386/i386/powernow-k7.c k = n;
k 325 arch/i386/i386/powernow-k7.c return k;
k 354 arch/i386/i386/powernow-k8.c int j, k, n;
k 357 arch/i386/i386/powernow-k8.c k = -1;
k 361 arch/i386/i386/powernow-k8.c k = n;
k 378 arch/i386/i386/powernow-k8.c return k;
k 842 arch/i386/include/bus.h #define bus_dmamem_map(t, sg, n, s, k, f) \
k 843 arch/i386/include/bus.h (*(t)->_dmamem_map)((t), (sg), (n), (s), (k), (f))
k 844 arch/i386/include/bus.h #define bus_dmamem_unmap(t, k, s) \
k 845 arch/i386/include/bus.h (*(t)->_dmamem_unmap)((t), (k), (s))
k 217 arch/i386/isa/pccom.c int i, k;
k 223 arch/i386/isa/pccom.c k = bus_space_read_1(iot, ioh, com_iir);
k 224 arch/i386/isa/pccom.c if (k & 0x38) {
k 635 compat/ossaudio/ossaudio.c int k, mask = mi.un.s.member[j].mask;
k 637 compat/ossaudio/ossaudio.c for(k = 0; !(mask & 1); mask >>= 1, k++)
k 639 compat/ossaudio/ossaudio.c di->recmask |= 1 << di->rdevmap[k];
k 704 compat/ossaudio/ossaudio.c int k;
k 711 compat/ossaudio/ossaudio.c for(mask = mc.un.mask, k = 0; mask; mask >>= 1, k++)
k 713 compat/ossaudio/ossaudio.c idat |= 1 << di->rdevmap[k];
k 420 crypto/blf.c u_int16_t k;
k 442 crypto/blf.c for (k = 0; k < 256; k += 2) {
k 445 crypto/blf.c c->S[i][k] = data[0];
k 446 crypto/blf.c c->S[i][k + 1] = data[1];
k 458 crypto/blf.c u_int16_t k;
k 482 crypto/blf.c for (k = 0; k < 256; k += 2) {
k 487 crypto/blf.c c->S[i][k] = d[0];
k 488 crypto/blf.c c->S[i][k + 1] = d[1];
k 495 crypto/blf.c blf_key(blf_ctx *c, const u_int8_t *k, u_int16_t len)
k 501 crypto/blf.c Blowfish_expand0state(c, k, len);
k 85 crypto/cryptosoft.c int i, k, j, blks, ind, count, ivlen;
k 132 crypto/cryptosoft.c m = m_getptr(m, crd->crd_skip, &k);
k 143 crypto/cryptosoft.c if (m->m_len < k + blks && m->m_len != k) {
k 144 crypto/cryptosoft.c m_copydata(m, k, blks, blk);
k 185 crypto/cryptosoft.c m_copyback(m, k, blks, blk);
k 188 crypto/cryptosoft.c m = m_getptr(m, k + blks, &k);
k 200 crypto/cryptosoft.c if (k == m->m_len) {
k 204 crypto/cryptosoft.c k = 0;
k 216 crypto/cryptosoft.c idat = mtod(m, unsigned char *) + k;
k 218 crypto/cryptosoft.c while (m->m_len >= k + blks && i > 0) {
k 251 crypto/cryptosoft.c k += blks;
k 258 crypto/cryptosoft.c ind = cuio_getptr(uio, count, &k);
k 269 crypto/cryptosoft.c if (uio->uio_iov[ind].iov_len < k + blks &&
k 270 crypto/cryptosoft.c uio->uio_iov[ind].iov_len != k) {
k 271 crypto/cryptosoft.c cuio_copydata(uio, k, blks, blk);
k 312 crypto/cryptosoft.c cuio_copyback(uio, k, blks, blk);
k 317 crypto/cryptosoft.c ind = cuio_getptr(uio, count, &k);
k 333 crypto/cryptosoft.c idat = (char *)uio->uio_iov[ind].iov_base + k;
k 335 crypto/cryptosoft.c while (uio->uio_iov[ind].iov_len >= k + blks &&
k 370 crypto/cryptosoft.c k += blks;
k 538 crypto/cryptosoft.c int k;
k 657 crypto/cryptosoft.c for (k = 0; k < cri->cri_klen / 8; k++)
k 658 crypto/cryptosoft.c cri->cri_key[k] ^= HMAC_IPAD_VAL;
k 666 crypto/cryptosoft.c for (k = 0; k < cri->cri_klen / 8; k++)
k 667 crypto/cryptosoft.c cri->cri_key[k] ^= (HMAC_IPAD_VAL ^ HMAC_OPAD_VAL);
k 675 crypto/cryptosoft.c for (k = 0; k < cri->cri_klen / 8; k++)
k 676 crypto/cryptosoft.c cri->cri_key[k] ^= HMAC_OPAD_VAL;
k 157 crypto/set_key.c register u_int32_t *k;
k 169 crypto/set_key.c k=(u_int32_t *)schedule;
k 222 crypto/set_key.c *(k++)=((t<<16L)|(s&0x0000ffffL))&0xffffffffL;
k 226 crypto/set_key.c *(k++)=s&0xffffffffL;
k 67 crypto/skipjack.c int i, k;
k 69 crypto/skipjack.c for (k = 0; k < 10; k++) {
k 70 crypto/skipjack.c u_int8_t key_byte = key [k];
k 73 crypto/skipjack.c key_tables [k] = table;
k 82 crypto/skipjack.c oh = k##k0 [il] ^ ih; \
k 83 crypto/skipjack.c ol = k##k1 [oh] ^ il; \
k 84 crypto/skipjack.c oh = k##k2 [ol] ^ oh; \
k 85 crypto/skipjack.c ol = k##k3 [oh] ^ ol; \
k 97 crypto/skipjack.c ol = k##k3 [ih] ^ il; \
k 98 crypto/skipjack.c oh = k##k2 [ol] ^ ih; \
k 99 crypto/skipjack.c ol = k##k1 [oh] ^ ol; \
k 100 crypto/skipjack.c oh = k##k0 [ol] ^ oh; \
k 463 crypto/xform.c int k;
k 465 crypto/xform.c for (k = 0; k < 10; k++) {
k 466 crypto/xform.c if (((u_int8_t **)(*sched))[k]) {
k 467 crypto/xform.c bzero(((u_int8_t **)(*sched))[k], 0x100);
k 468 crypto/xform.c FREE(((u_int8_t **)(*sched))[k], M_CRYPTO_DATA);
k 145 dev/acpi/dsdt.c #define HASH_KEY(k) (((k) ^ HASH_OFF) % HASH_SIZE)
k 1383 dev/audio.c int k;
k 1390 dev/audio.c k = min(n, min(uio->uio_resid, sizeof zerobuf));
k 1391 dev/audio.c error = uiomove(zerobuf, k, uio);
k 1392 dev/audio.c n -= k;
k 126 dev/eisa/if_ep_eisa.c u_int16_t k;
k 146 dev/eisa/if_ep_eisa.c k = bus_space_read_2(iot, ioh, EP_W0_ADDRESS_CFG);
k 147 dev/eisa/if_ep_eisa.c k = (k & 0x1f) * 0x10 + 0x200;
k 500 dev/ic/acx.c struct ieee80211_key *k = &ic->ic_nw_keys[i];
k 502 dev/ic/acx.c if (k->k_len == 0)
k 506 dev/ic/acx.c error = sc->chip_set_wepkey(sc, k, i);
k 688 dev/ic/acx100.c acx100_set_wepkey(struct acx_softc *sc, struct ieee80211_key *k, int k_idx)
k 693 dev/ic/acx100.c if (k->k_len > ACX100_WEPKEY_LEN) {
k 700 dev/ic/acx100.c conf_wk.key_len = k->k_len;
k 702 dev/ic/acx100.c bcopy(k->k_key, conf_wk.key, k->k_len);
k 1149 dev/ic/ath.c struct ieee80211_key *k = &ic->ic_nw_keys[i];
k 1150 dev/ic/ath.c if (k->k_len == 0)
k 1163 dev/ic/ath.c if (k->k_cipher == IEEE80211_CIPHER_WEP40)
k 1165 dev/ic/ath.c else if (k->k_cipher == IEEE80211_CIPHER_WEP104)
k 1169 dev/ic/ath.c bcopy(k->k_key, hk.wk_key, hk.wk_len);
k 487 dev/ic/awi_wep.c int n, k;
k 493 dev/ic/awi_wep.c for (k = 0; k < 8; k++) {
k 1322 dev/ic/ciss.c int i, j, k = 0;
k 1329 dev/ic/ciss.c buf[k++] = drv;
k 1332 dev/ic/ciss.c if (!k)
k 1335 dev/ic/ciss.c ldp = malloc(sizeof(*ldp) + (k-1), M_DEVBUF, M_NOWAIT);
k 1340 dev/ic/ciss.c ldp->ndrives = k;
k 1341 dev/ic/ciss.c bcopy(buf, ldp->tgts, k);
k 179 dev/ic/com.c int i, k;
k 185 dev/ic/com.c k = bus_space_read_1(iot, ioh, com_iir);
k 186 dev/ic/com.c if (k & 0x38) {
k 298 dev/ic/malo.c int malo_cmd_set_wepkey(struct malo_softc *sc, struct ieee80211_key *k,
k 1949 dev/ic/malo.c struct ieee80211_key *k = &ic->ic_nw_keys[i];
k 1951 dev/ic/malo.c if (k->k_len == 0)
k 1954 dev/ic/malo.c if (malo_cmd_set_wepkey(sc, k, i))
k 2126 dev/ic/malo.c malo_cmd_set_wepkey(struct malo_softc *sc, struct ieee80211_key *k,
k 2142 dev/ic/malo.c body->len = k->k_len;
k 2143 dev/ic/malo.c memcpy(body->value, k->k_key, k->k_len);
k 470 dev/ic/midway.c STATIC INLINE int en_k2sz(k)
k 472 dev/ic/midway.c int k;
k 475 dev/ic/midway.c switch(k) {
k 2561 dev/ic/ncr5380sbc.c int i, j, k;
k 2571 dev/ic/ncr5380sbc.c k = -1; /* which is current? */
k 2576 dev/ic/ncr5380sbc.c k = i;
k 2581 dev/ic/ncr5380sbc.c db_printf("sc_rr=%d, current=%d\n", sc->sc_rr, k);
k 307 dev/ic/pdqreg.h #define PDQ_BITFIELD12(a, b, c, d, e, f, g, h, i, j, k, l) \
k 308 dev/ic/pdqreg.h l, k, j, i, h, g, f, e, d, c, b, a
k 314 dev/ic/pdqreg.h #define PDQ_BITFIELD12(a, b, c, d, e, f, g, h, i, j, k, l) \
k 315 dev/ic/pdqreg.h a, b, c, d, e, f, g, h, i, j, k, l
k 102 dev/ic/smc93cx6.c u_int k = 0;
k 110 dev/ic/smc93cx6.c for (k = start_addr; k < count + start_addr; k++) {
k 132 dev/ic/smc93cx6.c if ((k & (1 << i)) != 0)
k 138 dev/ic/smc93cx6.c if ((k & (1 << i)) != 0)
k 159 dev/ic/smc93cx6.c buf[k - start_addr] = v;
k 172 dev/ic/smc93cx6.c for (k = 0; k < count; k = k + 1) {
k 173 dev/ic/smc93cx6.c if (((k % 8) == 0) && (k != 0)) {
k 176 dev/ic/smc93cx6.c printf (" 0x%x", buf[k]);
k 516 dev/pci/agp.c off_t i, k;
k 604 dev/pci/agp.c for (k = 0; k < done + j; k += AGP_PAGE_SIZE)
k 605 dev/pci/agp.c AGP_UNBIND_PAGE(sc, offset + k);
k 390 dev/pci/azalia_codec.c int err, i, j, k;
k 464 dev/pci/azalia_codec.c for (j = 0, k = 0; j < w->nconnections && k < 32; j++) {
k 469 dev/pci/azalia_codec.c d->un.e.member[k].ord = j;
k 470 dev/pci/azalia_codec.c strlcpy(d->un.e.member[k].label.name,
k 473 dev/pci/azalia_codec.c k++;
k 475 dev/pci/azalia_codec.c d->un.e.num_mem = k;
k 851 dev/pci/cz.c int i, j, k, u = minor(dev) & ~CZTTYDIALOUT_MASK;
k 855 dev/pci/cz.c k = j;
k 869 dev/pci/cz.c return (&cz->cz_ports[u - k]);
k 1685 dev/pci/if_ipw.c struct ieee80211_key *k;
k 1822 dev/pci/if_ipw.c k = ic->ic_nw_keys;
k 1823 dev/pci/if_ipw.c for (i = 0; i < IEEE80211_WEP_NKID; i++, k++) {
k 1824 dev/pci/if_ipw.c if (k->k_len == 0)
k 1828 dev/pci/if_ipw.c wepkey.len = k->k_len;
k 1830 dev/pci/if_ipw.c bcopy(k->k_key, wepkey.key, k->k_len);
k 1807 dev/pci/if_iwi.c struct ieee80211_key *k;
k 1934 dev/pci/if_iwi.c k = ic->ic_nw_keys;
k 1935 dev/pci/if_iwi.c for (i = 0; i < IEEE80211_WEP_NKID; i++, k++) {
k 1938 dev/pci/if_iwi.c wepkey.len = k->k_len;
k 1940 dev/pci/if_iwi.c bcopy(k->k_key, wepkey.key, k->k_len);
k 224 dev/raidframe/rf_aselect.c int i, j, k;
k 378 dev/raidframe/rf_aselect.c for (k = 0; k < numBlocks; k++) {
k 384 dev/raidframe/rf_aselect.c + k;
k 387 dev/raidframe/rf_aselect.c (k * (1 <<
k 390 dev/raidframe/rf_aselect.c asmh_b[numStripeUnitsBailed][k]
k 395 dev/raidframe/rf_aselect.c asmh_b[numStripeUnitsBailed][k]->stripeMap;
k 404 dev/raidframe/rf_aselect.c &(blockFuncs[numStripeUnitsBailed][k]));
k 412 dev/raidframe/rf_aselect.c [numStripeUnitsBailed][k]
k 481 dev/raidframe/rf_aselect.c for (k = 0; k <
k 482 dev/raidframe/rf_aselect.c physPtr->numSector; k++) {
k 503 dev/raidframe/rf_aselect.c [stripeUnitNum][k];
k 506 dev/raidframe/rf_aselect.c [stripeUnitNum][k]
k 597 dev/raidframe/rf_aselect.c for (k = 0; k <
k 598 dev/raidframe/rf_aselect.c numBlocks; k++)
k 603 dev/raidframe/rf_aselect.c asmh_b[stripeUnitNum][k];
k 607 dev/raidframe/rf_aselect.c asmh_b[stripeUnitNum][k];
k 1190 dev/raidframe/rf_dagutils.c int k, v, ret, i;
k 1214 dev/raidframe/rf_dagutils.c k = (n - 1);
k 1227 dev/raidframe/rf_dagutils.c while (((v % lowprimes[i]) == 0) && ((k % lowprimes[i]) == 0)) {
k 1229 dev/raidframe/rf_dagutils.c k /= lowprimes[i];
k 1242 dev/raidframe/rf_dagutils.c printf("d=%d f=%d sd=%d v=%d k=%d ret=%d h=%d\n", d, f, sd, v, k, ret,
k 1246 dev/raidframe/rf_dagutils.c if (raidPtr->hist_diskreq[row][d] >= k) {
k 75 dev/raidframe/rf_decluster.c int b, v, k, r, lambda; /* block design params */
k 109 dev/raidframe/rf_decluster.c k = *((int *) cfgBuf);
k 136 dev/raidframe/rf_decluster.c info->NumParityReps = info->groupSize = k;
k 138 dev/raidframe/rf_decluster.c info->SUsPerTable = b * (k - 1) * layoutPtr->SUsPerPU;
k 139 dev/raidframe/rf_decluster.c info->SUsPerFullTable = k * info->SUsPerTable; /* rot k times */
k 140 dev/raidframe/rf_decluster.c info->PUsPerBlock = k - 1;
k 142 dev/raidframe/rf_decluster.c info->TableDepthInPUs = (b * k) / v;
k 144 dev/raidframe/rf_decluster.c info->FullTableDepthInPUs = info->TableDepthInPUs * k;
k 149 dev/raidframe/rf_decluster.c info->TablesPerSpareRegion = k * info->FullTablesPerSpareRegion;
k 214 dev/raidframe/rf_decluster.c (info->TablesPerSpareRegion / k) + i / k);
k 217 dev/raidframe/rf_decluster.c info->ExtraTablesPerDisk = i % k;
k 236 dev/raidframe/rf_decluster.c layoutPtr->SUsPerPU * (k - 1) / k;
k 260 dev/raidframe/rf_decluster.c info->TableDepthInPUs) % k;
k 285 dev/raidframe/rf_decluster.c info->LayoutTable = rf_make_2d_array(b, k, raidPtr->cleanupList);
k 288 dev/raidframe/rf_decluster.c info->OffsetTable = rf_make_2d_array(b, k, raidPtr->cleanupList);
k 301 dev/raidframe/rf_decluster.c for (j = 0; j < k; j++)
k 306 dev/raidframe/rf_decluster.c for (j = 0; j < k; j++) {
k 315 dev/raidframe/rf_decluster.c for (j = 0; j < k; j++) {
k 328 dev/raidframe/rf_decluster.c raidPtr->totalSectors = (k * complete_FT_count + raidPtr->numRow *
k 332 dev/raidframe/rf_decluster.c layoutPtr->sectorsPerStripeUnit) / (k - 1);
k 340 dev/raidframe/rf_decluster.c (k - 1) * layoutPtr->sectorsPerStripeUnit;
k 343 dev/raidframe/rf_decluster.c layoutPtr->numDataCol = k - 1;
k 57 dev/raidframe/rf_declusterPQ.c int b, v, k, r, lambda; /* block design params */
k 75 dev/raidframe/rf_declusterPQ.c k = *((int *) cfgBuf);
k 84 dev/raidframe/rf_declusterPQ.c if (k <= 2) {
k 86 dev/raidframe/rf_declusterPQ.c printf("RAIDFRAME: k=%d, minimum value 2\n", k);
k 114 dev/raidframe/rf_declusterPQ.c info->NumParityReps = info->groupSize = k;
k 115 dev/raidframe/rf_declusterPQ.c info->PUsPerBlock = k - 2; /* PQ */
k 118 dev/raidframe/rf_declusterPQ.c info->SUsPerFullTable = k * info->SUsPerTable; /* Rot k times. */
k 120 dev/raidframe/rf_declusterPQ.c info->TableDepthInPUs = (b * k) / v;
k 121 dev/raidframe/rf_declusterPQ.c info->FullTableDepthInPUs = info->TableDepthInPUs * k;
k 127 dev/raidframe/rf_declusterPQ.c info->TablesPerSpareRegion = k * info->FullTablesPerSpareRegion;
k 190 dev/raidframe/rf_declusterPQ.c (info->TablesPerSpareRegion / k) + i / k);
k 193 dev/raidframe/rf_declusterPQ.c info->ExtraTablesPerDisk = i % k;
k 212 dev/raidframe/rf_declusterPQ.c * layoutPtr->SUsPerPU * (k - 1) / k;
k 235 dev/raidframe/rf_declusterPQ.c layoutPtr->SUsPerPU) / info->TableDepthInPUs) % k;
k 260 dev/raidframe/rf_declusterPQ.c info->LayoutTable = rf_make_2d_array(b, k, raidPtr->cleanupList);
k 264 dev/raidframe/rf_declusterPQ.c info->OffsetTable = rf_make_2d_array(b, k, raidPtr->cleanupList);
k 278 dev/raidframe/rf_declusterPQ.c for (j = 0; j < k; j++)
k 283 dev/raidframe/rf_declusterPQ.c for (j = 0; j < k; j++) {
k 292 dev/raidframe/rf_declusterPQ.c for (j = 0; j < k; j++) {
k 305 dev/raidframe/rf_declusterPQ.c raidPtr->totalSectors = (k * complete_FT_count + raidPtr->numRow *
k 309 dev/raidframe/rf_declusterPQ.c layoutPtr->sectorsPerStripeUnit) / (k - 2);
k 316 dev/raidframe/rf_declusterPQ.c layoutPtr->dataSectorsPerStripe = (k - 2) *
k 320 dev/raidframe/rf_declusterPQ.c layoutPtr->numDataCol = k - 2;
k 121 dev/raidframe/rf_evenodd_dagfuncs.c int i, k, retcode = 0;
k 141 dev/raidframe/rf_evenodd_dagfuncs.c for (k = 0; k < EpdaIndex; k += 2) {
k 143 dev/raidframe/rf_evenodd_dagfuncs.c ((RF_PhysDiskAddr_t *) node->params[k].p)->numSector);
k 144 dev/raidframe/rf_evenodd_dagfuncs.c retcode = rf_bxor(node->params[k + EpdaIndex + 3].p,
k 145 dev/raidframe/rf_evenodd_dagfuncs.c node->params[k + 1].p, length, node->dagHdr->bp);
k 168 dev/raidframe/rf_evenodd_dagfuncs.c for (k = 0; k < EpdaIndex; k += 2) {
k 170 dev/raidframe/rf_evenodd_dagfuncs.c ((RF_PhysDiskAddr_t *) node->params[k].p)->numSector);
k 171 dev/raidframe/rf_evenodd_dagfuncs.c retcode = rf_bxor(node->params[k + EpdaIndex + 3].p,
k 172 dev/raidframe/rf_evenodd_dagfuncs.c node->params[k + 1].p, length, node->dagHdr->bp);
k 506 dev/raidframe/rf_evenodd_dagfuncs.c int i, j, k, f1, f2, row;
k 550 dev/raidframe/rf_evenodd_dagfuncs.c for (k = 0; k < longsPerEU; k++) {
k 552 dev/raidframe/rf_evenodd_dagfuncs.c ebuf_current = ((short *) ebuf) + i * shortsPerEU + k;
k 553 dev/raidframe/rf_evenodd_dagfuncs.c pbuf_current = ((short *) pbuf) + i * shortsPerEU + k;
k 555 dev/raidframe/rf_evenodd_dagfuncs.c ebuf_current = ((long *) ebuf) + i * longsPerEU + k;
k 556 dev/raidframe/rf_evenodd_dagfuncs.c pbuf_current = ((long *) pbuf) + i * longsPerEU + k;
k 558 dev/raidframe/rf_evenodd_dagfuncs.c P[k] ^= *ebuf_current;
k 559 dev/raidframe/rf_evenodd_dagfuncs.c P[k] ^= *pbuf_current;
k 607 dev/raidframe/rf_evenodd_dagfuncs.c for (k = 0; k < shortsPerEU; k++)
k 608 dev/raidframe/rf_evenodd_dagfuncs.c temp[k] ^= *(rrdbuf_current + k);
k 612 dev/raidframe/rf_evenodd_dagfuncs.c for (k = 0; k < longsPerEU; k++)
k 613 dev/raidframe/rf_evenodd_dagfuncs.c temp[k] ^= *(rrdbuf_current + k);
k 629 dev/raidframe/rf_evenodd_dagfuncs.c for (k = 0; k < shortsPerEU; k++)
k 630 dev/raidframe/rf_evenodd_dagfuncs.c temp[k] ^= *(ebuf_current + k);
k 633 dev/raidframe/rf_evenodd_dagfuncs.c for (k = 0; k < longsPerEU; k++)
k 634 dev/raidframe/rf_evenodd_dagfuncs.c temp[k] ^= *(ebuf_current + k);
k 643 dev/raidframe/rf_evenodd_dagfuncs.c for (k = 0; k < shortsPerEU; k++)
k 644 dev/raidframe/rf_evenodd_dagfuncs.c temp[k] ^= P[k];
k 646 dev/raidframe/rf_evenodd_dagfuncs.c for (k = 0; k < shortsPerEU; k++)
k 647 dev/raidframe/rf_evenodd_dagfuncs.c dest_larger_current[k] = temp[k];
k 649 dev/raidframe/rf_evenodd_dagfuncs.c for (k = 0; k < longsPerEU; k++)
k 650 dev/raidframe/rf_evenodd_dagfuncs.c temp[k] ^= P[k];
k 652 dev/raidframe/rf_evenodd_dagfuncs.c for (k = 0; k < longsPerEU; k++)
k 653 dev/raidframe/rf_evenodd_dagfuncs.c dest_larger_current[k] = temp[k];
k 667 dev/raidframe/rf_evenodd_dagfuncs.c for (k = 0; k < shortsPerEU; k++)
k 668 dev/raidframe/rf_evenodd_dagfuncs.c temp[k] ^= *(rrdbuf_current + k);
k 672 dev/raidframe/rf_evenodd_dagfuncs.c for (k = 0; k < longsPerEU; k++)
k 673 dev/raidframe/rf_evenodd_dagfuncs.c temp[k] ^= *(rrdbuf_current + k);
k 680 dev/raidframe/rf_evenodd_dagfuncs.c for (k = 0; k < shortsPerEU; k++)
k 681 dev/raidframe/rf_evenodd_dagfuncs.c temp[k] ^= *(pbuf_current + k);
k 682 dev/raidframe/rf_evenodd_dagfuncs.c for (k = 0; k < shortsPerEU; k++)
k 683 dev/raidframe/rf_evenodd_dagfuncs.c dest_smaller_current[k] = temp[k];
k 686 dev/raidframe/rf_evenodd_dagfuncs.c for (k = 0; k < longsPerEU; k++)
k 687 dev/raidframe/rf_evenodd_dagfuncs.c temp[k] ^= *(pbuf_current + k);
k 688 dev/raidframe/rf_evenodd_dagfuncs.c for (k = 0; k < longsPerEU; k++)
k 689 dev/raidframe/rf_evenodd_dagfuncs.c dest_smaller_current[k] = temp[k];
k 78 dev/raidframe/rf_geniq.c RF_ua32_t k;
k 101 dev/raidframe/rf_geniq.c k[0] = 1;
k 103 dev/raidframe/rf_geniq.c k[j + 1] = lsfr_shift(k[j], 5);
k 105 dev/raidframe/rf_geniq.c printf("%d, ", k[j]);
k 154 dev/raidframe/rf_geniq.c [a ^ k[i + 1]] ^
k 156 dev/raidframe/rf_geniq.c [b ^ k[j + 1]]) ==
k 113 dev/raidframe/rf_layout.c #define RF_NU(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p)
k 115 dev/raidframe/rf_layout.c #define RF_NU(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p) a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p
k 1326 dev/raidframe/rf_reconstruct.c u_int i, j, k, i_offset, j_offset;
k 1369 dev/raidframe/rf_reconstruct.c for (k = 0; k < stripeWidth; k++)
k 1370 dev/raidframe/rf_reconstruct.c if (diskids[k] == pcol)
k 1372 dev/raidframe/rf_reconstruct.c RF_ASSERT(k < stripeWidth);
k 1375 dev/raidframe/rf_reconstruct.c if (k < i)
k 1378 dev/raidframe/rf_reconstruct.c if (k == i) {
k 1385 dev/raidframe/rf_reconstruct.c if (k < j)
k 1388 dev/raidframe/rf_reconstruct.c if (k == j) {
k 49 dev/raidframe/rf_utils.c rf_make_2d_array(int b, int k, RF_AllocListElem_t *allocList)
k 56 dev/raidframe/rf_utils.c RF_MallocAndAdd(retval[i], k * sizeof(RF_RowCol_t),
k 58 dev/raidframe/rf_utils.c bzero((char *) retval[i], k * sizeof(RF_RowCol_t));
k 64 dev/raidframe/rf_utils.c rf_free_2d_array(RF_RowCol_t **a, int b, int k)
k 69 dev/raidframe/rf_utils.c RF_Free(a[i], k * sizeof(RF_RowCol_t));
k 378 dev/usb/hid.c hid_report_size(void *buf, int len, enum hid_kind k, u_int8_t id)
k 386 dev/usb/hid.c DPRINTFN(2,("hid_report_size: kind=%d id=%d\n", k, id));
k 387 dev/usb/hid.c for (d = hid_start_parse(buf, len, k); hid_get_item(d, &h); ) {
k 392 dev/usb/hid.c if (h.report_ID == id && h.kind == k) {
k 410 dev/usb/hid.c hid_locate(void *desc, int size, u_int32_t u, u_int8_t id, enum hid_kind k,
k 417 dev/usb/hid.c DPRINTFN(5,("hid_locate: enter usage=0x%x kind=%d id=%d\n", u, k, id));
k 418 dev/usb/hid.c for (d = hid_start_parse(desc, size, k); hid_get_item(d, &h); ) {
k 421 dev/usb/hid.c if (h.kind == k && !(h.flags & HIO_CONST) &&
k 92 dev/usb/hid.h int hid_report_size(void *buf, int len, enum hid_kind k, u_int8_t id);
k 1982 dev/usb/if_ral.c struct ieee80211_key *k = &ic->ic_nw_keys[i];
k 1984 dev/usb/if_ral.c k->k_key, IEEE80211_KEYBUF_SIZE);
k 1753 dev/usb/if_uath.c uath_set_key(struct uath_softc *sc, const struct ieee80211_key *k, int index)
k 1772 dev/usb/if_uath.c for (i = 0; i < k->k_len; i++)
k 1773 dev/usb/if_uath.c crypto.key[i] = k->k_key[i] ^ 0xaa;
k 1775 dev/usb/if_uath.c DPRINTF(("setting crypto key index=%d len=%d\n", index, k->k_len));
k 1786 dev/usb/if_uath.c const struct ieee80211_key *k = &ic->ic_nw_keys[i];
k 1788 dev/usb/if_uath.c if (k->k_len > 0 && (error = uath_set_key(sc, k, i)) != 0)
k 763 dev/usb/uaudio.c int c, chs, ichs, ochs, i, o, bno, p, mo, mc, k;
k 800 dev/usb/uaudio.c k = 0;
k 805 dev/usb/uaudio.c mix.wValue[k++] =
k 1920 dev/usb/uaudio.c int k;
k 1927 dev/usb/uaudio.c for (k = 0; k < tml->size; k++)
k 1929 dev/usb/uaudio.c (tml->terminals[k]));
k 692 dev/wscons/wsksymdef.h #define KS_GROUP(k) ((k) >= 0x0300 && (k) < 0x0370 ? KS_GROUP_Dead : \
k 693 dev/wscons/wsksymdef.h (((k) & 0xf000) == 0xe000 ? KS_GROUP_Keycode : \
k 694 dev/wscons/wsksymdef.h (((k) & 0xf800) == 0xf000 ? ((k) & 0xff00) : \
k 697 dev/wscons/wsksymdef.h #define KS_VALUE(k) (((k) & 0xf000) == 0xe000 ? ((k) & 0x0fff) : \
k 698 dev/wscons/wsksymdef.h (((k) & 0xf800) == 0xf000 ? ((k) & 0x00ff) : (k)))
k 663 kern/subr_userconf.c int j = 0, k;
k 668 kern/subr_userconf.c k = strlen(userconf_cmds[j]);
k 669 kern/subr_userconf.c while (k < 10) {
k 671 kern/subr_userconf.c k++;
k 1162 kern/subr_userconf.c int i = 0, j = 0, k, a;
k 1174 kern/subr_userconf.c k = -1;
k 1178 kern/subr_userconf.c k = j;
k 1186 kern/subr_userconf.c if (k == -1) {
k 1190 kern/subr_userconf.c switch (*userconf_cmds[k+1]) {
k 108 lib/libz/crc32.c int n, k;
k 128 lib/libz/crc32.c for (k = 0; k < 8; k++)
k 139 lib/libz/crc32.c for (k = 1; k < 4; k++) {
k 141 lib/libz/crc32.c crc_table[k][n] = c;
k 142 lib/libz/crc32.c crc_table[k + 4][n] = REV(c);
k 169 lib/libz/crc32.c for (k = 1; k < 8; k++) {
k 171 lib/libz/crc32.c write_table(out, crc_table[k]);
k 252 net/bpf.h u_int32_t k;
k 266 net/bpf.h #define BPF_STMT(code, k) { (u_int16_t)(code), 0, 0, k }
k 267 net/bpf.h #define BPF_JUMP(code, k, jt, jf) { (u_int16_t)(code), jt, jf, k }
k 70 net/bpf_filter.c #define MINDEX(len, m, k) \
k 73 net/bpf_filter.c while (k >= len) { \
k 74 net/bpf_filter.c k -= len; \
k 88 net/bpf_filter.c bpf_m_xword(m, k, err)
k 90 net/bpf_filter.c u_int32_t k;
k 98 net/bpf_filter.c MINDEX(len, m, k);
k 99 net/bpf_filter.c cp = mtod(m, u_char *) + k;
k 100 net/bpf_filter.c if (len >= k + 4) {
k 105 net/bpf_filter.c if (m0 == 0 || m0->m_len + len - k < 4)
k 109 net/bpf_filter.c switch (len - k) {
k 123 net/bpf_filter.c bpf_m_xhalf(m, k, err)
k 125 net/bpf_filter.c u_int32_t k;
k 133 net/bpf_filter.c MINDEX(len, m, k);
k 134 net/bpf_filter.c cp = mtod(m, u_char *) + k;
k 135 net/bpf_filter.c if (len >= k + 2) {
k 162 net/bpf_filter.c u_int32_t k;
k 182 net/bpf_filter.c return (u_int)pc->k;
k 188 net/bpf_filter.c k = pc->k;
k 189 net/bpf_filter.c if (k + sizeof(int32_t) > buflen) {
k 195 net/bpf_filter.c A = bpf_m_xword((struct mbuf *)p, k, &merr);
k 203 net/bpf_filter.c A = EXTRACT_LONG(&p[k]);
k 207 net/bpf_filter.c k = pc->k;
k 208 net/bpf_filter.c if (k + sizeof(int16_t) > buflen) {
k 214 net/bpf_filter.c A = bpf_m_xhalf((struct mbuf *)p, k, &merr);
k 222 net/bpf_filter.c A = EXTRACT_SHORT(&p[k]);
k 226 net/bpf_filter.c k = pc->k;
k 227 net/bpf_filter.c if (k >= buflen) {
k 235 net/bpf_filter.c MINDEX(len, m, k);
k 236 net/bpf_filter.c A = mtod(m, u_char *)[k];
k 242 net/bpf_filter.c A = p[k];
k 254 net/bpf_filter.c k = X + pc->k;
k 255 net/bpf_filter.c if (k + sizeof(int32_t) > buflen) {
k 261 net/bpf_filter.c A = bpf_m_xword((struct mbuf *)p, k, &merr);
k 269 net/bpf_filter.c A = EXTRACT_LONG(&p[k]);
k 273 net/bpf_filter.c k = X + pc->k;
k 274 net/bpf_filter.c if (k + sizeof(int16_t) > buflen) {
k 280 net/bpf_filter.c A = bpf_m_xhalf((struct mbuf *)p, k, &merr);
k 288 net/bpf_filter.c A = EXTRACT_SHORT(&p[k]);
k 292 net/bpf_filter.c k = X + pc->k;
k 293 net/bpf_filter.c if (k >= buflen) {
k 301 net/bpf_filter.c MINDEX(len, m, k);
k 302 net/bpf_filter.c A = mtod(m, u_char *)[k];
k 308 net/bpf_filter.c A = p[k];
k 312 net/bpf_filter.c k = pc->k;
k 313 net/bpf_filter.c if (k >= buflen) {
k 321 net/bpf_filter.c MINDEX(len, m, k);
k 322 net/bpf_filter.c X = (mtod(m, u_char *)[k] & 0xf) << 2;
k 328 net/bpf_filter.c X = (p[pc->k] & 0xf) << 2;
k 332 net/bpf_filter.c A = pc->k;
k 336 net/bpf_filter.c X = pc->k;
k 340 net/bpf_filter.c A = mem[pc->k];
k 344 net/bpf_filter.c X = mem[pc->k];
k 348 net/bpf_filter.c mem[pc->k] = A;
k 352 net/bpf_filter.c mem[pc->k] = X;
k 356 net/bpf_filter.c pc += pc->k;
k 360 net/bpf_filter.c pc += (A > pc->k) ? pc->jt : pc->jf;
k 364 net/bpf_filter.c pc += (A >= pc->k) ? pc->jt : pc->jf;
k 368 net/bpf_filter.c pc += (A == pc->k) ? pc->jt : pc->jf;
k 372 net/bpf_filter.c pc += (A & pc->k) ? pc->jt : pc->jf;
k 426 net/bpf_filter.c A += pc->k;
k 430 net/bpf_filter.c A -= pc->k;
k 434 net/bpf_filter.c A *= pc->k;
k 438 net/bpf_filter.c A /= pc->k;
k 442 net/bpf_filter.c A &= pc->k;
k 446 net/bpf_filter.c A |= pc->k;
k 450 net/bpf_filter.c A <<= pc->k;
k 454 net/bpf_filter.c A >>= pc->k;
k 512 net/bpf_filter.c if (p->k >= bpf_maxbufsize)
k 516 net/bpf_filter.c if (p->k >= BPF_MEMWORDS)
k 527 net/bpf_filter.c if (p->k >= BPF_MEMWORDS)
k 544 net/bpf_filter.c if (BPF_RVAL(p->code) == BPF_K && p->k == 0)
k 559 net/bpf_filter.c if (from + p->k < from || from + p->k >= len)
k 260 net/pf.c #define BOUND_IFACE(r, k) \
k 261 net/pf.c ((r)->rule_flag & PFRULE_IFBOUND) ? (k) : pfi_all
k 725 net/pf.c struct pf_src_node k;
k 728 net/pf.c k.af = af;
k 729 net/pf.c PF_ACPY(&k.addr, src, af);
k 732 net/pf.c k.rule.ptr = rule;
k 734 net/pf.c k.rule.ptr = NULL;
k 736 net/pf.c *sn = RB_FIND(pf_src_tree, &tree_src_tracking, &k);
k 2065 net/pf.c struct pf_src_node k;
k 2069 net/pf.c k.af = af;
k 2070 net/pf.c PF_ACPY(&k.addr, saddr, af);
k 2073 net/pf.c k.rule.ptr = r;
k 2075 net/pf.c k.rule.ptr = NULL;
k 2077 net/pf.c *sn = RB_FIND(pf_src_tree, &tree_src_tracking, &k);
k 2082 net/pf.c pf_print_host(&k.addr, 0, af);
k 610 net/pf_if.c int i, j, k, s;
k 623 net/pf_if.c for (k = 0; k < 2; k++) {
k 624 net/pf_if.c pfs->pcounters[i][j][k] =
k 625 net/pf_if.c p->pfik_packets[i][j][k];
k 627 net/pf_if.c p->pfik_bytes[i][j][k];
k 1584 net/zlib.c local void pqdownheap OF((deflate_state *s, ct_data *tree, int k));
k 1825 net/zlib.c local void pqdownheap(s, tree, k)
k 1828 net/zlib.c int k; /* node to move down */
k 1830 net/zlib.c int v = s->heap[k];
k 1831 net/zlib.c int j = k << 1; /* left son of k */
k 1842 net/zlib.c s->heap[k] = s->heap[j]; k = j;
k 1847 net/zlib.c s->heap[k] = v;
k 3110 net/zlib.c #define UPDBITS {s->bitb=b;s->bitk=k;}
k 3116 net/zlib.c #define LOADIN {p=z->next_in;n=z->avail_in;b=s->bitb;k=s->bitk;}
k 3119 net/zlib.c #define NEEDBITS(j) {while(k<(j)){NEEDBYTE;b|=((uLong)NEXTBYTE)<<k;k+=8;}}
k 3120 net/zlib.c #define DUMPBITS(j) {b>>=(j);k-=(j);}
k 3276 net/zlib.c uInt k; /* bits in bit buffer */
k 3298 net/zlib.c t = k & 7; /* go to byte boundary */
k 3346 net/zlib.c b = k = 0; /* dump bits */
k 3512 net/zlib.c if (k > 7) /* return unused byte, if any */
k 3514 net/zlib.c Assert(k < 16, "inflate_codes grabbed too many bytes")
k 3515 net/zlib.c k -= 8;
k 3563 net/zlib.c uInt k; /* bits in bit buffer */ /* NOT USED HERE */
k 3732 net/zlib.c int k; /* number of bits in current code */
k 3769 net/zlib.c k = j; /* minimum code length */
k 3816 net/zlib.c for (; k <= g; k++)
k 3818 net/zlib.c a = c[k];
k 3823 net/zlib.c while (k > w + l)
k 3830 net/zlib.c if ((f = 1 << (j = k - w)) > a + 1) /* try a k-w bit table */
k 3833 net/zlib.c xp = c + k;
k 3873 net/zlib.c r.bits = (Byte)(k - w);
k 3888 net/zlib.c f = 1 << (k - w);
k 3893 net/zlib.c for (j = 1 << (k - 1); i & j; j >>= 1)
k 4029 net/zlib.c int k; /* temporary variable */
k 4039 net/zlib.c for (k = 0; k < 144; k++)
k 4040 net/zlib.c c[k] = 8;
k 4041 net/zlib.c for (; k < 256; k++)
k 4042 net/zlib.c c[k] = 9;
k 4043 net/zlib.c for (; k < 280; k++)
k 4044 net/zlib.c c[k] = 7;
k 4045 net/zlib.c for (; k < 288; k++)
k 4046 net/zlib.c c[k] = 8;
k 4051 net/zlib.c for (k = 0; k < 30; k++)
k 4052 net/zlib.c c[k] = 5;
k 4170 net/zlib.c uInt k; /* bits in bit buffer */
k 4419 net/zlib.c #define GRABBITS(j) {while(k<(j)){b|=((uLong)NEXTBYTE)<<k;k+=8;}}
k 4420 net/zlib.c #define UNGRAB {n+=(c=k>>3);p-=c;k&=7;}
k 4436 net/zlib.c uInt k; /* bits in bit buffer */
k 4615 net/zlib.c int k;
k 4620 net/zlib.c k = len < NMAX ? len : NMAX;
k 4621 net/zlib.c len -= k;
k 4622 net/zlib.c while (k >= 16) {
k 4624 net/zlib.c k -= 16;
k 4626 net/zlib.c if (k != 0) do {
k 4628 net/zlib.c } while (--k);
k 131 net80211/ieee80211_crypto.c struct ieee80211_key *k;
k 137 net80211/ieee80211_crypto.c k = &ic->ic_nw_keys[ic->ic_wep_txkey];
k 139 net80211/ieee80211_crypto.c k = &ni->ni_pairwise_key;
k 141 net80211/ieee80211_crypto.c switch (k->k_cipher) {
k 147 net80211/ieee80211_crypto.c m0 = ieee80211_tkip_encrypt(ic, m0, k);
k 150 net80211/ieee80211_crypto.c m0 = ieee80211_ccmp_encrypt(ic, m0, k);
k 165 net80211/ieee80211_crypto.c struct ieee80211_key *k;
k 175 net80211/ieee80211_crypto.c k = &ic->ic_nw_keys[kid];
k 177 net80211/ieee80211_crypto.c k = &ni->ni_pairwise_key;
k 179 net80211/ieee80211_crypto.c switch (k->k_cipher) {
k 185 net80211/ieee80211_crypto.c m0 = ieee80211_tkip_decrypt(ic, m0, k);
k 188 net80211/ieee80211_crypto.c m0 = ieee80211_ccmp_decrypt(ic, m0, k);
k 203 net80211/ieee80211_crypto.c struct ieee80211_key *k)
k 216 net80211/ieee80211_crypto.c k->k_tsc++; /* increment the 48-bit PN */
k 217 net80211/ieee80211_crypto.c ivp[0] = k->k_tsc; /* PN0 */
k 218 net80211/ieee80211_crypto.c ivp[1] = k->k_tsc >> 8; /* PN1 */
k 220 net80211/ieee80211_crypto.c ivp[3] = k->k_id << 6 | IEEE80211_WEP_EXTIV; /* KeyID | ExtIV */
k 221 net80211/ieee80211_crypto.c ivp[4] = k->k_tsc >> 16; /* PN2 */
k 222 net80211/ieee80211_crypto.c ivp[5] = k->k_tsc >> 24; /* PN3 */
k 223 net80211/ieee80211_crypto.c ivp[6] = k->k_tsc >> 32; /* PN4 */
k 224 net80211/ieee80211_crypto.c ivp[7] = k->k_tsc >> 40; /* PN5 */
k 233 net80211/ieee80211_crypto.c struct ieee80211_key *k)
k 256 net80211/ieee80211_crypto.c if (pn <= k->k_rsc) {
k 271 net80211/ieee80211_crypto.c k->k_rsc = pn;
k 282 net80211/ieee80211_crypto.c struct ieee80211_key *k)
k 295 net80211/ieee80211_crypto.c ivp[0] = k->k_tsc >> 8; /* TSC1 */
k 298 net80211/ieee80211_crypto.c ivp[2] = k->k_tsc; /* TSC0 */
k 299 net80211/ieee80211_crypto.c ivp[3] = k->k_id << 6 | IEEE80211_WEP_EXTIV; /* KeyID | ExtIV */
k 300 net80211/ieee80211_crypto.c ivp[4] = k->k_tsc >> 16; /* TSC2 */
k 301 net80211/ieee80211_crypto.c ivp[5] = k->k_tsc >> 24; /* TSC3 */
k 302 net80211/ieee80211_crypto.c ivp[6] = k->k_tsc >> 32; /* TSC4 */
k 303 net80211/ieee80211_crypto.c ivp[7] = k->k_tsc >> 40; /* TSC5 */
k 307 net80211/ieee80211_crypto.c k->k_tsc++; /* increment the 48-bit TSC */
k 314 net80211/ieee80211_crypto.c struct ieee80211_key *k)
k 337 net80211/ieee80211_crypto.c if (tsc <= k->k_rsc) {
k 352 net80211/ieee80211_crypto.c k->k_rsc = tsc;
k 571 net80211/ieee80211_crypto.c int n, k;
k 575 net80211/ieee80211_crypto.c for (k = 0; k < 8; k++) {
k 2044 net80211/ieee80211_input.c struct ieee80211_key *k;
k 2123 net80211/ieee80211_input.c k = &ni->ni_pairwise_key;
k 2124 net80211/ieee80211_input.c memset(k, 0, sizeof(*k));
k 2125 net80211/ieee80211_input.c k->k_cipher = ni->ni_pairwise_cipher;
k 2126 net80211/ieee80211_input.c k->k_flags = IEEE80211_KEY_TX;
k 2127 net80211/ieee80211_input.c k->k_len = BE_READ_2(key->keylen);
k 2129 net80211/ieee80211_input.c if (k->k_len != ieee80211_cipher_keylen(k->k_cipher))
k 2131 net80211/ieee80211_input.c memcpy(k->k_key, ni->ni_ptk.tk, k->k_len);
k 2132 net80211/ieee80211_input.c if (ic->ic_set_key != NULL && (*ic->ic_set_key)(ic, ni, k) != 0)
k 2144 net80211/ieee80211_input.c k = &ic->ic_nw_keys[kid];
k 2145 net80211/ieee80211_input.c memset(k, 0, sizeof(*k));
k 2146 net80211/ieee80211_input.c k->k_id = kid;
k 2147 net80211/ieee80211_input.c k->k_cipher = ni->ni_group_cipher;
k 2148 net80211/ieee80211_input.c k->k_flags = IEEE80211_KEY_GROUP;
k 2150 net80211/ieee80211_input.c k->k_flags |= IEEE80211_KEY_TX;
k 2151 net80211/ieee80211_input.c k->k_len = gtk[1] - 6;
k 2153 net80211/ieee80211_input.c if (k->k_len != ieee80211_cipher_keylen(k->k_cipher))
k 2155 net80211/ieee80211_input.c memcpy(k->k_key, >k[8], k->k_len);
k 2156 net80211/ieee80211_input.c k->k_rsc = LE_READ_8(key->rsc);
k 2158 net80211/ieee80211_input.c (*ic->ic_set_key)(ic, ni, k) != 0)
k 2182 net80211/ieee80211_input.c struct ieee80211_key *k;
k 2194 net80211/ieee80211_input.c k = &ni->ni_pairwise_key;
k 2195 net80211/ieee80211_input.c memset(k, 0, sizeof(*k));
k 2196 net80211/ieee80211_input.c k->k_cipher = ni->ni_pairwise_cipher;
k 2197 net80211/ieee80211_input.c k->k_flags = IEEE80211_KEY_TX;
k 2198 net80211/ieee80211_input.c k->k_len = ieee80211_cipher_keylen(k->k_cipher);
k 2199 net80211/ieee80211_input.c memcpy(k->k_key, ni->ni_ptk.tk, k->k_len);
k 2200 net80211/ieee80211_input.c if (ic->ic_set_key != NULL && (*ic->ic_set_key)(ic, ni, k) != 0)
k 2226 net80211/ieee80211_input.c struct ieee80211_key *k;
k 2270 net80211/ieee80211_input.c k = &ic->ic_nw_keys[kid];
k 2271 net80211/ieee80211_input.c memset(k, 0, sizeof(*k));
k 2272 net80211/ieee80211_input.c k->k_id = kid;
k 2273 net80211/ieee80211_input.c k->k_cipher = ni->ni_group_cipher;
k 2274 net80211/ieee80211_input.c k->k_flags = IEEE80211_KEY_GROUP;
k 2276 net80211/ieee80211_input.c k->k_flags |= IEEE80211_KEY_TX;
k 2277 net80211/ieee80211_input.c k->k_len = gtk[1] - 6;
k 2279 net80211/ieee80211_input.c if (k->k_len != ieee80211_cipher_keylen(k->k_cipher))
k 2281 net80211/ieee80211_input.c memcpy(k->k_key, >k[8], k->k_len);
k 2282 net80211/ieee80211_input.c k->k_rsc = LE_READ_8(key->rsc);
k 2283 net80211/ieee80211_input.c if (ic->ic_set_key != NULL && (*ic->ic_set_key)(ic, ni, k) != 0)
k 2295 net80211/ieee80211_input.c ieee80211_send_group_msg2(ic, ni, k);
k 2302 net80211/ieee80211_input.c struct ieee80211_key *k;
k 2325 net80211/ieee80211_input.c k = &ic->ic_nw_keys[kid];
k 2326 net80211/ieee80211_input.c memset(k, 0, sizeof(*k));
k 2327 net80211/ieee80211_input.c k->k_id = kid;
k 2328 net80211/ieee80211_input.c k->k_cipher = ni->ni_group_cipher;
k 2329 net80211/ieee80211_input.c k->k_flags = IEEE80211_KEY_GROUP;
k 2331 net80211/ieee80211_input.c k->k_flags |= IEEE80211_KEY_TX;
k 2332 net80211/ieee80211_input.c k->k_len = BE_READ_2(key->keylen);
k 2334 net80211/ieee80211_input.c if (k->k_len != ieee80211_cipher_keylen(k->k_cipher))
k 2336 net80211/ieee80211_input.c memcpy(k->k_key, (u_int8_t *)&key[1], k->k_len);
k 2337 net80211/ieee80211_input.c k->k_rsc = LE_READ_8(key->rsc);
k 2338 net80211/ieee80211_input.c if (ic->ic_set_key != NULL && (*ic->ic_set_key)(ic, ni, k) != 0)
k 2350 net80211/ieee80211_input.c ieee80211_send_group_msg2(ic, ni, k);
k 239 net80211/ieee80211_ioctl.c struct ieee80211_key *k = &ic->ic_nw_keys[i];
k 243 net80211/ieee80211_ioctl.c k->k_cipher = IEEE80211_CIPHER_NONE;
k 245 net80211/ieee80211_ioctl.c k->k_cipher = IEEE80211_CIPHER_WEP40;
k 247 net80211/ieee80211_ioctl.c k->k_cipher = IEEE80211_CIPHER_WEP104;
k 248 net80211/ieee80211_ioctl.c k->k_len = keys[i].k_len;
k 249 net80211/ieee80211_ioctl.c memcpy(k->k_key, keys[i].k_key, sizeof(keys[i].k_key));
k 1569 net80211/ieee80211_output.c ieee80211_add_gtk_kde(u_int8_t *frm, const struct ieee80211_key *k)
k 1571 net80211/ieee80211_output.c KASSERT(k->k_flags & IEEE80211_KEY_GROUP);
k 1574 net80211/ieee80211_output.c *frm++ = 6 + k->k_len;
k 1577 net80211/ieee80211_output.c *frm = k->k_id & 3;
k 1578 net80211/ieee80211_output.c if (k->k_flags & IEEE80211_KEY_TX)
k 1582 net80211/ieee80211_output.c memcpy(frm, k->k_key, k->k_len);
k 1583 net80211/ieee80211_output.c return frm + k->k_len;
k 116 sys/systm.h #define SCARG(p, k) ((p)->k.be.datum) /* get arg from args pointer */
k 118 sys/systm.h #define SCARG(p, k) ((p)->k.le.datum) /* get arg from args pointer */