Lines Matching refs:buf

27     uint32_t *buf = (uint32_t *)kzalloc(fsbi->bytes_per_sec, 0);  in fat32_alloc_clusters()  local
34 memset(buf, 0, fsbi->bytes_per_sec); in fat32_alloc_clusters()
35 …>fops->transfer(blk->bd_disk, AHCI_CMD_READ_DMA_EXT, fsbi->FAT1_base_sector + i, 1, (uint64_t)buf); in fat32_alloc_clusters()
42 if ((buf[j] & 0x0fffffff) == 0) in fat32_alloc_clusters()
54 kfree(buf); in fat32_alloc_clusters()
132 uint32_t buf[256]; in fat32_read_FAT_entry() local
133 memset(buf, 0, fsbi->bytes_per_sec); in fat32_read_FAT_entry()
137 … fsbi->FAT1_base_sector + (cluster / fat_ent_per_sec), 1, (uint64_t)&buf); in fat32_read_FAT_entry()
140 return buf[cluster & (fat_ent_per_sec - 1)] & 0x0fffffff; in fat32_read_FAT_entry()
157 uint32_t *buf = kzalloc(fsbi->bytes_per_sec, 0); in fat32_write_FAT_entry() local
160 … fsbi->FAT1_base_sector + (cluster / fat_ent_per_sec), 1, (uint64_t)buf); in fat32_write_FAT_entry()
162buf[cluster & (fat_ent_per_sec - 1)] = (buf[cluster & (fat_ent_per_sec - 1)] & 0xf0000000) | (valu… in fat32_write_FAT_entry()
165 … fsbi->FAT1_base_sector + (cluster / fat_ent_per_sec), 1, (uint64_t)buf); in fat32_write_FAT_entry()
167 … fsbi->FAT2_base_sector + (cluster / fat_ent_per_sec), 1, (uint64_t)buf); in fat32_write_FAT_entry()
169 kfree(buf); in fat32_write_FAT_entry()
193 uint8_t *buf = kzalloc(fsbi->bytes_per_clus, 0); in fat32_find_empty_dentry() local
210 …sk->fops->transfer(blk->bd_disk, AHCI_CMD_READ_DMA_EXT, sector, fsbi->sec_per_clus, (uint64_t)buf); in fat32_find_empty_dentry()
211 tmp_dEntry = (struct fat32_Directory_t *)buf; in fat32_find_empty_dentry()
235 *res_data_buf_base = (uint64_t)buf; in fat32_find_empty_dentry()