cdrw              511 drivers/block/pktcdvd.c 	BUG_ON(atomic_read(&pd->cdrw.pending_bios) <= 0);
cdrw              512 drivers/block/pktcdvd.c 	if (atomic_dec_and_test(&pd->cdrw.pending_bios)) {
cdrw              595 drivers/block/pktcdvd.c 	BUG_ON(!list_empty(&pd->cdrw.pkt_active_list));
cdrw              597 drivers/block/pktcdvd.c 	list_for_each_entry_safe(pkt, next, &pd->cdrw.pkt_free_list, list) {
cdrw              600 drivers/block/pktcdvd.c 	INIT_LIST_HEAD(&pd->cdrw.pkt_free_list);
cdrw              607 drivers/block/pktcdvd.c 	BUG_ON(!list_empty(&pd->cdrw.pkt_free_list));
cdrw              617 drivers/block/pktcdvd.c 		list_add(&pkt->list, &pd->cdrw.pkt_free_list);
cdrw              869 drivers/block/pktcdvd.c 				if (atomic_read(&pd->cdrw.pending_bios) > 0) {
cdrw              878 drivers/block/pktcdvd.c 				if (atomic_read(&pd->cdrw.pending_bios) > 0) {
cdrw              915 drivers/block/pktcdvd.c 		atomic_inc(&pd->cdrw.pending_bios);
cdrw             1064 drivers/block/pktcdvd.c 	list_for_each_entry(pkt, &pd->cdrw.pkt_free_list, list) {
cdrw             1065 drivers/block/pktcdvd.c 		if (pkt->sector == zone || pkt->list.next == &pd->cdrw.pkt_free_list) {
cdrw             1079 drivers/block/pktcdvd.c 		list_add(&pkt->list, &pd->cdrw.pkt_free_list);
cdrw             1081 drivers/block/pktcdvd.c 		list_add_tail(&pkt->list, &pd->cdrw.pkt_free_list);
cdrw             1173 drivers/block/pktcdvd.c 	if (list_empty(&pd->cdrw.pkt_free_list)) {
cdrw             1192 drivers/block/pktcdvd.c 		list_for_each_entry(p, &pd->cdrw.pkt_active_list, list) {
cdrw             1254 drivers/block/pktcdvd.c 	spin_lock(&pd->cdrw.active_list_lock);
cdrw             1255 drivers/block/pktcdvd.c 	list_add(&pkt->list, &pd->cdrw.pkt_active_list);
cdrw             1256 drivers/block/pktcdvd.c 	spin_unlock(&pd->cdrw.active_list_lock);
cdrw             1386 drivers/block/pktcdvd.c 	list_for_each_entry(pkt, &pd->cdrw.pkt_active_list, list) {
cdrw             1396 drivers/block/pktcdvd.c 	spin_lock(&pd->cdrw.active_list_lock);
cdrw             1397 drivers/block/pktcdvd.c 	list_for_each_entry_safe(pkt, next, &pd->cdrw.pkt_active_list, list) {
cdrw             1405 drivers/block/pktcdvd.c 	spin_unlock(&pd->cdrw.active_list_lock);
cdrw             1416 drivers/block/pktcdvd.c 	spin_lock(&pd->cdrw.active_list_lock);
cdrw             1417 drivers/block/pktcdvd.c 	list_for_each_entry(pkt, &pd->cdrw.pkt_active_list, list) {
cdrw             1420 drivers/block/pktcdvd.c 	spin_unlock(&pd->cdrw.active_list_lock);
cdrw             1451 drivers/block/pktcdvd.c 			list_for_each_entry(pkt, &pd->cdrw.pkt_active_list, list) {
cdrw             1470 drivers/block/pktcdvd.c 			list_for_each_entry(pkt, &pd->cdrw.pkt_active_list, list) {
cdrw             1482 drivers/block/pktcdvd.c 			list_for_each_entry(pkt, &pd->cdrw.pkt_active_list, list) {
cdrw             2361 drivers/block/pktcdvd.c 	spin_lock(&pd->cdrw.active_list_lock);
cdrw             2363 drivers/block/pktcdvd.c 	list_for_each_entry(pkt, &pd->cdrw.pkt_active_list, list) {
cdrw             2377 drivers/block/pktcdvd.c 				spin_unlock(&pd->cdrw.active_list_lock);
cdrw             2385 drivers/block/pktcdvd.c 	spin_unlock(&pd->cdrw.active_list_lock);
cdrw             2422 drivers/block/pktcdvd.c 	} else if (!list_empty(&pd->cdrw.pkt_free_list) && !blocked_bio) {
cdrw             2551 drivers/block/pktcdvd.c 	seq_printf(m, "\tbios pending:\t\t%d\n", atomic_read(&pd->cdrw.pending_bios));
cdrw             2609 drivers/block/pktcdvd.c 	atomic_set(&pd->cdrw.pending_bios, 0);
cdrw             2610 drivers/block/pktcdvd.c 	pd->cdrw.thread = kthread_run(kcdrwd, pd, "%s", pd->name);
cdrw             2611 drivers/block/pktcdvd.c 	if (IS_ERR(pd->cdrw.thread)) {
cdrw             2725 drivers/block/pktcdvd.c 	INIT_LIST_HEAD(&pd->cdrw.pkt_free_list);
cdrw             2726 drivers/block/pktcdvd.c 	INIT_LIST_HEAD(&pd->cdrw.pkt_active_list);
cdrw             2727 drivers/block/pktcdvd.c 	spin_lock_init(&pd->cdrw.active_list_lock);
cdrw             2813 drivers/block/pktcdvd.c 	if (!IS_ERR(pd->cdrw.thread))
cdrw             2814 drivers/block/pktcdvd.c 		kthread_stop(pd->cdrw.thread);
cdrw              180 include/linux/pktcdvd.h 	struct packet_cdrw	cdrw;