Searched refs:raw_cmd (Results 1 - 4 of 4) sorted by relevance

/linux-4.1.27/arch/arm/include/asm/
H A Dfloppy.h84 raw_cmd = &default_raw_cmd; fd_scandrives()
85 raw_cmd->flags = FD_RAW_SPIN | FD_RAW_NEED_SEEK; fd_scandrives()
86 raw_cmd->track = 0; fd_scandrives()
87 raw_cmd->rate = ?; fd_scandrives()
/linux-4.1.27/drivers/block/
H A Dfloppy.c317 #define COMMAND (raw_cmd->cmd[0])
318 #define DR_SELECT (raw_cmd->cmd[1])
319 #define TRACK (raw_cmd->cmd[2])
320 #define HEAD (raw_cmd->cmd[3])
321 #define SECTOR (raw_cmd->cmd[4])
322 #define SIZECODE (raw_cmd->cmd[5])
323 #define SECT_PER_TRACK (raw_cmd->cmd[6])
324 #define GAP (raw_cmd->cmd[7])
325 #define SIZECODE2 (raw_cmd->cmd[8])
329 #define F_SIZECODE (raw_cmd->cmd[2])
330 #define F_SECT_PER_TRACK (raw_cmd->cmd[3])
331 #define F_GAP (raw_cmd->cmd[4])
332 #define F_FILL (raw_cmd->cmd[5])
414 static struct floppy_raw_cmd *raw_cmd, default_raw_cmd; variable in typeref:struct:floppy_raw_cmd
891 raw_cmd = NULL; unlock_fdc()
1045 if (raw_cmd->length == 0) { setup_DMA()
1049 for (i = 0; i < raw_cmd->cmd_count; i++) setup_DMA()
1050 pr_cont("%x,", raw_cmd->cmd[i]); setup_DMA()
1056 if (((unsigned long)raw_cmd->kernel_data) % 512) { setup_DMA()
1057 pr_info("non aligned address: %p\n", raw_cmd->kernel_data); setup_DMA()
1065 if (fd_dma_setup(raw_cmd->kernel_data, raw_cmd->length, setup_DMA()
1066 (raw_cmd->flags & FD_RAW_READ) ? setup_DMA()
1076 fd_cacheflush(raw_cmd->kernel_data, raw_cmd->length); setup_DMA()
1077 fd_set_dma_mode((raw_cmd->flags & FD_RAW_READ) ? setup_DMA()
1079 fd_set_dma_addr(raw_cmd->kernel_data); setup_DMA()
1080 fd_set_dma_count(raw_cmd->length); setup_DMA()
1187 if (raw_cmd->rate & 0x40) { perpendicular_mode()
1188 switch (raw_cmd->rate & 3) { perpendicular_mode()
1274 switch (raw_cmd->rate & 0x03) { fdc_specify()
1340 if ((raw_cmd->rate & 3) == FDCS->dtr) fdc_dtr()
1344 fd_outb(raw_cmd->rate & 3, FD_DCR); fdc_dtr()
1351 FDCS->dtr = raw_cmd->rate & 3; fdc_dtr()
1459 flags = raw_cmd->flags; setup_rw_floppy()
1488 for (i = 0; i < raw_cmd->cmd_count; i++) setup_rw_floppy()
1489 r |= output_byte(raw_cmd->cmd[i]); setup_rw_floppy()
1565 disk_change(current_drive) && (raw_cmd->flags & FD_RAW_NEED_DISK)) { seek_floppy()
1579 (raw_cmd->flags & FD_RAW_NEED_DISK) && seek_floppy()
1580 (DRS->track <= NO_TRACK || DRS->track == raw_cmd->track)) { seek_floppy()
1583 if (raw_cmd->track) seek_floppy()
1584 track = raw_cmd->track - 1; seek_floppy()
1589 raw_cmd->flags |= FD_RAW_NEED_SEEK; seek_floppy()
1595 if (raw_cmd->track != DRS->track && seek_floppy()
1596 (raw_cmd->flags & FD_RAW_NEED_SEEK)) seek_floppy()
1597 track = raw_cmd->track; seek_floppy()
1862 if (!(raw_cmd->flags & FD_RAW_NO_MOTOR)) { start_motor()
1895 if (!(raw_cmd->flags & FD_RAW_NO_MOTOR) && floppy_ready()
1901 if ((raw_cmd->flags & FD_RAW_READ) || (raw_cmd->flags & FD_RAW_WRITE)) { floppy_ready()
1903 fd_chose_dma_mode(raw_cmd->kernel_data, raw_cmd->length); floppy_ready()
1908 if (raw_cmd->flags & (FD_RAW_NEED_SEEK | FD_RAW_NEED_DISK)) { floppy_ready()
1913 if ((raw_cmd->flags & FD_RAW_READ) || floppy_ready()
1914 (raw_cmd->flags & FD_RAW_WRITE)) floppy_ready()
2099 raw_cmd = &default_raw_cmd; setup_format_params()
2100 raw_cmd->track = track; setup_format_params()
2102 raw_cmd->flags = (FD_RAW_WRITE | FD_RAW_INTR | FD_RAW_SPIN | setup_format_params()
2104 raw_cmd->rate = _floppy->rate & 0x43; setup_format_params()
2105 raw_cmd->cmd_count = NR_F; setup_format_params()
2113 raw_cmd->kernel_data = floppy_track_buffer; setup_format_params()
2114 raw_cmd->length = 4 * F_SECT_PER_TRACK; setup_format_params()
2354 raw_cmd->kernel_data == bio_data(current_req->bio)) { rw_interrupt()
2358 buffer_track = raw_cmd->track; rw_interrupt()
2496 hard_sectors = raw_cmd->length >> (7 + SIZECODE); virtualdmabug_workaround()
2532 raw_cmd = &default_raw_cmd; make_raw_rw_request()
2533 raw_cmd->flags = FD_RAW_SPIN | FD_RAW_NEED_DISK | FD_RAW_NEED_SEEK; make_raw_rw_request()
2534 raw_cmd->cmd_count = NR_RW; make_raw_rw_request()
2536 raw_cmd->flags |= FD_RAW_READ; make_raw_rw_request()
2539 raw_cmd->flags |= FD_RAW_WRITE; make_raw_rw_request()
2576 raw_cmd->rate = _floppy->rate & 0x43; make_raw_rw_request()
2577 if ((_floppy->rate & FD_2M) && (TRACK || HEAD) && raw_cmd->rate == 2) make_raw_rw_request()
2578 raw_cmd->rate = 1; make_raw_rw_request()
2584 raw_cmd->track = TRACK << STRETCH(_floppy); make_raw_rw_request()
2622 if ((raw_cmd->track == buffer_track) && make_raw_rw_request()
2640 raw_cmd->flags &= ~FD_RAW_WRITE; make_raw_rw_request()
2641 raw_cmd->flags |= FD_RAW_READ; make_raw_rw_request()
2680 raw_cmd->kernel_data = bio_data(current_req->bio); make_raw_rw_request()
2681 raw_cmd->length = current_count_sectors << 9; make_raw_rw_request()
2682 if (raw_cmd->length == 0) { make_raw_rw_request()
2697 if (buffer_track != raw_cmd->track || /* bad track */ make_raw_rw_request()
2710 raw_cmd->kernel_data = floppy_track_buffer + make_raw_rw_request()
2720 buffer_track = raw_cmd->track; make_raw_rw_request()
2730 raw_cmd->length = in_sector_offset + current_count_sectors; make_raw_rw_request()
2731 raw_cmd->length = ((raw_cmd->length - 1) | (ssize - 1)) + 1; make_raw_rw_request()
2732 raw_cmd->length <<= 9; make_raw_rw_request()
2733 if ((raw_cmd->length < current_count_sectors << 9) || make_raw_rw_request()
2734 (raw_cmd->kernel_data != bio_data(current_req->bio) && make_raw_rw_request()
2736 (aligned_sector_t + (raw_cmd->length >> 9) > buffer_max || make_raw_rw_request()
2738 raw_cmd->length % (128 << SIZECODE) || make_raw_rw_request()
2739 raw_cmd->length <= 0 || current_count_sectors <= 0) { make_raw_rw_request()
2741 raw_cmd->length, current_count_sectors); make_raw_rw_request()
2742 if (raw_cmd->kernel_data != bio_data(current_req->bio)) make_raw_rw_request()
2744 (int)((raw_cmd->kernel_data - make_raw_rw_request()
2759 if (raw_cmd->kernel_data != bio_data(current_req->bio)) { make_raw_rw_request()
2760 if (raw_cmd->kernel_data < floppy_track_buffer || make_raw_rw_request()
2762 raw_cmd->length < 0 || make_raw_rw_request()
2763 raw_cmd->kernel_data + raw_cmd->length > make_raw_rw_request()
2767 fsector_t, buffer_min, raw_cmd->length >> 9); make_raw_rw_request()
2776 } else if (raw_cmd->length > blk_rq_bytes(current_req) || make_raw_rw_request()
2780 } else if (raw_cmd->length < current_count_sectors << 9) { make_raw_rw_request()
2782 pr_info("bytes=%ld\n", raw_cmd->length >> 9); make_raw_rw_request()
2785 if (raw_cmd->length == 0) { make_raw_rw_request()
2843 raw_cmd = &default_raw_cmd; redo_fd_request()
2844 raw_cmd->flags = 0; redo_fd_request()
2931 raw_cmd = &default_raw_cmd; poll_drive()
2932 raw_cmd->flags = flag; poll_drive()
2933 raw_cmd->track = 0; poll_drive()
2934 raw_cmd->cmd_count = 0; poll_drive()
3018 raw_cmd->flags |= FD_RAW_FAILURE; raw_cmd_done()
3019 raw_cmd->flags |= FD_RAW_HARDFAILURE; raw_cmd_done()
3021 raw_cmd->reply_count = inr; raw_cmd_done()
3022 if (raw_cmd->reply_count > MAX_REPLIES) raw_cmd_done()
3023 raw_cmd->reply_count = 0; raw_cmd_done()
3024 for (i = 0; i < raw_cmd->reply_count; i++) raw_cmd_done()
3025 raw_cmd->reply[i] = reply_buffer[i]; raw_cmd_done()
3027 if (raw_cmd->flags & (FD_RAW_READ | FD_RAW_WRITE)) { raw_cmd_done()
3030 raw_cmd->length = fd_get_dma_residue(); raw_cmd_done()
3034 if ((raw_cmd->flags & FD_RAW_SOFTFAILURE) && raw_cmd_done()
3035 (!raw_cmd->reply_count || (raw_cmd->reply[0] & 0xc0))) raw_cmd_done()
3036 raw_cmd->flags |= FD_RAW_FAILURE; raw_cmd_done()
3039 raw_cmd->flags |= FD_RAW_DISK_CHANGE; raw_cmd_done()
3041 raw_cmd->flags &= ~FD_RAW_DISK_CHANGE; raw_cmd_done()
3042 if (raw_cmd->flags & FD_RAW_NO_MOTOR_AFTER) raw_cmd_done()
3045 if (raw_cmd->next && raw_cmd_done()
3046 (!(raw_cmd->flags & FD_RAW_FAILURE) || raw_cmd_done()
3047 !(raw_cmd->flags & FD_RAW_STOP_IF_FAILURE)) && raw_cmd_done()
3048 ((raw_cmd->flags & FD_RAW_FAILURE) || raw_cmd_done()
3049 !(raw_cmd->flags & FD_RAW_STOP_IF_SUCCESS))) { raw_cmd_done()
3050 raw_cmd = raw_cmd->next; raw_cmd_done()
3204 raw_cmd = my_raw_cmd; raw_cmd_ioctl()
3207 debug_dcl(DP->flags, "calling disk change from raw_cmd ioctl\n"); raw_cmd_ioctl()
4183 raw_cmd = NULL; do_floppy_init()
/linux-4.1.27/drivers/irqchip/
H A Dirq-gic-v3-its.c167 u64 raw_cmd[4]; member in struct:its_cmd_block
178 cmd->raw_cmd[0] &= ~0xffUL; its_encode_cmd()
179 cmd->raw_cmd[0] |= cmd_nr; its_encode_cmd()
184 cmd->raw_cmd[0] &= BIT_ULL(32) - 1; its_encode_devid()
185 cmd->raw_cmd[0] |= ((u64)devid) << 32; its_encode_devid()
190 cmd->raw_cmd[1] &= ~0xffffffffUL; its_encode_event_id()
191 cmd->raw_cmd[1] |= id; its_encode_event_id()
196 cmd->raw_cmd[1] &= 0xffffffffUL; its_encode_phys_id()
197 cmd->raw_cmd[1] |= ((u64)phys_id) << 32; its_encode_phys_id()
202 cmd->raw_cmd[1] &= ~0x1fUL; its_encode_size()
203 cmd->raw_cmd[1] |= size & 0x1f; its_encode_size()
208 cmd->raw_cmd[2] &= ~0xffffffffffffUL; its_encode_itt()
209 cmd->raw_cmd[2] |= itt_addr & 0xffffffffff00UL; its_encode_itt()
214 cmd->raw_cmd[2] &= ~(1UL << 63); its_encode_valid()
215 cmd->raw_cmd[2] |= ((u64)!!valid) << 63; its_encode_valid()
220 cmd->raw_cmd[2] &= ~(0xffffffffUL << 16); its_encode_target()
221 cmd->raw_cmd[2] |= (target_addr & (0xffffffffUL << 16)); its_encode_target()
226 cmd->raw_cmd[2] &= ~0xffffUL; its_encode_collection()
227 cmd->raw_cmd[2] |= col; its_encode_collection()
233 cmd->raw_cmd[0] = cpu_to_le64(cmd->raw_cmd[0]); its_fixup_cmd()
234 cmd->raw_cmd[1] = cpu_to_le64(cmd->raw_cmd[1]); its_fixup_cmd()
235 cmd->raw_cmd[2] = cpu_to_le64(cmd->raw_cmd[2]); its_fixup_cmd()
236 cmd->raw_cmd[3] = cpu_to_le64(cmd->raw_cmd[3]); its_fixup_cmd()
/linux-4.1.27/drivers/ata/
H A Dpata_ixp4xx_cf.c104 unsigned long raw_cmd = raw_cs0; ixp4xx_setup_port() local
133 raw_cmd ^= 0x03; ixp4xx_setup_port()
137 ata_port_desc(ap, "cmd 0x%lx ctl 0x%lx", raw_cmd, raw_ctl); ixp4xx_setup_port()

Completed in 158 milliseconds