Home
last modified time | relevance | path

Searched refs:mi (Results 1 – 25 of 39) sorted by relevance

12

/drivers/net/ethernet/mellanox/mlx5/core/en/
Dmapping.c37 struct mapping_item *mi; in mapping_add() local
44 hash_for_each_possible(ctx->ht, mi, node, hash_key) { in mapping_add()
45 if (!memcmp(data, mi->data, ctx->data_size)) in mapping_add()
49 mi = kzalloc(sizeof(*mi) + ctx->data_size, GFP_KERNEL); in mapping_add()
50 if (!mi) in mapping_add()
53 memcpy(mi->data, data, ctx->data_size); in mapping_add()
54 hash_add(ctx->ht, &mi->node, hash_key); in mapping_add()
56 err = xa_alloc(&ctx->xarray, &mi->id, mi, XA_LIMIT(1, ctx->max_id), in mapping_add()
61 ++mi->cnt; in mapping_add()
62 *id = mi->id; in mapping_add()
[all …]
/drivers/crypto/allwinner/sun4i-ss/
Dsun4i-ss-hash.c197 struct sg_mapping_iter mi; in sun4i_hash() local
270 sg_miter_start(&mi, areq->src, sg_nents(areq->src), in sun4i_hash()
272 sg_miter_next(&mi); in sun4i_hash()
281 if (op->len || (mi.length - in_i) < 4) { in sun4i_hash()
290 in_r = min_t(size_t, mi.length - in_i, in_r); in sun4i_hash()
291 memcpy(op->buf + op->len, mi.addr + in_i, in_r); in sun4i_hash()
295 if (in_i == mi.length) { in sun4i_hash()
296 sg_miter_next(&mi); in sun4i_hash()
308 if (mi.length - in_i > 3 && i < end) { in sun4i_hash()
310 in_r = min_t(size_t, mi.length - in_i, areq->nbytes - i); in sun4i_hash()
[all …]
Dsun4i-ss-cipher.c36 struct sg_mapping_iter mi, mo; in sun4i_ss_opti_poll() local
75 sg_miter_start(&mi, areq->src, sg_nents(areq->src), in sun4i_ss_opti_poll()
78 sg_miter_skip(&mi, pi); in sun4i_ss_opti_poll()
79 miter_err = sg_miter_next(&mi); in sun4i_ss_opti_poll()
80 if (!miter_err || !mi.addr) { in sun4i_ss_opti_poll()
86 todo = min_t(size_t, todo, (mi.length - oi) / 4); in sun4i_ss_opti_poll()
89 writesl(ss->base + SS_RXFIFO, mi.addr + oi, todo); in sun4i_ss_opti_poll()
92 if (oi == mi.length) { in sun4i_ss_opti_poll()
93 pi += mi.length; in sun4i_ss_opti_poll()
96 sg_miter_stop(&mi); in sun4i_ss_opti_poll()
[all …]
/drivers/uio/
Duio.c285 int mi, pi; in uio_dev_add_attributes() local
293 for (mi = 0; mi < MAX_UIO_MAPS; mi++) { in uio_dev_add_attributes()
294 mem = &idev->info->mem[mi]; in uio_dev_add_attributes()
314 ret = kobject_add(&map->kobj, idev->map_dir, "map%d", mi); in uio_dev_add_attributes()
364 mi--; in uio_dev_add_attributes()
366 for (; mi >= 0; mi--) { in uio_dev_add_attributes()
367 mem = &idev->info->mem[mi]; in uio_dev_add_attributes()
674 int mi; in uio_vma_fault() local
682 mi = uio_find_mem_index(vmf->vma); in uio_vma_fault()
683 if (mi < 0) { in uio_vma_fault()
[all …]
/drivers/gpu/drm/amd/display/dc/dce/
Ddce_mem_input.c134 struct mem_input *mi, in dce_mi_program_pte_vm() argument
139 struct dce_mem_input *dce_mi = TO_DCE_MEM_INPUT(mi); in dce_mi_program_pte_vm()
313 struct mem_input *mi, in dce_mi_program_display_marks() argument
320 struct dce_mem_input *dce_mi = TO_DCE_MEM_INPUT(mi); in dce_mi_program_display_marks()
321 uint32_t stutter_en = mi->ctx->dc->debug.disable_stutter ? 0 : 1; in dce_mi_program_display_marks()
340 struct mem_input *mi, in dce60_mi_program_display_marks() argument
347 struct dce_mem_input *dce_mi = TO_DCE_MEM_INPUT(mi); in dce60_mi_program_display_marks()
348 uint32_t stutter_en = mi->ctx->dc->debug.disable_stutter ? 0 : 1; in dce60_mi_program_display_marks()
366 static void dce112_mi_program_display_marks(struct mem_input *mi, in dce112_mi_program_display_marks() argument
373 struct dce_mem_input *dce_mi = TO_DCE_MEM_INPUT(mi); in dce112_mi_program_display_marks()
[all …]
/drivers/gpu/drm/amd/display/dc/dce60/
Ddce60_hw_sequencer.c273 struct mem_input *mi = pipe_ctx->plane_res.mi; in dce60_program_front_end_for_pipe() local
286 dce_enable_fe_clock(dc->hwseq, mi->inst, true); in dce60_program_front_end_for_pipe()
316 mi->funcs->mem_input_program_surface_config( in dce60_program_front_end_for_pipe()
317 mi, in dce60_program_front_end_for_pipe()
324 if (mi->funcs->set_blank) in dce60_program_front_end_for_pipe()
325 mi->funcs->set_blank(mi, pipe_ctx->plane_state->visible); in dce60_program_front_end_for_pipe()
328 mi->funcs->mem_input_program_pte_vm( in dce60_program_front_end_for_pipe()
329 pipe_ctx->plane_res.mi, in dce60_program_front_end_for_pipe()
402 pipe_ctx->plane_res.mi->funcs->allocate_mem_input( in dce60_apply_ctx_for_surface()
403 pipe_ctx->plane_res.mi, in dce60_apply_ctx_for_surface()
/drivers/video/fbdev/
Dpxa168fb.c363 struct pxa168fb_mach_info *mi = dev_get_platdata(fbi->dev); in set_dumb_panel_control() local
371 x |= (fbi->is_blanked ? 0x7 : mi->dumb_mode) << 28; in set_dumb_panel_control()
372 x |= mi->gpio_output_data << 20; in set_dumb_panel_control()
373 x |= mi->gpio_output_mask << 12; in set_dumb_panel_control()
374 x |= mi->panel_rgb_reverse_lanes ? 0x00000080 : 0; in set_dumb_panel_control()
375 x |= mi->invert_composite_blank ? 0x00000040 : 0; in set_dumb_panel_control()
377 x |= mi->invert_pix_val_ena ? 0x00000010 : 0; in set_dumb_panel_control()
380 x |= mi->invert_pixclock ? 0x00000002 : 0; in set_dumb_panel_control()
557 struct pxa168fb_mach_info *mi) in pxa168fb_init_mode() argument
595 struct pxa168fb_mach_info *mi; in pxa168fb_probe() local
[all …]
/drivers/video/fbdev/mmp/panel/
Dtpo_tj032md01bw.c128 struct mmp_mach_panel_info *mi; in tpohvga_probe() local
133 mi = spi->dev.platform_data; in tpohvga_probe()
134 if (mi == NULL) { in tpohvga_probe()
152 plat_data->plat_onoff = mi->plat_set_onoff; in tpohvga_probe()
154 panel_tpohvga.plat_path_name = mi->plat_path_name; in tpohvga_probe()
/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_hw_sequencer.c1729 pipe_ctx->plane_res.mi->funcs->mem_input_program_display_marks( in dce110_set_displaymarks()
1730 pipe_ctx->plane_res.mi, in dce110_set_displaymarks()
1738 pipe_ctx->plane_res.mi->funcs->mem_input_program_chroma_display_marks( in dce110_set_displaymarks()
1739 pipe_ctx->plane_res.mi, in dce110_set_displaymarks()
1762 if (res_ctx->pipe_ctx[i].stream == NULL || res_ctx->pipe_ctx[i].plane_res.mi == NULL) in dce110_set_safe_displaymarks()
1765 res_ctx->pipe_ctx[i].plane_res.mi->funcs->mem_input_program_display_marks( in dce110_set_safe_displaymarks()
1766 res_ctx->pipe_ctx[i].plane_res.mi, in dce110_set_safe_displaymarks()
1774 res_ctx->pipe_ctx[i].plane_res.mi->funcs->mem_input_program_chroma_display_marks( in dce110_set_safe_displaymarks()
1775 res_ctx->pipe_ctx[i].plane_res.mi, in dce110_set_safe_displaymarks()
2003 pipe_ctx_old->plane_res.mi->funcs->free_mem_input( in dce110_reset_hw_ctx_wrap()
[all …]
Ddce110_mem_input_v.c967 struct mem_input *mi, in dce110_allocate_mem_input_v() argument
978 value = dm_read_reg(mi->ctx, addr); in dce110_allocate_mem_input_v()
985 dm_write_reg(mi->ctx, addr, value); in dce110_allocate_mem_input_v()
988 value = dm_read_reg(mi->ctx, addr); in dce110_allocate_mem_input_v()
995 dm_write_reg(mi->ctx, addr, value); in dce110_allocate_mem_input_v()
999 dm_write_reg(mi->ctx, addr, value); in dce110_allocate_mem_input_v()
1003 dm_write_reg(mi->ctx, addr, value); in dce110_allocate_mem_input_v()
1009 struct mem_input *mi, in dce110_free_mem_input_v() argument
/drivers/video/fbdev/mmp/hw/
Dmmp_ctrl.c443 struct mmp_mach_plat_info *mi; in mmphw_probe() local
464 mi = pdev->dev.platform_data; in mmphw_probe()
465 if (mi == NULL || !mi->path_num || !mi->paths) { in mmphw_probe()
473 struct_size(ctrl, path_plats, mi->path_num), in mmphw_probe()
480 ctrl->name = mi->name; in mmphw_probe()
481 ctrl->path_num = mi->path_num; in mmphw_probe()
515 ctrl->clk = devm_clk_get(ctrl->dev, mi->clk_name); in mmphw_probe()
517 dev_err(ctrl->dev, "unable to get clk %s\n", mi->clk_name); in mmphw_probe()
536 if (!path_init(path_plat, &mi->paths[i])) { in mmphw_probe()
/drivers/infiniband/sw/rxe/
Drxe_srq.c103 err = do_mmap_info(rxe, uresp ? &uresp->mi : NULL, udata, q->buf, in rxe_srq_from_init()
128 struct mminfo __user *mi = NULL; in rxe_srq_from_attr() local
135 mi = u64_to_user_ptr(ucmd->mmap_info_addr); in rxe_srq_from_attr()
138 rcv_wqe_size(srq->rq.max_sge), udata, mi, in rxe_srq_from_attr()
Drxe_cq.c70 err = do_mmap_info(rxe, uresp ? &uresp->mi : NULL, udata, in rxe_cq_from_init()
98 uresp ? &uresp->mi : NULL, NULL, &cq->cq_lock); in rxe_cq_resize_queue()
/drivers/staging/media/rkisp1/
Drkisp1-capture.c84 } mi; member
310 .mi = {
326 .mi = {
417 cap->config->mi.y_size_init); in rkisp1_mp_config()
419 cap->config->mi.cb_size_init); in rkisp1_mp_config()
421 cap->config->mi.cr_size_init); in rkisp1_mp_config()
454 cap->config->mi.y_size_init); in rkisp1_sp_config()
456 cap->config->mi.cb_size_init); in rkisp1_sp_config()
458 cap->config->mi.cr_size_init); in rkisp1_sp_config()
633 cap->config->mi.y_base_ad_init); in rkisp1_set_next_buf()
[all …]
/drivers/video/fbdev/omap2/omapfb/
Domapfb-ioctl.c202 static int omapfb_setup_mem(struct fb_info *fbi, struct omapfb_mem_info *mi) in omapfb_setup_mem() argument
211 if (mi->type != OMAPFB_MEMTYPE_SDRAM) in omapfb_setup_mem()
214 size = PAGE_ALIGN(mi->size); in omapfb_setup_mem()
224 if (rg->size == size && rg->type == mi->type) in omapfb_setup_mem()
249 r = omapfb_realloc_fbmem(fbi, size, mi->type); in omapfb_setup_mem()
262 static int omapfb_query_mem(struct fb_info *fbi, struct omapfb_mem_info *mi) in omapfb_query_mem() argument
268 memset(mi, 0, sizeof(*mi)); in omapfb_query_mem()
270 mi->size = rg->size; in omapfb_query_mem()
271 mi->type = rg->type; in omapfb_query_mem()
/drivers/video/fbdev/mmp/fb/
Dmmpfb.c540 struct mmp_buffer_driver_mach_info *mi; in mmpfb_probe() local
545 mi = pdev->dev.platform_data; in mmpfb_probe()
546 if (mi == NULL) { in mmpfb_probe()
561 fbi->name = mi->name; in mmpfb_probe()
562 fbi->pix_fmt = mi->default_pixfmt; in mmpfb_probe()
567 fbi->path = mmp_get_path(mi->path_name); in mmpfb_probe()
569 dev_err(&pdev->dev, "can't get the path %s\n", mi->path_name); in mmpfb_probe()
577 fbi->overlay = mmp_path_get_overlay(fbi->path, mi->overlay_id); in mmpfb_probe()
583 mmp_overlay_set_fetch(fbi->overlay, mi->dmafetch_id); in mmpfb_probe()
/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
Dhw_atl2_llh_internal.h272 #define HW_ATL2_FPGA_VER_U32(mj, mi, bl, rv) \ argument
274 (((mi) & 0xff) << 16) | \
/drivers/gpu/drm/amd/display/dc/inc/hw/
Dmem_input.h165 void (*set_blank)(struct mem_input *mi, bool blank);
166 void (*set_hubp_blank_en)(struct mem_input *mi, bool blank);
/drivers/xen/
Dmcelog.c219 static int convert_log(struct mc_info *mi) in convert_log() argument
228 x86_mcinfo_lookup(&mic, mi, MC_TYPE_GLOBAL); in convert_log()
264 x86_mcinfo_lookup(&mic, mi, MC_TYPE_BANK); in convert_log()
/drivers/video/fbdev/omap/
Domapfb_main.c808 static int omapfb_setup_mem(struct fb_info *fbi, struct omapfb_mem_info *mi) in omapfb_setup_mem() argument
818 if (mi->type != OMAPFB_MEMTYPE_SDRAM) in omapfb_setup_mem()
821 size = PAGE_ALIGN(mi->size); in omapfb_setup_mem()
827 if (rg->size != size || rg->type != mi->type) { in omapfb_setup_mem()
834 rg->type = mi->type; in omapfb_setup_mem()
852 r = fbdev->ctrl->setup_mem(plane->idx, size, mi->type, &paddr); in omapfb_setup_mem()
884 static int omapfb_query_mem(struct fb_info *fbi, struct omapfb_mem_info *mi) in omapfb_query_mem() argument
891 memset(mi, 0, sizeof(*mi)); in omapfb_query_mem()
892 mi->size = rg->size; in omapfb_query_mem()
893 mi->type = rg->type; in omapfb_query_mem()
/drivers/net/wireless/st/cw1200/
Dwsm.h1745 struct wsm_p2p_ps_modeinfo *mi) in wsm_set_p2p_ps_modeinfo() argument
1748 mi, sizeof(*mi)); in wsm_set_p2p_ps_modeinfo()
1752 struct wsm_p2p_ps_modeinfo *mi) in wsm_get_p2p_ps_modeinfo() argument
1755 mi, sizeof(*mi)); in wsm_get_p2p_ps_modeinfo()
/drivers/usb/misc/sisusbvga/
Dsisusb_init.c606 unsigned short mi) in SiS_SetCRT1FIFO_310() argument
608 unsigned short modeflag = SiS_Pr->SiS_EModeIDTable[mi].Ext_ModeFlag; in SiS_SetCRT1FIFO_310()
765 unsigned short mi) in SiS_LoadDAC() argument
773 data = SiS_Pr->SiS_SModeIDTable[mi].St_ModeFlag; in SiS_LoadDAC()
775 data = SiS_Pr->SiS_EModeIDTable[mi].Ext_ModeFlag; in SiS_LoadDAC()
/drivers/virtio/
Dvirtio_input.c159 u32 mi, ma, re, fu, fl; in virtinput_cfg_abs() local
162 virtio_cread_le(vi->vdev, struct virtio_input_config, u.abs.min, &mi); in virtinput_cfg_abs()
167 input_set_abs_params(vi->idev, abs, mi, ma, fu, fl); in virtinput_cfg_abs()
/drivers/net/wireless/intersil/p54/
Dp54spi.c465 struct p54_tx_info *mi = (struct p54_tx_info *) info->rate_driver_data; in p54spi_op_tx() local
466 struct p54s_tx_info *di = (struct p54s_tx_info *) mi->data; in p54spi_op_tx()
469 BUILD_BUG_ON(sizeof(*di) > sizeof((mi->data))); in p54spi_op_tx()
/drivers/most/
Dmost_usb.c688 u16 hi, mi, lo, link; in wq_netinfo() local
696 if (drci_rd_reg(usb_device, DRCI_REG_HW_ADDR_MI, &mi)) { in wq_netinfo()
713 hw_addr[2] = mi >> 8; in wq_netinfo()
714 hw_addr[3] = mi; in wq_netinfo()

12