/openbmc/linux/drivers/power/supply/ |
H A D | ab8500_bmdata.c | 152 bi = bm->bi; in ab8500_bm_of_probe() 177 if (bi->charge_term_current_ua) in ab8500_bm_of_probe() 181 if (!bi->maintenance_charge || !bi->maintenance_charge_size) { in ab8500_bm_of_probe() 204 !bi->resist_table) { in ab8500_bm_of_probe() 211 if (bi->bti_resistance_ohm < 0 || in ab8500_bm_of_probe() 213 bi->bti_resistance_ohm = 7000; in ab8500_bm_of_probe() 217 if (!bi->ocv_table[0]) { in ab8500_bm_of_probe() 219 bi->ocv_temp[0] = 25; in ab8500_bm_of_probe() 220 bi->ocv_table[0] = ocv_cap_tbl; in ab8500_bm_of_probe() 224 if (bi->temp_min == INT_MIN) in ab8500_bm_of_probe() [all …]
|
/openbmc/linux/drivers/staging/media/ipu3/ |
H A D | ipu3-css-fw.c | 19 bi->type, bi->blob.size, name); in imgu_css_fw_show_binary() 24 bi->info.isp.sp.id, bi->info.isp.sp.pipeline.mode, in imgu_css_fw_show_binary() 28 bi->info.isp.num_output_pins); in imgu_css_fw_show_binary() 31 bi->info.isp.sp.input.min_width, in imgu_css_fw_show_binary() 32 bi->info.isp.sp.input.min_height, in imgu_css_fw_show_binary() 33 bi->info.isp.sp.input.max_width, in imgu_css_fw_show_binary() 78 struct imgu_fw_info *bi = in imgu_css_fw_pipeline_params() local 160 if (bi->blob.size != bi->blob.text_size + bi->blob.icache_size in imgu_css_fw_init() 161 + bi->blob.data_size + bi->blob.padding_size) in imgu_css_fw_init() 163 if (bi->blob.offset + bi->blob.size > css->fw->size) in imgu_css_fw_init() [all …]
|
/openbmc/linux/crypto/ |
H A D | aes_generic.c | 1155 f_rn(bo, bi, 0, k); \ 1156 f_rn(bo, bi, 1, k); \ 1157 f_rn(bo, bi, 2, k); \ 1158 f_rn(bo, bi, 3, k); \ 1170 f_rl(bo, bi, 0, k); \ 1171 f_rl(bo, bi, 1, k); \ 1172 f_rl(bo, bi, 2, k); \ 1173 f_rl(bo, bi, 3, k); \ 1225 i_rn(bo, bi, 0, k); \ 1226 i_rn(bo, bi, 1, k); \ [all …]
|
/openbmc/linux/arch/powerpc/platforms/powermac/ |
H A D | bootx_init.c | 41 #define BOOT_INFO_IS_V2_COMPATIBLE(bi) ((bi)->version >= 2) argument 42 #define BOOT_INFO_IS_V4_COMPATIBLE(bi) ((bi)->version >= 4) argument 196 tmp = bi->dispDeviceRect[2] - bi->dispDeviceRect[0]; in bootx_add_display_props() 198 tmp = bi->dispDeviceRect[3] - bi->dispDeviceRect[1]; in bootx_add_display_props() 205 tmp += bi->dispDeviceRect[1] * bi->dispDeviceRowBytes; in bootx_add_display_props() 369 base = ((unsigned long)bi) + bi->deviceTreeOffset; in bootx_flatten_dt() 484 bi->logicalDisplayBase = bi->dispDeviceBase; in bootx_init() 496 bi->dispDeviceRect[3] - bi->dispDeviceRect[1], in bootx_init() 497 bi->dispDeviceDepth, bi->dispDeviceRowBytes, in bootx_init() 550 space = bi->deviceTreeOffset + bi->deviceTreeSize; in bootx_init() [all …]
|
/openbmc/u-boot/fs/ubifs/ |
H A D | budget.c | 102 liab = c->bi.idx_growth + c->bi.data_growth + c->bi.dd_growth; in get_liability() 177 idx_size = c->bi.old_idx_sz + c->bi.idx_growth + c->bi.uncommitted_idx; in ubifs_calc_min_idx_lebs() 346 outstanding = c->bi.data_growth + c->bi.dd_growth; in do_budget_space() 460 if (unlikely(c->bi.nospace) && (c->bi.nospace_rp || !can_use_rp(c))) { in ubifs_budget_space() 468 c->bi.dd_growth += dd_growth; in ubifs_budget_space() 502 c->bi.nospace = 1; in ubifs_budget_space() 504 c->bi.nospace_rp = 1; in ubifs_budget_space() 549 c->bi.nospace = c->bi.nospace_rp = 0; in ubifs_release_budget() 584 c->bi.data_growth -= c->bi.page_budget; in ubifs_convert_page_budget() 586 c->bi.dd_growth += c->bi.page_budget; in ubifs_convert_page_budget() [all …]
|
/openbmc/linux/fs/ubifs/ |
H A D | budget.c | 94 liab = c->bi.idx_growth + c->bi.data_growth + c->bi.dd_growth; in get_liability() 168 idx_size = c->bi.old_idx_sz + c->bi.idx_growth + c->bi.uncommitted_idx; in ubifs_calc_min_idx_lebs() 335 outstanding = c->bi.data_growth + c->bi.dd_growth; in do_budget_space() 449 if (unlikely(c->bi.nospace) && (c->bi.nospace_rp || !can_use_rp(c))) { in ubifs_budget_space() 457 c->bi.dd_growth += dd_growth; in ubifs_budget_space() 491 c->bi.nospace = 1; in ubifs_budget_space() 493 c->bi.nospace_rp = 1; in ubifs_budget_space() 538 c->bi.nospace = c->bi.nospace_rp = 0; in ubifs_release_budget() 573 c->bi.data_growth -= c->bi.page_budget; in ubifs_convert_page_budget() 575 c->bi.dd_growth += c->bi.page_budget; in ubifs_convert_page_budget() [all …]
|
/openbmc/linux/drivers/scsi/ |
H A D | sd_dif.c | 32 struct blk_integrity bi; in sd_dif_config_host() local 47 memset(&bi, 0, sizeof(bi)); in sd_dif_config_host() 52 bi.profile = &t10_pi_type3_ip; in sd_dif_config_host() 54 bi.profile = &t10_pi_type1_ip; in sd_dif_config_host() 56 bi.flags |= BLK_INTEGRITY_IP_CHECKSUM; in sd_dif_config_host() 59 bi.profile = &t10_pi_type3_crc; in sd_dif_config_host() 61 bi.profile = &t10_pi_type1_crc; in sd_dif_config_host() 66 bi.flags |= BLK_INTEGRITY_DEVICE_CAPABLE; in sd_dif_config_host() 74 bi.tag_size = sizeof(u16); in sd_dif_config_host() 79 bi.profile->name, bi.tag_size); in sd_dif_config_host() [all …]
|
/openbmc/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_binding.c | 412 memcpy(loc, bi, vmw_binding_infos[bi->bt].size); in vmw_binding_transfer() 574 container_of(bi, typeof(*binding), bi); in vmw_binding_scrub_shader() 606 container_of(bi, typeof(*binding), bi); in vmw_binding_scrub_render_target() 642 container_of(bi, typeof(*binding), bi); in vmw_binding_scrub_texture() 676 container_of(bi, typeof(*binding), bi); in vmw_binding_scrub_dx_shader() 705 container_of(bi, typeof(*binding), bi); in vmw_binding_scrub_cb() 798 ((!biv->bi.ctx || biv->bi.scrubbed) ? in vmw_collect_dirty_view_ids() 1014 container_of(bi, struct vmw_ctx_bindinfo_vb, bi); in vmw_collect_dirty_vbs() 1025 if (!biv->bi.ctx || biv->bi.scrubbed) { in vmw_collect_dirty_vbs() 1279 container_of(bi, typeof(*binding), bi); in vmw_binding_scrub_ib() [all …]
|
/openbmc/linux/tools/perf/util/ |
H A D | block-info.c | 48 if (bi) in block_info__get() 50 return bi; in block_info__get() 55 if (bi && refcount_dec_and_test(&bi->refcnt)) in block_info__put() 56 free(bi); in block_info__put() 61 struct block_info *bi = zalloc(sizeof(*bi)); in block_info__new() local 63 if (bi) in block_info__new() 65 return bi; in block_info__new() 146 cycles += bi->cycles_aggr / bi->num_aggr; in block_info__process_sym() 261 avg = bi->cycles_aggr / bi->num_aggr; in block_cycles_pct_entry() 305 bi->start, bi->end); in block_range_entry() [all …]
|
/openbmc/linux/block/ |
H A D | blk-integrity.c | 223 struct blk_integrity *bi = dev_to_bi(dev); in format_show() local 225 if (bi->profile && bi->profile->name) in format_show() 245 bi->interval_exp ? 1 << bi->interval_exp : 0); in protection_interval_bytes_show() 257 bi->flags |= BLK_INTEGRITY_VERIFY; in read_verify_store() 259 bi->flags &= ~BLK_INTEGRITY_VERIFY; in read_verify_store() 282 bi->flags |= BLK_INTEGRITY_GENERATE; in write_generate_store() 284 bi->flags &= ~BLK_INTEGRITY_GENERATE; in write_generate_store() 371 bi->tuple_size = template->tuple_size; in blk_integrity_register() 372 bi->tag_size = template->tag_size; in blk_integrity_register() 396 if (!bi->profile) in blk_integrity_unregister() [all …]
|
H A D | bio-integrity.c | 180 iter.interval = 1 << bi->interval_exp; in bio_integrity_process() 181 iter.tuple_size = bi->tuple_size; in bio_integrity_process() 222 if (!bi) in bio_integrity_prep() 236 if (!bi->profile->verify_fn || in bio_integrity_prep() 237 !(bi->flags & BLK_INTEGRITY_VERIFY)) in bio_integrity_prep() 240 if (!bi->profile->generate_fn || in bio_integrity_prep() 241 !(bi->flags & BLK_INTEGRITY_GENERATE)) in bio_integrity_prep() 254 len = bio_integrity_bytes(bi, bio_sectors(bio)); in bio_integrity_prep() 276 if (bi->flags & BLK_INTEGRITY_IP_CHECKSUM) in bio_integrity_prep() 301 bi->profile->generate_fn); in bio_integrity_prep() [all …]
|
/openbmc/linux/drivers/staging/media/atomisp/pci/ |
H A D | sh_css_firmware.c | 117 if (!bi) in sh_css_load_blob_info() 118 bi = (const struct ia_css_fw_info *)fw; in sh_css_load_blob_info() 120 name = fw + bi->blob.prog_name_offset; in sh_css_load_blob_info() 124 if (bi->blob.size != in sh_css_load_blob_info() 125 bi->blob.text_size + bi->blob.icache_size + in sh_css_load_blob_info() 126 bi->blob.data_size + bi->blob.padding_size) { in sh_css_load_blob_info() 135 bd->header = *bi; in sh_css_load_blob_info() 137 if (bi->type == ia_css_isp_firmware || bi->type == ia_css_sp_firmware) { in sh_css_load_blob_info() 148 if (bi->type == ia_css_isp_firmware) { in sh_css_load_blob_info() 294 if (bi->blob.offset + bi->blob.size > fw_size) in sh_css_load_firmware() [all …]
|
/openbmc/linux/drivers/net/hamradio/ |
H A D | hdlcdrv.c | 491 struct hdlcdrv_ioctl bi; in hdlcdrv_siocdevprivate() local 499 if (copy_from_user(&bi, data, sizeof(bi))) in hdlcdrv_siocdevprivate() 502 switch (bi.cmd) { in hdlcdrv_siocdevprivate() 529 bi.data.mp.irq = dev->irq; in hdlcdrv_siocdevprivate() 530 bi.data.mp.dma = dev->dma; in hdlcdrv_siocdevprivate() 541 dev->irq = bi.data.mp.irq; in hdlcdrv_siocdevprivate() 542 dev->dma = bi.data.mp.dma; in hdlcdrv_siocdevprivate() 581 bi.data.bits = in hdlcdrv_siocdevprivate() 594 bi.data.bits = in hdlcdrv_siocdevprivate() 607 bi.data.drivername[0] = '\0'; in hdlcdrv_siocdevprivate() [all …]
|
/openbmc/linux/fs/bfs/ |
H A D | file.c | 71 struct bfs_inode_info *bi = BFS_I(inode); in bfs_get_block() local 73 phys = bi->i_sblock + block; in bfs_get_block() 75 if (phys <= bi->i_eblock) { in bfs_get_block() 87 if (bi->i_sblock && (phys <= bi->i_eblock)) { in bfs_get_block() 106 if (bi->i_eblock == info->si_lf_eblk) { in bfs_get_block() 110 info->si_freeb -= phys - bi->i_eblock; in bfs_get_block() 124 if (bi->i_sblock) { in bfs_get_block() 126 bi->i_eblock, phys); in bfs_get_block() 137 bi->i_sblock = phys; in bfs_get_block() 139 info->si_lf_eblk = bi->i_eblock = phys; in bfs_get_block() [all …]
|
/openbmc/linux/fs/reiserfs/ |
H A D | do_balan.c | 22 bi->tb = tb; in buffer_info_init_left() 23 bi->bi_bh = tb->L[0]; in buffer_info_init_left() 31 bi->tb = tb; in buffer_info_init_right() 40 bi->tb = tb; in buffer_info_init_tbS0() 50 bi->tb = tb; in buffer_info_init_bh() 51 bi->bi_bh = bh; in buffer_info_init_bh() 52 bi->bi_parent = NULL; in buffer_info_init_bh() 53 bi->bi_position = 0; in buffer_info_init_bh() 81 struct buffer_info bi; in balance_leaf_when_delete_del() local 115 struct buffer_info bi; in balance_leaf_when_delete_cut() local [all …]
|
/openbmc/linux/fs/gfs2/ |
H A D | rgrp.c | 102 end = bi->bi_bh->b_data + bi->bi_offset + buflen; in gfs2_setbit() 117 bi->bi_offset, bi->bi_bytes, in gfs2_setbit() 318 bi++; in gfs2_rbm_add() 828 bi->bi_start, bi->bi_bytes, bi->bi_offset); in compute_bitstructs() 1154 for (i = 0, bi = rgd->rd_bits; i < length; i++, bi++) { in count_unlinked() 1156 buffer = bi->bi_bh->b_data + bi->bi_offset; in count_unlinked() 1323 const u8 *clone = bi->bi_clone ? bi->bi_clone : bi->bi_bh->b_data; in gfs2_rgrp_send_discards() 1768 buffer = bi->bi_clone + bi->bi_offset; in gfs2_rbm_find() 2275 bi->bi_clone = kmalloc(bi->bi_bh->b_size, in rgblk_free() 2277 memcpy(bi->bi_clone + bi->bi_offset, in rgblk_free() [all …]
|
/openbmc/u-boot/fs/yaffs2/ |
H A D | yaffs_verify.c | 61 n, bi->block_state); in yaffs_verify_blk() 63 switch (bi->block_state) { in yaffs_verify_blk() 74 actually_used = bi->pages_in_use - bi->soft_del_pages; in yaffs_verify_blk() 76 if (bi->pages_in_use < 0 || in yaffs_verify_blk() 78 bi->soft_del_pages < 0 || in yaffs_verify_blk() 83 n, bi->pages_in_use, bi->soft_del_pages); in yaffs_verify_blk() 87 if (in_use != bi->pages_in_use) in yaffs_verify_blk() 90 n, bi->pages_in_use, in_use); in yaffs_verify_blk() 96 yaffs_verify_blk(dev, bi, n); in yaffs_verify_collected_blk() 104 n, bi->block_state); in yaffs_verify_collected_blk() [all …]
|
H A D | yaffs_yaffs1.c | 31 struct yaffs_block_info *bi; in yaffs1_scan() local 49 bi = dev->block_info; in yaffs1_scan() 53 bi->pages_in_use = 0; in yaffs1_scan() 54 bi->soft_del_pages = 0; in yaffs1_scan() 58 bi->block_state = state; in yaffs1_scan() 59 bi->seq_number = seq_number; in yaffs1_scan() 76 bi++; in yaffs1_scan() 86 state = bi->block_state; in yaffs1_scan() 138 bi->pages_in_use++; in yaffs1_scan() 180 bi->pages_in_use++; in yaffs1_scan() [all …]
|
H A D | yaffs_yaffs2.c | 94 if (!bi || bi->seq_number == dev->oldest_dirty_seq) { in yaffs2_clear_oldest_dirty_seq() 125 if (!bi->has_shrink_hdr) in yaffs_block_ok_for_gc() 173 bi = dev->block_info; in yaffs2_find_refresh_block() 183 bi++; in yaffs2_find_refresh_block() 998 bi->block_state = in yaffs2_scan_chunk() 1043 bi->pages_in_use++; in yaffs2_scan_chunk() 1090 bi->pages_in_use++; in yaffs2_scan_chunk() 1386 bi = dev->block_info; in yaffs2_scan_backwards() 1390 bi->pages_in_use = 0; in yaffs2_scan_backwards() 1391 bi->soft_del_pages = 0; in yaffs2_scan_backwards() [all …]
|
/openbmc/linux/include/linux/ |
H A D | blk-integrity.h | 48 struct blk_integrity *bi = &disk->queue->integrity; in blk_get_integrity() local 50 if (!bi->profile) in blk_get_integrity() 53 return bi; in blk_get_integrity() 90 static inline unsigned int bio_integrity_intervals(struct blk_integrity *bi, in bio_integrity_intervals() argument 93 return sectors >> (bi->interval_exp - 9); in bio_integrity_intervals() 96 static inline unsigned int bio_integrity_bytes(struct blk_integrity *bi, in bio_integrity_bytes() argument 99 return bio_integrity_intervals(bi, sectors) * bi->tuple_size; in bio_integrity_bytes() 162 static inline unsigned int bio_integrity_intervals(struct blk_integrity *bi, in bio_integrity_intervals() argument 168 static inline unsigned int bio_integrity_bytes(struct blk_integrity *bi, in bio_integrity_bytes() argument
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_xsk.c | 169 if (!bi->xdp) { in ixgbe_alloc_rx_buffers_zc() 182 bi++; in ixgbe_alloc_rx_buffers_zc() 290 bi->xdp = NULL; in ixgbe_clean_rx_irq_zc() 300 bi->xdp = NULL; in ixgbe_clean_rx_irq_zc() 301 bi->discard = false; in ixgbe_clean_rx_irq_zc() 306 bi->xdp->data_end = bi->xdp->data + size; in ixgbe_clean_rx_irq_zc() 321 bi->xdp = NULL; in ixgbe_clean_rx_irq_zc() 337 xsk_buff_free(bi->xdp); in ixgbe_clean_rx_irq_zc() 338 bi->xdp = NULL; in ixgbe_clean_rx_irq_zc() 388 if (!bi->xdp) in ixgbe_xsk_clean_rx_ring() [all …]
|
/openbmc/linux/arch/x86/mm/ |
H A D | numa.c | 251 bi->start, bi->end - bi->start)) { in numa_cleanup_meminfo() 257 bi->start = max(bi->start, low); in numa_cleanup_meminfo() 261 numa_add_memblk_to(bi->nid, high, bi->end, in numa_cleanup_meminfo() 263 bi->end = high; in numa_cleanup_meminfo() 267 if (bi->start >= bi->end) in numa_cleanup_meminfo() 284 if (bi->end > bj->start && bi->start < bj->end) { in numa_cleanup_meminfo() 287 bi->nid, bi->start, bi->end - 1, in numa_cleanup_meminfo() 292 bi->nid, bi->start, bi->end - 1, in numa_cleanup_meminfo() 316 bi->nid, bi->start, bi->end - 1, bj->start, in numa_cleanup_meminfo() 319 bi->end = end; in numa_cleanup_meminfo() [all …]
|
/openbmc/linux/drivers/net/ethernet/brocade/bna/ |
H A D | bnad_ethtool.c | 747 buf[bi++] = rcb->rxq-> in bnad_per_q_stats_fill() 749 buf[bi++] = rcb->rxq-> in bnad_per_q_stats_fill() 762 buf[bi++] = rcb->rxq-> in bnad_per_q_stats_fill() 764 buf[bi++] = rcb->rxq-> in bnad_per_q_stats_fill() 788 return bi; in bnad_per_q_stats_fill() 796 int i, j, bi = 0; in bnad_get_ethtool_stats() local 839 buf[bi++] = stats64[i]; in bnad_get_ethtool_stats() 847 buf[bi++] = stats64[i]; in bnad_get_ethtool_stats() 857 buf[bi++] = stats64[j]; in bnad_get_ethtool_stats() 870 buf[bi++] = stats64[j]; in bnad_get_ethtool_stats() [all …]
|
/openbmc/linux/arch/m68k/kernel/ |
H A D | bootinfo_proc.c | 34 void __init save_bootinfo(const struct bi_record *bi) in save_bootinfo() argument 36 const void *start = bi; in save_bootinfo() 37 size_t size = sizeof(bi->tag); in save_bootinfo() 39 while (be16_to_cpu(bi->tag) != BI_LAST) { in save_bootinfo() 40 uint16_t n = be16_to_cpu(bi->size); in save_bootinfo() 42 bi = (struct bi_record *)((unsigned long)bi + n); in save_bootinfo()
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_bmap_item.c | 250 struct xfs_bmap_intent *bi) in xfs_trans_log_finish_bmap_update() argument 312 struct xfs_bmap_intent *bi) in xfs_bmap_update_log_item() argument 332 xfs_trans_set_bmap_flags(map, bi->bi_type, bi->bi_whichfork, in xfs_bmap_update_log_item() 333 bi->bi_bmap.br_state); in xfs_bmap_update_log_item() 345 struct xfs_bmap_intent *bi; in xfs_bmap_update_create_intent() local 371 struct xfs_bmap_intent *bi) in xfs_bmap_update_get_group() argument 390 struct xfs_bmap_intent *bi) in xfs_bmap_update_put_group() argument 403 struct xfs_bmap_intent *bi; in xfs_bmap_update_finish_item() local 414 xfs_bmap_update_put_group(bi); in xfs_bmap_update_finish_item() 432 struct xfs_bmap_intent *bi; in xfs_bmap_update_cancel_item() local [all …]
|