Home
last modified time | relevance | path

Searched refs:zr (Results 1 – 18 of 18) sorted by relevance

/linux/drivers/media/pci/zoran/
H A Dzoran_device.c56 static void zr36057_init_vfe(struct zoran *zr) in zr36057_init_vfe() argument
84 void GPIO(struct zoran *zr, int bit, unsigned int value) in GPIO() argument
106 int post_office_wait(struct zoran *zr) in post_office_wait() argument
114 if ((por & ZR36057_POR_PO_TIME) && !zr->card.gws_not_connected) { in post_office_wait()
116 pci_info(zr->pci_dev, "pop timeout %08x\n", por); in post_office_wait()
123 int post_office_write(struct zoran *zr, unsigned int guest, in post_office_write() argument
133 return post_office_wait(zr); in post_office_write()
136 int post_office_read(struct zoran *zr, unsigned int guest, unsigned int reg) in post_office_read() argument
142 if (post_office_wait(zr) < 0) in post_office_read()
152 void jpeg_codec_sleep(struct zoran *zr, int sleep) in jpeg_codec_sleep() argument
[all …]
H A Dzoran_card.c100 struct zoran *zr = (struct zoran *)codec->master_data->data; in zr36060_read() local
103 if (post_office_wait(zr) || post_office_write(zr, 0, 1, reg >> 8) || in zr36060_read()
104 post_office_write(zr, 0, 2, reg & 0xff)) in zr36060_read()
107 data = post_office_read(zr, 0, 3) & 0xff; in zr36060_read()
113 struct zoran *zr = (struct zoran *)codec->master_data->data; in zr36060_write() local
115 if (post_office_wait(zr) || post_office_write(zr, 0, 1, reg >> 8) || in zr36060_write()
116 post_office_write(zr, 0, 2, reg & 0xff)) in zr36060_write()
119 post_office_write(zr, 0, 3, val & 0xff); in zr36060_write()
125 struct zoran *zr = (struct zoran *)codec->master_data->data; in zr36050_read() local
128 if (post_office_wait(zr) || post_office_write(zr, 1, 0, reg >> 2)) // reg. HIGHBYTES in zr36050_read()
[all …]
H A Dzoran_device.h16 void GPIO(struct zoran *zr, int bit, unsigned int value);
19 int post_office_wait(struct zoran *zr);
20 int post_office_write(struct zoran *zr, unsigned int guest, unsigned int reg,
22 int post_office_read(struct zoran *zr, unsigned int guest, unsigned int reg);
24 void jpeg_codec_sleep(struct zoran *zr, int sleep);
25 int jpeg_codec_reset(struct zoran *zr);
28 void zr36057_set_memgrab(struct zoran *zr, int mode);
29 int wait_grab_pending(struct zoran *zr);
32 void print_interrupts(struct zoran *zr);
33 void clear_interrupt_counters(struct zoran *zr);
[all …]
H A Dvideocodec.c40 struct zoran *zr; in videocodec_attach() local
50 zr = videocodec_master_to_zoran(master); in videocodec_attach()
52 zrdev_dbg(zr, "%s: '%s', flags %lx, magic %lx\n", __func__, in videocodec_attach()
56 zrdev_err(zr, "%s: no device available\n", __func__); in videocodec_attach()
64 zrdev_dbg(zr, "%s: try '%s'\n", __func__, h->codec->name); in videocodec_attach()
75 zrdev_dbg(zr, "%s: '%s'\n", __func__, codec->name); in videocodec_attach()
84 zrdev_dbg(zr, "videocodec: first element\n"); in videocodec_attach()
89 zrdev_dbg(zr, "videocodec: in after '%s'\n", in videocodec_attach()
101 zrdev_err(zr, "%s: no codec found!\n", __func__); in videocodec_attach()
112 struct zoran *zr; in videocodec_detach() local
[all …]
H A Dzr36016.c36 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36016_read() local
42 zrdev_err(zr, "%s: invalid I/O setup, nothing read!\n", ptr->name); in zr36016_read()
44 zrdev_dbg(zr, "%s: reading from 0x%04x: %02x\n", ptr->name, reg, value); in zr36016_read()
51 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36016_write() local
53 zrdev_dbg(zr, "%s: writing 0x%02x to 0x%04x\n", ptr->name, value, reg); in zr36016_write()
59 zrdev_err(zr, "%s: invalid I/O setup, nothing written!\n", ptr->name); in zr36016_write()
71 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36016_readi() local
78 zrdev_err(zr, "%s: invalid I/O setup, nothing read (i)!\n", ptr->name); in zr36016_readi()
81 zrdev_dbg(zr, "%s: reading indirect from 0x%04x: %02x\n", in zr36016_readi()
88 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36016_writei() local
[all …]
H A Dzr36050.c43 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36050_read() local
50 zrdev_err(zr, "%s: invalid I/O setup, nothing read!\n", ptr->name); in zr36050_read()
52 zrdev_dbg(zr, "%s: reading from 0x%04x: %02x\n", ptr->name, reg, value); in zr36050_read()
59 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36050_write() local
61 zrdev_dbg(zr, "%s: writing 0x%02x to 0x%04x\n", ptr->name, value, reg); in zr36050_write()
67 zrdev_err(zr, "%s: invalid I/O setup, nothing written!\n", in zr36050_write()
99 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36050_wait_end() local
105 zrdev_err(zr, in zr36050_wait_end()
120 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36050_basic_test() local
126 zrdev_err(zr, in zr36050_basic_test()
[all …]
H A Dzoran.h49 #define ZR_DEVNAME(zr) ((zr)->name) argument
51 #define BUZ_MAX_WIDTH (zr->timing->wa)
52 #define BUZ_MAX_HEIGHT (zr->timing->ha)
160 struct zoran *zr; member
196 void (*init)(struct zoran *zr);
305 #define btwrite(dat, adr) writel((dat), zr->zr36057_mem + (adr))
306 #define btread(adr) readl(zr->zr36057_mem + (adr))
317 #define zrdev_dbg(zr, format, args...) \ argument
318 pci_dbg((zr)->pci_dev, format, ##args) \
320 #define zrdev_err(zr, format, args...) \ argument
[all …]
H A Dzr36060.c44 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36060_read() local
50 zrdev_err(zr, "%s: invalid I/O setup, nothing read!\n", ptr->name); in zr36060_read()
57 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36060_write() local
59 zrdev_dbg(zr, "0x%02x @0x%04x\n", value, reg); in zr36060_write()
65 zrdev_err(zr, "%s: invalid I/O setup, nothing written!\n", ptr->name); in zr36060_write()
97 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36060_wait_end() local
103 zrdev_dbg(zr, in zr36060_wait_end()
114 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36060_basic_test() local
118 zrdev_err(zr, "%s: attach failed, can't connect to jpeg processor!\n", ptr->name); in zr36060_basic_test()
124 zrdev_err(zr, "%s: attach failed, jpeg processor failed (end flag)!\n", ptr->name); in zr36060_basic_test()
[all …]
H A Dzoran_card.h22 int zoran_check_jpg_settings(struct zoran *zr,
24 void zoran_open_init_params(struct zoran *zr);
H A Dvideocodec.h313 struct zoran *zr = master->data; in videocodec_master_to_zoran() local
315 return zr; in videocodec_master_to_zoran()
/linux/fs/ubifs/
H A Dtnc_misc.c30 struct ubifs_znode *zr, in ubifs_tnc_levelorder_next() argument
36 ubifs_assert(c, zr); in ubifs_tnc_levelorder_next()
39 return zr; in ubifs_tnc_levelorder_next()
41 if (unlikely(znode == zr)) { in ubifs_tnc_levelorder_next()
44 return ubifs_tnc_find_child(zr, 0); in ubifs_tnc_levelorder_next()
51 ubifs_assert(c, znode->level <= zr->level); in ubifs_tnc_levelorder_next()
57 while (znode->parent != zr && iip >= znode->parent->child_cnt) { in ubifs_tnc_levelorder_next()
62 if (unlikely(znode->parent == zr && in ubifs_tnc_levelorder_next()
77 znode = ubifs_tnc_find_child(zr, 0); in ubifs_tnc_levelorder_next()
H A Dubifs.h1890 struct ubifs_znode *zr,
1899 struct ubifs_znode *zr);
/linux/sound/soc/codecs/
H A Dwcd-mbhc-v2.h237 uint32_t *zl, uint32_t *zr);
285 uint32_t *zr);
332 uint32_t *zr) in wcd_mbhc_get_impedance() argument
335 *zr = 0; in wcd_mbhc_get_impedance()
H A Dwcd-mbhc-v2.c75 uint32_t zl, zr; member
307 mbhc->zl = mbhc->zr = 0; in wcd_mbhc_report_plug_removal()
326 mbhc->mbhc_cb->compute_impedance(mbhc->component, &mbhc->zl, &mbhc->zr); in wcd_mbhc_compute_impedance()
366 (mbhc->zr > mbhc->cfg->linein_th) && in wcd_mbhc_report_plug_insertion()
1411 int wcd_mbhc_get_impedance(struct wcd_mbhc *mbhc, uint32_t *zl, uint32_t *zr) in wcd_mbhc_get_impedance() argument
1414 *zr = mbhc->zr; in wcd_mbhc_get_impedance()
1416 if (*zl && *zr) in wcd_mbhc_get_impedance()
H A Dwcd938x.c2145 int32_t *zl, int32_t *zr, s16 *d1_a) in wcd938x_mbhc_zdet_ramp() argument
2177 if (!zr) in wcd938x_mbhc_zdet_ramp()
2188 *zr = zdet; in wcd938x_mbhc_zdet_ramp()
2212 uint32_t *zl, uint32_t *zr) in wcd938x_wcd_mbhc_calc_impedance() argument
2322 *zr = WCD938X_ZDET_FLOATING_IMPEDANCE; in wcd938x_wcd_mbhc_calc_impedance()
2324 *zr = z1R/1000; in wcd938x_wcd_mbhc_calc_impedance()
2325 wcd938x_wcd_mbhc_qfuse_cal(component, zr, 1); in wcd938x_wcd_mbhc_calc_impedance()
2328 __func__, *zr); in wcd938x_wcd_mbhc_calc_impedance()
2332 (*zr == WCD938X_ZDET_FLOATING_IMPEDANCE)) { in wcd938x_wcd_mbhc_calc_impedance()
2339 (*zr == WCD938X_ZDET_FLOATING_IMPEDANCE) || in wcd938x_wcd_mbhc_calc_impedance()
[all …]
H A Dwcd939x.c2108 s32 *zl, int32_t *zr) in wcd939x_mbhc_zdet_ramp() argument
2143 if (!zr) in wcd939x_mbhc_zdet_ramp()
2155 *zr = zdet; in wcd939x_mbhc_zdet_ramp()
2175 u32 *zl, uint32_t *zr) in wcd939x_wcd_mbhc_calc_impedance() argument
2232 *zr = WCD939X_ZDET_FLOATING_IMPEDANCE; in wcd939x_wcd_mbhc_calc_impedance()
2234 *zr = z1r / 1000; in wcd939x_wcd_mbhc_calc_impedance()
2235 wcd939x_wcd_mbhc_qfuse_cal(component, zr, 1); in wcd939x_wcd_mbhc_calc_impedance()
2238 __func__, *zr); in wcd939x_wcd_mbhc_calc_impedance()
2242 *zr == WCD939X_ZDET_FLOATING_IMPEDANCE) { in wcd939x_wcd_mbhc_calc_impedance()
2250 *zr == WCD939X_ZDET_FLOATING_IMPEDANCE || in wcd939x_wcd_mbhc_calc_impedance()
[all …]
H A Dwcd937x.c1595 s32 *zl, s32 *zr, s16 *d1_a) in wcd937x_mbhc_zdet_ramp() argument
1625 if (!zr) in wcd937x_mbhc_zdet_ramp()
1634 *zr = zdet; in wcd937x_mbhc_zdet_ramp()
1658 u32 *zl, u32 *zr) in wcd937x_wcd_mbhc_calc_impedance() argument
1766 *zr = WCD937X_ZDET_FLOATING_IMPEDANCE; in wcd937x_wcd_mbhc_calc_impedance()
1768 *zr = z1r / 1000; in wcd937x_wcd_mbhc_calc_impedance()
1769 wcd937x_wcd_mbhc_qfuse_cal(component, zr, 1); in wcd937x_wcd_mbhc_calc_impedance()
1774 (*zr == WCD937X_ZDET_FLOATING_IMPEDANCE)) { in wcd937x_wcd_mbhc_calc_impedance()
1781 (*zr == WCD937X_ZDET_FLOATING_IMPEDANCE) || in wcd937x_wcd_mbhc_calc_impedance()
1782 ((*zl < WCD_MONO_HS_MIN_THR) && (*zr > WCD_MONO_HS_MIN_THR)) || in wcd937x_wcd_mbhc_calc_impedance()
[all …]
H A Dwcd934x.c2697 int32_t *zl, int32_t *zr, s16 *d1_a) in wcd934x_mbhc_zdet_ramp() argument
2725 if (!zr) in wcd934x_mbhc_zdet_ramp()
2732 *zr = zdet; in wcd934x_mbhc_zdet_ramp()
2756 uint32_t *zl, uint32_t *zr) in wcd934x_wcd_mbhc_calc_impedance() argument
2855 *zr = WCD934X_ZDET_FLOATING_IMPEDANCE; in wcd934x_wcd_mbhc_calc_impedance()
2857 *zr = z1R/1000; in wcd934x_wcd_mbhc_calc_impedance()
2858 wcd934x_wcd_mbhc_qfuse_cal(component, zr, 1); in wcd934x_wcd_mbhc_calc_impedance()
2861 __func__, *zr); in wcd934x_wcd_mbhc_calc_impedance()
2865 (*zr == WCD934X_ZDET_FLOATING_IMPEDANCE)) { in wcd934x_wcd_mbhc_calc_impedance()
2872 (*zr == WCD934X_ZDET_FLOATING_IMPEDANCE) || in wcd934x_wcd_mbhc_calc_impedance()
[all …]