Searched refs:log_num (Results 1 – 6 of 6) sorted by relevance
| /linux/drivers/mtd/parsers/ |
| H A D | sharpslpart.c | 169 int i, ret, log_num; in sharpsl_nand_init_ftl() local 204 log_num = sharpsl_nand_get_logical_num(oob); in sharpsl_nand_init_ftl() 207 if (log_num > 0 && log_num < ftl->logmax) { in sharpsl_nand_init_ftl() 208 if (ftl->log2phy[log_num] == UINT_MAX) in sharpsl_nand_init_ftl() 209 ftl->log2phy[log_num] = block_num; in sharpsl_nand_init_ftl() 233 unsigned int log_num, final_log_num; in sharpsl_nand_read_laddr() local 240 log_num = mtd_div_by_eb((u32)from, mtd); in sharpsl_nand_read_laddr() 243 if (len <= 0 || log_num >= ftl->logmax || final_log_num > log_num) in sharpsl_nand_read_laddr() 246 block_num = ftl->log2phy[log_num]; in sharpsl_nand_read_laddr()
|
| /linux/drivers/infiniband/hw/mthca/ |
| H A D | mthca_profile.c | 72 int log_num; in mthca_make_profile() member 114 profile[i].log_num = max(ffs(profile[i].num) - 1, 0); in mthca_make_profile() 157 i, profile[i].type, profile[i].log_num, in mthca_make_profile() 175 init_hca->log_num_qps = profile[i].log_num; in mthca_make_profile() 180 init_hca->log_num_eecs = profile[i].log_num; in mthca_make_profile() 185 init_hca->log_num_srqs = profile[i].log_num; in mthca_make_profile() 190 init_hca->log_num_cqs = profile[i].log_num; in mthca_make_profile() 201 init_hca->log_num_eqs = profile[i].log_num; in mthca_make_profile() 216 init_hca->log_mc_table_sz = profile[i].log_num; in mthca_make_profile() 217 init_hca->mc_hash_sz = 1 << (profile[i].log_num - 1); in mthca_make_profile() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | profile.c | 80 int log_num; in mlx4_make_profile() member 139 profile[i].log_num = ilog2(profile[i].num); in mlx4_make_profile() 173 profile[i].log_num, in mlx4_make_profile() 186 init_hca->log_num_qps = profile[i].log_num; in mlx4_make_profile() 207 init_hca->log_num_srqs = profile[i].log_num; in mlx4_make_profile() 212 init_hca->log_num_cqs = profile[i].log_num; in mlx4_make_profile() 232 init_hca->log_mpt_sz = profile[i].log_num; in mlx4_make_profile() 246 init_hca->log_mc_table_sz = profile[i].log_num; in mlx4_make_profile() 252 profile[i].log_num - 1; in mlx4_make_profile()
|
| /linux/drivers/vhost/ |
| H A D | scsi.c | 382 unsigned int log_num) in vhost_scsi_copy_cmd_log() argument 392 memcpy(cmd->tvc_log, log, sizeof(*cmd->tvc_log) * log_num); in vhost_scsi_copy_cmd_log() 393 cmd->tvc_log_num = log_num; in vhost_scsi_copy_cmd_log() 400 unsigned int log_num) in vhost_scsi_log_write() argument 405 if (likely(!log_num || !log)) in vhost_scsi_log_write() 413 vhost_log_write(vq, log, log_num, U64_MAX, NULL, 0); in vhost_scsi_log_write() 576 unsigned int log_num; in vhost_scsi_do_evt_work() local 595 log_num = 0; in vhost_scsi_do_evt_work() 599 vq_log, &log_num); in vhost_scsi_do_evt_work() 630 vhost_scsi_log_write(vq, vq_log, log_num); in vhost_scsi_do_evt_work() [all …]
|
| H A D | vhost.c | 2556 unsigned int log_num, u64 len, struct iovec *iov, int count) in vhost_log_write() argument 2573 for (i = 0; i < log_num; ++i) { in vhost_log_write() 2725 struct vhost_log *log, unsigned int *log_num, in get_indirect() argument 2797 log[*log_num].addr = vhost64_to_cpu(vq, desc.addr); in get_indirect() 2798 log[*log_num].len = vhost32_to_cpu(vq, desc.len); in get_indirect() 2799 ++*log_num; in get_indirect() 2841 struct vhost_log *log, unsigned int *log_num, in vhost_get_vq_desc_n() argument 2885 *log_num = 0; in vhost_get_vq_desc_n() 2910 log, log_num, &desc); in vhost_get_vq_desc_n() 2939 log[*log_num].addr = vhost64_to_cpu(vq, desc.addr); in vhost_get_vq_desc_n() [all …]
|
| H A D | net.c | 1068 unsigned *log_num, in get_rx_bufs() argument 1091 &in, log, log_num, &desc_num); in get_rx_bufs() 1107 nlogs += *log_num; in get_rx_bufs() 1108 log += *log_num; in get_rx_bufs() 1123 *log_num = nlogs; in get_rx_bufs()
|