/drivers/platform/surface/aggregator/ |
D | controller.c | 150 struct ssam_event_notifier *nf; in ssam_nfblk_call_chain() local 155 list_for_each_entry_rcu(nf, &nh->head, base.node, in ssam_nfblk_call_chain() 157 if (ssam_event_matches_notifier(nf, event)) { in ssam_nfblk_call_chain() 158 ret = (ret & SSAM_NOTIF_STATE_MASK) | nf->base.fn(nf, event); in ssam_nfblk_call_chain() 315 ssam_nf_refcount_inc(struct ssam_nf *nf, struct ssam_event_registry reg, in ssam_nf_refcount_inc() argument 320 struct rb_node **link = &nf->refcount.rb_node; in ssam_nf_refcount_inc() 324 lockdep_assert_held(&nf->lock); in ssam_nf_refcount_inc() 355 rb_insert_color(&entry->node, &nf->refcount); in ssam_nf_refcount_inc() 377 ssam_nf_refcount_dec(struct ssam_nf *nf, struct ssam_event_registry reg, in ssam_nf_refcount_dec() argument 382 struct rb_node *node = nf->refcount.rb_node; in ssam_nf_refcount_dec() [all …]
|
/drivers/media/pci/ivtv/ |
D | ivtv-yuv.c | 965 struct yuv_frame_info *nf = &yi->new_frame_info[frame]; in ivtv_yuv_setup_frame() local 970 int update = nf->update; in ivtv_yuv_setup_frame() 973 nf->src_x = args->src.left; in ivtv_yuv_setup_frame() 974 nf->src_y = args->src.top; in ivtv_yuv_setup_frame() 975 nf->src_w = args->src.width; in ivtv_yuv_setup_frame() 976 nf->src_h = args->src.height; in ivtv_yuv_setup_frame() 977 nf->dst_x = args->dst.left; in ivtv_yuv_setup_frame() 978 nf->dst_y = args->dst.top; in ivtv_yuv_setup_frame() 979 nf->dst_w = args->dst.width; in ivtv_yuv_setup_frame() 980 nf->dst_h = args->dst.height; in ivtv_yuv_setup_frame() [all …]
|
/drivers/net/wireless/ath/ath9k/ |
D | calib.c | 73 s16 nf) in ath9k_hw_getchan_noise() argument 77 if (nf) { in ath9k_hw_getchan_noise() 78 s8 delta = nf - ATH9K_NF_CAL_NOISE_THRESH - in ath9k_hw_getchan_noise() 371 static void ath9k_hw_nf_sanitize(struct ath_hw *ah, s16 *nf) in ath9k_hw_nf_sanitize() argument 383 if (!nf[i]) in ath9k_hw_nf_sanitize() 388 (i >= 3 ? "ext" : "ctl"), i % 3, nf[i]); in ath9k_hw_nf_sanitize() 390 if (nf[i] > limit->max) { in ath9k_hw_nf_sanitize() 393 i, nf[i], limit->max); in ath9k_hw_nf_sanitize() 394 nf[i] = limit->max; in ath9k_hw_nf_sanitize() 395 } else if (nf[i] < limit->min) { in ath9k_hw_nf_sanitize() [all …]
|
D | ar9002_phy.c | 334 int16_t nf; in ar9002_hw_do_getnf() local 336 nf = MS(REG_READ(ah, AR_PHY_CCA), AR9280_PHY_MINCCA_PWR); in ar9002_hw_do_getnf() 337 nfarray[0] = sign_extend32(nf, 8); in ar9002_hw_do_getnf() 339 nf = MS(REG_READ(ah, AR_PHY_EXT_CCA), AR9280_PHY_EXT_MINCCA_PWR); in ar9002_hw_do_getnf() 341 nfarray[3] = sign_extend32(nf, 8); in ar9002_hw_do_getnf() 346 nf = MS(REG_READ(ah, AR_PHY_CH1_CCA), AR9280_PHY_CH1_MINCCA_PWR); in ar9002_hw_do_getnf() 347 nfarray[1] = sign_extend32(nf, 8); in ar9002_hw_do_getnf() 349 nf = MS(REG_READ(ah, AR_PHY_CH1_EXT_CCA), AR9280_PHY_CH1_EXT_MINCCA_PWR); in ar9002_hw_do_getnf() 351 nfarray[4] = sign_extend32(nf, 8); in ar9002_hw_do_getnf()
|
D | ar5008_phy.c | 1140 int16_t nf; in ar5008_hw_do_getnf() local 1142 nf = MS(REG_READ(ah, AR_PHY_CCA), AR_PHY_MINCCA_PWR); in ar5008_hw_do_getnf() 1143 nfarray[0] = sign_extend32(nf, 8); in ar5008_hw_do_getnf() 1145 nf = MS(REG_READ(ah, AR_PHY_CH1_CCA), AR_PHY_CH1_MINCCA_PWR); in ar5008_hw_do_getnf() 1146 nfarray[1] = sign_extend32(nf, 8); in ar5008_hw_do_getnf() 1148 nf = MS(REG_READ(ah, AR_PHY_CH2_CCA), AR_PHY_CH2_MINCCA_PWR); in ar5008_hw_do_getnf() 1149 nfarray[2] = sign_extend32(nf, 8); in ar5008_hw_do_getnf() 1154 nf = MS(REG_READ(ah, AR_PHY_EXT_CCA), AR_PHY_EXT_MINCCA_PWR); in ar5008_hw_do_getnf() 1155 nfarray[3] = sign_extend32(nf, 8); in ar5008_hw_do_getnf() 1157 nf = MS(REG_READ(ah, AR_PHY_CH1_EXT_CCA), AR_PHY_CH1_EXT_MINCCA_PWR); in ar5008_hw_do_getnf() [all …]
|
/drivers/platform/surface/ |
D | surface_aggregator_cdev.c | 53 struct ssam_event_notifier nf; member 93 static u32 ssam_cdev_notifier(struct ssam_event_notifier *nf, const struct ssam_event *in) in ssam_cdev_notifier() argument 95 struct ssam_cdev_notifier *cdev_nf = container_of(nf, struct ssam_cdev_notifier, nf); in ssam_cdev_notifier() 139 struct ssam_cdev_notifier *nf; in ssam_cdev_notifier_register() local 157 nf = kzalloc(sizeof(*nf), GFP_KERNEL); in ssam_cdev_notifier_register() 158 if (!nf) { in ssam_cdev_notifier_register() 169 nf->client = client; in ssam_cdev_notifier_register() 170 nf->nf.base.fn = ssam_cdev_notifier; in ssam_cdev_notifier_register() 171 nf->nf.base.priority = priority; in ssam_cdev_notifier_register() 172 nf->nf.event.id.target_category = tc; in ssam_cdev_notifier_register() [all …]
|
D | surface_acpi_notify.c | 340 static u32 san_evt_bat_nf(struct ssam_event_notifier *nf, in san_evt_bat_nf() argument 343 struct san_data *d = to_san_data(nf, nf_bat); in san_evt_bat_nf() 399 static u32 san_evt_tmp_nf(struct ssam_event_notifier *nf, in san_evt_tmp_nf() argument 402 struct san_data *d = to_san_data(nf, nf_tmp); in san_evt_tmp_nf()
|
/drivers/clk/baikal-t1/ |
D | ccu-pll.c | 76 unsigned long nf, in ccu_pll_calc_freq() argument 82 tmp *= nf; in ccu_pll_calc_freq() 156 unsigned long nr, nf, od; in ccu_pll_recalc_rate() local 161 nf = FIELD_GET(CCU_PLL_CTL_CLKF_MASK, val) + 1; in ccu_pll_recalc_rate() 164 return ccu_pll_calc_freq(parent_rate, nr, nf, od); in ccu_pll_recalc_rate() 168 unsigned long *nr, unsigned long *nf, in ccu_pll_calc_factors() argument 225 *nf = n1; in ccu_pll_calc_factors() 234 unsigned long nr = 1, nf = 1, od = 1; in ccu_pll_round_rate() local 236 ccu_pll_calc_factors(rate, *parent_rate, &nr, &nf, &od); in ccu_pll_round_rate() 238 return ccu_pll_calc_freq(*parent_rate, nr, nf, od); in ccu_pll_round_rate() [all …]
|
/drivers/media/v4l2-core/ |
D | v4l2-jpeg.c | 132 static int v4l2_jpeg_decode_subsampling(u8 nf, u8 h_v) in v4l2_jpeg_decode_subsampling() argument 134 if (nf == 1) in v4l2_jpeg_decode_subsampling() 138 if (nf == 4 && h_v != 0x11) in v4l2_jpeg_decode_subsampling() 168 int p, y, x, nf; in jpeg_parse_frame_header() local 193 nf = jpeg_get_byte(stream); in jpeg_parse_frame_header() 194 if (nf < 0) in jpeg_parse_frame_header() 195 return nf; in jpeg_parse_frame_header() 200 if (nf < 1 || nf > V4L2_JPEG_MAX_COMPONENTS) in jpeg_parse_frame_header() 202 if (len != 8 + 3 * nf) in jpeg_parse_frame_header() 208 frame_header->num_components = nf; in jpeg_parse_frame_header() [all …]
|
/drivers/video/console/ |
D | sticore.c | 496 struct sti_rom_font *nf; in sti_select_fbfont() local 513 nf = kzalloc(size, STI_LOWMEM); in sti_select_fbfont() 514 if (!nf) in sti_select_fbfont() 517 nf->first_char = 0; in sti_select_fbfont() 518 nf->last_char = fbfont->charcount - 1; in sti_select_fbfont() 519 nf->width = fbfont->width; in sti_select_fbfont() 520 nf->height = fbfont->height; in sti_select_fbfont() 521 nf->font_type = STI_FONT_HPROMAN8; in sti_select_fbfont() 522 nf->bytes_per_char = bpc; in sti_select_fbfont() 523 nf->next_font = 0; in sti_select_fbfont() [all …]
|
/drivers/gpu/drm/gma500/ |
D | oaktrail_hdmi.c | 105 struct intel_range vco, np, nr, nf; member 111 int nf; member 128 .nf = { .min = NF_MIN, .max = NF_MAX }, 179 int np, nr, nf; in oaktrail_hdmi_find_dpll() local 197 nf = DIV_ROUND_CLOSEST((target * 10 * np * nr), refclk); in oaktrail_hdmi_find_dpll() 198 DRM_DEBUG_KMS("np, nr, nf %d %d %d\n", np, nr, nf); in oaktrail_hdmi_find_dpll() 206 best_clock->nf = (nf << 14); in oaktrail_hdmi_find_dpll() 312 REG_WRITE(DPLL_DIV_CTRL, ((clock.nf << 6) | clock.nr)); in oaktrail_crtc_hdmi_mode_set() 313 REG_WRITE(DPLL_ADJUST, ((clock.nf >> 14) - 1)); in oaktrail_crtc_hdmi_mode_set()
|
/drivers/block/aoe/ |
D | aoecmd.c | 556 struct frame *nf; in reassign_frame() local 559 nf = newframe(f->t->d); in reassign_frame() 560 if (!nf) in reassign_frame() 562 if (nf->t == f->t) { in reassign_frame() 563 aoe_freetframe(nf); in reassign_frame() 567 skb = nf->skb; in reassign_frame() 568 nf->skb = f->skb; in reassign_frame() 569 nf->buf = f->buf; in reassign_frame() 570 nf->iter = f->iter; in reassign_frame() 571 nf->waited = 0; in reassign_frame() [all …]
|
/drivers/clk/rockchip/ |
D | clk-pll.c | 392 rate->nf = ((pllcon >> RK3066_PLLCON1_NF_SHIFT) in rockchip_rk3066_pll_get_params() 417 rate64 *= cur.nf; in rockchip_rk3066_pll_recalc_rate() 435 __func__, rate->rate, rate->nr, rate->no, rate->nf); in rockchip_rk3066_pll_set_params() 457 writel_relaxed(HIWORD_UPDATE(rate->nf - 1, RK3066_PLLCON1_NF_MASK, in rockchip_rk3066_pll_set_params() 552 rate->no, cur.no, rate->nf, cur.nf, rate->nb, cur.nb); in rockchip_rk3066_pll_init() 553 if (rate->nr != cur.nr || rate->no != cur.no || rate->nf != cur.nf in rockchip_rk3066_pll_init()
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 582 struct qlcnic_skb_frag *nf; in qlcnic_map_tx_skb() local 588 nf = &pbuf->frag_array[0]; in qlcnic_map_tx_skb() 595 nf->dma = map; in qlcnic_map_tx_skb() 596 nf->length = skb_headlen(skb); in qlcnic_map_tx_skb() 600 nf = &pbuf->frag_array[i+1]; in qlcnic_map_tx_skb() 606 nf->dma = map; in qlcnic_map_tx_skb() 607 nf->length = skb_frag_size(frag); in qlcnic_map_tx_skb() 614 nf = &pbuf->frag_array[i+1]; in qlcnic_map_tx_skb() 615 dma_unmap_page(&pdev->dev, nf->dma, nf->length, DMA_TO_DEVICE); in qlcnic_map_tx_skb() 618 nf = &pbuf->frag_array[0]; in qlcnic_map_tx_skb() [all …]
|
/drivers/md/ |
D | dm-bufio.c | 869 …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 894 if (nf == NF_PREFETCH) in __alloc_buffer_wait_no_callback() 923 static struct dm_buffer *__alloc_buffer_wait(struct dm_bufio_client *c, enum new_flag nf) in __alloc_buffer_wait() argument 925 struct dm_buffer *b = __alloc_buffer_wait_no_callback(c, nf); in __alloc_buffer_wait() 992 enum new_flag nf, int *need_submit, in __bufio_new() argument 1003 if (nf == NF_GET) in __bufio_new() 1006 new_b = __alloc_buffer_wait(c, nf); in __bufio_new() 1028 if (nf == NF_FRESH) { in __bufio_new() 1039 if (nf == NF_PREFETCH) in __bufio_new() 1048 if (nf == NF_GET && unlikely(test_bit(B_READING, &b->state))) in __bufio_new() [all …]
|
/drivers/net/wireless/marvell/libertas/ |
D | cmd.c | 18 #define CAL_NF(nf) ((s32)(-(s32)(nf))) argument 19 #define CAL_RSSI(snr, nf) ((s32)((s32)(snr) + CAL_NF(nf))) argument 667 int lbs_get_rssi(struct lbs_private *priv, s8 *rssi, s8 *nf) in lbs_get_rssi() argument 673 BUG_ON(nf == NULL); in lbs_get_rssi() 682 *nf = CAL_NF(le16_to_cpu(cmd.nf)); in lbs_get_rssi() 683 *rssi = CAL_RSSI(le16_to_cpu(cmd.n_or_snr), le16_to_cpu(cmd.nf)); in lbs_get_rssi()
|
/drivers/phy/rockchip/ |
D | phy-rockchip-inno-hdmi.c | 572 u16 nf; in inno_hdmi_phy_rk3228_clk_recalc_rate() local 575 nf = (inno_read(inno, 0xe2) & RK3228_PRE_PLL_FB_DIV_8_MASK) << 1; in inno_hdmi_phy_rk3228_clk_recalc_rate() 576 nf |= inno_read(inno, 0xe3); in inno_hdmi_phy_rk3228_clk_recalc_rate() 577 vco = parent_rate * nf; in inno_hdmi_phy_rk3228_clk_recalc_rate() 719 u16 nf; in inno_hdmi_phy_rk3328_clk_recalc_rate() local 722 nf = ((inno_read(inno, 0xa2) & RK3328_PRE_PLL_FB_DIV_11_8_MASK) << 8); in inno_hdmi_phy_rk3328_clk_recalc_rate() 723 nf |= inno_read(inno, 0xa3); in inno_hdmi_phy_rk3328_clk_recalc_rate() 724 vco = parent_rate * nf; in inno_hdmi_phy_rk3328_clk_recalc_rate()
|
/drivers/net/wireless/marvell/mwifiex/ |
D | util.c | 359 addr2, rx_pd->nf, rx_pd->snr); in mwifiex_parse_mgmt_packet() 363 rx_pd->nf); in mwifiex_parse_mgmt_packet() 433 CAL_RSSI(rx_pd->snr, rx_pd->nf), skb->data, pkt_len, in mwifiex_process_mgmt_packet() 710 s8 nf = -nflr; in mwifiex_hist_data_set() local 716 atomic_inc(&phist_data->noise_flr[nf + 128]); in mwifiex_hist_data_set()
|
D | sta_rx.c | 178 local_rx_pd->nf); in mwifiex_process_rx_packet() 262 local_rx_pd->nf); in mwifiex_process_sta_rx_packet()
|
/drivers/power/supply/ |
D | surface_charger.c | 103 static u32 spwr_notify_ac(struct ssam_event_notifier *nf, const struct ssam_event *event) in spwr_notify_ac() argument 108 ac = container_of(nf, struct spwr_ac_device, notif); in spwr_notify_ac()
|
/drivers/media/platform/omap3isp/ |
D | isppreview.c | 519 const struct omap3isp_prev_nf *nf = ¶ms->nf; in preview_config_noisefilter() local 522 isp_reg_writel(isp, nf->spread, OMAP3_ISP_IOMEM_PREV, ISPPRV_NF); in preview_config_noisefilter() 526 isp_reg_writel(isp, nf->table[i], in preview_config_noisefilter() 830 offsetof(struct prev_params, nf), 831 sizeof_field(struct prev_params, nf), 832 offsetof(struct omap3isp_prev_update_config, nf), 1325 params->nf.spread = FLR_NF_STRGTH; in preview_init_params() 1326 memcpy(params->nf.table, noise_filter_table, sizeof(params->nf.table)); in preview_init_params()
|
D | isppreview.h | 84 struct omap3isp_prev_nf nf; member
|
/drivers/hid/surface-hid/ |
D | surface_hid.c | 157 static u32 ssam_hid_event_fn(struct ssam_event_notifier *nf, const struct ssam_event *event) in ssam_hid_event_fn() argument 159 struct surface_hid_device *shid = container_of(nf, struct surface_hid_device, notif); in ssam_hid_event_fn()
|
D | surface_kbd.c | 124 static u32 ssam_kbd_event_fn(struct ssam_event_notifier *nf, const struct ssam_event *event) in ssam_kbd_event_fn() argument 126 struct surface_hid_device *shid = container_of(nf, struct surface_hid_device, notif); in ssam_kbd_event_fn()
|
/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_main.c | 1975 struct netxen_skb_frag *nf; in netxen_map_tx_skb() local 1981 nf = &pbuf->frag_array[0]; in netxen_map_tx_skb() 1988 nf->dma = map; in netxen_map_tx_skb() 1989 nf->length = skb_headlen(skb); in netxen_map_tx_skb() 1993 nf = &pbuf->frag_array[i+1]; in netxen_map_tx_skb() 2000 nf->dma = map; in netxen_map_tx_skb() 2001 nf->length = skb_frag_size(frag); in netxen_map_tx_skb() 2008 nf = &pbuf->frag_array[i+1]; in netxen_map_tx_skb() 2009 dma_unmap_page(&pdev->dev, nf->dma, nf->length, DMA_TO_DEVICE); in netxen_map_tx_skb() 2010 nf->dma = 0ULL; in netxen_map_tx_skb() [all …]
|