/drivers/spi/ |
H A D | spi-bitbang.c | 69 unsigned ns, 82 word = txrx_word(spi, ns, word, bits); 95 unsigned ns, 108 word = txrx_word(spi, ns, word, bits); 121 unsigned ns, 134 word = txrx_word(spi, ns, word, bits); 64 bitbang_txrx_8( struct spi_device *spi, u32 (*txrx_word)(struct spi_device *spi, unsigned nsecs, u32 word, u8 bits), unsigned ns, struct spi_transfer *t ) argument 90 bitbang_txrx_16( struct spi_device *spi, u32 (*txrx_word)(struct spi_device *spi, unsigned nsecs, u32 word, u8 bits), unsigned ns, struct spi_transfer *t ) argument 116 bitbang_txrx_32( struct spi_device *spi, u32 (*txrx_word)(struct spi_device *spi, unsigned nsecs, u32 word, u8 bits), unsigned ns, struct spi_transfer *t ) argument
|
/drivers/ssb/ |
H A D | driver_extif.c | 86 void ssb_extif_timing_init(struct ssb_extif *extif, unsigned long ns) argument 94 tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; 95 tmp |= DIV_ROUND_UP(40, ns) << SSB_PROG_WCNT_1_SHIFT; 96 tmp |= DIV_ROUND_UP(120, ns); 100 tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; 101 tmp |= DIV_ROUND_UP(20, ns) << SSB_PROG_WCNT_2_SHIFT; 102 tmp |= DIV_ROUND_UP(100, ns) << SSB_PROG_WCNT_1_SHIFT; 103 tmp |= DIV_ROUND_UP(120, ns);
|
H A D | driver_mipscore.c | 238 unsigned long hz, ns; local 250 ns = 1000000000 / hz; 253 ssb_extif_timing_init(&bus->extif, ns); 255 ssb_chipco_timing_init(&bus->chipco, ns);
|
H A D | driver_chipcommon.c | 362 unsigned long ns) 370 tmp = DIV_ROUND_UP(10, ns) << SSB_PROG_WCNT_3_SHIFT; /* Waitcount-3 = 10ns */ 371 tmp |= DIV_ROUND_UP(40, ns) << SSB_PROG_WCNT_1_SHIFT; /* Waitcount-1 = 40ns */ 372 tmp |= DIV_ROUND_UP(240, ns); /* Waitcount-0 = 240ns */ 376 tmp = DIV_ROUND_UP(10, ns) << SSB_FLASH_WCNT_3_SHIFT; /* Waitcount-3 = 10nS */ 377 tmp |= DIV_ROUND_UP(10, ns) << SSB_FLASH_WCNT_1_SHIFT; /* Waitcount-1 = 10nS */ 378 tmp |= DIV_ROUND_UP(120, ns); /* Waitcoun 361 ssb_chipco_timing_init(struct ssb_chipcommon *cc, unsigned long ns) argument [all...] |
/drivers/base/ |
H A D | class.c | 55 const void *ns = NULL; local 58 ns = class_attr->namespace(cp->class, class_attr); 59 return ns;
|
H A D | core.c | 203 const void *ns = NULL; local 206 ns = dev->class->namespace(dev); 208 return ns;
|
/drivers/i2c/busses/ |
H A D | i2c-s6000.c | 251 static u16 __devinit nanoseconds_on_clk(struct s6i2c_if *iface, u32 ns) argument 253 u32 dividend = ((clk_get_rate(iface->clk) / 1000) * ns) / 1000000;
|
/drivers/misc/ |
H A D | ioc4.c | 205 "PCI clock is %d ns.\n", 210 u64 ns = period; local 212 do_div(ns, IOC4_EXTINT_COUNT_DIVISOR); 214 "IOC4 %s: PCI clock is %llu ns.\n", 215 pci_name(idd->idd_pdev), (unsigned long long)ns);
|
/drivers/pcmcia/ |
H A D | i82092.c | 283 /* External clock time, in nanoseconds. 120 ns = 8.33 MHz */ 286 static int to_cycles(int ns) argument 289 return ns/cycle_time;
|
H A D | tcic.c | 85 /* CCLK external clock time, in nanoseconds. 70 ns = 14.31818 MHz */ 190 static int to_cycles(int ns) argument 192 if (ns < 14) 195 return 2*(ns-14)/cycle_time; 703 dev_dbg(&sock->dev, "SetIOMap(%d, %d, %#2.2x, %d ns, " 740 dev_dbg(&sock->dev, "SetMemMap(%d, %d, %#2.2x, %d ns, "
|
/drivers/ptp/ |
H A D | ptp_ixp46x.c | 56 u64 ns; local 62 ns = ((u64) hi) << 32; 63 ns |= lo; 64 ns <<= TICKS_NS_SHIFT; 66 return ns; 69 static void ixp_systime_write(struct ixp46x_ts_regs *regs, u64 ns) argument 73 ns >>= TICKS_NS_SHIFT; 74 hi = ns >> 32; 75 lo = ns & 0xffffffff; 180 u64 ns; local 200 u64 ns; local [all...] |
/drivers/staging/comedi/drivers/ |
H A D | 8253.h | 41 int ns; local 58 ns = i8253_osc_base * div1 * div2; 59 if (ns <= *nanosec && ns > ns_glb) { 60 ns_glb = ns; 67 ns = i8253_osc_base * div1 * div2; 68 if (ns > *nanosec && ns < ns_lub) { 69 ns_lub = ns; 134 unsigned int ns; local [all...] |
H A D | dt2814.c | 132 static int dt2814_ns_to_timer(unsigned int *ns, unsigned int flags) argument 139 f = 10000; /* ns */ 141 if ((2 * (*ns)) < (f * 11)) 146 *ns = f;
|
H A D | skel.c | 202 static int skel_ns_to_timer(unsigned int *ns, int round); 512 * convert ns nanoseconds to a counter value suitable for programming 513 * the device. Also, it should adjust ns so that it cooresponds to 515 static int skel_ns_to_timer(unsigned int *ns, int round) argument 524 return *ns;
|
H A D | das16m1.c | 157 unsigned int ns, int round_flag); 603 unsigned int ns, int rounding_flags) 606 &(devpriv->divisor2), &ns, 615 return ns; 602 das16m1_set_pacer(struct comedi_device *dev, unsigned int ns, int rounding_flags) argument
|
/drivers/ata/ |
H A D | pata_at91.c | 179 static unsigned long calc_mck_cycles(unsigned long ns, unsigned long mck_hz) argument 184 * cycles = x [nsec] * f [Hz] / 10^9 [ns in sec] = 193 return (ns * mul + 65536) >> 16; /* rounding */ 211 unsigned int t6z; /* data tristate time in ns */
|
/drivers/isdn/capi/ |
H A D | capiutil.c | 760 size_t ns = 2 * cdb->size; local 763 while ((ns - cdb->pos) <= n) 764 ns *= 2; 765 nb = kmalloc(ns, GFP_ATOMIC); 775 cdb->size = ns;
|
/drivers/net/ |
H A D | sb1000.c | 748 int ioaddr, ns; local 773 for (ns = 0; ns < NPIDS; ns++) { 774 session_id = lp->rx_session_id[ns]; 775 frame_id = lp->rx_frame_id[ns]; 796 skb = lp->rx_skb[ns]; 807 lp->rx_frame_id[ns] = 0x30 | ((st[1] + 1) & 0x0f); 834 lp->rx_dlen[ns] = dlen; 850 lp->rx_skb[ns] [all...] |
/drivers/of/ |
H A D | address.c | 11 #define OF_CHECK_COUNTS(na, ns) ((na) > 0 && (na) <= OF_MAX_ADDR_CELLS && \ 12 (ns) > 0) 40 int na, int ns, int pna); 59 int na, int ns, int pna) 64 s = of_read_number(range + na + pna, ns); 132 static u64 of_bus_pci_map(u32 *addr, const __be32 *range, int na, int ns, argument 147 s = of_read_number(range + na + pna, ns); 171 int onesize, i, na, ns; local 182 bus->count_cells(dev, &na, &ns); 184 if (!OF_CHECK_COUNTS(na, ns)) 58 of_bus_default_map(u32 *addr, const __be32 *range, int na, int ns, int pna) argument 241 of_bus_isa_map(u32 *addr, const __be32 *range, int na, int ns, int pna) argument 331 of_translate_one(struct device_node *parent, struct of_bus *bus, struct of_bus *pbus, u32 *addr, int na, int ns, int pna, const char *rprop) argument 409 int na, ns, pna, pns; local 499 int onesize, i, na, ns; local [all...] |
/drivers/pci/ |
H A D | xen-pcifront.c | 115 s64 ns, ns_timeout; local 143 ns = timeval_to_ns(&tv); 144 if (ns > ns_timeout) {
|
/drivers/ps3/ |
H A D | ps3av_cmd.c | 513 static void ps3av_cnv_ns(u8 *ns, u32 fs, u32 video_vid) argument 554 *ns++ = ns_val & 0x000000FF; 555 *ns++ = (ns_val & 0x0000FF00) >> 8; 556 *ns = (ns_val & 0x00FF0000) >> 16; 649 ps3av_cnv_ns(param->ns, audio_mode->audio_fs, video_vid);
|
/drivers/staging/ramster/cluster/ |
H A D | nodemanager.c | 813 struct r2nm_node_group *ns = NULL; local 823 ns = kzalloc(sizeof(struct r2nm_node_group), GFP_KERNEL); 826 if (cluster == NULL || ns == NULL || r2hb_group == NULL || defs == NULL) 831 config_group_init_type_name(&ns->ns_group, "node", 835 cluster->cl_group.default_groups[0] = &ns->ns_group; 851 kfree(ns);
|
/drivers/block/drbd/ |
H A D | drbd_worker.c | 765 union drbd_state os, ns; local 811 ns = os; 812 ns.conn = C_CONNECTED; 851 ns.disk = D_INCONSISTENT; 852 ns.pdsk = D_UP_TO_DATE; 854 ns.disk = D_UP_TO_DATE; 855 ns.pdsk = D_INCONSISTENT; 858 ns.disk = D_UP_TO_DATE; 859 ns.pdsk = D_UP_TO_DATE; 888 _drbd_set_state(mdev, ns, CS_VERBOS 1477 union drbd_state ns; local [all...] |
/drivers/media/video/ |
H A D | mt9m032.c | 166 u32 ns; local 169 ns = div_u64(1000000000ULL * effective_width, sensor->pix_clock); 170 dev_dbg(to_dev(sensor), "MT9M032 line time: %u ns\n", ns); local 171 return ns;
|
/drivers/net/ethernet/adi/ |
H A D | bfin_mac.c | 834 u64 ns; local 840 ns = timecounter_cyc2time(&lp->clock, 842 timecompare_update(&lp->compare, ns); 843 shhwtstamps.hwtstamp = ns_to_ktime(ns); 845 timecompare_transform(&lp->compare, ns); 857 u64 regval, ns; local 871 ns = timecounter_cyc2time(&lp->clock, regval); 872 timecompare_update(&lp->compare, ns); 874 shhwtstamps->hwtstamp = ns_to_ktime(ns); 875 shhwtstamps->syststamp = timecompare_transform(&lp->compare, ns); [all...] |