Home
last modified time | relevance | path

Searched refs:bi (Results 1 – 25 of 197) sorted by relevance

12345678

/linux-6.1.9/drivers/power/supply/
Dab8500_bmdata.c143 struct power_supply_battery_info *bi; in ab8500_bm_of_probe() local
147 ret = power_supply_get_battery_info(psy, &bm->bi); in ab8500_bm_of_probe()
152 bi = bm->bi; in ab8500_bm_of_probe()
155 if (bi->charge_full_design_uah < 0) in ab8500_bm_of_probe()
157 bi->charge_full_design_uah = 612000; in ab8500_bm_of_probe()
163 if ((bi->voltage_min_design_uv < 0) || in ab8500_bm_of_probe()
164 (bi->voltage_max_design_uv < 0)) { in ab8500_bm_of_probe()
166 bi->voltage_min_design_uv = 3700000; in ab8500_bm_of_probe()
168 bi->voltage_max_design_uv = 4050000; in ab8500_bm_of_probe()
171 if (bi->constant_charge_current_max_ua < 0) in ab8500_bm_of_probe()
[all …]
/linux-6.1.9/drivers/staging/media/ipu3/
Dipu3-css-fw.c13 static void imgu_css_fw_show_binary(struct device *dev, struct imgu_fw_info *bi, in imgu_css_fw_show_binary() argument
19 bi->type, bi->blob.size, name); in imgu_css_fw_show_binary()
20 if (bi->type != IMGU_FW_ISP_FIRMWARE) in imgu_css_fw_show_binary()
24 bi->info.isp.sp.id, bi->info.isp.sp.pipeline.mode, in imgu_css_fw_show_binary()
25 bi->info.isp.sp.bds.supported_bds_factors, in imgu_css_fw_show_binary()
26 bi->info.isp.sp.enable.vf_veceven, in imgu_css_fw_show_binary()
27 bi->info.isp.sp.vf_dec.is_variable, 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()
[all …]
Dipu3-css.c418 struct imgu_fw_info *bi = in imgu_css_hw_init() local
422 base + IMGU_REG_SP_ICACHE_ADDR(bi->type)); in imgu_css_hw_init()
423 writel(readl(base + IMGU_REG_SP_CTRL(bi->type)) | in imgu_css_hw_init()
425 base + IMGU_REG_SP_CTRL(bi->type)); in imgu_css_hw_init()
472 struct imgu_fw_info *bi = &css->fwp->binary_header[css->fw_sp[sp]]; in imgu_css_hw_start_sp() local
475 + bi->blob.data_source, in imgu_css_hw_start_sp()
476 .dmem_data_addr = bi->blob.data_target, in imgu_css_hw_start_sp()
477 .dmem_bss_addr = bi->blob.bss_target, in imgu_css_hw_start_sp()
478 .data_size = bi->blob.data_size, in imgu_css_hw_start_sp()
479 .bss_size = bi->blob.bss_size, in imgu_css_hw_start_sp()
[all …]
/linux-6.1.9/crypto/
Daes_generic.c1147 #define f_rn(bo, bi, n, k) do { \ argument
1148 bo[n] = crypto_ft_tab[0][byte(bi[n], 0)] ^ \
1149 crypto_ft_tab[1][byte(bi[(n + 1) & 3], 1)] ^ \
1150 crypto_ft_tab[2][byte(bi[(n + 2) & 3], 2)] ^ \
1151 crypto_ft_tab[3][byte(bi[(n + 3) & 3], 3)] ^ *(k + n); \
1154 #define f_nround(bo, bi, k) do {\ argument
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); \
[all …]
/linux-6.1.9/arch/powerpc/platforms/powermac/
Dbootx_init.c39 #define BOOT_INFO_IS_COMPATIBLE(bi) \ argument
40 ((bi)->compatible_version <= BOOT_INFO_VERSION)
41 #define BOOT_INFO_IS_V2_COMPATIBLE(bi) ((bi)->version >= 2) argument
42 #define BOOT_INFO_IS_V4_COMPATIBLE(bi) ((bi)->version >= 4) argument
185 boot_infos_t *bi = bootx_info; in bootx_add_display_props() local
194 tmp = bi->dispDeviceDepth; in bootx_add_display_props()
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()
200 tmp = bi->dispDeviceRowBytes; in bootx_add_display_props()
202 tmp = (u32)bi->dispDeviceBase; in bootx_add_display_props()
[all …]
/linux-6.1.9/fs/ubifs/
Dbudget.c94 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()
331 min_idx_lebs, c->bi.min_idx_lebs, rsvd_idx_lebs); in do_budget_space()
336 outstanding = c->bi.data_growth + c->bi.dd_growth; in do_budget_space()
347 c->bi.min_idx_lebs = min_idx_lebs; in do_budget_space()
380 data_growth = req->new_ino ? c->bi.inode_budget : 0; in calc_data_growth()
382 data_growth += c->bi.page_budget; in calc_data_growth()
384 data_growth += c->bi.dent_budget; in calc_data_growth()
400 dd_growth = req->dirtied_page ? c->bi.page_budget : 0; in calc_dd_growth()
403 dd_growth += c->bi.inode_budget << (req->dirtied_ino - 1); in calc_dd_growth()
[all …]
/linux-6.1.9/drivers/gpu/drm/vmwgfx/
Dvmwgfx_binding.c117 static int vmw_binding_scrub_shader(struct vmw_ctx_bindinfo *bi, bool rebind);
118 static int vmw_binding_scrub_render_target(struct vmw_ctx_bindinfo *bi,
120 static int vmw_binding_scrub_texture(struct vmw_ctx_bindinfo *bi, bool rebind);
121 static int vmw_binding_scrub_cb(struct vmw_ctx_bindinfo *bi, bool rebind);
122 static int vmw_binding_scrub_dx_rt(struct vmw_ctx_bindinfo *bi, bool rebind);
123 static int vmw_binding_scrub_sr(struct vmw_ctx_bindinfo *bi, bool rebind);
124 static int vmw_binding_scrub_so_target(struct vmw_ctx_bindinfo *bi, bool rebind);
126 static int vmw_binding_scrub_dx_shader(struct vmw_ctx_bindinfo *bi,
128 static int vmw_binding_scrub_ib(struct vmw_ctx_bindinfo *bi, bool rebind);
129 static int vmw_binding_scrub_vb(struct vmw_ctx_bindinfo *bi, bool rebind);
[all …]
Dvmwgfx_binding.h90 struct vmw_ctx_bindinfo bi; member
101 struct vmw_ctx_bindinfo bi; member
115 struct vmw_ctx_bindinfo bi; member
130 struct vmw_ctx_bindinfo bi; member
144 struct vmw_ctx_bindinfo bi; member
159 struct vmw_ctx_bindinfo bi; member
173 struct vmw_ctx_bindinfo bi; member
213 struct vmw_ctx_bindinfo bi; member
/linux-6.1.9/tools/perf/util/
Dblock-info.c46 struct block_info *block_info__get(struct block_info *bi) in block_info__get() argument
48 if (bi) in block_info__get()
49 refcount_inc(&bi->refcnt); in block_info__get()
50 return bi; in block_info__get()
53 void block_info__put(struct block_info *bi) in block_info__put() argument
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()
64 refcount_set(&bi->refcnt, 1); in block_info__new()
[all …]
Dblock-info.h54 struct block_info *block_info__get(struct block_info *bi);
55 void block_info__put(struct block_info *bi);
57 static inline void __block_info__zput(struct block_info **bi) in __block_info__zput() argument
59 block_info__put(*bi); in __block_info__zput()
60 *bi = NULL; in __block_info__zput()
63 #define block_info__zput(bi) __block_info__zput(&bi) argument
/linux-6.1.9/drivers/scsi/
Dsd_dif.c32 struct blk_integrity bi; in sd_dif_config_host() local
45 memset(&bi, 0, sizeof(bi)); in sd_dif_config_host()
50 bi.profile = &t10_pi_type3_ip; in sd_dif_config_host()
52 bi.profile = &t10_pi_type1_ip; in sd_dif_config_host()
54 bi.flags |= BLK_INTEGRITY_IP_CHECKSUM; in sd_dif_config_host()
57 bi.profile = &t10_pi_type3_crc; in sd_dif_config_host()
59 bi.profile = &t10_pi_type1_crc; in sd_dif_config_host()
61 bi.tuple_size = sizeof(struct t10_pi_tuple); in sd_dif_config_host()
64 bi.flags |= BLK_INTEGRITY_DEVICE_CAPABLE; in sd_dif_config_host()
70 bi.tag_size = sizeof(u16) + sizeof(u32); in sd_dif_config_host()
[all …]
/linux-6.1.9/block/
Dblk-integrity.c225 struct blk_integrity *bi = &disk->queue->integrity; in integrity_attr_show() local
229 return entry->show(bi, page); in integrity_attr_show()
237 struct blk_integrity *bi = &disk->queue->integrity; in integrity_attr_store() local
243 ret = entry->store(bi, page, count); in integrity_attr_store()
248 static ssize_t integrity_format_show(struct blk_integrity *bi, char *page) in integrity_format_show() argument
250 if (bi->profile && bi->profile->name) in integrity_format_show()
251 return sprintf(page, "%s\n", bi->profile->name); in integrity_format_show()
256 static ssize_t integrity_tag_size_show(struct blk_integrity *bi, char *page) in integrity_tag_size_show() argument
258 return sprintf(page, "%u\n", bi->tag_size); in integrity_tag_size_show()
261 static ssize_t integrity_interval_show(struct blk_integrity *bi, char *page) in integrity_interval_show() argument
[all …]
Dbio-integrity.c159 struct blk_integrity *bi = blk_get_integrity(bio->bi_bdev->bd_disk); in bio_integrity_process() local
167 iter.interval = 1 << bi->interval_exp; in bio_integrity_process()
168 iter.tuple_size = bi->tuple_size; in bio_integrity_process()
202 struct blk_integrity *bi = blk_get_integrity(bio->bi_bdev->bd_disk); in bio_integrity_prep() local
210 if (!bi) in bio_integrity_prep()
224 if (!bi->profile->verify_fn || in bio_integrity_prep()
225 !(bi->flags & BLK_INTEGRITY_VERIFY)) in bio_integrity_prep()
228 if (!bi->profile->generate_fn || in bio_integrity_prep()
229 !(bi->flags & BLK_INTEGRITY_GENERATE)) in bio_integrity_prep()
232 intervals = bio_integrity_intervals(bi, bio_sectors(bio)); in bio_integrity_prep()
[all …]
/linux-6.1.9/drivers/staging/media/atomisp/pci/
Dsh_css_firmware.c109 sh_css_load_blob_info(const char *fw, const struct ia_css_fw_info *bi, in sh_css_load_blob_info() argument
120 if (!bi) in sh_css_load_blob_info()
121 bi = (const struct ia_css_fw_info *)fw; in sh_css_load_blob_info()
123 name = fw + bi->blob.prog_name_offset; in sh_css_load_blob_info()
124 blob = (const unsigned char *)fw + bi->blob.offset; in sh_css_load_blob_info()
127 if (bi->blob.size != in sh_css_load_blob_info()
128 bi->blob.text_size + bi->blob.icache_size + in sh_css_load_blob_info()
129 bi->blob.data_size + bi->blob.padding_size) { in sh_css_load_blob_info()
134 if ((bi->blob.offset % (1UL << (ISP_PMEM_WIDTH_LOG2 - 3))) != 0) in sh_css_load_blob_info()
138 bd->header = *bi; in sh_css_load_blob_info()
[all …]
/linux-6.1.9/drivers/net/hamradio/
Dhdlcdrv.c491 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()
505 return s->ops->ioctl(dev, data, &bi, cmd); in hdlcdrv_siocdevprivate()
509 bi.data.cp.tx_delay = s->ch_params.tx_delay; in hdlcdrv_siocdevprivate()
510 bi.data.cp.tx_tail = s->ch_params.tx_tail; in hdlcdrv_siocdevprivate()
511 bi.data.cp.slottime = s->ch_params.slottime; in hdlcdrv_siocdevprivate()
512 bi.data.cp.ppersist = s->ch_params.ppersist; in hdlcdrv_siocdevprivate()
513 bi.data.cp.fulldup = s->ch_params.fulldup; in hdlcdrv_siocdevprivate()
519 s->ch_params.tx_delay = bi.data.cp.tx_delay; in hdlcdrv_siocdevprivate()
[all …]
/linux-6.1.9/fs/bfs/
Dfile.c71 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()
111 info->si_lf_eblk = bi->i_eblock = phys; in bfs_get_block()
124 if (bi->i_sblock) { in bfs_get_block()
125 err = bfs_move_blocks(inode->i_sb, bi->i_sblock, in bfs_get_block()
126 bi->i_eblock, phys); in bfs_get_block()
[all …]
/linux-6.1.9/fs/reiserfs/
Ddo_balan.c20 struct buffer_info *bi) in buffer_info_init_left() argument
22 bi->tb = tb; in buffer_info_init_left()
23 bi->bi_bh = tb->L[0]; in buffer_info_init_left()
24 bi->bi_parent = tb->FL[0]; in buffer_info_init_left()
25 bi->bi_position = get_left_neighbor_position(tb, 0); in buffer_info_init_left()
29 struct buffer_info *bi) in buffer_info_init_right() argument
31 bi->tb = tb; in buffer_info_init_right()
32 bi->bi_bh = tb->R[0]; in buffer_info_init_right()
33 bi->bi_parent = tb->FR[0]; in buffer_info_init_right()
34 bi->bi_position = get_right_neighbor_position(tb, 0); in buffer_info_init_right()
[all …]
Dlbalance.c814 static void leaf_delete_items_entirely(struct buffer_info *bi,
901 void leaf_insert_into_buf(struct buffer_info *bi, int before, in leaf_insert_into_buf() argument
906 struct buffer_head *bh = bi->bi_bh; in leaf_insert_into_buf()
962 do_balance_mark_leaf_dirty(bi->tb, bh, 1); in leaf_insert_into_buf()
964 if (bi->bi_parent) { in leaf_insert_into_buf()
966 t_dc = B_N_CHILD(bi->bi_parent, bi->bi_position); in leaf_insert_into_buf()
970 do_balance_mark_internal_dirty(bi->tb, bi->bi_parent, 0); in leaf_insert_into_buf()
978 void leaf_paste_in_buffer(struct buffer_info *bi, int affected_item_num, in leaf_paste_in_buffer() argument
982 struct buffer_head *bh = bi->bi_bh; in leaf_paste_in_buffer()
1001 if (bi && bi->tb) in leaf_paste_in_buffer()
[all …]
/linux-6.1.9/fs/gfs2/
Drgrp.c97 struct gfs2_bitmap *bi = rbm_bi(rbm); in gfs2_setbit() local
98 unsigned int buflen = bi->bi_bytes; in gfs2_setbit()
101 byte1 = bi->bi_bh->b_data + bi->bi_offset + (rbm->offset / GFS2_NBBY); in gfs2_setbit()
102 end = bi->bi_bh->b_data + bi->bi_offset + buflen; in gfs2_setbit()
114 (unsigned long long)rbm->rgd->rd_addr, bi->bi_start, in gfs2_setbit()
115 (unsigned long long)bi->bi_bh->b_blocknr); in gfs2_setbit()
117 bi->bi_offset, bi->bi_bytes, in gfs2_setbit()
125 if (do_clone && bi->bi_clone) { in gfs2_setbit()
126 byte2 = bi->bi_clone + bi->bi_offset + (rbm->offset / GFS2_NBBY); in gfs2_setbit()
145 struct gfs2_bitmap *bi = rbm_bi(rbm); in gfs2_testbit() local
[all …]
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/
Dixgbe_xsk.c154 struct ixgbe_rx_buffer *bi; in ixgbe_alloc_rx_buffers_zc() local
164 bi = &rx_ring->rx_buffer_info[i]; in ixgbe_alloc_rx_buffers_zc()
168 bi->xdp = xsk_buff_alloc(rx_ring->xsk_pool); in ixgbe_alloc_rx_buffers_zc()
169 if (!bi->xdp) { in ixgbe_alloc_rx_buffers_zc()
174 dma = xsk_buff_xdp_get_dma(bi->xdp); in ixgbe_alloc_rx_buffers_zc()
182 bi++; in ixgbe_alloc_rx_buffers_zc()
186 bi = rx_ring->rx_buffer_info; in ixgbe_alloc_rx_buffers_zc()
261 struct ixgbe_rx_buffer *bi; in ixgbe_clean_rx_irq_zc() local
283 bi = &rx_ring->rx_buffer_info[rx_ring->next_to_clean]; in ixgbe_clean_rx_irq_zc()
289 xsk_buff_free(bi->xdp); in ixgbe_clean_rx_irq_zc()
[all …]
/linux-6.1.9/include/linux/
Dblk-integrity.h48 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()
163 static inline unsigned int bio_integrity_intervals(struct blk_integrity *bi, in bio_integrity_intervals() argument
169 static inline unsigned int bio_integrity_bytes(struct blk_integrity *bi, in bio_integrity_bytes() argument
/linux-6.1.9/drivers/net/ethernet/brocade/bna/
Dbnad_ethtool.c704 bnad_per_q_stats_fill(struct bnad *bnad, u64 *buf, int bi) in bnad_per_q_stats_fill() argument
717 buf[bi++] = bnad->rx_info[i].rx_ctrl[j]. in bnad_per_q_stats_fill()
719 buf[bi++] = 0; /* ccb->consumer_index */ in bnad_per_q_stats_fill()
720 buf[bi++] = *(bnad->rx_info[i].rx_ctrl[j]. in bnad_per_q_stats_fill()
723 buf[bi++] = bnad->rx_info[i]. in bnad_per_q_stats_fill()
725 buf[bi++] = bnad->rx_info[i]. in bnad_per_q_stats_fill()
727 buf[bi++] = bnad->rx_info[i]. in bnad_per_q_stats_fill()
729 buf[bi++] = bnad->rx_info[i]. in bnad_per_q_stats_fill()
731 buf[bi++] = bnad->rx_info[i]. in bnad_per_q_stats_fill()
745 buf[bi++] = rcb->rxq->rx_packets; in bnad_per_q_stats_fill()
[all …]
/linux-6.1.9/arch/x86/mm/
Dnuma.c246 struct numa_memblk *bi = &mi->blk[i]; in numa_cleanup_meminfo() local
250 bi->start, bi->end - bi->start)) { in numa_cleanup_meminfo()
256 bi->start = max(bi->start, low); in numa_cleanup_meminfo()
259 if (bi->end > high) { in numa_cleanup_meminfo()
260 numa_add_memblk_to(bi->nid, high, bi->end, in numa_cleanup_meminfo()
262 bi->end = high; in numa_cleanup_meminfo()
266 if (bi->start >= bi->end) in numa_cleanup_meminfo()
272 struct numa_memblk *bi = &mi->blk[i]; in numa_cleanup_meminfo() local
283 if (bi->end > bj->start && bi->start < bj->end) { in numa_cleanup_meminfo()
284 if (bi->nid != bj->nid) { in numa_cleanup_meminfo()
[all …]
/linux-6.1.9/arch/m68k/kernel/
Dbootinfo_proc.c34 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()
/linux-6.1.9/drivers/gpu/drm/i915/
Di915_vma_resource.h106 } bi; member
202 vma_res->bi.pages = pages; in i915_vma_resource_init()
203 vma_res->bi.page_sizes = *page_sizes; in i915_vma_resource_init()
205 vma_res->bi.pages_rsgt = i915_refct_sgt_get(pages_rsgt); in i915_vma_resource_init()
206 vma_res->bi.readonly = readonly; in i915_vma_resource_init()
207 vma_res->bi.lmem = lmem; in i915_vma_resource_init()
221 if (vma_res->bi.pages_rsgt) in i915_vma_resource_fini()
222 i915_refct_sgt_put(vma_res->bi.pages_rsgt); in i915_vma_resource_fini()

12345678