Home
last modified time | relevance | path

Searched refs:df (Results 1 – 25 of 35) sorted by relevance

12

/drivers/devfreq/
Dgovernor_simpleondemand.c21 static int devfreq_simple_ondemand_func(struct devfreq *df, in devfreq_simple_ondemand_func() argument
29 struct devfreq_simple_ondemand_data *data = df->data; in devfreq_simple_ondemand_func()
30 unsigned long max = (df->max_freq) ? df->max_freq : UINT_MAX; in devfreq_simple_ondemand_func()
32 err = devfreq_update_stats(df); in devfreq_simple_ondemand_func()
36 stat = &df->last_status; in devfreq_simple_ondemand_func()
88 if (df->min_freq && *freq < df->min_freq) in devfreq_simple_ondemand_func()
89 *freq = df->min_freq; in devfreq_simple_ondemand_func()
90 if (df->max_freq && *freq > df->max_freq) in devfreq_simple_ondemand_func()
91 *freq = df->max_freq; in devfreq_simple_ondemand_func()
Dgovernor_userspace.c25 static int devfreq_userspace_func(struct devfreq *df, unsigned long *freq) in devfreq_userspace_func() argument
27 struct userspace_data *data = df->data; in devfreq_userspace_func()
32 if (df->max_freq && adjusted_freq > df->max_freq) in devfreq_userspace_func()
33 adjusted_freq = df->max_freq; in devfreq_userspace_func()
35 if (df->min_freq && adjusted_freq < df->min_freq) in devfreq_userspace_func()
36 adjusted_freq = df->min_freq; in devfreq_userspace_func()
40 *freq = df->previous_freq; /* No user freq specified yet */ in devfreq_userspace_func()
Ddevfreq.c923 struct devfreq *df = to_devfreq(dev); in governor_store() local
938 if (df->governor == governor) { in governor_store()
941 } else if ((df->governor && df->governor->immutable) || in governor_store()
947 if (df->governor) { in governor_store()
948 ret = df->governor->event_handler(df, DEVFREQ_GOV_STOP, NULL); in governor_store()
951 __func__, df->governor->name, ret); in governor_store()
955 df->governor = governor; in governor_store()
956 strncpy(df->governor_name, governor->name, DEVFREQ_NAME_LEN); in governor_store()
957 ret = df->governor->event_handler(df, DEVFREQ_GOV_START, NULL); in governor_store()
960 __func__, df->governor->name, ret); in governor_store()
[all …]
Dgovernor.h72 static inline int devfreq_update_stats(struct devfreq *df) in devfreq_update_stats() argument
74 return df->profile->get_dev_status(df->dev.parent, &df->last_status); in devfreq_update_stats()
Dgovernor_performance.c16 static int devfreq_performance_func(struct devfreq *df, in devfreq_performance_func() argument
23 if (!df->max_freq) in devfreq_performance_func()
26 *freq = df->max_freq; in devfreq_performance_func()
Dgovernor_powersave.c16 static int devfreq_powersave_func(struct devfreq *df, in devfreq_powersave_func() argument
23 *freq = df->min_freq; in devfreq_powersave_func()
/drivers/pinctrl/pxa/
Dpinctrl-pxa2xx.c72 struct pxa_desc_function *df; in pxa_desc_by_func_group() local
78 for (df = pin->functions; df->name; df++) in pxa_desc_by_func_group()
79 if (!strcmp(df->name, func_name)) in pxa_desc_by_func_group()
80 return df; in pxa_desc_by_func_group()
146 struct pxa_desc_function *df; in pxa2xx_pmx_set_mux() local
153 df = pxa_desc_by_func_group(pctl, group->name, in pxa2xx_pmx_set_mux()
155 if (!df) in pxa2xx_pmx_set_mux()
163 pin, df->muxval >> 1, df->muxval & 0x1); in pxa2xx_pmx_set_mux()
168 val = (val & ~(0x3 << shift)) | ((df->muxval >> 1) << shift); in pxa2xx_pmx_set_mux()
172 val = (val & ~BIT(pin % 32)) | ((df->muxval & 1) ? BIT(pin % 32) : 0); in pxa2xx_pmx_set_mux()
[all …]
/drivers/thermal/
Ddevfreq_cooling.c135 struct devfreq *df = dfc->devfreq; in devfreq_cooling_set_cur_state() local
136 struct device *dev = df->dev.parent; in devfreq_cooling_set_cur_state()
177 static unsigned long get_voltage(struct devfreq *df, unsigned long freq) in get_voltage() argument
179 struct device *dev = df->dev.parent; in get_voltage()
218 struct devfreq *df = dfc->devfreq; in get_static_power() local
224 voltage = get_voltage(df, freq); in get_static_power()
229 return dfc->power_ops->get_static_power(df, voltage); in get_static_power()
278 struct devfreq *df = dfc->devfreq; in devfreq_cooling_get_requested_power() local
279 struct devfreq_dev_status *status = &df->last_status; in devfreq_cooling_get_requested_power()
294 voltage = get_voltage(df, freq); in devfreq_cooling_get_requested_power()
[all …]
/drivers/clk/rockchip/
Dclk.h381 df, go, gs, gf) \ argument
395 .div_flags = df, \
401 #define COMPOSITE_NOMUX(_id, cname, pname, f, mo, ds, dw, df, \ argument
413 .div_flags = df, \
420 df, dt, go, gs, gf) \ argument
431 .div_flags = df, \
457 ds, dw, df) \ argument
471 .div_flags = df, \
476 mw, mf, ds, dw, df, dt) \ argument
490 .div_flags = df, \
[all …]
/drivers/isdn/hisax/
Dhfc_pci.c336 dfifo_type *df; in receive_dmsg() local
339 df = &((fifo_area *) (cs->hw.hfcpci.fifos))->d_chan.d_rx; in receive_dmsg()
344 while (((df->f1 & D_FREG_MASK) != (df->f2 & D_FREG_MASK)) && count--) { in receive_dmsg()
345 zp = &df->za[df->f2 & D_FREG_MASK]; in receive_dmsg()
352 df->f1, df->f2, zp->z1, zp->z2, rcnt); in receive_dmsg()
355 (df->data[zp->z1])) { in receive_dmsg()
357 debugl1(cs, "empty_fifo hfcpci packet inv. len %d or crc %d", rcnt, df->data[zp->z1]); in receive_dmsg()
361 df->f2 = ((df->f2 + 1) & MAX_D_FRAMES) | (MAX_D_FRAMES + 1); /* next buffer */ in receive_dmsg()
362 df->za[df->f2 & D_FREG_MASK].z2 = (zp->z2 + rcnt) & (D_FIFO_SIZE - 1); in receive_dmsg()
373 ptr1 = df->data + zp->z2; /* start of data */ in receive_dmsg()
[all …]
Dhfc4s8s_l1.c634 u_char f1, f2, df; in rx_d_frame() local
651 df = MAX_F_CNT + 1 + f1 - f2; in rx_d_frame()
653 df = f1 - f2; in rx_d_frame()
655 if (!df) in rx_d_frame()
678 if (df == 1) { in rx_d_frame()
/drivers/isdn/hardware/mISDN/
Dhfcpci.c471 struct dfifo *df; in receive_dmsg() local
474 df = &((union fifo_area *)(hc->hw.fifos))->d_chan.d_rx; in receive_dmsg()
475 while (((df->f1 & D_FREG_MASK) != (df->f2 & D_FREG_MASK)) && count--) { in receive_dmsg()
476 zp = &df->za[df->f2 & D_FREG_MASK]; in receive_dmsg()
484 df->f1, df->f2, in receive_dmsg()
490 (df->data[le16_to_cpu(zp->z1)])) { in receive_dmsg()
496 df->data[le16_to_cpu(zp->z1)]); in receive_dmsg()
500 df->f2 = ((df->f2 + 1) & MAX_D_FRAMES) | in receive_dmsg()
502 df->za[df->f2 & D_FREG_MASK].z2 = in receive_dmsg()
522 ptr1 = df->data + le16_to_cpu(zp->z2); in receive_dmsg()
[all …]
/drivers/regulator/
Dad5398.c222 const struct ad5398_current_data_format *df = in ad5398_probe() local
238 chip->min_uA = df->min_uA; in ad5398_probe()
239 chip->max_uA = df->max_uA; in ad5398_probe()
240 chip->current_level = 1 << df->current_bits; in ad5398_probe()
241 chip->current_offset = df->current_offset; in ad5398_probe()
/drivers/staging/rtl8723bs/include/
Ddrv_types.h655 int df = atomic_read(&adapter_to_dvobj(padapter)->disable_func); in RTW_DISABLE_FUNC() local
656 df |= func_bit; in RTW_DISABLE_FUNC()
657 atomic_set(&adapter_to_dvobj(padapter)->disable_func, df); in RTW_DISABLE_FUNC()
662 int df = atomic_read(&adapter_to_dvobj(padapter)->disable_func); in RTW_ENABLE_FUNC() local
663 df &= ~(func_bit); in RTW_ENABLE_FUNC()
664 atomic_set(&adapter_to_dvobj(padapter)->disable_func, df); in RTW_ENABLE_FUNC()
/drivers/clk/samsung/
Dclk.h187 #define __DIV(_id, dname, cname, pname, o, s, w, f, df, a, t) \ argument
197 .div_flags = df, \
208 #define DIV_F(_id, cname, pname, o, s, w, f, df) \ argument
209 __DIV(_id, NULL, cname, pname, o, s, w, f, df, NULL, NULL)
/drivers/ipack/devices/
Dscc2698.h66 u8 df, cts; /* Stop counter timer of block */ member
84 u8 df, r3; /* reserved */ member
/drivers/net/wimax/i2400m/
Dcontrol.c1354 struct i2400m_tlv_config_d2h_data_format df; in i2400m_dev_initialize() local
1383 df.hdr.type = in i2400m_dev_initialize()
1385 df.hdr.length = cpu_to_le16( in i2400m_dev_initialize()
1386 sizeof(df) - sizeof(df.hdr)); in i2400m_dev_initialize()
1387 df.format = 1; in i2400m_dev_initialize()
1388 args[argc++] = &df.hdr; in i2400m_dev_initialize()
/drivers/media/platform/exynos4-is/
Dfimc-m2m.c100 struct fimc_frame *sf, *df; in fimc_device_run() local
113 df = &ctx->d_frame; in fimc_device_run()
118 fimc_prepare_dma_offset(ctx, df); in fimc_device_run()
127 ret = fimc_prepare_addr(ctx, &dst_vb->vb2_buf, df, &df->paddr); in fimc_device_run()
160 fimc_hw_set_output_addr(fimc, &df->paddr, -1); in fimc_device_run()
/drivers/infiniband/sw/rxe/
Drxe_net.c307 __u8 tos, __u8 ttl, __be16 df, bool xnet) in prepare_ipv4_hdr() argument
324 iph->frag_off = df; in prepare_ipv4_hdr()
365 __be16 df = htons(IP_DF); in prepare4() local
382 av->grh.traffic_class, av->grh.hop_limit, df, xnet); in prepare4()
/drivers/mmc/core/
Dmmc_test.c3180 struct mmc_test_dbgfs_file *df, *dfs; local
3184 list_for_each_entry_safe(df, dfs, &mmc_test_file_test, link) {
3185 if (card && df->card != card)
3187 debugfs_remove(df->file);
3188 list_del(&df->link);
3189 kfree(df);
3199 struct mmc_test_dbgfs_file *df; local
3212 df = kmalloc(sizeof(*df), GFP_KERNEL);
3213 if (!df) {
3218 df->card = card;
[all …]
/drivers/video/fbdev/matrox/
Dmatroxfb_maven.c340 unsigned char df; in maven_compute_deflicker() local
342 df = (md->version == MGATVO_B?0x40:0x00); in maven_compute_deflicker()
348 df |= 0xB1; in maven_compute_deflicker()
351 df |= 0xA2; in maven_compute_deflicker()
354 return df; in maven_compute_deflicker()
/drivers/net/can/rcar/
Drcar_canfd.c392 #define RCANFD_C_RFDF(x, df) (RCANFD_C_RFOFFSET + 0x08 + \ argument
393 (0x10 * (x)) + (0x04 * (df)))
401 #define RCANFD_C_CFDF(ch, idx, df) (RCANFD_C_CFOFFSET + 0x08 + \ argument
403 (0x04 * (df)))
441 #define RCANFD_F_RFDF(x, df) (RCANFD_F_RFOFFSET + 0x0c + \ argument
442 (0x80 * (x)) + (0x04 * (df)))
452 #define RCANFD_F_CFDF(ch, idx, df) (RCANFD_F_CFOFFSET + 0x0c + \ argument
454 (0x04 * (df)))
/drivers/media/platform/qcom/camss-8x16/
Dcamss-csid.c381 u8 dt, dt_shift, df; in csid_set_stream() local
429 df = csid_get_fmt_entry( in csid_set_stream()
448 df = csid_get_fmt_entry( in csid_set_stream()
461 val = (df << 4) | 0x3; in csid_set_stream()
/drivers/net/ethernet/amazon/ena/
Dena_eth_com.h61 u8 df; /* Don't fragment */ member
/drivers/video/fbdev/aty/
Dmach64_gx.c165 u8 df, vco_div_count, ref_div_count; in aty_pll_514_to_var() local
167 df = pll->ibm514.m >> 6; in aty_pll_514_to_var()
171 return ((par->ref_clk_per * ref_div_count) << (3 - df))/ in aty_pll_514_to_var()

12