/openbmc/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()
|
/openbmc/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 …]
|
/openbmc/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()
|
/openbmc/qemu/hw/pci/ |
H A D | pcie_aer.c | 75 if (aer_log->log_num == aer_log->log_max) { in aer_log_add_err() 78 memcpy(&aer_log->log[aer_log->log_num], err, sizeof *err); in aer_log_add_err() 79 aer_log->log_num++; in aer_log_add_err() 85 assert(aer_log->log_num); in aer_log_del_err() 87 aer_log->log_num--; in aer_log_del_err() 89 aer_log->log_num * sizeof *err); in aer_log_del_err() 94 aer_log->log_num = 0; in aer_log_clear_all_err() 180 for (i = 0; i < aer_log->log_num; i++) { in pcie_aer_update_uncor_status() 481 if (!(errcap & PCI_ERR_CAP_MHRE) || !aer_log->log_num) { in pcie_aer_clear_error() 814 return s->log_num <= s->log_max; in pcie_aer_state_log_num_valid() [all …]
|
/openbmc/qemu/include/hw/pci/ |
H A D | pcie_aer.h | 49 uint16_t log_num; member
|
/openbmc/linux/drivers/vhost/ |
H A D | vhost.h | 207 struct vhost_log *log, unsigned int *log_num); 228 unsigned int log_num, u64 len,
|
H A D | vhost.c | 2294 unsigned int log_num, u64 len, struct iovec *iov, int count) in vhost_log_write() argument 2311 for (i = 0; i < log_num; ++i) { in vhost_log_write() 2464 struct vhost_log *log, unsigned int *log_num, in get_indirect() argument 2536 log[*log_num].addr = vhost64_to_cpu(vq, desc.addr); in get_indirect() 2537 log[*log_num].len = vhost32_to_cpu(vq, desc.len); in get_indirect() 2538 ++*log_num; in get_indirect() 2565 struct vhost_log *log, unsigned int *log_num) in vhost_get_vq_desc() argument 2624 *log_num = 0; in vhost_get_vq_desc() 2649 log, log_num, &desc); in vhost_get_vq_desc() 2677 log[*log_num].addr = vhost64_to_cpu(vq, desc.addr); in vhost_get_vq_desc() [all …]
|
H A D | net.c | 1051 unsigned *log_num, in get_rx_bufs() argument 1071 &in, log, log_num); in get_rx_bufs() 1087 nlogs += *log_num; in get_rx_bufs() 1088 log += *log_num; in get_rx_bufs() 1100 *log_num = nlogs; in get_rx_bufs()
|
/openbmc/linux/drivers/dma/ |
H A D | ste_dma40.c | 489 int log_num; member 635 return chan->log_num == D40_PHY_CHAN; in chan_is_physical() 1121 d40c->phy_chan->num, d40c->log_num, in __d40_execute_command_phy() 1227 d40c->log_num, status); in __d40_config_set_event() 1864 int log_num; in d40_allocate_channel() local 1873 log_num = 2 * dev_type; in d40_allocate_channel() 1878 log_num = 2 * dev_type + 1; in d40_allocate_channel() 1918 d40c->log_num = D40_PHY_CHAN; in d40_allocate_channel() 1971 d40c->log_num = log_num; in d40_allocate_channel() 1975 d40c->base->lookup_log_chans[d40c->log_num] = d40c; in d40_allocate_channel() [all …]
|