Home
last modified time | relevance | path

Searched refs:p_bd (Results 1 – 6 of 6) sorted by relevance

/Linux-v5.4/drivers/staging/exfat/
Dexfat_blkdev.c13 struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info); in bdev_open() local
15 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() local
30 p_bd->opened = false; in bdev_close()
[all …]
Dexfat_cache.c203 struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info); in __FAT_read() local
207 ((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 …]
Dexfat_core.c145 struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info); in clear_cluster() local
160 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() local
479 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() local
541 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() local
599 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 …]
Dexfat_super.c352 struct bd_info_t *p_bd = &(EXFAT_SB(sb)->bd_info); in ffsMountVol() local
366 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() local
762 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 …]
/Linux-v5.4/include/linux/fsl/bestcomm/
Dbestcomm.h200 bcom_retrieve_buffer(struct bcom_task *tsk, u32 *p_status, struct bcom_bd **p_bd) in bcom_retrieve_buffer() argument
207 if (p_bd) in bcom_retrieve_buffer()
208 *p_bd = bd; in bcom_retrieve_buffer()
/Linux-v5.4/drivers/net/ethernet/qlogic/qed/
Dqed_ll2.c1784 struct core_tx_bd **p_bd = &p_curp->bds_set[frag_idx].txq_bd; in qed_ll2_prepare_tx_packet_set_bd() local
1786 *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() local
1921 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()