Home
last modified time | relevance | path

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

123456789

/linux-6.12.1/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.12.1/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 …]
/linux-6.12.1/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.12.1/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.12.1/drivers/net/ethernet/intel/idpf/
Didpf_controlq_setup.c43 cq->bi.rx_buff = kcalloc(cq->ring_size, sizeof(struct idpf_dma_mem *), in idpf_ctlq_alloc_bufs()
45 if (!cq->bi.rx_buff) in idpf_ctlq_alloc_bufs()
50 struct idpf_dma_mem *bi; in idpf_ctlq_alloc_bufs() local
53 cq->bi.rx_buff[i] = kcalloc(num, sizeof(struct idpf_dma_mem), in idpf_ctlq_alloc_bufs()
55 if (!cq->bi.rx_buff[i]) in idpf_ctlq_alloc_bufs()
58 bi = cq->bi.rx_buff[i]; in idpf_ctlq_alloc_bufs()
60 bi->va = idpf_alloc_dma_mem(hw, bi, cq->buf_size); in idpf_ctlq_alloc_bufs()
61 if (!bi->va) { in idpf_ctlq_alloc_bufs()
63 kfree(cq->bi.rx_buff[i]); in idpf_ctlq_alloc_bufs()
74 idpf_free_dma_mem(hw, cq->bi.rx_buff[i]); in idpf_ctlq_alloc_bufs()
[all …]
Didpf_controlq.c67 struct idpf_dma_mem *bi = cq->bi.rx_buff[i]; in idpf_ctlq_init_rxq_bufs() local
70 if (!bi) in idpf_ctlq_init_rxq_bufs()
76 desc->datalen = cpu_to_le16(bi->size); in idpf_ctlq_init_rxq_bufs()
81 cpu_to_le32(upper_32_bits(bi->pa)); in idpf_ctlq_init_rxq_bufs()
83 cpu_to_le32(lower_32_bits(bi->pa)); in idpf_ctlq_init_rxq_bufs()
163 cq->bi.tx_msg = kcalloc(qinfo->len, in idpf_ctlq_add()
166 if (!cq->bi.tx_msg) { in idpf_ctlq_add()
320 cq->bi.tx_msg[cq->next_to_use] = msg; in idpf_ctlq_send()
382 msg_status[i] = cq->bi.tx_msg[ntc]; in idpf_ctlq_clean_sq()
385 cq->bi.tx_msg[ntc] = NULL; in idpf_ctlq_clean_sq()
[all …]
/linux-6.12.1/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()
330 min_idx_lebs, c->bi.min_idx_lebs, rsvd_idx_lebs); in do_budget_space()
335 outstanding = c->bi.data_growth + c->bi.dd_growth; in do_budget_space()
346 c->bi.min_idx_lebs = min_idx_lebs; in do_budget_space()
379 data_growth = req->new_ino ? c->bi.inode_budget : 0; in calc_data_growth()
381 data_growth += c->bi.page_budget; in calc_data_growth()
383 data_growth += c->bi.dent_budget; in calc_data_growth()
399 dd_growth = req->dirtied_page ? c->bi.page_budget : 0; in calc_dd_growth()
402 dd_growth += c->bi.inode_budget * req->dirtied_ino; in calc_dd_growth()
[all …]
/linux-6.12.1/drivers/gpu/drm/vmwgfx/
Dvmwgfx_binding.c118 static int vmw_binding_scrub_shader(struct vmw_ctx_bindinfo *bi, bool rebind);
119 static int vmw_binding_scrub_render_target(struct vmw_ctx_bindinfo *bi,
121 static int vmw_binding_scrub_texture(struct vmw_ctx_bindinfo *bi, bool rebind);
122 static int vmw_binding_scrub_cb(struct vmw_ctx_bindinfo *bi, bool rebind);
123 static int vmw_binding_scrub_dx_rt(struct vmw_ctx_bindinfo *bi, bool rebind);
124 static int vmw_binding_scrub_sr(struct vmw_ctx_bindinfo *bi, bool rebind);
125 static int vmw_binding_scrub_so_target(struct vmw_ctx_bindinfo *bi, bool rebind);
127 static int vmw_binding_scrub_dx_shader(struct vmw_ctx_bindinfo *bi,
129 static int vmw_binding_scrub_ib(struct vmw_ctx_bindinfo *bi, bool rebind);
130 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.12.1/tools/perf/util/
Dblock-info.c52 struct block_info *bi = zalloc(sizeof(struct block_info)); in block_info__new() local
54 if (bi && br_cntr_nr) { in block_info__new()
55 bi->br_cntr = calloc(br_cntr_nr, sizeof(u64)); in block_info__new()
56 if (!bi->br_cntr) { in block_info__new()
57 free(bi); in block_info__new()
62 return bi; in block_info__new()
65 void block_info__delete(struct block_info *bi) in block_info__delete() argument
67 if (bi) in block_info__delete()
68 free(bi->br_cntr); in block_info__delete()
69 free(bi); in block_info__delete()
[all …]
/linux-6.12.1/block/
Dt10-pi.c38 struct blk_integrity *bi) in t10_pi_generate() argument
40 u8 offset = bi->pi_offset; in t10_pi_generate()
47 bi->csum_type); in t10_pi_generate()
50 iter->prot_buf, offset, bi->csum_type); in t10_pi_generate()
53 if (bi->flags & BLK_INTEGRITY_REF_TAG) in t10_pi_generate()
59 iter->prot_buf += bi->tuple_size; in t10_pi_generate()
65 struct blk_integrity *bi) in t10_pi_verify() argument
67 u8 offset = bi->pi_offset; in t10_pi_verify()
74 if (bi->flags & BLK_INTEGRITY_REF_TAG) { in t10_pi_verify()
93 bi->csum_type); in t10_pi_verify()
[all …]
Dblk-integrity.c179 const char *blk_integrity_profile_name(struct blk_integrity *bi) in blk_integrity_profile_name() argument
181 switch (bi->csum_type) { in blk_integrity_profile_name()
183 if (bi->flags & BLK_INTEGRITY_REF_TAG) in blk_integrity_profile_name()
187 if (bi->flags & BLK_INTEGRITY_REF_TAG) in blk_integrity_profile_name()
191 if (bi->flags & BLK_INTEGRITY_REF_TAG) in blk_integrity_profile_name()
231 struct blk_integrity *bi = dev_to_bi(dev); in flag_show() local
233 return sysfs_emit(page, "%d\n", !(bi->flags & flag)); in flag_show()
239 struct blk_integrity *bi = dev_to_bi(dev); in format_show() local
241 if (!bi->tuple_size) in format_show()
243 return sysfs_emit(page, "%s\n", blk_integrity_profile_name(bi)); in format_show()
[all …]
/linux-6.12.1/fs/xfs/
Dxfs_bmap_item.c248 struct xfs_bmap_intent *bi) in xfs_bmap_update_log_item() argument
261 map->me_owner = bi->bi_owner->i_ino; in xfs_bmap_update_log_item()
262 map->me_startblock = bi->bi_bmap.br_startblock; in xfs_bmap_update_log_item()
263 map->me_startoff = bi->bi_bmap.br_startoff; in xfs_bmap_update_log_item()
264 map->me_len = bi->bi_bmap.br_blockcount; in xfs_bmap_update_log_item()
266 switch (bi->bi_type) { in xfs_bmap_update_log_item()
269 map->me_flags = bi->bi_type; in xfs_bmap_update_log_item()
274 if (bi->bi_bmap.br_state == XFS_EXT_UNWRITTEN) in xfs_bmap_update_log_item()
276 if (bi->bi_whichfork == XFS_ATTR_FORK) in xfs_bmap_update_log_item()
278 if (xfs_ifork_is_realtime(bi->bi_owner, bi->bi_whichfork)) in xfs_bmap_update_log_item()
[all …]
/linux-6.12.1/drivers/scsi/
Dsd_dif.c31 struct blk_integrity *bi = &lim->integrity; in sd_dif_config_host() local
34 memset(bi, 0, sizeof(*bi)); in sd_dif_config_host()
48 bi->csum_type = BLK_INTEGRITY_CSUM_IP; in sd_dif_config_host()
50 bi->csum_type = BLK_INTEGRITY_CSUM_CRC; in sd_dif_config_host()
53 bi->flags |= BLK_INTEGRITY_REF_TAG; in sd_dif_config_host()
55 bi->tuple_size = sizeof(struct t10_pi_tuple); in sd_dif_config_host()
58 bi->flags |= BLK_INTEGRITY_DEVICE_CAPABLE; in sd_dif_config_host()
64 bi->tag_size = sizeof(u16) + sizeof(u32); in sd_dif_config_host()
66 bi->tag_size = sizeof(u16); in sd_dif_config_host()
71 blk_integrity_profile_name(bi), bi->tag_size); in sd_dif_config_host()
/linux-6.12.1/mm/
Dnuma_memblks.c221 struct numa_memblk *bi = &mi->blk[i]; in numa_cleanup_meminfo() local
225 bi->start, bi->end - bi->start)) { in numa_cleanup_meminfo()
231 bi->start = max(bi->start, low); in numa_cleanup_meminfo()
234 if (bi->end > high) { in numa_cleanup_meminfo()
235 numa_add_memblk_to(bi->nid, high, bi->end, in numa_cleanup_meminfo()
237 bi->end = high; in numa_cleanup_meminfo()
241 if (bi->start >= bi->end) in numa_cleanup_meminfo()
247 struct numa_memblk *bi = &mi->blk[i]; in numa_cleanup_meminfo() local
258 if (bi->end > bj->start && bi->start < bj->end) { in numa_cleanup_meminfo()
259 if (bi->nid != bj->nid) { in numa_cleanup_meminfo()
[all …]
/linux-6.12.1/drivers/staging/media/atomisp/pci/
Dsh_css_firmware.c106 sh_css_load_blob_info(const char *fw, const struct ia_css_fw_info *bi, in sh_css_load_blob_info() argument
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()
121 blob = (const unsigned char *)fw + bi->blob.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()
131 if ((bi->blob.offset % (1UL << (ISP_PMEM_WIDTH_LOG2 - 3))) != 0) in sh_css_load_blob_info()
135 bd->header = *bi; in sh_css_load_blob_info()
[all …]
/linux-6.12.1/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.12.1/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 …]
/linux-6.12.1/fs/bfs/
Dfile.c72 struct bfs_inode_info *bi = BFS_I(inode); in bfs_get_block() local
74 phys = bi->i_sblock + block; in bfs_get_block()
76 if (phys <= bi->i_eblock) { in bfs_get_block()
88 if (bi->i_sblock && (phys <= bi->i_eblock)) { in bfs_get_block()
107 if (bi->i_eblock == info->si_lf_eblk) { in bfs_get_block()
111 info->si_freeb -= phys - bi->i_eblock; in bfs_get_block()
112 info->si_lf_eblk = bi->i_eblock = phys; in bfs_get_block()
125 if (bi->i_sblock) { in bfs_get_block()
126 err = bfs_move_blocks(inode->i_sb, bi->i_sblock, in bfs_get_block()
127 bi->i_eblock, phys); in bfs_get_block()
[all …]
/linux-6.12.1/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.12.1/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()
260 struct ixgbe_rx_buffer *bi; in ixgbe_clean_rx_irq_zc() local
282 bi = &rx_ring->rx_buffer_info[rx_ring->next_to_clean]; in ixgbe_clean_rx_irq_zc()
288 xsk_buff_free(bi->xdp); in ixgbe_clean_rx_irq_zc()
[all …]
/linux-6.12.1/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.12.1/drivers/staging/media/atomisp/pci/runtime/debug/src/
Dia_css_debug.c401 void ia_css_debug_binary_print(const struct ia_css_binary *bi) in ia_css_debug_binary_print() argument
405 debug_binary_info_print(bi->info); in ia_css_debug_binary_print()
408 bi->in_frame_info.res.width, in ia_css_debug_binary_print()
409 bi->in_frame_info.res.height, in ia_css_debug_binary_print()
410 bi->in_frame_info.format, in ia_css_debug_binary_print()
411 bi->in_frame_info.padded_width); in ia_css_debug_binary_print()
414 bi->internal_frame_info.res.width, in ia_css_debug_binary_print()
415 bi->internal_frame_info.res.height, in ia_css_debug_binary_print()
416 bi->internal_frame_info.format, in ia_css_debug_binary_print()
417 bi->internal_frame_info.padded_width); in ia_css_debug_binary_print()
[all …]
/linux-6.12.1/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.12.1/include/linux/
Dblk-integrity.h18 const char *blk_integrity_profile_name(struct blk_integrity *bi);
68 static inline unsigned int bio_integrity_intervals(struct blk_integrity *bi, in bio_integrity_intervals() argument
71 return sectors >> (bi->interval_exp - 9); in bio_integrity_intervals()
74 static inline unsigned int bio_integrity_bytes(struct blk_integrity *bi, in bio_integrity_bytes() argument
77 return bio_integrity_intervals(bi, sectors) * bi->tuple_size; in bio_integrity_bytes()
131 static inline unsigned int bio_integrity_intervals(struct blk_integrity *bi, in bio_integrity_intervals() argument
137 static inline unsigned int bio_integrity_bytes(struct blk_integrity *bi, in bio_integrity_bytes() argument

123456789