search for: maxcnt

Displaying 8 results from an estimated 8 matches for "maxcnt".

2013 Sep 06
1
[PATCH 2/2 v2] com32/disk: Improve flow at disk_write_sectors and disk_read_sectors.
...c'd buffer. * * @v diskinfo The disk drive to read from @@ -173,11 +249,14 @@ void *disk_read_sectors(const struct disk_info *const diskinfo, uint64_t lba, uint8_t count) { com32sys_t inreg; - struct disk_ebios_dapa *dapa; void *buf; void *data = NULL; - uint32_t maxcnt; + uint32_t idx, maxcnt; uint32_t size = 65536; + static struct disk_ops read_ops[2] = { + { CHS_READ_CODE, &chs_disk_op }, + { EBIOS_READ_CODE, &ebios_disk_op } + }; maxcnt = (size - diskinfo->bps) / diskinfo->bps; if (!count || count > maxcnt || lba + co...
2012 Nov 25
1
Error : Error in if (antipodal(p1, p2))
...pal <- colorRampPalette(c("#545454", "white"))colors <- pal(100) map("world", col="#303030", fill=TRUE, bg="black", lwd=0.05, xlim=xlim, ylim=ylim) fsub <- flights[flights$airline == "AA",] fsub <- fsub[order(fsub$cnt),] maxcnt <- max(fsub$cnt) for (j in 1:length(fsub$airline)) { air1 <- airports[airports$iata == fsub[j,]$airport1,] air2 <- airports[airports$iata == fsub[j,]$airport2,] inter <- gcIntermediate(c(air1[1,]$long, air1[1,]$lat), c(air2[1,]$long, air2[1,]$lat), n=100, addStartEnd=TRUE) colindex...
2013 Feb 09
1
R maps Help
...artEnd) l3 <- rbind(l1, l2) l3 } else{ inter } } add_lines <- function(){ pal <- colorRampPalette(c("#00FF00", "#FF0000")) colors <- pal(100) fsub <- flights[flights$airline == "FSR",] fsub <- flights[order(flights$cnt),] maxcnt <- max(fsub$cnt) for (j in 1:length(fsub$airline)) { air1 <- airports[airports$iata == fsub[j,]$airport1,] air2 <- airports[airports$iata == fsub[j,]$airport2,] p1 <- c(air1[1,]$long, air1[1,]$lat) p2 <- c(air2[1,]$long, air2[1,]$lat) inter <- clean.Inter...
2013 Sep 06
1
[PATCH 2/2] com32/disk: Improve flow at disk_write_sectors and disk_read_sectors.
...loc'd buffer. * * @v diskinfo The disk drive to read from @@ -173,7 +254,6 @@ void *disk_read_sectors(const struct disk_info *const diskinfo, uint64_t lba, uint8_t count) { com32sys_t inreg; - struct disk_ebios_dapa *dapa; void *buf; void *data = NULL; uint32_t maxcnt; @@ -185,48 +265,11 @@ void *disk_read_sectors(const struct disk_info *const diskinfo, uint64_t lba, memset(&inreg, 0, sizeof inreg); - buf = lmalloc(count * diskinfo->bps); + inreg.eax.b[1] = diskinfo->ops.read_code; + buf = diskinfo->ops.disk_op(diskinfo, &inreg...
2015 Sep 24
0
[PATCH] com32/disk: add UEFI support
...tion from diskinfo. Read count sectors - * from drive, starting at lba. Return a new buffer, or NULL upon failure. - */ -void *disk_read_sectors(const struct disk_info *const diskinfo, uint64_t lba, - uint8_t count) -{ - com32sys_t inreg; - void *buf; - void *data = NULL; - uint32_t maxcnt; - uint32_t size = 65536; - - maxcnt = (size - diskinfo->bps) / diskinfo->bps; - if (!count || count > maxcnt || lba + count > diskinfo->lbacnt) - return NULL; - - memset(&inreg, 0, sizeof inreg); - - if (diskinfo->ebios) - buf = ebios_setup(diskinfo, &inreg...
2013 Sep 17
1
[PATCH 2/4 v3] com32/disk: Code cleanup at disk_write_sectors and disk_read_sectors.
...loc'd buffer. * * @v diskinfo The disk drive to read from @@ -172,7 +250,6 @@ void *disk_read_sectors(const struct disk_info *const diskinfo, uint64_t lba, uint8_t count) { com32sys_t inreg; - struct disk_ebios_dapa *dapa; void *buf; void *data = NULL; uint32_t maxcnt; @@ -184,48 +261,14 @@ void *disk_read_sectors(const struct disk_info *const diskinfo, uint64_t lba, memset(&inreg, 0, sizeof inreg); - buf = lmalloc(count * diskinfo->bps); + if (diskinfo->ebios) + buf = ebios_setup(diskinfo, &inreg, lba, count, EBIOS_READ_CODE); + el...
2012 Jun 26
2
[GIT PULL] elflink bug fixes
...*const diskinfo, uint64_t lba, uint8_t count) { com32sys_t inreg; - struct disk_ebios_dapa *dapa = __com32.cs_bounce; - void *buf = (char *)__com32.cs_bounce + diskinfo->bps; - void *data; + struct disk_ebios_dapa *dapa; + void *buf; + void *data = NULL; uint32_t maxcnt; + uint32_t size = 65536; - maxcnt = (__com32.cs_bounce_size - diskinfo->bps) / diskinfo->bps; + maxcnt = (size - diskinfo->bps) / diskinfo->bps; if (!count || count > maxcnt || lba + count > diskinfo->lbacnt) return NULL; memset(&inreg, 0, sizeof i...
2012 Aug 20
13
[PATCH 00/12] Multidisk support
Hello, the following patches should get multidisk access working. The syntax accepted is the following: (hdx,y)/path/to/file where x is the disk number and start at 0 and the y is the partition number starting at 1. So (hd0,1) is the first partition of the first disk. the other accepted syntax is using MBR's 32 bits disk signature so for example: (mbr:0x12345678,2)/foo/bar would address