Lines Matching refs:cis
290 struct cis_cache_entry *cis; in read_cis_cache() local
308 list_for_each_entry(cis, &s->cis_cache, node) { in read_cis_cache()
309 if (cis->addr == addr && cis->len == len && cis->attr == attr) { in read_cis_cache()
310 memcpy(ptr, cis->cache, len); in read_cis_cache()
320 cis = kmalloc(sizeof(struct cis_cache_entry) + len, GFP_KERNEL); in read_cis_cache()
321 if (cis) { in read_cis_cache()
322 cis->addr = addr; in read_cis_cache()
323 cis->len = len; in read_cis_cache()
324 cis->attr = attr; in read_cis_cache()
325 memcpy(cis->cache, ptr, len); in read_cis_cache()
326 list_add(&cis->node, &s->cis_cache); in read_cis_cache()
337 struct cis_cache_entry *cis; in remove_cis_cache() local
340 list_for_each_entry(cis, &s->cis_cache, node) in remove_cis_cache()
341 if (cis->addr == addr && cis->len == len && cis->attr == attr) { in remove_cis_cache()
342 list_del(&cis->node); in remove_cis_cache()
343 kfree(cis); in remove_cis_cache()
359 struct cis_cache_entry *cis; in destroy_cis_cache() local
362 cis = list_entry(l, struct cis_cache_entry, node); in destroy_cis_cache()
363 list_del(&cis->node); in destroy_cis_cache()
364 kfree(cis); in destroy_cis_cache()
373 struct cis_cache_entry *cis; in verify_cis_cache() local
386 list_for_each_entry(cis, &s->cis_cache, node) { in verify_cis_cache()
387 int len = cis->len; in verify_cis_cache()
392 ret = pcmcia_read_cis_mem(s, cis->attr, cis->addr, len, buf); in verify_cis_cache()
393 if (ret || memcmp(buf, cis->cache, len) != 0) { in verify_cis_cache()