/drivers/media/pci/saa7134/ |
D | saa7134-reg.h | 210 #define SAA7134_TASK_CONDITIONS(t) (0x000 +t) argument 211 #define SAA7134_FIELD_HANDLING(t) (0x001 +t) argument 212 #define SAA7134_DATA_PATH(t) (0x002 +t) argument 213 #define SAA7134_VBI_H_START1(t) (0x004 +t) argument 214 #define SAA7134_VBI_H_START2(t) (0x005 +t) argument 215 #define SAA7134_VBI_H_STOP1(t) (0x006 +t) argument 216 #define SAA7134_VBI_H_STOP2(t) (0x007 +t) argument 217 #define SAA7134_VBI_V_START1(t) (0x008 +t) argument 218 #define SAA7134_VBI_V_START2(t) (0x009 +t) argument 219 #define SAA7134_VBI_V_STOP1(t) (0x00a +t) argument [all …]
|
/drivers/scsi/esas2r/ |
D | esas2r_targdb.c | 48 struct esas2r_target *t; in esas2r_targ_db_initialize() local 50 for (t = a->targetdb; t < a->targetdb_end; t++) { in esas2r_targ_db_initialize() 51 memset(t, 0, sizeof(struct esas2r_target)); in esas2r_targ_db_initialize() 53 t->target_state = TS_NOT_PRESENT; in esas2r_targ_db_initialize() 54 t->buffered_target_state = TS_NOT_PRESENT; in esas2r_targ_db_initialize() 55 t->new_target_state = TS_INVALID; in esas2r_targ_db_initialize() 61 struct esas2r_target *t; in esas2r_targ_db_remove_all() local 64 for (t = a->targetdb; t < a->targetdb_end; t++) { in esas2r_targ_db_remove_all() 65 if (t->target_state != TS_PRESENT) in esas2r_targ_db_remove_all() 69 esas2r_targ_db_remove(a, t); in esas2r_targ_db_remove_all() [all …]
|
/drivers/media/v4l2-core/ |
D | tuner-core.c | 89 i2c_adapter_id(t->i2c->adapter), t->i2c->addr 240 struct tuner *t = fe->analog_demod_priv; in fe_set_params() local 260 struct tuner *t = fe->analog_demod_priv; in fe_set_config() local 301 struct tuner *t = to_tuner(i2c_get_clientdata(c)); in set_type() local 302 struct dvb_tuner_ops *fe_tuner_ops = &t->fe.ops.tuner_ops; in set_type() 303 struct analog_demod_ops *analog_ops = &t->fe.ops.analog_ops; in set_type() 312 t->type = type; in set_type() 313 t->config = new_config; in set_type() 316 t->fe.callback = tuner_callback; in set_type() 320 tuner_detach(&t->fe); in set_type() [all …]
|
/drivers/staging/greybus/tools/ |
D | loopback_test.c | 105 struct loopback_test t; variable 108 static inline int device_enabled(struct loopback_test *t, int dev_idx); 111 static int get_##field##_aggregate(struct loopback_test *t) \ 115 for (i = 0; i < t->device_count; i++) { \ 116 if (!device_enabled(t, i)) \ 118 if (t->devices[i].results.field > max) \ 119 max = t->devices[i].results.field; \ 125 static int get_##field##_aggregate(struct loopback_test *t) \ 129 for (i = 0; i < t->device_count; i++) { \ 130 if (!device_enabled(t, i)) \ [all …]
|
/drivers/clocksource/ |
D | timer-ti-dm-systimer.c | 55 struct dmtimer_systimer t; member 61 struct dmtimer_systimer t; member 66 static bool dmtimer_systimer_revision1(struct dmtimer_systimer *t) in dmtimer_systimer_revision1() argument 68 u32 tidr = readl_relaxed(t->base); in dmtimer_systimer_revision1() 73 static void dmtimer_systimer_enable(struct dmtimer_systimer *t) in dmtimer_systimer_enable() argument 77 if (dmtimer_systimer_revision1(t)) in dmtimer_systimer_enable() 82 writel_relaxed(val, t->base + t->sysc); in dmtimer_systimer_enable() 85 static void dmtimer_systimer_disable(struct dmtimer_systimer *t) in dmtimer_systimer_disable() argument 87 if (!dmtimer_systimer_revision1(t)) in dmtimer_systimer_disable() 90 writel_relaxed(DMTIMER_TYPE1_DISABLE, t->base + t->sysc); in dmtimer_systimer_disable() [all …]
|
/drivers/md/ |
D | dm-table.c | 57 static inline sector_t *get_node(struct dm_table *t, in get_node() argument 60 return t->index[l] + (n * KEYS_PER_NODE); in get_node() 67 static sector_t high(struct dm_table *t, unsigned int l, unsigned int n) in high() argument 69 for (; l < t->depth - 1; l++) in high() 72 if (n >= t->counts[l]) in high() 75 return get_node(t, l, n)[KEYS_PER_NODE - 1]; in high() 82 static int setup_btree_index(unsigned int l, struct dm_table *t) in setup_btree_index() argument 87 for (n = 0U; n < t->counts[l]; n++) { in setup_btree_index() 88 node = get_node(t, l, n); in setup_btree_index() 91 node[k] = high(t, l + 1, get_child(n, k)); in setup_btree_index() [all …]
|
D | dm-cache-policy.c | 22 struct dm_cache_policy_type *t; in __find_policy() local 24 list_for_each_entry(t, ®ister_list, list) in __find_policy() 25 if (!strcmp(t->name, name)) in __find_policy() 26 return t; in __find_policy() 33 struct dm_cache_policy_type *t = __find_policy(name); in __get_policy_once() local 35 if (t && !try_module_get(t->owner)) { in __get_policy_once() 37 t = ERR_PTR(-EINVAL); in __get_policy_once() 40 return t; in __get_policy_once() 45 struct dm_cache_policy_type *t; in get_policy_once() local 48 t = __get_policy_once(name); in get_policy_once() [all …]
|
D | dm-user.c | 93 struct target *t; member 194 static inline bool is_user_space_thread_present(struct target *t) in is_user_space_thread_present() argument 196 lockdep_assert_held(&t->lock); in is_user_space_thread_present() 197 return (kref_read(&t->references) > 1); in is_user_space_thread_present() 205 struct target *t = msg->t; in process_delayed_work() local 207 mutex_lock(&t->lock); in process_delayed_work() 212 if (is_user_space_thread_present(t)) { in process_delayed_work() 213 mutex_unlock(&t->lock); in process_delayed_work() 223 t->miscdev.name); in process_delayed_work() 224 message_kill(msg, &t->message_pool); in process_delayed_work() [all …]
|
/drivers/md/bcache/ |
D | bset.c | 294 struct bset_tree *t = b->set; in bch_btree_keys_free() local 297 kfree(t->prev); in bch_btree_keys_free() 299 free_pages((unsigned long) t->prev, in bch_btree_keys_free() 303 kfree(t->tree); in bch_btree_keys_free() 305 free_pages((unsigned long) t->tree, in bch_btree_keys_free() 308 free_pages((unsigned long) t->data, b->page_order); in bch_btree_keys_free() 310 t->prev = NULL; in bch_btree_keys_free() 311 t->tree = NULL; in bch_btree_keys_free() 312 t->data = NULL; in bch_btree_keys_free() 319 struct bset_tree *t = b->set; in bch_btree_keys_alloc() local [all …]
|
/drivers/media/pci/bt8xx/ |
D | bttv-audio-hook.c | 55 void gvbctv3pci_audio(struct bttv *btv, struct v4l2_tuner *t, int set) in gvbctv3pci_audio() argument 61 t->audmode = V4L2_TUNER_MODE_LANG1; in gvbctv3pci_audio() 62 t->rxsubchans = V4L2_TUNER_SUB_MONO | in gvbctv3pci_audio() 71 switch (t->audmode) { in gvbctv3pci_audio() 86 void gvbctv5pci_audio(struct bttv *btv, struct v4l2_tuner *t, int set) in gvbctv5pci_audio() argument 95 switch (t->audmode) { in gvbctv5pci_audio() 114 t->rxsubchans = V4L2_TUNER_SUB_LANG1 | V4L2_TUNER_SUB_LANG2; in gvbctv5pci_audio() 115 t->audmode = V4L2_TUNER_MODE_LANG1_LANG2; in gvbctv5pci_audio() 118 t->rxsubchans = V4L2_TUNER_SUB_LANG2; in gvbctv5pci_audio() 119 t->audmode = V4L2_TUNER_MODE_LANG1_LANG2; in gvbctv5pci_audio() [all …]
|
/drivers/ata/ |
D | libata-pata-timings.c | 60 static void ata_timing_quantize(const struct ata_timing *t, in ata_timing_quantize() argument 63 q->setup = EZ(t->setup, T); in ata_timing_quantize() 64 q->act8b = EZ(t->act8b, T); in ata_timing_quantize() 65 q->rec8b = EZ(t->rec8b, T); in ata_timing_quantize() 66 q->cyc8b = EZ(t->cyc8b, T); in ata_timing_quantize() 67 q->active = EZ(t->active, T); in ata_timing_quantize() 68 q->recover = EZ(t->recover, T); in ata_timing_quantize() 69 q->dmack_hold = EZ(t->dmack_hold, T); in ata_timing_quantize() 70 q->cycle = EZ(t->cycle, T); in ata_timing_quantize() 71 q->udma = EZ(t->udma, UT); in ata_timing_quantize() [all …]
|
/drivers/iio/ |
D | industrialio-sw-trigger.c | 32 struct iio_sw_trigger_type *t = NULL, *iter; in __iio_find_sw_trigger_type() local 36 t = iter; in __iio_find_sw_trigger_type() 40 return t; in __iio_find_sw_trigger_type() 43 int iio_register_sw_trigger_type(struct iio_sw_trigger_type *t) in iio_register_sw_trigger_type() argument 49 iter = __iio_find_sw_trigger_type(t->name, strlen(t->name)); in iio_register_sw_trigger_type() 53 list_add_tail(&t->list, &iio_trigger_types_list); in iio_register_sw_trigger_type() 59 t->group = configfs_register_default_group(iio_triggers_group, t->name, in iio_register_sw_trigger_type() 61 if (IS_ERR(t->group)) { in iio_register_sw_trigger_type() 63 list_del(&t->list); in iio_register_sw_trigger_type() 65 ret = PTR_ERR(t->group); in iio_register_sw_trigger_type() [all …]
|
/drivers/gpu/drm/i915/gem/selftests/ |
D | i915_gem_client_blt.c | 152 static int prepare_blit(const struct tiled_blits *t, in prepare_blit() argument 187 src_pitch = t->width * 4; in prepare_blit() 193 dst_pitch = t->width * 4; in prepare_blit() 202 *cs++ = t->height << 16 | t->width; in prepare_blit() 220 static void tiled_blits_destroy_buffers(struct tiled_blits *t) in tiled_blits_destroy_buffers() argument 224 for (i = 0; i < ARRAY_SIZE(t->buffers); i++) in tiled_blits_destroy_buffers() 225 i915_vma_put(t->buffers[i].vma); in tiled_blits_destroy_buffers() 227 i915_vma_put(t->scratch.vma); in tiled_blits_destroy_buffers() 228 i915_vma_put(t->batch); in tiled_blits_destroy_buffers() 232 __create_vma(struct tiled_blits *t, size_t size, bool lmem) in __create_vma() argument [all …]
|
/drivers/ide/ |
D | ide-timings.c | 59 struct ide_timing *t; in ide_timing_find_mode() local 61 for (t = ide_timing; t->mode != speed; t++) in ide_timing_find_mode() 62 if (t->mode == 0xff) in ide_timing_find_mode() 64 return t; in ide_timing_find_mode() 71 struct ide_timing *t = ide_timing_find_mode(XFER_PIO_0 + pio); in ide_pio_cycle_time() local 81 if (pio < 3 && cycle < t->cycle) in ide_pio_cycle_time() 89 return cycle ? cycle : t->cycle; in ide_pio_cycle_time() 96 static void ide_timing_quantize(struct ide_timing *t, struct ide_timing *q, in ide_timing_quantize() argument 99 q->setup = EZ(t->setup, T); in ide_timing_quantize() 100 q->act8b = EZ(t->act8b, T); in ide_timing_quantize() [all …]
|
/drivers/net/wireless/mediatek/mt76/mt76x2/ |
D | eeprom.c | 292 void mt76x2_get_rate_power(struct mt76x02_dev *dev, struct mt76_rate_power *t, in mt76x2_get_rate_power() argument 300 memset(t, 0, sizeof(*t)); in mt76x2_get_rate_power() 303 t->cck[0] = t->cck[1] = mt76x02_rate_power_val(val); in mt76x2_get_rate_power() 304 t->cck[2] = t->cck[3] = mt76x02_rate_power_val(val >> 8); in mt76x2_get_rate_power() 310 t->ofdm[0] = t->ofdm[1] = mt76x02_rate_power_val(val); in mt76x2_get_rate_power() 311 t->ofdm[2] = t->ofdm[3] = mt76x02_rate_power_val(val >> 8); in mt76x2_get_rate_power() 317 t->ofdm[4] = t->ofdm[5] = mt76x02_rate_power_val(val); in mt76x2_get_rate_power() 318 t->ofdm[6] = t->ofdm[7] = mt76x02_rate_power_val(val >> 8); in mt76x2_get_rate_power() 321 t->ht[0] = t->ht[1] = mt76x02_rate_power_val(val); in mt76x2_get_rate_power() 322 t->ht[2] = t->ht[3] = mt76x02_rate_power_val(val >> 8); in mt76x2_get_rate_power() [all …]
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | cxgb3_defs.h | 47 static inline union active_open_entry *atid2entry(const struct tid_info *t, in atid2entry() argument 50 return &t->atid_tab[atid - t->atid_base]; in atid2entry() 53 static inline union listen_entry *stid2entry(const struct tid_info *t, in stid2entry() argument 56 return &t->stid_tab[stid - t->stid_base]; in stid2entry() 62 static inline struct t3c_tid_entry *lookup_tid(const struct tid_info *t, in lookup_tid() argument 65 struct t3c_tid_entry *t3c_tid = tid < t->ntids ? in lookup_tid() 66 &(t->tid_tab[tid]) : NULL; in lookup_tid() 74 static inline struct t3c_tid_entry *lookup_stid(const struct tid_info *t, in lookup_stid() argument 79 if (tid < t->stid_base || tid >= t->stid_base + t->nstids) in lookup_stid() 82 e = stid2entry(t, tid); in lookup_stid() [all …]
|
/drivers/block/aoe/ |
D | aoecmd.c | 129 aoehdr_atainit(struct aoedev *d, struct aoetgt *t, struct aoe_hdr *h) in aoehdr_atainit() argument 133 memcpy(h->src, t->ifp->nd->dev_addr, sizeof h->src); in aoehdr_atainit() 134 memcpy(h->dst, t->addr, sizeof h->dst); in aoehdr_atainit() 157 ifrotate(struct aoetgt *t) in ifrotate() argument 161 ifp = t->ifp; in ifrotate() 163 if (ifp >= &t->ifs[NAOEIFS] || ifp->nd == NULL) in ifrotate() 164 ifp = t->ifs; in ifrotate() 167 return t->ifp = ifp; in ifrotate() 195 struct aoetgt *t; in aoe_freetframe() local 197 t = f->t; in aoe_freetframe() [all …]
|
/drivers/misc/cb710/ |
D | debug.c | 29 #define CB710_READ_REGS_TEMPLATE(t) \ argument 30 static void cb710_read_regs_##t(void __iomem *iobase, \ 31 u##t *reg, unsigned select) \ 35 for (i = 0; i < ARRAY_SIZE(allow); ++i, reg += 16/(t/8)) { \ 39 for (j = 0; j < 0x10/(t/8); ++j) { \ 40 if (!allow_reg_read(i, j, t)) \ 42 reg[j] = ioread##t(iobase \ 43 + (i << 4) + (j * (t/8))); \ 53 #define CB710_DUMP_REGS_TEMPLATE(t) \ argument 54 static void cb710_dump_regs_##t(struct device *dev, \ [all …]
|
/drivers/media/usb/pvrusb2/ |
D | pvrusb2-util.h | 9 #define PVR2_DECOMPOSE_LE(t,i,d) \ argument 11 (t)[i] = (d) & 0xff;\ 12 (t)[i+1] = ((d) >> 8) & 0xff;\ 13 (t)[i+2] = ((d) >> 16) & 0xff;\ 14 (t)[i+3] = ((d) >> 24) & 0xff;\ 17 #define PVR2_DECOMPOSE_BE(t,i,d) \ argument 19 (t)[i+3] = (d) & 0xff;\ 20 (t)[i+2] = ((d) >> 8) & 0xff;\ 21 (t)[i+1] = ((d) >> 16) & 0xff;\ 22 (t)[i] = ((d) >> 24) & 0xff;\ [all …]
|
/drivers/media/dvb-frontends/ |
D | lgs8gxx.c | 104 u8 t; in wait_reg_mask() local 108 lgs8gxx_read_reg(priv, reg, &t); in wait_reg_mask() 110 if ((t & mask) == val) in wait_reg_mask() 182 u8 reg_addr, t; in lgs8gxx_get_afc_phase() local 191 lgs8gxx_read_reg(priv, reg_addr, &t); in lgs8gxx_get_afc_phase() 193 v32 |= t; in lgs8gxx_get_afc_phase() 206 u8 t; in lgs8gxx_set_mode_auto() local 213 lgs8gxx_read_reg(priv, 0x0C, &t); in lgs8gxx_set_mode_auto() 214 t &= (~0x04); in lgs8gxx_set_mode_auto() 215 lgs8gxx_write_reg(priv, 0x0C, t | 0x80); in lgs8gxx_set_mode_auto() [all …]
|
/drivers/gpu/drm/radeon/ |
D | mkregtable.c | 131 static void table_offset_add(struct table *t, struct offset *offset) in table_offset_add() argument 133 list_add_tail(&offset->list, &t->offsets); in table_offset_add() 136 static void table_init(struct table *t) in table_init() argument 138 INIT_LIST_HEAD(&t->offsets); in table_init() 139 t->offset_max = 0; in table_init() 140 t->nentry = 0; in table_init() 141 t->table = NULL; in table_init() 144 static void table_print(struct table *t) in table_print() argument 148 nlloop = (t->nentry + 3) / 4; in table_print() 149 c = t->nentry; in table_print() [all …]
|
/drivers/staging/fieldbus/anybuss/ |
D | host.c | 248 struct ab_task *t); 283 struct ab_task *t; in ab_task_create_get() local 285 t = kmem_cache_alloc(cache, GFP_KERNEL); in ab_task_create_get() 286 if (!t) in ab_task_create_get() 288 t->cache = cache; in ab_task_create_get() 289 kref_init(&t->refcount); in ab_task_create_get() 290 t->task_fn = task_fn; in ab_task_create_get() 291 t->done_fn = NULL; in ab_task_create_get() 292 t->result = 0; in ab_task_create_get() 293 init_completion(&t->done); in ab_task_create_get() [all …]
|
/drivers/parport/ |
D | procfs.c | 479 struct parport_sysctl_table *t; in parport_proc_register() local 482 t = kmemdup(&parport_sysctl_template, sizeof(*t), GFP_KERNEL); in parport_proc_register() 483 if (t == NULL) in parport_proc_register() 486 t->device_dir[0].extra1 = port; in parport_proc_register() 489 t->vars[i].extra1 = port; in parport_proc_register() 491 t->vars[0].data = &port->spintime; in parport_proc_register() 492 t->vars[5].child = t->device_dir; in parport_proc_register() 495 t->vars[6 + i].extra2 = &port->probe_info[i]; in parport_proc_register() 497 t->port_dir[0].procname = port->name; in parport_proc_register() 499 t->port_dir[0].child = t->vars; in parport_proc_register() [all …]
|
/drivers/iio/trigger/ |
D | iio-trig-sysfs.c | 132 struct iio_sysfs_trig *t; in iio_sysfs_trigger_probe() local 137 list_for_each_entry(t, &iio_sysfs_trig_list, l) in iio_sysfs_trigger_probe() 138 if (id == t->id) { in iio_sysfs_trigger_probe() 146 t = kmalloc(sizeof(*t), GFP_KERNEL); in iio_sysfs_trigger_probe() 147 if (t == NULL) { in iio_sysfs_trigger_probe() 151 t->id = id; in iio_sysfs_trigger_probe() 152 t->trig = iio_trigger_alloc("sysfstrig%d", id); in iio_sysfs_trigger_probe() 153 if (!t->trig) { in iio_sysfs_trigger_probe() 158 t->trig->dev.groups = iio_sysfs_trigger_attr_groups; in iio_sysfs_trigger_probe() 159 t->trig->ops = &iio_sysfs_trigger_ops; in iio_sysfs_trigger_probe() [all …]
|
/drivers/net/wireless/mediatek/mt76/mt76x0/ |
D | eeprom.c | 154 struct mt76_rate_power *t) in mt76x0_get_tx_power_per_rate() argument 160 memset(t, 0, sizeof(*t)); in mt76x0_get_tx_power_per_rate() 164 t->cck[0] = t->cck[1] = s6_to_s8(val); in mt76x0_get_tx_power_per_rate() 165 t->cck[2] = t->cck[3] = s6_to_s8(val >> 8); in mt76x0_get_tx_power_per_rate() 170 t->ofdm[0] = t->ofdm[1] = s6_to_s8(val); in mt76x0_get_tx_power_per_rate() 171 t->ofdm[2] = t->ofdm[3] = s6_to_s8(val >> 8); in mt76x0_get_tx_power_per_rate() 176 t->ofdm[4] = t->ofdm[5] = s6_to_s8(val); in mt76x0_get_tx_power_per_rate() 177 t->ofdm[6] = t->ofdm[7] = s6_to_s8(val >> 8); in mt76x0_get_tx_power_per_rate() 182 t->ht[0] = t->ht[1] = t->vht[0] = t->vht[1] = s6_to_s8(val); in mt76x0_get_tx_power_per_rate() 183 t->ht[2] = t->ht[3] = t->vht[2] = t->vht[3] = s6_to_s8(val >> 8); in mt76x0_get_tx_power_per_rate() [all …]
|