/drivers/gpu/drm/nouveau/core/subdev/gpio/ |
H A D | nv10.c | 30 nv10_gpio_sense(struct nouveau_gpio *gpio, int line) argument 32 if (line < 2) { 33 line = line * 16; 34 line = nv_rd32(gpio, 0x600818) >> line; 35 return !!(line & 0x0100); 37 if (line < 10) { 38 line = (line 52 nv10_gpio_drive(struct nouveau_gpio *gpio, int line, int dir, int out) argument [all...] |
H A D | nv50.c | 38 u8 line = (data & 0x0000001f); local 44 u32 reg = regs[line >> 4]; 45 u32 lsh = line & 0x0f; 51 gpio->set(gpio, 0, func, line, defs); 58 nv50_gpio_location(int line, u32 *reg, u32 *shift) argument 62 if (line >= 32) 65 *reg = nv50_gpio_reg[line >> 3]; 66 *shift = (line & 7) << 2; 71 nv50_gpio_drive(struct nouveau_gpio *gpio, int line, int dir, int out) argument 75 if (nv50_gpio_location(line, 83 nv50_gpio_sense(struct nouveau_gpio *gpio, int line) argument [all...] |
H A D | nvd0.c | 37 u8 line = (data & 0x0000003f); local 47 gpio->set(gpio, 0, func, line, defs); 49 nv_mask(gpio, 0x00d610 + (line * 4), 0xff, unk0); 51 nv_mask(gpio, 0x00d740 + (unk1 * 4), 0xff, line); 56 nvd0_gpio_drive(struct nouveau_gpio *gpio, int line, int dir, int out) argument 59 nv_mask(gpio, 0x00d610 + (line * 4), 0x00003000, data); 65 nvd0_gpio_sense(struct nouveau_gpio *gpio, int line) argument 67 return !!(nv_rd32(gpio, 0x00d610 + (line * 4)) & 0x00004000);
|
H A D | base.c | 32 int idx, int line, int dir, int out) 35 return impl->drive ? impl->drive(gpio, line, dir, out) : -ENODEV; 39 nouveau_gpio_sense(struct nouveau_gpio *gpio, int idx, int line) argument 42 return impl->sense ? impl->sense(gpio, line) : -ENODEV; 46 nouveau_gpio_find(struct nouveau_gpio *gpio, int idx, u8 tag, u8 line, argument 53 if (line == 0xff && tag == 0xff) 56 data = dcb_gpio_match(bios, idx, tag, line, &ver, &len, func); 65 .line = 4, 77 nouveau_gpio_set(struct nouveau_gpio *gpio, int idx, u8 tag, u8 line, int state) argument 82 ret = nouveau_gpio_find(gpio, idx, tag, line, 31 nouveau_gpio_drive(struct nouveau_gpio *gpio, int idx, int line, int dir, int out) argument 93 nouveau_gpio_get(struct nouveau_gpio *gpio, int idx, u8 tag, u8 line) argument [all...] |
/drivers/zorro/ |
H A D | gen-devlist.c | 31 char line[1024], *c, *bra, manuf[8]; local 44 while (fgets(line, sizeof(line)-1, stdin)) { 46 if ((c = strchr(line, '\n'))) 48 if (!line[0] || line[0] == '#') 50 if (line[0] == '\t') { 53 if (strlen(line) > 5 && line[5] == ' ') { 54 c = line [all...] |
/drivers/fmc/ |
H A D | fmc-dump.c | 24 static const uint8_t *dump_line(int addr, const uint8_t *line, argument 29 if (!prev || memcmp(line, prev, LINELEN)) { 32 printk(KERN_CONT "%02x", line[i]); 36 return line; 38 /* repeated line */ 39 if (line == prev + LINELEN) 46 const uint8_t *line, *prev; local 57 line = fmc->eeprom; 59 for (i = 0; i < fmc->eeprom_len; i += LINELEN, line += LINELEN) 60 prev = dump_line(i, line, pre 65 const uint8_t *line, *prev; local [all...] |
/drivers/media/pci/cx18/ |
H A D | cx18-vbi.h | 26 int cx18_used_line(struct cx18 *cx, int line, int field);
|
H A D | cx18-vbi.c | 32 * of VBI sample or VBI ancillary data regions in the digitial ratser line. 41 int line = 0; local 69 l = sdata->line - 6; 77 dst[sd + 12 + line * 43] = cx18_service2vbi(sdata->id); 78 memcpy(dst + sd + 12 + line * 43 + 1, sdata->data, 42); 79 line++; 82 if (line == 36) { 87 memmove(dst + sd + 4, dst + sd + 12, line * 43); 88 size = 4 + ((43 * line + 3) & ~3); 94 size = 12 + ((43 * line 147 u32 line = 0; local [all...] |
/drivers/gpu/drm/nouveau/core/subdev/therm/ |
H A D | nv50.c | 33 pwm_info(struct nouveau_therm *therm, int *line, int *ctrl, int *indx) argument 35 if (*line == 0x04) { 37 *line = 4; 40 if (*line == 0x09) { 42 *line = 9; 45 if (*line == 0x10) { 47 *line = 0; 50 nv_error(therm, "unknown pwm ctrl for gpio %d\n", *line); 58 nv50_fan_pwm_ctrl(struct nouveau_therm *therm, int line, bool enable) argument 61 int ctrl, id, ret = pwm_info(therm, &line, 68 nv50_fan_pwm_get(struct nouveau_therm *therm, int line, u32 *divs, u32 *duty) argument 84 nv50_fan_pwm_set(struct nouveau_therm *therm, int line, u32 divs, u32 duty) argument 96 nv50_fan_pwm_clock(struct nouveau_therm *therm, int line) argument [all...] |
H A D | nvd0.c | 32 pwm_info(struct nouveau_therm *therm, int line) argument 34 u32 gpio = nv_rd32(therm, 0x00d610 + (line * 0x04)); 51 nv_error(therm, "GPIO %d unknown PWM: 0x%08x\n", line, gpio); 56 nvd0_fan_pwm_ctrl(struct nouveau_therm *therm, int line, bool enable) argument 59 int indx = pwm_info(therm, line); 63 nv_mask(therm, 0x00d610 + (line * 0x04), 0x000000c0, data); 69 nvd0_fan_pwm_get(struct nouveau_therm *therm, int line, u32 *divs, u32 *duty) argument 71 int indx = pwm_info(therm, line); 75 if (nv_rd32(therm, 0x00d610 + (line * 0x04)) & 0x00000040) { 90 nvd0_fan_pwm_set(struct nouveau_therm *therm, int line, u3 argument 106 nvd0_fan_pwm_clock(struct nouveau_therm *therm, int line) argument [all...] |
H A D | fanpwm.c | 48 ret = therm->pwm_get(therm, priv->func.line, &divs, &duty); 56 return gpio->get(gpio, 0, priv->func.func, priv->func.line) * 100; 72 divs = therm->pwm_clock(therm, priv->func.line); 80 ret = therm->pwm_set(therm, priv->func.line, divs, duty); 82 ret = therm->pwm_ctrl(therm, priv->func.line, true); 100 therm->pwm_get(therm, func->line, &divs, &duty) == -ENODEV)
|
/drivers/gpu/drm/nouveau/core/include/subdev/ |
H A D | gpio.h | 16 u8 line; member in struct:nvkm_gpio_ntfy_req 29 int (*find)(struct nouveau_gpio *, int idx, u8 tag, u8 line, 31 int (*set)(struct nouveau_gpio *, int idx, u8 tag, u8 line, int state); 32 int (*get)(struct nouveau_gpio *, int idx, u8 tag, u8 line);
|
H A D | therm.h | 31 int (*pwm_ctrl)(struct nouveau_therm *, int line, bool); 32 int (*pwm_get)(struct nouveau_therm *, int line, u32 *, u32 *); 33 int (*pwm_set)(struct nouveau_therm *, int line, u32, u32); 34 int (*pwm_clock)(struct nouveau_therm *, int line);
|
/drivers/net/wireless/brcm80211/include/ |
H A D | defs.h | 100 #define _PADLINE(line) pad ## line 101 #define _XSTR(line) _PADLINE(line)
|
/drivers/tty/serial/ |
H A D | m32r_sio.h | 30 void m32r_sio_suspend_port(int line); 31 void m32r_sio_resume_port(int line);
|
/drivers/tty/serial/8250/ |
H A D | 8250_pnp.c | 430 int ret, line, flags = dev_id->driver_data; local 470 line = serial8250_register_8250_port(&uart); 471 if (line < 0 || (flags & CIR_PORT)) 474 pnp_set_drvdata(dev, (void *)((long)line + 1)); 480 long line = (long)pnp_get_drvdata(dev); local 481 if (line) 482 serial8250_unregister_port(line - 1); 488 long line = (long)pnp_get_drvdata(dev); local 490 if (!line) 492 serial8250_suspend_port(line 498 long line = (long)pnp_get_drvdata(dev); local [all...] |
H A D | 8250_hp300.c | 31 int line; /* line (tty) number */ member in struct:hp300_port 125 add_preferred_console("ttyS", port.line, "9600n8"); 148 add_preferred_console("ttyS", port.line, "9600n8"); 166 int line; local 185 line = serial8250_register_8250_port(&uart); 187 if (line < 0) { 195 dio_set_drvdata(d, (void *)line); 211 int line; local 266 line 293 int line; local [all...] |
/drivers/media/usb/pwc/ |
H A D | pwc-uncompress.c | 38 int n, line, col; local 78 for (line = 0; line < pdev->height; line++) { 82 if (line & 1)
|
/drivers/gpio/ |
H A D | gpio-ts5500.c | 210 const struct ts5500_dio line = priv->pinout[offset]; local 213 if (line.no_input) 216 if (line.no_output) 220 ts5500_clear_mask(line.control_mask, line.control_addr); 229 const struct ts5500_dio line = priv->pinout[offset]; local 231 return !!(inb(line.value_addr) & line.value_mask); 237 const struct ts5500_dio line = priv->pinout[offset]; local 240 if (line 259 const struct ts5500_dio line = priv->pinout[offset]; local 274 const struct ts5500_dio line = block[offset]; local [all...] |
H A D | gpio-iop.c | 38 static void gpio_line_config(int line, int direction) argument 46 val |= BIT(line); 48 val &= ~BIT(line); 54 static int gpio_line_get(int line) argument 56 return !!(readl(IOP3XX_GPID) & BIT(line)); 59 static void gpio_line_set(int line, int value) argument 67 val &= ~BIT(line); 69 val |= BIT(line);
|
/drivers/media/pci/ivtv/ |
H A D | ivtv-vbi.c | 35 data.line = enabled ? 16 : 0; 52 data.line = (mode & 1) ? 21 : 0; 57 data.line = (mode & 2) ? 21 : 0; 80 data.line = enabled ? 23 : 0; 101 if (d->id == V4L2_SLICED_CAPTION_525 && d->line == 21) { 110 } else if (d->id == V4L2_SLICED_VPS && d->line == 16 && d->field == 0) { 123 d->line == 23 && d->field == 0) { 188 int line = 0; local 208 l = itv->vbi.sliced_data[i].line - 6; 216 dst[sd + 12 + line * 4 250 int line = 0; local 337 compress_sliced_buf(struct ivtv *itv, u32 line, u8 *buf, u32 size, u8 sav) argument [all...] |
H A D | ivtv-vbi.h | 29 int ivtv_used_line(struct ivtv *itv, int line, int field);
|
/drivers/acpi/acpica/ |
H A D | uttrack.c | 50 * line number. acpi_ut_allocate and acpi_ut_allocate_zeroed call 72 u32 component, const char *module, u32 line); 76 u32 component, const char *module, u32 line); 119 * line - Line number of caller 128 u32 component, const char *module, u32 line) 136 ACPI_WARNING((module, line, 147 ACPI_WARNING((module, line, 155 line); 180 * line - Line number of caller 190 const char *module, u32 line) 127 acpi_ut_allocate_and_track(acpi_size size, u32 component, const char *module, u32 line) argument 188 acpi_ut_allocate_zeroed_and_track(acpi_size size, u32 component, const char *module, u32 line) argument 251 acpi_ut_free_and_track(void *allocation, u32 component, const char *module, u32 line) argument 365 acpi_ut_track_allocation(struct acpi_debug_mem_block *allocation, acpi_size size, u8 alloc_type, u32 component, const char *module, u32 line) argument 455 acpi_ut_remove_allocation(struct acpi_debug_mem_block *allocation, u32 component, const char *module, u32 line) argument [all...] |
/drivers/staging/lustre/lustre/include/linux/ |
H A D | obd.h | 66 int line; member in struct:__anon6535 70 const char *func, int line) 78 lock->line = line; 94 lock->func, lock->line, 69 __client_obd_list_lock(client_obd_lock_t *lock, const char *func, int line) argument
|
/drivers/isdn/i4l/ |
H A D | isdn_v110.c | 63 * the isdn line is the other way. 192 int line = 0; local 199 while (line < len) { /* Are we done with all lines of the matrix? */ 200 if ((line % 10) == 0) { /* the 0. line of the matrix is always 0 ! */ 201 if (m[line] != 0x00) { /* not 0 ? -> error! */ 207 line++; /* next line of matrix */ 209 } else if ((line % 10) == 5) { /* in line 327 int line = 0; local [all...] |