| /drivers/input/joystick/iforce/ |
| A D | iforce-ff.c | 345 if (!old || need_period_modifier(iforce, old, effect)) { in iforce_upload_periodic() 347 old != NULL, in iforce_upload_periodic() 355 if (!old || need_envelope_modifier(iforce, old, effect)) { in iforce_upload_periodic() 357 old !=NULL, in iforce_upload_periodic() 376 if (!old || need_core(old, effect)) { in iforce_upload_periodic() 415 if (!old || need_magnitude_modifier(iforce, old, effect)) { in iforce_upload_constant() 417 old != NULL, in iforce_upload_constant() 424 if (!old || need_envelope_modifier(iforce, old, effect)) { in iforce_upload_constant() 436 if (!old || need_core(old, effect)) { in iforce_upload_constant() 477 if (!old || need_condition_modifier(iforce, old, effect)) { in iforce_upload_condition() [all …]
|
| /drivers/hid/usbhid/ |
| A D | hid-pidff.c | 344 if (!old) in pidff_needs_set_envelope() 784 if (!old || pidff_needs_set_effect(effect, old)) in pidff_upload_effect() 786 if (!old || pidff_needs_set_constant(effect, old)) in pidff_upload_effect() 789 old ? &old->u.constant.envelope : NULL)) in pidff_upload_effect() 824 if (!old || pidff_needs_set_effect(effect, old)) in pidff_upload_effect() 829 old ? &old->u.periodic.envelope : NULL)) in pidff_upload_effect() 840 if (!old || pidff_needs_set_effect(effect, old)) in pidff_upload_effect() 842 if (!old || pidff_needs_set_ramp(effect, old)) in pidff_upload_effect() 845 old ? &old->u.ramp.envelope : NULL)) in pidff_upload_effect() 873 if (!old || pidff_needs_set_effect(effect, old)) in pidff_upload_effect() [all …]
|
| A D | usbkbd.c | 83 unsigned char old[8]; member 122 if (kbd->old[i] > 3 && memscan(kbd->new + 2, kbd->old[i], 6) == kbd->new + 8) { in usb_kbd_irq() 123 if (usb_kbd_keycode[kbd->old[i]]) in usb_kbd_irq() 124 input_report_key(kbd->dev, usb_kbd_keycode[kbd->old[i]], 0); in usb_kbd_irq() 128 kbd->old[i]); in usb_kbd_irq() 131 if (kbd->new[i] > 3 && memscan(kbd->old + 2, kbd->new[i], 6) == kbd->old + 8) { in usb_kbd_irq() 143 memcpy(kbd->old, kbd->new, 8); in usb_kbd_irq()
|
| /drivers/dma-buf/ |
| A D | dma-resv.c | 197 if (old && old->max_fences) { in dma_resv_reserve_fences() 198 if ((old->num_fences + num_fences) <= old->max_fences) in dma_resv_reserve_fences() 200 max = max(old->num_fences + num_fences, old->max_fences * 2); in dma_resv_reserve_fences() 215 for (i = 0, j = 0, k = max; i < (old ? old->num_fences : 0); ++i) { in dma_resv_reserve_fences() 237 if (!old) in dma_resv_reserve_fences() 248 kfree_rcu(old, rcu); in dma_resv_reserve_fences() 291 struct dma_fence *old; in dma_resv_add_fence() local 314 dma_fence_put(old); in dma_resv_add_fence() 354 struct dma_fence *old; in dma_resv_replace_fences() local 357 if (old->context != context) in dma_resv_replace_fences() [all …]
|
| /drivers/gpu/drm/i915/display/ |
| A D | intel_fifo_underrun.c | 115 bool enable, bool old) in i9xx_set_fifo_underrun_reporting() argument 166 bool old) in ivb_set_fifo_underrun_reporting() argument 179 if (old && in ivb_set_fifo_underrun_reporting() 232 bool enable, bool old) in cpt_set_fifo_underrun_reporting() argument 258 bool old; in __intel_set_cpu_fifo_underrun_reporting() local 262 old = !crtc->cpu_fifo_underrun_disabled; in __intel_set_cpu_fifo_underrun_reporting() 274 return old; in __intel_set_cpu_fifo_underrun_reporting() 326 bool old; in intel_set_pch_fifo_underrun_reporting() local 339 old = !crtc->pch_fifo_underrun_disabled; in intel_set_pch_fifo_underrun_reporting() 349 enable, old); in intel_set_pch_fifo_underrun_reporting() [all …]
|
| /drivers/mtd/ |
| A D | mtd_blkdevs.c | 411 if (old->disk_attributes) in del_mtd_blktrans_dev() 413 old->disk_attributes); in del_mtd_blktrans_dev() 416 del_gendisk(old->disk); in del_mtd_blktrans_dev() 420 old->rq->queuedata = NULL; in del_mtd_blktrans_dev() 431 mutex_lock(&old->lock); in del_mtd_blktrans_dev() 432 if (old->open) { in del_mtd_blktrans_dev() 433 if (old->tr->release) in del_mtd_blktrans_dev() 434 old->tr->release(old); in del_mtd_blktrans_dev() 438 old->mtd = NULL; in del_mtd_blktrans_dev() 440 mutex_unlock(&old->lock); in del_mtd_blktrans_dev() [all …]
|
| /drivers/xen/events/ |
| A D | events_fifo.c | 229 event_word_t new, old; in clear_masked_cond() local 231 old = *word; in clear_masked_cond() 234 if (!(old & (1 << EVTCHN_FIFO_MASKED))) in clear_masked_cond() 237 if (old & (1 << EVTCHN_FIFO_PENDING)) in clear_masked_cond() 240 old = old & ~(1 << EVTCHN_FIFO_BUSY); in clear_masked_cond() 241 new = old & ~(1 << EVTCHN_FIFO_MASKED); in clear_masked_cond() 242 } while (!sync_try_cmpxchg(word, &old, new)); in clear_masked_cond() 261 event_word_t new, old; in clear_linked() local 263 old = *word; in clear_linked() 266 new = (old & ~((1 << EVTCHN_FIFO_LINKED) in clear_linked() [all …]
|
| /drivers/media/common/ |
| A D | cx2341x.c | 1040 if (!old || in cx2341x_update() 1048 if (!old || in cx2341x_update() 1064 if (!old || in cx2341x_update() 1071 if (!old || in cx2341x_update() 1078 if (!old || in cx2341x_update() 1086 if (!old || in cx2341x_update() 1093 if (!old || in cx2341x_update() 1100 if (!old || in cx2341x_update() 1107 if (!old || in cx2341x_update() 1117 if (!old || in cx2341x_update() [all …]
|
| /drivers/gpu/drm/xe/ |
| A D | xe_trace_lrc.h | 22 TP_PROTO(struct xe_lrc *lrc, uint64_t old), 23 TP_ARGS(lrc, old), 26 __field(u64, old) 34 __entry->old = old; 41 __entry->old, __entry->new,
|
| /drivers/firewire/ |
| A D | core-iso.c | 288 new = allocate ? old - bandwidth : old + bandwidth; in manage_bandwidth() 292 data[0] = cpu_to_be32(old); in manage_bandwidth() 303 if (be32_to_cpup(data) == old) in manage_bandwidth() 306 old = be32_to_cpup(data); in manage_bandwidth() 317 __be32 bit, all, old; in manage_channel() local 321 old = all = allocate ? cpu_to_be32(~0) : 0; in manage_channel() 330 if ((old & bit) != (all & bit)) in manage_channel() 333 data[0] = old; in manage_channel() 334 data[1] = old ^ bit; in manage_channel() 343 if (data[0] == old) in manage_channel() [all …]
|
| /drivers/gpu/drm/msm/disp/dpu1/ |
| A D | dpu_core_perf.c | 305 struct dpu_core_perf_params *new, *old; in dpu_core_perf_crtc_update() local 326 old = &dpu_crtc->cur_perf; in dpu_core_perf_crtc_update() 337 if ((params_changed && ((new->bw_ctl > old->bw_ctl) || in dpu_core_perf_crtc_update() 338 (new->max_per_pipe_ib > old->max_per_pipe_ib))) || in dpu_core_perf_crtc_update() 339 (!params_changed && ((new->bw_ctl < old->bw_ctl) || in dpu_core_perf_crtc_update() 340 (new->max_per_pipe_ib < old->max_per_pipe_ib)))) { in dpu_core_perf_crtc_update() 343 new->bw_ctl, old->bw_ctl); in dpu_core_perf_crtc_update() 344 old->bw_ctl = new->bw_ctl; in dpu_core_perf_crtc_update() 345 old->max_per_pipe_ib = new->max_per_pipe_ib; in dpu_core_perf_crtc_update() 351 old->core_clk_rate = new->core_clk_rate; in dpu_core_perf_crtc_update() [all …]
|
| /drivers/net/wireless/ath/ath10k/ |
| A D | wow.c | 82 const struct cfg80211_pkt_pattern *old) in ath10k_wow_convert_8023_to_80211() argument 89 int total_len = old->pkt_offset + old->pattern_len; in ath10k_wow_convert_8023_to_80211() 106 memcpy(hdr_8023_pattern + old->pkt_offset, in ath10k_wow_convert_8023_to_80211() 107 old->pattern, ETH_HLEN - old->pkt_offset); in ath10k_wow_convert_8023_to_80211() 108 memcpy(hdr_8023_bit_mask + old->pkt_offset, in ath10k_wow_convert_8023_to_80211() 109 old->mask, ETH_HLEN - old->pkt_offset); in ath10k_wow_convert_8023_to_80211() 128 if (old->pkt_offset < ETH_ALEN) in ath10k_wow_convert_8023_to_80211() 129 new->pkt_offset = old->pkt_offset + in ath10k_wow_convert_8023_to_80211() 132 new->pkt_offset = old->pkt_offset + in ath10k_wow_convert_8023_to_80211() 162 (void *)old->pattern + ETH_HLEN - old->pkt_offset, in ath10k_wow_convert_8023_to_80211() [all …]
|
| /drivers/nvmem/ |
| A D | qfprom.c | 140 const struct qfprom_touched_values *old) in qfprom_disable_fuse_blowing() argument 144 writel(old->timer_val, priv->qfpconf + QFPROM_BLOW_TIMER_OFFSET); in qfprom_disable_fuse_blowing() 145 writel(old->accel_val, priv->qfpconf + QFPROM_ACCEL_OFFSET); in qfprom_disable_fuse_blowing() 164 ret = clk_set_rate(priv->secclk, old->clk_rate); in qfprom_disable_fuse_blowing() 185 struct qfprom_touched_values *old) in qfprom_enable_fuse_blowing() argument 196 old->clk_rate = clk_get_rate(priv->secclk); in qfprom_enable_fuse_blowing() 228 old->accel_val = readl(priv->qfpconf + QFPROM_ACCEL_OFFSET); in qfprom_enable_fuse_blowing() 239 clk_set_rate(priv->secclk, old->clk_rate); in qfprom_enable_fuse_blowing() 260 struct qfprom_touched_values old; in qfprom_reg_write() local 287 ret = qfprom_enable_fuse_blowing(priv, &old); in qfprom_reg_write() [all …]
|
| /drivers/scsi/sym53c8xx_2/ |
| A D | sym_fw.c | 350 u32 opcode, new, old, tmp1, tmp2; in sym_fw_bind_script() local 501 old = *cur; in sym_fw_bind_script() 503 switch (old & RELOC_MASK) { in sym_fw_bind_script() 505 new = (old & ~RELOC_MASK) + np->mmio_ba; in sym_fw_bind_script() 508 new = (old & ~RELOC_MASK) + np->scripta_ba; in sym_fw_bind_script() 511 new = (old & ~RELOC_MASK) + np->scriptb_ba; in sym_fw_bind_script() 514 new = (old & ~RELOC_MASK) + np->hcb_ba; in sym_fw_bind_script() 522 if (old == 0) { in sym_fw_bind_script() 523 new = old; in sym_fw_bind_script() 530 "weird relocation %x\n", old); in sym_fw_bind_script()
|
| /drivers/gpu/drm/arm/display/komeda/ |
| A D | komeda_crtc.c | 248 struct drm_crtc_state *old) in komeda_crtc_do_flush() argument 264 komeda_pipeline_update(master, old->state); in komeda_crtc_do_flush() 267 komeda_pipeline_update(slave, old->state); in komeda_crtc_do_flush() 287 komeda_crtc_do_flush(crtc, old); in komeda_crtc_atomic_enable() 330 struct komeda_crtc_state *old_st = to_kcrtc_st(old); in komeda_crtc_atomic_disable() 341 komeda_pipeline_disable(slave, old->state); in komeda_crtc_atomic_disable() 371 komeda_pipeline_disable(kcrtc->master, old->state); in komeda_crtc_atomic_disable() 397 komeda_crtc_do_flush(crtc, old); in komeda_crtc_atomic_flush() 520 new->affected_pipes = old->active_pipes; in komeda_crtc_atomic_duplicate_state() 521 new->clock_ratio = old->clock_ratio; in komeda_crtc_atomic_duplicate_state() [all …]
|
| /drivers/gpu/drm/i915/ |
| A D | i915_hwmon.h | 18 void i915_hwmon_power_max_disable(struct drm_i915_private *i915, bool *old); 19 void i915_hwmon_power_max_restore(struct drm_i915_private *i915, bool old); 23 static inline void i915_hwmon_power_max_disable(struct drm_i915_private *i915, bool *old) { }; in i915_hwmon_power_max_disable() argument 24 static inline void i915_hwmon_power_max_restore(struct drm_i915_private *i915, bool old) { }; in i915_hwmon_power_max_restore() argument
|
| /drivers/s390/scsi/ |
| A D | zfcp_scsi.c | 557 struct fsf_qtcb_bottom_port *old) in zfcp_scsi_adjust_fc_host_stats() argument 562 fc_stats->tx_words = data->tx_words - old->tx_words; in zfcp_scsi_adjust_fc_host_stats() 564 fc_stats->rx_words = data->rx_words - old->rx_words; in zfcp_scsi_adjust_fc_host_stats() 565 fc_stats->lip_count = data->lip - old->lip; in zfcp_scsi_adjust_fc_host_stats() 566 fc_stats->nos_count = data->nos - old->nos; in zfcp_scsi_adjust_fc_host_stats() 572 data->loss_of_signal - old->loss_of_signal; in zfcp_scsi_adjust_fc_host_stats() 574 data->psp_error_counts - old->psp_error_counts; in zfcp_scsi_adjust_fc_host_stats() 576 data->invalid_tx_words - old->invalid_tx_words; in zfcp_scsi_adjust_fc_host_stats() 579 data->input_requests - old->input_requests; in zfcp_scsi_adjust_fc_host_stats() 581 data->output_requests - old->output_requests; in zfcp_scsi_adjust_fc_host_stats() [all …]
|
| /drivers/iommu/intel/ |
| A D | nested.c | 142 struct iommu_domain *old) in domain_setup_nested() argument 144 if (!old) in domain_setup_nested() 147 iommu_domain_did(old, iommu), in domain_setup_nested() 153 struct iommu_domain *old) in intel_nested_set_dev_pasid() argument 175 ret = iopf_for_domain_replace(domain, old, dev); in intel_nested_set_dev_pasid() 179 ret = domain_setup_nested(iommu, dmar_domain, dev, pasid, old); in intel_nested_set_dev_pasid() 183 domain_remove_dev_pasid(old, dev, pasid); in intel_nested_set_dev_pasid() 188 iopf_for_domain_replace(old, domain, dev); in intel_nested_set_dev_pasid()
|
| /drivers/ras/amd/ |
| A D | fmpm.c | 271 if (old->hw_id != new->hw_id) in fpds_equal() 274 if (old->addr_type != new->addr_type) in fpds_equal() 277 if (old->hw_id_type != new->hw_id_type) in fpds_equal() 640 if (!fmp_is_valid(old)) { in get_valid_record() 645 new = get_fru_record(old->fmp.fru_id); in get_valid_record() 662 struct fru_rec *old, *new; in get_saved_records() local 668 if (!old) { in get_saved_records() 684 memset(old, 0, FMPM_MAX_REC_LEN); in get_saved_records() 691 new = get_valid_record(old); in get_saved_records() 711 memcpy(new, old, len); in get_saved_records() [all …]
|
| /drivers/net/wireless/ath/ath11k/ |
| A D | wow.c | 162 int total_len = old->pkt_offset + old->pattern_len; in ath11k_wow_convert_8023_to_80211() 181 for (i = 0; i < old->pattern_len; i++) in ath11k_wow_convert_8023_to_80211() 182 if (old->mask[i / 8] & BIT(i % 8)) in ath11k_wow_convert_8023_to_80211() 185 memcpy(hdr_8023_pattern + old->pkt_offset, in ath11k_wow_convert_8023_to_80211() 186 old->pattern, ETH_HLEN - old->pkt_offset); in ath11k_wow_convert_8023_to_80211() 187 memcpy(hdr_8023_bit_mask + old->pkt_offset, in ath11k_wow_convert_8023_to_80211() 188 bytemask, ETH_HLEN - old->pkt_offset); in ath11k_wow_convert_8023_to_80211() 207 if (old->pkt_offset < ETH_ALEN) in ath11k_wow_convert_8023_to_80211() 208 new->pkt_offset = old->pkt_offset + in ath11k_wow_convert_8023_to_80211() 211 new->pkt_offset = old->pkt_offset + in ath11k_wow_convert_8023_to_80211() [all …]
|
| /drivers/net/ethernet/sfc/ |
| A D | tc_conntrack.c | 357 struct efx_tc_ct_entry *conn, *old; in efx_tc_ct_replace() local 375 if (IS_ERR(old)) { in efx_tc_ct_replace() 376 rc = PTR_ERR(old); in efx_tc_ct_replace() 378 } else if (old) { in efx_tc_ct_replace() 448 if (!old) in efx_tc_ct_replace() 562 struct efx_tc_ct_zone *ct_zone, *old; in efx_tc_ct_register_zone() local 572 if (old) { in efx_tc_ct_register_zone() 576 return ERR_CAST(old); in efx_tc_ct_register_zone() 577 if (!refcount_inc_not_zero(&old->ref)) in efx_tc_ct_register_zone() 580 WARN_ON_ONCE(old->nf_ft != ct_ft); in efx_tc_ct_register_zone() [all …]
|
| A D | tc.c | 136 if (old) { in efx_tc_flower_get_mac() 144 return old; in efx_tc_flower_get_mac() 598 if (old) { in efx_tc_flower_record_encap_match() 709 if (old) { in efx_tc_get_recirc_id() 717 rid = old; in efx_tc_get_recirc_id() 1518 if (old) { in efx_tc_flower_replace_foreign_lhs_ar() 1546 if (!old) in efx_tc_flower_replace_foreign_lhs_ar() 1630 if (old) { in efx_tc_flower_replace_foreign_lhs() 1658 if (!old) in efx_tc_flower_replace_foreign_lhs() 1979 if (!old) in efx_tc_flower_replace_foreign() [all …]
|
| /drivers/md/bcache/ |
| A D | io.c | 97 unsigned int old = count; in bch_count_io_errors() local 105 count = atomic_cmpxchg(&ca->io_count, old, new); in bch_count_io_errors() 107 if (count == old) { in bch_count_io_errors() 112 old = errors; in bch_count_io_errors() 115 old, new); in bch_count_io_errors() 116 } while (old != errors); in bch_count_io_errors()
|
| /drivers/hwmon/ |
| A D | bt1-pvt.c | 119 u32 old; in pvt_update() local 121 old = readl_relaxed(reg); in pvt_update() 122 writel((old & ~mask) | (data & mask), reg); in pvt_update() 124 return old & mask; in pvt_update() 136 u32 old; in pvt_set_mode() local 142 mode | old); in pvt_set_mode() 154 u32 old; in pvt_set_trim() local 160 trim | old); in pvt_set_trim() 165 u32 old; in pvt_set_tout() local 169 pvt_update(pvt->regs + PVT_CTRL, PVT_CTRL_EN, old); in pvt_set_tout() [all …]
|
| /drivers/tty/vt/ |
| A D | consolemap.c | 543 struct uni_pagedict *new, *old = *vc->uni_pagedict_loc; in con_allocate_new() local 552 if (old) in con_allocate_new() 553 old->refcount--; in con_allocate_new() 561 struct uni_pagedict *old = *vc->uni_pagedict_loc; in con_do_clear_unimap() local 563 if (!old || old->refcount > 1) in con_do_clear_unimap() 566 old->sum = 0; in con_do_clear_unimap() 567 con_release_unimap(old); in con_do_clear_unimap() 582 struct uni_pagedict *old) in con_unshare_unimap() argument 601 u16 **dir = old->uni_pgdir[d]; in con_unshare_unimap() 625 old->refcount++; in con_unshare_unimap() [all …]
|