/drivers/gpu/drm/atmel-hlcdc/ |
D | atmel_hlcdc_crtc.c | 61 struct drm_display_mode *adj = &c->state->adjusted_mode; in atmel_hlcdc_crtc_mode_set_nofb() local 72 vm.vfront_porch = adj->crtc_vsync_start - adj->crtc_vdisplay; in atmel_hlcdc_crtc_mode_set_nofb() 73 vm.vback_porch = adj->crtc_vtotal - adj->crtc_vsync_end; in atmel_hlcdc_crtc_mode_set_nofb() 74 vm.vsync_len = adj->crtc_vsync_end - adj->crtc_vsync_start; in atmel_hlcdc_crtc_mode_set_nofb() 75 vm.hfront_porch = adj->crtc_hsync_start - adj->crtc_hdisplay; in atmel_hlcdc_crtc_mode_set_nofb() 76 vm.hback_porch = adj->crtc_htotal - adj->crtc_hsync_end; in atmel_hlcdc_crtc_mode_set_nofb() 77 vm.hsync_len = adj->crtc_hsync_end - adj->crtc_hsync_start; in atmel_hlcdc_crtc_mode_set_nofb() 89 (adj->crtc_hdisplay - 1) | in atmel_hlcdc_crtc_mode_set_nofb() 90 ((adj->crtc_vdisplay - 1) << 16)); in atmel_hlcdc_crtc_mode_set_nofb() 95 mode_rate = adj->crtc_clock * 1000; in atmel_hlcdc_crtc_mode_set_nofb() [all …]
|
/drivers/rtc/ |
D | rtc-rx8025.c | 422 static int rx8025_get_clock_adjust(struct device *dev, int *adj) in rx8025_get_clock_adjust() argument 431 *adj = digoff >= 64 ? digoff - 128 : digoff; in rx8025_get_clock_adjust() 432 if (*adj > 0) in rx8025_get_clock_adjust() 433 (*adj)--; in rx8025_get_clock_adjust() 434 *adj *= -RX8025_ADJ_RESOLUTION; in rx8025_get_clock_adjust() 439 static int rx8025_set_clock_adjust(struct device *dev, int adj) in rx8025_set_clock_adjust() argument 445 adj /= -RX8025_ADJ_RESOLUTION; in rx8025_set_clock_adjust() 446 if (adj > RX8025_ADJ_DATA_MAX) in rx8025_set_clock_adjust() 447 adj = RX8025_ADJ_DATA_MAX; in rx8025_set_clock_adjust() 448 else if (adj < RX8025_ADJ_DATA_MIN) in rx8025_set_clock_adjust() [all …]
|
/drivers/gpu/drm/armada/ |
D | armada_crtc.c | 384 const struct drm_display_mode *mode, struct drm_display_mode *adj) in armada_drm_crtc_mode_fixup() argument 391 adj->flags & DRM_MODE_FLAG_INTERLACE) in armada_drm_crtc_mode_fixup() 395 ret = dcrtc->variant->compute_clock(dcrtc, adj, NULL); in armada_drm_crtc_mode_fixup() 498 struct drm_display_mode *adj = &dcrtc->crtc.mode; in armada_drm_crtc_calculate_csc() local 513 if ((adj->hdisplay == 1280 && adj->vdisplay == 720 && in armada_drm_crtc_calculate_csc() 514 !(adj->flags & DRM_MODE_FLAG_INTERLACE)) || in armada_drm_crtc_calculate_csc() 515 (adj->hdisplay == 1920 && adj->vdisplay == 1080)) { in armada_drm_crtc_calculate_csc() 534 struct drm_display_mode *mode, struct drm_display_mode *adj, in armada_drm_crtc_mode_set() argument 546 interlaced = !!(adj->flags & DRM_MODE_FLAG_INTERLACE); in armada_drm_crtc_mode_set() 551 rm = adj->crtc_hsync_start - adj->crtc_hdisplay; in armada_drm_crtc_mode_set() [all …]
|
/drivers/ide/ |
D | pdc202xx_new.c | 136 u8 adj = (drive->dn & 1) ? 0x08 : 0x00; in pdcnew_set_dma_mode() local 151 set_indexed_reg(hwif, 0x10 + adj, in pdcnew_set_dma_mode() 153 set_indexed_reg(hwif, 0x11 + adj, in pdcnew_set_dma_mode() 155 set_indexed_reg(hwif, 0x12 + adj, in pdcnew_set_dma_mode() 158 set_indexed_reg(hwif, 0x0e + adj, in pdcnew_set_dma_mode() 160 set_indexed_reg(hwif, 0x0f + adj, in pdcnew_set_dma_mode() 165 u8 tmp = get_indexed_reg(hwif, 0x10 + adj); in pdcnew_set_dma_mode() 167 set_indexed_reg(hwif, 0x10 + adj, tmp & 0x7f); in pdcnew_set_dma_mode() 174 u8 adj = (drive->dn & 1) ? 0x08 : 0x00; in pdcnew_set_pio_mode() local 178 set_indexed_reg(hwif, 0x0c + adj, pio_timings[pio].reg0c); in pdcnew_set_pio_mode() [all …]
|
/drivers/block/drbd/ |
D | drbd_vli.h | 148 u64 adj = 1; in vli_decode_bits() local 153 *out = ((in & ((~0ULL) >> (64-t))) >> b) + adj; \ in vli_decode_bits() 156 adj += 1ULL << (t - b); \ in vli_decode_bits() 171 u64 adj = 1; in __vli_encode_bits() local 180 *out = ((in - adj) << b) | v; \ in __vli_encode_bits() 183 adj = max + 1; \ in __vli_encode_bits()
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_ptp.c | 42 u64 adj; in stmmac_adjust_freq() local 50 adj = addend; in stmmac_adjust_freq() 51 adj *= ppb; in stmmac_adjust_freq() 52 diff = div_u64(adj, 1000000000ULL); in stmmac_adjust_freq()
|
/drivers/usb/gadget/udc/ |
D | r8a66597-udc.h | 203 int adj = 0; in r8a66597_write_fifo() local 225 adj = 0x03; /* 32-bit wide */ in r8a66597_write_fifo() 227 adj = 0x01; /* 16-bit wide */ in r8a66597_write_fifo() 233 iowrite8(buf[i], fifoaddr + adj - (i & adj)); in r8a66597_write_fifo()
|
/drivers/macintosh/ |
D | windfarm_pid.c | 92 s32 error, target, sval, adj; in wf_cpu_pid_run() local 121 adj = min(st->param.ttarget, sval); in wf_cpu_pid_run() 123 DBG("integ: %lx, sval: %lx, adj: %lx\n", integ, sval, adj); in wf_cpu_pid_run() 132 prop = st->last_delta = (new_temp - adj); in wf_cpu_pid_run()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_ptp.c | 124 u64 adj, freq, diff; in i40e_ptp_adjfreq() local 133 adj = ACCESS_ONCE(pf->ptp_base_adj); in i40e_ptp_adjfreq() 135 freq = adj; in i40e_ptp_adjfreq() 140 adj -= diff; in i40e_ptp_adjfreq() 142 adj += diff; in i40e_ptp_adjfreq() 144 wr32(hw, I40E_PRTTSYN_INC_L, adj & 0xFFFFFFFF); in i40e_ptp_adjfreq() 145 wr32(hw, I40E_PRTTSYN_INC_H, adj >> 32); in i40e_ptp_adjfreq()
|
/drivers/video/backlight/ |
D | corgi_lcd.c | 194 int adj; in lcdtg_set_phadadj() local 199 adj = sharpsl_param.phadadj; in lcdtg_set_phadadj() 200 adj = (adj < 0) ? PHACTRL_PHASE_MANUAL : in lcdtg_set_phadadj() 201 PHACTRL_PHASE_MANUAL | ((adj & 0xf) << 1); in lcdtg_set_phadadj() 206 adj = (DEFAULT_PHAD_QVGA << 1) | PHACTRL_PHASE_MANUAL; in lcdtg_set_phadadj() 210 corgi_ssp_lcdtg_send(lcd, PHACTRL_ADRS, adj); in lcdtg_set_phadadj()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | en_clock.c | 122 u64 adj; in mlx4_en_phc_adjfreq() local 134 adj = mult; in mlx4_en_phc_adjfreq() 135 adj *= delta; in mlx4_en_phc_adjfreq() 136 diff = div_u64(adj, 1000000000ULL); in mlx4_en_phc_adjfreq()
|
/drivers/ptp/ |
D | ptp_ixp46x.c | 138 u64 adj; in ptp_ixp_adjfreq() local 149 adj = addend; in ptp_ixp_adjfreq() 150 adj *= ppb; in ptp_ixp_adjfreq() 151 diff = div_u64(adj, 1000000000ULL); in ptp_ixp_adjfreq()
|
D | ptp_pch.c | 414 u64 adj; in ptp_pch_adjfreq() local 425 adj = addend; in ptp_pch_adjfreq() 426 adj *= ppb; in ptp_pch_adjfreq() 427 diff = div_u64(adj, 1000000000ULL); in ptp_pch_adjfreq()
|
/drivers/net/ethernet/ti/ |
D | cpts.c | 132 u64 adj; in cpts_ptp_adjfreq() local 143 adj = mult; in cpts_ptp_adjfreq() 144 adj *= ppb; in cpts_ptp_adjfreq() 145 diff = div_u64(adj, 1000000000ULL); in cpts_ptp_adjfreq()
|
/drivers/staging/android/ |
D | lowmemorykiller.c | 442 module_param_cb(adj, &lowmem_adj_array_ops, 445 __MODULE_PARM_TYPE(adj, "array of short"); 447 module_param_array_named(adj, lowmem_adj, short, &lowmem_adj_size,
|
D | Kconfig | 47 /sys/module/lowmemorykiller/parameters/adj and convert them
|
/drivers/net/ethernet/freescale/ |
D | gianfar_ptp.c | 285 u64 adj; in ptp_gianfar_adjfreq() local 295 adj = tmr_add; in ptp_gianfar_adjfreq() 296 adj *= ppb; in ptp_gianfar_adjfreq() 297 diff = div_u64(adj, 1000000000ULL); in ptp_gianfar_adjfreq()
|
/drivers/media/platform/ |
D | rcar_jpu.c | 922 struct jpu_q_data *src_q_data, *dst_q_data, *orig, adj, *ref; in jpu_streamon() local 929 adj = *src_q_data; in jpu_streamon() 934 adj = *dst_q_data; in jpu_streamon() 940 adj.format.width = ref->format.width; in jpu_streamon() 941 adj.format.height = ref->format.height; in jpu_streamon() 943 __jpu_try_fmt(ctx, NULL, &adj.format, adj_type); in jpu_streamon() 945 if (adj.format.width != orig->format.width || in jpu_streamon() 946 adj.format.height != orig->format.height) { in jpu_streamon()
|
/drivers/gpu/drm/i915/ |
D | i915_irq.c | 1062 int new_delay, adj, min, max; in gen6_pm_rps_work() local 1089 adj = dev_priv->rps.last_adj; in gen6_pm_rps_work() 1096 adj = 0; in gen6_pm_rps_work() 1098 if (adj > 0) in gen6_pm_rps_work() 1099 adj *= 2; in gen6_pm_rps_work() 1101 adj = IS_CHERRYVIEW(dev_priv) ? 2 : 1; in gen6_pm_rps_work() 1106 if (new_delay < dev_priv->rps.efficient_freq - adj) { in gen6_pm_rps_work() 1108 adj = 0; in gen6_pm_rps_work() 1111 adj = 0; in gen6_pm_rps_work() 1117 adj = 0; in gen6_pm_rps_work() [all …]
|
/drivers/ata/ |
D | pata_pdc2027x.c | 200 u8 adj = (adev->devno) ? 0x08 : 0x00; in dev_mmio() local 201 return port_mmio(ap, offset) + adj; in dev_mmio()
|
/drivers/net/ethernet/adi/ |
D | bfin_mac.c | 946 u64 adj; in bfin_ptp_adjfreq() local 957 adj = addend; in bfin_ptp_adjfreq() 958 adj *= ppb; in bfin_ptp_adjfreq() 959 diff = div_u64(adj, 1000000000ULL); in bfin_ptp_adjfreq()
|
/drivers/gpu/drm/tegra/ |
D | sor.c | 336 u32 mask = 0x08, adj = 0, value; in tegra_sor_dp_term_calibrate() local 348 adj |= mask; in tegra_sor_dp_term_calibrate() 352 value |= SOR_PLL1_TMDS_TERMADJ(adj); in tegra_sor_dp_term_calibrate() 359 adj &= ~mask; in tegra_sor_dp_term_calibrate() 366 value |= SOR_PLL1_TMDS_TERMADJ(adj); in tegra_sor_dp_term_calibrate()
|
/drivers/media/usb/gspca/ |
D | zc3xx.c | 5732 int g, i, adj, gp1, gp2; in setcontrast() local 5759 adj = 0; in setcontrast() 5763 - delta_c[i] * contrast / 256 - adj / 2; in setcontrast() 5770 adj--; in setcontrast() 5772 adj++; in setcontrast()
|
/drivers/gpu/drm/nouveau/ |
D | nv50_display.c | 869 int adj; in nv50_crtc_set_color_vibrance() local 871 adj = (nv_crtc->color_vibrance > 0) ? 50 : 0; in nv50_crtc_set_color_vibrance() 872 vib = ((nv_crtc->color_vibrance * 2047 + adj) / 100) & 0xfff; in nv50_crtc_set_color_vibrance()
|