Lines Matching refs:attr
112 int read_cis_mem(socket_info_t *s, int attr, u_int addr, in read_cis_mem() argument
118 DEBUG(3, "cs: read_cis_mem(%d, %#x, %u)\n", attr, addr, len); in read_cis_mem()
125 if (attr & IS_INDIRECT) { in read_cis_mem()
129 if (attr & IS_ATTR) { addr *= 2; flags = ICTRL0_AUTOINC; } in read_cis_mem()
142 if (attr) { mem->flags |= MAP_ATTRIB; inc++; addr *= 2; } in read_cis_mem()
161 void write_cis_mem(socket_info_t *s, int attr, u_int addr, in write_cis_mem() argument
167 DEBUG(3, "cs: write_cis_mem(%d, %#x, %u)\n", attr, addr, len); in write_cis_mem()
171 if (attr & IS_INDIRECT) { in write_cis_mem()
175 if (attr & IS_ATTR) { addr *= 2; flags = ICTRL0_AUTOINC; } in write_cis_mem()
188 if (attr & IS_ATTR) { mem->flags |= MAP_ATTRIB; inc++; addr *= 2; } in write_cis_mem()
303 static void read_cis_cache(socket_info_t *s, int attr, u_int addr, in read_cis_cache() argument
320 (s->cis_table[i].attr == attr)) break; in read_cis_cache()
329 ret = read_cb_mem(s, 0, attr, addr, len, ptr); in read_cis_cache()
332 ret = read_cis_mem(s, attr, addr, len, ptr); in read_cis_cache()
338 s->cis_table[i].attr = attr; in read_cis_cache()
363 read_cb_mem(s, 0, s->cis_table[i].attr, s->cis_table[i].addr, in verify_cis_cache()
367 read_cis_mem(s, s->cis_table[i].attr, s->cis_table[i].addr, in verify_cis_cache()
503 int ofs, i, attr; in pcmcia_get_next_tuple() local
513 attr = SPACE(tuple->Flags); in pcmcia_get_next_tuple()
519 read_cis_cache(s, attr, ofs, 2, link); in pcmcia_get_next_tuple()
529 attr = SPACE(tuple->Flags); in pcmcia_get_next_tuple()
530 read_cis_cache(s, attr, ofs, 2, link); in pcmcia_get_next_tuple()
543 LINK_SPACE(tuple->Flags) = attr | IS_ATTR; in pcmcia_get_next_tuple()
544 read_cis_cache(s, attr, ofs+2, 4, &tuple->LinkOffset); in pcmcia_get_next_tuple()
548 LINK_SPACE(tuple->Flags) = attr & ~IS_ATTR; in pcmcia_get_next_tuple()
549 read_cis_cache(s, attr, ofs+2, 4, &tuple->LinkOffset); in pcmcia_get_next_tuple()
558 LINK_SPACE(tuple->Flags) = attr; in pcmcia_get_next_tuple()
561 read_cis_cache(s, attr, ofs+2, 1, &tmp); in pcmcia_get_next_tuple()
1146 bar->attr = *p; in parse_bar()