Searched defs:nr (Results 1 - 25 of 200) sorted by relevance

12345678

/drivers/gpu/drm/nouveau/
H A Dnouveau_ioc32.c53 unsigned int nr = DRM_IOCTL_NR(cmd); local
57 if (nr < DRM_COMMAND_BASE)
61 if (nr < DRM_COMMAND_BASE + DRM_ARRAY_SIZE(mga_compat_ioctls))
62 fn = nouveau_compat_ioctls[nr - DRM_COMMAND_BASE];
H A Dnv50_fifo.c39 int i, nr; local
47 for (i = 1, nr = 0; i < 127; i++) {
50 nv_wo32(cur, (nr * 4), i);
51 nr++;
57 nv_wr32(dev, 0x32ec, nr);
/drivers/i2c/muxes/
H A Dgpio-i2cmux.c106 u32 nr = pdata->base_nr ? (pdata->base_nr + i) : 0; local
108 mux->adap[i] = i2c_add_mux_adapter(parent, mux, nr, i,
/drivers/tty/
H A Dn_tracesink.c115 * @nr: number of bytes of the data buffer that is returned.
128 unsigned char __user *buf, size_t nr) {
137 * @nr: number of bytes of the data buffer that is returned.
152 const unsigned char *buf, size_t nr) {
127 n_tracesink_read(struct tty_struct *tty, struct file *file, unsigned char __user *buf, size_t nr) argument
151 n_tracesink_write(struct tty_struct *tty, struct file *file, const unsigned char *buf, size_t nr) argument
H A Dn_tracerouter.c118 * @nr: number of bytes of the data buffer that is returned.
131 unsigned char __user *buf, size_t nr) {
140 * @nr: number of bytes of the data buffer that is returned.
155 const unsigned char *buf, size_t nr) {
130 n_tracerouter_read(struct tty_struct *tty, struct file *file, unsigned char __user *buf, size_t nr) argument
154 n_tracerouter_write(struct tty_struct *tty, struct file *file, const unsigned char *buf, size_t nr) argument
/drivers/zorro/
H A Dnames.c28 unsigned short nr; member in struct:zorro_manuf_info
77 int i = manuf_p->nr;
94 int nr = prod_p->seen + 1; local
95 prod_p->seen = nr;
96 if (nr > 1)
97 sprintf(n, " (#%d)", nr);
/drivers/gpu/drm/exynos/
H A Dexynos_drm_drv.c54 int nr; local
78 for (nr = 0; nr < MAX_CRTC; nr++) {
79 ret = exynos_drm_crtc_create(dev, nr);
84 for (nr = 0; nr < MAX_PLANE; nr++) {
85 ret = exynos_plane_init(dev, nr);
H A Dexynos_drm_fb.c126 int nr; local
144 nr = exynos_drm_format_num_buffers(fb->pixel_format);
146 for (i = 1; i < nr; i++) {
H A Dexynos_drm_plane.c104 int exynos_plane_init(struct drm_device *dev, unsigned int nr) argument
H A Dexynos_drm_crtc.c82 int nr = exynos_drm_format_num_buffers(fb->pixel_format); local
85 for (i = 0; i < nr; i++) {
371 int exynos_drm_crtc_create(struct drm_device *dev, unsigned int nr) argument
385 exynos_crtc->pipe = nr;
390 private->crtc[nr] = crtc;
/drivers/isdn/hardware/eicon/
H A Ddiva_dma.c59 int nr, void* virt, dword phys,
61 pmap[nr].phys_bus_addr = phys;
62 pmap[nr].local_ram_addr = virt;
63 pmap[nr].addr_handle = addr_handle;
81 void diva_free_dma_map_entry (struct _diva_dma_map_entry* pmap, int nr) { argument
82 pmap[nr].busy = 0;
87 void diva_get_dma_map_entry (struct _diva_dma_map_entry* pmap, int nr, argument
89 *pphys = pmap[nr].phys_bus_addr;
90 *pvirt = pmap[nr].local_ram_addr;
92 void* diva_get_entry_handle (struct _diva_dma_map_entry* pmap, int nr) { argument
58 diva_init_dma_map_entry(struct _diva_dma_map_entry* pmap, int nr, void* virt, dword phys, void* addr_handle) argument
[all...]
/drivers/isdn/pcbit/
H A Dedss1.c70 byte nr; member in struct:CauseValue
/drivers/gpio/
H A Dgpio-bt8xx.c81 static int bt8xxgpio_gpio_direction_input(struct gpio_chip *gpio, unsigned nr) argument
90 data &= ~(1 << nr);
94 outen &= ~(1 << nr);
102 static int bt8xxgpio_gpio_get(struct gpio_chip *gpio, unsigned nr) argument
112 return !!(val & (1 << nr));
116 unsigned nr, int val)
125 outen |= (1 << nr);
130 data |= (1 << nr);
132 data &= ~(1 << nr);
141 unsigned nr, in
115 bt8xxgpio_gpio_direction_output(struct gpio_chip *gpio, unsigned nr, int val) argument
140 bt8xxgpio_gpio_set(struct gpio_chip *gpio, unsigned nr, int val) argument
[all...]
H A Dgpio-vx855.c99 unsigned int nr)
106 if (nr < NR_VX855_GPI)
110 if (nr < NR_VX855_GPInO)
116 reg_out |= gpio_o_bit(nr - NR_VX855_GPInO);
123 static int vx855gpio_get(struct gpio_chip *gpio, unsigned int nr) argument
129 if (nr < NR_VX855_GPI) {
131 if (reg_in & gpi_i_bit(nr))
133 } else if (nr < NR_VX855_GPInO) {
137 if (reg_in & gpo_o_bit(nr - NR_VX855_GPI))
141 if (reg_in & gpio_i_bit(nr
98 vx855gpio_direction_input(struct gpio_chip *gpio, unsigned int nr) argument
148 vx855gpio_set(struct gpio_chip *gpio, unsigned int nr, int val) argument
176 vx855gpio_direction_output(struct gpio_chip *gpio, unsigned int nr, int val) argument
[all...]
H A Dgpio-timberdale.c73 static int timbgpio_gpio_direction_input(struct gpio_chip *gpio, unsigned nr) argument
75 return timbgpio_update_bit(gpio, nr, TGPIODIR, true);
78 static int timbgpio_gpio_get(struct gpio_chip *gpio, unsigned nr) argument
84 return (value & (1 << nr)) ? 1 : 0;
88 unsigned nr, int val)
90 return timbgpio_update_bit(gpio, nr, TGPIODIR, false);
94 unsigned nr, int val)
96 timbgpio_update_bit(gpio, nr, TGPIOVAL, val != 0);
87 timbgpio_gpio_direction_output(struct gpio_chip *gpio, unsigned nr, int val) argument
93 timbgpio_gpio_set(struct gpio_chip *gpio, unsigned nr, int val) argument
/drivers/gpu/drm/
H A Ddrm_drv.c386 unsigned int nr = DRM_IOCTL_NR(cmd); local
397 DRM_DEBUG("pid=%d, cmd=0x%02x, nr=0x%02x, dev 0x%lx, auth=%d\n",
398 task_pid_nr(current), cmd, nr,
402 if ((nr >= DRM_CORE_IOCTL_COUNT) &&
403 ((nr < DRM_COMMAND_BASE) || (nr >= DRM_COMMAND_END)))
405 if ((nr >= DRM_COMMAND_BASE) && (nr < DRM_COMMAND_END) &&
406 (nr < DRM_COMMAND_BASE + dev->driver->num_ioctls)) {
408 ioctl = &dev->driver->ioctls[nr
[all...]
/drivers/input/serio/
H A Dserport.c163 static ssize_t serport_ldisc_read(struct tty_struct * tty, struct file * file, unsigned char __user * buf, size_t nr) argument
/drivers/misc/cb710/
H A Dcore.c73 unsigned nr; local
77 for (nr = chip->slots; nr; ++slot, --nr) {
102 int nr = chip->slots; local
103 struct cb710_slot *slot = &chip->slot[nr];
108 name, chip->platform_id, nr, slot_mask, io_offset); local
145 int nr = chip->slots - 1; local
150 platform_device_unregister(&chip->slot[nr].pdev);
154 BUG_ON(chip->slot[nr]
[all...]
/drivers/mtd/maps/
H A Dsa1100-flash.c244 int nr, size, i, ret = 0; local
249 for (nr = 0; ; nr++)
250 if (!platform_get_resource(pdev, IORESOURCE_MEM, nr))
253 if (nr == 0) {
258 size = sizeof(struct sa_info) + sizeof(struct sa_subdev_info) * nr;
278 for (i = 0; i < nr; i++) {
313 struct mtd_info *cdev[nr];
/drivers/pcmcia/
H A Dsa11xx_base.c96 MECR_FAST_SET(mecr, skt->nr, 0);
97 MECR_BSIO_SET(mecr, skt->nr, bs_io);
98 MECR_BSA_SET(mecr, skt->nr, bs_attr);
99 MECR_BSM_SET(mecr, skt->nr, bs_mem);
106 MECR_FAST_GET(mecr, skt->nr),
107 MECR_BSM_GET(mecr, skt->nr), MECR_BSA_GET(mecr, skt->nr),
108 MECR_BSIO_GET(mecr, skt->nr));
156 sa1100_pcmcia_cmd_time(clock, MECR_BSIO_GET(mecr, skt->nr)));
159 sa1100_pcmcia_cmd_time(clock, MECR_BSA_GET(mecr, skt->nr)));
219 sa11xx_drv_pcmcia_probe(struct device *dev, struct pcmcia_low_level *ops, int first, int nr) argument
[all...]
/drivers/bluetooth/
H A Dhci_ldisc.c512 unsigned char __user *buf, size_t nr)
511 hci_uart_tty_read(struct tty_struct *tty, struct file *file, unsigned char __user *buf, size_t nr) argument
/drivers/gpu/drm/i915/
H A Di915_ioc32.c40 int used; /* nr bytes in use */
75 int sz; /* nr bytes in buf */
203 unsigned int nr = DRM_IOCTL_NR(cmd); local
207 if (nr < DRM_COMMAND_BASE)
210 if (nr < DRM_COMMAND_BASE + DRM_ARRAY_SIZE(i915_compat_ioctls))
211 fn = i915_compat_ioctls[nr - DRM_COMMAND_BASE];
H A Di915_mem.c52 unsigned shift, nr; local
59 nr = I915_NR_TEX_REGIONS;
81 list[i].prev = nr;
82 list[i].next = list[nr].next;
83 list[(unsigned)list[nr].next].prev = i;
84 list[nr].next = i;
/drivers/gpu/drm/mga/
H A Dmga_ioc32.c210 unsigned int nr = DRM_IOCTL_NR(cmd); local
214 if (nr < DRM_COMMAND_BASE)
217 if (nr < DRM_COMMAND_BASE + DRM_ARRAY_SIZE(mga_compat_ioctls))
218 fn = mga_compat_ioctls[nr - DRM_COMMAND_BASE];
/drivers/gpu/drm/r128/
H A Dr128_ioc32.c199 unsigned int nr = DRM_IOCTL_NR(cmd); local
203 if (nr < DRM_COMMAND_BASE)
206 if (nr < DRM_COMMAND_BASE + DRM_ARRAY_SIZE(r128_compat_ioctls))
207 fn = r128_compat_ioctls[nr - DRM_COMMAND_BASE];

Completed in 548 milliseconds

12345678