Home
last modified time | relevance | path

Searched refs:block_num (Results 1 – 24 of 24) sorted by relevance

/linux-6.1.9/drivers/crypto/hisilicon/
Dsgl.c42 u32 block_num; member
60 u32 sgl_size, block_size, sgl_num_per_block, block_num, remain_sgl; in hisi_acc_create_sgl_pool() local
79 block_num = count / sgl_num_per_block; in hisi_acc_create_sgl_pool()
82 if ((!remain_sgl && block_num > HISI_ACC_MEM_BLOCK_NR) || in hisi_acc_create_sgl_pool()
83 (remain_sgl > 0 && block_num > HISI_ACC_MEM_BLOCK_NR - 1)) in hisi_acc_create_sgl_pool()
91 for (i = 0; i < block_num; i++) { in hisi_acc_create_sgl_pool()
116 pool->block_num = remain_sgl ? block_num + 1 : block_num; in hisi_acc_create_sgl_pool()
151 for (i = 0; i < pool->block_num; i++) in hisi_acc_free_sgl_pool()
/linux-6.1.9/drivers/infiniband/hw/mlx4/
Dalias_GUID.c59 int block_num; member
66 u8 block_num; member
74 void mlx4_ib_update_cache_on_guid_change(struct mlx4_ib_dev *dev, int block_num, in mlx4_ib_update_cache_on_guid_change() argument
87 all_rec_per_port[block_num].guid_indexes); in mlx4_ib_update_cache_on_guid_change()
94 slave_id = (block_num * NUM_ALIAS_GUID_IN_REC) + i ; in mlx4_ib_update_cache_on_guid_change()
106 " was not updated\n", i, block_num); in mlx4_ib_update_cache_on_guid_change()
186 int block_num, u32 port_num, in mlx4_ib_notify_slaves_on_guid_change() argument
204 all_rec_per_port[block_num]; in mlx4_ib_notify_slaves_on_guid_change()
207 all_rec_per_port[block_num].guid_indexes); in mlx4_ib_notify_slaves_on_guid_change()
216 slave_id = (block_num * NUM_ALIAS_GUID_IN_REC) + i ; in mlx4_ib_notify_slaves_on_guid_change()
[all …]
Dmlx4_ib.h885 int block_num,
889 int block_num, u32 port_num,
/linux-6.1.9/drivers/misc/habanalabs/common/
Dsecurity.c79 int block_num; in hl_unsecure_register() local
81 block_num = hl_get_pb_block(hdev, mm_reg_addr + offset, pb_blocks, in hl_unsecure_register()
83 if (block_num < 0) in hl_unsecure_register()
84 return block_num; in hl_unsecure_register()
86 reg_offset = (mm_reg_addr + offset) - pb_blocks[block_num]; in hl_unsecure_register()
88 return hl_unset_pb_in_block(hdev, reg_offset, &sgs_array[block_num]); in hl_unsecure_register()
109 int i, block_num, rc = 0; in hl_unsecure_register_range() local
111 block_num = hl_get_pb_block(hdev, in hl_unsecure_register_range()
114 if (block_num < 0) in hl_unsecure_register_range()
115 return block_num; in hl_unsecure_register_range()
[all …]
/linux-6.1.9/drivers/mtd/parsers/
Dsharpslpart.c168 unsigned int block_num, phymax; in sharpsl_nand_init_ftl() local
194 for (block_num = 0; block_num < phymax; block_num++) { in sharpsl_nand_init_ftl()
195 block_adr = (loff_t)block_num * mtd->erasesize; in sharpsl_nand_init_ftl()
209 ftl->log2phy[log_num] = block_num; in sharpsl_nand_init_ftl()
234 unsigned int block_num; in sharpsl_nand_read_laddr() local
246 block_num = ftl->log2phy[log_num]; in sharpsl_nand_read_laddr()
247 block_adr = (loff_t)block_num * mtd->erasesize; in sharpsl_nand_read_laddr()
/linux-6.1.9/tools/testing/selftests/net/
Dpsock_tpacket.c523 static void __v3_test_block_len(struct block_desc *pbd, uint32_t bytes, int block_num) in __v3_test_block_len() argument
527 "len:%u != actual len:%u\n", block_num, in __v3_test_block_len()
533 static void __v3_test_block_header(struct block_desc *pbd, const int block_num) in __v3_test_block_header() argument
536 fprintf(stderr, "\nblock %u: not in TP_STATUS_USER\n", block_num); in __v3_test_block_header()
543 static void __v3_walk_block(struct block_desc *pbd, const int block_num) in __v3_walk_block() argument
549 __v3_test_block_header(pbd, block_num); in __v3_walk_block()
571 __v3_test_block_len(pbd, bytes_with_padding, block_num); in __v3_walk_block()
583 unsigned int block_num = 0; in walk_v3_rx() local
600 pbd = (struct block_desc *) ring->rd[block_num].iov_base; in walk_v3_rx()
605 __v3_walk_block(pbd, block_num); in walk_v3_rx()
[all …]
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/fw/api/
Dpaging.h25 __le32 block_num; member
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7915/
Deeprom.c112 u32 block_num, i; in mt7915_eeprom_load() local
120 block_num = DIV_ROUND_UP(eeprom_size, in mt7915_eeprom_load()
122 for (i = 0; i < block_num; i++) in mt7915_eeprom_load()
Dmt7915.h482 int mt7915_mcu_get_eeprom_free_block(struct mt7915_dev *dev, u8 *block_num);
Dmcu.c2759 int mt7915_mcu_get_eeprom_free_block(struct mt7915_dev *dev, u8 *block_num) in mt7915_mcu_get_eeprom_free_block() argument
2777 *block_num = *(u8 *)skb->data; in mt7915_mcu_get_eeprom_free_block()
/linux-6.1.9/fs/afs/
Ddir_edit.c175 union afs_xdr_dir_block *block, int block_num) in afs_edit_init_block() argument
182 if (block_num == 0) { in afs_edit_init_block()
192 if (block_num < AFS_DIR_BLOCKS_WITH_CTR) in afs_edit_init_block()
193 meta->meta.alloc_ctrs[block_num] = in afs_edit_init_block()
/linux-6.1.9/block/partitions/
Dsgi.c24 __be32 block_num; /* Logical block number */ member
/linux-6.1.9/drivers/mtd/
Dsm_ftl.c937 int block_num; in sm_cache_flush() local
947 block_num = zone->lba_to_phys_table[ftl->cache_block]; in sm_cache_flush()
955 zone_num, block_num, sector_num * SM_SECTOR_SIZE, in sm_cache_flush()
985 if (block_num > 0) in sm_cache_flush()
986 sm_erase_block(ftl, zone_num, block_num, 1); in sm_cache_flush()
/linux-6.1.9/drivers/gpu/drm/
Ddrm_edid.c1905 int block_num) in edid_block_status_print() argument
1911 pr_debug("EDID block %d read failed\n", block_num); in edid_block_status_print()
1914 pr_debug("EDID block %d pointer is NULL\n", block_num); in edid_block_status_print()
1917 pr_notice("EDID block %d is all zeroes\n", block_num); in edid_block_status_print()
1931 block_num, edid_block_tag(block), in edid_block_status_print()
1935 block_num, edid_block_tag(block), in edid_block_status_print()
1945 block_num, status); in edid_block_status_print()
1950 static void edid_block_dump(const char *level, const void *block, int block_num) in edid_block_dump() argument
1955 status = edid_block_check(block, block_num == 0); in edid_block_dump()
1957 sprintf(prefix, "\t[%02x] ZERO ", block_num); in edid_block_dump()
[all …]
/linux-6.1.9/drivers/crypto/cavium/nitrox/
Dnitrox_main.c72 u64 *ucode_data, int block_num) in write_to_ucd_unit() argument
95 nitrox_write_csr(ndev, offset, block_num); in write_to_ucd_unit()
/linux-6.1.9/fs/ecryptfs/
Dcrypto.c1757 size_t block_num = 0; in ecryptfs_encode_for_filename() local
1784 while (block_num < num_blocks) { in ecryptfs_encode_for_filename()
1788 if (block_num == (num_blocks - 1)) in ecryptfs_encode_for_filename()
1791 src_block = &src[block_num * 3]; in ecryptfs_encode_for_filename()
1802 block_num++; in ecryptfs_encode_for_filename()
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/fw/
Dpaging.c243 .block_num = cpu_to_le32(fwrt->num_of_paging_blk), in iwl_send_paging_cmd()
/linux-6.1.9/Documentation/networking/
Dpacket_mmap.rst917 static void walk_block(struct block_desc *pbd, const int block_num)
955 unsigned int block_num = 0, blocks = 64;
976 pbd = (struct block_desc *) ring.rd[block_num].iov_base;
983 walk_block(pbd, block_num);
985 block_num = (block_num + 1) % blocks;
/linux-6.1.9/drivers/input/mouse/
Dcyapa_gen3.c123 __be16 block_num; member
659 put_unaligned_be16(block, &write_block_cmd.block_num); in cyapa_gen3_write_fw_block()
/linux-6.1.9/include/rdma/
Dib_sa.h385 u8 block_num; member
/linux-6.1.9/include/linux/mlx5/
Ddevice.h766 __be32 block_num; member
/linux-6.1.9/drivers/infiniband/core/
Dsa_query.c675 { GUIDINFO_REC_FIELD(block_num),
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Dcmd.c1388 block->block_num = cpu_to_be32(n - i - 1); in mlx5_alloc_cmd_msg()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dreg.h3207 mlxsw_reg_perar_hw_regions_needed(unsigned int block_num) in mlxsw_reg_perar_hw_regions_needed() argument
3209 return DIV_ROUND_UP(block_num, 4); in mlxsw_reg_perar_hw_regions_needed()