Home
last modified time | relevance | path

Searched refs:nf (Results 1 – 25 of 28) sorted by relevance

12

/drivers/media/pci/ivtv/
Divtv-yuv.c983 struct yuv_frame_info *nf = &yi->new_frame_info[frame]; in ivtv_yuv_setup_frame() local
988 int update = nf->update; in ivtv_yuv_setup_frame()
991 nf->src_x = args->src.left; in ivtv_yuv_setup_frame()
992 nf->src_y = args->src.top; in ivtv_yuv_setup_frame()
993 nf->src_w = args->src.width; in ivtv_yuv_setup_frame()
994 nf->src_h = args->src.height; in ivtv_yuv_setup_frame()
995 nf->dst_x = args->dst.left; in ivtv_yuv_setup_frame()
996 nf->dst_y = args->dst.top; in ivtv_yuv_setup_frame()
997 nf->dst_w = args->dst.width; in ivtv_yuv_setup_frame()
998 nf->dst_h = args->dst.height; in ivtv_yuv_setup_frame()
[all …]
/drivers/net/wireless/ath/ath9k/
Dcalib.c330 static void ath9k_hw_nf_sanitize(struct ath_hw *ah, s16 *nf) in ath9k_hw_nf_sanitize() argument
342 if (!nf[i]) in ath9k_hw_nf_sanitize()
347 (i >= 3 ? "ext" : "ctl"), i % 3, nf[i]); in ath9k_hw_nf_sanitize()
349 if (nf[i] > limit->max) { in ath9k_hw_nf_sanitize()
352 i, nf[i], limit->max); in ath9k_hw_nf_sanitize()
353 nf[i] = limit->max; in ath9k_hw_nf_sanitize()
354 } else if (nf[i] < limit->min) { in ath9k_hw_nf_sanitize()
357 i, nf[i], limit->min); in ath9k_hw_nf_sanitize()
358 nf[i] = limit->nominal; in ath9k_hw_nf_sanitize()
366 int16_t nf, nfThresh; in ath9k_hw_getnf() local
[all …]
Dar9002_phy.c479 int16_t nf; in ar9002_hw_do_getnf() local
481 nf = MS(REG_READ(ah, AR_PHY_CCA), AR9280_PHY_MINCCA_PWR); in ar9002_hw_do_getnf()
482 nfarray[0] = sign_extend32(nf, 8); in ar9002_hw_do_getnf()
484 nf = MS(REG_READ(ah, AR_PHY_EXT_CCA), AR9280_PHY_EXT_MINCCA_PWR); in ar9002_hw_do_getnf()
486 nfarray[3] = sign_extend32(nf, 8); in ar9002_hw_do_getnf()
491 nf = MS(REG_READ(ah, AR_PHY_CH1_CCA), AR9280_PHY_CH1_MINCCA_PWR); in ar9002_hw_do_getnf()
492 nfarray[1] = sign_extend32(nf, 8); in ar9002_hw_do_getnf()
494 nf = MS(REG_READ(ah, AR_PHY_CH1_EXT_CCA), AR9280_PHY_CH1_EXT_MINCCA_PWR); in ar9002_hw_do_getnf()
496 nfarray[4] = sign_extend32(nf, 8); in ar9002_hw_do_getnf()
Dar5008_phy.c1177 int16_t nf; in ar5008_hw_do_getnf() local
1179 nf = MS(REG_READ(ah, AR_PHY_CCA), AR_PHY_MINCCA_PWR); in ar5008_hw_do_getnf()
1180 nfarray[0] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1182 nf = MS(REG_READ(ah, AR_PHY_CH1_CCA), AR_PHY_CH1_MINCCA_PWR); in ar5008_hw_do_getnf()
1183 nfarray[1] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1185 nf = MS(REG_READ(ah, AR_PHY_CH2_CCA), AR_PHY_CH2_MINCCA_PWR); in ar5008_hw_do_getnf()
1186 nfarray[2] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1191 nf = MS(REG_READ(ah, AR_PHY_EXT_CCA), AR_PHY_EXT_MINCCA_PWR); in ar5008_hw_do_getnf()
1192 nfarray[3] = sign_extend32(nf, 8); in ar5008_hw_do_getnf()
1194 nf = MS(REG_READ(ah, AR_PHY_CH1_EXT_CCA), AR_PHY_CH1_EXT_MINCCA_PWR); in ar5008_hw_do_getnf()
[all …]
Dar9003_phy.c1123 int16_t nf; in ar9003_hw_do_getnf() local
1128 nf = MS(REG_READ(ah, ah->nf_regs[i]), in ar9003_hw_do_getnf()
1130 nfarray[i] = sign_extend32(nf, 8); in ar9003_hw_do_getnf()
1135 nf = MS(REG_READ(ah, ah->nf_regs[ext_idx]), in ar9003_hw_do_getnf()
1137 nfarray[ext_idx] = sign_extend32(nf, 8); in ar9003_hw_do_getnf()
/drivers/clk/
Dclk-prima2.c118 u32 nf = (cfg0 & (BIT(13) - 1)) + 1; in pll_clk_recalc_rate() local
122 return fin / MHZ * nf / nr / od * MHZ; in pll_clk_recalc_rate()
129 unsigned long fin, nf, nr, od; in pll_clk_round_rate() local
137 nf = rate / MHZ; in pll_clk_round_rate()
138 if (nf > BIT(13)) in pll_clk_round_rate()
139 nf = BIT(13); in pll_clk_round_rate()
140 if (nf < 1) in pll_clk_round_rate()
141 nf = 1; in pll_clk_round_rate()
150 return fin * nf / (nr * od); in pll_clk_round_rate()
157 unsigned long fin, nf, nr, od, reg; in pll_clk_set_rate() local
[all …]
/drivers/video/console/
Dsticore.c485 struct sti_rom_font *nf; in sti_select_fbfont() local
503 nf = kzalloc(size, GFP_KERNEL); in sti_select_fbfont()
504 if (!nf) in sti_select_fbfont()
507 nf->first_char = 0; in sti_select_fbfont()
508 nf->last_char = 255; in sti_select_fbfont()
509 nf->width = fbfont->width; in sti_select_fbfont()
510 nf->height = fbfont->height; in sti_select_fbfont()
511 nf->font_type = STI_FONT_HPROMAN8; in sti_select_fbfont()
512 nf->bytes_per_char = bpc; in sti_select_fbfont()
513 nf->next_font = 0; in sti_select_fbfont()
[all …]
/drivers/block/aoe/
Daoecmd.c593 struct frame *nf; in reassign_frame() local
596 nf = newframe(f->t->d); in reassign_frame()
597 if (!nf) in reassign_frame()
599 if (nf->t == f->t) { in reassign_frame()
600 aoe_freetframe(nf); in reassign_frame()
604 skb = nf->skb; in reassign_frame()
605 nf->skb = f->skb; in reassign_frame()
606 nf->buf = f->buf; in reassign_frame()
607 nf->bcnt = f->bcnt; in reassign_frame()
608 nf->lba = f->lba; in reassign_frame()
[all …]
/drivers/gpu/drm/gma500/
Doaktrail_hdmi.c102 struct intel_range vco, np, nr, nf; member
108 int nf; member
125 .nf = { .min = NF_MIN, .max = NF_MAX },
184 int np, nr, nf; in oaktrail_hdmi_find_dpll() local
202 nf = DIV_ROUND_CLOSEST((target * 10 * np * nr), refclk); in oaktrail_hdmi_find_dpll()
203 DRM_DEBUG_KMS("np, nr, nf %d %d %d\n", np, nr, nf); in oaktrail_hdmi_find_dpll()
211 best_clock->nf = (nf << 14); in oaktrail_hdmi_find_dpll()
317 REG_WRITE(DPLL_DIV_CTRL, ((clock.nf << 6) | clock.nr)); in oaktrail_crtc_hdmi_mode_set()
318 REG_WRITE(DPLL_ADJUST, ((clock.nf >> 14) - 1)); in oaktrail_crtc_hdmi_mode_set()
/drivers/md/
Ddm-bufio.c732 …atic struct dm_buffer *__alloc_buffer_wait_no_callback(struct dm_bufio_client *c, enum new_flag nf) in __alloc_buffer_wait_no_callback() argument
755 if (nf == NF_PREFETCH) in __alloc_buffer_wait_no_callback()
775 static struct dm_buffer *__alloc_buffer_wait(struct dm_bufio_client *c, enum new_flag nf) in __alloc_buffer_wait() argument
777 struct dm_buffer *b = __alloc_buffer_wait_no_callback(c, nf); in __alloc_buffer_wait()
900 enum new_flag nf, int *need_submit) in __bufio_new() argument
910 if (nf == NF_GET) in __bufio_new()
913 new_b = __alloc_buffer_wait(c, nf); in __bufio_new()
935 if (nf == NF_FRESH) { in __bufio_new()
946 if (nf == NF_PREFETCH) in __bufio_new()
955 if (nf == NF_GET && unlikely(test_bit(B_READING, &b->state))) in __bufio_new()
[all …]
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c448 struct qlcnic_skb_frag *nf; in qlcnic_map_tx_skb() local
454 nf = &pbuf->frag_array[0]; in qlcnic_map_tx_skb()
461 nf->dma = map; in qlcnic_map_tx_skb()
462 nf->length = skb_headlen(skb); in qlcnic_map_tx_skb()
466 nf = &pbuf->frag_array[i+1]; in qlcnic_map_tx_skb()
472 nf->dma = map; in qlcnic_map_tx_skb()
473 nf->length = skb_frag_size(frag); in qlcnic_map_tx_skb()
480 nf = &pbuf->frag_array[i+1]; in qlcnic_map_tx_skb()
481 pci_unmap_page(pdev, nf->dma, nf->length, PCI_DMA_TODEVICE); in qlcnic_map_tx_skb()
484 nf = &pbuf->frag_array[0]; in qlcnic_map_tx_skb()
[all …]
/drivers/net/wireless/libertas/
Dcmd.c17 #define CAL_NF(nf) ((s32)(-(s32)(nf))) argument
18 #define CAL_RSSI(snr, nf) ((s32)((s32)(snr) + CAL_NF(nf))) argument
706 int lbs_get_rssi(struct lbs_private *priv, s8 *rssi, s8 *nf) in lbs_get_rssi() argument
714 BUG_ON(nf == NULL); in lbs_get_rssi()
723 *nf = CAL_NF(le16_to_cpu(cmd.nf)); in lbs_get_rssi()
724 *rssi = CAL_RSSI(le16_to_cpu(cmd.n_or_snr), le16_to_cpu(cmd.nf)); in lbs_get_rssi()
Dcmd.h130 int lbs_get_rssi(struct lbs_private *priv, s8 *snr, s8 *nf);
Dhost.h348 u8 nf; member
637 __le16 nf; /* most recent beacon noise floor */ member
Drx.c249 radiotap_hdr.antsignal = prxpd->snr + prxpd->nf; in process_rxed_802_11_packet()
/drivers/staging/media/davinci_vpfe/
Ddm365_ipipe.c230 struct vpfe_ipipe_nf *nf = &ipipe->config.nf1; in ipipe_set_nf_params() local
234 nf = &ipipe->config.nf2; in ipipe_set_nf_params()
237 memset((void *)nf, 0, sizeof(struct vpfe_ipipe_nf)); in ipipe_set_nf_params()
242 memcpy(nf, nf_param, sizeof(struct vpfe_ipipe_nf)); in ipipe_set_nf_params()
243 if (ipipe_validate_nf_params(nf) < 0) { in ipipe_set_nf_params()
249 ipipe_set_d2f_regs(ipipe->base_addr, id, nf); in ipipe_set_nf_params()
268 struct vpfe_ipipe_nf *nf = &ipipe->config.nf1; in ipipe_get_nf_params() local
271 nf = &ipipe->config.nf2; in ipipe_get_nf_params()
273 memcpy(nf_param, nf, sizeof(struct vpfe_ipipe_nf)); in ipipe_get_nf_params()
/drivers/media/platform/omap3isp/
Disppreview.c532 const struct omap3isp_prev_nf *nf = &params->nf; in preview_config_noisefilter() local
535 isp_reg_writel(isp, nf->spread, OMAP3_ISP_IOMEM_PREV, ISPPRV_NF); in preview_config_noisefilter()
539 isp_reg_writel(isp, nf->table[i], in preview_config_noisefilter()
843 offsetof(struct prev_params, nf),
844 FIELD_SIZEOF(struct prev_params, nf),
845 offsetof(struct omap3isp_prev_update_config, nf),
1334 params->nf.spread = FLR_NF_STRGTH; in preview_init_params()
1335 memcpy(params->nf.table, noise_filter_table, sizeof(params->nf.table)); in preview_init_params()
Disppreview.h97 struct omap3isp_prev_nf nf; member
/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_main.c1930 struct netxen_skb_frag *nf; in netxen_map_tx_skb() local
1936 nf = &pbuf->frag_array[0]; in netxen_map_tx_skb()
1943 nf->dma = map; in netxen_map_tx_skb()
1944 nf->length = skb_headlen(skb); in netxen_map_tx_skb()
1948 nf = &pbuf->frag_array[i+1]; in netxen_map_tx_skb()
1955 nf->dma = map; in netxen_map_tx_skb()
1956 nf->length = skb_frag_size(frag); in netxen_map_tx_skb()
1963 nf = &pbuf->frag_array[i+1]; in netxen_map_tx_skb()
1964 pci_unmap_page(pdev, nf->dma, nf->length, PCI_DMA_TODEVICE); in netxen_map_tx_skb()
1965 nf->dma = 0ULL; in netxen_map_tx_skb()
[all …]
/drivers/gpu/drm/omapdrm/
Dtcm-sita.c66 struct nearness_factor *nf);
656 struct nearness_factor *nf) in get_nearness_factor() argument
662 nf->x = (s32)(area->p0.x - field->p0.x) * 1000 / in get_nearness_factor()
664 nf->y = (s32)(area->p0.y - field->p0.y) * 1000 / in get_nearness_factor()
/drivers/net/wireless/ath/ath5k/
Dphy.c1602 s16 nf, threshold; in ath5k_hw_update_noise_floor() local
1618 nf = ath5k_hw_read_measured_noise_floor(ah); in ath5k_hw_update_noise_floor()
1621 if (nf > threshold) { in ath5k_hw_update_noise_floor()
1625 nf, threshold); in ath5k_hw_update_noise_floor()
1627 nf = AR5K_TUNE_CCA_MAX_GOOD_VALUE; in ath5k_hw_update_noise_floor()
1630 ath5k_hw_update_nfcal_hist(ah, nf); in ath5k_hw_update_noise_floor()
1631 nf = ath5k_hw_get_median_noise_floor(ah); in ath5k_hw_update_noise_floor()
1635 val |= (nf * 2) & AR5K_PHY_NF_M; in ath5k_hw_update_noise_floor()
1657 ah->ah_noise_floor = nf; in ath5k_hw_update_noise_floor()
1662 "noise floor calibrated: %d\n", nf); in ath5k_hw_update_noise_floor()
/drivers/media/i2c/
Dnoon010pc30.c551 const struct noon010_format *nf; in noon010_set_fmt() local
555 nf = noon010_try_fmt(sd, &fmt->format); in noon010_set_fmt()
569 info->curr_fmt = nf; in noon010_set_fmt()
/drivers/net/wireless/mwifiex/
Dutil.c174 CAL_RSSI(rx_pd->snr, rx_pd->nf), in mwifiex_process_mgmt_packet()
/drivers/ata/
Dpata_bf54x.c375 unsigned short n0, nf, tfmin = 5; in bfin_set_dmamode() local
438 nf = num_clocks_min(tfmin, fsclk); in bfin_set_dmamode()
439 if (nf >= 1) { in bfin_set_dmamode()
/drivers/net/wireless/libertas_tf/
Dlibertas_tf.h301 u8 nf; member

12