Searched refs:p_bd (Results 1 – 6 of 6) sorted by relevance
13 struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info); in bdev_open() local15 if (p_bd->opened) in bdev_open()18 p_bd->sector_size = bdev_logical_block_size(sb->s_bdev); in bdev_open()19 p_bd->sector_size_bits = ilog2(p_bd->sector_size); in bdev_open()20 p_bd->sector_size_mask = p_bd->sector_size - 1; in bdev_open()21 p_bd->num_sectors = i_size_read(sb->s_bdev->bd_inode) >> in bdev_open()22 p_bd->sector_size_bits; in bdev_open()23 p_bd->opened = true; in bdev_open()28 struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info); in bdev_close() local30 p_bd->opened = false; in bdev_close()[all …]
203 struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info); in __FAT_read() local207 ((loc + (loc >> 1)) >> p_bd->sector_size_bits); in __FAT_read()208 off = (loc + (loc >> 1)) & p_bd->sector_size_mask; in __FAT_read()210 if (off == (p_bd->sector_size - 1)) { in __FAT_read()244 (loc >> (p_bd->sector_size_bits - 1)); in __FAT_read()245 off = (loc << 1) & p_bd->sector_size_mask; in __FAT_read()265 (loc >> (p_bd->sector_size_bits - 2)); in __FAT_read()266 off = (loc << 2) & p_bd->sector_size_mask; in __FAT_read()286 (loc >> (p_bd->sector_size_bits - 2)); in __FAT_read()287 off = (loc << 2) & p_bd->sector_size_mask; in __FAT_read()[all …]
145 struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info); in clear_cluster() local160 memset((char *)tmp_bh->b_data, 0x0, p_bd->sector_size); in clear_cluster()471 struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info); in exfat_count_used_clusters() local479 if ((++map_b) >= p_bd->sector_size) { in exfat_count_used_clusters()515 struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info); in load_alloc_bitmap() local541 p_fs->map_sectors = ((map_size - 1) >> p_bd->sector_size_bits) + 1; in load_alloc_bitmap()597 struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info); in set_alloc_bitmap() local599 i = clu >> (p_bd->sector_size_bits + 3); in set_alloc_bitmap()600 b = clu & ((p_bd->sector_size << 3) - 1); in set_alloc_bitmap()619 struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info); in clr_alloc_bitmap() local[all …]
352 struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info); in ffsMountVol() local366 if (p_bd->sector_size < sb->s_blocksize) { in ffsMountVol()370 if (p_bd->sector_size > sb->s_blocksize) in ffsMountVol()371 sb_set_blocksize(sb, p_bd->sector_size); in ffsMountVol()696 struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info); in ffsReadFile() local762 sec_offset = offset >> p_bd->sector_size_bits; in ffsReadFile()765 offset &= p_bd->sector_size_mask; in ffsReadFile()769 oneblkread = (u64)(p_bd->sector_size - offset); in ffsReadFile()773 if ((offset == 0) && (oneblkread == p_bd->sector_size)) { in ffsReadFile()826 struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info); in ffsWriteFile() local[all …]
200 bcom_retrieve_buffer(struct bcom_task *tsk, u32 *p_status, struct bcom_bd **p_bd) in bcom_retrieve_buffer() argument207 if (p_bd) in bcom_retrieve_buffer()208 *p_bd = bd; in bcom_retrieve_buffer()
1784 struct core_tx_bd **p_bd = &p_curp->bds_set[frag_idx].txq_bd; in qed_ll2_prepare_tx_packet_set_bd() local1786 *p_bd = (struct core_tx_bd *)qed_chain_produce(p_tx_chain); in qed_ll2_prepare_tx_packet_set_bd()1787 (*p_bd)->bd_data.as_bitfield = 0; in qed_ll2_prepare_tx_packet_set_bd()1788 (*p_bd)->bitfield1 = 0; in qed_ll2_prepare_tx_packet_set_bd()1904 struct core_tx_bd *p_bd; in qed_ll2_set_fragment_of_tx_packet() local1921 p_bd = p_cur_send_packet->bds_set[cur_send_frag_num].txq_bd; in qed_ll2_set_fragment_of_tx_packet()1922 DMA_REGPAIR_LE(p_bd->addr, addr); in qed_ll2_set_fragment_of_tx_packet()1923 p_bd->nbytes = cpu_to_le16(nbytes); in qed_ll2_set_fragment_of_tx_packet()