| /OK3568_Linux_fs/kernel/include/drm/ |
| H A D | i915_pciids.h | 38 #define INTEL_VGA_DEVICE(id, info) { \ argument 42 (unsigned long) info } 44 #define INTEL_QUANTA_VGA_DEVICE(info) { \ argument 48 (unsigned long) info } 50 #define INTEL_I810_IDS(info) \ argument 51 INTEL_VGA_DEVICE(0x7121, info), /* I810 */ \ 52 INTEL_VGA_DEVICE(0x7123, info), /* I810_DC100 */ \ 53 INTEL_VGA_DEVICE(0x7125, info) /* I810_E */ 55 #define INTEL_I815_IDS(info) \ argument 56 INTEL_VGA_DEVICE(0x1132, info) /* I815*/ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/selftests/ |
| H A D | test-drm_format.c | 17 const struct drm_format_info *info = NULL; in igt_check_drm_format_block_width() local 20 FAIL_ON(drm_format_info_block_width(info, 0) != 0); in igt_check_drm_format_block_width() 21 FAIL_ON(drm_format_info_block_width(info, -1) != 0); in igt_check_drm_format_block_width() 22 FAIL_ON(drm_format_info_block_width(info, 1) != 0); in igt_check_drm_format_block_width() 25 info = drm_format_info(DRM_FORMAT_XRGB4444); in igt_check_drm_format_block_width() 26 FAIL_ON(!info); in igt_check_drm_format_block_width() 27 FAIL_ON(drm_format_info_block_width(info, 0) != 1); in igt_check_drm_format_block_width() 28 FAIL_ON(drm_format_info_block_width(info, 1) != 0); in igt_check_drm_format_block_width() 29 FAIL_ON(drm_format_info_block_width(info, -1) != 0); in igt_check_drm_format_block_width() 32 info = drm_format_info(DRM_FORMAT_NV12); in igt_check_drm_format_block_width() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/tty/ |
| H A D | synclink.c | 599 void usc_DisableMasterIrqBit( struct mgsl_struct *info ); 600 void usc_EnableMasterIrqBit( struct mgsl_struct *info ); 601 void usc_EnableInterrupts( struct mgsl_struct *info, u16 IrqMask ); 602 void usc_DisableInterrupts( struct mgsl_struct *info, u16 IrqMask ); 603 void usc_ClearIrqPendingBits( struct mgsl_struct *info, u16 IrqMask ); 663 static u16 usc_InDmaReg( struct mgsl_struct *info, u16 Port ); 664 static void usc_OutDmaReg( struct mgsl_struct *info, u16 Port, u16 Value ); 665 static void usc_DmaCmd( struct mgsl_struct *info, u16 Cmd ); 667 static u16 usc_InReg( struct mgsl_struct *info, u16 Port ); 668 static void usc_OutReg( struct mgsl_struct *info, u16 Port, u16 Value ); [all …]
|
| H A D | synclinkmp.c | 529 static void hdlcdev_tx_done(SLMP_INFO *info); 530 static void hdlcdev_rx(SLMP_INFO *info, char *buf, int size); 531 static int hdlcdev_init(SLMP_INFO *info); 532 static void hdlcdev_exit(SLMP_INFO *info); 537 static int get_stats(SLMP_INFO *info, struct mgsl_icount __user *user_icount); 538 static int get_params(SLMP_INFO *info, MGSL_PARAMS __user *params); 539 static int set_params(SLMP_INFO *info, MGSL_PARAMS __user *params); 540 static int get_txidle(SLMP_INFO *info, int __user *idle_mode); 541 static int set_txidle(SLMP_INFO *info, int idle_mode); 542 static int tx_enable(SLMP_INFO *info, int enable); [all …]
|
| H A D | synclink_gt.c | 41 #define DBGDATA(info, buf, size, label) if (debug_level >= DEBUG_LEVEL_DATA) trace_block((info), (b… argument 400 #define slgt_irq_on(info, mask) \ argument 401 wr_reg16((info), SCR, (unsigned short)(rd_reg16((info), SCR) | (mask))) 402 #define slgt_irq_off(info, mask) \ argument 403 wr_reg16((info), SCR, (unsigned short)(rd_reg16((info), SCR) & ~(mask))) 405 static __u8 rd_reg8(struct slgt_info *info, unsigned int addr); 406 static void wr_reg8(struct slgt_info *info, unsigned int addr, __u8 value); 407 static __u16 rd_reg16(struct slgt_info *info, unsigned int addr); 408 static void wr_reg16(struct slgt_info *info, unsigned int addr, __u16 value); 409 static __u32 rd_reg32(struct slgt_info *info, unsigned int addr); [all …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/arm/ |
| H A D | fas216.c | 141 static inline unsigned char fas216_readb(FAS216_Info *info, unsigned int reg) in fas216_readb() argument 143 unsigned int off = reg << info->scsi.io_shift; in fas216_readb() 144 return readb(info->scsi.io_base + off); in fas216_readb() 147 static inline void fas216_writeb(FAS216_Info *info, unsigned int reg, unsigned int val) in fas216_writeb() argument 149 unsigned int off = reg << info->scsi.io_shift; in fas216_writeb() 150 writeb(val, info->scsi.io_base + off); in fas216_writeb() 153 static void fas216_dumpstate(FAS216_Info *info) in fas216_dumpstate() argument 157 is = fas216_readb(info, REG_IS); in fas216_dumpstate() 158 stat = fas216_readb(info, REG_STAT); in fas216_dumpstate() 159 inst = fas216_readb(info, REG_INST); in fas216_dumpstate() [all …]
|
| H A D | cumana_2.c | 74 FAS216_Info info; member 92 struct cumanascsi2_info *info = ec->irq_data; in cumanascsi_2_irqenable() local 93 writeb(ALATCH_ENA_INT, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_irqenable() 104 struct cumanascsi2_info *info = ec->irq_data; in cumanascsi_2_irqdisable() local 105 writeb(ALATCH_DIS_INT, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_irqdisable() 121 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_terminator_ctl() local 124 info->terms = 1; in cumanascsi_2_terminator_ctl() 125 writeb(ALATCH_ENA_TERM, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_terminator_ctl() 127 info->terms = 0; in cumanascsi_2_terminator_ctl() 128 writeb(ALATCH_DIS_TERM, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_terminator_ctl() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/char/pcmcia/ |
| H A D | synclink_cs.c | 321 #define write_reg(info, reg, val) outb((val),(info)->io_base + (reg)) argument 322 #define read_reg(info, reg) inb((info)->io_base + (reg)) argument 324 #define read_reg16(info, reg) inw((info)->io_base + (reg)) argument 325 #define write_reg16(info, reg, val) outw((val), (info)->io_base + (reg)) argument 327 #define set_reg_bits(info, reg, mask) \ argument 328 write_reg(info, (reg), \ 329 (unsigned char) (read_reg(info, (reg)) | (mask))) 330 #define clear_reg_bits(info, reg, mask) \ argument 331 write_reg(info, (reg), \ 332 (unsigned char) (read_reg(info, (reg)) & ~(mask))) [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/ |
| H A D | pxa3xx_nand.c | 123 #define nand_writel(info, off, val) \ argument 124 writel((val), (info)->mmio_base + (off)) 126 #define nand_readl(info, off) \ argument 127 readl((info)->mmio_base + (off)) 424 struct pxa3xx_nand_info *info = host->info_data; in pxa3xx_nand_set_timing() local 439 info->ndtr0cs0 = ndtr0; in pxa3xx_nand_set_timing() 440 info->ndtr1cs0 = ndtr1; in pxa3xx_nand_set_timing() 441 nand_writel(info, NDTR0CS0, ndtr0); in pxa3xx_nand_set_timing() 442 nand_writel(info, NDTR1CS0, ndtr1); in pxa3xx_nand_set_timing() 448 struct pxa3xx_nand_info *info = host->info_data; in pxa3xx_nand_set_sdr_timing() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/power/supply/ |
| H A D | 88pm860x_charger.c | 116 static int measure_vchg(struct pm860x_charger_info *info, int *data) in measure_vchg() argument 121 ret = pm860x_bulk_read(info->i2c, PM8607_VCHG_MEAS1, 2, buf); in measure_vchg() 129 dev_dbg(info->dev, "%s, vchg: %d mv\n", __func__, *data); in measure_vchg() 134 static void set_vchg_threshold(struct pm860x_charger_info *info, in set_vchg_threshold() argument 144 pm860x_reg_write(info->i2c, PM8607_VCHG_LOWTH, data); in set_vchg_threshold() 145 dev_dbg(info->dev, "VCHG_LOWTH:%dmv, 0x%x\n", min, data); in set_vchg_threshold() 151 pm860x_reg_write(info->i2c, PM8607_VCHG_HIGHTH, data); in set_vchg_threshold() 152 dev_dbg(info->dev, "VCHG_HIGHTH:%dmv, 0x%x\n", max, data); in set_vchg_threshold() 156 static void set_vbatt_threshold(struct pm860x_charger_info *info, in set_vbatt_threshold() argument 166 pm860x_reg_write(info->i2c, PM8607_VBAT_LOWTH, data); in set_vbatt_threshold() [all …]
|
| H A D | 88pm860x_battery.c | 154 static int measure_12bit_voltage(struct pm860x_battery_info *info, in measure_12bit_voltage() argument 160 ret = pm860x_bulk_read(info->i2c, offset, 2, buf); in measure_12bit_voltage() 170 static int measure_vbatt(struct pm860x_battery_info *info, int state, in measure_vbatt() argument 178 ret = measure_12bit_voltage(info, PM8607_VBAT_MEAS1, data); in measure_vbatt() 194 ret = pm860x_bulk_read(info->i2c, PM8607_LDO5, 5, buf); in measure_vbatt() 213 static int measure_current(struct pm860x_battery_info *info, int *data) in measure_current() argument 219 ret = pm860x_bulk_read(info->i2c, PM8607_IBAT_MEAS1, 2, buf); in measure_current() 229 static int set_charger_current(struct pm860x_battery_info *info, int data, in set_charger_current() argument 238 *old = pm860x_reg_read(info->i2c, PM8607_CHG_CTRL2); in set_charger_current() 240 ret = pm860x_set_bits(info->i2c, PM8607_CHG_CTRL2, 0x1f, data); in set_charger_current() [all …]
|
| /OK3568_Linux_fs/external/camera_engine_rkaiq/rkaiq/xcore/ |
| H A D | xcam_buffer.cpp | 26 XCamVideoBufferInfo *info, in xcam_video_buffer_info_reset() argument 34 XCAM_ASSERT (info && format); in xcam_video_buffer_info_reset() 43 info->format = format; in xcam_video_buffer_info_reset() 44 info->width = width; in xcam_video_buffer_info_reset() 45 info->height = height; in xcam_video_buffer_info_reset() 46 info->aligned_width = aligned_width; in xcam_video_buffer_info_reset() 47 info->aligned_height = aligned_height; in xcam_video_buffer_info_reset() 51 info->color_bits = 8; in xcam_video_buffer_info_reset() 52 info->components = 1; in xcam_video_buffer_info_reset() 53 info->strides [0] = aligned_width; in xcam_video_buffer_info_reset() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/ |
| H A D | cfi_flash.c | 185 flash_info_t *info; in flash_get_info() local 188 info = &flash_info[i]; in flash_get_info() 189 if (info->size && info->start[0] <= base && in flash_get_info() 190 base <= info->start[0] + info->size - 1) in flash_get_info() 191 return info; in flash_get_info() 198 unsigned long flash_sector_size(flash_info_t *info, flash_sect_t sect) in flash_sector_size() argument 200 if (sect != (info->sector_count - 1)) in flash_sector_size() 201 return info->start[sect + 1] - info->start[sect]; in flash_sector_size() 203 return info->start[0] + info->size - info->start[sect]; in flash_sector_size() 210 flash_map(flash_info_t *info, flash_sect_t sect, uint offset) in flash_map() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/rtc/ |
| H A D | rtc-s3c.c | 59 void (*irq_handler) (struct s3c_rtc *info, int mask); 60 void (*set_freq) (struct s3c_rtc *info, int freq); 61 void (*enable_tick) (struct s3c_rtc *info, struct seq_file *seq); 62 void (*select_tick_clk) (struct s3c_rtc *info); 63 void (*save_tick_cnt) (struct s3c_rtc *info); 64 void (*restore_tick_cnt) (struct s3c_rtc *info); 65 void (*enable) (struct s3c_rtc *info); 66 void (*disable) (struct s3c_rtc *info); 69 static int s3c_rtc_enable_clk(struct s3c_rtc *info) in s3c_rtc_enable_clk() argument 73 ret = clk_enable(info->rtc_clk); in s3c_rtc_enable_clk() [all …]
|
| /OK3568_Linux_fs/kernel/fs/cifs/ |
| H A D | smbdirect.c | 15 struct smbd_connection *info); 17 struct smbd_connection *info); 19 struct smbd_connection *info, 21 static int allocate_receive_buffers(struct smbd_connection *info, int num_buf); 22 static void destroy_receive_buffers(struct smbd_connection *info); 25 struct smbd_connection *info, struct smbd_response *response); 27 struct smbd_connection *info, 30 struct smbd_connection *info); 33 struct smbd_connection *info, 36 static int smbd_post_send_empty(struct smbd_connection *info); [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/common/ |
| H A D | usb-conn-gpio.c | 66 struct usb_conn_info *info; in usb_conn_detect_cable() local 70 info = container_of(to_delayed_work(work), in usb_conn_detect_cable() 74 id = info->id_gpiod ? in usb_conn_detect_cable() 75 gpiod_get_value_cansleep(info->id_gpiod) : 1; in usb_conn_detect_cable() 76 vbus = info->vbus_gpiod ? in usb_conn_detect_cable() 77 gpiod_get_value_cansleep(info->vbus_gpiod) : id; in usb_conn_detect_cable() 86 dev_dbg(info->dev, "role %d/%d, gpios: id %d, vbus %d\n", in usb_conn_detect_cable() 87 info->last_role, role, id, vbus); in usb_conn_detect_cable() 89 if (info->last_role == role) { in usb_conn_detect_cable() 90 dev_warn(info->dev, "repeated role: %d\n", role); in usb_conn_detect_cable() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/iio/adc/ |
| H A D | exynos_adc.c | 160 void (*init_hw)(struct exynos_adc *info); 161 void (*exit_hw)(struct exynos_adc *info); 162 void (*clear_irq)(struct exynos_adc *info); 163 void (*start_conv)(struct exynos_adc *info, unsigned long addr); 166 static void exynos_adc_unprepare_clk(struct exynos_adc *info) in exynos_adc_unprepare_clk() argument 168 if (info->data->needs_sclk) in exynos_adc_unprepare_clk() 169 clk_unprepare(info->sclk); in exynos_adc_unprepare_clk() 170 clk_unprepare(info->clk); in exynos_adc_unprepare_clk() 173 static int exynos_adc_prepare_clk(struct exynos_adc *info) in exynos_adc_prepare_clk() argument 177 ret = clk_prepare(info->clk); in exynos_adc_prepare_clk() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/acpi/acpica/ |
| H A D | nseval.c | 42 acpi_status acpi_ns_evaluate(struct acpi_evaluate_info *info) in acpi_ns_evaluate() argument 48 if (!info) { in acpi_ns_evaluate() 52 if (!info->node) { in acpi_ns_evaluate() 62 acpi_ns_get_node(info->prefix_node, info->relative_pathname, in acpi_ns_evaluate() 63 ACPI_NS_NO_UPSEARCH, &info->node); in acpi_ns_evaluate() 73 if (acpi_ns_get_type(info->node) == ACPI_TYPE_LOCAL_METHOD_ALIAS) { in acpi_ns_evaluate() 74 info->node = in acpi_ns_evaluate() 76 info->node->object); in acpi_ns_evaluate() 81 info->return_object = NULL; in acpi_ns_evaluate() 82 info->node_flags = info->node->flags; in acpi_ns_evaluate() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/bluetooth/ |
| H A D | bluecard_cs.c | 161 struct bluecard_info *info = from_timer(info, t, timer); in bluecard_activity_led_timeout() local 162 unsigned int iobase = info->p_dev->resource[0]->start; in bluecard_activity_led_timeout() 164 if (test_bit(CARD_ACTIVITY, &(info->hw_state))) { in bluecard_activity_led_timeout() 166 clear_bit(CARD_ACTIVITY, &(info->hw_state)); in bluecard_activity_led_timeout() 167 mod_timer(&(info->timer), jiffies + HZ / 10); in bluecard_activity_led_timeout() 175 static void bluecard_enable_activity_led(struct bluecard_info *info) in bluecard_enable_activity_led() argument 177 unsigned int iobase = info->p_dev->resource[0]->start; in bluecard_enable_activity_led() 180 if (timer_pending(&(info->timer))) in bluecard_enable_activity_led() 183 set_bit(CARD_ACTIVITY, &(info->hw_state)); in bluecard_enable_activity_led() 185 if (test_bit(CARD_HAS_ACTIVITY_LED, &(info->hw_state))) { in bluecard_enable_activity_led() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/soc/rockchip/ |
| H A D | rockchip_system_monitor.c | 251 struct video_info *info, *video_info; in rockchip_find_video_info() local 259 list_for_each_entry(info, &video_info_list, node) { in rockchip_find_video_info() 260 if (info->width == video_info->width && in rockchip_find_video_info() 261 info->height == video_info->height && in rockchip_find_video_info() 262 info->ishevc == video_info->ishevc && in rockchip_find_video_info() 263 info->videoFramerate == video_info->videoFramerate && in rockchip_find_video_info() 264 info->streamBitrate == video_info->streamBitrate) { in rockchip_find_video_info() 267 return info; in rockchip_find_video_info() 488 static int rockchip_get_low_temp_volt(struct monitor_dev_info *info, in rockchip_get_low_temp_volt() argument 494 if (!info->low_temp_adjust_table) in rockchip_get_low_temp_volt() [all …]
|
| /OK3568_Linux_fs/external/xserver/mi/ |
| H A D | mizerarc.c | 98 miZeroArcSetup(xArc * arc, miZeroArcRec * info, Bool ok360) in miZeroArcSetup() argument 109 info->alpha = 4; in miZeroArcSetup() 110 info->beta = 4; in miZeroArcSetup() 111 info->k1 = -8; in miZeroArcSetup() 112 info->k3 = -16; in miZeroArcSetup() 113 info->b = 12; in miZeroArcSetup() 114 info->a = (arc->width << 2) - 12; in miZeroArcSetup() 115 info->d = 17 - (arc->width << 1); in miZeroArcSetup() 117 info->b -= 4; in miZeroArcSetup() 118 info->a += 4; in miZeroArcSetup() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/mac/mac_ax/ |
| H A D | trx_desc.c | 59 struct rtw_t_meta_data *info) in mac_txdesc_len() argument 62 enum rtw_packet_type pkt_type = info->type; in mac_txdesc_len() 68 info->wdinfo_en != 0) in mac_txdesc_len() 75 struct rtw_t_meta_data *info, u8 *buf, u32 len) in txdes_proc_h2c_fwdl() argument 79 if (len != mac_txdesc_len(adapter, info)) { in txdes_proc_h2c_fwdl() 84 if (info->pktlen > AX_TXD_TXPKTSIZE_MSK || !info->pktlen) { in txdes_proc_h2c_fwdl() 85 PLTFM_MSG_ERR("[ERR] illegal txpktsize %d\n", info->pktlen); in txdes_proc_h2c_fwdl() 91 (info->type == RTW_PHL_PKT_TYPE_FWDL ? AX_TXD_FWDL_EN : 0)); in txdes_proc_h2c_fwdl() 93 wdb->dword2 = cpu_to_le32(SET_WORD(info->pktlen, AX_TXD_TXPKTSIZE)); in txdes_proc_h2c_fwdl() 103 struct rtw_t_meta_data *info, in txdes_proc_hv() argument [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/mac/mac_ax/ |
| H A D | trx_desc.c | 59 struct rtw_t_meta_data *info) in mac_txdesc_len() argument 62 enum rtw_packet_type pkt_type = info->type; in mac_txdesc_len() 68 info->wdinfo_en != 0) in mac_txdesc_len() 75 struct rtw_t_meta_data *info, u8 *buf, u32 len) in txdes_proc_h2c_fwdl() argument 79 if (len != mac_txdesc_len(adapter, info)) { in txdes_proc_h2c_fwdl() 84 if (info->pktlen > AX_TXD_TXPKTSIZE_MSK || !info->pktlen) { in txdes_proc_h2c_fwdl() 85 PLTFM_MSG_ERR("[ERR] illegal txpktsize %d\n", info->pktlen); in txdes_proc_h2c_fwdl() 91 (info->type == RTW_PHL_PKT_TYPE_FWDL ? AX_TXD_FWDL_EN : 0)); in txdes_proc_h2c_fwdl() 93 wdb->dword2 = cpu_to_le32(SET_WORD(info->pktlen, AX_TXD_TXPKTSIZE)); in txdes_proc_h2c_fwdl() 103 struct rtw_t_meta_data *info, in txdes_proc_hv() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/input/misc/ |
| H A D | twl6040-vibra.c | 55 struct vibra_info *info = data; in twl6040_vib_irq_handler() local 56 struct twl6040 *twl6040 = info->twl6040; in twl6040_vib_irq_handler() 61 dev_warn(info->dev, "Left Vibrator overcurrent detected\n"); in twl6040_vib_irq_handler() 66 dev_warn(info->dev, "Right Vibrator overcurrent detected\n"); in twl6040_vib_irq_handler() 74 static void twl6040_vibra_enable(struct vibra_info *info) in twl6040_vibra_enable() argument 76 struct twl6040 *twl6040 = info->twl6040; in twl6040_vibra_enable() 79 ret = regulator_bulk_enable(ARRAY_SIZE(info->supplies), info->supplies); in twl6040_vibra_enable() 81 dev_err(info->dev, "failed to enable regulators %d\n", ret); in twl6040_vibra_enable() 85 twl6040_power(info->twl6040, 1); in twl6040_vibra_enable() 104 info->enabled = true; in twl6040_vibra_enable() [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/ptrace/ |
| H A D | ptrace-pkey.c | 69 static int child(struct shared_info *info) in child() argument 77 ret = wait_parent(&info->child_sync); in child() 85 CHILD_FAIL_IF(pkey1 < 0, &info->child_sync); in child() 91 CHILD_FAIL_IF(pkey2 < 0, &info->child_sync); in child() 94 CHILD_FAIL_IF(pkey3 < 0, &info->child_sync); in child() 96 info->amr1 |= 3ul << pkeyshift(pkey1); in child() 97 info->amr2 |= 3ul << pkeyshift(pkey2); in child() 102 info->invalid_amr = info->amr2 | (~0x0UL & ~info->expected_uamor); in child() 108 info->expected_iamr |= 1ul << pkeyshift(pkey1); in child() 110 info->expected_iamr &= ~(1ul << pkeyshift(pkey1)); in child() [all …]
|