/linux/drivers/media/usb/go7007/ |
H A D | go7007-driver.c | 33 int go7007_read_interrupt(struct go7007 *go, u16 *value, u16 *data) in go7007_read_interrupt() argument 35 go->interrupt_available = 0; in go7007_read_interrupt() 36 go->hpi_ops->read_interrupt(go); in go7007_read_interrupt() 37 if (wait_event_timeout(go->interrupt_waitq, in go7007_read_interrupt() 38 go->interrupt_available, 5*HZ) < 0) { in go7007_read_interrupt() 39 v4l2_err(&go->v4l2_dev, "timeout waiting for read interrupt\n"); in go7007_read_interrupt() 42 if (!go->interrupt_available) in go7007_read_interrupt() 44 go->interrupt_available = 0; in go7007_read_interrupt() 45 *value = go->interrupt_value & 0xfffe; in go7007_read_interrupt() 46 *data = go->interrupt_data; in go7007_read_interrupt() [all …]
|
H A D | go7007-fw.c | 290 static int mjpeg_frame_header(struct go7007 *go, unsigned char *buf, int q) in mjpeg_frame_header() argument 310 buf[p++] = go->height >> 8; in mjpeg_frame_header() 311 buf[p++] = go->height & 0xff; in mjpeg_frame_header() 312 buf[p++] = go->width >> 8; in mjpeg_frame_header() 313 buf[p++] = go->width & 0xff; in mjpeg_frame_header() 365 static int gen_mjpeghdr_to_package(struct go7007 *go, __le16 *code, int space) in gen_mjpeghdr_to_package() argument 377 mjpeg_frame_header(go, buf + size, i); in gen_mjpeghdr_to_package() 380 chunk = mjpeg_frame_header(go, buf + size, 1); in gen_mjpeghdr_to_package() 416 static int mpeg1_frame_header(struct go7007 *go, unsigned char *buf, in mpeg1_frame_header() argument 420 int rows = go->interlace_coding ? go->height / 32 : go->height / 16; in mpeg1_frame_header() [all …]
|
H A D | go7007-usb.c | 622 static int go7007_usb_vendor_request(struct go7007 *go, int request, in go7007_usb_vendor_request() argument 625 struct go7007_usb *usb = go->hpi_context; in go7007_usb_vendor_request() 641 static int go7007_usb_interface_reset(struct go7007 *go) in go7007_usb_interface_reset() argument 643 struct go7007_usb *usb = go->hpi_context; in go7007_usb_interface_reset() 646 if (go->status == STATUS_SHUTDOWN) in go7007_usb_interface_reset() 649 if (go7007_write_interrupt(go, 0x0001, 0x0001) < 0) in go7007_usb_interface_reset() 656 if (go7007_usb_vendor_request(go, 0x10, 0, 0, NULL, 0, 0) < 0 || in go7007_usb_interface_reset() 657 go7007_usb_vendor_request(go, 0x10, 0, 0, NULL, 0, 0) < 0) in go7007_usb_interface_reset() 661 if (go7007_write_interrupt(go, 0x0001, 0x0001) < 0) in go7007_usb_interface_reset() 667 if (go7007_read_interrupt(go, &intr_val, &intr_data) < 0 || in go7007_usb_interface_reset() [all …]
|
H A D | go7007-i2c.c | 38 static inline void adlink_mpg24_i2c_lock(struct go7007 *go) in adlink_mpg24_i2c_lock() argument 42 go7007_write_addr(go, 0x3c82, 0x0020); in adlink_mpg24_i2c_lock() 45 static inline void adlink_mpg24_i2c_unlock(struct go7007 *go) in adlink_mpg24_i2c_unlock() argument 48 go7007_write_addr(go, 0x3c82, 0x0000); in adlink_mpg24_i2c_unlock() 52 static int go7007_i2c_xfer(struct go7007 *go, u16 addr, int read, in go7007_i2c_xfer() argument 58 if (go->status == STATUS_SHUTDOWN) in go7007_i2c_xfer() 63 dev_dbg(go->dev, "go7007-i2c: reading 0x%02x on 0x%02x\n", in go7007_i2c_xfer() 66 dev_dbg(go->dev, in go7007_i2c_xfer() 71 mutex_lock(&go->hw_lock); in go7007_i2c_xfer() 73 if (go->board_id == GO7007_BOARDID_ADLINK_MPG24) in go7007_i2c_xfer() [all …]
|
H A D | go7007-priv.h | 116 int (*interface_reset)(struct go7007 *go); 117 int (*write_interrupt)(struct go7007 *go, int addr, int data); 118 int (*read_interrupt)(struct go7007 *go); 119 int (*stream_start)(struct go7007 *go); 120 int (*stream_stop)(struct go7007 *go); 121 int (*send_firmware)(struct go7007 *go, u8 *data, int len); 122 int (*send_command)(struct go7007 *go, unsigned int cmd, void *arg); 123 void (*release)(struct go7007 *go); 237 void (*audio_deliver)(struct go7007 *go, u8 *buf, int length); 259 #define go7007_interface_reset(go) \ argument [all …]
|
H A D | snd-go7007.c | 64 static void parse_audio_stream_data(struct go7007 *go, u8 *buf, int length) in parse_audio_stream_data() argument 66 struct go7007_snd *gosnd = go->snd_context; in parse_audio_stream_data() 101 struct go7007 *go = snd_pcm_substream_chip(substream); in go7007_snd_hw_params() local 103 go->audio_deliver = parse_audio_stream_data; in go7007_snd_hw_params() 109 struct go7007 *go = snd_pcm_substream_chip(substream); in go7007_snd_hw_free() local 111 go->audio_deliver = NULL; in go7007_snd_hw_free() 117 struct go7007 *go = snd_pcm_substream_chip(substream); in go7007_snd_capture_open() local 118 struct go7007_snd *gosnd = go->snd_context; in go7007_snd_capture_open() 135 struct go7007 *go = snd_pcm_substream_chip(substream); in go7007_snd_capture_close() local 136 struct go7007_snd *gosnd = go->snd_context; in go7007_snd_capture_close() [all …]
|
H A D | s2250-board.c | 131 static int go7007_usb_vendor_request(struct go7007 *go, u16 request, in go7007_usb_vendor_request() argument 134 struct go7007_usb *usb = go->hpi_context; in go7007_usb_vendor_request() 153 struct go7007 *go = i2c_get_adapdata(client->adapter); in write_reg() local 159 if (go == NULL) in write_reg() 162 if (go->status == STATUS_SHUTDOWN) in write_reg() 169 usb = go->hpi_context; in write_reg() 175 rc = go7007_usb_vendor_request(go, 0x55, dev_addr, in write_reg() 187 struct go7007 *go = i2c_get_adapdata(client->adapter); in write_reg_fp() local 193 if (go == NULL) in write_reg_fp() 196 if (go->status == STATUS_SHUTDOWN) in write_reg_fp() [all …]
|
/linux/drivers/media/pci/saa7134/ |
H A D | saa7134-go7007.c | 131 static int saa7134_go7007_interface_reset(struct go7007 *go) in saa7134_go7007_interface_reset() argument 133 struct saa7134_go7007 *saa = go->hpi_context; in saa7134_go7007_interface_reset() 167 if (go7007_read_interrupt(go, &intr_val, &intr_data) < 0 || in saa7134_go7007_interface_reset() 175 static int saa7134_go7007_write_interrupt(struct go7007 *go, int addr, int data) in saa7134_go7007_write_interrupt() argument 177 struct saa7134_go7007 *saa = go->hpi_context; in saa7134_go7007_write_interrupt() 203 static int saa7134_go7007_read_interrupt(struct go7007 *go) in saa7134_go7007_read_interrupt() argument 205 struct saa7134_go7007 *saa = go->hpi_context; in saa7134_go7007_read_interrupt() 209 go->interrupt_available = 1; in saa7134_go7007_read_interrupt() 210 gpio_read(dev, HPI_ADDR_INTR_RET_VALUE, &go->interrupt_value); in saa7134_go7007_read_interrupt() 211 gpio_read(dev, HPI_ADDR_INTR_RET_DATA, &go->interrupt_data); in saa7134_go7007_read_interrupt() [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | uprobe_syscall.c | 254 int pid, status, err, go[2], c; in test_uretprobe_syscall_call() local 256 if (!ASSERT_OK(pipe(go), "pipe")) in test_uretprobe_syscall_call() 269 close(go[1]); in test_uretprobe_syscall_call() 272 err = read(go[0], &c, 1); in test_uretprobe_syscall_call() 287 write(go[1], &c, 1); in test_uretprobe_syscall_call() 300 close(go[1]); in test_uretprobe_syscall_call() 301 close(go[0]); in test_uretprobe_syscall_call()
|
H A D | uprobe_multi_test.c | 49 int go[2]; member 63 close(child->go[1]); in release_child() 64 close(child->go[0]); in release_child() 78 write(child->go[1], &c, 1); in kick_child() 89 close(child->go[1]); in child_func() 92 err = read(child->go[0], &c, 1); in child_func() 107 if (pipe(child->go)) in spawn_child_flag() 147 err = read(child->go[0], &c, 1); in child_thread() 165 if (pipe(child->go)) in spawn_thread() 169 close(child->go[0]); in spawn_thread() [all …]
|
/linux/drivers/video/console/ |
H A D | newport_con.c | 55 (regs)->go.zpattern = BMASK((cp)[0x0]); (regs)->go.zpattern = BMASK((cp)[0x1]); \ 56 (regs)->go.zpattern = BMASK((cp)[0x2]); (regs)->go.zpattern = BMASK((cp)[0x3]); \ 57 (regs)->go.zpattern = BMASK((cp)[0x4]); (regs)->go.zpattern = BMASK((cp)[0x5]); \ 58 (regs)->go.zpattern = BMASK((cp)[0x6]); (regs)->go.zpattern = BMASK((cp)[0x7]); \ 59 (regs)->go.zpattern = BMASK((cp)[0x8]); (regs)->go.zpattern = BMASK((cp)[0x9]); \ 60 (regs)->go.zpattern = BMASK((cp)[0xa]); (regs)->go.zpattern = BMASK((cp)[0xb]); \ 61 (regs)->go.zpattern = BMASK((cp)[0xc]); (regs)->go.zpattern = BMASK((cp)[0xd]); \ 62 (regs)->go.zpattern = BMASK((cp)[0xe]); (regs)->go.zpattern = BMASK((cp)[0xf]); \ 79 npregs->go.xyendi = in newport_render_background() 125 npregs->go.hostrw0 = *data++ << 24; in newport_show_logo() [all …]
|
/linux/drivers/s390/char/ |
H A D | sclp_rw.c | 88 struct go *go; in sclp_initialize_mto() local 111 go = &mdb->go; in sclp_initialize_mto() 112 go->length = sizeof(struct go); in sclp_initialize_mto() 113 go->type = 1; in sclp_initialize_mto() 217 buffer->current_msg->mdb.go.general_msg_flags |= in sclp_write()
|
H A D | sclp_early_core.c | 94 struct go *go; in sclp_early_print_lm() local 125 go = &mdb->go; in sclp_early_print_lm() 126 go->length = sizeof(*go); in sclp_early_print_lm() 127 go->type = 1; in sclp_early_print_lm()
|
H A D | sclp_rw.h | 24 struct go { struct 48 struct go go; argument
|
/linux/drivers/clk/rockchip/ |
H A D | clk.h | 604 df, go, gs, gf) \ argument 619 .gate_offset = go, \ 625 mf, do, ds, dw, df, go, gs, gf) \ argument 641 .gate_offset = go, \ 647 go, gs, gf) \ argument 659 .gate_offset = go, \ 665 df, dt, go, gs, gf) \ argument 678 .gate_offset = go, \ 684 go, gs, gf) \ argument 696 .gate_offset = go, \ [all …]
|
/linux/tools/perf/tests/ |
H A D | mmap-thread-lookup.c | 58 int go = 0; in thread_fn() local 64 ret = write(td->ready[1], &go, sizeof(int)); in thread_fn() 82 int err, go; in thread_create() local 90 ssize_t ret = read(td->ready[0], &go, sizeof(int)); in thread_create()
|
/linux/Documentation/power/ |
H A D | tricks.rst | 9 * go with minimal config, turn off drivers like USB, AGP you don't 14 * use ext2. At least it has working fsck. [If something seems to go 22 * try running as few processes as possible, preferably go to single
|
/linux/kernel/power/ |
H A D | swap.c | 599 wait_queue_head_t go; /* start crc update */ member 615 wait_event(d->go, atomic_read_acquire(&d->ready) || in crc32_threadfn() 642 wait_queue_head_t go; /* start compression */ member 662 wait_event(d->go, atomic_read_acquire(&d->ready) || in compress_threadfn() 745 init_waitqueue_head(&data[thr].go); in save_compressed_image() 769 init_waitqueue_head(&crc->go); in save_compressed_image() 825 wake_up(&data[thr].go); in save_compressed_image() 833 wake_up(&crc->go); in save_compressed_image() 1149 wait_queue_head_t go; /* start decompression */ member 1166 wait_event(d->go, atomic_read_acquire(&d->ready) || in decompress_threadfn() [all …]
|
/linux/Documentation/devicetree/bindings/pwm/ |
H A D | pwm-tipwmss.txt | 33 /* child nodes go here */ 46 /* child nodes go here */ 57 /* child nodes go here */
|
/linux/arch/m68k/fpsp040/ |
H A D | stwotox.S | 25 | 1. If |X| > 16480, go to ExpBig. 27 | 2. If |X| < 2**(-70), go to ExpSm. 38 | 1. If |X| > 16480*log_10(2) (base 10 log of 2), go to ExpBig. 40 | 2. If |X| < 2**(-70), go to ExpSm.
|
H A D | sacos.S | 23 | 1. If |X| >= 1, go to 3. 30 | 3. If |X| > 1, go to 5.
|
/linux/arch/alpha/lib/ |
H A D | ev6-memcpy.S | 80 cmple $18, 127, $1 # E : Can we go through the unrolled loop? 108 subq $18, 192, $2 # E : At least two more trips to go? 196 bne $1, $aligndest # U : go until we are aligned. 235 bgt $18, $misalign_byte # U : more to go?
|
/linux/arch/arm/mach-mvebu/ |
H A D | pmsu_ll.S | 29 ARM_BE8(setend be ) @ go BE8 if entered LE 45 ARM_BE8(setend be ) @ go BE8 if entered LE
|
/linux/Documentation/watchdog/ |
H A D | convert_drivers_to_kernel_api.rst | 20 go. Only very few driver-specific details have to be moved to other functions. 24 close preparations) can simply go. Device specific stuff needs to go to the 31 - write: Can simply go, all defined behaviour is taken care of by the framework, 85 refactoring. The rest can go. 187 can go, though. This will likely be some code in open(), close() or write().
|
/linux/Documentation/w1/slaves/ |
H A D | w1_ds28e17.rst | 23 come and go as the DS28E17 devices come and go. I2C slave devices connected to 42 chips may come and go on the Onewire bus without being de-powered and
|