/drivers/clk/ |
D | clk-si570.c | 80 unsigned int n1; member 104 unsigned int *n1, unsigned int *hs_div) in si570_get_divs() argument 116 *n1 = ((reg[0] & N1_6_2_MASK) << 2) + ((reg[1] & N1_1_0_MASK) >> 6) + 1; in si570_get_divs() 118 if (*n1 > 1) in si570_get_divs() 119 *n1 &= ~1; in si570_get_divs() 144 err = si570_get_divs(data, &data->rfreq, &data->n1, &data->hs_div); in si570_get_defaults() 152 fdco = fout * data->n1 * data->hs_div; in si570_get_defaults() 172 reg[0] = ((data->n1 - 1) << 6) | in si570_update_rfreq() 199 unsigned int n1, hs_div; in si570_calc_divs() local 206 n1 = div_u64(div_u64(FDCO_MIN, hs_div), frequency); in si570_calc_divs() [all …]
|
/drivers/media/pci/cobalt/ |
D | cobalt-cpld.c | 136 unsigned mult, hsdiv, n1; member 248 u8 n1, hsdiv; in cobalt_cpld_set_freq() local 271 n1 = multipliers[i_best].n1 - 1; in cobalt_cpld_set_freq() 279 regs[0] = (hsdiv << 5) | (n1 >> 2); in cobalt_cpld_set_freq() 280 regs[1] = ((n1 & 0x3) << 6) | (rfreq >> 32); in cobalt_cpld_set_freq()
|
/drivers/mfd/ |
D | pcf50633-core.c | 90 int n, n1, idx = 0; in show_dump_regs() local 102 for (n1 = 0; n1 < sizeof(dump); n1++) in show_dump_regs() 105 dump[n1] = 0x00; in show_dump_regs() 107 dump[n1] = pcf50633_reg_read(pcf, n + n1); in show_dump_regs()
|
/drivers/md/bcache/ |
D | btree.c | 1341 struct bset *n1 = btree_bset_first(new_nodes[i]); in btree_gc_coalesce() local 1351 if (__set_blocks(n1, n1->keys + keys + in btree_gc_coalesce() 1368 if (__set_blocks(n1, n1->keys + n2->keys, in btree_gc_coalesce() 1378 BUG_ON(__set_blocks(n1, n1->keys + keys, block_bytes(b->c)) > in btree_gc_coalesce() 1384 memcpy(bset_bkey_last(n1), in btree_gc_coalesce() 1388 n1->keys += keys; in btree_gc_coalesce() 1389 r[i].keys = n1->keys; in btree_gc_coalesce() 1963 struct btree *n1, *n2 = NULL, *n3 = NULL; in btree_split() local 1978 n1 = btree_node_alloc_replacement(b, op); in btree_split() 1979 if (IS_ERR(n1)) in btree_split() [all …]
|
/drivers/isdn/hisax/ |
D | s0box.c | 39 register u_char n1, n2; in readreg() local 46 n1 = (inb_p(padr + 1) >> 3) & 0x17; in readreg() 51 return nibtab[n1] | (nibtab[n2] << 4); in readreg() 58 register u_char n1, n2; in read_fifo() local 66 n1 = (inb_p(padr + 1) >> 3) & 0x17; in read_fifo() 69 *(data++) = nibtab[n1] | (nibtab[n2] << 4); in read_fifo()
|
/drivers/media/tuners/ |
D | mc44s803.c | 221 u32 r1, r2, n1, n2, lo1, lo2, freq, val; in mc44s803_set_params() local 229 n1 = (c->frequency + MC44S803_IF1 + 500000) / 1000000; in mc44s803_set_params() 230 freq = MC44S803_OSC / r1 * n1; in mc44s803_set_params() 231 lo1 = ((60 * n1) + (r1 / 2)) / r1; in mc44s803_set_params() 250 MC44S803_REG_SM(n1-2, MC44S803_LO1); in mc44s803_set_params()
|
D | mt20xx.c | 72 int n1=1,n2,f; in mt2032_spurcheck() local 83 n2=-n1; in mt2032_spurcheck() 84 f=n1*(f1-f2); in mt2032_spurcheck() 88 tuner_dbg("spurtest n1=%d n2=%d ftest=%d\n",n1,n2,f); in mt2032_spurcheck() 91 tuner_dbg("mt2032 spurcheck triggered: %d\n",n1); in mt2032_spurcheck() 93 n1++; in mt2032_spurcheck() 94 } while (n1<5); in mt2032_spurcheck()
|
/drivers/staging/fbtft/ |
D | fb_ssd1325.c | 150 u8 n1; in write_vmem() local 159 n1 = rgb565_to_g16(vmem16[y * par->info->var.xres + x]); in write_vmem() 162 *buf = (n1 << 4) | n2; in write_vmem()
|
/drivers/video/fbdev/savage/ |
D | savagefb_driver.c | 422 unsigned char n1, n2, best_n1=16+2, best_n2=2, best_m=125+2; in SavageCalcClock() local 437 for (n1=min_n1+2; n1<=max_n1+2; n1++) { in SavageCalcClock() 438 m = (freq * n1 * (1 << n2) + HALF_BASE_FREQ) / in SavageCalcClock() 442 if ((m * BASE_FREQ >= freq_min * n1) && in SavageCalcClock() 443 (m * BASE_FREQ <= freq_max * n1)) { in SavageCalcClock() 444 diff = freq * (1 << n2) * n1 - BASE_FREQ * m; in SavageCalcClock() 450 best_n1 = n1; in SavageCalcClock() 469 unsigned char n1, n2; in common_calc_clock() local 475 for (n1 = min_n1+2; n1 <= max_n1+2; n1++) { in common_calc_clock() 476 m = (freq * n1 * (1 << n2) + HALF_BASE_FREQ) / in common_calc_clock() [all …]
|
/drivers/ssb/ |
D | main.c | 840 u32 n1, n2, clock, m1, m2, m3, mc; in ssb_calc_clock_rate() local 842 n1 = (n & SSB_CHIPCO_CLK_N1); in ssb_calc_clock_rate() 854 n1 = clkfactor_f6_resolve(n1); in ssb_calc_clock_rate() 858 n1 += SSB_CHIPCO_CLK_T2_BIAS; in ssb_calc_clock_rate() 860 SSB_WARN_ON(!((n1 >= 2) && (n1 <= 7))); in ssb_calc_clock_rate() 872 clock = SSB_CHIPCO_CLK_BASE2 * n1 * n2; in ssb_calc_clock_rate() 875 clock = SSB_CHIPCO_CLK_BASE1 * n1 * n2; in ssb_calc_clock_rate()
|
/drivers/pinctrl/ |
D | devicetree.c | 54 struct pinctrl_dt_map *dt_map, *n1; in pinctrl_dt_free_maps() local 56 list_for_each_entry_safe(dt_map, n1, &p->dt_maps, node) { in pinctrl_dt_free_maps()
|
D | core.c | 926 struct pinctrl_state *state, *n1; in pinctrl_free() local 930 list_for_each_entry_safe(state, n1, &p->states, node) { in pinctrl_free()
|
/drivers/thermal/ |
D | imx_thermal.c | 351 int t1, n1; in imx_get_sensor_data() local 381 n1 = val >> 20; in imx_get_sensor_data() 402 do_div(temp64, FACTOR1 * n1 - FACTOR2); in imx_get_sensor_data() 404 data->c2 = n1 * data->c1 + 1000 * t1; in imx_get_sensor_data()
|
/drivers/isdn/divert/ |
D | isdn_divert.c | 598 u_char n, n1; in interrogate_success() local 653 if (!(n1 = put_address(stp, p, n & 0xFF))) continue; in interrogate_success() 655 p += n1; in interrogate_success() 656 n -= n1; in interrogate_success() 669 if (!(n1 = put_address(stp, p, n & 0xFF))) continue; in interrogate_success()
|
/drivers/crypto/ux500/cryp/ |
D | cryp_core.c | 138 u8 n1; in swap_bits_in_byte() local 143 n1 = ((b & R_SHIFT_4_MASK) >> 4) | (b & ~(R_SHIFT_4_MASK >> 4)); in swap_bits_in_byte() 145 n1 = ((n1 & R_SHIFT_2_MASK) >> 2) | (n1 & ~(R_SHIFT_2_MASK >> 2)); in swap_bits_in_byte() 147 n1 = (n1 & R_SHIFT_1_MASK) >> 1; in swap_bits_in_byte() 157 return n1 | n2; in swap_bits_in_byte()
|
/drivers/of/ |
D | resolver.c | 203 const char *n1 = strrchr(dn1->full_name, '/') ? : "/"; in __of_node_name_cmp() local 206 return of_node_cmp(n1, n2); in __of_node_name_cmp()
|
D | unittest.c | 501 struct device_node *n1, *n2, *n21, *nremove, *parent, *np; in of_unittest_changeset() local 504 n1 = __of_node_dup(NULL, "/testcase-data/changeset/n1"); in of_unittest_changeset() 505 unittest(n1, "testcase setup failure\n"); in of_unittest_changeset() 517 n1->parent = parent; in of_unittest_changeset() 525 unittest(!of_changeset_attach_node(&chgset, n1), "fail attach n1\n"); in of_unittest_changeset()
|
/drivers/staging/comedi/ |
D | comedi_fops.c | 2350 unsigned int wp, n1, n2; in comedi_write() local 2390 n1 = min(n, async->prealloc_bufsz - wp); in comedi_write() 2391 n2 = n - n1; in comedi_write() 2392 m = copy_from_user(async->prealloc_buf + wp, buf, n1); in comedi_write() 2396 m = copy_from_user(async->prealloc_buf, buf + n1, n2); in comedi_write() 2485 unsigned int rp, n1, n2; in comedi_read() local 2524 n1 = min(n, async->prealloc_bufsz - rp); in comedi_read() 2525 n2 = n - n1; in comedi_read() 2526 m = copy_to_user(buf, async->prealloc_buf + rp, n1); in comedi_read() 2530 m = copy_to_user(buf + n1, async->prealloc_buf, n2); in comedi_read()
|
/drivers/media/usb/gspca/ |
D | t613.c | 590 static const u8 n1[] = in sd_init() local 620 reg_w_buf(gspca_dev, n1, sizeof n1); in sd_init()
|
/drivers/staging/lustre/lustre/ldlm/ |
D | interval_tree.c | 99 static inline int node_equal(struct interval_node *n1, struct interval_node *n2) in node_equal() argument 101 return extent_equal(&n1->in_extent, &n2->in_extent); in node_equal()
|
/drivers/video/fbdev/intelfb/ |
D | intelfbhw.c | 938 u32 m1, m2, n, p1, p2, n1, testm; in calc_pll_params() local 1013 n1 = n - 2; in calc_pll_params() 1017 m, m1, m2, n, n1, p, p1, p2, in calc_pll_params() 1019 calc_vclock(index, m1, m2, n1, p1, p2, 0), in calc_pll_params() 1023 *retn = n1; in calc_pll_params() 1026 *retclock = calc_vclock(index, m1, m2, n1, p1, p2, 0); in calc_pll_params()
|
/drivers/hid/ |
D | wacom_sys.c | 533 int n1 = strrchr(hdev_a->phys, separator) - hdev_a->phys; in compare_device_paths() local 536 if (n1 != n2 || n1 <= 0 || n2 <= 0) in compare_device_paths() 539 return !strncmp(hdev_a->phys, hdev_b->phys, n1); in compare_device_paths()
|