/Linux-v5.15/drivers/video/fbdev/aty/ |
D | radeon_monitor.c | 119 static int radeon_probe_OF_head(struct radeonfb_info *rinfo, int head_no, in radeon_probe_OF_head() argument 126 dp = rinfo->of_node; in radeon_probe_OF_head() 130 if (rinfo->has_CRTC2) { in radeon_probe_OF_head() 149 if (mt == MT_DFP && rinfo->is_mobility) in radeon_probe_OF_head() 167 static int radeon_get_panel_info_BIOS(struct radeonfb_info *rinfo) in radeon_get_panel_info_BIOS() argument 173 if (!rinfo->bios_seg) in radeon_get_panel_info_BIOS() 176 if (!(tmp = BIOS_IN16(rinfo->fp_bios_start + 0x40))) { in radeon_get_panel_info_BIOS() 178 rinfo->panel_info.pwr_delay = 200; in radeon_get_panel_info_BIOS() 186 rinfo->panel_info.xres = BIOS_IN16(tmp + 25); in radeon_get_panel_info_BIOS() 187 rinfo->panel_info.yres = BIOS_IN16(tmp + 27); in radeon_get_panel_info_BIOS() [all …]
|
D | radeon_pm.c | 41 static void radeon_reinitialize_M10(struct radeonfb_info *rinfo); 99 static int radeon_apply_workarounds(struct radeonfb_info *rinfo) in radeon_apply_workarounds() argument 104 if ((id->subsystem_vendor == rinfo->pdev->subsystem_vendor ) && in radeon_apply_workarounds() 105 (id->subsystem_device == rinfo->pdev->subsystem_device )) { in radeon_apply_workarounds() 111 rinfo->pm_mode |= id->pm_mode_modifier; in radeon_apply_workarounds() 114 rinfo->reinit_func = id->new_reinit_func; in radeon_apply_workarounds() 122 static inline int radeon_apply_workarounds(struct radeonfb_info *rinfo) in radeon_apply_workarounds() argument 130 static void radeon_pm_disable_dynamic_mode(struct radeonfb_info *rinfo) in radeon_pm_disable_dynamic_mode() argument 135 if ((rinfo->family == CHIP_FAMILY_RV100) && (!rinfo->is_mobility)) { in radeon_pm_disable_dynamic_mode() 136 if (rinfo->has_CRTC2) { in radeon_pm_disable_dynamic_mode() [all …]
|
D | radeon_i2c.c | 21 struct radeonfb_info *rinfo = chan->rinfo; in radeon_gpio_setscl() local 35 struct radeonfb_info *rinfo = chan->rinfo; in radeon_gpio_setsda() local 49 struct radeonfb_info *rinfo = chan->rinfo; in radeon_gpio_getscl() local 60 struct radeonfb_info *rinfo = chan->rinfo; in radeon_gpio_getsda() local 76 chan->adapter.dev.parent = &chan->rinfo->pdev->dev; in radeon_setup_i2c_bus() 94 dev_dbg(&chan->rinfo->pdev->dev, "I2C bus %s registered.\n", name); in radeon_setup_i2c_bus() 96 dev_warn(&chan->rinfo->pdev->dev, "Failed to register I2C bus %s.\n", name); in radeon_setup_i2c_bus() 100 void radeon_create_i2c_busses(struct radeonfb_info *rinfo) in radeon_create_i2c_busses() argument 102 rinfo->i2c[0].rinfo = rinfo; in radeon_create_i2c_busses() 103 rinfo->i2c[0].ddc_reg = GPIO_MONID; in radeon_create_i2c_busses() [all …]
|
D | radeon_base.c | 280 void _radeon_msleep(struct radeonfb_info *rinfo, unsigned long ms) in _radeon_msleep() argument 282 if (rinfo->no_schedule || oops_in_progress) in _radeon_msleep() 288 void radeon_pll_errata_after_index_slow(struct radeonfb_info *rinfo) in radeon_pll_errata_after_index_slow() argument 295 void radeon_pll_errata_after_data_slow(struct radeonfb_info *rinfo) in radeon_pll_errata_after_data_slow() argument 297 if (rinfo->errata & CHIP_ERRATA_PLL_DELAY) { in radeon_pll_errata_after_data_slow() 299 _radeon_msleep(rinfo, 5); in radeon_pll_errata_after_data_slow() 301 if (rinfo->errata & CHIP_ERRATA_R300_CG) { in radeon_pll_errata_after_data_slow() 311 void _OUTREGP(struct radeonfb_info *rinfo, u32 addr, u32 val, u32 mask) in _OUTREGP() argument 316 spin_lock_irqsave(&rinfo->reg_lock, flags); in _OUTREGP() 321 spin_unlock_irqrestore(&rinfo->reg_lock, flags); in _OUTREGP() [all …]
|
D | radeonfb.h | 62 #define IS_RV100_VARIANT(rinfo) (((rinfo)->family == CHIP_FAMILY_RV100) || \ argument 63 ((rinfo)->family == CHIP_FAMILY_RV200) || \ 64 ((rinfo)->family == CHIP_FAMILY_RS100) || \ 65 ((rinfo)->family == CHIP_FAMILY_RS200) || \ 66 ((rinfo)->family == CHIP_FAMILY_RV250) || \ 67 ((rinfo)->family == CHIP_FAMILY_RV280) || \ 68 ((rinfo)->family == CHIP_FAMILY_RS300)) 71 #define IS_R300_VARIANT(rinfo) (((rinfo)->family == CHIP_FAMILY_R300) || \ argument 72 ((rinfo)->family == CHIP_FAMILY_RV350) || \ 73 ((rinfo)->family == CHIP_FAMILY_R350) || \ [all …]
|
D | radeon_backlight.c | 21 struct radeonfb_info *rinfo; member 32 rlevel = pdata->rinfo->info->bl_curve[level] * in radeon_bl_get_level_brightness() 49 struct radeonfb_info *rinfo = pdata->rinfo; in radeon_bl_update_status() local 53 if (rinfo->mon1_type != MT_LCD) in radeon_bl_update_status() 66 del_timer_sync(&rinfo->lvds_timer); in radeon_bl_update_status() 73 lvds_gen_cntl |= (rinfo->init_state.lvds_gen_cntl & LVDS_DIGON); in radeon_bl_update_status() 81 lvds_gen_cntl |= (rinfo->init_state.lvds_gen_cntl & LVDS_BL_MOD_EN); in radeon_bl_update_status() 82 rinfo->pending_lvds_gen_cntl = lvds_gen_cntl; in radeon_bl_update_status() 83 mod_timer(&rinfo->lvds_timer, in radeon_bl_update_status() 84 jiffies + msecs_to_jiffies(rinfo->panel_info.pwr_delay)); in radeon_bl_update_status() [all …]
|
D | radeon_accel.c | 9 static void radeon_fixup_offset(struct radeonfb_info *rinfo) in radeon_fixup_offset() argument 31 if (local_base == rinfo->fb_local_base) in radeon_fixup_offset() 34 rinfo->fb_local_base = local_base; in radeon_fixup_offset() 37 OUTREG(DEFAULT_PITCH_OFFSET, (rinfo->pitch << 0x16) | in radeon_fixup_offset() 38 (rinfo->fb_local_base >> 10)); in radeon_fixup_offset() 39 OUTREG(DST_PITCH_OFFSET, (rinfo->pitch << 0x16) | (rinfo->fb_local_base >> 10)); in radeon_fixup_offset() 40 OUTREG(SRC_PITCH_OFFSET, (rinfo->pitch << 0x16) | (rinfo->fb_local_base >> 10)); in radeon_fixup_offset() 43 static void radeonfb_prim_fillrect(struct radeonfb_info *rinfo, in radeonfb_prim_fillrect() argument 49 rinfo->dp_gui_master_cntl /* contains, like GMC_DST_32BPP */ in radeonfb_prim_fillrect() 52 if (radeon_get_dstbpp(rinfo->depth) != DST_8BPP) in radeonfb_prim_fillrect() [all …]
|
/Linux-v5.15/drivers/block/ |
D | xen-blkfront.c | 217 struct blkfront_ring_info *rinfo; member 262 static int blkfront_setup_indirect(struct blkfront_ring_info *rinfo); 267 for ((ptr) = (info)->rinfo, (idx) = 0; \ 275 return (void *)info->rinfo + i * info->rinfo_size; in get_rinfo() 278 static int get_id_from_freelist(struct blkfront_ring_info *rinfo) in get_id_from_freelist() argument 280 unsigned long free = rinfo->shadow_free; in get_id_from_freelist() 282 BUG_ON(free >= BLK_RING_SIZE(rinfo->dev_info)); in get_id_from_freelist() 283 rinfo->shadow_free = rinfo->shadow[free].req.u.rw.id; in get_id_from_freelist() 284 rinfo->shadow[free].req.u.rw.id = 0x0fffffee; /* debug */ in get_id_from_freelist() 288 static int add_id_to_freelist(struct blkfront_ring_info *rinfo, in add_id_to_freelist() argument [all …]
|
/Linux-v5.15/drivers/regulator/ |
D | max77620-regulator.c | 87 struct max77620_regulator_info *rinfo[MAX77620_NUM_REGS]; member 102 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_regulator_get_fps_src() local 106 ret = regmap_read(pmic->rmap, rinfo->fps_addr, &val); in max77620_regulator_get_fps_src() 109 rinfo->fps_addr, ret); in max77620_regulator_get_fps_src() 119 struct max77620_regulator_info *rinfo = pmic->rinfo[id]; in max77620_regulator_set_fps_src() local 123 if (!rinfo) in max77620_regulator_set_fps_src() 134 ret = regmap_read(pmic->rmap, rinfo->fps_addr, &val); in max77620_regulator_set_fps_src() 137 rinfo->fps_addr, ret); in max77620_regulator_set_fps_src() 150 ret = regmap_update_bits(pmic->rmap, rinfo->fps_addr, in max77620_regulator_set_fps_src() 155 rinfo->fps_addr, ret); in max77620_regulator_set_fps_src() [all …]
|
D | tps80031-regulator.c | 74 struct tps80031_regulator_info *rinfo; member 96 ret = tps80031_read(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_is_enabled() 100 ri->rinfo->state_reg, ret); in tps80031_reg_is_enabled() 115 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_enable() 119 ri->rinfo->state_reg, ret); in tps80031_reg_enable() 134 ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, in tps80031_reg_disable() 138 ri->rinfo->state_reg, ret); in tps80031_reg_disable() 171 if (ri->rinfo->force_reg) { in tps80031_dcdc_set_voltage_sel() 172 ret = tps80031_read(parent, ri->rinfo->volt_id, in tps80031_dcdc_set_voltage_sel() 173 ri->rinfo->force_reg, ®_val); in tps80031_dcdc_set_voltage_sel() [all …]
|
D | scmi-regulator.c | 258 struct scmi_regulator_info *rinfo) in process_scmi_regulator_of_node() argument 266 if (dom >= rinfo->num_doms) in process_scmi_regulator_of_node() 269 if (rinfo->sregv[dom]) { in process_scmi_regulator_of_node() 276 rinfo->sregv[dom] = devm_kzalloc(&sdev->dev, in process_scmi_regulator_of_node() 279 if (!rinfo->sregv[dom]) in process_scmi_regulator_of_node() 282 rinfo->sregv[dom]->id = dom; in process_scmi_regulator_of_node() 283 rinfo->sregv[dom]->sdev = sdev; in process_scmi_regulator_of_node() 284 rinfo->sregv[dom]->ph = ph; in process_scmi_regulator_of_node() 288 rinfo->sregv[dom]->of_node = np; in process_scmi_regulator_of_node() 302 struct scmi_regulator_info *rinfo; in scmi_regulator_probe() local [all …]
|
D | palmas-regulator.c | 444 struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; in palmas_set_mode_smps() local 448 ret = palmas_smps_read(pmic->palmas, rinfo->ctrl_addr, ®); in palmas_set_mode_smps() 473 palmas_smps_write(pmic->palmas, rinfo->ctrl_addr, reg); in palmas_set_mode_smps() 507 struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; in palmas_smps_set_ramp_delay() local 527 ret = palmas_smps_write(pmic->palmas, rinfo->tstep_addr, reg); in palmas_smps_set_ramp_delay() 601 struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; in palmas_is_enabled_ldo() local 604 palmas_ldo_read(pmic->palmas, rinfo->ctrl_addr, ®); in palmas_is_enabled_ldo() 677 struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; in palmas_regulator_config_external() local 680 ret = palmas_ext_control_req_config(palmas, rinfo->sleep_id, in palmas_regulator_config_external() 701 struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; in palmas_smps_init() local [all …]
|
/Linux-v5.15/drivers/hid/usbhid/ |
D | hiddev.c | 56 hiddev_lookup_report(struct hid_device *hid, struct hiddev_report_info *rinfo) in hiddev_lookup_report() argument 58 unsigned int flags = rinfo->report_id & ~HID_REPORT_ID_MASK; in hiddev_lookup_report() 59 unsigned int rid = rinfo->report_id & HID_REPORT_ID_MASK; in hiddev_lookup_report() 64 if (rinfo->report_type < HID_REPORT_TYPE_MIN || in hiddev_lookup_report() 65 rinfo->report_type > HID_REPORT_TYPE_MAX) in hiddev_lookup_report() 69 (rinfo->report_type - HID_REPORT_TYPE_MIN); in hiddev_lookup_report() 81 rinfo->report_id = report->id; in hiddev_lookup_report() 94 rinfo->report_id = report->id; in hiddev_lookup_report() 101 return report_enum->report_id_hash[rinfo->report_id]; in hiddev_lookup_report() 430 struct hiddev_report_info rinfo; in hiddev_ioctl_usage() local [all …]
|
/Linux-v5.15/drivers/scsi/aic7xxx/aicasm/ |
D | aicasm_gram.y | 327 if (cur_symbol->info.rinfo->valid_bitmask == 0) 328 cur_symbol->info.rinfo->valid_bitmask = 0xFF; 330 if (cur_symbol->info.rinfo->size == 0) 331 cur_symbol->info.rinfo->size = 1; 337 if (cur_symbol->info.rinfo->address == 0) 338 cur_symbol->info.rinfo->address = 341 cur_symbol->info.rinfo->size; 374 cur_symbol->info.rinfo->address = $2; 381 cur_symbol->info.rinfo->size = $2; 386 max_addr = scb_or_sram_symbol->info.rinfo->address [all …]
|
D | aicasm_symbol.c | 94 if (symbol->info.rinfo != NULL) in symbol_delete() 95 free(symbol->info.rinfo); in symbol_delete() 261 || (!field && (curnode->symbol->info.rinfo->address > in symlist_add() 262 newnode->symbol->info.rinfo->address))) { in symlist_add() 282 && (cursymbol->info.rinfo->address > in symlist_add() 283 symbol->info.rinfo->address))) { in symlist_add() 417 regnode->symbol->info.rinfo->address); in aic_print_reg_dump_end() 435 regnode->symbol->info.rinfo->address); in aic_print_reg_dump_end() 554 fields = &curnode->symbol->info.rinfo->fields; in symtable_dump() 614 value = curnode->symbol->info.rinfo->address; in symtable_dump() [all …]
|
/Linux-v5.15/fs/ceph/ |
D | inode.c | 1268 struct ceph_mds_reply_info_parsed *rinfo = &req->r_reply_info; in ceph_fill_trace() local 1275 rinfo->head->is_dentry, rinfo->head->is_target); in ceph_fill_trace() 1277 if (!rinfo->head->is_target && !rinfo->head->is_dentry) { in ceph_fill_trace() 1279 if (rinfo->head->result == 0 && req->r_parent) in ceph_fill_trace() 1284 if (rinfo->head->is_dentry) { in ceph_fill_trace() 1288 err = ceph_fill_inode(dir, NULL, &rinfo->diri, in ceph_fill_trace() 1289 rinfo->dirfrag, session, -1, in ceph_fill_trace() 1303 BUG_ON(!rinfo->head->is_target); in ceph_fill_trace() 1309 dname.name = rinfo->dname; in ceph_fill_trace() 1310 dname.len = rinfo->dname_len; in ceph_fill_trace() [all …]
|
D | export.c | 449 struct ceph_mds_reply_info_parsed *rinfo; in __get_snap_name() local 484 rinfo = &req->r_reply_info; in __get_snap_name() 485 for (i = 0; i < rinfo->dir_nr; i++) { in __get_snap_name() 486 rde = rinfo->dir_entries + i; in __get_snap_name() 497 if (rinfo->dir_end) in __get_snap_name() 500 BUG_ON(rinfo->dir_nr <= 0); in __get_snap_name() 501 rde = rinfo->dir_entries + (rinfo->dir_nr - 1); in __get_snap_name() 502 next_offset += rinfo->dir_nr; in __get_snap_name() 553 struct ceph_mds_reply_info_parsed *rinfo = &req->r_reply_info; in ceph_get_name() local 554 memcpy(name, rinfo->dname, rinfo->dname_len); in ceph_get_name() [all …]
|
D | dir.c | 315 struct ceph_mds_reply_info_parsed *rinfo; in ceph_readdir() local 438 rinfo = &req->r_reply_info; in ceph_readdir() 439 if (le32_to_cpu(rinfo->dir_dir->frag) != frag) { in ceph_readdir() 440 frag = le32_to_cpu(rinfo->dir_dir->frag); in ceph_readdir() 441 if (!rinfo->hash_order) { in ceph_readdir() 474 if (rinfo->dir_nr > 0) { in ceph_readdir() 476 rinfo->dir_entries + (rinfo->dir_nr-1); in ceph_readdir() 489 rinfo = &dfi->last_readdir->r_reply_info; in ceph_readdir() 491 dfi->frag, rinfo->dir_nr, ctx->pos, in ceph_readdir() 492 rinfo->dir_nr ? rinfo->dir_entries[0].offset : 0LL); in ceph_readdir() [all …]
|
/Linux-v5.15/drivers/i2c/busses/ |
D | i2c-at91-master.c | 821 struct i2c_bus_recovery_info *rinfo = &dev->rinfo; in at91_init_twi_recovery_gpio() local 823 rinfo->pinctrl = devm_pinctrl_get(&pdev->dev); in at91_init_twi_recovery_gpio() 824 if (!rinfo->pinctrl || IS_ERR(rinfo->pinctrl)) { in at91_init_twi_recovery_gpio() 826 return PTR_ERR(rinfo->pinctrl); in at91_init_twi_recovery_gpio() 828 dev->adapter.bus_recovery_info = rinfo; in at91_init_twi_recovery_gpio() 856 struct i2c_bus_recovery_info *rinfo = &dev->rinfo; in at91_init_twi_recovery_info() local 862 rinfo->recover_bus = at91_twi_recover_bus_cmd; in at91_init_twi_recovery_info() 863 dev->adapter.bus_recovery_info = rinfo; in at91_init_twi_recovery_info()
|
D | i2c-davinci.c | 764 struct i2c_bus_recovery_info *rinfo; in davinci_i2c_probe() local 859 rinfo = &davinci_i2c_gpio_recovery_info; in davinci_i2c_probe() 860 adap->bus_recovery_info = rinfo; in davinci_i2c_probe() 861 rinfo->scl_gpiod = devm_gpiod_get(&pdev->dev, "scl", in davinci_i2c_probe() 863 if (IS_ERR(rinfo->scl_gpiod)) { in davinci_i2c_probe() 864 r = PTR_ERR(rinfo->scl_gpiod); in davinci_i2c_probe() 867 rinfo->sda_gpiod = devm_gpiod_get(&pdev->dev, "sda", GPIOD_IN); in davinci_i2c_probe() 868 if (IS_ERR(rinfo->sda_gpiod)) { in davinci_i2c_probe() 869 r = PTR_ERR(rinfo->sda_gpiod); in davinci_i2c_probe()
|
D | i2c-designware-master.c | 820 struct i2c_bus_recovery_info *rinfo = &dev->rinfo; in i2c_dw_init_recovery_info() local 828 rinfo->scl_gpiod = gpio; in i2c_dw_init_recovery_info() 833 rinfo->sda_gpiod = gpio; in i2c_dw_init_recovery_info() 835 rinfo->recover_bus = i2c_generic_scl_recovery; in i2c_dw_init_recovery_info() 836 rinfo->prepare_recovery = i2c_dw_prepare_recovery; in i2c_dw_init_recovery_info() 837 rinfo->unprepare_recovery = i2c_dw_unprepare_recovery; in i2c_dw_init_recovery_info() 838 adap->bus_recovery_info = rinfo; in i2c_dw_init_recovery_info() 841 rinfo->sda_gpiod ? ",sda" : ""); in i2c_dw_init_recovery_info()
|
D | i2c-imx.c | 204 struct i2c_bus_recovery_info rinfo; member 1306 struct i2c_bus_recovery_info *rinfo = &i2c_imx->rinfo; in i2c_imx_init_recovery_info() local 1318 rinfo->sda_gpiod = devm_gpiod_get(&pdev->dev, "sda", GPIOD_IN); in i2c_imx_init_recovery_info() 1319 rinfo->scl_gpiod = devm_gpiod_get(&pdev->dev, "scl", GPIOD_OUT_HIGH_OPEN_DRAIN); in i2c_imx_init_recovery_info() 1321 if (PTR_ERR(rinfo->sda_gpiod) == -EPROBE_DEFER || in i2c_imx_init_recovery_info() 1322 PTR_ERR(rinfo->scl_gpiod) == -EPROBE_DEFER) { in i2c_imx_init_recovery_info() 1324 } else if (IS_ERR(rinfo->sda_gpiod) || in i2c_imx_init_recovery_info() 1325 IS_ERR(rinfo->scl_gpiod) || in i2c_imx_init_recovery_info() 1333 rinfo->sda_gpiod ? ",sda" : ""); in i2c_imx_init_recovery_info() 1335 rinfo->prepare_recovery = i2c_imx_prepare_recovery; in i2c_imx_init_recovery_info() [all …]
|
/Linux-v5.15/drivers/net/ethernet/cavium/liquidio/ |
D | octeon_droq.c | 40 struct octeon_recv_info *rinfo; member 535 struct octeon_recv_info *rinfo; in octeon_droq_dispatch_pkt() local 542 rinfo = octeon_create_recv_info(oct, droq, cnt, droq->read_idx); in octeon_droq_dispatch_pkt() 543 if (rinfo) { in octeon_droq_dispatch_pkt() 544 struct __dispatch *rdisp = rinfo->rsvd; in octeon_droq_dispatch_pkt() 546 rdisp->rinfo = rinfo; in octeon_droq_dispatch_pkt() 548 rinfo->recv_pkt->rh = *rh; in octeon_droq_dispatch_pkt() 763 rdisp->disp_fn(rdisp->rinfo, in octeon_droq_process_packets() 766 (u16)rdisp->rinfo->recv_pkt->rh.r.opcode, in octeon_droq_process_packets() 767 (u16)rdisp->rinfo->recv_pkt->rh.r.subcode)); in octeon_droq_process_packets() [all …]
|
/Linux-v5.15/net/sctp/ |
D | ulpevent.c | 1018 struct sctp_rcvinfo rinfo; in sctp_ulpevent_read_rcvinfo() local 1023 memset(&rinfo, 0, sizeof(struct sctp_rcvinfo)); in sctp_ulpevent_read_rcvinfo() 1024 rinfo.rcv_sid = event->stream; in sctp_ulpevent_read_rcvinfo() 1025 rinfo.rcv_ssn = event->ssn; in sctp_ulpevent_read_rcvinfo() 1026 rinfo.rcv_ppid = event->ppid; in sctp_ulpevent_read_rcvinfo() 1027 rinfo.rcv_flags = event->flags; in sctp_ulpevent_read_rcvinfo() 1028 rinfo.rcv_tsn = event->tsn; in sctp_ulpevent_read_rcvinfo() 1029 rinfo.rcv_cumtsn = event->cumtsn; in sctp_ulpevent_read_rcvinfo() 1030 rinfo.rcv_assoc_id = sctp_assoc2id(event->asoc); in sctp_ulpevent_read_rcvinfo() 1031 rinfo.rcv_context = event->asoc->default_rcv_context; in sctp_ulpevent_read_rcvinfo() [all …]
|
/Linux-v5.15/drivers/fpga/ |
D | dfl-afu-main.c | 681 struct dfl_fpga_port_region_info rinfo; in afu_ioctl_get_region_info() local 688 if (copy_from_user(&rinfo, arg, minsz)) in afu_ioctl_get_region_info() 691 if (rinfo.argsz < minsz || rinfo.padding) in afu_ioctl_get_region_info() 694 ret = afu_mmio_region_get_by_index(pdata, rinfo.index, ®ion); in afu_ioctl_get_region_info() 698 rinfo.flags = region.flags; in afu_ioctl_get_region_info() 699 rinfo.size = region.size; in afu_ioctl_get_region_info() 700 rinfo.offset = region.offset; in afu_ioctl_get_region_info() 702 if (copy_to_user(arg, &rinfo, sizeof(rinfo))) in afu_ioctl_get_region_info()
|