Lines Matching refs:settings
86 #define ZONE(sector, pd) (((sector) + (pd)->offset) & ~((pd)->settings.size - 1))
647 pkt = pkt_alloc_packet_data(pd->settings.size >> 2); in pkt_grow_pktlist()
960 if ((pd->settings.size << 9) / CD_FRAMESIZE in pkt_set_segment_merging()
967 } else if ((pd->settings.size << 9) / PAGE_SIZE in pkt_set_segment_merging()
1313 pd->current_sector = zone + pd->settings.size; in pkt_handle_queue()
1315 BUG_ON(pkt->frames != pd->settings.size >> 2); in pkt_handle_queue()
1659 printk(DRIVER_NAME": %s packets, ", pd->settings.fp ? "Fixed" : "Variable"); in pkt_print_settings()
1660 printk("%u blocks, ", pd->settings.size >> 2); in pkt_print_settings()
1661 printk("Mode-%c disc\n", pd->settings.block_mode == 8 ? '1' : '2'); in pkt_print_settings()
1819 wp->fp = pd->settings.fp; in pkt_set_write_settings()
1820 wp->track_mode = pd->settings.track_mode; in pkt_set_write_settings()
1821 wp->write_type = pd->settings.write_type; in pkt_set_write_settings()
1822 wp->data_block_type = pd->settings.block_mode; in pkt_set_write_settings()
1848 wp->packet_size = cpu_to_be32(pd->settings.size >> 2); in pkt_set_write_settings()
1980 pd->settings.size = be32_to_cpu(ti.fixed_packet_size) << 2; in pkt_probe_settings()
1981 if (pd->settings.size == 0) { in pkt_probe_settings()
1985 if (pd->settings.size > PACKET_MAX_SECTORS) { in pkt_probe_settings()
1989 pd->settings.fp = ti.fp; in pkt_probe_settings()
1990 pd->offset = (be32_to_cpu(ti.track_start) << 2) & (pd->settings.size - 1); in pkt_probe_settings()
2013 pd->settings.link_loss = 7; in pkt_probe_settings()
2014 pd->settings.write_type = 0; /* packet */ in pkt_probe_settings()
2015 pd->settings.track_mode = ti.track_mode; in pkt_probe_settings()
2022 pd->settings.block_mode = PACKET_BLOCK_MODE1; in pkt_probe_settings()
2025 pd->settings.block_mode = PACKET_BLOCK_MODE2; in pkt_probe_settings()
2318 blk_queue_max_hw_sectors(q, pd->settings.size); in pkt_open_dev()
2505 BUG_ON(last_zone != zone + pd->settings.size); in pkt_make_request()
2600 int remaining = (pd->settings.size << 9) - used; in pkt_merge_bvec()
2636 seq_printf(m, "\tpacket size:\t\t%dkB\n", pd->settings.size / 2); in pkt_seq_show()
2638 if (pd->settings.write_type == 0) in pkt_seq_show()
2644 seq_printf(m, "\tpacket type:\t\t%s\n", pd->settings.fp ? "Fixed" : "Variable"); in pkt_seq_show()
2645 seq_printf(m, "\tlink loss:\t\t%d\n", pd->settings.link_loss); in pkt_seq_show()
2647 seq_printf(m, "\ttrack mode:\t\t%d\n", pd->settings.track_mode); in pkt_seq_show()
2649 if (pd->settings.block_mode == PACKET_BLOCK_MODE1) in pkt_seq_show()
2651 else if (pd->settings.block_mode == PACKET_BLOCK_MODE2) in pkt_seq_show()