| /OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/deps/boost/1.65.1/include/boost/preprocessor/repetition/ |
| H A D | repeat.hpp | 34 # define BOOST_PP_REPEAT_CHECK_BOOST_PP_REPEAT_1(c, m, d) 0 argument 35 # define BOOST_PP_REPEAT_CHECK_BOOST_PP_REPEAT_2(c, m, d) 0 argument 36 # define BOOST_PP_REPEAT_CHECK_BOOST_PP_REPEAT_3(c, m, d) 0 argument 38 # define BOOST_PP_REPEAT_1(c, m, d) BOOST_PP_REPEAT_1_I(c, m, d) argument 39 # define BOOST_PP_REPEAT_2(c, m, d) BOOST_PP_REPEAT_2_I(c, m, d) argument 40 # define BOOST_PP_REPEAT_3(c, m, d) BOOST_PP_REPEAT_3_I(c, m, d) argument 41 # define BOOST_PP_REPEAT_4(c, m, d) BOOST_PP_ERROR(0x0003) argument 43 # define BOOST_PP_REPEAT_1_I(c, m, d) BOOST_PP_REPEAT_1_ ## c(m, d) argument 44 # define BOOST_PP_REPEAT_2_I(c, m, d) BOOST_PP_REPEAT_2_ ## c(m, d) argument 45 # define BOOST_PP_REPEAT_3_I(c, m, d) BOOST_PP_REPEAT_3_ ## c(m, d) argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/gadget/udc/aspeed-vhub/ |
| H A D | dev.c | 37 void ast_vhub_dev_irq(struct ast_vhub_dev *d) in ast_vhub_dev_irq() argument 39 u32 istat = readl(d->regs + AST_VHUB_DEV_ISR); in ast_vhub_dev_irq() 41 writel(istat, d->regs + AST_VHUB_DEV_ISR); in ast_vhub_dev_irq() 44 ast_vhub_ep0_handle_ack(&d->ep0, true); in ast_vhub_dev_irq() 46 ast_vhub_ep0_handle_ack(&d->ep0, false); in ast_vhub_dev_irq() 48 ast_vhub_ep0_handle_setup(&d->ep0); in ast_vhub_dev_irq() 51 static void ast_vhub_dev_enable(struct ast_vhub_dev *d) in ast_vhub_dev_enable() argument 55 if (d->enabled) in ast_vhub_dev_enable() 59 ast_vhub_reset_ep0(d); in ast_vhub_dev_enable() 66 if (d->gadget.speed == USB_SPEED_HIGH) in ast_vhub_dev_enable() [all …]
|
| /OK3568_Linux_fs/yocto/poky/bitbake/lib/bb/tests/ |
| H A D | data.py | 42 self.d = bb.data.init() 43 self.d["foo"] = "value_of_foo" 44 self.d["bar"] = "value_of_bar" 45 self.d["value_of_foo"] = "value_of_'value_of_foo'" 48 val = self.d.expand("${foo}") 52 val = self.d.expand("${${foo}}") 56 val = self.d.expand("${${foo}} ${bar}") 60 val = self.d.expand("${@5*12}") 64 val = self.d.expand("${@'boo ' + '${foo}'}") 68 val = self.d.expand("${@d.getVar('foo') + ' ${bar}'}") [all …]
|
| /OK3568_Linux_fs/kernel/lib/raid6/ |
| H A D | avx2.c | 38 int d, z, z0; in raid6_avx21_gen_syndrome() local 49 for (d = 0; d < bytes; d += 32) { in raid6_avx21_gen_syndrome() 50 asm volatile("prefetchnta %0" : : "m" (dptr[z0][d])); in raid6_avx21_gen_syndrome() 51 asm volatile("vmovdqa %0,%%ymm2" : : "m" (dptr[z0][d]));/* P[0] */ in raid6_avx21_gen_syndrome() 52 asm volatile("prefetchnta %0" : : "m" (dptr[z0-1][d])); in raid6_avx21_gen_syndrome() 54 asm volatile("vmovdqa %0,%%ymm6" : : "m" (dptr[z0-1][d])); in raid6_avx21_gen_syndrome() 56 asm volatile("prefetchnta %0" : : "m" (dptr[z][d])); in raid6_avx21_gen_syndrome() 63 asm volatile("vmovdqa %0,%%ymm6" : : "m" (dptr[z][d])); in raid6_avx21_gen_syndrome() 72 asm volatile("vmovntdq %%ymm2,%0" : "=m" (p[d])); in raid6_avx21_gen_syndrome() 74 asm volatile("vmovntdq %%ymm4,%0" : "=m" (q[d])); in raid6_avx21_gen_syndrome() [all …]
|
| H A D | sse2.c | 40 int d, z, z0; in raid6_sse21_gen_syndrome() local 51 for ( d = 0 ; d < bytes ; d += 16 ) { in raid6_sse21_gen_syndrome() 52 asm volatile("prefetchnta %0" : : "m" (dptr[z0][d])); in raid6_sse21_gen_syndrome() 53 asm volatile("movdqa %0,%%xmm2" : : "m" (dptr[z0][d])); /* P[0] */ in raid6_sse21_gen_syndrome() 54 asm volatile("prefetchnta %0" : : "m" (dptr[z0-1][d])); in raid6_sse21_gen_syndrome() 56 asm volatile("movdqa %0,%%xmm6" : : "m" (dptr[z0-1][d])); in raid6_sse21_gen_syndrome() 58 asm volatile("prefetchnta %0" : : "m" (dptr[z][d])); in raid6_sse21_gen_syndrome() 66 asm volatile("movdqa %0,%%xmm6" : : "m" (dptr[z][d])); in raid6_sse21_gen_syndrome() 76 asm volatile("movntdq %%xmm2,%0" : "=m" (p[d])); in raid6_sse21_gen_syndrome() 78 asm volatile("movntdq %%xmm4,%0" : "=m" (q[d])); in raid6_sse21_gen_syndrome() [all …]
|
| H A D | avx512.c | 48 int d, z, z0; in raid6_avx5121_gen_syndrome() local 61 for (d = 0; d < bytes; d += 64) { in raid6_avx5121_gen_syndrome() 68 : "m" (dptr[z0][d]), "m" (dptr[z0-1][d])); in raid6_avx5121_gen_syndrome() 80 : "m" (dptr[z][d])); in raid6_avx5121_gen_syndrome() 94 : "m" (p[d]), "m" (q[d])); in raid6_avx5121_gen_syndrome() 106 int d, z, z0; in raid6_avx5121_xor_syndrome() local 117 for (d = 0 ; d < bytes ; d += 64) { in raid6_avx5121_xor_syndrome() 122 : "m" (dptr[z0][d]), "m" (p[d])); in raid6_avx5121_xor_syndrome() 135 : "m" (dptr[z][d])); in raid6_avx5121_xor_syndrome() 153 : "m" (q[d]), "m" (p[d])); in raid6_avx5121_xor_syndrome() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/block/aoe/ |
| H A D | aoedev.c | 18 static void freetgt(struct aoedev *d, struct aoetgt *t); 19 static void skbpoolfree(struct aoedev *d); 138 aoedev_put(struct aoedev *d) in aoedev_put() argument 143 d->ref--; in aoedev_put() 150 struct aoedev *d; in dummy_timer() local 152 d = from_timer(d, t, timer); in dummy_timer() 153 if (d->flags & DEVFL_TKILL) in dummy_timer() 155 d->timer.expires = jiffies + HZ; in dummy_timer() 156 add_timer(&d->timer); in dummy_timer() 160 aoe_failip(struct aoedev *d) in aoe_failip() argument [all …]
|
| H A D | aoeblk.c | 38 struct aoedev *d = disk->private_data; in aoedisk_show_state() local 42 (d->flags & DEVFL_UP) ? "up" : "down", in aoedisk_show_state() 43 (d->flags & DEVFL_KICKME) ? ",kickme" : in aoedisk_show_state() 44 (d->nopen && !(d->flags & DEVFL_UP)) ? ",closewait" : ""); in aoedisk_show_state() 51 struct aoedev *d = disk->private_data; in aoedisk_show_mac() local 52 struct aoetgt *t = d->targets[0]; in aoedisk_show_mac() 62 struct aoedev *d = disk->private_data; in aoedisk_show_netif() local 71 t = d->targets; in aoedisk_show_netif() 72 te = t + d->ntargets; in aoedisk_show_netif() 100 struct aoedev *d = disk->private_data; in aoedisk_show_fwver() local [all …]
|
| /OK3568_Linux_fs/external/mpp/utils/ |
| H A D | dictionary.c | 68 static int dictionary_grow(dictionary * d) in dictionary_grow() argument 74 new_val = (char**) calloc(d->size * 2, sizeof * d->val); in dictionary_grow() 75 new_key = (char**) calloc(d->size * 2, sizeof * d->key); in dictionary_grow() 76 new_hash = (unsigned*) calloc(d->size * 2, sizeof * d->hash); in dictionary_grow() 88 memcpy(new_val, d->val, d->size * sizeof(char *)); in dictionary_grow() 89 memcpy(new_key, d->key, d->size * sizeof(char *)); in dictionary_grow() 90 memcpy(new_hash, d->hash, d->size * sizeof(unsigned)); in dictionary_grow() 92 free(d->val); in dictionary_grow() 93 free(d->key); in dictionary_grow() 94 free(d->hash); in dictionary_grow() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/mcde/ |
| H A D | mcde_dsi.c | 69 struct mcde_dsi *d; in mcde_dsi_irq() local 73 d = host_to_mcde_dsi(mdsi->host); in mcde_dsi_irq() 75 dev_dbg(d->dev, "%s called\n", __func__); in mcde_dsi_irq() 77 val = readl(d->regs + DSI_DIRECT_CMD_STS_FLAG); in mcde_dsi_irq() 79 dev_dbg(d->dev, "DSI_DIRECT_CMD_STS_FLAG = %08x\n", val); in mcde_dsi_irq() 81 dev_dbg(d->dev, "direct command write completed\n"); in mcde_dsi_irq() 84 dev_dbg(d->dev, "direct command TE received\n"); in mcde_dsi_irq() 87 dev_err(d->dev, "direct command ACK ERR received\n"); in mcde_dsi_irq() 89 dev_err(d->dev, "direct command read ERR received\n"); in mcde_dsi_irq() 91 writel(val, d->regs + DSI_DIRECT_CMD_STS_CLR); in mcde_dsi_irq() [all …]
|
| /OK3568_Linux_fs/kernel/tools/lib/bpf/ |
| H A D | btf_dump.c | 104 static const char *btf_name_of(const struct btf_dump *d, __u32 name_off) in btf_name_of() argument 106 return btf__name_by_offset(d->btf, name_off); in btf_name_of() 109 static void btf_dump_printf(const struct btf_dump *d, const char *fmt, ...) in btf_dump_printf() argument 114 d->printf_fn(d->opts.ctx, fmt, args); in btf_dump_printf() 118 static int btf_dump_mark_referenced(struct btf_dump *d); 119 static int btf_dump_resize(struct btf_dump *d); 126 struct btf_dump *d; in btf_dump__new() local 129 d = calloc(1, sizeof(struct btf_dump)); in btf_dump__new() 130 if (!d) in btf_dump__new() 133 d->btf = btf; in btf_dump__new() [all …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-multimedia/recipes-multimedia/cdparanoia/files/ |
| H A D | 0002-interface-remove-C-reserved-keyword.patch | 39 static int timed_ioctl(cdrom_drive *d, int fd, int command, void *arg){ 42 - int ret1=clock_gettime(d->private->clock,&tv1); 43 + int ret1=clock_gettime(d->priv->clock,&tv1); 45 - int ret3=clock_gettime(d->private->clock,&tv2); 46 + int ret3=clock_gettime(d->priv->clock,&tv2); 48 - d->private->last_milliseconds=-1; 49 + d->priv->last_milliseconds=-1; 51 - d->private->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000. + (tv2.tv_nsec-tv1.tv_nsec)/1000… 52 + d->priv->last_milliseconds = (tv2.tv_sec-tv1.tv_sec)*1000. + (tv2.tv_nsec-tv1.tv_nsec)/1000000… 60 @@ -39,9 +39,9 @@ int cdda_close(cdrom_drive *d){ [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mtd/ |
| H A D | mtdswap.c | 160 #define TREE_ROOT(d, name) (&d->trees[MTDSWAP_ ## name].root) argument 161 #define TREE_EMPTY(d, name) (TREE_ROOT(d, name)->rb_node == NULL) argument 162 #define TREE_NONEMPTY(d, name) (!TREE_EMPTY(d, name)) argument 163 #define TREE_COUNT(d, name) (d->trees[MTDSWAP_ ## name].count) argument 182 static int mtdswap_gc(struct mtdswap_dev *d, unsigned int background); 184 static loff_t mtdswap_eb_offset(struct mtdswap_dev *d, struct swap_eb *eb) in mtdswap_eb_offset() argument 186 return (loff_t)(eb - d->eb_data) * d->mtd->erasesize; in mtdswap_eb_offset() 189 static void mtdswap_eb_detach(struct mtdswap_dev *d, struct swap_eb *eb) in mtdswap_eb_detach() argument 196 oldidx = tp - &d->trees[0]; in mtdswap_eb_detach() 198 d->trees[oldidx].count--; in mtdswap_eb_detach() [all …]
|
| /OK3568_Linux_fs/kernel/scripts/dtc/ |
| H A D | data.c | 8 void data_free(struct data d) in data_free() argument 12 m = d.markers; in data_free() 20 if (d.val) in data_free() 21 free(d.val); in data_free() 24 struct data data_grow_for(struct data d, int xlen) in data_grow_for() argument 30 return d; in data_grow_for() 32 nd = d; in data_grow_for() 36 while ((d.len + xlen) > newsize) in data_grow_for() 39 nd.val = xrealloc(d.val, newsize); in data_grow_for() 46 struct data d; in data_copy_mem() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/usb/dvb-usb-v2/ |
| H A D | dvb_usb_core.c | 22 static int dvb_usbv2_download_firmware(struct dvb_usb_device *d, in dvb_usbv2_download_firmware() argument 27 dev_dbg(&d->udev->dev, "%s:\n", __func__); in dvb_usbv2_download_firmware() 29 if (!d->props->download_firmware) { in dvb_usbv2_download_firmware() 34 ret = request_firmware(&fw, name, &d->udev->dev); in dvb_usbv2_download_firmware() 36 dev_err(&d->udev->dev, in dvb_usbv2_download_firmware() 42 dev_info(&d->udev->dev, "%s: downloading firmware from file '%s'\n", in dvb_usbv2_download_firmware() 45 ret = d->props->download_firmware(d, fw); in dvb_usbv2_download_firmware() 52 dev_dbg(&d->udev->dev, "%s: failed=%d\n", __func__, ret); in dvb_usbv2_download_firmware() 56 static int dvb_usbv2_i2c_init(struct dvb_usb_device *d) in dvb_usbv2_i2c_init() argument 59 dev_dbg(&d->udev->dev, "%s:\n", __func__); in dvb_usbv2_i2c_init() [all …]
|
| /OK3568_Linux_fs/u-boot/scripts/dtc/ |
| H A D | data.c | 23 void data_free(struct data d) in data_free() argument 27 m = d.markers; in data_free() 35 if (d.val) in data_free() 36 free(d.val); in data_free() 39 struct data data_grow_for(struct data d, int xlen) in data_grow_for() argument 45 return d; in data_grow_for() 47 nd = d; in data_grow_for() 51 while ((d.len + xlen) > newsize) in data_grow_for() 54 nd.val = xrealloc(d.val, newsize); in data_grow_for() 61 struct data d; in data_copy_mem() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/clk/ti/ |
| H A D | adpll.c | 182 static const char *ti_adpll_clk_get_name(struct ti_adpll_data *d, in ti_adpll_clk_get_name() argument 190 err = of_property_read_string_index(d->np, in ti_adpll_clk_get_name() 197 name = devm_kasprintf(d->dev, GFP_KERNEL, "%08lx.adpll.%s", in ti_adpll_clk_get_name() 198 d->pa, postfix); in ti_adpll_clk_get_name() 206 static int ti_adpll_setup_clock(struct ti_adpll_data *d, struct clk *clock, in ti_adpll_setup_clock() argument 214 d->clocks[index].clk = clock; in ti_adpll_setup_clock() 215 d->clocks[index].unregister = unregister; in ti_adpll_setup_clock() 221 dev_warn(d->dev, "clock %s con_id lookup may fail\n", in ti_adpll_setup_clock() 223 snprintf(con_id, 16, "pll%03lx%s", d->pa & 0xfff, postfix + 1); in ti_adpll_setup_clock() 227 d->clocks[index].cl = cl; in ti_adpll_setup_clock() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/base/regmap/ |
| H A D | regmap-irq.c | 57 struct regmap_irq_chip_data *d = irq_data_get_irq_chip_data(data); in regmap_irq_lock() local 59 mutex_lock(&d->lock); in regmap_irq_lock() 62 static int regmap_irq_update_bits(struct regmap_irq_chip_data *d, in regmap_irq_update_bits() argument 66 if (d->chip->mask_writeonly) in regmap_irq_update_bits() 67 return regmap_write_bits(d->map, reg, mask, val); in regmap_irq_update_bits() 69 return regmap_update_bits(d->map, reg, mask, val); in regmap_irq_update_bits() 74 struct regmap_irq_chip_data *d = irq_data_get_irq_chip_data(data); in regmap_irq_sync_unlock() local 75 struct regmap *map = d->map; in regmap_irq_sync_unlock() 81 if (d->chip->runtime_pm) { in regmap_irq_sync_unlock() 88 if (d->clear_status) { in regmap_irq_sync_unlock() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/sh/intc/ |
| H A D | core.c | 74 struct intc_desc_int *d, in intc_register_irq() argument 84 radix_tree_insert(&d->tree, enum_id, intc_irq_xlate_get(irq)); in intc_register_irq() 95 data[0] = intc_get_mask_handle(desc, d, enum_id, 0); in intc_register_irq() 96 data[1] = intc_get_prio_handle(desc, d, enum_id, 0); in intc_register_irq() 106 data[0] = data[0] ? data[0] : intc_get_mask_handle(desc, d, enum_id, 1); in intc_register_irq() 107 data[1] = data[1] ? data[1] : intc_get_prio_handle(desc, d, enum_id, 1); in intc_register_irq() 117 irq_set_chip_and_handler_name(irq, &d->chip, handle_level_irq, in intc_register_irq() 132 hp = d->prio + d->nr_prio; in intc_register_irq() 144 d->nr_prio++; in intc_register_irq() 148 data[0] = intc_get_sense_handle(desc, d, enum_id); in intc_register_irq() [all …]
|
| /OK3568_Linux_fs/kernel/net/bluetooth/rfcomm/ |
| H A D | core.c | 56 static int rfcomm_queue_disc(struct rfcomm_dlc *d); 58 static int rfcomm_send_pn(struct rfcomm_session *s, int cr, struct rfcomm_dlc *d); 208 static int rfcomm_check_security(struct rfcomm_dlc *d) in rfcomm_check_security() argument 210 struct sock *sk = d->session->sock->sk; in rfcomm_check_security() 215 switch (d->sec_level) { in rfcomm_check_security() 228 return hci_conn_security(conn->hcon, d->sec_level, auth_type, in rfcomm_check_security() 229 d->out); in rfcomm_check_security() 259 struct rfcomm_dlc *d = from_timer(d, t, timer); in rfcomm_dlc_timeout() local 261 BT_DBG("dlc %p state %ld", d, d->state); in rfcomm_dlc_timeout() 263 set_bit(RFCOMM_TIMED_OUT, &d->flags); in rfcomm_dlc_timeout() [all …]
|
| /OK3568_Linux_fs/kernel/net/core/ |
| H A D | gen_stats.c | 24 gnet_stats_copy(struct gnet_dump *d, int type, void *buf, int size, int padattr) in gnet_stats_copy() argument 26 if (nla_put_64bit(d->skb, type, size, buf, padattr)) in gnet_stats_copy() 31 if (d->lock) in gnet_stats_copy() 32 spin_unlock_bh(d->lock); in gnet_stats_copy() 33 kfree(d->xstats); in gnet_stats_copy() 34 d->xstats = NULL; in gnet_stats_copy() 35 d->xstats_len = 0; in gnet_stats_copy() 61 struct gnet_dump *d, int padattr) in gnet_stats_start_copy_compat() argument 64 memset(d, 0, sizeof(*d)); in gnet_stats_start_copy_compat() 67 d->tail = (struct nlattr *)skb_tail_pointer(skb); in gnet_stats_start_copy_compat() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/usb/dvb-usb/ |
| H A D | dvb-usb-init.c | 26 static int dvb_usb_adapter_init(struct dvb_usb_device *d, short *adapter_nrs) in dvb_usb_adapter_init() argument 31 for (n = 0; n < d->props.num_adapters; n++) { in dvb_usb_adapter_init() 32 adap = &d->adapter[n]; in dvb_usb_adapter_init() 33 adap->dev = d; in dvb_usb_adapter_init() 36 memcpy(&adap->props, &d->props.adapter[n], sizeof(struct dvb_usb_adapter_properties)); in dvb_usb_adapter_init() 41 if (d->udev->speed == USB_SPEED_FULL && !(props->caps & DVB_USB_ADAP_HAS_PID_FILTER)) { in dvb_usb_adapter_init() 46 if ((d->udev->speed == USB_SPEED_FULL && props->caps & DVB_USB_ADAP_HAS_PID_FILTER) || in dvb_usb_adapter_init() 98 d->num_adapters_initialized++; in dvb_usb_adapter_init() 99 d->state |= DVB_USB_STATE_DVB; in dvb_usb_adapter_init() 106 if (d->props.generic_bulk_ctrl_endpoint != 0) { in dvb_usb_adapter_init() [all …]
|
| H A D | dvb-usb-remote.c | 48 struct dvb_usb_device *d = input_get_drvdata(dev); in legacy_dvb_usb_getkeycode() local 49 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in legacy_dvb_usb_getkeycode() 50 unsigned int keymap_size = d->props.rc.legacy.rc_map_size; in legacy_dvb_usb_getkeycode() 71 struct dvb_usb_device *d = input_get_drvdata(dev); in legacy_dvb_usb_setkeycode() local 72 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in legacy_dvb_usb_setkeycode() 73 unsigned int keymap_size = d->props.rc.legacy.rc_map_size; in legacy_dvb_usb_setkeycode() 111 struct dvb_usb_device *d = in legacy_dvb_usb_read_remote_control() local 123 if (d->props.rc.legacy.rc_query(d,&event,&state)) { in legacy_dvb_usb_read_remote_control() 134 d->last_event = event; in legacy_dvb_usb_read_remote_control() 135 input_event(d->input_dev, EV_KEY, event, 1); in legacy_dvb_usb_read_remote_control() [all …]
|
| /OK3568_Linux_fs/kernel/lib/crypto/ |
| H A D | des.c | 582 #define ROUND(L, R, A, B, K, d) \ argument 583 B = K[0]; A = K[1]; K += d; \ 609 #define DES_PC2(a, b, c, d) (T4(d) | T3(c) | T2(b) | T1(a)) argument 626 unsigned long a, b, c, d, w; in des_ekey() local 629 d = k[4]; d &= 0x0e; d <<= 4; d |= k[0] & 0x1e; d = pc1[d]; in des_ekey() 634 pe[15 * 2 + 0] = DES_PC2(a, b, c, d); d = rs[d]; in des_ekey() 635 pe[14 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey() 636 pe[13 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey() 637 pe[12 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey() 638 pe[11 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/thermal/intel/int340x_thermal/ |
| H A D | int3406_thermal.c | 37 #define ACPI_TO_RAW(v, d) (d->raw_bd->props.max_brightness * v / 100) argument 38 #define RAW_TO_ACPI(v, d) (v * 100 / d->raw_bd->props.max_brightness) argument 44 struct int3406_thermal_data *d = cooling_dev->devdata; in int3406_thermal_get_max_state() local 46 *state = d->upper_limit - d->lower_limit; in int3406_thermal_get_max_state() 54 struct int3406_thermal_data *d = cooling_dev->devdata; in int3406_thermal_set_cur_state() local 57 if (state > d->upper_limit - d->lower_limit) in int3406_thermal_set_cur_state() 60 acpi_level = d->br->levels[d->upper_limit - state]; in int3406_thermal_set_cur_state() 62 raw_level = ACPI_TO_RAW(acpi_level, d); in int3406_thermal_set_cur_state() 64 return backlight_device_set_brightness(d->raw_bd, raw_level); in int3406_thermal_set_cur_state() 71 struct int3406_thermal_data *d = cooling_dev->devdata; in int3406_thermal_get_cur_state() local [all …]
|