Home
last modified time | relevance | path

Searched refs:shared (Results 1 – 25 of 142) sorted by relevance

123456

/drivers/md/
Ddm-stats.c185 static int dm_stat_in_flight(struct dm_stat_shared *shared) in dm_stat_in_flight() argument
187 return atomic_read(&shared->in_flight[READ]) + in dm_stat_in_flight()
188 atomic_read(&shared->in_flight[WRITE]); in dm_stat_in_flight()
210 struct dm_stat_shared *shared; in dm_stats_cleanup() local
216 shared = &s->stat_shared[ni]; in dm_stats_cleanup()
217 if (WARN_ON(dm_stat_in_flight(shared))) { in dm_stats_cleanup()
224 atomic_read(&shared->in_flight[READ]), in dm_stats_cleanup()
225 atomic_read(&shared->in_flight[WRITE])); in dm_stats_cleanup()
482 static void dm_stat_round(struct dm_stat *s, struct dm_stat_shared *shared, in dm_stat_round() argument
496 difference = now - shared->stamp; in dm_stat_round()
[all …]
/drivers/video/fbdev/
Dpxa3xx-gcu.c100 struct pxa3xx_gcu_shared *shared; member
130 struct pxa3xx_gcu_shared *shared = priv->shared; \
142 shared->hw_running ? "running" : " idle", \
163 memset(priv->shared, 0, SHARED_SIZE); in pxa3xx_gcu_reset()
164 priv->shared->buffer_phys = priv->shared_phys; in pxa3xx_gcu_reset()
165 priv->shared->magic = PXA3XX_GCU_SHARED_MAGIC; in pxa3xx_gcu_reset()
181 struct pxa3xx_gcu_shared *sh = priv->shared; in dump_whole_state()
217 struct pxa3xx_gcu_shared *shared = priv->shared; in run_ready() local
224 shared->buffer[num++] = 0x05000000; in run_ready()
227 shared->buffer[num++] = 0x00000001; in run_ready()
[all …]
/drivers/dma-buf/
Dreservation.c91 fobj = krealloc(obj->staged, offsetof(typeof(*fobj), shared[max]), in reservation_object_reserve_shared()
117 old_fence = rcu_dereference_protected(fobj->shared[i], in reservation_object_add_shared_inplace()
122 RCU_INIT_POINTER(fobj->shared[i], fence); in reservation_object_add_shared_inplace()
135 RCU_INIT_POINTER(fobj->shared[fobj->shared_count], fence); in reservation_object_add_shared_inplace()
154 RCU_INIT_POINTER(fobj->shared[0], fence); in reservation_object_add_shared_replace()
170 check = rcu_dereference_protected(old->shared[i], in reservation_object_add_shared_replace()
175 RCU_INIT_POINTER(fobj->shared[i], fence); in reservation_object_add_shared_replace()
177 RCU_INIT_POINTER(fobj->shared[i], check); in reservation_object_add_shared_replace()
180 RCU_INIT_POINTER(fobj->shared[fobj->shared_count], fence); in reservation_object_add_shared_replace()
257 dma_fence_put(rcu_dereference_protected(old->shared[i], in reservation_object_add_excl_fence()
[all …]
/drivers/thermal/tegra/
Dsoctherm-fuse.c83 struct tsensor_shared_calib *shared) in tegra_calc_shared_calib() argument
93 shared->base_cp = (val & tfuse->fuse_base_cp_mask) >> in tegra_calc_shared_calib()
95 shared->base_ft = (val & tfuse->fuse_base_ft_mask) >> in tegra_calc_shared_calib()
110 shared->actual_temp_cp = 2 * NOMINAL_CALIB_CP + shifted_cp; in tegra_calc_shared_calib()
111 shared->actual_temp_ft = 2 * NOMINAL_CALIB_FT + shifted_ft; in tegra_calc_shared_calib()
117 const struct tsensor_shared_calib *shared, in tegra_calc_tsensor_calib() argument
135 actual_tsensor_cp = (shared->base_cp * 64) + sign_extend32(val, 12); in tegra_calc_tsensor_calib()
138 actual_tsensor_ft = (shared->base_ft * 32) + sign_extend32(val, 12); in tegra_calc_tsensor_calib()
141 delta_temp = shared->actual_temp_ft - shared->actual_temp_cp; in tegra_calc_tsensor_calib()
149 temp = ((s64)actual_tsensor_ft * shared->actual_temp_cp) - in tegra_calc_tsensor_calib()
[all …]
Dsoctherm.h119 struct tsensor_shared_calib *shared);
121 const struct tsensor_shared_calib *shared,
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dpcie.c255 struct brcmf_pcie_shared_info shared; member
650 struct brcmf_pcie_shared_info *shared; in brcmf_pcie_send_mb_data() local
655 shared = &devinfo->shared; in brcmf_pcie_send_mb_data()
656 addr = shared->htod_mb_data_addr; in brcmf_pcie_send_mb_data()
682 struct brcmf_pcie_shared_info *shared; in brcmf_pcie_handle_mb_data() local
686 shared = &devinfo->shared; in brcmf_pcie_handle_mb_data()
687 addr = shared->dtoh_mb_data_addr; in brcmf_pcie_handle_mb_data()
713 struct brcmf_pcie_shared_info *shared; in brcmf_pcie_bus_console_init() local
717 shared = &devinfo->shared; in brcmf_pcie_bus_console_init()
718 console = &shared->console; in brcmf_pcie_bus_console_init()
[all …]
/drivers/mtd/lpddr/
Dlpddr_cmds.c51 struct flchip_shared *shared; in lpddr_cmdset() local
81 shared = kmalloc(sizeof(struct flchip_shared) * lpddr->numchips, in lpddr_cmdset()
83 if (!shared) { in lpddr_cmdset()
92 shared[i].writing = shared[i].erasing = NULL; in lpddr_cmdset()
93 mutex_init(&shared[i].lock); in lpddr_cmdset()
98 chip->priv = &shared[i]; in lpddr_cmdset()
210 struct flchip_shared *shared = chip->priv; in get_chip() local
212 mutex_lock(&shared->lock); in get_chip()
213 contender = shared->writing; in get_chip()
225 mutex_unlock(&shared->lock); in get_chip()
[all …]
/drivers/reset/
Dcore.c45 bool shared; member
239 if (rstc->shared) { in reset_control_reset()
248 if (rstc->shared && ret) in reset_control_reset()
283 if (rstc->shared) { in reset_control_assert()
336 if (rstc->shared) { in reset_control_deassert()
381 unsigned int index, bool shared) in __reset_control_get_internal() argument
389 if (WARN_ON(!rstc->shared || !shared)) in __reset_control_get_internal()
407 rstc->shared = shared; in __reset_control_get_internal()
433 const char *id, int index, bool shared, in __of_reset_control_get() argument
487 rstc = __reset_control_get_internal(rcdev, rstc_id, shared); in __of_reset_control_get()
[all …]
/drivers/video/fbdev/via/
Daccel.c322 u32 chip_name = viapar->shared->chip_info.gfx_chip_name; in viafb_setup_engine()
324 engine = viapar->shared->vdev->engine_mmio; in viafb_setup_engine()
342 viapar->shared->hw_bitblt = hw_bitblt_1; in viafb_setup_engine()
347 viapar->shared->hw_bitblt = hw_bitblt_2; in viafb_setup_engine()
350 viapar->shared->hw_bitblt = NULL; in viafb_setup_engine()
354 viapar->shared->cursor_vram_addr = viapar->fbmem_free; in viafb_setup_engine()
358 viapar->shared->vq_vram_addr = viapar->fbmem_free; in viafb_setup_engine()
371 viapar->shared->vdev->camera_fbmem_size = 3*VGA_HEIGHT*VGA_WIDTH*2; in viafb_setup_engine()
372 viapar->fbmem_free -= viapar->shared->vdev->camera_fbmem_size; in viafb_setup_engine()
373 viapar->fbmem_used += viapar->shared->vdev->camera_fbmem_size; in viafb_setup_engine()
[all …]
Dviafbdev.c261 !ppar->shared->vdev->engine_mmio) in viafb_check_var()
683 struct viafb_shared *shared = viapar->shared; in viafb_fillrect() local
687 if (info->flags & FBINFO_HWACCEL_DISABLED || !shared->hw_bitblt) { in viafb_fillrect()
706 if (shared->hw_bitblt(shared->vdev->engine_mmio, VIA_BITBLT_FILL, in viafb_fillrect()
717 struct viafb_shared *shared = viapar->shared; in viafb_copyarea() local
719 if (info->flags & FBINFO_HWACCEL_DISABLED || !shared->hw_bitblt) { in viafb_copyarea()
728 if (shared->hw_bitblt(shared->vdev->engine_mmio, VIA_BITBLT_COLOR, in viafb_copyarea()
740 struct viafb_shared *shared = viapar->shared; in viafb_imageblit() local
744 if (info->flags & FBINFO_HWACCEL_DISABLED || !shared->hw_bitblt || in viafb_imageblit()
765 if (shared->hw_bitblt(shared->vdev->engine_mmio, op, in viafb_imageblit()
[all …]
Dhw.c625 viaparinfo->shared->iga1_devices = 0; in viafb_set_iga_path()
626 viaparinfo->shared->iga2_devices = 0; in viafb_set_iga_path()
629 viaparinfo->shared->iga1_devices |= VIA_CRT; in viafb_set_iga_path()
631 viaparinfo->shared->iga2_devices |= VIA_CRT; in viafb_set_iga_path()
636 viaparinfo->shared->iga1_devices |= get_dvi_devices( in viafb_set_iga_path()
640 viaparinfo->shared->iga2_devices |= get_dvi_devices( in viafb_set_iga_path()
647 viaparinfo->shared->iga1_devices |= get_lcd_devices( in viafb_set_iga_path()
651 viaparinfo->shared->iga2_devices |= get_lcd_devices( in viafb_set_iga_path()
658 viaparinfo->shared->iga1_devices |= get_lcd_devices( in viafb_set_iga_path()
662 viaparinfo->shared->iga2_devices |= get_lcd_devices( in viafb_set_iga_path()
[all …]
/drivers/scsi/aic7xxx/
Daic7770_osm.c64 int shared; in aic7770_map_int() local
66 shared = 0; in aic7770_map_int()
68 shared = IRQF_SHARED; in aic7770_map_int()
70 error = request_irq(irq, ahc_linux_isr, shared, "aic7xxx", ahc); in aic7770_map_int()
/drivers/misc/ti-st/
DKconfig2 # TI's shared transport line discipline and the protocol
5 menu "Texas Instruments shared transport line discipline"
11 This enables the shared transport core driver for TI
/drivers/iio/adc/
Dcc10001_adc.c65 bool shared; member
157 if (!adc_dev->shared) in cc10001_adc_trigger_h()
182 if (!adc_dev->shared) in cc10001_adc_trigger_h()
202 if (!adc_dev->shared) in cc10001_adc_read_raw_voltage()
212 if (!adc_dev->shared) in cc10001_adc_read_raw_voltage()
331 adc_dev->shared = true; in cc10001_adc_probe()
383 if (adc_dev->shared) in cc10001_adc_probe()
/drivers/gpu/drm/i915/
Di915_sw_fence.c447 struct dma_fence **shared; in i915_sw_fence_await_reservation() local
451 &excl, &count, &shared); in i915_sw_fence_await_reservation()
456 if (shared[i]->ops == exclude) in i915_sw_fence_await_reservation()
460 shared[i], in i915_sw_fence_await_reservation()
472 dma_fence_put(shared[i]); in i915_sw_fence_await_reservation()
473 kfree(shared); in i915_sw_fence_await_reservation()
/drivers/mtd/chips/
Dcfi_cmdset_0001.c699 struct flchip_shared *shared; in cfi_intelext_partition_fixup() local
761 shared = kmalloc(sizeof(struct flchip_shared) * cfi->numchips, GFP_KERNEL); in cfi_intelext_partition_fixup()
762 if (!shared) { in cfi_intelext_partition_fixup()
772 shared[i].writing = shared[i].erasing = NULL; in cfi_intelext_partition_fixup()
773 mutex_init(&shared[i].lock); in cfi_intelext_partition_fixup()
777 chip->priv = &shared[i]; in cfi_intelext_partition_fixup()
946 struct flchip_shared *shared = chip->priv; in get_chip() local
948 mutex_lock(&shared->lock); in get_chip()
949 contender = shared->writing; in get_chip()
961 mutex_unlock(&shared->lock); in get_chip()
[all …]
/drivers/block/drbd/
DKconfig20 DRBD is a shared-nothing, synchronously replicated block device. It
22 clusters and in this context, is a "drop-in" replacement for shared
33 nodes), which means it can exhibit shared disk semantics in a
34 shared-nothing cluster. Needless to say, on top of dual-Primary
/drivers/hid/
Dwacom_sys.c594 struct wacom_shared shared; member
719 if (wacom_wac->shared) { in wacom_remove_shared_data()
720 data = container_of(wacom_wac->shared, struct wacom_hdev_data, in wacom_remove_shared_data()
721 shared); in wacom_remove_shared_data()
723 if (wacom_wac->shared->touch == wacom->hdev) in wacom_remove_shared_data()
724 wacom_wac->shared->touch = NULL; in wacom_remove_shared_data()
725 else if (wacom_wac->shared->pen == wacom->hdev) in wacom_remove_shared_data()
726 wacom_wac->shared->pen = NULL; in wacom_remove_shared_data()
729 wacom_wac->shared = NULL; in wacom_remove_shared_data()
755 wacom_wac->shared = &data->shared; in wacom_add_shared_data()
[all …]
Dwacom_wac.c755 wacom->shared->stylus_in_proximity = true; in wacom_intuos_inout()
762 wacom->shared->stylus_in_proximity = true; in wacom_intuos_inout()
776 wacom->shared->stylus_in_proximity = false; in wacom_intuos_inout()
792 return (touch_arbitration ? !wacom->shared->stylus_in_proximity : 1); in report_touch_events()
797 return (wacom->shared->touch_down && touch_arbitration); in delay_pen_events()
1242 wacom->shared->stylus_in_proximity = false; in wacom_intuos_pro2_bt_pen()
1290 wacom->shared->stylus_in_proximity = prox; in wacom_intuos_pro2_bt_pen()
1349 wacom->shared->touch_down = wacom_wac_finger_count_touches(wacom); in wacom_intuos_pro2_bt_touch()
1481 wacom->shared->touch_down = wacom_wac_finger_count_touches(wacom); in wacom_24hdt_irq()
1532 wacom->shared->touch_down = wacom_wac_finger_count_touches(wacom); in wacom_mt_touch()
[all …]
/drivers/gpu/drm/radeon/
Dradeon_sync.c92 bool shared) in radeon_sync_resv() argument
109 if (shared || !flist || r) in radeon_sync_resv()
113 f = rcu_dereference_protected(flist->shared[i], in radeon_sync_resv()
/drivers/staging/iio/Documentation/
Dsysfs-bus-iio-dds18 obtain the desired value in Hz. If shared across all frequency
20 if shared across all channels.
48 the desired value in rad. If shared across all phase registers
50 shared across all channels.
/drivers/gpu/drm/ttm/
Dttm_execbuf_util.c128 if (!entry->shared) in ttm_eu_reserve_buffers()
150 if (!ret && entry->shared) in ttm_eu_reserve_buffers()
201 if (entry->shared) in ttm_eu_fence_buffer_objects()
/drivers/staging/android/
DKconfig10 The ashmem subsystem is a new shared memory allocator, similar to
15 because it can discard shared memory units when under memory pressure.
/drivers/net/vmxnet3/
Dvmxnet3_drv.c78 adapter->shared->devRead.intrConf.intrCtrl &= in vmxnet3_enable_all_intrs()
88 adapter->shared->devRead.intrConf.intrCtrl |= in vmxnet3_disable_all_intrs()
176 u32 events = le32_to_cpu(adapter->shared->ecr); in vmxnet3_process_events()
1087 le32_add_cpu(&tq->shared->txNumDeferred, (skb->len - in vmxnet3_tq_xmit()
1099 le32_add_cpu(&tq->shared->txNumDeferred, 1); in vmxnet3_tq_xmit()
1131 if (le32_to_cpu(tq->shared->txNumDeferred) >= in vmxnet3_tq_xmit()
1132 le32_to_cpu(tq->shared->txThreshold)) { in vmxnet3_tq_xmit()
1133 tq->shared->txNumDeferred = 0; in vmxnet3_tq_xmit()
1552 if (unlikely(rq->shared->updateRxProd)) { in vmxnet3_rq_rx_complete()
1854 if (unlikely(adapter->shared->ecr)) in vmxnet3_do_poll()
[all …]
Dvmxnet3_ethtool.c269 adapter->shared->devRead.misc.uptFeatures |= in vmxnet3_set_features()
272 adapter->shared->devRead.misc.uptFeatures &= in vmxnet3_set_features()
277 adapter->shared->devRead.misc.uptFeatures |= in vmxnet3_set_features()
280 adapter->shared->devRead.misc.uptFeatures &= in vmxnet3_set_features()
284 adapter->shared->devRead.misc.uptFeatures |= in vmxnet3_set_features()
287 adapter->shared->devRead.misc.uptFeatures &= in vmxnet3_set_features()
768 struct Vmxnet3_DriverShared *shared = adapter->shared; in vmxnet3_set_coalesce() local
769 union Vmxnet3_CmdInfo *cmdInfo = &shared->cu.cmdInfo; in vmxnet3_set_coalesce()

123456