arch/m68k/ifpsp060/src/fpsp.S
12203
# if underflow or inexact is enabled, then go calculate the EXOP first.
arch/m68k/ifpsp060/src/fpsp.S
12983
# if underflow or inexact is enabled, go calculate EXOP first.
arch/m68k/ifpsp060/src/fpsp.S
13599
# if underflow or inexact is enabled, go calculate EXOP first.
arch/m68k/ifpsp060/src/fpsp.S
15679
# if underflow or inexact is enabled, go calculate EXOP first.
arch/m68k/ifpsp060/src/pfpsp.S
10030
# if underflow or inexact is enabled, go calculate EXOP first.
arch/m68k/ifpsp060/src/pfpsp.S
12110
# if underflow or inexact is enabled, go calculate EXOP first.
arch/m68k/ifpsp060/src/pfpsp.S
8634
# if underflow or inexact is enabled, then go calculate the EXOP first.
arch/m68k/ifpsp060/src/pfpsp.S
9414
# if underflow or inexact is enabled, go calculate EXOP first.
arch/sparc/kernel/smp_64.c
166
static unsigned long go[SLAVE + 1];
arch/sparc/kernel/smp_64.c
178
go[MASTER] = 1;
arch/sparc/kernel/smp_64.c
180
while (!(tm = go[SLAVE]))
arch/sparc/kernel/smp_64.c
182
go[SLAVE] = 0;
arch/sparc/kernel/smp_64.c
213
go[MASTER] = 1;
arch/sparc/kernel/smp_64.c
215
while (go[MASTER])
arch/sparc/kernel/smp_64.c
261
go[MASTER] = 0;
arch/sparc/kernel/smp_64.c
266
while (!go[MASTER])
arch/sparc/kernel/smp_64.c
270
go[MASTER] = 0;
arch/sparc/kernel/smp_64.c
276
while (!go[MASTER])
arch/sparc/kernel/smp_64.c
278
go[MASTER] = 0;
arch/sparc/kernel/smp_64.c
280
go[SLAVE] = tick_ops->get_tick();
arch/sparc/vdso/vdso2c.c
221
go(raw_addr, raw_len, stripped_addr, stripped_len, outfile, name);
arch/sparc/vdso/vdso2c.h
11
static void BITSFUNC(go)(void *raw_addr, size_t raw_len,
arch/x86/events/perf_event.h
689
go:1,
arch/x86/tools/vdso2c.c
226
go(raw_addr, raw_len, stripped_addr, stripped_len, outfile, name);
arch/x86/tools/vdso2c.h
43
static void BITSFUNC(go)(void *raw_addr, size_t raw_len,
drivers/clk/rockchip/clk.h
1167
#define FACTOR_GATE(_id, cname, pname, f, fm, fd, go, gb, gf) \
drivers/clk/rockchip/clk.h
1177
.gate_offset = go, \
drivers/clk/rockchip/clk.h
1183
df, go, gs, gf) \
drivers/clk/rockchip/clk.h
1198
.gate_offset = go, \
drivers/clk/rockchip/clk.h
1223
go, gs, gf) \
drivers/clk/rockchip/clk.h
1235
.gate_offset = go, \
drivers/clk/rockchip/clk.h
797
df, go, gs, gf) \
drivers/clk/rockchip/clk.h
812
.gate_offset = go, \
drivers/clk/rockchip/clk.h
818
mf, do, ds, dw, df, go, gs, gf) \
drivers/clk/rockchip/clk.h
834
.gate_offset = go, \
drivers/clk/rockchip/clk.h
840
go, gs, gf) \
drivers/clk/rockchip/clk.h
852
.gate_offset = go, \
drivers/clk/rockchip/clk.h
858
df, dt, go, gs, gf) \
drivers/clk/rockchip/clk.h
871
.gate_offset = go, \
drivers/clk/rockchip/clk.h
877
go, gs, gf) \
drivers/clk/rockchip/clk.h
889
.gate_offset = go, \
drivers/clk/rockchip/clk.h
933
#define COMPOSITE_FRAC(_id, cname, pname, f, mo, df, go, gs, gf)\
drivers/clk/rockchip/clk.h
945
.gate_offset = go, \
drivers/clk/rockchip/clk.h
950
#define COMPOSITE_FRACMUX(_id, cname, pname, f, mo, df, go, gs, gf, ch) \
drivers/clk/rockchip/clk.h
962
.gate_offset = go, \
drivers/dma/pl330.c
1006
struct _arg_GO go;
drivers/dma/pl330.c
1043
go.chan = thrd->id;
drivers/dma/pl330.c
1044
go.addr = req->mc_bus;
drivers/dma/pl330.c
1045
go.ns = ns;
drivers/dma/pl330.c
1046
_emit_GO(0, insn, &go);
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
2650
ps->go.semaphore = 0;
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
2657
return __get_parent_scratch(ce)->go.semaphore;
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
440
struct sync_semaphore go;
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
5619
offsetof(struct parent_scratch, go.semaphore);
drivers/gpu/drm/xe/xe_guc_submit_types.h
51
struct sync_semaphore go;
drivers/gpu/ipu-v3/ipu-cpmem.c
364
int bpp = 0, npb = 0, ro, go, bo, to;
drivers/gpu/ipu-v3/ipu-cpmem.c
367
go = rgb->bits_per_pixel - rgb->green.length - rgb->green.offset;
drivers/gpu/ipu-v3/ipu-cpmem.c
374
ipu_ch_param_write_field(ch, IPU_FIELD_OFS1, go);
drivers/media/pci/saa7134/saa7134-go7007.c
131
static int saa7134_go7007_interface_reset(struct go7007 *go)
drivers/media/pci/saa7134/saa7134-go7007.c
133
struct saa7134_go7007 *saa = go->hpi_context;
drivers/media/pci/saa7134/saa7134-go7007.c
167
if (go7007_read_interrupt(go, &intr_val, &intr_data) < 0 ||
drivers/media/pci/saa7134/saa7134-go7007.c
175
static int saa7134_go7007_write_interrupt(struct go7007 *go, int addr, int data)
drivers/media/pci/saa7134/saa7134-go7007.c
177
struct saa7134_go7007 *saa = go->hpi_context;
drivers/media/pci/saa7134/saa7134-go7007.c
203
static int saa7134_go7007_read_interrupt(struct go7007 *go)
drivers/media/pci/saa7134/saa7134-go7007.c
205
struct saa7134_go7007 *saa = go->hpi_context;
drivers/media/pci/saa7134/saa7134-go7007.c
209
go->interrupt_available = 1;
drivers/media/pci/saa7134/saa7134-go7007.c
210
gpio_read(dev, HPI_ADDR_INTR_RET_VALUE, &go->interrupt_value);
drivers/media/pci/saa7134/saa7134-go7007.c
211
gpio_read(dev, HPI_ADDR_INTR_RET_DATA, &go->interrupt_data);
drivers/media/pci/saa7134/saa7134-go7007.c
214
go->interrupt_value, go->interrupt_data);
drivers/media/pci/saa7134/saa7134-go7007.c
222
struct go7007 *go = video_get_drvdata(dev->empress_dev);
drivers/media/pci/saa7134/saa7134-go7007.c
223
struct saa7134_go7007 *saa = go->hpi_context;
drivers/media/pci/saa7134/saa7134-go7007.c
225
if (!vb2_is_streaming(&go->vidq))
drivers/media/pci/saa7134/saa7134-go7007.c
233
go7007_parse_video_stream(go, saa->bottom, PAGE_SIZE);
drivers/media/pci/saa7134/saa7134-go7007.c
238
go7007_parse_video_stream(go, saa->top, PAGE_SIZE);
drivers/media/pci/saa7134/saa7134-go7007.c
243
static int saa7134_go7007_stream_start(struct go7007 *go)
drivers/media/pci/saa7134/saa7134-go7007.c
245
struct saa7134_go7007 *saa = go->hpi_context;
drivers/media/pci/saa7134/saa7134-go7007.c
301
static int saa7134_go7007_stream_stop(struct go7007 *go)
drivers/media/pci/saa7134/saa7134-go7007.c
303
struct saa7134_go7007 *saa = go->hpi_context;
drivers/media/pci/saa7134/saa7134-go7007.c
330
static int saa7134_go7007_send_firmware(struct go7007 *go, u8 *data, int len)
drivers/media/pci/saa7134/saa7134-go7007.c
332
struct saa7134_go7007 *saa = go->hpi_context;
drivers/media/pci/saa7134/saa7134-go7007.c
407
struct go7007 *go;
drivers/media/pci/saa7134/saa7134-go7007.c
413
go = go7007_alloc(&board_voyager, &dev->pci->dev);
drivers/media/pci/saa7134/saa7134-go7007.c
414
if (go == NULL)
drivers/media/pci/saa7134/saa7134-go7007.c
419
kfree(go);
drivers/media/pci/saa7134/saa7134-go7007.c
423
go->board_id = GO7007_BOARDID_PCI_VOYAGER;
drivers/media/pci/saa7134/saa7134-go7007.c
424
snprintf(go->bus_info, sizeof(go->bus_info), "PCI:%s", pci_name(dev->pci));
drivers/media/pci/saa7134/saa7134-go7007.c
425
strscpy(go->name, saa7134_boards[dev->board].name, sizeof(go->name));
drivers/media/pci/saa7134/saa7134-go7007.c
426
go->hpi_ops = &saa7134_go7007_hpi_ops;
drivers/media/pci/saa7134/saa7134-go7007.c
427
go->hpi_context = saa;
drivers/media/pci/saa7134/saa7134-go7007.c
445
if (go7007_boot_encoder(go, go->board_info->flags &
drivers/media/pci/saa7134/saa7134-go7007.c
451
if (go7007_register_encoder(go, go->board_info->num_i2c_devs) < 0)
drivers/media/pci/saa7134/saa7134-go7007.c
455
if (v4l2_device_register_subdev(&go->v4l2_dev, sd) < 0)
drivers/media/pci/saa7134/saa7134-go7007.c
458
dev->empress_dev = &go->vdev;
drivers/media/pci/saa7134/saa7134-go7007.c
460
go->status = STATUS_ONLINE;
drivers/media/pci/saa7134/saa7134-go7007.c
469
kfree(go);
drivers/media/pci/saa7134/saa7134-go7007.c
475
struct go7007 *go;
drivers/media/pci/saa7134/saa7134-go7007.c
481
go = video_get_drvdata(dev->empress_dev);
drivers/media/pci/saa7134/saa7134-go7007.c
482
if (go->audio_enabled)
drivers/media/pci/saa7134/saa7134-go7007.c
483
go7007_snd_remove(go);
drivers/media/pci/saa7134/saa7134-go7007.c
485
saa = go->hpi_context;
drivers/media/pci/saa7134/saa7134-go7007.c
486
go->status = STATUS_SHUTDOWN;
drivers/media/pci/saa7134/saa7134-go7007.c
491
vb2_video_unregister_device(&go->vdev);
drivers/media/pci/saa7134/saa7134-go7007.c
493
v4l2_device_put(&go->v4l2_dev);
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg-hw.h
86
#define STM_CTRL_AUTO_START(go) ((go) << 8)
drivers/media/usb/go7007/go7007-driver.c
104
go->boot_fw_len = fw_len;
drivers/media/usb/go7007/go7007-driver.c
105
go->boot_fw = bounce;
drivers/media/usb/go7007/go7007-driver.c
107
if (go7007_interface_reset(go) < 0 ||
drivers/media/usb/go7007/go7007-driver.c
108
go7007_send_firmware(go, go->boot_fw, go->boot_fw_len) < 0 ||
drivers/media/usb/go7007/go7007-driver.c
109
go7007_read_interrupt(go, &intr_val, &intr_data) < 0 ||
drivers/media/usb/go7007/go7007-driver.c
111
v4l2_err(go, "error transferring firmware\n");
drivers/media/usb/go7007/go7007-driver.c
112
kfree(go->boot_fw);
drivers/media/usb/go7007/go7007-driver.c
113
go->boot_fw = NULL;
drivers/media/usb/go7007/go7007-driver.c
128
int go7007_boot_encoder(struct go7007 *go, int init_i2c)
drivers/media/usb/go7007/go7007-driver.c
132
mutex_lock(&go->hw_lock);
drivers/media/usb/go7007/go7007-driver.c
133
ret = go7007_load_encoder(go);
drivers/media/usb/go7007/go7007-driver.c
134
mutex_unlock(&go->hw_lock);
drivers/media/usb/go7007/go7007-driver.c
139
if (go7007_i2c_init(go) < 0)
drivers/media/usb/go7007/go7007-driver.c
141
go->i2c_adapter_online = 1;
drivers/media/usb/go7007/go7007-driver.c
153
static int go7007_init_encoder(struct go7007 *go)
drivers/media/usb/go7007/go7007-driver.c
155
if (go->board_info->audio_flags & GO7007_AUDIO_I2S_MASTER) {
drivers/media/usb/go7007/go7007-driver.c
156
go7007_write_addr(go, 0x1000, 0x0811);
drivers/media/usb/go7007/go7007-driver.c
157
go7007_write_addr(go, 0x1000, 0x0c11);
drivers/media/usb/go7007/go7007-driver.c
159
switch (go->board_id) {
drivers/media/usb/go7007/go7007-driver.c
162
go7007_write_addr(go, 0x3c82, 0x0001);
drivers/media/usb/go7007/go7007-driver.c
163
go7007_write_addr(go, 0x3c80, 0x00fe);
drivers/media/usb/go7007/go7007-driver.c
167
go7007_write_addr(go, 0x3c82, 0x0000);
drivers/media/usb/go7007/go7007-driver.c
168
go7007_write_addr(go, 0x3c80, 0x00df);
drivers/media/usb/go7007/go7007-driver.c
174
go7007_write_addr(go, 0x3c82, 0x000d);
drivers/media/usb/go7007/go7007-driver.c
175
go7007_write_addr(go, 0x3c80, 0x00f2);
drivers/media/usb/go7007/go7007-driver.c
187
int go7007_reset_encoder(struct go7007 *go)
drivers/media/usb/go7007/go7007-driver.c
189
if (go7007_load_encoder(go) < 0)
drivers/media/usb/go7007/go7007-driver.c
191
return go7007_init_encoder(go);
drivers/media/usb/go7007/go7007-driver.c
199
struct go7007 *go = i2c_get_adapdata(adapter);
drivers/media/usb/go7007/go7007-driver.c
200
struct v4l2_device *v4l2_dev = &go->v4l2_dev;
drivers/media/usb/go7007/go7007-driver.c
212
go->sd_video = sd;
drivers/media/usb/go7007/go7007-driver.c
214
go->sd_audio = sd;
drivers/media/usb/go7007/go7007-driver.c
229
struct go7007 *go = container_of(v4l2_dev, struct go7007, v4l2_dev);
drivers/media/usb/go7007/go7007-driver.c
232
if (go->hpi_ops->release)
drivers/media/usb/go7007/go7007-driver.c
233
go->hpi_ops->release(go);
drivers/media/usb/go7007/go7007-driver.c
234
if (go->i2c_adapter_online) {
drivers/media/usb/go7007/go7007-driver.c
235
i2c_del_adapter(&go->i2c_adapter);
drivers/media/usb/go7007/go7007-driver.c
236
go->i2c_adapter_online = 0;
drivers/media/usb/go7007/go7007-driver.c
239
kfree(go->boot_fw);
drivers/media/usb/go7007/go7007-driver.c
240
go7007_v4l2_remove(go);
drivers/media/usb/go7007/go7007-driver.c
241
kfree(go);
drivers/media/usb/go7007/go7007-driver.c
252
int go7007_register_encoder(struct go7007 *go, unsigned num_i2c_devs)
drivers/media/usb/go7007/go7007-driver.c
256
dev_info(go->dev, "go7007: registering new %s\n", go->name);
drivers/media/usb/go7007/go7007-driver.c
258
go->v4l2_dev.release = go7007_remove;
drivers/media/usb/go7007/go7007-driver.c
259
ret = v4l2_device_register(go->dev, &go->v4l2_dev);
drivers/media/usb/go7007/go7007-driver.c
263
mutex_lock(&go->hw_lock);
drivers/media/usb/go7007/go7007-driver.c
264
ret = go7007_init_encoder(go);
drivers/media/usb/go7007/go7007-driver.c
265
mutex_unlock(&go->hw_lock);
drivers/media/usb/go7007/go7007-driver.c
269
ret = go7007_v4l2_ctrl_init(go);
drivers/media/usb/go7007/go7007-driver.c
273
if (!go->i2c_adapter_online &&
drivers/media/usb/go7007/go7007-driver.c
274
go->board_info->flags & GO7007_BOARD_USE_ONBOARD_I2C) {
drivers/media/usb/go7007/go7007-driver.c
275
ret = go7007_i2c_init(go);
drivers/media/usb/go7007/go7007-driver.c
278
go->i2c_adapter_online = 1;
drivers/media/usb/go7007/go7007-driver.c
280
if (go->i2c_adapter_online) {
drivers/media/usb/go7007/go7007-driver.c
281
if (go->board_id == GO7007_BOARDID_ADS_USBAV_709) {
drivers/media/usb/go7007/go7007-driver.c
283
go7007_write_addr(go, 0x3c82, 0x0009);
drivers/media/usb/go7007/go7007-driver.c
285
go7007_write_addr(go, 0x3c82, 0x000d);
drivers/media/usb/go7007/go7007-driver.c
288
init_i2c_module(&go->i2c_adapter, &go->board_info->i2c_devs[i]);
drivers/media/usb/go7007/go7007-driver.c
290
if (go->tuner_type >= 0) {
drivers/media/usb/go7007/go7007-driver.c
293
.type = go->tuner_type,
drivers/media/usb/go7007/go7007-driver.c
297
v4l2_device_call_all(&go->v4l2_dev, 0, tuner,
drivers/media/usb/go7007/go7007-driver.c
300
if (go->board_id == GO7007_BOARDID_ADLINK_MPG24)
drivers/media/usb/go7007/go7007-driver.c
301
v4l2_subdev_call(go->sd_video, video, s_routing,
drivers/media/usb/go7007/go7007-driver.c
302
0, 0, go->channel_number + 1);
drivers/media/usb/go7007/go7007-driver.c
305
ret = go7007_v4l2_init(go);
drivers/media/usb/go7007/go7007-driver.c
309
if (go->board_info->flags & GO7007_BOARD_HAS_AUDIO) {
drivers/media/usb/go7007/go7007-driver.c
310
go->audio_enabled = 1;
drivers/media/usb/go7007/go7007-driver.c
311
go7007_snd_init(go);
drivers/media/usb/go7007/go7007-driver.c
323
int go7007_start_encoder(struct go7007 *go)
drivers/media/usb/go7007/go7007-driver.c
329
go->modet_enable = 0;
drivers/media/usb/go7007/go7007-driver.c
33
int go7007_read_interrupt(struct go7007 *go, u16 *value, u16 *data)
drivers/media/usb/go7007/go7007-driver.c
331
go->modet[i].enable = 0;
drivers/media/usb/go7007/go7007-driver.c
333
switch (v4l2_ctrl_g_ctrl(go->modet_mode)) {
drivers/media/usb/go7007/go7007-driver.c
335
memset(go->modet_map, 0, sizeof(go->modet_map));
drivers/media/usb/go7007/go7007-driver.c
336
go->modet[0].enable = 1;
drivers/media/usb/go7007/go7007-driver.c
337
go->modet_enable = 1;
drivers/media/usb/go7007/go7007-driver.c
340
for (y = 0; y < go->height / 16; y++) {
drivers/media/usb/go7007/go7007-driver.c
341
for (x = 0; x < go->width / 16; x++) {
drivers/media/usb/go7007/go7007-driver.c
342
int idx = y * go->width / 16 + x;
drivers/media/usb/go7007/go7007-driver.c
344
go->modet[go->modet_map[idx]].enable = 1;
drivers/media/usb/go7007/go7007-driver.c
347
go->modet_enable = 1;
drivers/media/usb/go7007/go7007-driver.c
35
go->interrupt_available = 0;
drivers/media/usb/go7007/go7007-driver.c
351
if (go->dvd_mode)
drivers/media/usb/go7007/go7007-driver.c
352
go->modet_enable = 0;
drivers/media/usb/go7007/go7007-driver.c
354
if (go7007_construct_fw_image(go, &fw, &fw_len) < 0)
drivers/media/usb/go7007/go7007-driver.c
357
if (go7007_send_firmware(go, fw, fw_len) < 0 ||
drivers/media/usb/go7007/go7007-driver.c
358
go7007_read_interrupt(go, &intr_val, &intr_data) < 0) {
drivers/media/usb/go7007/go7007-driver.c
359
v4l2_err(&go->v4l2_dev, "error transferring firmware\n");
drivers/media/usb/go7007/go7007-driver.c
36
go->hpi_ops->read_interrupt(go);
drivers/media/usb/go7007/go7007-driver.c
364
go->state = STATE_DATA;
drivers/media/usb/go7007/go7007-driver.c
365
go->parse_length = 0;
drivers/media/usb/go7007/go7007-driver.c
366
go->seen_frame = 0;
drivers/media/usb/go7007/go7007-driver.c
367
if (go7007_stream_start(go) < 0) {
drivers/media/usb/go7007/go7007-driver.c
368
v4l2_err(&go->v4l2_dev, "error starting stream transfer\n");
drivers/media/usb/go7007/go7007-driver.c
37
if (wait_event_timeout(go->interrupt_waitq,
drivers/media/usb/go7007/go7007-driver.c
38
go->interrupt_available, 5*HZ) < 0) {
drivers/media/usb/go7007/go7007-driver.c
39
v4l2_err(&go->v4l2_dev, "timeout waiting for read interrupt\n");
drivers/media/usb/go7007/go7007-driver.c
390
static void go7007_set_motion_regions(struct go7007 *go, struct go7007_buffer *vb,
drivers/media/usb/go7007/go7007-driver.c
393
if (motion_regions != go->modet_event_status) {
drivers/media/usb/go7007/go7007-driver.c
403
v4l2_event_queue(&go->vdev, &ev);
drivers/media/usb/go7007/go7007-driver.c
404
go->modet_event_status = motion_regions;
drivers/media/usb/go7007/go7007-driver.c
412
static void go7007_motion_regions(struct go7007 *go, struct go7007_buffer *vb)
drivers/media/usb/go7007/go7007-driver.c
417
unsigned stride = (go->width + 7) >> 3;
drivers/media/usb/go7007/go7007-driver.c
42
if (!go->interrupt_available)
drivers/media/usb/go7007/go7007-driver.c
422
store_byte(vb, go->active_map[i]);
drivers/media/usb/go7007/go7007-driver.c
423
for (y = 0; y < go->height / 16; y++) {
drivers/media/usb/go7007/go7007-driver.c
424
for (x = 0; x < go->width / 16; x++) {
drivers/media/usb/go7007/go7007-driver.c
425
if (!(go->active_map[y * stride + (x >> 3)] & (1 << (x & 7))))
drivers/media/usb/go7007/go7007-driver.c
427
motion[go->modet_map[y * (go->width / 16) + x]]++;
drivers/media/usb/go7007/go7007-driver.c
435
go7007_set_motion_regions(go, vb, motion_regions);
drivers/media/usb/go7007/go7007-driver.c
44
go->interrupt_available = 0;
drivers/media/usb/go7007/go7007-driver.c
441
static struct go7007_buffer *frame_boundary(struct go7007 *go, struct go7007_buffer *vb)
drivers/media/usb/go7007/go7007-driver.c
448
spin_lock_irqsave(&go->spinlock, flags);
drivers/media/usb/go7007/go7007-driver.c
449
if (!list_empty(&go->vidq_active))
drivers/media/usb/go7007/go7007-driver.c
45
*value = go->interrupt_value & 0xfffe;
drivers/media/usb/go7007/go7007-driver.c
450
vb = go->active_buf =
drivers/media/usb/go7007/go7007-driver.c
451
list_first_entry(&go->vidq_active, struct go7007_buffer, list);
drivers/media/usb/go7007/go7007-driver.c
452
spin_unlock_irqrestore(&go->spinlock, flags);
drivers/media/usb/go7007/go7007-driver.c
453
go->next_seq++;
drivers/media/usb/go7007/go7007-driver.c
458
vb->vb.sequence = go->next_seq++;
drivers/media/usb/go7007/go7007-driver.c
46
*data = go->interrupt_data;
drivers/media/usb/go7007/go7007-driver.c
460
go7007_motion_regions(go, vb);
drivers/media/usb/go7007/go7007-driver.c
462
go7007_set_motion_regions(go, vb, 0);
drivers/media/usb/go7007/go7007-driver.c
466
spin_lock_irqsave(&go->spinlock, flags);
drivers/media/usb/go7007/go7007-driver.c
468
if (list_empty(&go->vidq_active))
drivers/media/usb/go7007/go7007-driver.c
471
vb = list_first_entry(&go->vidq_active,
drivers/media/usb/go7007/go7007-driver.c
473
go->active_buf = vb;
drivers/media/usb/go7007/go7007-driver.c
474
spin_unlock_irqrestore(&go->spinlock, flags);
drivers/media/usb/go7007/go7007-driver.c
479
static void write_bitmap_word(struct go7007 *go)
drivers/media/usb/go7007/go7007-driver.c
481
int x, y, i, stride = ((go->width >> 4) + 7) >> 3;
drivers/media/usb/go7007/go7007-driver.c
484
y = (((go->parse_length - 1) << 3) + i) / (go->width >> 4);
drivers/media/usb/go7007/go7007-driver.c
485
x = (((go->parse_length - 1) << 3) + i) % (go->width >> 4);
drivers/media/usb/go7007/go7007-driver.c
486
if (stride * y + (x >> 3) < sizeof(go->active_map))
drivers/media/usb/go7007/go7007-driver.c
487
go->active_map[stride * y + (x >> 3)] |=
drivers/media/usb/go7007/go7007-driver.c
488
(go->modet_word & 1) << (x & 0x7);
drivers/media/usb/go7007/go7007-driver.c
489
go->modet_word >>= 1;
drivers/media/usb/go7007/go7007-driver.c
498
void go7007_parse_video_stream(struct go7007 *go, u8 *buf, int length)
drivers/media/usb/go7007/go7007-driver.c
500
struct go7007_buffer *vb = go->active_buf;
drivers/media/usb/go7007/go7007-driver.c
503
switch (go->format) {
drivers/media/usb/go7007/go7007-driver.c
520
v4l2_info(&go->v4l2_dev, "dropping oversized frame\n");
drivers/media/usb/go7007/go7007-driver.c
524
vb = go->active_buf = NULL;
drivers/media/usb/go7007/go7007-driver.c
527
switch (go->state) {
drivers/media/usb/go7007/go7007-driver.c
531
go->state = STATE_00;
drivers/media/usb/go7007/go7007-driver.c
534
go->state = STATE_FF;
drivers/media/usb/go7007/go7007-driver.c
544
go->state = STATE_00_00;
drivers/media/usb/go7007/go7007-driver.c
548
go->state = STATE_FF;
drivers/media/usb/go7007/go7007-driver.c
553
go->state = STATE_DATA;
drivers/media/usb/go7007/go7007-driver.c
56
int go7007_read_addr(struct go7007 *go, u16 addr, u16 *data)
drivers/media/usb/go7007/go7007-driver.c
564
go->state = STATE_00_00_01;
drivers/media/usb/go7007/go7007-driver.c
569
go->state = STATE_FF;
drivers/media/usb/go7007/go7007-driver.c
575
go->state = STATE_DATA;
drivers/media/usb/go7007/go7007-driver.c
580
if (buf[i] == 0xF8 && go->modet_enable == 0) {
drivers/media/usb/go7007/go7007-driver.c
586
go->state = STATE_DATA;
drivers/media/usb/go7007/go7007-driver.c
591
if ((go->format == V4L2_PIX_FMT_MPEG1 ||
drivers/media/usb/go7007/go7007-driver.c
592
go->format == V4L2_PIX_FMT_MPEG2 ||
drivers/media/usb/go7007/go7007-driver.c
593
go->format == V4L2_PIX_FMT_MPEG4) &&
drivers/media/usb/go7007/go7007-driver.c
597
if (vb == NULL || go->seen_frame)
drivers/media/usb/go7007/go7007-driver.c
598
vb = frame_boundary(go, vb);
drivers/media/usb/go7007/go7007-driver.c
599
go->seen_frame = buf[i] == frame_start_code;
drivers/media/usb/go7007/go7007-driver.c
600
if (vb && go->seen_frame)
drivers/media/usb/go7007/go7007-driver.c
608
go->parse_length = 12;
drivers/media/usb/go7007/go7007-driver.c
609
go->state = STATE_UNPARSED;
drivers/media/usb/go7007/go7007-driver.c
61
if (go7007_write_interrupt(go, 0x0010, addr) < 0)
drivers/media/usb/go7007/go7007-driver.c
612
go->state = STATE_VBI_LEN_A;
drivers/media/usb/go7007/go7007-driver.c
615
go->parse_length = 0;
drivers/media/usb/go7007/go7007-driver.c
616
memset(go->active_map, 0,
drivers/media/usb/go7007/go7007-driver.c
617
sizeof(go->active_map));
drivers/media/usb/go7007/go7007-driver.c
618
go->state = STATE_MODET_MAP;
drivers/media/usb/go7007/go7007-driver.c
624
go->state = STATE_FF;
drivers/media/usb/go7007/go7007-driver.c
631
go->state = STATE_DATA;
drivers/media/usb/go7007/go7007-driver.c
639
go->state = STATE_00;
drivers/media/usb/go7007/go7007-driver.c
64
if (go7007_read_interrupt(go, &value, data) == 0 &&
drivers/media/usb/go7007/go7007-driver.c
646
if (go->format == V4L2_PIX_FMT_MJPEG)
drivers/media/usb/go7007/go7007-driver.c
647
vb = frame_boundary(go, vb);
drivers/media/usb/go7007/go7007-driver.c
652
go->state = STATE_DATA;
drivers/media/usb/go7007/go7007-driver.c
657
go->parse_length = buf[i] << 8;
drivers/media/usb/go7007/go7007-driver.c
658
go->state = STATE_VBI_LEN_B;
drivers/media/usb/go7007/go7007-driver.c
661
go->parse_length |= buf[i];
drivers/media/usb/go7007/go7007-driver.c
662
if (go->parse_length > 0)
drivers/media/usb/go7007/go7007-driver.c
663
go->state = STATE_UNPARSED;
drivers/media/usb/go7007/go7007-driver.c
665
go->state = STATE_DATA;
drivers/media/usb/go7007/go7007-driver.c
668
if (go->parse_length < 204) {
drivers/media/usb/go7007/go7007-driver.c
669
if (go->parse_length & 1) {
drivers/media/usb/go7007/go7007-driver.c
670
go->modet_word |= buf[i];
drivers/media/usb/go7007/go7007-driver.c
671
write_bitmap_word(go);
drivers/media/usb/go7007/go7007-driver.c
673
go->modet_word = buf[i] << 8;
drivers/media/usb/go7007/go7007-driver.c
674
} else if (go->parse_length == 207 && vb) {
drivers/media/usb/go7007/go7007-driver.c
677
if (++go->parse_length == 208)
drivers/media/usb/go7007/go7007-driver.c
678
go->state = STATE_DATA;
drivers/media/usb/go7007/go7007-driver.c
681
if (--go->parse_length == 0)
drivers/media/usb/go7007/go7007-driver.c
682
go->state = STATE_DATA;
drivers/media/usb/go7007/go7007-driver.c
695
struct go7007 *go;
drivers/media/usb/go7007/go7007-driver.c
697
go = kzalloc_obj(struct go7007);
drivers/media/usb/go7007/go7007-driver.c
698
if (go == NULL)
drivers/media/usb/go7007/go7007-driver.c
700
go->dev = dev;
drivers/media/usb/go7007/go7007-driver.c
701
go->board_info = board;
drivers/media/usb/go7007/go7007-driver.c
702
go->tuner_type = -1;
drivers/media/usb/go7007/go7007-driver.c
703
mutex_init(&go->hw_lock);
drivers/media/usb/go7007/go7007-driver.c
704
init_waitqueue_head(&go->frame_waitq);
drivers/media/usb/go7007/go7007-driver.c
705
spin_lock_init(&go->spinlock);
drivers/media/usb/go7007/go7007-driver.c
706
go->status = STATUS_INIT;
drivers/media/usb/go7007/go7007-driver.c
707
init_waitqueue_head(&go->interrupt_waitq);
drivers/media/usb/go7007/go7007-driver.c
708
go7007_update_board(go);
drivers/media/usb/go7007/go7007-driver.c
709
go->format = V4L2_PIX_FMT_MJPEG;
drivers/media/usb/go7007/go7007-driver.c
710
go->bitrate = 1500000;
drivers/media/usb/go7007/go7007-driver.c
711
go->fps_scale = 1;
drivers/media/usb/go7007/go7007-driver.c
712
go->aspect_ratio = GO7007_RATIO_1_1;
drivers/media/usb/go7007/go7007-driver.c
714
return go;
drivers/media/usb/go7007/go7007-driver.c
718
void go7007_update_board(struct go7007 *go)
drivers/media/usb/go7007/go7007-driver.c
720
const struct go7007_board_info *board = go->board_info;
drivers/media/usb/go7007/go7007-driver.c
723
go->standard = GO7007_STD_NTSC;
drivers/media/usb/go7007/go7007-driver.c
724
go->std = V4L2_STD_NTSC_M;
drivers/media/usb/go7007/go7007-driver.c
725
go->width = 720;
drivers/media/usb/go7007/go7007-driver.c
726
go->height = 480;
drivers/media/usb/go7007/go7007-driver.c
727
go->sensor_framerate = 30000;
drivers/media/usb/go7007/go7007-driver.c
729
go->standard = GO7007_STD_OTHER;
drivers/media/usb/go7007/go7007-driver.c
730
go->width = board->sensor_width;
drivers/media/usb/go7007/go7007-driver.c
731
go->height = board->sensor_height;
drivers/media/usb/go7007/go7007-driver.c
732
go->sensor_framerate = board->sensor_framerate;
drivers/media/usb/go7007/go7007-driver.c
734
go->encoder_v_offset = board->sensor_v_offset;
drivers/media/usb/go7007/go7007-driver.c
735
go->encoder_h_offset = board->sensor_h_offset;
drivers/media/usb/go7007/go7007-driver.c
78
static int go7007_load_encoder(struct go7007 *go)
drivers/media/usb/go7007/go7007-driver.c
86
if (go->boot_fw == NULL) {
drivers/media/usb/go7007/go7007-driver.c
87
if (request_firmware(&fw_entry, fw_name, go->dev)) {
drivers/media/usb/go7007/go7007-driver.c
88
v4l2_err(go, "unable to load firmware from file \"%s\"\n", fw_name);
drivers/media/usb/go7007/go7007-driver.c
92
v4l2_err(go, "file \"%s\" does not appear to be go7007 firmware\n", fw_name);
drivers/media/usb/go7007/go7007-driver.c
99
v4l2_err(go, "unable to allocate %d bytes for firmware transfer\n", fw_len);
drivers/media/usb/go7007/go7007-fw.c
1008
0xBF46, (go->width >> 4) * (go->height >> 4),
drivers/media/usb/go7007/go7007-fw.c
1076
static int config_package(struct go7007 *go, __le16 *code, int space)
drivers/media/usb/go7007/go7007-fw.c
1078
int fps = go->sensor_framerate / go->fps_scale / 1000;
drivers/media/usb/go7007/go7007-fw.c
1079
int rows = go->interlace_coding ? go->height / 32 : go->height / 16;
drivers/media/usb/go7007/go7007-fw.c
1089
0xc6c3, go->format == V4L2_PIX_FMT_MPEG4 ? 0 :
drivers/media/usb/go7007/go7007-fw.c
1090
(go->format == V4L2_PIX_FMT_H263 ? 0 : 1),
drivers/media/usb/go7007/go7007-fw.c
1091
0xc680, go->format == V4L2_PIX_FMT_MPEG4 ? 0xf1 :
drivers/media/usb/go7007/go7007-fw.c
1092
(go->format == V4L2_PIX_FMT_H263 ? 0x61 :
drivers/media/usb/go7007/go7007-fw.c
1107
0xd472, (go->board_info->sensor_flags &
drivers/media/usb/go7007/go7007-fw.c
1109
(!go->interlace_coding) ?
drivers/media/usb/go7007/go7007-fw.c
1111
0xd475, (go->board_info->sensor_flags &
drivers/media/usb/go7007/go7007-fw.c
1113
(!go->interlace_coding) ?
drivers/media/usb/go7007/go7007-fw.c
1115
0xc404, go->interlace_coding ? 0x44 :
drivers/media/usb/go7007/go7007-fw.c
1116
(go->format == V4L2_PIX_FMT_MPEG4 ? 0x11 :
drivers/media/usb/go7007/go7007-fw.c
1117
(go->format == V4L2_PIX_FMT_MPEG1 ? 0x02 :
drivers/media/usb/go7007/go7007-fw.c
1118
(go->format == V4L2_PIX_FMT_MPEG2 ? 0x04 :
drivers/media/usb/go7007/go7007-fw.c
1119
(go->format == V4L2_PIX_FMT_H263 ? 0x08 :
drivers/media/usb/go7007/go7007-fw.c
1121
0xbf0a, (go->format == V4L2_PIX_FMT_MPEG4 ? 8 :
drivers/media/usb/go7007/go7007-fw.c
1122
(go->format == V4L2_PIX_FMT_MPEG1 ? 1 :
drivers/media/usb/go7007/go7007-fw.c
1123
(go->format == V4L2_PIX_FMT_MPEG2 ? 2 :
drivers/media/usb/go7007/go7007-fw.c
1124
(go->format == V4L2_PIX_FMT_H263 ? 4 : 16)))) |
drivers/media/usb/go7007/go7007-fw.c
1125
((go->repeat_seqhead ? 1 : 0) << 6) |
drivers/media/usb/go7007/go7007-fw.c
1126
((go->dvd_mode ? 1 : 0) << 9) |
drivers/media/usb/go7007/go7007-fw.c
1127
((go->gop_header_enable ? 1 : 0) << 10),
drivers/media/usb/go7007/go7007-fw.c
1129
0xdd5a, go->ipb ? 0x14 : 0x0a,
drivers/media/usb/go7007/go7007-fw.c
1133
0xc40a, (go->width << 4) | rows,
drivers/media/usb/go7007/go7007-fw.c
1134
0xe01a, go->board_info->hpi_buffer_cap,
drivers/media/usb/go7007/go7007-fw.c
1163
0xbfe3, go->ipb ? 3 : 1,
drivers/media/usb/go7007/go7007-fw.c
1164
0xc031, go->board_info->sensor_flags &
drivers/media/usb/go7007/go7007-fw.c
1169
0xdd88, go->ipb ? 0x1401 : 0x0a01,
drivers/media/usb/go7007/go7007-fw.c
1170
0xdd90, go->ipb ? 0x1401 : 0x0a01,
drivers/media/usb/go7007/go7007-fw.c
1182
0xbfec, (go->interlace_coding ? 1 << 15 : 0) |
drivers/media/usb/go7007/go7007-fw.c
1183
(go->modet_enable ? 0xa : 0) |
drivers/media/usb/go7007/go7007-fw.c
1184
(go->board_info->sensor_flags &
drivers/media/usb/go7007/go7007-fw.c
1189
0xbff0, go->board_info->sensor_flags &
drivers/media/usb/go7007/go7007-fw.c
1198
static int seqhead_to_package(struct go7007 *go, __le16 *code, int space,
drivers/media/usb/go7007/go7007-fw.c
1199
int (*sequence_header_func)(struct go7007 *go,
drivers/media/usb/go7007/go7007-fw.c
1202
int vop_time_increment_bitlength = vti_bitlen(go);
drivers/media/usb/go7007/go7007-fw.c
1203
int fps = go->sensor_framerate / go->fps_scale *
drivers/media/usb/go7007/go7007-fw.c
1204
(go->interlace_coding ? 2 : 1);
drivers/media/usb/go7007/go7007-fw.c
1206
int len = sequence_header_func(go, buf, 1);
drivers/media/usb/go7007/go7007-fw.c
1277
static int avsync_to_package(struct go7007 *go, __le16 *code, int space)
drivers/media/usb/go7007/go7007-fw.c
1279
int arate = go->board_info->audio_rate * 1001 * go->fps_scale;
drivers/media/usb/go7007/go7007-fw.c
1280
int ratio = arate / go->sensor_framerate;
drivers/media/usb/go7007/go7007-fw.c
1282
int rprime = relative_prime(go->sensor_framerate,
drivers/media/usb/go7007/go7007-fw.c
1283
arate % go->sensor_framerate);
drivers/media/usb/go7007/go7007-fw.c
1284
int f1 = (arate % go->sensor_framerate) / rprime;
drivers/media/usb/go7007/go7007-fw.c
1285
int f2 = (go->sensor_framerate - arate % go->sensor_framerate) / rprime;
drivers/media/usb/go7007/go7007-fw.c
1308
static int final_package(struct go7007 *go, __le16 *code, int space)
drivers/media/usb/go7007/go7007-fw.c
1310
int rows = go->interlace_coding ? go->height / 32 : go->height / 16;
drivers/media/usb/go7007/go7007-fw.c
1320
((go->board_info->sensor_flags & GO7007_SENSOR_TV) &&
drivers/media/usb/go7007/go7007-fw.c
1321
(!go->interlace_coding) ?
drivers/media/usb/go7007/go7007-fw.c
1323
((go->encoder_subsample ? 1 : 0) << 8) |
drivers/media/usb/go7007/go7007-fw.c
1324
(go->board_info->sensor_flags &
drivers/media/usb/go7007/go7007-fw.c
1326
((go->encoder_v_halve ? 1 : 0) << 14) |
drivers/media/usb/go7007/go7007-fw.c
1327
(go->encoder_v_halve ? rows << 9 : rows << 8) |
drivers/media/usb/go7007/go7007-fw.c
1328
(go->encoder_h_halve ? 1 << 6 : 0) |
drivers/media/usb/go7007/go7007-fw.c
1329
(go->encoder_h_halve ? go->width >> 3 : go->width >> 4),
drivers/media/usb/go7007/go7007-fw.c
1330
(1 << 15) | (go->encoder_v_offset << 6) |
drivers/media/usb/go7007/go7007-fw.c
1331
(1 << 7) | (go->encoder_h_offset >> 2),
drivers/media/usb/go7007/go7007-fw.c
1335
((go->fps_scale - 1) << 8) |
drivers/media/usb/go7007/go7007-fw.c
1336
(go->board_info->sensor_flags & GO7007_SENSOR_TV ?
drivers/media/usb/go7007/go7007-fw.c
1339
go->ipb ? 0xd4c : 0x36b,
drivers/media/usb/go7007/go7007-fw.c
1340
(rows << 8) | (go->width >> 4),
drivers/media/usb/go7007/go7007-fw.c
1341
go->format == V4L2_PIX_FMT_MPEG4 ? 0x0404 : 0,
drivers/media/usb/go7007/go7007-fw.c
1342
(1 << 15) | ((go->interlace_coding ? 1 : 0) << 13) |
drivers/media/usb/go7007/go7007-fw.c
1343
((go->closed_gop ? 1 : 0) << 12) |
drivers/media/usb/go7007/go7007-fw.c
1344
((go->format == V4L2_PIX_FMT_MPEG4 ? 1 : 0) << 11) |
drivers/media/usb/go7007/go7007-fw.c
1346
((go->ipb ? 3 : 0) << 7) |
drivers/media/usb/go7007/go7007-fw.c
1347
((go->modet_enable ? 1 : 0) << 2) |
drivers/media/usb/go7007/go7007-fw.c
1348
((go->dvd_mode ? 1 : 0) << 1) | 1,
drivers/media/usb/go7007/go7007-fw.c
1349
(go->format == V4L2_PIX_FMT_MPEG1 ? 0x89a0 :
drivers/media/usb/go7007/go7007-fw.c
1350
(go->format == V4L2_PIX_FMT_MPEG2 ? 0x89a0 :
drivers/media/usb/go7007/go7007-fw.c
1351
(go->format == V4L2_PIX_FMT_MJPEG ? 0x89a0 :
drivers/media/usb/go7007/go7007-fw.c
1352
(go->format == V4L2_PIX_FMT_MPEG4 ? 0x8920 :
drivers/media/usb/go7007/go7007-fw.c
1353
(go->format == V4L2_PIX_FMT_H263 ? 0x8920 : 0))))),
drivers/media/usb/go7007/go7007-fw.c
1354
go->ipb ? 0x1f15 : 0x1f0b,
drivers/media/usb/go7007/go7007-fw.c
1355
go->ipb ? 0x0015 : 0x000b,
drivers/media/usb/go7007/go7007-fw.c
1356
go->ipb ? 0xa800 : 0x5800,
drivers/media/usb/go7007/go7007-fw.c
1364
go->ipb ? (go->gop_size / 3) : go->gop_size,
drivers/media/usb/go7007/go7007-fw.c
1365
(go->height >> 4) * (go->width >> 4) * 110 / 100,
drivers/media/usb/go7007/go7007-fw.c
1371
static int audio_to_package(struct go7007 *go, __le16 *code, int space)
drivers/media/usb/go7007/go7007-fw.c
1373
int clock_config = ((go->board_info->audio_flags &
drivers/media/usb/go7007/go7007-fw.c
1375
((go->board_info->audio_flags &
drivers/media/usb/go7007/go7007-fw.c
1377
(((go->board_info->audio_bclk_div / 4) - 1) << 4) |
drivers/media/usb/go7007/go7007-fw.c
1378
(go->board_info->audio_main_div - 1);
drivers/media/usb/go7007/go7007-fw.c
1392
0x9001, (go->board_info->audio_flags & 0xffff) |
drivers/media/usb/go7007/go7007-fw.c
1394
0x9000, ((go->board_info->audio_flags &
drivers/media/usb/go7007/go7007-fw.c
1421
static int modet_to_package(struct go7007 *go, __le16 *code, int space)
drivers/media/usb/go7007/go7007-fw.c
1423
bool has_modet0 = go->modet[0].enable;
drivers/media/usb/go7007/go7007-fw.c
1424
bool has_modet1 = go->modet[1].enable;
drivers/media/usb/go7007/go7007-fw.c
1425
bool has_modet2 = go->modet[2].enable;
drivers/media/usb/go7007/go7007-fw.c
1426
bool has_modet3 = go->modet[3].enable;
drivers/media/usb/go7007/go7007-fw.c
1431
0xbf82, has_modet0 ? go->modet[0].pixel_threshold : 32767,
drivers/media/usb/go7007/go7007-fw.c
1432
0xbf83, has_modet1 ? go->modet[1].pixel_threshold : 32767,
drivers/media/usb/go7007/go7007-fw.c
1433
0xbf84, has_modet2 ? go->modet[2].pixel_threshold : 32767,
drivers/media/usb/go7007/go7007-fw.c
1434
0xbf85, has_modet3 ? go->modet[3].pixel_threshold : 32767,
drivers/media/usb/go7007/go7007-fw.c
1435
0xbf86, has_modet0 ? go->modet[0].motion_threshold : 32767,
drivers/media/usb/go7007/go7007-fw.c
1436
0xbf87, has_modet1 ? go->modet[1].motion_threshold : 32767,
drivers/media/usb/go7007/go7007-fw.c
1437
0xbf88, has_modet2 ? go->modet[2].motion_threshold : 32767,
drivers/media/usb/go7007/go7007-fw.c
1438
0xbf89, has_modet3 ? go->modet[3].motion_threshold : 32767,
drivers/media/usb/go7007/go7007-fw.c
1439
0xbf8a, has_modet0 ? go->modet[0].mb_threshold : 32767,
drivers/media/usb/go7007/go7007-fw.c
1440
0xbf8b, has_modet1 ? go->modet[1].mb_threshold : 32767,
drivers/media/usb/go7007/go7007-fw.c
1441
0xbf8c, has_modet2 ? go->modet[2].mb_threshold : 32767,
drivers/media/usb/go7007/go7007-fw.c
1442
0xbf8d, has_modet3 ? go->modet[3].mb_threshold : 32767,
drivers/media/usb/go7007/go7007-fw.c
1458
pack[i * 2 + 3] |= go->modet_map[mb];
drivers/media/usb/go7007/go7007-fw.c
1494
static noinline_for_stack int do_special(struct go7007 *go, u16 type,
drivers/media/usb/go7007/go7007-fw.c
1499
switch (go->format) {
drivers/media/usb/go7007/go7007-fw.c
1501
return gen_mjpeghdr_to_package(go, code, space);
drivers/media/usb/go7007/go7007-fw.c
1504
return gen_mpeg1hdr_to_package(go, code, space,
drivers/media/usb/go7007/go7007-fw.c
1507
return gen_mpeg4hdr_to_package(go, code, space,
drivers/media/usb/go7007/go7007-fw.c
1514
return brctrl_to_package(go, code, space, framelen);
drivers/media/usb/go7007/go7007-fw.c
1516
return config_package(go, code, space);
drivers/media/usb/go7007/go7007-fw.c
1518
switch (go->format) {
drivers/media/usb/go7007/go7007-fw.c
1521
return seqhead_to_package(go, code, space,
drivers/media/usb/go7007/go7007-fw.c
1524
return seqhead_to_package(go, code, space,
drivers/media/usb/go7007/go7007-fw.c
1530
return avsync_to_package(go, code, space);
drivers/media/usb/go7007/go7007-fw.c
1532
return final_package(go, code, space);
drivers/media/usb/go7007/go7007-fw.c
1534
return audio_to_package(go, code, space);
drivers/media/usb/go7007/go7007-fw.c
1536
return modet_to_package(go, code, space);
drivers/media/usb/go7007/go7007-fw.c
1538
dev_err(go->dev,
drivers/media/usb/go7007/go7007-fw.c
1543
int go7007_construct_fw_image(struct go7007 *go, u8 **fw, int *fwlen)
drivers/media/usb/go7007/go7007-fw.c
1552
switch (go->format) {
drivers/media/usb/go7007/go7007-fw.c
1568
if (request_firmware(&fw_entry, GO7007_FW_NAME, go->dev)) {
drivers/media/usb/go7007/go7007-fw.c
1569
dev_err(go->dev,
drivers/media/usb/go7007/go7007-fw.c
1584
dev_err(go->dev,
drivers/media/usb/go7007/go7007-fw.c
1591
ret = do_special(go, __le16_to_cpu(src[2]),
drivers/media/usb/go7007/go7007-fw.c
1594
dev_err(go->dev,
drivers/media/usb/go7007/go7007-fw.c
1601
dev_err(go->dev,
drivers/media/usb/go7007/go7007-fw.c
290
static int mjpeg_frame_header(struct go7007 *go, unsigned char *buf, int q)
drivers/media/usb/go7007/go7007-fw.c
310
buf[p++] = go->height >> 8;
drivers/media/usb/go7007/go7007-fw.c
311
buf[p++] = go->height & 0xff;
drivers/media/usb/go7007/go7007-fw.c
312
buf[p++] = go->width >> 8;
drivers/media/usb/go7007/go7007-fw.c
313
buf[p++] = go->width & 0xff;
drivers/media/usb/go7007/go7007-fw.c
365
static int gen_mjpeghdr_to_package(struct go7007 *go, __le16 *code, int space)
drivers/media/usb/go7007/go7007-fw.c
377
mjpeg_frame_header(go, buf + size, i);
drivers/media/usb/go7007/go7007-fw.c
380
chunk = mjpeg_frame_header(go, buf + size, 1);
drivers/media/usb/go7007/go7007-fw.c
416
static int mpeg1_frame_header(struct go7007 *go, unsigned char *buf,
drivers/media/usb/go7007/go7007-fw.c
420
int rows = go->interlace_coding ? go->height / 32 : go->height / 16;
drivers/media/usb/go7007/go7007-fw.c
447
CODE_ADD(c, go->format == V4L2_PIX_FMT_MPEG2 ? 0x7 : 0x4, 4);
drivers/media/usb/go7007/go7007-fw.c
449
CODE_ADD(c, go->format == V4L2_PIX_FMT_MPEG2 ? 0x7 : 0x4, 4);
drivers/media/usb/go7007/go7007-fw.c
458
if (go->format == V4L2_PIX_FMT_MPEG2) {
drivers/media/usb/go7007/go7007-fw.c
463
if (go->interlace_coding) {
drivers/media/usb/go7007/go7007-fw.c
465
if (go->dvd_mode)
drivers/media/usb/go7007/go7007-fw.c
485
if (go->interlace_coding) {
drivers/media/usb/go7007/go7007-fw.c
491
if (go->interlace_coding)
drivers/media/usb/go7007/go7007-fw.c
495
for (j = (go->width >> 4) - 2; j >= 33; j -= 33)
drivers/media/usb/go7007/go7007-fw.c
499
if (go->interlace_coding) {
drivers/media/usb/go7007/go7007-fw.c
505
if (go->interlace_coding)
drivers/media/usb/go7007/go7007-fw.c
524
static int mpeg1_sequence_header(struct go7007 *go, unsigned char *buf, int ext)
drivers/media/usb/go7007/go7007-fw.c
529
if (go->format == V4L2_PIX_FMT_MPEG1) {
drivers/media/usb/go7007/go7007-fw.c
530
switch (go->aspect_ratio) {
drivers/media/usb/go7007/go7007-fw.c
532
aspect_ratio = go->standard == GO7007_STD_NTSC ? 3 : 2;
drivers/media/usb/go7007/go7007-fw.c
535
aspect_ratio = go->standard == GO7007_STD_NTSC ? 5 : 4;
drivers/media/usb/go7007/go7007-fw.c
542
switch (go->aspect_ratio) {
drivers/media/usb/go7007/go7007-fw.c
554
switch (go->sensor_framerate) {
drivers/media/usb/go7007/go7007-fw.c
562
picture_rate = go->interlace_coding ? 6 : 3;
drivers/media/usb/go7007/go7007-fw.c
565
picture_rate = go->interlace_coding ? 7 : 4;
drivers/media/usb/go7007/go7007-fw.c
568
picture_rate = go->interlace_coding ? 8 : 5;
drivers/media/usb/go7007/go7007-fw.c
575
CODE_ADD(c, go->width, 12);
drivers/media/usb/go7007/go7007-fw.c
576
CODE_ADD(c, go->height, 12);
drivers/media/usb/go7007/go7007-fw.c
579
CODE_ADD(c, go->format == V4L2_PIX_FMT_MPEG2 ? 20000 : 0x3ffff, 18);
drivers/media/usb/go7007/go7007-fw.c
581
CODE_ADD(c, go->format == V4L2_PIX_FMT_MPEG2 ? 112 : 20, 10);
drivers/media/usb/go7007/go7007-fw.c
589
if (go->format == V4L2_PIX_FMT_MPEG2) {
drivers/media/usb/go7007/go7007-fw.c
593
if (go->interlace_coding)
drivers/media/usb/go7007/go7007-fw.c
607
CODE_ADD(c, go->standard == GO7007_STD_NTSC ? 2 : 1, 3);
drivers/media/usb/go7007/go7007-fw.c
610
CODE_ADD(c, go->width, 14);
drivers/media/usb/go7007/go7007-fw.c
612
CODE_ADD(c, go->height, 14);
drivers/media/usb/go7007/go7007-fw.c
631
static int gen_mpeg1hdr_to_package(struct go7007 *go,
drivers/media/usb/go7007/go7007-fw.c
643
framelen[0] = mpeg1_frame_header(go, buf, 0, 1, PFRAME);
drivers/media/usb/go7007/go7007-fw.c
644
if (go->interlace_coding)
drivers/media/usb/go7007/go7007-fw.c
645
framelen[0] += mpeg1_frame_header(go, buf + framelen[0] / 8,
drivers/media/usb/go7007/go7007-fw.c
650
framelen[1] = mpeg1_frame_header(go, buf + i, 0, 1, BFRAME_PRE);
drivers/media/usb/go7007/go7007-fw.c
651
if (go->interlace_coding)
drivers/media/usb/go7007/go7007-fw.c
652
framelen[1] += mpeg1_frame_header(go, buf + i + framelen[1] / 8,
drivers/media/usb/go7007/go7007-fw.c
657
framelen[2] = mpeg1_frame_header(go, buf + i, 0, 1, BFRAME_POST);
drivers/media/usb/go7007/go7007-fw.c
658
if (go->interlace_coding)
drivers/media/usb/go7007/go7007-fw.c
659
framelen[2] += mpeg1_frame_header(go, buf + i + framelen[2] / 8,
drivers/media/usb/go7007/go7007-fw.c
664
framelen[3] = mpeg1_frame_header(go, buf + i, 0, 1, BFRAME_BIDIR);
drivers/media/usb/go7007/go7007-fw.c
665
if (go->interlace_coding)
drivers/media/usb/go7007/go7007-fw.c
666
framelen[3] += mpeg1_frame_header(go, buf + i + framelen[3] / 8,
drivers/media/usb/go7007/go7007-fw.c
671
mpeg1_sequence_header(go, buf + i, 0);
drivers/media/usb/go7007/go7007-fw.c
708
static int vti_bitlen(struct go7007 *go)
drivers/media/usb/go7007/go7007-fw.c
710
unsigned int i, max_time_incr = go->sensor_framerate / go->fps_scale;
drivers/media/usb/go7007/go7007-fw.c
717
static int mpeg4_frame_header(struct go7007 *go, unsigned char *buf,
drivers/media/usb/go7007/go7007-fw.c
722
int mb_count = (go->width >> 4) * (go->height >> 4);
drivers/media/usb/go7007/go7007-fw.c
728
CODE_ADD(c, 0, vti_bitlen(go));
drivers/media/usb/go7007/go7007-fw.c
771
static int mpeg4_sequence_header(struct go7007 *go, unsigned char *buf, int ext)
drivers/media/usb/go7007/go7007-fw.c
773
const unsigned char head[] = { 0x00, 0x00, 0x01, 0xb0, go->pali,
drivers/media/usb/go7007/go7007-fw.c
778
int fps = go->sensor_framerate / go->fps_scale;
drivers/media/usb/go7007/go7007-fw.c
781
switch (go->aspect_ratio) {
drivers/media/usb/go7007/go7007-fw.c
783
aspect_ratio = go->standard == GO7007_STD_NTSC ? 3 : 2;
drivers/media/usb/go7007/go7007-fw.c
786
aspect_ratio = go->standard == GO7007_STD_NTSC ? 5 : 4;
drivers/media/usb/go7007/go7007-fw.c
799
CODE_ADD(c, 1001, vti_bitlen(go));
drivers/media/usb/go7007/go7007-fw.c
801
CODE_ADD(c, go->width, 13);
drivers/media/usb/go7007/go7007-fw.c
803
CODE_ADD(c, go->height, 13);
drivers/media/usb/go7007/go7007-fw.c
817
static int gen_mpeg4hdr_to_package(struct go7007 *go,
drivers/media/usb/go7007/go7007-fw.c
829
framelen[0] = mpeg4_frame_header(go, buf, 0, PFRAME);
drivers/media/usb/go7007/go7007-fw.c
831
framelen[1] = mpeg4_frame_header(go, buf + i, 0, BFRAME_PRE);
drivers/media/usb/go7007/go7007-fw.c
833
framelen[2] = mpeg4_frame_header(go, buf + i, 0, BFRAME_POST);
drivers/media/usb/go7007/go7007-fw.c
835
framelen[3] = mpeg4_frame_header(go, buf + i, 0, BFRAME_BIDIR);
drivers/media/usb/go7007/go7007-fw.c
837
mpeg4_frame_header(go, buf + i, 0, BFRAME_EMPTY);
drivers/media/usb/go7007/go7007-fw.c
839
mpeg4_sequence_header(go, buf + i, 0);
drivers/media/usb/go7007/go7007-fw.c
872
addr = go->ipb ? 0x14f9 : 0x0af9;
drivers/media/usb/go7007/go7007-fw.c
874
framelen[4] = mpeg4_frame_header(go, buf, 1, PFRAME);
drivers/media/usb/go7007/go7007-fw.c
876
framelen[5] = mpeg4_frame_header(go, buf + i, 1, BFRAME_PRE);
drivers/media/usb/go7007/go7007-fw.c
878
framelen[6] = mpeg4_frame_header(go, buf + i, 1, BFRAME_POST);
drivers/media/usb/go7007/go7007-fw.c
880
framelen[7] = mpeg4_frame_header(go, buf + i, 1, BFRAME_BIDIR);
drivers/media/usb/go7007/go7007-fw.c
882
mpeg4_frame_header(go, buf + i, 1, BFRAME_EMPTY);
drivers/media/usb/go7007/go7007-fw.c
919
static int brctrl_to_package(struct go7007 *go,
drivers/media/usb/go7007/go7007-fw.c
923
int lambda = (go->format == V4L2_PIX_FMT_MJPEG || go->dvd_mode) ?
drivers/media/usb/go7007/go7007-fw.c
925
int peak_rate = 6 * go->bitrate / 5;
drivers/media/usb/go7007/go7007-fw.c
926
int vbv_buffer = go->format == V4L2_PIX_FMT_MJPEG ?
drivers/media/usb/go7007/go7007-fw.c
927
go->bitrate :
drivers/media/usb/go7007/go7007-fw.c
928
(go->dvd_mode ? 900000 : peak_rate);
drivers/media/usb/go7007/go7007-fw.c
929
int fps = go->sensor_framerate / go->fps_scale;
drivers/media/usb/go7007/go7007-fw.c
932
u32 sgop_expt_addr = go->bitrate / 32 * (go->ipb ? 3 : 1) * 1001 / fps;
drivers/media/usb/go7007/go7007-fw.c
934
u32 total_expt_addr = go->bitrate / 32 * 1000 / fps * (fps / 1000);
drivers/media/usb/go7007/go7007-fw.c
938
2 * go->width * go->height * (go->ipb ? 6 : 4) / 32,
drivers/media/usb/go7007/go7007-fw.c
940
2 * go->width * go->height * (go->ipb ? 6 : 4) / 32,
drivers/media/usb/go7007/go7007-fw.c
942
2 * go->width * go->height * (go->ipb ? 6 : 4) / 32,
drivers/media/usb/go7007/go7007-fw.c
944
2 * go->width * go->height * (go->ipb ? 6 : 4) / 32,
drivers/media/usb/go7007/go7007-fw.c
949
0xBF20, go->ipb ? converge_speed_ipb[converge_speed]
drivers/media/usb/go7007/go7007-fw.c
951
0xBF21, go->ipb ? 2 : 0,
drivers/media/usb/go7007/go7007-fw.c
952
0xBF22, go->ipb ? LAMBDA_table[0][lambda / 2 + 50]
drivers/media/usb/go7007/go7007-fw.c
954
0xBF23, go->ipb ? LAMBDA_table[1][lambda] : 32767,
drivers/media/usb/go7007/go7007-i2c.c
103
if (go7007_read_addr(go, I2C_DATA_REG_ADDR, &val) < 0)
drivers/media/usb/go7007/go7007-i2c.c
107
go7007_write_addr(go, I2C_DEV_UP_ADDR_REG_ADDR,
drivers/media/usb/go7007/go7007-i2c.c
112
if (go7007_read_addr(go, STATUS_REG_ADDR, &val) < 0)
drivers/media/usb/go7007/go7007-i2c.c
119
dev_err(go->dev, "go7007-i2c: I2C adapter is hung\n");
drivers/media/usb/go7007/go7007-i2c.c
124
if (go7007_read_addr(go, I2C_DATA_REG_ADDR, &val) < 0)
drivers/media/usb/go7007/go7007-i2c.c
130
if (go->board_id == GO7007_BOARDID_ADLINK_MPG24)
drivers/media/usb/go7007/go7007-i2c.c
131
adlink_mpg24_i2c_unlock(go);
drivers/media/usb/go7007/go7007-i2c.c
132
mutex_unlock(&go->hw_lock);
drivers/media/usb/go7007/go7007-i2c.c
140
struct go7007 *go = i2c_get_adapdata(adapter);
drivers/media/usb/go7007/go7007-i2c.c
144
return go7007_i2c_xfer(go, addr, read_write == I2C_SMBUS_READ, command,
drivers/media/usb/go7007/go7007-i2c.c
156
struct go7007 *go = i2c_get_adapdata(adapter);
drivers/media/usb/go7007/go7007-i2c.c
168
if (go7007_i2c_xfer(go, msgs[i].addr, 1,
drivers/media/usb/go7007/go7007-i2c.c
176
if (go7007_i2c_xfer(go, msgs[i].addr, 0,
drivers/media/usb/go7007/go7007-i2c.c
204
int go7007_i2c_init(struct go7007 *go)
drivers/media/usb/go7007/go7007-i2c.c
206
memcpy(&go->i2c_adapter, &go7007_adap_templ,
drivers/media/usb/go7007/go7007-i2c.c
208
go->i2c_adapter.dev.parent = go->dev;
drivers/media/usb/go7007/go7007-i2c.c
209
i2c_set_adapdata(&go->i2c_adapter, go);
drivers/media/usb/go7007/go7007-i2c.c
210
if (i2c_add_adapter(&go->i2c_adapter) < 0) {
drivers/media/usb/go7007/go7007-i2c.c
211
dev_err(go->dev,
drivers/media/usb/go7007/go7007-i2c.c
38
static inline void adlink_mpg24_i2c_lock(struct go7007 *go)
drivers/media/usb/go7007/go7007-i2c.c
42
go7007_write_addr(go, 0x3c82, 0x0020);
drivers/media/usb/go7007/go7007-i2c.c
45
static inline void adlink_mpg24_i2c_unlock(struct go7007 *go)
drivers/media/usb/go7007/go7007-i2c.c
48
go7007_write_addr(go, 0x3c82, 0x0000);
drivers/media/usb/go7007/go7007-i2c.c
52
static int go7007_i2c_xfer(struct go7007 *go, u16 addr, int read,
drivers/media/usb/go7007/go7007-i2c.c
58
if (go->status == STATUS_SHUTDOWN)
drivers/media/usb/go7007/go7007-i2c.c
63
dev_dbg(go->dev, "go7007-i2c: reading 0x%02x on 0x%02x\n",
drivers/media/usb/go7007/go7007-i2c.c
66
dev_dbg(go->dev,
drivers/media/usb/go7007/go7007-i2c.c
71
mutex_lock(&go->hw_lock);
drivers/media/usb/go7007/go7007-i2c.c
73
if (go->board_id == GO7007_BOARDID_ADLINK_MPG24)
drivers/media/usb/go7007/go7007-i2c.c
74
adlink_mpg24_i2c_lock(go);
drivers/media/usb/go7007/go7007-i2c.c
78
if (go7007_read_addr(go, STATUS_REG_ADDR, &val) < 0)
drivers/media/usb/go7007/go7007-i2c.c
85
dev_err(go->dev, "go7007-i2c: I2C adapter is hung\n");
drivers/media/usb/go7007/go7007-i2c.c
90
go7007_write_addr(go, I2C_CTRL_REG_ADDR, flags);
drivers/media/usb/go7007/go7007-i2c.c
91
go7007_write_addr(go, I2C_LO_ADDR_REG_ADDR, command);
drivers/media/usb/go7007/go7007-i2c.c
95
go7007_write_addr(go, I2C_DATA_REG_ADDR, *data);
drivers/media/usb/go7007/go7007-i2c.c
96
go7007_write_addr(go, I2C_DEV_UP_ADDR_REG_ADDR,
drivers/media/usb/go7007/go7007-priv.h
116
int (*interface_reset)(struct go7007 *go);
drivers/media/usb/go7007/go7007-priv.h
117
int (*write_interrupt)(struct go7007 *go, int addr, int data);
drivers/media/usb/go7007/go7007-priv.h
118
int (*read_interrupt)(struct go7007 *go);
drivers/media/usb/go7007/go7007-priv.h
119
int (*stream_start)(struct go7007 *go);
drivers/media/usb/go7007/go7007-priv.h
120
int (*stream_stop)(struct go7007 *go);
drivers/media/usb/go7007/go7007-priv.h
121
int (*send_firmware)(struct go7007 *go, u8 *data, int len);
drivers/media/usb/go7007/go7007-priv.h
122
int (*send_command)(struct go7007 *go, unsigned int cmd, void *arg);
drivers/media/usb/go7007/go7007-priv.h
123
void (*release)(struct go7007 *go);
drivers/media/usb/go7007/go7007-priv.h
237
void (*audio_deliver)(struct go7007 *go, u8 *buf, int length);
drivers/media/usb/go7007/go7007-priv.h
259
#define go7007_interface_reset(go) \
drivers/media/usb/go7007/go7007-priv.h
260
((go)->hpi_ops->interface_reset(go))
drivers/media/usb/go7007/go7007-priv.h
261
#define go7007_write_interrupt(go, x, y) \
drivers/media/usb/go7007/go7007-priv.h
262
((go)->hpi_ops->write_interrupt)((go), (x), (y))
drivers/media/usb/go7007/go7007-priv.h
263
#define go7007_stream_start(go) \
drivers/media/usb/go7007/go7007-priv.h
264
((go)->hpi_ops->stream_start(go))
drivers/media/usb/go7007/go7007-priv.h
265
#define go7007_stream_stop(go) \
drivers/media/usb/go7007/go7007-priv.h
266
((go)->hpi_ops->stream_stop(go))
drivers/media/usb/go7007/go7007-priv.h
267
#define go7007_send_firmware(go, x, y) \
drivers/media/usb/go7007/go7007-priv.h
268
((go)->hpi_ops->send_firmware)((go), (x), (y))
drivers/media/usb/go7007/go7007-priv.h
269
#define go7007_write_addr(go, x, y) \
drivers/media/usb/go7007/go7007-priv.h
270
((go)->hpi_ops->write_interrupt)((go), (x)|0x8000, (y))
drivers/media/usb/go7007/go7007-priv.h
273
int go7007_read_addr(struct go7007 *go, u16 addr, u16 *data);
drivers/media/usb/go7007/go7007-priv.h
274
int go7007_read_interrupt(struct go7007 *go, u16 *value, u16 *data);
drivers/media/usb/go7007/go7007-priv.h
275
int go7007_boot_encoder(struct go7007 *go, int init_i2c);
drivers/media/usb/go7007/go7007-priv.h
276
int go7007_reset_encoder(struct go7007 *go);
drivers/media/usb/go7007/go7007-priv.h
277
int go7007_register_encoder(struct go7007 *go, unsigned num_i2c_devs);
drivers/media/usb/go7007/go7007-priv.h
278
int go7007_start_encoder(struct go7007 *go);
drivers/media/usb/go7007/go7007-priv.h
279
void go7007_parse_video_stream(struct go7007 *go, u8 *buf, int length);
drivers/media/usb/go7007/go7007-priv.h
282
void go7007_update_board(struct go7007 *go);
drivers/media/usb/go7007/go7007-priv.h
285
int go7007_construct_fw_image(struct go7007 *go, u8 **fw, int *fwlen);
drivers/media/usb/go7007/go7007-priv.h
288
int go7007_i2c_init(struct go7007 *go);
drivers/media/usb/go7007/go7007-priv.h
289
int go7007_i2c_remove(struct go7007 *go);
drivers/media/usb/go7007/go7007-priv.h
292
int go7007_v4l2_init(struct go7007 *go);
drivers/media/usb/go7007/go7007-priv.h
293
int go7007_v4l2_ctrl_init(struct go7007 *go);
drivers/media/usb/go7007/go7007-priv.h
294
void go7007_v4l2_remove(struct go7007 *go);
drivers/media/usb/go7007/go7007-priv.h
297
int go7007_snd_init(struct go7007 *go);
drivers/media/usb/go7007/go7007-priv.h
298
int go7007_snd_remove(struct go7007 *go);
drivers/media/usb/go7007/go7007-usb.c
1002
if (go7007_usb_vendor_request(go, 0x24, 0, 0,
drivers/media/usb/go7007/go7007-usb.c
1007
if (go7007_usb_vendor_request(go, 0x25, 0, 0, buf,
drivers/media/usb/go7007/go7007-usb.c
1043
struct go7007 *go;
drivers/media/usb/go7007/go7007-usb.c
1114
go = go7007_alloc(&board->main_info, &intf->dev);
drivers/media/usb/go7007/go7007-usb.c
1115
if (go == NULL)
drivers/media/usb/go7007/go7007-usb.c
1120
kfree(go);
drivers/media/usb/go7007/go7007-usb.c
1126
usb_make_path(usbdev, go->bus_info, sizeof(go->bus_info));
drivers/media/usb/go7007/go7007-usb.c
1127
go->board_id = id->driver_info;
drivers/media/usb/go7007/go7007-usb.c
1128
strscpy(go->name, name, sizeof(go->name));
drivers/media/usb/go7007/go7007-usb.c
1130
go->hpi_ops = &go7007_usb_ezusb_hpi_ops;
drivers/media/usb/go7007/go7007-usb.c
1132
go->hpi_ops = &go7007_usb_onboard_hpi_ops;
drivers/media/usb/go7007/go7007-usb.c
1133
go->hpi_context = usb;
drivers/media/usb/go7007/go7007-usb.c
1152
go7007_usb_readinterrupt_complete, go);
drivers/media/usb/go7007/go7007-usb.c
1157
go7007_usb_readinterrupt_complete, go, 8);
drivers/media/usb/go7007/go7007-usb.c
1158
usb_set_intfdata(intf, &go->v4l2_dev);
drivers/media/usb/go7007/go7007-usb.c
1161
if (go7007_boot_encoder(go, go->board_info->flags &
drivers/media/usb/go7007/go7007-usb.c
1167
memcpy(&go->i2c_adapter, &go7007_usb_adap_templ,
drivers/media/usb/go7007/go7007-usb.c
1170
go->i2c_adapter.dev.parent = go->dev;
drivers/media/usb/go7007/go7007-usb.c
1171
i2c_set_adapdata(&go->i2c_adapter, go);
drivers/media/usb/go7007/go7007-usb.c
1172
if (i2c_add_adapter(&go->i2c_adapter) < 0) {
drivers/media/usb/go7007/go7007-usb.c
1173
dev_err(go->dev, "error: i2c_add_adapter failed\n");
drivers/media/usb/go7007/go7007-usb.c
1176
go->i2c_adapter_online = 1;
drivers/media/usb/go7007/go7007-usb.c
1185
if ((go->board_id == GO7007_BOARDID_XMEN ||
drivers/media/usb/go7007/go7007-usb.c
1186
go->board_id == GO7007_BOARDID_XMEN_III) &&
drivers/media/usb/go7007/go7007-usb.c
1187
go->i2c_adapter_online) {
drivers/media/usb/go7007/go7007-usb.c
1191
i2c_smbus_xfer(&go->i2c_adapter, 0x21, I2C_CLIENT_SCCB,
drivers/media/usb/go7007/go7007-usb.c
1195
go->board_id = GO7007_BOARDID_ENDURA;
drivers/media/usb/go7007/go7007-usb.c
1197
go->board_info = &board->main_info;
drivers/media/usb/go7007/go7007-usb.c
1198
strscpy(go->name, "Pelco Endura",
drivers/media/usb/go7007/go7007-usb.c
1199
sizeof(go->name));
drivers/media/usb/go7007/go7007-usb.c
1204
if (go7007_read_addr(go, 0x3c81, &channel))
drivers/media/usb/go7007/go7007-usb.c
1208
go->board_id = GO7007_BOARDID_ADLINK_MPG24;
drivers/media/usb/go7007/go7007-usb.c
1210
go->board_info = &board->main_info;
drivers/media/usb/go7007/go7007-usb.c
1211
go->channel_number = channel;
drivers/media/usb/go7007/go7007-usb.c
1212
snprintf(go->name, sizeof(go->name),
drivers/media/usb/go7007/go7007-usb.c
1216
go7007_update_board(go);
drivers/media/usb/go7007/go7007-usb.c
1220
num_i2c_devs = go->board_info->num_i2c_devs;
drivers/media/usb/go7007/go7007-usb.c
1223
if (go->board_id == GO7007_BOARDID_PX_TV402U) {
drivers/media/usb/go7007/go7007-usb.c
1225
if (go7007_usb_vendor_request(go, 0x41, 0, 0, go->usb_buf, 3,
drivers/media/usb/go7007/go7007-usb.c
1227
dev_err(go->dev, "GPIO read failed!\n");
drivers/media/usb/go7007/go7007-usb.c
1230
switch (go->usb_buf[0] >> 6) {
drivers/media/usb/go7007/go7007-usb.c
1232
go->tuner_type = TUNER_SONY_BTF_PG472Z;
drivers/media/usb/go7007/go7007-usb.c
1233
go->std = V4L2_STD_PAL;
drivers/media/usb/go7007/go7007-usb.c
1234
strscpy(go->name, "Plextor PX-TV402U-EU",
drivers/media/usb/go7007/go7007-usb.c
1235
sizeof(go->name));
drivers/media/usb/go7007/go7007-usb.c
1238
go->tuner_type = TUNER_SONY_BTF_PK467Z;
drivers/media/usb/go7007/go7007-usb.c
1239
go->std = V4L2_STD_NTSC_M_JP;
drivers/media/usb/go7007/go7007-usb.c
1241
strscpy(go->name, "Plextor PX-TV402U-JP",
drivers/media/usb/go7007/go7007-usb.c
1242
sizeof(go->name));
drivers/media/usb/go7007/go7007-usb.c
1245
go->tuner_type = TUNER_SONY_BTF_PB463Z;
drivers/media/usb/go7007/go7007-usb.c
1247
strscpy(go->name, "Plextor PX-TV402U-NA",
drivers/media/usb/go7007/go7007-usb.c
1248
sizeof(go->name));
drivers/media/usb/go7007/go7007-usb.c
1256
if (go7007_usb_vendor_request(go, 0x40, 0x7f02, 0,
drivers/media/usb/go7007/go7007-usb.c
1258
dev_err(go->dev, "GPIO write failed!\n");
drivers/media/usb/go7007/go7007-usb.c
1267
dev_err(go->dev, "*** WARNING *** This device must be connected to a USB 2.0 port! Attempting to capture video through a USB 1.1 port will result in stream corruption, even at low bitrates!\n");
drivers/media/usb/go7007/go7007-usb.c
1291
go7007_usb_read_video_pipe_complete, go);
drivers/media/usb/go7007/go7007-usb.c
1310
go7007_usb_read_audio_pipe_complete, go);
drivers/media/usb/go7007/go7007-usb.c
1316
if (go7007_register_encoder(go, num_i2c_devs) < 0)
drivers/media/usb/go7007/go7007-usb.c
1319
go->status = STATUS_ONLINE;
drivers/media/usb/go7007/go7007-usb.c
1323
go7007_usb_release(go);
drivers/media/usb/go7007/go7007-usb.c
1324
kfree(go);
drivers/media/usb/go7007/go7007-usb.c
1330
struct go7007 *go = to_go7007(usb_get_intfdata(intf));
drivers/media/usb/go7007/go7007-usb.c
1332
mutex_lock(&go->queue_lock);
drivers/media/usb/go7007/go7007-usb.c
1333
mutex_lock(&go->serialize_lock);
drivers/media/usb/go7007/go7007-usb.c
1335
if (go->audio_enabled)
drivers/media/usb/go7007/go7007-usb.c
1336
go7007_snd_remove(go);
drivers/media/usb/go7007/go7007-usb.c
1338
go->status = STATUS_SHUTDOWN;
drivers/media/usb/go7007/go7007-usb.c
1339
v4l2_device_disconnect(&go->v4l2_dev);
drivers/media/usb/go7007/go7007-usb.c
1340
video_unregister_device(&go->vdev);
drivers/media/usb/go7007/go7007-usb.c
1341
mutex_unlock(&go->serialize_lock);
drivers/media/usb/go7007/go7007-usb.c
1342
mutex_unlock(&go->queue_lock);
drivers/media/usb/go7007/go7007-usb.c
1344
v4l2_device_put(&go->v4l2_dev);
drivers/media/usb/go7007/go7007-usb.c
622
static int go7007_usb_vendor_request(struct go7007 *go, int request,
drivers/media/usb/go7007/go7007-usb.c
625
struct go7007_usb *usb = go->hpi_context;
drivers/media/usb/go7007/go7007-usb.c
641
static int go7007_usb_interface_reset(struct go7007 *go)
drivers/media/usb/go7007/go7007-usb.c
643
struct go7007_usb *usb = go->hpi_context;
drivers/media/usb/go7007/go7007-usb.c
646
if (go->status == STATUS_SHUTDOWN)
drivers/media/usb/go7007/go7007-usb.c
649
if (go7007_write_interrupt(go, 0x0001, 0x0001) < 0)
drivers/media/usb/go7007/go7007-usb.c
656
if (go7007_usb_vendor_request(go, 0x10, 0, 0, NULL, 0, 0) < 0 ||
drivers/media/usb/go7007/go7007-usb.c
657
go7007_usb_vendor_request(go, 0x10, 0, 0, NULL, 0, 0) < 0)
drivers/media/usb/go7007/go7007-usb.c
661
if (go7007_write_interrupt(go, 0x0001, 0x0001) < 0)
drivers/media/usb/go7007/go7007-usb.c
667
if (go7007_read_interrupt(go, &intr_val, &intr_data) < 0 ||
drivers/media/usb/go7007/go7007-usb.c
669
dev_err(go->dev, "unable to reset the USB interface\n");
drivers/media/usb/go7007/go7007-usb.c
675
static int go7007_usb_ezusb_write_interrupt(struct go7007 *go,
drivers/media/usb/go7007/go7007-usb.c
678
struct go7007_usb *usb = go->hpi_context;
drivers/media/usb/go7007/go7007-usb.c
689
0, HPI_STATUS_ADDR, go->usb_buf,
drivers/media/usb/go7007/go7007-usb.c
693
status_reg = le16_to_cpu(*((__le16 *)go->usb_buf));
drivers/media/usb/go7007/go7007-usb.c
701
dev_err(go->dev, "device is hung, status reg = 0x%04x\n", status_reg);
drivers/media/usb/go7007/go7007-usb.c
717
dev_err(go->dev, "error in WriteInterrupt: %d\n", r);
drivers/media/usb/go7007/go7007-usb.c
721
static int go7007_usb_onboard_write_interrupt(struct go7007 *go,
drivers/media/usb/go7007/go7007-usb.c
724
struct go7007_usb *usb = go->hpi_context;
drivers/media/usb/go7007/go7007-usb.c
730
go->usb_buf[0] = data & 0xff;
drivers/media/usb/go7007/go7007-usb.c
731
go->usb_buf[1] = data >> 8;
drivers/media/usb/go7007/go7007-usb.c
732
go->usb_buf[2] = addr & 0xff;
drivers/media/usb/go7007/go7007-usb.c
733
go->usb_buf[3] = addr >> 8;
drivers/media/usb/go7007/go7007-usb.c
734
go->usb_buf[4] = go->usb_buf[5] = go->usb_buf[6] = go->usb_buf[7] = 0;
drivers/media/usb/go7007/go7007-usb.c
737
0xf0f0, go->usb_buf, 8, timeout);
drivers/media/usb/go7007/go7007-usb.c
739
dev_err(go->dev, "error in WriteInterrupt: %d\n", r);
drivers/media/usb/go7007/go7007-usb.c
747
struct go7007 *go = (struct go7007 *)urb->context;
drivers/media/usb/go7007/go7007-usb.c
753
go->status != STATUS_SHUTDOWN) {
drivers/media/usb/go7007/go7007-usb.c
754
dev_err(go->dev, "error in read interrupt: %d\n", urb->status);
drivers/media/usb/go7007/go7007-usb.c
756
wake_up(&go->interrupt_waitq);
drivers/media/usb/go7007/go7007-usb.c
760
dev_err(go->dev, "short read in interrupt pipe!\n");
drivers/media/usb/go7007/go7007-usb.c
762
go->interrupt_available = 1;
drivers/media/usb/go7007/go7007-usb.c
763
go->interrupt_data = __le16_to_cpu(regs[0]);
drivers/media/usb/go7007/go7007-usb.c
764
go->interrupt_value = __le16_to_cpu(regs[1]);
drivers/media/usb/go7007/go7007-usb.c
766
go->interrupt_value, go->interrupt_data);
drivers/media/usb/go7007/go7007-usb.c
769
wake_up(&go->interrupt_waitq);
drivers/media/usb/go7007/go7007-usb.c
772
static int go7007_usb_read_interrupt(struct go7007 *go)
drivers/media/usb/go7007/go7007-usb.c
774
struct go7007_usb *usb = go->hpi_context;
drivers/media/usb/go7007/go7007-usb.c
779
dev_err(go->dev, "unable to submit interrupt urb: %d\n", r);
drivers/media/usb/go7007/go7007-usb.c
787
struct go7007 *go = (struct go7007 *)urb->context;
drivers/media/usb/go7007/go7007-usb.c
790
if (!vb2_is_streaming(&go->vidq)) {
drivers/media/usb/go7007/go7007-usb.c
791
wake_up_interruptible(&go->frame_waitq);
drivers/media/usb/go7007/go7007-usb.c
795
dev_err(go->dev, "error in video pipe: %d\n", status);
drivers/media/usb/go7007/go7007-usb.c
799
dev_err(go->dev, "short read in video pipe!\n");
drivers/media/usb/go7007/go7007-usb.c
802
go7007_parse_video_stream(go, urb->transfer_buffer, urb->actual_length);
drivers/media/usb/go7007/go7007-usb.c
805
dev_err(go->dev, "error in video pipe: %d\n", r);
drivers/media/usb/go7007/go7007-usb.c
810
struct go7007 *go = (struct go7007 *)urb->context;
drivers/media/usb/go7007/go7007-usb.c
813
if (!vb2_is_streaming(&go->vidq))
drivers/media/usb/go7007/go7007-usb.c
816
dev_err(go->dev, "error in audio pipe: %d\n",
drivers/media/usb/go7007/go7007-usb.c
821
dev_err(go->dev, "short read in audio pipe!\n");
drivers/media/usb/go7007/go7007-usb.c
824
if (go->audio_deliver != NULL)
drivers/media/usb/go7007/go7007-usb.c
825
go->audio_deliver(go, urb->transfer_buffer, urb->actual_length);
drivers/media/usb/go7007/go7007-usb.c
828
dev_err(go->dev, "error in audio pipe: %d\n", r);
drivers/media/usb/go7007/go7007-usb.c
831
static int go7007_usb_stream_start(struct go7007 *go)
drivers/media/usb/go7007/go7007-usb.c
833
struct go7007_usb *usb = go->hpi_context;
drivers/media/usb/go7007/go7007-usb.c
839
dev_err(go->dev, "error submitting video urb %d: %d\n", i, r);
drivers/media/usb/go7007/go7007-usb.c
843
if (!go->audio_enabled)
drivers/media/usb/go7007/go7007-usb.c
849
dev_err(go->dev, "error submitting audio urb %d: %d\n", i, r);
drivers/media/usb/go7007/go7007-usb.c
864
static int go7007_usb_stream_stop(struct go7007 *go)
drivers/media/usb/go7007/go7007-usb.c
866
struct go7007_usb *usb = go->hpi_context;
drivers/media/usb/go7007/go7007-usb.c
869
if (go->status == STATUS_SHUTDOWN)
drivers/media/usb/go7007/go7007-usb.c
873
if (go->audio_enabled)
drivers/media/usb/go7007/go7007-usb.c
879
static int go7007_usb_send_firmware(struct go7007 *go, u8 *data, int len)
drivers/media/usb/go7007/go7007-usb.c
881
struct go7007_usb *usb = go->hpi_context;
drivers/media/usb/go7007/go7007-usb.c
896
static void go7007_usb_release(struct go7007 *go)
drivers/media/usb/go7007/go7007-usb.c
898
struct go7007_usb *usb = go->hpi_context;
drivers/media/usb/go7007/go7007-usb.c
924
kfree(go->hpi_context);
drivers/media/usb/go7007/go7007-usb.c
952
struct go7007 *go = i2c_get_adapdata(adapter);
drivers/media/usb/go7007/go7007-usb.c
953
struct go7007_usb *usb = go->hpi_context;
drivers/media/usb/go7007/go7007-usb.c
954
u8 *buf = go->usb_buf;
drivers/media/usb/go7007/go7007-usb.c
958
if (go->status == STATUS_SHUTDOWN)
drivers/media/usb/go7007/go7007-v4l2.c
101
if (go->format == V4L2_PIX_FMT_MJPEG) {
drivers/media/usb/go7007/go7007-v4l2.c
1010
int go7007_v4l2_ctrl_init(struct go7007 *go)
drivers/media/usb/go7007/go7007-v4l2.c
1012
struct v4l2_ctrl_handler *hdl = &go->hdl;
drivers/media/usb/go7007/go7007-v4l2.c
1016
go->mpeg_video_gop_size = v4l2_ctrl_new_std(hdl, NULL,
drivers/media/usb/go7007/go7007-v4l2.c
1018
go->mpeg_video_gop_closure = v4l2_ctrl_new_std(hdl, NULL,
drivers/media/usb/go7007/go7007-v4l2.c
102
go->pali = 0;
drivers/media/usb/go7007/go7007-v4l2.c
1020
go->mpeg_video_bitrate = v4l2_ctrl_new_std(hdl, NULL,
drivers/media/usb/go7007/go7007-v4l2.c
1023
go->mpeg_video_b_frames = v4l2_ctrl_new_std(hdl, NULL,
drivers/media/usb/go7007/go7007-v4l2.c
1025
go->mpeg_video_rep_seqheader = v4l2_ctrl_new_std(hdl, NULL,
drivers/media/usb/go7007/go7007-v4l2.c
1028
go->mpeg_video_aspect_ratio = v4l2_ctrl_new_std_menu(hdl, NULL,
drivers/media/usb/go7007/go7007-v4l2.c
103
go->aspect_ratio = GO7007_RATIO_1_1;
drivers/media/usb/go7007/go7007-v4l2.c
104
go->gop_size = 0;
drivers/media/usb/go7007/go7007-v4l2.c
105
go->ipb = 0;
drivers/media/usb/go7007/go7007-v4l2.c
1053
go->modet_mode = v4l2_ctrl_new_std_menu(hdl, NULL,
drivers/media/usb/go7007/go7007-v4l2.c
106
go->closed_gop = 0;
drivers/media/usb/go7007/go7007-v4l2.c
1061
v4l2_err(&go->v4l2_dev, "Could not register controls\n");
drivers/media/usb/go7007/go7007-v4l2.c
1064
go->v4l2_dev.ctrl_handler = hdl;
drivers/media/usb/go7007/go7007-v4l2.c
1068
int go7007_v4l2_init(struct go7007 *go)
drivers/media/usb/go7007/go7007-v4l2.c
107
go->repeat_seqhead = 0;
drivers/media/usb/go7007/go7007-v4l2.c
1070
struct video_device *vdev = &go->vdev;
drivers/media/usb/go7007/go7007-v4l2.c
1073
mutex_init(&go->serialize_lock);
drivers/media/usb/go7007/go7007-v4l2.c
1074
mutex_init(&go->queue_lock);
drivers/media/usb/go7007/go7007-v4l2.c
1076
INIT_LIST_HEAD(&go->vidq_active);
drivers/media/usb/go7007/go7007-v4l2.c
1077
go->vidq.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
drivers/media/usb/go7007/go7007-v4l2.c
1078
go->vidq.io_modes = VB2_MMAP | VB2_USERPTR | VB2_READ;
drivers/media/usb/go7007/go7007-v4l2.c
1079
go->vidq.ops = &go7007_video_qops;
drivers/media/usb/go7007/go7007-v4l2.c
108
go->seq_header_enable = 0;
drivers/media/usb/go7007/go7007-v4l2.c
1080
go->vidq.mem_ops = &vb2_vmalloc_memops;
drivers/media/usb/go7007/go7007-v4l2.c
1081
go->vidq.drv_priv = go;
drivers/media/usb/go7007/go7007-v4l2.c
1082
go->vidq.buf_struct_size = sizeof(struct go7007_buffer);
drivers/media/usb/go7007/go7007-v4l2.c
1083
go->vidq.timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
drivers/media/usb/go7007/go7007-v4l2.c
1084
go->vidq.lock = &go->queue_lock;
drivers/media/usb/go7007/go7007-v4l2.c
1085
rv = vb2_queue_init(&go->vidq);
drivers/media/usb/go7007/go7007-v4l2.c
1089
vdev->lock = &go->serialize_lock;
drivers/media/usb/go7007/go7007-v4l2.c
109
go->gop_header_enable = 0;
drivers/media/usb/go7007/go7007-v4l2.c
1090
vdev->queue = &go->vidq;
drivers/media/usb/go7007/go7007-v4l2.c
1093
if (go->board_info->num_aud_inputs)
drivers/media/usb/go7007/go7007-v4l2.c
1095
if (go->board_info->flags & GO7007_BOARD_HAS_TUNER)
drivers/media/usb/go7007/go7007-v4l2.c
1097
video_set_drvdata(vdev, go);
drivers/media/usb/go7007/go7007-v4l2.c
1098
vdev->v4l2_dev = &go->v4l2_dev;
drivers/media/usb/go7007/go7007-v4l2.c
1099
if (!v4l2_device_has_op(&go->v4l2_dev, 0, video, querystd))
drivers/media/usb/go7007/go7007-v4l2.c
110
go->dvd_mode = 0;
drivers/media/usb/go7007/go7007-v4l2.c
1101
if (!(go->board_info->flags & GO7007_BOARD_HAS_TUNER)) {
drivers/media/usb/go7007/go7007-v4l2.c
1112
call_all(&go->v4l2_dev, tuner, s_frequency, &f);
drivers/media/usb/go7007/go7007-v4l2.c
1114
if (!(go->board_info->sensor_flags & GO7007_SENSOR_TV)) {
drivers/media/usb/go7007/go7007-v4l2.c
1119
if (go->board_info->sensor_flags & GO7007_SENSOR_SCALING)
drivers/media/usb/go7007/go7007-v4l2.c
1121
if (go->board_info->num_aud_inputs == 0) {
drivers/media/usb/go7007/go7007-v4l2.c
1127
if (go->board_info->sensor_flags & GO7007_SENSOR_SAA7115)
drivers/media/usb/go7007/go7007-v4l2.c
1128
v4l2_subdev_call(go->sd_video, video, s_crystal_freq,
drivers/media/usb/go7007/go7007-v4l2.c
1132
go7007_s_input(go);
drivers/media/usb/go7007/go7007-v4l2.c
1133
if (go->board_info->sensor_flags & GO7007_SENSOR_TV)
drivers/media/usb/go7007/go7007-v4l2.c
1134
go7007_s_std(go);
drivers/media/usb/go7007/go7007-v4l2.c
1138
dev_info(go->dev, "registered device %s [v4l2]\n",
drivers/media/usb/go7007/go7007-v4l2.c
114
switch (go->format) {
drivers/media/usb/go7007/go7007-v4l2.c
1144
void go7007_v4l2_remove(struct go7007 *go)
drivers/media/usb/go7007/go7007-v4l2.c
1146
v4l2_ctrl_handler_free(&go->hdl);
drivers/media/usb/go7007/go7007-v4l2.c
116
go->pali = 0;
drivers/media/usb/go7007/go7007-v4l2.c
120
go->pali = 0x48;
drivers/media/usb/go7007/go7007-v4l2.c
144
go->pali = 0xf5;
drivers/media/usb/go7007/go7007-v4l2.c
147
go->gop_size = v4l2_ctrl_g_ctrl(go->mpeg_video_gop_size);
drivers/media/usb/go7007/go7007-v4l2.c
148
go->closed_gop = v4l2_ctrl_g_ctrl(go->mpeg_video_gop_closure);
drivers/media/usb/go7007/go7007-v4l2.c
149
go->ipb = v4l2_ctrl_g_ctrl(go->mpeg_video_b_frames) != 0;
drivers/media/usb/go7007/go7007-v4l2.c
150
go->bitrate = v4l2_ctrl_g_ctrl(go->mpeg_video_bitrate);
drivers/media/usb/go7007/go7007-v4l2.c
151
go->repeat_seqhead = v4l2_ctrl_g_ctrl(go->mpeg_video_rep_seqheader);
drivers/media/usb/go7007/go7007-v4l2.c
152
go->gop_header_enable = 1;
drivers/media/usb/go7007/go7007-v4l2.c
153
go->dvd_mode = 0;
drivers/media/usb/go7007/go7007-v4l2.c
154
if (go->format == V4L2_PIX_FMT_MPEG2)
drivers/media/usb/go7007/go7007-v4l2.c
155
go->dvd_mode =
drivers/media/usb/go7007/go7007-v4l2.c
156
go->bitrate == 9800000 &&
drivers/media/usb/go7007/go7007-v4l2.c
157
go->gop_size == 15 &&
drivers/media/usb/go7007/go7007-v4l2.c
158
go->ipb == 0 &&
drivers/media/usb/go7007/go7007-v4l2.c
159
go->repeat_seqhead == 1 &&
drivers/media/usb/go7007/go7007-v4l2.c
160
go->closed_gop;
drivers/media/usb/go7007/go7007-v4l2.c
162
switch (v4l2_ctrl_g_ctrl(go->mpeg_video_aspect_ratio)) {
drivers/media/usb/go7007/go7007-v4l2.c
165
go->aspect_ratio = GO7007_RATIO_1_1;
drivers/media/usb/go7007/go7007-v4l2.c
168
go->aspect_ratio = GO7007_RATIO_4_3;
drivers/media/usb/go7007/go7007-v4l2.c
171
go->aspect_ratio = GO7007_RATIO_16_9;
drivers/media/usb/go7007/go7007-v4l2.c
176
static int set_capture_size(struct go7007 *go, struct v4l2_format *fmt, int try)
drivers/media/usb/go7007/go7007-v4l2.c
184
get_resolution(go, &sensor_width, &sensor_height);
drivers/media/usb/go7007/go7007-v4l2.c
189
} else if (go->board_info->sensor_flags & GO7007_SENSOR_SCALING) {
drivers/media/usb/go7007/go7007-v4l2.c
238
go->format = fmt->fmt.pix.pixelformat;
drivers/media/usb/go7007/go7007-v4l2.c
239
go->width = width;
drivers/media/usb/go7007/go7007-v4l2.c
240
go->height = height;
drivers/media/usb/go7007/go7007-v4l2.c
241
go->encoder_h_offset = go->board_info->sensor_h_offset;
drivers/media/usb/go7007/go7007-v4l2.c
242
go->encoder_v_offset = go->board_info->sensor_v_offset;
drivers/media/usb/go7007/go7007-v4l2.c
244
if (go->board_info->sensor_flags & GO7007_SENSOR_SCALING) {
drivers/media/usb/go7007/go7007-v4l2.c
252
go->encoder_h_halve = 0;
drivers/media/usb/go7007/go7007-v4l2.c
253
go->encoder_v_halve = 0;
drivers/media/usb/go7007/go7007-v4l2.c
254
go->encoder_subsample = 0;
drivers/media/usb/go7007/go7007-v4l2.c
255
call_all(&go->v4l2_dev, pad, set_fmt, NULL, &format);
drivers/media/usb/go7007/go7007-v4l2.c
258
go->encoder_h_halve = 1;
drivers/media/usb/go7007/go7007-v4l2.c
259
go->encoder_v_halve = 1;
drivers/media/usb/go7007/go7007-v4l2.c
260
go->encoder_subsample = 1;
drivers/media/usb/go7007/go7007-v4l2.c
262
go->encoder_h_halve = 1;
drivers/media/usb/go7007/go7007-v4l2.c
263
go->encoder_v_halve = 1;
drivers/media/usb/go7007/go7007-v4l2.c
264
go->encoder_subsample = 0;
drivers/media/usb/go7007/go7007-v4l2.c
266
go->encoder_h_halve = 0;
drivers/media/usb/go7007/go7007-v4l2.c
267
go->encoder_v_halve = 0;
drivers/media/usb/go7007/go7007-v4l2.c
268
go->encoder_subsample = 0;
drivers/media/usb/go7007/go7007-v4l2.c
277
struct go7007 *go = video_drvdata(file);
drivers/media/usb/go7007/go7007-v4l2.c
280
strscpy(cap->card, go->name, sizeof(cap->card));
drivers/media/usb/go7007/go7007-v4l2.c
281
strscpy(cap->bus_info, go->bus_info, sizeof(cap->bus_info));
drivers/media/usb/go7007/go7007-v4l2.c
310
struct go7007 *go = video_drvdata(file);
drivers/media/usb/go7007/go7007-v4l2.c
313
fmt->fmt.pix.width = go->width;
drivers/media/usb/go7007/go7007-v4l2.c
314
fmt->fmt.pix.height = go->height;
drivers/media/usb/go7007/go7007-v4l2.c
315
fmt->fmt.pix.pixelformat = go->format;
drivers/media/usb/go7007/go7007-v4l2.c
327
struct go7007 *go = video_drvdata(file);
drivers/media/usb/go7007/go7007-v4l2.c
329
return set_capture_size(go, fmt, 1);
drivers/media/usb/go7007/go7007-v4l2.c
335
struct go7007 *go = video_drvdata(file);
drivers/media/usb/go7007/go7007-v4l2.c
337
if (vb2_is_busy(&go->vidq))
drivers/media/usb/go7007/go7007-v4l2.c
340
return set_capture_size(go, fmt, 0);
drivers/media/usb/go7007/go7007-v4l2.c
359
struct go7007 *go = vb2_get_drv_priv(vq);
drivers/media/usb/go7007/go7007-v4l2.c
365
spin_lock_irqsave(&go->spinlock, flags);
drivers/media/usb/go7007/go7007-v4l2.c
366
list_add_tail(&go7007_vb->list, &go->vidq_active);
drivers/media/usb/go7007/go7007-v4l2.c
367
spin_unlock_irqrestore(&go->spinlock, flags);
drivers/media/usb/go7007/go7007-v4l2.c
385
struct go7007 *go = vb2_get_drv_priv(vq);
drivers/media/usb/go7007/go7007-v4l2.c
389
u32 frame_type_flag = get_frame_type_flag(go7007_vb, go->format);
drivers/media/usb/go7007/go7007-v4l2.c
399
struct go7007 *go = vb2_get_drv_priv(q);
drivers/media/usb/go7007/go7007-v4l2.c
402
set_formatting(go);
drivers/media/usb/go7007/go7007-v4l2.c
403
mutex_lock(&go->hw_lock);
drivers/media/usb/go7007/go7007-v4l2.c
404
go->next_seq = 0;
drivers/media/usb/go7007/go7007-v4l2.c
405
go->active_buf = NULL;
drivers/media/usb/go7007/go7007-v4l2.c
406
go->modet_event_status = 0;
drivers/media/usb/go7007/go7007-v4l2.c
407
if (go7007_start_encoder(go) < 0)
drivers/media/usb/go7007/go7007-v4l2.c
411
mutex_unlock(&go->hw_lock);
drivers/media/usb/go7007/go7007-v4l2.c
414
call_all(&go->v4l2_dev, video, s_stream, 1);
drivers/media/usb/go7007/go7007-v4l2.c
415
v4l2_ctrl_grab(go->mpeg_video_gop_size, true);
drivers/media/usb/go7007/go7007-v4l2.c
416
v4l2_ctrl_grab(go->mpeg_video_gop_closure, true);
drivers/media/usb/go7007/go7007-v4l2.c
417
v4l2_ctrl_grab(go->mpeg_video_bitrate, true);
drivers/media/usb/go7007/go7007-v4l2.c
418
v4l2_ctrl_grab(go->mpeg_video_aspect_ratio, true);
drivers/media/usb/go7007/go7007-v4l2.c
420
if (go->board_id == GO7007_BOARDID_ADS_USBAV_709)
drivers/media/usb/go7007/go7007-v4l2.c
421
go7007_write_addr(go, 0x3c82, 0x0005);
drivers/media/usb/go7007/go7007-v4l2.c
427
struct go7007 *go = vb2_get_drv_priv(q);
drivers/media/usb/go7007/go7007-v4l2.c
430
go7007_stream_stop(go);
drivers/media/usb/go7007/go7007-v4l2.c
431
mutex_lock(&go->hw_lock);
drivers/media/usb/go7007/go7007-v4l2.c
432
go7007_reset_encoder(go);
drivers/media/usb/go7007/go7007-v4l2.c
433
mutex_unlock(&go->hw_lock);
drivers/media/usb/go7007/go7007-v4l2.c
434
call_all(&go->v4l2_dev, video, s_stream, 0);
drivers/media/usb/go7007/go7007-v4l2.c
436
spin_lock_irqsave(&go->spinlock, flags);
drivers/media/usb/go7007/go7007-v4l2.c
437
INIT_LIST_HEAD(&go->vidq_active);
drivers/media/usb/go7007/go7007-v4l2.c
438
spin_unlock_irqrestore(&go->spinlock, flags);
drivers/media/usb/go7007/go7007-v4l2.c
439
v4l2_ctrl_grab(go->mpeg_video_gop_size, false);
drivers/media/usb/go7007/go7007-v4l2.c
440
v4l2_ctrl_grab(go->mpeg_video_gop_closure, false);
drivers/media/usb/go7007/go7007-v4l2.c
441
v4l2_ctrl_grab(go->mpeg_video_bitrate, false);
drivers/media/usb/go7007/go7007-v4l2.c
442
v4l2_ctrl_grab(go->mpeg_video_aspect_ratio, false);
drivers/media/usb/go7007/go7007-v4l2.c
444
if (go->board_id == GO7007_BOARDID_ADS_USBAV_709)
drivers/media/usb/go7007/go7007-v4l2.c
445
go7007_write_addr(go, 0x3c82, 0x000d);
drivers/media/usb/go7007/go7007-v4l2.c
460
struct go7007 *go = video_drvdata(filp);
drivers/media/usb/go7007/go7007-v4l2.c
462
.numerator = 1001 * go->fps_scale,
drivers/media/usb/go7007/go7007-v4l2.c
463
.denominator = go->sensor_framerate,
drivers/media/usb/go7007/go7007-v4l2.c
479
struct go7007 *go = video_drvdata(filp);
drivers/media/usb/go7007/go7007-v4l2.c
485
n = go->sensor_framerate *
drivers/media/usb/go7007/go7007-v4l2.c
489
go->fps_scale = (n + d/2) / d;
drivers/media/usb/go7007/go7007-v4l2.c
491
go->fps_scale = 1;
drivers/media/usb/go7007/go7007-v4l2.c
509
struct go7007 *go = video_drvdata(filp);
drivers/media/usb/go7007/go7007-v4l2.c
518
get_resolution(go, &width, &height);
drivers/media/usb/go7007/go7007-v4l2.c
528
struct go7007 *go = video_drvdata(filp);
drivers/media/usb/go7007/go7007-v4l2.c
538
if (!(go->board_info->sensor_flags & GO7007_SENSOR_SCALING)) {
drivers/media/usb/go7007/go7007-v4l2.c
539
get_resolution(go, &width, &height);
drivers/media/usb/go7007/go7007-v4l2.c
549
fival->discrete.denominator = go->sensor_framerate;
drivers/media/usb/go7007/go7007-v4l2.c
555
struct go7007 *go = video_drvdata(file);
drivers/media/usb/go7007/go7007-v4l2.c
557
*std = go->std;
drivers/media/usb/go7007/go7007-v4l2.c
561
static int go7007_s_std(struct go7007 *go)
drivers/media/usb/go7007/go7007-v4l2.c
563
if (go->std & V4L2_STD_625_50) {
drivers/media/usb/go7007/go7007-v4l2.c
564
go->standard = GO7007_STD_PAL;
drivers/media/usb/go7007/go7007-v4l2.c
565
go->sensor_framerate = 25025;
drivers/media/usb/go7007/go7007-v4l2.c
567
go->standard = GO7007_STD_NTSC;
drivers/media/usb/go7007/go7007-v4l2.c
568
go->sensor_framerate = 30000;
drivers/media/usb/go7007/go7007-v4l2.c
571
call_all(&go->v4l2_dev, video, s_std, go->std);
drivers/media/usb/go7007/go7007-v4l2.c
572
set_capture_size(go, NULL, 0);
drivers/media/usb/go7007/go7007-v4l2.c
578
struct go7007 *go = video_drvdata(file);
drivers/media/usb/go7007/go7007-v4l2.c
580
if (vb2_is_busy(&go->vidq))
drivers/media/usb/go7007/go7007-v4l2.c
583
go->std = std;
drivers/media/usb/go7007/go7007-v4l2.c
585
return go7007_s_std(go);
drivers/media/usb/go7007/go7007-v4l2.c
590
struct go7007 *go = video_drvdata(file);
drivers/media/usb/go7007/go7007-v4l2.c
592
return call_all(&go->v4l2_dev, video, querystd, std);
drivers/media/usb/go7007/go7007-v4l2.c
598
struct go7007 *go = video_drvdata(file);
drivers/media/usb/go7007/go7007-v4l2.c
600
if (inp->index >= go->board_info->num_inputs)
drivers/media/usb/go7007/go7007-v4l2.c
603
strscpy(inp->name, go->board_info->inputs[inp->index].name,
drivers/media/usb/go7007/go7007-v4l2.c
607
if ((go->board_info->flags & GO7007_BOARD_HAS_TUNER) &&
drivers/media/usb/go7007/go7007-v4l2.c
613
if (go->board_info->num_aud_inputs)
drivers/media/usb/go7007/go7007-v4l2.c
614
inp->audioset = (1 << go->board_info->num_aud_inputs) - 1;
drivers/media/usb/go7007/go7007-v4l2.c
618
if (go->board_info->sensor_flags & GO7007_SENSOR_TV)
drivers/media/usb/go7007/go7007-v4l2.c
629
struct go7007 *go = video_drvdata(file);
drivers/media/usb/go7007/go7007-v4l2.c
631
*input = go->input;
drivers/media/usb/go7007/go7007-v4l2.c
638
struct go7007 *go = video_drvdata(file);
drivers/media/usb/go7007/go7007-v4l2.c
640
if (a->index >= go->board_info->num_aud_inputs)
drivers/media/usb/go7007/go7007-v4l2.c
642
strscpy(a->name, go->board_info->aud_inputs[a->index].name,
drivers/media/usb/go7007/go7007-v4l2.c
650
struct go7007 *go = video_drvdata(file);
drivers/media/usb/go7007/go7007-v4l2.c
652
a->index = go->aud_input;
drivers/media/usb/go7007/go7007-v4l2.c
653
strscpy(a->name, go->board_info->aud_inputs[go->aud_input].name,
drivers/media/usb/go7007/go7007-v4l2.c
662
struct go7007 *go = video_drvdata(file);
drivers/media/usb/go7007/go7007-v4l2.c
664
if (a->index >= go->board_info->num_aud_inputs)
drivers/media/usb/go7007/go7007-v4l2.c
666
go->aud_input = a->index;
drivers/media/usb/go7007/go7007-v4l2.c
667
v4l2_subdev_call(go->sd_audio, audio, s_routing,
drivers/media/usb/go7007/go7007-v4l2.c
668
go->board_info->aud_inputs[go->aud_input].audio_input, 0, 0);
drivers/media/usb/go7007/go7007-v4l2.c
672
static void go7007_s_input(struct go7007 *go)
drivers/media/usb/go7007/go7007-v4l2.c
674
unsigned int input = go->input;
drivers/media/usb/go7007/go7007-v4l2.c
676
v4l2_subdev_call(go->sd_video, video, s_routing,
drivers/media/usb/go7007/go7007-v4l2.c
677
go->board_info->inputs[input].video_input, 0,
drivers/media/usb/go7007/go7007-v4l2.c
678
go->board_info->video_config);
drivers/media/usb/go7007/go7007-v4l2.c
679
if (go->board_info->num_aud_inputs) {
drivers/media/usb/go7007/go7007-v4l2.c
680
int aud_input = go->board_info->inputs[input].audio_index;
drivers/media/usb/go7007/go7007-v4l2.c
682
v4l2_subdev_call(go->sd_audio, audio, s_routing,
drivers/media/usb/go7007/go7007-v4l2.c
683
go->board_info->aud_inputs[aud_input].audio_input, 0, 0);
drivers/media/usb/go7007/go7007-v4l2.c
684
go->aud_input = aud_input;
drivers/media/usb/go7007/go7007-v4l2.c
690
struct go7007 *go = video_drvdata(file);
drivers/media/usb/go7007/go7007-v4l2.c
692
if (input >= go->board_info->num_inputs)
drivers/media/usb/go7007/go7007-v4l2.c
694
if (vb2_is_busy(&go->vidq))
drivers/media/usb/go7007/go7007-v4l2.c
697
go->input = input;
drivers/media/usb/go7007/go7007-v4l2.c
698
go7007_s_input(go);
drivers/media/usb/go7007/go7007-v4l2.c
706
struct go7007 *go = video_drvdata(file);
drivers/media/usb/go7007/go7007-v4l2.c
712
return call_all(&go->v4l2_dev, tuner, g_tuner, t);
drivers/media/usb/go7007/go7007-v4l2.c
718
struct go7007 *go = video_drvdata(file);
drivers/media/usb/go7007/go7007-v4l2.c
723
return call_all(&go->v4l2_dev, tuner, s_tuner, t);
drivers/media/usb/go7007/go7007-v4l2.c
729
struct go7007 *go = video_drvdata(file);
drivers/media/usb/go7007/go7007-v4l2.c
734
return call_all(&go->v4l2_dev, tuner, g_frequency, f);
drivers/media/usb/go7007/go7007-v4l2.c
740
struct go7007 *go = video_drvdata(file);
drivers/media/usb/go7007/go7007-v4l2.c
745
return call_all(&go->v4l2_dev, tuner, s_frequency, f);
drivers/media/usb/go7007/go7007-v4l2.c
750
struct go7007 *go = video_drvdata(file);
drivers/media/usb/go7007/go7007-v4l2.c
753
return call_all(&go->v4l2_dev, core, log_status);
drivers/media/usb/go7007/go7007-v4l2.c
773
struct go7007 *go =
drivers/media/usb/go7007/go7007-v4l2.c
780
go->modet[0].pixel_threshold = ctrl->val;
drivers/media/usb/go7007/go7007-v4l2.c
783
go->modet[0].motion_threshold = ctrl->val;
drivers/media/usb/go7007/go7007-v4l2.c
786
go->modet[0].mb_threshold = ctrl->val;
drivers/media/usb/go7007/go7007-v4l2.c
789
go->modet[1].pixel_threshold = ctrl->val;
drivers/media/usb/go7007/go7007-v4l2.c
792
go->modet[1].motion_threshold = ctrl->val;
drivers/media/usb/go7007/go7007-v4l2.c
795
go->modet[1].mb_threshold = ctrl->val;
drivers/media/usb/go7007/go7007-v4l2.c
798
go->modet[2].pixel_threshold = ctrl->val;
drivers/media/usb/go7007/go7007-v4l2.c
80
static void get_resolution(struct go7007 *go, int *width, int *height)
drivers/media/usb/go7007/go7007-v4l2.c
801
go->modet[2].motion_threshold = ctrl->val;
drivers/media/usb/go7007/go7007-v4l2.c
804
go->modet[2].mb_threshold = ctrl->val;
drivers/media/usb/go7007/go7007-v4l2.c
807
go->modet[3].pixel_threshold = ctrl->val;
drivers/media/usb/go7007/go7007-v4l2.c
810
go->modet[3].motion_threshold = ctrl->val;
drivers/media/usb/go7007/go7007-v4l2.c
813
go->modet[3].mb_threshold = ctrl->val;
drivers/media/usb/go7007/go7007-v4l2.c
816
mt = go->modet_map;
drivers/media/usb/go7007/go7007-v4l2.c
817
for (y = 0; y < go->height / 16; y++, mt += go->width / 16)
drivers/media/usb/go7007/go7007-v4l2.c
818
memcpy(mt, ctrl->p_new.p_u8 + y * (720 / 16), go->width / 16);
drivers/media/usb/go7007/go7007-v4l2.c
82
switch (go->standard) {
drivers/media/usb/go7007/go7007-v4l2.c
93
*width = go->board_info->sensor_width;
drivers/media/usb/go7007/go7007-v4l2.c
94
*height = go->board_info->sensor_height;
drivers/media/usb/go7007/go7007-v4l2.c
99
static void set_formatting(struct go7007 *go)
drivers/media/usb/go7007/s2250-board.c
131
static int go7007_usb_vendor_request(struct go7007 *go, u16 request,
drivers/media/usb/go7007/s2250-board.c
134
struct go7007_usb *usb = go->hpi_context;
drivers/media/usb/go7007/s2250-board.c
153
struct go7007 *go = i2c_get_adapdata(client->adapter);
drivers/media/usb/go7007/s2250-board.c
159
if (go == NULL)
drivers/media/usb/go7007/s2250-board.c
162
if (go->status == STATUS_SHUTDOWN)
drivers/media/usb/go7007/s2250-board.c
169
usb = go->hpi_context;
drivers/media/usb/go7007/s2250-board.c
175
rc = go7007_usb_vendor_request(go, 0x55, dev_addr,
drivers/media/usb/go7007/s2250-board.c
187
struct go7007 *go = i2c_get_adapdata(client->adapter);
drivers/media/usb/go7007/s2250-board.c
193
if (go == NULL)
drivers/media/usb/go7007/s2250-board.c
196
if (go->status == STATUS_SHUTDOWN)
drivers/media/usb/go7007/s2250-board.c
208
usb = go->hpi_context;
drivers/media/usb/go7007/s2250-board.c
214
rc = go7007_usb_vendor_request(go, 0x57, addr, val, buf, 16, 1);
drivers/media/usb/go7007/s2250-board.c
251
struct go7007 *go = i2c_get_adapdata(client->adapter);
drivers/media/usb/go7007/s2250-board.c
256
if (go == NULL)
drivers/media/usb/go7007/s2250-board.c
259
if (go->status == STATUS_SHUTDOWN)
drivers/media/usb/go7007/s2250-board.c
270
usb = go->hpi_context;
drivers/media/usb/go7007/s2250-board.c
276
rc = go7007_usb_vendor_request(go, 0x58, addr, 0, buf, 16, 1);
drivers/media/usb/go7007/s2250-board.c
504
struct go7007 *go = i2c_get_adapdata(adapter);
drivers/media/usb/go7007/s2250-board.c
505
struct go7007_usb *usb = go->hpi_context;
drivers/media/usb/go7007/s2250-board.c
573
int rc = go7007_usb_vendor_request(go, 0x41, 0, 0,
drivers/media/usb/go7007/s2250-board.c
583
go7007_usb_vendor_request(go, 0x40, 0,
drivers/media/usb/go7007/snd-go7007.c
101
struct go7007 *go = snd_pcm_substream_chip(substream);
drivers/media/usb/go7007/snd-go7007.c
103
go->audio_deliver = parse_audio_stream_data;
drivers/media/usb/go7007/snd-go7007.c
109
struct go7007 *go = snd_pcm_substream_chip(substream);
drivers/media/usb/go7007/snd-go7007.c
111
go->audio_deliver = NULL;
drivers/media/usb/go7007/snd-go7007.c
117
struct go7007 *go = snd_pcm_substream_chip(substream);
drivers/media/usb/go7007/snd-go7007.c
118
struct go7007_snd *gosnd = go->snd_context;
drivers/media/usb/go7007/snd-go7007.c
135
struct go7007 *go = snd_pcm_substream_chip(substream);
drivers/media/usb/go7007/snd-go7007.c
136
struct go7007_snd *gosnd = go->snd_context;
drivers/media/usb/go7007/snd-go7007.c
149
struct go7007 *go = snd_pcm_substream_chip(substream);
drivers/media/usb/go7007/snd-go7007.c
150
struct go7007_snd *gosnd = go->snd_context;
drivers/media/usb/go7007/snd-go7007.c
169
struct go7007 *go = snd_pcm_substream_chip(substream);
drivers/media/usb/go7007/snd-go7007.c
170
struct go7007_snd *gosnd = go->snd_context;
drivers/media/usb/go7007/snd-go7007.c
187
struct go7007 *go = device->device_data;
drivers/media/usb/go7007/snd-go7007.c
189
kfree(go->snd_context);
drivers/media/usb/go7007/snd-go7007.c
190
go->snd_context = NULL;
drivers/media/usb/go7007/snd-go7007.c
198
int go7007_snd_init(struct go7007 *go)
drivers/media/usb/go7007/snd-go7007.c
216
ret = snd_card_new(go->dev, index[dev], id[dev], THIS_MODULE, 0,
drivers/media/usb/go7007/snd-go7007.c
221
ret = snd_device_new(gosnd->card, SNDRV_DEV_LOWLEVEL, go,
drivers/media/usb/go7007/snd-go7007.c
231
strscpy(gosnd->card->shortname, go->name, sizeof(gosnd->card->shortname));
drivers/media/usb/go7007/snd-go7007.c
235
gosnd->pcm->private_data = go;
drivers/media/usb/go7007/snd-go7007.c
246
go->snd_context = gosnd;
drivers/media/usb/go7007/snd-go7007.c
247
v4l2_device_get(&go->v4l2_dev);
drivers/media/usb/go7007/snd-go7007.c
260
int go7007_snd_remove(struct go7007 *go)
drivers/media/usb/go7007/snd-go7007.c
262
struct go7007_snd *gosnd = go->snd_context;
drivers/media/usb/go7007/snd-go7007.c
266
v4l2_device_put(&go->v4l2_dev);
drivers/media/usb/go7007/snd-go7007.c
64
static void parse_audio_stream_data(struct go7007 *go, u8 *buf, int length)
drivers/media/usb/go7007/snd-go7007.c
66
struct go7007_snd *gosnd = go->snd_context;
drivers/misc/hpilo.c
194
int active = 0, go = 1;
drivers/misc/hpilo.c
199
go << CTRL_BITPOS_G;
drivers/net/wireless/ath/ath5k/phy.c
487
const struct ath5k_gain_opt *go;
drivers/net/wireless/ath/ath5k/phy.c
496
go = &rfgain_opt_5112;
drivers/net/wireless/ath/ath5k/phy.c
500
g_step = &go->go_step[ah->ah_gain.g_step_idx];
drivers/net/wireless/ath/ath5k/phy.c
606
const struct ath5k_gain_opt *go;
drivers/net/wireless/ath/ath5k/phy.c
612
go = &rfgain_opt_5111;
drivers/net/wireless/ath/ath5k/phy.c
615
go = &rfgain_opt_5112;
drivers/net/wireless/ath/ath5k/phy.c
621
g_step = &go->go_step[ah->ah_gain.g_step_idx];
drivers/net/wireless/ath/ath5k/phy.c
632
g_step = &go->go_step[ah->ah_gain.g_step_idx])
drivers/net/wireless/ath/ath5k/phy.c
634
(go->go_step[--(ah->ah_gain.g_step_idx)].gos_gain -
drivers/net/wireless/ath/ath5k/phy.c
644
if (ah->ah_gain.g_step_idx == (go->go_steps_count - 1))
drivers/net/wireless/ath/ath5k/phy.c
649
ah->ah_gain.g_step_idx < go->go_steps_count - 1;
drivers/net/wireless/ath/ath5k/phy.c
650
g_step = &go->go_step[ah->ah_gain.g_step_idx])
drivers/net/wireless/ath/ath5k/phy.c
652
(go->go_step[++ah->ah_gain.g_step_idx].gos_gain -
drivers/net/wireless/ath/ath5k/phy.c
817
const struct ath5k_gain_opt *go = NULL;
drivers/net/wireless/ath/ath5k/phy.c
830
go = &rfgain_opt_5111;
drivers/net/wireless/ath/ath5k/phy.c
844
go = &rfgain_opt_5112;
drivers/net/wireless/ath/ath5k/phy.c
965
g_step = &go->go_step[ah->ah_gain.g_step_idx];
drivers/net/wireless/intel/iwlwifi/fw/api/mac.h
344
struct iwl_mac_data_go go;
drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c
1341
iwl_mvm_mac_ctxt_cmd_fill_ap(mvm, vif, &cmd, &cmd.go.ap,
drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c
1344
cmd.go.ctwin = cpu_to_le32(noa->oppps_ctwindow &
drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c
1346
cmd.go.opp_ps_enabled =
drivers/perf/xgene_pmu.c
488
XGENE_PMU_EVENT_ATTR(glbl-ack-go-recv-for-rd-sent-to-spec-mcu, 0x0b),
drivers/perf/xgene_pmu.c
490
XGENE_PMU_EVENT_ATTR(glbl-ack-go-recv-any-rd-req, 0x0d),
drivers/perf/xgene_pmu.c
491
XGENE_PMU_EVENT_ATTR(glbl-ack-go-recv-any-rd-req-2, 0x0e),
drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c
658
struct dev_pm_opp_data *go = mfg->gpu_opps;
drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c
669
if (i >= mfg->num_stack_opps || go[i].freq < so[i].freq)
drivers/pmdomain/mediatek/mtk-mfg-pmdomain.c
670
o = &go[i];
drivers/s390/char/sclp_early_core.c
126
go = &mdb->go;
drivers/s390/char/sclp_early_core.c
127
go->length = sizeof(*go);
drivers/s390/char/sclp_early_core.c
128
go->type = 1;
drivers/s390/char/sclp_early_core.c
95
struct go *go;
drivers/s390/char/sclp_rw.c
111
go = &mdb->go;
drivers/s390/char/sclp_rw.c
112
go->length = sizeof(struct go);
drivers/s390/char/sclp_rw.c
113
go->type = 1;
drivers/s390/char/sclp_rw.c
217
buffer->current_msg->mdb.go.general_msg_flags |=
drivers/s390/char/sclp_rw.c
88
struct go *go;
drivers/s390/char/sclp_rw.h
48
struct go go;
drivers/scsi/sym53c8xx_2/sym_fw2.h
1019
offsetof(struct sym_ccb, phys.head.go.restart),
drivers/scsi/sym53c8xx_2/sym_fw2.h
988
offsetof(struct sym_ccb, phys.head.go.restart),
drivers/scsi/sym53c8xx_2/sym_hipd.c
3157
cp->phys.head.go.start = cpu_to_scr(SCRIPTA_BA(np, select));
drivers/scsi/sym53c8xx_2/sym_hipd.c
4902
cp->phys.head.go.start = cpu_to_scr(SCRIPTA_BA(np, idle));
drivers/scsi/sym53c8xx_2/sym_hipd.c
4903
cp->phys.head.go.restart = cpu_to_scr(SCRIPTB_BA(np, bad_i_t_l));
drivers/scsi/sym53c8xx_2/sym_hipd.c
5227
cp->phys.head.go.start = cpu_to_scr(SCRIPTA_BA(np, select));
drivers/scsi/sym53c8xx_2/sym_hipd.c
5228
cp->phys.head.go.restart = cpu_to_scr(SCRIPTA_BA(np, resel_dsa));
drivers/scsi/sym53c8xx_2/sym_hipd.h
639
/*0*/ struct sym_actscr go;
drivers/video/console/newport_con.c
125
npregs->go.hostrw0 = *data++ << 24;
drivers/video/console/newport_con.c
146
npregs->go.xyendi = (xend << 16) | yend;
drivers/video/console/newport_con.c
55
(regs)->go.zpattern = BMASK((cp)[0x0]); (regs)->go.zpattern = BMASK((cp)[0x1]); \
drivers/video/console/newport_con.c
56
(regs)->go.zpattern = BMASK((cp)[0x2]); (regs)->go.zpattern = BMASK((cp)[0x3]); \
drivers/video/console/newport_con.c
57
(regs)->go.zpattern = BMASK((cp)[0x4]); (regs)->go.zpattern = BMASK((cp)[0x5]); \
drivers/video/console/newport_con.c
58
(regs)->go.zpattern = BMASK((cp)[0x6]); (regs)->go.zpattern = BMASK((cp)[0x7]); \
drivers/video/console/newport_con.c
59
(regs)->go.zpattern = BMASK((cp)[0x8]); (regs)->go.zpattern = BMASK((cp)[0x9]); \
drivers/video/console/newport_con.c
60
(regs)->go.zpattern = BMASK((cp)[0xa]); (regs)->go.zpattern = BMASK((cp)[0xb]); \
drivers/video/console/newport_con.c
61
(regs)->go.zpattern = BMASK((cp)[0xc]); (regs)->go.zpattern = BMASK((cp)[0xd]); \
drivers/video/console/newport_con.c
62
(regs)->go.zpattern = BMASK((cp)[0xe]); (regs)->go.zpattern = BMASK((cp)[0xf]); \
drivers/video/console/newport_con.c
79
npregs->go.xyendi =
include/video/newport.h
289
struct newport_rexregs go;
kernel/locking/test-ww_mutex.c
32
struct completion ready, go, done;
kernel/locking/test-ww_mutex.c
46
wait_for_completion(&mtx->go);
kernel/locking/test-ww_mutex.c
71
init_completion(&mtx.go);
kernel/locking/test-ww_mutex.c
79
complete(&mtx.go);
kernel/power/swap.c
1150
wait_queue_head_t go; /* start decompression */
kernel/power/swap.c
1163
wait_event(d->go, atomic_read_acquire(&d->ready) ||
kernel/power/swap.c
1248
init_waitqueue_head(&data[thr].go);
kernel/power/swap.c
1279
init_waitqueue_head(&crc->go);
kernel/power/swap.c
1416
wake_up(&data[thr].go);
kernel/power/swap.c
1466
wake_up(&crc->go);
kernel/power/swap.c
1474
wake_up(&crc->go);
kernel/power/swap.c
569
wait_queue_head_t go; /* start crc update */
kernel/power/swap.c
620
wait_event(d->go, atomic_read_acquire(&d->ready) ||
kernel/power/swap.c
649
wait_queue_head_t go; /* start compression */
kernel/power/swap.c
665
wait_event(d->go, atomic_read_acquire(&d->ready) ||
kernel/power/swap.c
744
init_waitqueue_head(&data[thr].go);
kernel/power/swap.c
775
init_waitqueue_head(&crc->go);
kernel/power/swap.c
831
wake_up(&data[thr].go);
kernel/power/swap.c
839
wake_up(&crc->go);
kernel/trace/trace_selftest.c
1419
int go;
kernel/trace/trace_selftest.c
1440
while (!x->go) {
kernel/trace/trace_selftest.c
1503
data.go = 1;
sound/pci/trident/trident_main.c
1489
unsigned int val, go;
sound/pci/trident/trident_main.c
1495
go = 1;
sound/pci/trident/trident_main.c
1500
go = 0;
sound/pci/trident/trident_main.c
1518
if (go)
sound/pci/trident/trident_main.c
1521
if (go) {
sound/pci/trident/trident_main.c
1538
if (!go)
sound/pci/trident/trident_main.c
1547
if (!go)
sound/pci/trident/trident_main.c
1550
if (go) {
sound/pci/trident/trident_main.c
1556
if (go) {
tools/perf/tests/mmap-thread-lookup.c
59
int go = 0;
tools/perf/tests/mmap-thread-lookup.c
65
ret = write(td->ready[1], &go, sizeof(int));
tools/perf/tests/mmap-thread-lookup.c
83
int err, go;
tools/perf/tests/mmap-thread-lookup.c
91
ssize_t ret = read(td->ready[0], &go, sizeof(int));
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
109
if (pipe(child->go))
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
149
err = read(child->go[0], &c, 1);
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
167
if (pipe(child->go))
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
171
close(child->go[0]);
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
172
close(child->go[1]);
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
181
close(child->go[0]);
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
182
close(child->go[1]);
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
49
int go[2];
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
63
close(child->go[1]);
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
64
close(child->go[0]);
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
80
write(child->go[1], &c, 1);
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
91
close(child->go[1]);
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
94
err = read(child->go[0], &c, 1);
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
289
int pid, status, err, go[2], c = 0;
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
292
if (!ASSERT_OK(pipe(go), "pipe"))
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
305
close(go[1]);
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
308
err = read(go[0], &c, 1);
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
326
write(go[1], &c, 1);
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
339
close(go[1]);
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c
340
close(go[0]);