wep
} else if (uarms && wep->otyp == TWO_HANDED_SWORD)
else if (wep->owornmask & (W_ARMOR | W_RING))
setuwep(wep);
struct obj *wep;
if (!(wep = getobj("#-)", "wield"))) /* nothing */
else if (uwep == wep)
else if (wep == &zeroobj) {
const wchar_t *wep, *wsp;
wep = wsp = NULL;
wep = wp;
len = (int)(wep - wsp);
while (wsp < wep && cp < lim)
const struct we_mca_product *wep;
for(wep = we_mca_products; wep->we_name; wep++)
if (wep->we_id == id)
return (wep);
const struct we_mca_product *wep;
wep = we_mca_lookup(ma->ma_id);
if (wep == NULL) {
if (wep->we_flag & WD_8003) {
irq, wep->we_name);
wsc->sc_type = wep->we_type;
typestr = wep->we_typestr;
if (ops == wep->ops) {
wep->usecnt--;
struct wsemulentry *wep;
wep = malloc(sizeof (struct wsemulentry), M_DEVBUF, M_WAITOK);
wep->ops = ops;
wep->usecnt = 0;
LIST_INSERT_HEAD(&wsemuls, wep, next);
struct wsemulentry *wep;
LIST_FOREACH(wep, &wsemuls, next) {
if (ops == wep->ops) {
if (wep->usecnt)
LIST_REMOVE(wep, next);
struct wsemulentry *wep;
LIST_FOREACH(wep, &wsemuls, next)
if (!strcmp(name, wep->ops->name)) {
wep->usecnt++;
return wep->ops;
struct wsemulentry *wep;
LIST_FOREACH(wep, &wsemuls, next)
struct winentry *wep, int cnt, int chksum, int utf8);
struct winentry *wep, int chksum, int utf8);
int msdosfs_win2unixfn(struct winentry *wep, struct dirent *dp, int chksum,
msdosfs_unix2winfn(const u_char *un, int unlen, struct winentry *wep, int cnt,
memset(wep, 0xff, sizeof(*wep));
wep->weCnt = cnt;
wep->weAttributes = ATTR_WIN95;
wep->weReserved1 = 0;
wep->weChksum = chksum;
wep->weReserved2 = 0;
memcpy(wep->wePart1, p, sizeof(wep->wePart1));
p += sizeof(wep->wePart1) / sizeof(*p);
memcpy(wep->wePart2, p, sizeof(wep->wePart2));
p += sizeof(wep->wePart2) / sizeof(*p);
memcpy(wep->wePart3, p, sizeof(wep->wePart3));
wep->weCnt |= WIN_LAST;
msdosfs_winChkName(const u_char *un, int unlen, struct winentry *wep,
if (wep->weCnt & WIN_LAST)
chksum = wep->weChksum;
else if (chksum != wep->weChksum)
i = ((wep->weCnt & WIN_CNT) - 1) * WIN_CHARS;
if ((wep->weCnt & WIN_LAST) && (len - i > WIN_CHARS))
memcpy(p, wep->wePart1, sizeof(wep->wePart1));
p += sizeof(wep->wePart1) / sizeof(*p);
memcpy(p, wep->wePart2, sizeof(wep->wePart2));
p += sizeof(wep->wePart2) / sizeof(*p);
memcpy(p, wep->wePart3, sizeof(wep->wePart3));
msdosfs_win2unixfn(struct winentry *wep, struct dirent *dp, int chksum,
if ((wep->weCnt & WIN_CNT) > howmany(WIN_MAXLEN, WIN_CHARS)
|| !(wep->weCnt & WIN_CNT))
if (wep->weCnt & WIN_LAST) {
chksum = wep->weChksum;
} else if (chksum != wep->weChksum)
memcpy(p, wep->wePart1, sizeof(wep->wePart1));
p += sizeof(wep->wePart1) / sizeof(*p);
memcpy(p, wep->wePart2, sizeof(wep->wePart2));
p += sizeof(wep->wePart2) / sizeof(*p);
memcpy(p, wep->wePart3, sizeof(wep->wePart3));
memmove(mtod(m, u_int8_t *) + wep.ic_header, mtod(m, void *), hdrlen);
m_adj(m, wep.ic_header);
m_adj(m, -wep.ic_trailer);
off = hdrlen + wep.ic_header;
off = hdrlen + wep.ic_header;
data_len = m->m_pkthdr.len - (off + wep.ic_trailer);
ieee80211_crypto_register(&wep);