/linux-4.4.14/drivers/dma/ioat/ |
D | dma.c | 401 u16 new_idx = (ioat_chan->tail+i) & (new_size-1); in reshape_ring() local 403 ring[new_idx] = ioat_chan->ring[curr_idx]; in reshape_ring() 404 set_desc_id(ring[new_idx], new_idx); in reshape_ring() 409 u16 new_idx = (ioat_chan->tail+i) & (new_size-1); in reshape_ring() local 411 ring[new_idx] = ioat_alloc_ring_ent(c, GFP_NOWAIT); in reshape_ring() 412 if (!ring[new_idx]) { in reshape_ring() 414 u16 new_idx = (ioat_chan->tail+i) & in reshape_ring() local 417 ioat_free_ring_ent(ring[new_idx], c); in reshape_ring() 422 set_desc_id(ring[new_idx], new_idx); in reshape_ring() 427 u16 new_idx = (ioat_chan->tail+i) & (new_size-1); in reshape_ring() local [all …]
|
/linux-4.4.14/include/uapi/linux/ |
D | virtio_ring.h | 164 static inline int vring_need_event(__u16 event_idx, __u16 new_idx, __u16 old) in vring_need_event() argument 171 return (__u16)(new_idx - event_idx - 1) < (__u16)(new_idx - old); in vring_need_event()
|
/linux-4.4.14/kernel/events/ |
D | hw_breakpoint.c | 188 int old_idx, new_idx; in toggle_bp_task_slot() local 191 new_idx = old_idx + weight; in toggle_bp_task_slot() 195 if (new_idx >= 0) in toggle_bp_task_slot() 196 tsk_pinned[new_idx]++; in toggle_bp_task_slot()
|
/linux-4.4.14/drivers/cpuidle/governors/ |
D | ladder.c | 54 int old_idx, int new_idx) in ladder_do_selection() argument 58 ldev->last_state_idx = new_idx; in ladder_do_selection()
|
/linux-4.4.14/drivers/net/ethernet/cavium/liquidio/ |
D | cn66xx_device.c | 501 u32 new_idx = readl(iq->inst_cnt_reg); in lio_cn6xxx_update_read_index() local 507 if (iq->reset_instr_cnt < new_idx) in lio_cn6xxx_update_read_index() 508 new_idx -= iq->reset_instr_cnt; in lio_cn6xxx_update_read_index() 510 new_idx += (0xffffffff - iq->reset_instr_cnt) + 1; in lio_cn6xxx_update_read_index() 515 new_idx %= iq->max_count; in lio_cn6xxx_update_read_index() 517 return new_idx; in lio_cn6xxx_update_read_index()
|
/linux-4.4.14/net/mac80211/ |
D | rc80211_minstrel.c | 458 unsigned int i, col, new_idx; in init_sample_table() local 468 new_idx = (i + rnd[i & 7]) % mi->n_rates; in init_sample_table() 469 while (SAMPLE_TBL(mi, new_idx, col) != 0xff) in init_sample_table() 470 new_idx = (new_idx + 1) % mi->n_rates; in init_sample_table() 472 SAMPLE_TBL(mi, new_idx, col) = i; in init_sample_table()
|
D | rc80211_minstrel_ht.c | 1363 int col, i, new_idx; in init_sample_table() local 1370 new_idx = (i + rnd[i]) % MCS_GROUP_RATES; in init_sample_table() 1371 while (sample_table[col][new_idx] != 0xff) in init_sample_table() 1372 new_idx = (new_idx + 1) % MCS_GROUP_RATES; in init_sample_table() 1374 sample_table[col][new_idx] = i; in init_sample_table()
|
/linux-4.4.14/drivers/regulator/ |
D | max8997.c | 639 int new_val, new_idx, damage, tmp_val, tmp_idx, tmp_dmg; in max8997_set_voltage_buck() local 673 damage = max8997_assess_side_effect(rdev, new_val, &new_idx); in max8997_set_voltage_buck() 678 tmp_idx = new_idx; in max8997_set_voltage_buck() 686 new_idx = tmp_idx; in max8997_set_voltage_buck() 697 if (new_idx < 0 || new_val < 0) in max8997_set_voltage_buck() 700 max8997->buck125_gpioindex = new_idx; in max8997_set_voltage_buck()
|
/linux-4.4.14/arch/x86/kernel/cpu/ |
D | perf_event_intel_uncore_nhmex.c | 622 static u64 nhmex_mbox_alter_er(struct perf_event *event, int new_idx, bool modify) in nhmex_mbox_alter_er() argument 635 if (new_idx > orig_idx) { in nhmex_mbox_alter_er() 636 idx = new_idx - orig_idx; in nhmex_mbox_alter_er() 639 idx = orig_idx - new_idx; in nhmex_mbox_alter_er() 651 if (new_idx > orig_idx) in nhmex_mbox_alter_er() 656 reg1->idx = ~0xff | new_idx; in nhmex_mbox_alter_er()
|
D | perf_event_intel_uncore_snbep.c | 769 static u64 snbep_pcu_alter_er(struct perf_event *event, int new_idx, bool modify) in snbep_pcu_alter_er() argument 775 if (new_idx > reg1->idx) in snbep_pcu_alter_er() 776 config <<= 8 * (new_idx - reg1->idx); in snbep_pcu_alter_er() 778 config >>= 8 * (reg1->idx - new_idx); in snbep_pcu_alter_er() 781 hwc->config += new_idx - reg1->idx; in snbep_pcu_alter_er() 783 reg1->idx = new_idx; in snbep_pcu_alter_er()
|
/linux-4.4.14/drivers/net/wireless/iwlegacy/ |
D | 3945.c | 1939 s32 setting_idx, s32 *new_idx) in il3945_hw_reg_get_matched_power_idx() argument 1955 *new_idx = samples[i].gain_idx; in il3945_hw_reg_get_matched_power_idx() 1983 *new_idx = res >> 19; in il3945_hw_reg_get_matched_power_idx()
|
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_main.c | 1409 u32 v, new_idx; in cxgb4_set_rspq_intr_params() local 1411 new_idx = closest_thres(&adap->sge, cnt); in cxgb4_set_rspq_intr_params() 1412 if (q->desc && q->pktcnt_idx != new_idx) { in cxgb4_set_rspq_intr_params() 1419 &v, &new_idx); in cxgb4_set_rspq_intr_params() 1423 q->pktcnt_idx = new_idx; in cxgb4_set_rspq_intr_params()
|
/linux-4.4.14/drivers/video/console/ |
D | fbcon.c | 3014 int i, new_idx = -1, ret = 0; in fbcon_fb_unbind() local 3022 new_idx = i; in fbcon_fb_unbind() 3027 if (new_idx != -1) { in fbcon_fb_unbind() 3030 set_con2fb_map(i, new_idx, 0); in fbcon_fb_unbind()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_cmn.c | 183 int new_idx = cos * (old_eth_num - delta) + i; in bnx2x_shrink_eth_fp() local 185 memcpy(&bp->bnx2x_txq[new_idx], fp->txdata_ptr[cos], in bnx2x_shrink_eth_fp() 187 fp->txdata_ptr[cos] = &bp->bnx2x_txq[new_idx]; in bnx2x_shrink_eth_fp()
|