ix 14 arch/mips/math-emu/sp_sqrt.c int ix, s, q, m, t, i; ix 56 arch/mips/math-emu/sp_sqrt.c ix = x.bits; ix 59 arch/mips/math-emu/sp_sqrt.c m = (ix >> 23); ix 61 arch/mips/math-emu/sp_sqrt.c for (i = 0; (ix & 0x00800000) == 0; i++) ix 62 arch/mips/math-emu/sp_sqrt.c ix <<= 1; ix 66 arch/mips/math-emu/sp_sqrt.c ix = (ix & 0x007fffff) | 0x00800000; ix 68 arch/mips/math-emu/sp_sqrt.c ix += ix; ix 72 arch/mips/math-emu/sp_sqrt.c ix += ix; ix 79 arch/mips/math-emu/sp_sqrt.c if (t <= ix) { ix 81 arch/mips/math-emu/sp_sqrt.c ix -= t; ix 84 arch/mips/math-emu/sp_sqrt.c ix += ix; ix 88 arch/mips/math-emu/sp_sqrt.c if (ix != 0) { ix 99 arch/mips/math-emu/sp_sqrt.c ix = (q >> 1) + 0x3f000000; ix 100 arch/mips/math-emu/sp_sqrt.c ix += (m << 23); ix 101 arch/mips/math-emu/sp_sqrt.c x.bits = ix; ix 446 arch/powerpc/perf/hv-24x7.c static struct attribute *event_to_attr(unsigned ix, ix 457 arch/powerpc/perf/hv-24x7.c ix, domain); ix 516 arch/powerpc/perf/hv-24x7.c static int event_data_to_attrs(unsigned ix, struct attribute **attrs, ix 519 arch/powerpc/perf/hv-24x7.c *attrs = event_to_attr(ix, event, event->domain, nonce); ix 63 arch/s390/lib/spinlock.c int ix; ix 66 arch/s390/lib/spinlock.c for (ix = 0; ix < 4; ix++, node++) { ix 69 arch/s390/lib/spinlock.c (ix << _Q_TAIL_IDX_OFFSET); ix 99 arch/s390/lib/spinlock.c int ix, cpu; ix 101 arch/s390/lib/spinlock.c ix = (lock & _Q_TAIL_IDX_MASK) >> _Q_TAIL_IDX_OFFSET; ix 103 arch/s390/lib/spinlock.c return per_cpu_ptr(&spin_wait[ix], cpu - 1); ix 120 arch/s390/lib/spinlock.c int lockval, ix, node_id, tail_id, old, new, owner, count; ix 122 arch/s390/lib/spinlock.c ix = S390_lowcore.spinlock_index++; ix 125 arch/s390/lib/spinlock.c node = this_cpu_ptr(&spin_wait[ix]); ix 188 arch/s390/mm/page-states.c unsigned long start, end, ix; ix 200 arch/s390/mm/page-states.c for (ix = start; ix < end; ix++, page++) { ix 96 arch/sh/kernel/cpu/sh2a/fpu.c unsigned int ix, iy; ix 100 arch/sh/kernel/cpu/sh2a/fpu.c ix = hx & 0x7fffffff; ix 102 arch/sh/kernel/cpu/sh2a/fpu.c if (iy < 0x00800000 || ix == 0) ix 106 arch/sh/kernel/cpu/sh2a/fpu.c ix &= 0x007fffff; ix 108 arch/sh/kernel/cpu/sh2a/fpu.c m = (unsigned long long)ix * iy; ix 116 arch/sh/kernel/cpu/sh2a/fpu.c ix = ((int) (m >> (w - 23)) & 0x007fffff) | (exp << 23); ix 118 arch/sh/kernel/cpu/sh2a/fpu.c ix = (int) (m >> (w - 22 - exp)) & 0x007fffff; ix 120 arch/sh/kernel/cpu/sh2a/fpu.c ix = 0; ix 122 arch/sh/kernel/cpu/sh2a/fpu.c ix |= (hx ^ hy) & 0x80000000; ix 123 arch/sh/kernel/cpu/sh2a/fpu.c return ix; ix 163 arch/sh/kernel/cpu/sh2a/fpu.c unsigned long long ix, iy; ix 167 arch/sh/kernel/cpu/sh2a/fpu.c ix = hx & 0x7fffffffffffffffLL; ix 169 arch/sh/kernel/cpu/sh2a/fpu.c if (iy < 0x0010000000000000LL || ix == 0) ix 173 arch/sh/kernel/cpu/sh2a/fpu.c ix &= 0x000fffffffffffffLL; ix 175 arch/sh/kernel/cpu/sh2a/fpu.c mult64(ix, iy, &mh, &ml); ix 188 arch/sh/kernel/cpu/sh2a/fpu.c ix = (rshift64(mh, ml, w - 52) & 0x000fffffffffffffLL) ix 191 arch/sh/kernel/cpu/sh2a/fpu.c ix = rshift64(mh, ml, w - 51 - exp) & 0x000fffffffffffffLL; ix 193 arch/sh/kernel/cpu/sh2a/fpu.c ix = 0; ix 195 arch/sh/kernel/cpu/sh2a/fpu.c ix |= (hx ^ hy) & 0x8000000000000000LL; ix 196 arch/sh/kernel/cpu/sh2a/fpu.c return ix; ix 200 arch/sh/kernel/cpu/sh2a/fpu.c static int denormal_subf1(unsigned int ix, unsigned int iy) ix 205 arch/sh/kernel/cpu/sh2a/fpu.c if (ix < 0x00800000) ix 206 arch/sh/kernel/cpu/sh2a/fpu.c return ix - iy; ix 208 arch/sh/kernel/cpu/sh2a/fpu.c exp = (ix & 0x7f800000) >> 23; ix 210 arch/sh/kernel/cpu/sh2a/fpu.c return ix; ix 213 arch/sh/kernel/cpu/sh2a/fpu.c return ix; ix 215 arch/sh/kernel/cpu/sh2a/fpu.c frac = (ix & 0x007fffff) | 0x00800000; ix 227 arch/sh/kernel/cpu/sh2a/fpu.c static int denormal_addf1(unsigned int ix, unsigned int iy) ix 232 arch/sh/kernel/cpu/sh2a/fpu.c if (ix < 0x00800000) ix 233 arch/sh/kernel/cpu/sh2a/fpu.c return ix + iy; ix 235 arch/sh/kernel/cpu/sh2a/fpu.c exp = (ix & 0x7f800000) >> 23; ix 237 arch/sh/kernel/cpu/sh2a/fpu.c return ix; ix 240 arch/sh/kernel/cpu/sh2a/fpu.c return ix; ix 242 arch/sh/kernel/cpu/sh2a/fpu.c frac = (ix & 0x007fffff) | 0x00800000; ix 254 arch/sh/kernel/cpu/sh2a/fpu.c unsigned int ix, iy; ix 259 arch/sh/kernel/cpu/sh2a/fpu.c ix = hx & 0x7fffffff; ix 262 arch/sh/kernel/cpu/sh2a/fpu.c ix = denormal_subf1(ix, iy); ix 263 arch/sh/kernel/cpu/sh2a/fpu.c if ((int) ix < 0) { ix 264 arch/sh/kernel/cpu/sh2a/fpu.c ix = -ix; ix 268 arch/sh/kernel/cpu/sh2a/fpu.c ix = denormal_subf1(iy, ix); ix 273 arch/sh/kernel/cpu/sh2a/fpu.c ix = hx & 0x7fffffff; ix 276 arch/sh/kernel/cpu/sh2a/fpu.c ix = denormal_addf1(ix, iy); ix 278 arch/sh/kernel/cpu/sh2a/fpu.c ix = denormal_addf1(iy, ix); ix 281 arch/sh/kernel/cpu/sh2a/fpu.c return sign | ix; ix 285 arch/sh/kernel/cpu/sh2a/fpu.c static long long denormal_subd1(unsigned long long ix, unsigned long long iy) ix 290 arch/sh/kernel/cpu/sh2a/fpu.c if (ix < 0x0010000000000000LL) ix 291 arch/sh/kernel/cpu/sh2a/fpu.c return ix - iy; ix 293 arch/sh/kernel/cpu/sh2a/fpu.c exp = (ix & 0x7ff0000000000000LL) >> 52; ix 295 arch/sh/kernel/cpu/sh2a/fpu.c return ix; ix 298 arch/sh/kernel/cpu/sh2a/fpu.c return ix; ix 300 arch/sh/kernel/cpu/sh2a/fpu.c frac = (ix & 0x000fffffffffffffLL) | 0x0010000000000000LL; ix 312 arch/sh/kernel/cpu/sh2a/fpu.c static long long denormal_addd1(unsigned long long ix, unsigned long long iy) ix 317 arch/sh/kernel/cpu/sh2a/fpu.c if (ix < 0x0010000000000000LL) ix 318 arch/sh/kernel/cpu/sh2a/fpu.c return ix + iy; ix 320 arch/sh/kernel/cpu/sh2a/fpu.c exp = (ix & 0x7ff0000000000000LL) >> 52; ix 322 arch/sh/kernel/cpu/sh2a/fpu.c return ix; ix 325 arch/sh/kernel/cpu/sh2a/fpu.c return ix; ix 327 arch/sh/kernel/cpu/sh2a/fpu.c frac = (ix & 0x000fffffffffffffLL) | 0x0010000000000000LL; ix 339 arch/sh/kernel/cpu/sh2a/fpu.c unsigned long long ix, iy; ix 344 arch/sh/kernel/cpu/sh2a/fpu.c ix = hx & 0x7fffffffffffffffLL; ix 347 arch/sh/kernel/cpu/sh2a/fpu.c ix = denormal_subd1(ix, iy); ix 348 arch/sh/kernel/cpu/sh2a/fpu.c if ((int) ix < 0) { ix 349 arch/sh/kernel/cpu/sh2a/fpu.c ix = -ix; ix 353 arch/sh/kernel/cpu/sh2a/fpu.c ix = denormal_subd1(iy, ix); ix 358 arch/sh/kernel/cpu/sh2a/fpu.c ix = hx & 0x7fffffffffffffffLL; ix 361 arch/sh/kernel/cpu/sh2a/fpu.c ix = denormal_addd1(ix, iy); ix 363 arch/sh/kernel/cpu/sh2a/fpu.c ix = denormal_addd1(iy, ix); ix 366 arch/sh/kernel/cpu/sh2a/fpu.c return sign | ix; ix 323 drivers/char/pcmcia/cm4000_cs.c int ix, done; ix 336 drivers/char/pcmcia/cm4000_cs.c ix = 1; ix 354 drivers/char/pcmcia/cm4000_cs.c ix += ((ch & 0x10) >> 4) /* no of int.face chars */ ix 360 drivers/char/pcmcia/cm4000_cs.c ch = dev->atr[ix]; ix 373 drivers/char/pcmcia/cm4000_cs.c ix, dev->atr[1] & 15, any_t1); ix 374 drivers/char/pcmcia/cm4000_cs.c if (ix + 1 + (dev->atr[1] & 0x0f) + any_t1 != dev->atr_len) { ix 49 drivers/gpu/drm/amd/display/dc/dce/dce_audio.c ix ## reg ix 318 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c unsigned int pixelsPerClock, lstall, D, initalXmitDelay, w, s, ix, wx, p, l0, a, ax, l, ix 348 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c ix = initalXmitDelay + 45; ix 351 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c l0 = ix / w; ix 352 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c a = ix + p * l0; ix 355 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((ix % w) == 0 && p != 0) ix 341 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c unsigned int pixelsPerClock, lstall, D, initalXmitDelay, w, s, ix, wx, p, l0, a, ax, l, ix 371 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c ix = initalXmitDelay + 45; ix 374 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c l0 = ix / w; ix 375 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c a = ix + p * l0; ix 378 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((ix % w) == 0 && p != 0) ix 513 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c unsigned int pixelsPerClock, lstall, D, initalXmitDelay, w, S, ix, wx, p, l0, a, ax, l, ix 543 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c ix = initalXmitDelay + 45; ix 546 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c l0 = ix / w; ix 547 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c a = ix + p * l0; ix 550 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if ((ix % w) == 0 && p != 0) ix 135 drivers/gpu/drm/amd/include/cgs_common.h cgs_write_ind_register(device, space, ix##reg, (cgs_read_ind_register(device, space, ix##reg) & ~CGS_REG_FIELD_MASK(reg, field)) | (val) << CGS_REG_FIELD_SHIFT(reg, field)) ix 1478 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c int ix; ix 1485 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c ix = GetIndexIntoMasterTable(DATA, ASIC_ProfilingInfo); ix 1489 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c ix, ix 498 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c uint32_t ix; ix 505 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c ix = GetIndexIntoMasterCmdTable(getsmuclockinfo); ix 508 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c adev->mode_info.atom_context, ix, (uint32_t *)¶meters)) ix 592 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c uint16_t ix; ix 594 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c ix = GetIndexIntoMasterDataTable(firmwareinfo); ix 597 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c ix, NULL, NULL, NULL); ix 624 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c uint16_t ix; ix 626 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c ix = GetIndexIntoMasterDataTable(smc_dpm_info); ix 629 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomfwctrl.c ix, NULL, NULL, NULL); ix 142 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.h PHM_GET_FIELD(cgs_read_ind_register(device, port, ix##reg), \ ix 146 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.h PHM_GET_FIELD(cgs_read_ind_register(device, port, ix##reg), \ ix 154 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.h cgs_write_ind_register(device, port, ix##reg, \ ix 155 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.h PHM_SET_FIELD(cgs_read_ind_register(device, port, ix##reg), \ ix 159 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.h cgs_write_ind_register(device, port, ix##reg, \ ix 160 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.h PHM_SET_FIELD(cgs_read_ind_register(device, port, ix##reg), \ ix 168 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.h PHM_WAIT_INDIRECT_REGISTER_GIVEN_INDEX(hwmgr, port, ix##reg, value, mask) ix 179 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.h PHM_WAIT_INDIRECT_REGISTER_UNEQUAL_GIVEN_INDEX(hwmgr, port, ix##reg, value, mask) ix 193 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.h PHM_WAIT_VFPF_INDIRECT_REGISTER_UNEQUAL_GIVEN_INDEX(hwmgr, port, ix##reg, value, mask) ix 207 drivers/gpu/drm/amd/powerplay/hwmgr/smu_helper.h PHM_WAIT_VFPF_INDIRECT_REGISTER_GIVEN_INDEX(hwmgr, port, ix##reg, value, mask) ix 533 drivers/gpu/drm/radeon/r600_dpm.c u32 ix = 3 - (3 & index); ix 535 drivers/gpu/drm/radeon/r600_dpm.c WREG32(CTXSW_VID_LOWER_GPIO_CNTL + (ix * 4), pins & 0xffffffff); ix 537 drivers/gpu/drm/radeon/r600_dpm.c mask = 7 << (3 * ix); ix 539 drivers/gpu/drm/radeon/r600_dpm.c tmp = (tmp & ~mask) | ((pins >> (32 - (3 * ix))) & mask); ix 564 drivers/gpu/drm/radeon/r600_dpm.c u32 ix = 3 - (3 & index); ix 567 drivers/gpu/drm/radeon/r600_dpm.c WREG32_P(CTXSW_PROFILE_INDEX + (ix * 4), CTXSW_FREQ_STATE_ENABLE, ix 570 drivers/gpu/drm/radeon/r600_dpm.c WREG32_P(CTXSW_PROFILE_INDEX + (ix * 4), 0, ix 577 drivers/gpu/drm/radeon/r600_dpm.c u32 ix = 3 - (3 & index); ix 579 drivers/gpu/drm/radeon/r600_dpm.c WREG32_P(CTXSW_PROFILE_INDEX + (ix * 4), ix 586 drivers/gpu/drm/radeon/r600_dpm.c u32 ix = 3 - (3 & index); ix 588 drivers/gpu/drm/radeon/r600_dpm.c WREG32_P(CTXSW_PROFILE_INDEX + (ix * 4), ix 595 drivers/gpu/drm/radeon/r600_dpm.c u32 ix = 3 - (3 & index); ix 597 drivers/gpu/drm/radeon/r600_dpm.c WREG32_P(CTXSW_PROFILE_INDEX + (ix * 4), ix 605 drivers/gpu/drm/radeon/r600_dpm.c u32 ix = 3 - (3 & index); ix 610 drivers/gpu/drm/radeon/r600_dpm.c WREG32_P(CTXSW_PROFILE_INDEX + (ix * 4), tmp, ~CTXSW_FREQ_DISPLAY_WATERMARK); ix 616 drivers/gpu/drm/radeon/r600_dpm.c u32 ix = 3 - (3 & index); ix 621 drivers/gpu/drm/radeon/r600_dpm.c WREG32_P(CTXSW_PROFILE_INDEX + (ix * 4), tmp, ~CTXSW_FREQ_GEN2PCIE_VOLT); ix 590 drivers/gpu/drm/radeon/trinity_dpm.c u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE; ix 597 drivers/gpu/drm/radeon/trinity_dpm.c value = RREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_0 + ix); ix 600 drivers/gpu/drm/radeon/trinity_dpm.c WREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_0 + ix, value); ix 607 drivers/gpu/drm/radeon/trinity_dpm.c value = RREG32_SMC(SMU_SCLK_DPM_STATE_0_PG_CNTL + ix); ix 610 drivers/gpu/drm/radeon/trinity_dpm.c WREG32_SMC(SMU_SCLK_DPM_STATE_0_PG_CNTL + ix, value); ix 617 drivers/gpu/drm/radeon/trinity_dpm.c u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE; ix 619 drivers/gpu/drm/radeon/trinity_dpm.c value = RREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_1 + ix); ix 622 drivers/gpu/drm/radeon/trinity_dpm.c WREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_1 + ix, value); ix 629 drivers/gpu/drm/radeon/trinity_dpm.c u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE; ix 631 drivers/gpu/drm/radeon/trinity_dpm.c value = RREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_1 + ix); ix 634 drivers/gpu/drm/radeon/trinity_dpm.c WREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_1 + ix, value); ix 642 drivers/gpu/drm/radeon/trinity_dpm.c u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE; ix 644 drivers/gpu/drm/radeon/trinity_dpm.c value = RREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_0 + ix); ix 647 drivers/gpu/drm/radeon/trinity_dpm.c WREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_0 + ix, value); ix 649 drivers/gpu/drm/radeon/trinity_dpm.c value = RREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_0 + ix); ix 652 drivers/gpu/drm/radeon/trinity_dpm.c WREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_0 + ix, value); ix 659 drivers/gpu/drm/radeon/trinity_dpm.c u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE; ix 661 drivers/gpu/drm/radeon/trinity_dpm.c value = RREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_3 + ix); ix 664 drivers/gpu/drm/radeon/trinity_dpm.c WREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_3 + ix, value); ix 671 drivers/gpu/drm/radeon/trinity_dpm.c u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE; ix 673 drivers/gpu/drm/radeon/trinity_dpm.c value = RREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_3 + ix); ix 676 drivers/gpu/drm/radeon/trinity_dpm.c WREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_3 + ix, value); ix 683 drivers/gpu/drm/radeon/trinity_dpm.c u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE; ix 685 drivers/gpu/drm/radeon/trinity_dpm.c value = RREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_1 + ix); ix 688 drivers/gpu/drm/radeon/trinity_dpm.c WREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_1 + ix, value); ix 695 drivers/gpu/drm/radeon/trinity_dpm.c u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE; ix 697 drivers/gpu/drm/radeon/trinity_dpm.c value = RREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_1 + ix); ix 700 drivers/gpu/drm/radeon/trinity_dpm.c WREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_1 + ix, value); ix 707 drivers/gpu/drm/radeon/trinity_dpm.c u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE; ix 709 drivers/gpu/drm/radeon/trinity_dpm.c value = RREG32_SMC(SMU_SCLK_DPM_STATE_0_AT + ix); ix 712 drivers/gpu/drm/radeon/trinity_dpm.c WREG32_SMC(SMU_SCLK_DPM_STATE_0_AT + ix, value); ix 738 drivers/gpu/drm/radeon/trinity_dpm.c u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE; ix 740 drivers/gpu/drm/radeon/trinity_dpm.c value = RREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_0 + ix); ix 744 drivers/gpu/drm/radeon/trinity_dpm.c WREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_0 + ix, value); ix 271 drivers/hwmon/amc6821.c int ix = to_sensor_dev_attr(devattr)->index; ix 273 drivers/hwmon/amc6821.c return sprintf(buf, "%d\n", data->temp[ix] * 1000); ix 281 drivers/hwmon/amc6821.c int ix = to_sensor_dev_attr(attr)->index; ix 290 drivers/hwmon/amc6821.c data->temp[ix] = val; ix 291 drivers/hwmon/amc6821.c if (i2c_smbus_write_byte_data(client, temp_reg[ix], data->temp[ix])) { ix 303 drivers/hwmon/amc6821.c int ix = to_sensor_dev_attr(devattr)->index; ix 306 drivers/hwmon/amc6821.c switch (ix) { ix 326 drivers/hwmon/amc6821.c dev_dbg(dev, "Unknown attr->index (%d).\n", ix); ix 436 drivers/hwmon/amc6821.c int ix = to_sensor_dev_attr_2(devattr)->index; ix 442 drivers/hwmon/amc6821.c data->temp1_auto_point_temp[ix] * 1000); ix 445 drivers/hwmon/amc6821.c data->temp2_auto_point_temp[ix] * 1000); ix 456 drivers/hwmon/amc6821.c int ix = to_sensor_dev_attr(devattr)->index; ix 458 drivers/hwmon/amc6821.c return sprintf(buf, "%d\n", data->pwm1_auto_point_pwm[ix]); ix 489 drivers/hwmon/amc6821.c int ix = to_sensor_dev_attr_2(attr)->index; ix 516 drivers/hwmon/amc6821.c switch (ix) { ix 541 drivers/hwmon/amc6821.c dev_dbg(dev, "Unknown attr->index (%d).\n", ix); ix 596 drivers/hwmon/amc6821.c int ix = to_sensor_dev_attr(devattr)->index; ix 597 drivers/hwmon/amc6821.c if (0 == data->fan[ix]) ix 599 drivers/hwmon/amc6821.c return sprintf(buf, "%d\n", (int)(6000000 / data->fan[ix])); ix 618 drivers/hwmon/amc6821.c int ix = to_sensor_dev_attr(attr)->index; ix 625 drivers/hwmon/amc6821.c data->fan[ix] = (u16) clamp_val(val, 1, 0xFFFF); ix 626 drivers/hwmon/amc6821.c if (i2c_smbus_write_byte_data(client, fan_reg_low[ix], ix 627 drivers/hwmon/amc6821.c data->fan[ix] & 0xFF)) { ix 633 drivers/hwmon/amc6821.c fan_reg_hi[ix], data->fan[ix] >> 8)) { ix 74 drivers/hwmon/dme1737.c #define DME1737_REG_IN(ix) ((ix) < 5 ? 0x20 + (ix) : \ ix 75 drivers/hwmon/dme1737.c (ix) < 7 ? 0x94 + (ix) : \ ix 77 drivers/hwmon/dme1737.c #define DME1737_REG_IN_MIN(ix) ((ix) < 5 ? 0x44 + (ix) * 2 \ ix 78 drivers/hwmon/dme1737.c : 0x91 + (ix) * 2) ix 79 drivers/hwmon/dme1737.c #define DME1737_REG_IN_MAX(ix) ((ix) < 5 ? 0x45 + (ix) * 2 \ ix 80 drivers/hwmon/dme1737.c : 0x92 + (ix) * 2) ix 83 drivers/hwmon/dme1737.c #define DME1737_REG_TEMP(ix) (0x25 + (ix)) ix 84 drivers/hwmon/dme1737.c #define DME1737_REG_TEMP_MIN(ix) (0x4e + (ix) * 2) ix 85 drivers/hwmon/dme1737.c #define DME1737_REG_TEMP_MAX(ix) (0x4f + (ix) * 2) ix 86 drivers/hwmon/dme1737.c #define DME1737_REG_TEMP_OFFSET(ix) ((ix) == 0 ? 0x1f \ ix 87 drivers/hwmon/dme1737.c : 0x1c + (ix)) ix 99 drivers/hwmon/dme1737.c #define DME1737_REG_IN_TEMP_LSB(ix) (0x84 + (ix)) ix 106 drivers/hwmon/dme1737.c #define DME1737_REG_FAN(ix) ((ix) < 4 ? 0x28 + (ix) * 2 \ ix 107 drivers/hwmon/dme1737.c : 0xa1 + (ix) * 2) ix 108 drivers/hwmon/dme1737.c #define DME1737_REG_FAN_MIN(ix) ((ix) < 4 ? 0x54 + (ix) * 2 \ ix 109 drivers/hwmon/dme1737.c : 0xa5 + (ix) * 2) ix 110 drivers/hwmon/dme1737.c #define DME1737_REG_FAN_OPT(ix) ((ix) < 4 ? 0x90 + (ix) \ ix 111 drivers/hwmon/dme1737.c : 0xb2 + (ix)) ix 112 drivers/hwmon/dme1737.c #define DME1737_REG_FAN_MAX(ix) (0xb4 + (ix)) /* only for fan[4-5] */ ix 115 drivers/hwmon/dme1737.c #define DME1737_REG_PWM(ix) ((ix) < 3 ? 0x30 + (ix) \ ix 116 drivers/hwmon/dme1737.c : 0xa1 + (ix)) ix 117 drivers/hwmon/dme1737.c #define DME1737_REG_PWM_CONFIG(ix) (0x5c + (ix)) /* only for pwm[0-2] */ ix 118 drivers/hwmon/dme1737.c #define DME1737_REG_PWM_MIN(ix) (0x64 + (ix)) /* only for pwm[0-2] */ ix 119 drivers/hwmon/dme1737.c #define DME1737_REG_PWM_FREQ(ix) ((ix) < 3 ? 0x5f + (ix) \ ix 120 drivers/hwmon/dme1737.c : 0xa3 + (ix)) ix 127 drivers/hwmon/dme1737.c #define DME1737_REG_PWM_RR(ix) (0x62 + (ix)) /* only for pwm[0-2] */ ix 130 drivers/hwmon/dme1737.c #define DME1737_REG_ZONE_LOW(ix) (0x67 + (ix)) ix 131 drivers/hwmon/dme1737.c #define DME1737_REG_ZONE_ABS(ix) (0x6a + (ix)) ix 138 drivers/hwmon/dme1737.c #define DME1737_REG_ZONE_HYST(ix) (0x6d + (ix)) ix 191 drivers/hwmon/dme1737.c #define HAS_FAN(ix) (1 << ((ix) + 5)) /* bits 5-10 */ ix 192 drivers/hwmon/dme1737.c #define HAS_PWM(ix) (1 << ((ix) + 11)) /* bits 11-16 */ ix 318 drivers/hwmon/dme1737.c static inline int TEMP_HYST_FROM_REG(int reg, int ix) ix 320 drivers/hwmon/dme1737.c return (((ix == 1) ? reg : reg >> 4) & 0x0f) * 1000; ix 323 drivers/hwmon/dme1737.c static inline int TEMP_HYST_TO_REG(int temp, long hyst, int ix, int reg) ix 328 drivers/hwmon/dme1737.c return (ix == 1) ? (reg & 0xf0) | hyst : (reg & 0x0f) | (hyst << 4); ix 496 drivers/hwmon/dme1737.c static inline int PWM_RR_FROM_REG(int reg, int ix) ix 498 drivers/hwmon/dme1737.c int rr = (ix == 1) ? reg >> 4 : reg; ix 503 drivers/hwmon/dme1737.c static int PWM_RR_TO_REG(long val, int ix, int reg) ix 512 drivers/hwmon/dme1737.c return (ix == 1) ? (reg & 0x8f) | (i << 4) : (reg & 0xf8) | i; ix 516 drivers/hwmon/dme1737.c static inline int PWM_RR_EN_FROM_REG(int reg, int ix) ix 518 drivers/hwmon/dme1737.c return PWM_RR_FROM_REG(reg, ix) ? 1 : 0; ix 521 drivers/hwmon/dme1737.c static inline int PWM_RR_EN_TO_REG(long val, int ix, int reg) ix 523 drivers/hwmon/dme1737.c int en = (ix == 1) ? 0x80 : 0x08; ix 533 drivers/hwmon/dme1737.c static inline int PWM_OFF_FROM_REG(int reg, int ix) ix 535 drivers/hwmon/dme1737.c return (reg >> (ix + 5)) & 0x01; ix 538 drivers/hwmon/dme1737.c static inline int PWM_OFF_TO_REG(int val, int ix, int reg) ix 540 drivers/hwmon/dme1737.c return (reg & ~(1 << (ix + 5))) | ((val & 0x01) << (ix + 5)); ix 597 drivers/hwmon/dme1737.c int ix; ix 617 drivers/hwmon/dme1737.c for (ix = 0; ix < ARRAY_SIZE(data->in); ix++) { ix 623 drivers/hwmon/dme1737.c if (ix == 7 && !(data->has_features & HAS_IN7)) ix 625 drivers/hwmon/dme1737.c data->in[ix] = dme1737_read(data, ix 626 drivers/hwmon/dme1737.c DME1737_REG_IN(ix)) << 8; ix 627 drivers/hwmon/dme1737.c data->in_min[ix] = dme1737_read(data, ix 628 drivers/hwmon/dme1737.c DME1737_REG_IN_MIN(ix)); ix 629 drivers/hwmon/dme1737.c data->in_max[ix] = dme1737_read(data, ix 630 drivers/hwmon/dme1737.c DME1737_REG_IN_MAX(ix)); ix 634 drivers/hwmon/dme1737.c for (ix = 0; ix < ARRAY_SIZE(data->temp); ix++) { ix 642 drivers/hwmon/dme1737.c data->temp[ix] = dme1737_read(data, ix 643 drivers/hwmon/dme1737.c DME1737_REG_TEMP(ix)) << 8; ix 644 drivers/hwmon/dme1737.c data->temp_min[ix] = dme1737_read(data, ix 645 drivers/hwmon/dme1737.c DME1737_REG_TEMP_MIN(ix)); ix 646 drivers/hwmon/dme1737.c data->temp_max[ix] = dme1737_read(data, ix 647 drivers/hwmon/dme1737.c DME1737_REG_TEMP_MAX(ix)); ix 649 drivers/hwmon/dme1737.c data->temp_offset[ix] = dme1737_read(data, ix 650 drivers/hwmon/dme1737.c DME1737_REG_TEMP_OFFSET(ix)); ix 660 drivers/hwmon/dme1737.c for (ix = 0; ix < ARRAY_SIZE(lsb); ix++) { ix 661 drivers/hwmon/dme1737.c if (ix == 5 && !(data->has_features & HAS_IN7)) ix 663 drivers/hwmon/dme1737.c lsb[ix] = dme1737_read(data, ix 664 drivers/hwmon/dme1737.c DME1737_REG_IN_TEMP_LSB(ix)); ix 666 drivers/hwmon/dme1737.c for (ix = 0; ix < ARRAY_SIZE(data->in); ix++) { ix 667 drivers/hwmon/dme1737.c if (ix == 7 && !(data->has_features & HAS_IN7)) ix 669 drivers/hwmon/dme1737.c data->in[ix] |= (lsb[DME1737_REG_IN_LSB[ix]] << ix 670 drivers/hwmon/dme1737.c DME1737_REG_IN_LSB_SHL[ix]) & 0xf0; ix 672 drivers/hwmon/dme1737.c for (ix = 0; ix < ARRAY_SIZE(data->temp); ix++) { ix 673 drivers/hwmon/dme1737.c data->temp[ix] |= (lsb[DME1737_REG_TEMP_LSB[ix]] << ix 674 drivers/hwmon/dme1737.c DME1737_REG_TEMP_LSB_SHL[ix]) & 0xf0; ix 678 drivers/hwmon/dme1737.c for (ix = 0; ix < ARRAY_SIZE(data->fan); ix++) { ix 683 drivers/hwmon/dme1737.c if (!(data->has_features & HAS_FAN(ix))) ix 685 drivers/hwmon/dme1737.c data->fan[ix] = dme1737_read(data, ix 686 drivers/hwmon/dme1737.c DME1737_REG_FAN(ix)); ix 687 drivers/hwmon/dme1737.c data->fan[ix] |= dme1737_read(data, ix 688 drivers/hwmon/dme1737.c DME1737_REG_FAN(ix) + 1) << 8; ix 689 drivers/hwmon/dme1737.c data->fan_min[ix] = dme1737_read(data, ix 690 drivers/hwmon/dme1737.c DME1737_REG_FAN_MIN(ix)); ix 691 drivers/hwmon/dme1737.c data->fan_min[ix] |= dme1737_read(data, ix 692 drivers/hwmon/dme1737.c DME1737_REG_FAN_MIN(ix) + 1) << 8; ix 693 drivers/hwmon/dme1737.c data->fan_opt[ix] = dme1737_read(data, ix 694 drivers/hwmon/dme1737.c DME1737_REG_FAN_OPT(ix)); ix 696 drivers/hwmon/dme1737.c if (ix > 3) { ix 697 drivers/hwmon/dme1737.c data->fan_max[ix - 4] = dme1737_read(data, ix 698 drivers/hwmon/dme1737.c DME1737_REG_FAN_MAX(ix)); ix 703 drivers/hwmon/dme1737.c for (ix = 0; ix < ARRAY_SIZE(data->pwm); ix++) { ix 708 drivers/hwmon/dme1737.c if (!(data->has_features & HAS_PWM(ix))) ix 710 drivers/hwmon/dme1737.c data->pwm[ix] = dme1737_read(data, ix 711 drivers/hwmon/dme1737.c DME1737_REG_PWM(ix)); ix 712 drivers/hwmon/dme1737.c data->pwm_freq[ix] = dme1737_read(data, ix 713 drivers/hwmon/dme1737.c DME1737_REG_PWM_FREQ(ix)); ix 715 drivers/hwmon/dme1737.c if (ix < 3) { ix 716 drivers/hwmon/dme1737.c data->pwm_config[ix] = dme1737_read(data, ix 717 drivers/hwmon/dme1737.c DME1737_REG_PWM_CONFIG(ix)); ix 718 drivers/hwmon/dme1737.c data->pwm_min[ix] = dme1737_read(data, ix 719 drivers/hwmon/dme1737.c DME1737_REG_PWM_MIN(ix)); ix 722 drivers/hwmon/dme1737.c for (ix = 0; ix < ARRAY_SIZE(data->pwm_rr); ix++) { ix 723 drivers/hwmon/dme1737.c data->pwm_rr[ix] = dme1737_read(data, ix 724 drivers/hwmon/dme1737.c DME1737_REG_PWM_RR(ix)); ix 728 drivers/hwmon/dme1737.c for (ix = 0; ix < ARRAY_SIZE(data->zone_low); ix++) { ix 730 drivers/hwmon/dme1737.c if ((ix == 2) && !(data->has_features & HAS_ZONE3)) ix 733 drivers/hwmon/dme1737.c if ((ix == 1) && (data->type == sch5127)) { ix 739 drivers/hwmon/dme1737.c data->zone_low[ix] = dme1737_read(data, ix 740 drivers/hwmon/dme1737.c DME1737_REG_ZONE_LOW(ix)); ix 741 drivers/hwmon/dme1737.c data->zone_abs[ix] = dme1737_read(data, ix 742 drivers/hwmon/dme1737.c DME1737_REG_ZONE_ABS(ix)); ix 746 drivers/hwmon/dme1737.c for (ix = 0; ix < ARRAY_SIZE(data->zone_hyst); ix++) { ix 747 drivers/hwmon/dme1737.c data->zone_hyst[ix] = dme1737_read(data, ix 748 drivers/hwmon/dme1737.c DME1737_REG_ZONE_HYST(ix)); ix 805 drivers/hwmon/dme1737.c int ix = sensor_attr_2->index; ix 811 drivers/hwmon/dme1737.c res = IN_FROM_REG(data->in[ix], data->in_nominal[ix], 16); ix 814 drivers/hwmon/dme1737.c res = IN_FROM_REG(data->in_min[ix], data->in_nominal[ix], 8); ix 817 drivers/hwmon/dme1737.c res = IN_FROM_REG(data->in_max[ix], data->in_nominal[ix], 8); ix 820 drivers/hwmon/dme1737.c res = (data->alarms >> DME1737_BIT_ALARM_IN[ix]) & 0x01; ix 836 drivers/hwmon/dme1737.c int ix = sensor_attr_2->index; ix 848 drivers/hwmon/dme1737.c data->in_min[ix] = IN_TO_REG(val, data->in_nominal[ix]); ix 849 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_IN_MIN(ix), ix 850 drivers/hwmon/dme1737.c data->in_min[ix]); ix 853 drivers/hwmon/dme1737.c data->in_max[ix] = IN_TO_REG(val, data->in_nominal[ix]); ix 854 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_IN_MAX(ix), ix 855 drivers/hwmon/dme1737.c data->in_max[ix]); ix 883 drivers/hwmon/dme1737.c int ix = sensor_attr_2->index; ix 889 drivers/hwmon/dme1737.c res = TEMP_FROM_REG(data->temp[ix], 16); ix 892 drivers/hwmon/dme1737.c res = TEMP_FROM_REG(data->temp_min[ix], 8); ix 895 drivers/hwmon/dme1737.c res = TEMP_FROM_REG(data->temp_max[ix], 8); ix 898 drivers/hwmon/dme1737.c res = TEMP_FROM_REG(data->temp_offset[ix], 8); ix 901 drivers/hwmon/dme1737.c res = (data->alarms >> DME1737_BIT_ALARM_TEMP[ix]) & 0x01; ix 904 drivers/hwmon/dme1737.c res = (((u16)data->temp[ix] & 0xff00) == 0x8000); ix 920 drivers/hwmon/dme1737.c int ix = sensor_attr_2->index; ix 932 drivers/hwmon/dme1737.c data->temp_min[ix] = TEMP_TO_REG(val); ix 933 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_TEMP_MIN(ix), ix 934 drivers/hwmon/dme1737.c data->temp_min[ix]); ix 937 drivers/hwmon/dme1737.c data->temp_max[ix] = TEMP_TO_REG(val); ix 938 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_TEMP_MAX(ix), ix 939 drivers/hwmon/dme1737.c data->temp_max[ix]); ix 942 drivers/hwmon/dme1737.c data->temp_offset[ix] = TEMP_TO_REG(val); ix 943 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_TEMP_OFFSET(ix), ix 944 drivers/hwmon/dme1737.c data->temp_offset[ix]); ix 971 drivers/hwmon/dme1737.c int ix = sensor_attr_2->index; ix 978 drivers/hwmon/dme1737.c if ((ix == 1) && (data->config2 & 0x02)) ix 981 drivers/hwmon/dme1737.c res = 1 << ix; ix 984 drivers/hwmon/dme1737.c res = TEMP_FROM_REG(data->zone_low[ix], 8) - ix 985 drivers/hwmon/dme1737.c TEMP_HYST_FROM_REG(data->zone_hyst[ix == 2], ix); ix 988 drivers/hwmon/dme1737.c res = TEMP_FROM_REG(data->zone_low[ix], 8); ix 992 drivers/hwmon/dme1737.c res = TEMP_FROM_REG(data->zone_low[ix], 8) + ix 993 drivers/hwmon/dme1737.c TEMP_RANGE_FROM_REG(data->pwm_freq[ix]); ix 996 drivers/hwmon/dme1737.c res = TEMP_FROM_REG(data->zone_abs[ix], 8); ix 1012 drivers/hwmon/dme1737.c int ix = sensor_attr_2->index; ix 1027 drivers/hwmon/dme1737.c data->zone_low[ix] = dme1737_read(data, ix 1028 drivers/hwmon/dme1737.c DME1737_REG_ZONE_LOW(ix)); ix 1030 drivers/hwmon/dme1737.c temp = TEMP_FROM_REG(data->zone_low[ix], 8); ix 1031 drivers/hwmon/dme1737.c reg = dme1737_read(data, DME1737_REG_ZONE_HYST(ix == 2)); ix 1032 drivers/hwmon/dme1737.c data->zone_hyst[ix == 2] = TEMP_HYST_TO_REG(temp, val, ix, reg); ix 1033 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_ZONE_HYST(ix == 2), ix 1034 drivers/hwmon/dme1737.c data->zone_hyst[ix == 2]); ix 1037 drivers/hwmon/dme1737.c data->zone_low[ix] = TEMP_TO_REG(val); ix 1038 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_ZONE_LOW(ix), ix 1039 drivers/hwmon/dme1737.c data->zone_low[ix]); ix 1043 drivers/hwmon/dme1737.c data->zone_low[ix] = dme1737_read(data, ix 1044 drivers/hwmon/dme1737.c DME1737_REG_ZONE_LOW(ix)); ix 1049 drivers/hwmon/dme1737.c temp = TEMP_FROM_REG(data->zone_low[ix], 8); ix 1051 drivers/hwmon/dme1737.c reg = dme1737_read(data, DME1737_REG_PWM_FREQ(ix)); ix 1052 drivers/hwmon/dme1737.c data->pwm_freq[ix] = TEMP_RANGE_TO_REG(val - temp, reg); ix 1053 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_PWM_FREQ(ix), ix 1054 drivers/hwmon/dme1737.c data->pwm_freq[ix]); ix 1057 drivers/hwmon/dme1737.c data->zone_abs[ix] = TEMP_TO_REG(val); ix 1058 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_ZONE_ABS(ix), ix 1059 drivers/hwmon/dme1737.c data->zone_abs[ix]); ix 1086 drivers/hwmon/dme1737.c int ix = sensor_attr_2->index; ix 1092 drivers/hwmon/dme1737.c res = FAN_FROM_REG(data->fan[ix], ix 1093 drivers/hwmon/dme1737.c ix < 4 ? 0 : ix 1094 drivers/hwmon/dme1737.c FAN_TPC_FROM_REG(data->fan_opt[ix])); ix 1097 drivers/hwmon/dme1737.c res = FAN_FROM_REG(data->fan_min[ix], ix 1098 drivers/hwmon/dme1737.c ix < 4 ? 0 : ix 1099 drivers/hwmon/dme1737.c FAN_TPC_FROM_REG(data->fan_opt[ix])); ix 1103 drivers/hwmon/dme1737.c res = FAN_MAX_FROM_REG(data->fan_max[ix - 4]); ix 1106 drivers/hwmon/dme1737.c res = (data->alarms >> DME1737_BIT_ALARM_FAN[ix]) & 0x01; ix 1110 drivers/hwmon/dme1737.c res = FAN_TYPE_FROM_REG(data->fan_opt[ix]); ix 1126 drivers/hwmon/dme1737.c int ix = sensor_attr_2->index; ix 1138 drivers/hwmon/dme1737.c if (ix < 4) { ix 1139 drivers/hwmon/dme1737.c data->fan_min[ix] = FAN_TO_REG(val, 0); ix 1142 drivers/hwmon/dme1737.c data->fan_opt[ix] = dme1737_read(data, ix 1143 drivers/hwmon/dme1737.c DME1737_REG_FAN_OPT(ix)); ix 1145 drivers/hwmon/dme1737.c data->fan_min[ix] = FAN_TO_REG(val, ix 1146 drivers/hwmon/dme1737.c FAN_TPC_FROM_REG(data->fan_opt[ix])); ix 1148 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_FAN_MIN(ix), ix 1149 drivers/hwmon/dme1737.c data->fan_min[ix] & 0xff); ix 1150 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_FAN_MIN(ix) + 1, ix 1151 drivers/hwmon/dme1737.c data->fan_min[ix] >> 8); ix 1155 drivers/hwmon/dme1737.c data->fan_max[ix - 4] = FAN_MAX_TO_REG(val); ix 1156 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_FAN_MAX(ix), ix 1157 drivers/hwmon/dme1737.c data->fan_max[ix - 4]); ix 1168 drivers/hwmon/dme1737.c data->fan_opt[ix] = FAN_TYPE_TO_REG(val, dme1737_read(data, ix 1169 drivers/hwmon/dme1737.c DME1737_REG_FAN_OPT(ix))); ix 1170 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_FAN_OPT(ix), ix 1171 drivers/hwmon/dme1737.c data->fan_opt[ix]); ix 1202 drivers/hwmon/dme1737.c int ix = sensor_attr_2->index; ix 1208 drivers/hwmon/dme1737.c if (PWM_EN_FROM_REG(data->pwm_config[ix]) == 0) ix 1211 drivers/hwmon/dme1737.c res = data->pwm[ix]; ix 1214 drivers/hwmon/dme1737.c res = PWM_FREQ_FROM_REG(data->pwm_freq[ix]); ix 1217 drivers/hwmon/dme1737.c if (ix >= 3) ix 1220 drivers/hwmon/dme1737.c res = PWM_EN_FROM_REG(data->pwm_config[ix]); ix 1224 drivers/hwmon/dme1737.c res = PWM_RR_FROM_REG(data->pwm_rr[ix > 0], ix); ix 1228 drivers/hwmon/dme1737.c if (PWM_EN_FROM_REG(data->pwm_config[ix]) == 2) ix 1229 drivers/hwmon/dme1737.c res = PWM_ACZ_FROM_REG(data->pwm_config[ix]); ix 1231 drivers/hwmon/dme1737.c res = data->pwm_acz[ix]; ix 1235 drivers/hwmon/dme1737.c if (PWM_OFF_FROM_REG(data->pwm_rr[0], ix)) ix 1236 drivers/hwmon/dme1737.c res = data->pwm_min[ix]; ix 1242 drivers/hwmon/dme1737.c res = data->pwm_min[ix]; ix 1265 drivers/hwmon/dme1737.c int ix = sensor_attr_2->index; ix 1277 drivers/hwmon/dme1737.c data->pwm[ix] = clamp_val(val, 0, 255); ix 1278 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_PWM(ix), data->pwm[ix]); ix 1281 drivers/hwmon/dme1737.c data->pwm_freq[ix] = PWM_FREQ_TO_REG(val, dme1737_read(data, ix 1282 drivers/hwmon/dme1737.c DME1737_REG_PWM_FREQ(ix))); ix 1283 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_PWM_FREQ(ix), ix 1284 drivers/hwmon/dme1737.c data->pwm_freq[ix]); ix 1296 drivers/hwmon/dme1737.c data->pwm_config[ix] = dme1737_read(data, ix 1297 drivers/hwmon/dme1737.c DME1737_REG_PWM_CONFIG(ix)); ix 1298 drivers/hwmon/dme1737.c if (val == PWM_EN_FROM_REG(data->pwm_config[ix])) { ix 1303 drivers/hwmon/dme1737.c if (PWM_EN_FROM_REG(data->pwm_config[ix]) == 2) { ix 1305 drivers/hwmon/dme1737.c data->pwm_acz[ix] = PWM_ACZ_FROM_REG( ix 1306 drivers/hwmon/dme1737.c data->pwm_config[ix]); ix 1308 drivers/hwmon/dme1737.c data->pwm_rr[ix > 0] = dme1737_read(data, ix 1309 drivers/hwmon/dme1737.c DME1737_REG_PWM_RR(ix > 0)); ix 1310 drivers/hwmon/dme1737.c data->pwm_rr_en &= ~(1 << ix); ix 1311 drivers/hwmon/dme1737.c if (PWM_RR_EN_FROM_REG(data->pwm_rr[ix > 0], ix)) { ix 1312 drivers/hwmon/dme1737.c data->pwm_rr_en |= (1 << ix); ix 1313 drivers/hwmon/dme1737.c data->pwm_rr[ix > 0] = PWM_RR_EN_TO_REG(0, ix, ix 1314 drivers/hwmon/dme1737.c data->pwm_rr[ix > 0]); ix 1316 drivers/hwmon/dme1737.c DME1737_REG_PWM_RR(ix > 0), ix 1317 drivers/hwmon/dme1737.c data->pwm_rr[ix > 0]); ix 1324 drivers/hwmon/dme1737.c dme1737_chmod_file(dev, dme1737_pwm_chmod_attr[ix], ix 1327 drivers/hwmon/dme1737.c data->pwm_config[ix] = PWM_EN_TO_REG(0, ix 1328 drivers/hwmon/dme1737.c data->pwm_config[ix]); ix 1329 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_PWM_CONFIG(ix), ix 1330 drivers/hwmon/dme1737.c data->pwm_config[ix]); ix 1334 drivers/hwmon/dme1737.c data->pwm_config[ix] = PWM_EN_TO_REG(1, ix 1335 drivers/hwmon/dme1737.c data->pwm_config[ix]); ix 1336 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_PWM_CONFIG(ix), ix 1337 drivers/hwmon/dme1737.c data->pwm_config[ix]); ix 1339 drivers/hwmon/dme1737.c dme1737_chmod_file(dev, dme1737_pwm_chmod_attr[ix], ix 1344 drivers/hwmon/dme1737.c dme1737_chmod_file(dev, dme1737_pwm_chmod_attr[ix], ix 1350 drivers/hwmon/dme1737.c data->pwm_config[ix] = PWM_ACZ_TO_REG( ix 1351 drivers/hwmon/dme1737.c data->pwm_acz[ix], ix 1352 drivers/hwmon/dme1737.c data->pwm_config[ix]); ix 1353 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_PWM_CONFIG(ix), ix 1354 drivers/hwmon/dme1737.c data->pwm_config[ix]); ix 1356 drivers/hwmon/dme1737.c if (data->pwm_rr_en & (1 << ix)) { ix 1357 drivers/hwmon/dme1737.c data->pwm_rr[ix > 0] = PWM_RR_EN_TO_REG(1, ix, ix 1359 drivers/hwmon/dme1737.c DME1737_REG_PWM_RR(ix > 0))); ix 1361 drivers/hwmon/dme1737.c DME1737_REG_PWM_RR(ix > 0), ix 1362 drivers/hwmon/dme1737.c data->pwm_rr[ix > 0]); ix 1370 drivers/hwmon/dme1737.c data->pwm_config[ix] = dme1737_read(data, ix 1371 drivers/hwmon/dme1737.c DME1737_REG_PWM_CONFIG(ix)); ix 1372 drivers/hwmon/dme1737.c data->pwm_rr[ix > 0] = dme1737_read(data, ix 1373 drivers/hwmon/dme1737.c DME1737_REG_PWM_RR(ix > 0)); ix 1376 drivers/hwmon/dme1737.c data->pwm_rr[ix > 0] = PWM_RR_TO_REG(val, ix, ix 1377 drivers/hwmon/dme1737.c data->pwm_rr[ix > 0]); ix 1383 drivers/hwmon/dme1737.c if (PWM_EN_FROM_REG(data->pwm_config[ix]) == 2) { ix 1384 drivers/hwmon/dme1737.c data->pwm_rr[ix > 0] = PWM_RR_EN_TO_REG(val > 0, ix, ix 1385 drivers/hwmon/dme1737.c data->pwm_rr[ix > 0]); ix 1387 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_PWM_RR(ix > 0), ix 1388 drivers/hwmon/dme1737.c data->pwm_rr[ix > 0]); ix 1401 drivers/hwmon/dme1737.c data->pwm_config[ix] = dme1737_read(data, ix 1402 drivers/hwmon/dme1737.c DME1737_REG_PWM_CONFIG(ix)); ix 1403 drivers/hwmon/dme1737.c if (PWM_EN_FROM_REG(data->pwm_config[ix]) == 2) { ix 1408 drivers/hwmon/dme1737.c data->pwm_config[ix] = PWM_ACZ_TO_REG(val, ix 1409 drivers/hwmon/dme1737.c data->pwm_config[ix]); ix 1410 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_PWM_CONFIG(ix), ix 1411 drivers/hwmon/dme1737.c data->pwm_config[ix]); ix 1417 drivers/hwmon/dme1737.c data->pwm_acz[ix] = val; ix 1423 drivers/hwmon/dme1737.c data->pwm_min[ix] = dme1737_read(data, ix 1424 drivers/hwmon/dme1737.c DME1737_REG_PWM_MIN(ix)); ix 1431 drivers/hwmon/dme1737.c if (val > ((data->pwm_min[ix] + 1) / 2)) { ix 1432 drivers/hwmon/dme1737.c data->pwm_rr[0] = PWM_OFF_TO_REG(1, ix, ix 1436 drivers/hwmon/dme1737.c data->pwm_rr[0] = PWM_OFF_TO_REG(0, ix, ix 1445 drivers/hwmon/dme1737.c data->pwm_min[ix] = clamp_val(val, 0, 255); ix 1446 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_PWM_MIN(ix), ix 1447 drivers/hwmon/dme1737.c data->pwm_min[ix]); ix 1511 drivers/hwmon/dme1737.c #define SENSOR_DEVICE_ATTR_IN(ix) \ ix 1512 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(in##ix##_input, S_IRUGO, \ ix 1513 drivers/hwmon/dme1737.c show_in, NULL, SYS_IN_INPUT, ix); \ ix 1514 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(in##ix##_min, S_IRUGO | S_IWUSR, \ ix 1515 drivers/hwmon/dme1737.c show_in, set_in, SYS_IN_MIN, ix); \ ix 1516 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(in##ix##_max, S_IRUGO | S_IWUSR, \ ix 1517 drivers/hwmon/dme1737.c show_in, set_in, SYS_IN_MAX, ix); \ ix 1518 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(in##ix##_alarm, S_IRUGO, \ ix 1519 drivers/hwmon/dme1737.c show_in, NULL, SYS_IN_ALARM, ix) ix 1532 drivers/hwmon/dme1737.c #define SENSOR_DEVICE_ATTR_TEMP(ix) \ ix 1533 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(temp##ix##_input, S_IRUGO, \ ix 1534 drivers/hwmon/dme1737.c show_temp, NULL, SYS_TEMP_INPUT, ix-1); \ ix 1535 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(temp##ix##_min, S_IRUGO | S_IWUSR, \ ix 1536 drivers/hwmon/dme1737.c show_temp, set_temp, SYS_TEMP_MIN, ix-1); \ ix 1537 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(temp##ix##_max, S_IRUGO | S_IWUSR, \ ix 1538 drivers/hwmon/dme1737.c show_temp, set_temp, SYS_TEMP_MAX, ix-1); \ ix 1539 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(temp##ix##_offset, S_IRUGO, \ ix 1540 drivers/hwmon/dme1737.c show_temp, set_temp, SYS_TEMP_OFFSET, ix-1); \ ix 1541 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(temp##ix##_alarm, S_IRUGO, \ ix 1542 drivers/hwmon/dme1737.c show_temp, NULL, SYS_TEMP_ALARM, ix-1); \ ix 1543 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(temp##ix##_fault, S_IRUGO, \ ix 1544 drivers/hwmon/dme1737.c show_temp, NULL, SYS_TEMP_FAULT, ix-1) ix 1552 drivers/hwmon/dme1737.c #define SENSOR_DEVICE_ATTR_ZONE(ix) \ ix 1553 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(zone##ix##_auto_channels_temp, S_IRUGO, \ ix 1554 drivers/hwmon/dme1737.c show_zone, NULL, SYS_ZONE_AUTO_CHANNELS_TEMP, ix-1); \ ix 1555 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(zone##ix##_auto_point1_temp_hyst, S_IRUGO, \ ix 1556 drivers/hwmon/dme1737.c show_zone, set_zone, SYS_ZONE_AUTO_POINT1_TEMP_HYST, ix-1); \ ix 1557 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(zone##ix##_auto_point1_temp, S_IRUGO, \ ix 1558 drivers/hwmon/dme1737.c show_zone, set_zone, SYS_ZONE_AUTO_POINT1_TEMP, ix-1); \ ix 1559 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(zone##ix##_auto_point2_temp, S_IRUGO, \ ix 1560 drivers/hwmon/dme1737.c show_zone, set_zone, SYS_ZONE_AUTO_POINT2_TEMP, ix-1); \ ix 1561 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(zone##ix##_auto_point3_temp, S_IRUGO, \ ix 1562 drivers/hwmon/dme1737.c show_zone, set_zone, SYS_ZONE_AUTO_POINT3_TEMP, ix-1) ix 1570 drivers/hwmon/dme1737.c #define SENSOR_DEVICE_ATTR_FAN_1TO4(ix) \ ix 1571 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(fan##ix##_input, S_IRUGO, \ ix 1572 drivers/hwmon/dme1737.c show_fan, NULL, SYS_FAN_INPUT, ix-1); \ ix 1573 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(fan##ix##_min, S_IRUGO | S_IWUSR, \ ix 1574 drivers/hwmon/dme1737.c show_fan, set_fan, SYS_FAN_MIN, ix-1); \ ix 1575 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(fan##ix##_alarm, S_IRUGO, \ ix 1576 drivers/hwmon/dme1737.c show_fan, NULL, SYS_FAN_ALARM, ix-1); \ ix 1577 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(fan##ix##_type, S_IRUGO | S_IWUSR, \ ix 1578 drivers/hwmon/dme1737.c show_fan, set_fan, SYS_FAN_TYPE, ix-1) ix 1587 drivers/hwmon/dme1737.c #define SENSOR_DEVICE_ATTR_FAN_5TO6(ix) \ ix 1588 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(fan##ix##_input, S_IRUGO, \ ix 1589 drivers/hwmon/dme1737.c show_fan, NULL, SYS_FAN_INPUT, ix-1); \ ix 1590 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(fan##ix##_min, S_IRUGO | S_IWUSR, \ ix 1591 drivers/hwmon/dme1737.c show_fan, set_fan, SYS_FAN_MIN, ix-1); \ ix 1592 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(fan##ix##_alarm, S_IRUGO, \ ix 1593 drivers/hwmon/dme1737.c show_fan, NULL, SYS_FAN_ALARM, ix-1); \ ix 1594 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(fan##ix##_max, S_IRUGO | S_IWUSR, \ ix 1595 drivers/hwmon/dme1737.c show_fan, set_fan, SYS_FAN_MAX, ix-1) ix 1602 drivers/hwmon/dme1737.c #define SENSOR_DEVICE_ATTR_PWM_1TO3(ix) \ ix 1603 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(pwm##ix, S_IRUGO, \ ix 1604 drivers/hwmon/dme1737.c show_pwm, set_pwm, SYS_PWM, ix-1); \ ix 1605 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(pwm##ix##_freq, S_IRUGO, \ ix 1606 drivers/hwmon/dme1737.c show_pwm, set_pwm, SYS_PWM_FREQ, ix-1); \ ix 1607 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(pwm##ix##_enable, S_IRUGO, \ ix 1608 drivers/hwmon/dme1737.c show_pwm, set_pwm, SYS_PWM_ENABLE, ix-1); \ ix 1609 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(pwm##ix##_ramp_rate, S_IRUGO, \ ix 1610 drivers/hwmon/dme1737.c show_pwm, set_pwm, SYS_PWM_RAMP_RATE, ix-1); \ ix 1611 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(pwm##ix##_auto_channels_zone, S_IRUGO, \ ix 1612 drivers/hwmon/dme1737.c show_pwm, set_pwm, SYS_PWM_AUTO_CHANNELS_ZONE, ix-1); \ ix 1613 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(pwm##ix##_auto_pwm_min, S_IRUGO, \ ix 1614 drivers/hwmon/dme1737.c show_pwm, set_pwm, SYS_PWM_AUTO_PWM_MIN, ix-1); \ ix 1615 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(pwm##ix##_auto_point1_pwm, S_IRUGO, \ ix 1616 drivers/hwmon/dme1737.c show_pwm, set_pwm, SYS_PWM_AUTO_POINT1_PWM, ix-1); \ ix 1617 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(pwm##ix##_auto_point2_pwm, S_IRUGO, \ ix 1618 drivers/hwmon/dme1737.c show_pwm, NULL, SYS_PWM_AUTO_POINT2_PWM, ix-1) ix 1626 drivers/hwmon/dme1737.c #define SENSOR_DEVICE_ATTR_PWM_5TO6(ix) \ ix 1627 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(pwm##ix, S_IRUGO, \ ix 1628 drivers/hwmon/dme1737.c show_pwm, set_pwm, SYS_PWM, ix-1); \ ix 1629 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(pwm##ix##_freq, S_IRUGO, \ ix 1630 drivers/hwmon/dme1737.c show_pwm, set_pwm, SYS_PWM_FREQ, ix-1); \ ix 1631 drivers/hwmon/dme1737.c static SENSOR_DEVICE_ATTR_2(pwm##ix##_enable, S_IRUGO, \ ix 1632 drivers/hwmon/dme1737.c show_pwm, NULL, SYS_PWM_ENABLE, ix-1) ix 2065 drivers/hwmon/dme1737.c int ix; ix 2067 drivers/hwmon/dme1737.c for (ix = 0; ix < ARRAY_SIZE(dme1737_fan_group); ix++) { ix 2068 drivers/hwmon/dme1737.c if (data->has_features & HAS_FAN(ix)) { ix 2070 drivers/hwmon/dme1737.c &dme1737_fan_group[ix]); ix 2074 drivers/hwmon/dme1737.c for (ix = 0; ix < ARRAY_SIZE(dme1737_pwm_group); ix++) { ix 2075 drivers/hwmon/dme1737.c if (data->has_features & HAS_PWM(ix)) { ix 2077 drivers/hwmon/dme1737.c &dme1737_pwm_group[ix]); ix 2078 drivers/hwmon/dme1737.c if ((data->has_features & HAS_PWM_MIN) && ix < 3) { ix 2080 drivers/hwmon/dme1737.c dme1737_auto_pwm_min_attr[ix]); ix 2104 drivers/hwmon/dme1737.c int err, ix; ix 2147 drivers/hwmon/dme1737.c for (ix = 0; ix < ARRAY_SIZE(dme1737_fan_group); ix++) { ix 2148 drivers/hwmon/dme1737.c if (data->has_features & HAS_FAN(ix)) { ix 2150 drivers/hwmon/dme1737.c &dme1737_fan_group[ix]); ix 2157 drivers/hwmon/dme1737.c for (ix = 0; ix < ARRAY_SIZE(dme1737_pwm_group); ix++) { ix 2158 drivers/hwmon/dme1737.c if (data->has_features & HAS_PWM(ix)) { ix 2160 drivers/hwmon/dme1737.c &dme1737_pwm_group[ix]); ix 2163 drivers/hwmon/dme1737.c if ((data->has_features & HAS_PWM_MIN) && (ix < 3)) { ix 2165 drivers/hwmon/dme1737.c dme1737_auto_pwm_min_attr[ix]); ix 2199 drivers/hwmon/dme1737.c for (ix = 0; ix < ARRAY_SIZE(dme1737_pwm_chmod_group); ix++) { ix 2200 drivers/hwmon/dme1737.c if (data->has_features & HAS_PWM(ix)) { ix 2202 drivers/hwmon/dme1737.c &dme1737_pwm_chmod_group[ix], ix 2205 drivers/hwmon/dme1737.c ix < 3) { ix 2207 drivers/hwmon/dme1737.c dme1737_auto_pwm_min_attr[ix], ix 2214 drivers/hwmon/dme1737.c for (ix = 0; ix < 3; ix++) { ix 2215 drivers/hwmon/dme1737.c if ((data->has_features & HAS_PWM(ix)) && ix 2216 drivers/hwmon/dme1737.c (PWM_EN_FROM_REG(data->pwm_config[ix]) == 1)) { ix 2218 drivers/hwmon/dme1737.c dme1737_pwm_chmod_attr[ix], ix 2236 drivers/hwmon/dme1737.c int ix; ix 2346 drivers/hwmon/dme1737.c for (ix = 0; ix < 3; ix++) { ix 2347 drivers/hwmon/dme1737.c data->pwm_config[ix] = dme1737_read(data, ix 2348 drivers/hwmon/dme1737.c DME1737_REG_PWM_CONFIG(ix)); ix 2349 drivers/hwmon/dme1737.c if ((data->has_features & HAS_PWM(ix)) && ix 2350 drivers/hwmon/dme1737.c (PWM_EN_FROM_REG(data->pwm_config[ix]) == -1)) { ix 2353 drivers/hwmon/dme1737.c ix + 1); ix 2354 drivers/hwmon/dme1737.c data->pwm_config[ix] = PWM_EN_TO_REG(1, ix 2355 drivers/hwmon/dme1737.c data->pwm_config[ix]); ix 2356 drivers/hwmon/dme1737.c dme1737_write(data, DME1737_REG_PWM(ix), 0); ix 2358 drivers/hwmon/dme1737.c DME1737_REG_PWM_CONFIG(ix), ix 2359 drivers/hwmon/dme1737.c data->pwm_config[ix]); ix 62 drivers/hwmon/vt1211.c #define VT1211_REG_IN(ix) (0x21 + (ix)) ix 63 drivers/hwmon/vt1211.c #define VT1211_REG_IN_MIN(ix) ((ix) == 0 ? 0x3e : 0x2a + 2 * (ix)) ix 64 drivers/hwmon/vt1211.c #define VT1211_REG_IN_MAX(ix) ((ix) == 0 ? 0x3d : 0x29 + 2 * (ix)) ix 72 drivers/hwmon/vt1211.c #define VT1211_REG_FAN(ix) (0x29 + (ix)) ix 73 drivers/hwmon/vt1211.c #define VT1211_REG_FAN_MIN(ix) (0x3b + (ix)) ix 78 drivers/hwmon/vt1211.c #define VT1211_REG_PWM(ix) (0x60 + (ix)) ix 82 drivers/hwmon/vt1211.c #define VT1211_REG_PWM_AUTO_PWM(ix, ap) (0x58 + 2 * (ix) - (ap)) ix 134 drivers/hwmon/vt1211.c #define ISVOLT(ix, uch_config) ((ix) > 4 ? 1 : \ ix 135 drivers/hwmon/vt1211.c !(((uch_config) >> ((ix) + 2)) & 1)) ix 138 drivers/hwmon/vt1211.c #define ISTEMP(ix, uch_config) ((ix) < 2 ? 1 : \ ix 139 drivers/hwmon/vt1211.c ((uch_config) >> (ix)) & 1) ix 145 drivers/hwmon/vt1211.c #define IN_FROM_REG(ix, reg) ((reg) < 3 ? 0 : (ix) == 5 ? \ ix 148 drivers/hwmon/vt1211.c #define IN_TO_REG(ix, val) (clamp_val((ix) == 5 ? \ ix 159 drivers/hwmon/vt1211.c #define TEMP_FROM_REG(ix, reg) ((ix) == 0 ? (reg) * 1000 : \ ix 160 drivers/hwmon/vt1211.c (ix) == 1 ? (reg) < 51 ? 0 : \ ix 163 drivers/hwmon/vt1211.c #define TEMP_TO_REG(ix, val) clamp_val( \ ix 164 drivers/hwmon/vt1211.c ((ix) == 0 ? ((val) + 500) / 1000 : \ ix 165 drivers/hwmon/vt1211.c (ix) == 1 ? ((val) + 500) / 1000 + 51 : \ ix 250 drivers/hwmon/vt1211.c int ix, val; ix 260 drivers/hwmon/vt1211.c for (ix = 0; ix < ARRAY_SIZE(data->in); ix++) { ix 261 drivers/hwmon/vt1211.c if (ISVOLT(ix, data->uch_config)) { ix 262 drivers/hwmon/vt1211.c data->in[ix] = vt1211_read8(data, ix 263 drivers/hwmon/vt1211.c VT1211_REG_IN(ix)); ix 264 drivers/hwmon/vt1211.c data->in_min[ix] = vt1211_read8(data, ix 265 drivers/hwmon/vt1211.c VT1211_REG_IN_MIN(ix)); ix 266 drivers/hwmon/vt1211.c data->in_max[ix] = vt1211_read8(data, ix 267 drivers/hwmon/vt1211.c VT1211_REG_IN_MAX(ix)); ix 272 drivers/hwmon/vt1211.c for (ix = 0; ix < ARRAY_SIZE(data->temp); ix++) { ix 273 drivers/hwmon/vt1211.c if (ISTEMP(ix, data->uch_config)) { ix 274 drivers/hwmon/vt1211.c data->temp[ix] = vt1211_read8(data, ix 275 drivers/hwmon/vt1211.c regtemp[ix]); ix 276 drivers/hwmon/vt1211.c data->temp_max[ix] = vt1211_read8(data, ix 277 drivers/hwmon/vt1211.c regtempmax[ix]); ix 278 drivers/hwmon/vt1211.c data->temp_hyst[ix] = vt1211_read8(data, ix 279 drivers/hwmon/vt1211.c regtemphyst[ix]); ix 284 drivers/hwmon/vt1211.c for (ix = 0; ix < ARRAY_SIZE(data->fan); ix++) { ix 285 drivers/hwmon/vt1211.c data->fan[ix] = vt1211_read8(data, ix 286 drivers/hwmon/vt1211.c VT1211_REG_FAN(ix)); ix 287 drivers/hwmon/vt1211.c data->fan_min[ix] = vt1211_read8(data, ix 288 drivers/hwmon/vt1211.c VT1211_REG_FAN_MIN(ix)); ix 289 drivers/hwmon/vt1211.c data->pwm[ix] = vt1211_read8(data, ix 290 drivers/hwmon/vt1211.c VT1211_REG_PWM(ix)); ix 312 drivers/hwmon/vt1211.c for (ix = 0; ix < ARRAY_SIZE(data->pwm_auto_temp); ix++) { ix 313 drivers/hwmon/vt1211.c data->pwm_auto_temp[ix] = vt1211_read8(data, ix 314 drivers/hwmon/vt1211.c VT1211_REG_PWM_AUTO_TEMP(ix)); ix 346 drivers/hwmon/vt1211.c int ix = sensor_attr_2->index; ix 352 drivers/hwmon/vt1211.c res = IN_FROM_REG(ix, data->in[ix]); ix 355 drivers/hwmon/vt1211.c res = IN_FROM_REG(ix, data->in_min[ix]); ix 358 drivers/hwmon/vt1211.c res = IN_FROM_REG(ix, data->in_max[ix]); ix 361 drivers/hwmon/vt1211.c res = (data->alarms >> bitalarmin[ix]) & 1; ix 377 drivers/hwmon/vt1211.c int ix = sensor_attr_2->index; ix 389 drivers/hwmon/vt1211.c data->in_min[ix] = IN_TO_REG(ix, val); ix 390 drivers/hwmon/vt1211.c vt1211_write8(data, VT1211_REG_IN_MIN(ix), data->in_min[ix]); ix 393 drivers/hwmon/vt1211.c data->in_max[ix] = IN_TO_REG(ix, val); ix 394 drivers/hwmon/vt1211.c vt1211_write8(data, VT1211_REG_IN_MAX(ix), data->in_max[ix]); ix 420 drivers/hwmon/vt1211.c int ix = sensor_attr_2->index; ix 426 drivers/hwmon/vt1211.c res = TEMP_FROM_REG(ix, data->temp[ix]); ix 429 drivers/hwmon/vt1211.c res = TEMP_FROM_REG(ix, data->temp_max[ix]); ix 432 drivers/hwmon/vt1211.c res = TEMP_FROM_REG(ix, data->temp_hyst[ix]); ix 435 drivers/hwmon/vt1211.c res = (data->alarms >> bitalarmtemp[ix]) & 1; ix 451 drivers/hwmon/vt1211.c int ix = sensor_attr_2->index; ix 463 drivers/hwmon/vt1211.c data->temp_max[ix] = TEMP_TO_REG(ix, val); ix 464 drivers/hwmon/vt1211.c vt1211_write8(data, regtempmax[ix], ix 465 drivers/hwmon/vt1211.c data->temp_max[ix]); ix 468 drivers/hwmon/vt1211.c data->temp_hyst[ix] = TEMP_TO_REG(ix, val); ix 469 drivers/hwmon/vt1211.c vt1211_write8(data, regtemphyst[ix], ix 470 drivers/hwmon/vt1211.c data->temp_hyst[ix]); ix 496 drivers/hwmon/vt1211.c int ix = sensor_attr_2->index; ix 502 drivers/hwmon/vt1211.c res = RPM_FROM_REG(data->fan[ix], data->fan_div[ix]); ix 505 drivers/hwmon/vt1211.c res = RPM_FROM_REG(data->fan_min[ix], data->fan_div[ix]); ix 508 drivers/hwmon/vt1211.c res = DIV_FROM_REG(data->fan_div[ix]); ix 511 drivers/hwmon/vt1211.c res = (data->alarms >> bitalarmfan[ix]) & 1; ix 527 drivers/hwmon/vt1211.c int ix = sensor_attr_2->index; ix 547 drivers/hwmon/vt1211.c data->fan_min[ix] = RPM_TO_REG(val, data->fan_div[ix]); ix 548 drivers/hwmon/vt1211.c vt1211_write8(data, VT1211_REG_FAN_MIN(ix), ix 549 drivers/hwmon/vt1211.c data->fan_min[ix]); ix 554 drivers/hwmon/vt1211.c data->fan_div[ix] = 0; ix 557 drivers/hwmon/vt1211.c data->fan_div[ix] = 1; ix 560 drivers/hwmon/vt1211.c data->fan_div[ix] = 2; ix 563 drivers/hwmon/vt1211.c data->fan_div[ix] = 3; ix 602 drivers/hwmon/vt1211.c int ix = sensor_attr_2->index; ix 608 drivers/hwmon/vt1211.c res = data->pwm[ix]; ix 611 drivers/hwmon/vt1211.c res = ((data->pwm_ctl[ix] >> 3) & 1) ? 2 : 0; ix 617 drivers/hwmon/vt1211.c res = (data->pwm_ctl[ix] & 7) + 1; ix 633 drivers/hwmon/vt1211.c int ix = sensor_attr_2->index; ix 657 drivers/hwmon/vt1211.c data->pwm_ctl[ix] &= 7; ix 662 drivers/hwmon/vt1211.c if ((data->pwm_ctl[ix ^ 1] & 1) == 0) ix 666 drivers/hwmon/vt1211.c data->pwm_ctl[ix] |= 8; ix 713 drivers/hwmon/vt1211.c data->pwm_ctl[ix] = (data->pwm_ctl[ix] & 8) | (val - 1); ix 757 drivers/hwmon/vt1211.c int ix = sensor_attr_2->index; ix 760 drivers/hwmon/vt1211.c return sprintf(buf, "%d\n", TEMP_FROM_REG(data->pwm_ctl[ix] & 7, ix 771 drivers/hwmon/vt1211.c int ix = sensor_attr_2->index; ix 789 drivers/hwmon/vt1211.c data->pwm_auto_temp[ap] = TEMP_TO_REG(data->pwm_ctl[ix] & 7, val); ix 821 drivers/hwmon/vt1211.c int ix = sensor_attr_2->index; ix 824 drivers/hwmon/vt1211.c return sprintf(buf, "%d\n", data->pwm_auto_pwm[ix][ap]); ix 834 drivers/hwmon/vt1211.c int ix = sensor_attr_2->index; ix 844 drivers/hwmon/vt1211.c data->pwm_auto_pwm[ix][ap] = clamp_val(val, 0, 255); ix 845 drivers/hwmon/vt1211.c vt1211_write8(data, VT1211_REG_PWM_AUTO_PWM(ix, ap), ix 846 drivers/hwmon/vt1211.c data->pwm_auto_pwm[ix][ap]); ix 911 drivers/hwmon/vt1211.c #define SENSOR_ATTR_IN(ix) \ ix 912 drivers/hwmon/vt1211.c { SENSOR_ATTR_2(in##ix##_input, S_IRUGO, \ ix 913 drivers/hwmon/vt1211.c show_in, NULL, SHOW_IN_INPUT, ix), \ ix 914 drivers/hwmon/vt1211.c SENSOR_ATTR_2(in##ix##_min, S_IRUGO | S_IWUSR, \ ix 915 drivers/hwmon/vt1211.c show_in, set_in, SHOW_SET_IN_MIN, ix), \ ix 916 drivers/hwmon/vt1211.c SENSOR_ATTR_2(in##ix##_max, S_IRUGO | S_IWUSR, \ ix 917 drivers/hwmon/vt1211.c show_in, set_in, SHOW_SET_IN_MAX, ix), \ ix 918 drivers/hwmon/vt1211.c SENSOR_ATTR_2(in##ix##_alarm, S_IRUGO, \ ix 919 drivers/hwmon/vt1211.c show_in, NULL, SHOW_IN_ALARM, ix) \ ix 957 drivers/hwmon/vt1211.c #define SENSOR_ATTR_TEMP(ix) \ ix 958 drivers/hwmon/vt1211.c { SENSOR_ATTR_2(temp##ix##_input, S_IRUGO, \ ix 959 drivers/hwmon/vt1211.c show_temp, NULL, SHOW_TEMP_INPUT, ix-1), \ ix 960 drivers/hwmon/vt1211.c SENSOR_ATTR_2(temp##ix##_max, S_IRUGO | S_IWUSR, \ ix 961 drivers/hwmon/vt1211.c show_temp, set_temp, SHOW_SET_TEMP_MAX, ix-1), \ ix 962 drivers/hwmon/vt1211.c SENSOR_ATTR_2(temp##ix##_max_hyst, S_IRUGO | S_IWUSR, \ ix 963 drivers/hwmon/vt1211.c show_temp, set_temp, SHOW_SET_TEMP_MAX_HYST, ix-1), \ ix 964 drivers/hwmon/vt1211.c SENSOR_ATTR_2(temp##ix##_alarm, S_IRUGO, \ ix 965 drivers/hwmon/vt1211.c show_temp, NULL, SHOW_TEMP_ALARM, ix-1) \ ix 1006 drivers/hwmon/vt1211.c #define SENSOR_ATTR_FAN(ix) \ ix 1007 drivers/hwmon/vt1211.c SENSOR_ATTR_2(fan##ix##_input, S_IRUGO, \ ix 1008 drivers/hwmon/vt1211.c show_fan, NULL, SHOW_FAN_INPUT, ix-1), \ ix 1009 drivers/hwmon/vt1211.c SENSOR_ATTR_2(fan##ix##_min, S_IRUGO | S_IWUSR, \ ix 1010 drivers/hwmon/vt1211.c show_fan, set_fan, SHOW_SET_FAN_MIN, ix-1), \ ix 1011 drivers/hwmon/vt1211.c SENSOR_ATTR_2(fan##ix##_div, S_IRUGO | S_IWUSR, \ ix 1012 drivers/hwmon/vt1211.c show_fan, set_fan, SHOW_SET_FAN_DIV, ix-1), \ ix 1013 drivers/hwmon/vt1211.c SENSOR_ATTR_2(fan##ix##_alarm, S_IRUGO, \ ix 1014 drivers/hwmon/vt1211.c show_fan, NULL, SHOW_FAN_ALARM, ix-1) ix 1016 drivers/hwmon/vt1211.c #define SENSOR_ATTR_PWM(ix) \ ix 1017 drivers/hwmon/vt1211.c SENSOR_ATTR_2(pwm##ix, S_IRUGO, \ ix 1018 drivers/hwmon/vt1211.c show_pwm, NULL, SHOW_PWM, ix-1), \ ix 1019 drivers/hwmon/vt1211.c SENSOR_ATTR_2(pwm##ix##_enable, S_IRUGO | S_IWUSR, \ ix 1020 drivers/hwmon/vt1211.c show_pwm, set_pwm, SHOW_SET_PWM_ENABLE, ix-1), \ ix 1021 drivers/hwmon/vt1211.c SENSOR_ATTR_2(pwm##ix##_auto_channels_temp, S_IRUGO | S_IWUSR, \ ix 1022 drivers/hwmon/vt1211.c show_pwm, set_pwm, SHOW_SET_PWM_AUTO_CHANNELS_TEMP, ix-1) ix 1024 drivers/hwmon/vt1211.c #define SENSOR_ATTR_PWM_FREQ(ix) \ ix 1025 drivers/hwmon/vt1211.c SENSOR_ATTR_2(pwm##ix##_freq, S_IRUGO | S_IWUSR, \ ix 1026 drivers/hwmon/vt1211.c show_pwm, set_pwm, SHOW_SET_PWM_FREQ, ix-1) ix 1028 drivers/hwmon/vt1211.c #define SENSOR_ATTR_PWM_FREQ_RO(ix) \ ix 1029 drivers/hwmon/vt1211.c SENSOR_ATTR_2(pwm##ix##_freq, S_IRUGO, \ ix 1030 drivers/hwmon/vt1211.c show_pwm, NULL, SHOW_SET_PWM_FREQ, ix-1) ix 1032 drivers/hwmon/vt1211.c #define SENSOR_ATTR_PWM_AUTO_POINT_TEMP(ix, ap) \ ix 1033 drivers/hwmon/vt1211.c SENSOR_ATTR_2(pwm##ix##_auto_point##ap##_temp, S_IRUGO | S_IWUSR, \ ix 1035 drivers/hwmon/vt1211.c ap-1, ix-1) ix 1037 drivers/hwmon/vt1211.c #define SENSOR_ATTR_PWM_AUTO_POINT_TEMP_RO(ix, ap) \ ix 1038 drivers/hwmon/vt1211.c SENSOR_ATTR_2(pwm##ix##_auto_point##ap##_temp, S_IRUGO, \ ix 1040 drivers/hwmon/vt1211.c ap-1, ix-1) ix 1042 drivers/hwmon/vt1211.c #define SENSOR_ATTR_PWM_AUTO_POINT_PWM(ix, ap) \ ix 1043 drivers/hwmon/vt1211.c SENSOR_ATTR_2(pwm##ix##_auto_point##ap##_pwm, S_IRUGO | S_IWUSR, \ ix 1045 drivers/hwmon/vt1211.c ap-1, ix-1) ix 1047 drivers/hwmon/vt1211.c #define SENSOR_ATTR_PWM_AUTO_POINT_PWM_RO(ix, ap) \ ix 1048 drivers/hwmon/vt1211.c SENSOR_ATTR_2(pwm##ix##_auto_point##ap##_pwm, S_IRUGO, \ ix 1050 drivers/hwmon/vt1211.c ap-1, ix-1) ix 313 drivers/ide/ide-acpi.c int ix; ix 319 drivers/ide/ide-acpi.c for (ix = 0; ix < gtf_count; ix++) { ix 320 drivers/ide/ide-acpi.c u8 *gtf = (u8 *)(gtf_address + ix * REGS_PER_GTF); ix 413 drivers/iio/chemical/sgp30.c u16 ix, num_fs; ix 454 drivers/iio/chemical/sgp30.c for (ix = 0; ix < num_fs; ix++) { ix 455 drivers/iio/chemical/sgp30.c if (major == supported_versions[ix].major && ix 456 drivers/iio/chemical/sgp30.c minor >= supported_versions[ix].minor) ix 379 drivers/infiniband/core/cache.c struct ib_gid_table *table, int ix) ix 387 drivers/infiniband/core/cache.c ix, table->data_vec[ix]->attr.gid.raw); ix 390 drivers/infiniband/core/cache.c entry = table->data_vec[ix]; ix 396 drivers/infiniband/core/cache.c table->data_vec[ix] = NULL; ix 549 drivers/infiniband/core/cache.c int ix; ix 562 drivers/infiniband/core/cache.c ix = find_gid(table, gid, attr, default_gid, mask, &empty); ix 563 drivers/infiniband/core/cache.c if (ix >= 0) ix 603 drivers/infiniband/core/cache.c int ix; ix 609 drivers/infiniband/core/cache.c ix = find_gid(table, gid, attr, default_gid, mask, NULL); ix 610 drivers/infiniband/core/cache.c if (ix < 0) { ix 615 drivers/infiniband/core/cache.c del_gid(ib_dev, port, table, ix); ix 641 drivers/infiniband/core/cache.c int ix; ix 648 drivers/infiniband/core/cache.c for (ix = 0; ix < table->sz; ix++) { ix 649 drivers/infiniband/core/cache.c if (is_gid_entry_valid(table->data_vec[ix]) && ix 650 drivers/infiniband/core/cache.c table->data_vec[ix]->attr.ndev == ndev) { ix 651 drivers/infiniband/core/cache.c del_gid(ib_dev, port, table, ix); ix 336 drivers/infiniband/hw/mlx4/mad.c int i, ix, slave, err; ix 349 drivers/infiniband/hw/mlx4/mad.c for (ix = 0; ix 350 drivers/infiniband/hw/mlx4/mad.c ix < dev->dev->caps.pkey_table_len[port_num]; ix++) { ix 352 drivers/infiniband/hw/mlx4/mad.c [ix] == i + 32 * block) { ix 356 drivers/infiniband/hw/mlx4/mad.c slave, port_num, ix, err); ix 446 drivers/infiniband/hw/mlx4/mad.c u8 port, u16 pkey, u16 *ix) ix 453 drivers/infiniband/hw/mlx4/mad.c return ib_find_cached_pkey(&dev->ib_dev, port, pkey, ix); ix 468 drivers/infiniband/hw/mlx4/mad.c *ix = (u16) pkey_ix; ix 479 drivers/infiniband/hw/mlx4/mad.c *ix = (u16) partial_ix; ix 282 drivers/input/misc/yealink.c int ix, len; ix 298 drivers/input/misc/yealink.c ix = 0; ix 299 drivers/input/misc/yealink.c while (size != ix) { ix 300 drivers/input/misc/yealink.c len = size - ix; ix 304 drivers/input/misc/yealink.c p->offset = cpu_to_be16(ix); ix 305 drivers/input/misc/yealink.c memcpy(p->data, &buf[ix], len); ix 307 drivers/input/misc/yealink.c ix += len; ix 317 drivers/input/misc/yealink.c int i, ix, len; ix 319 drivers/input/misc/yealink.c ix = yld->stat_ix; ix 327 drivers/input/misc/yealink.c if (ix >= sizeof(yld->master)) { ix 334 drivers/input/misc/yealink.c val = yld->master.b[ix]; ix 335 drivers/input/misc/yealink.c if (val != yld->copy.b[ix]) ix 337 drivers/input/misc/yealink.c } while (++ix < sizeof(yld->master)); ix 349 drivers/input/misc/yealink.c yld->copy.b[ix] = val; ix 352 drivers/input/misc/yealink.c switch(ix) { ix 374 drivers/input/misc/yealink.c len = sizeof(yld->master.s.lcd) - ix; ix 381 drivers/input/misc/yealink.c yld->ctl_data->offset = cpu_to_be16(ix); ix 383 drivers/input/misc/yealink.c yld->ctl_data->sum = -CMD_LCD - ix - val - len; ix 385 drivers/input/misc/yealink.c ix++; ix 386 drivers/input/misc/yealink.c val = yld->master.b[ix]; ix 387 drivers/input/misc/yealink.c yld->copy.b[ix] = val; ix 392 drivers/input/misc/yealink.c yld->stat_ix = ix + 1; ix 2153 drivers/media/dvb-frontends/dib7000p.c u8 ix = 0; ix 2167 drivers/media/dvb-frontends/dib7000p.c ix = (u8) ((mant - 1000) / 100); /* index of the LUT */ ix 2168 drivers/media/dvb-frontends/dib7000p.c dprintk(" ix = %d\n", ix); ix 2170 drivers/media/dvb-frontends/dib7000p.c pow_i = (lut_1000ln_mant[ix] + 693 * (exp - 20) - 6908); ix 1924 drivers/media/dvb-frontends/dib8000.c u32 ix = 0, tmp_val = 0, exp = 0, mant = 0; ix 1933 drivers/media/dvb-frontends/dib8000.c ix = (u8)((mant-1000)/100); /* index of the LUT */ ix 1934 drivers/media/dvb-frontends/dib8000.c val = (lut_1000ln_mant[ix] + 693*(exp-20) - 6908); ix 4528 drivers/media/pci/bt8xx/bttv-cards.c int ix; ix 4534 drivers/media/pci/bt8xx/bttv-cards.c for (ix = 0; ix < 4; ix++) { ix 4535 drivers/media/pci/bt8xx/bttv-cards.c btv->sw_status[ix] = ix; ix 4536 drivers/media/pci/bt8xx/bttv-cards.c kodicom4400r_write(btv, ix, ix, 1); ix 4838 drivers/media/pci/bt8xx/bttv-cards.c int ix; ix 4845 drivers/media/pci/bt8xx/bttv-cards.c for (ix = 0; ix < 4; ix++) { ix 4846 drivers/media/pci/bt8xx/bttv-cards.c btv->sw_status[ix] = ix; ix 4847 drivers/media/pci/bt8xx/bttv-cards.c gv800s_write(btv, ix, ix, 1); ix 1778 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c unsigned int ix = VI_VF_NUM_STATS - rem; ix 1793 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c cpu_to_be16(FW_VI_STATS_CMD_IX_V(ix) | ix 673 drivers/net/ethernet/mellanox/mlx5/core/en.h int ix; ix 740 drivers/net/ethernet/mellanox/mlx5/core/en.h int ix; ix 954 drivers/net/ethernet/mellanox/mlx5/core/en.h void mlx5e_dealloc_rx_wqe(struct mlx5e_rq *rq, u16 ix); ix 955 drivers/net/ethernet/mellanox/mlx5/core/en.h void mlx5e_dealloc_rx_mpwqe(struct mlx5e_rq *rq, u16 ix); ix 46 drivers/net/ethernet/mellanox/mlx5/core/en/params.h u16 *ix) ix 54 drivers/net/ethernet/mellanox/mlx5/core/en/params.h *ix = ch; ix 60 drivers/net/ethernet/mellanox/mlx5/core/en/params.h u16 *ix, ix 65 drivers/net/ethernet/mellanox/mlx5/core/en/params.h *ix = qid % nch; ix 214 drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c icosq->channel->ix, icosq->sqn, rq->rqn, rq->cq.mcq.cqn); ix 264 drivers/net/ethernet/mellanox/mlx5/core/en/reporter_rx.c err = devlink_fmsg_u32_pair_put(fmsg, "channel ix", rq->channel->ix); ix 123 drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c sq->channel->ix, sq->sqn, sq->cq.mcq.cqn, sq->cc, sq->pc, ix 179 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c static int mlx5e_redirect_xsk_rqt(struct mlx5e_priv *priv, u16 ix, u32 rqn) ix 188 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c u32 rqtn = priv->xsk_tir[ix].rqt.rqtn; ix 195 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c return mlx5e_redirect_xsk_rqt(priv, c->ix, c->xskrq.rqn); ix 198 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c int mlx5e_xsk_redirect_rqt_to_drop(struct mlx5e_priv *priv, u16 ix) ix 200 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.c return mlx5e_redirect_xsk_rqt(priv, ix, priv->drop_rq.rqn); ix 21 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/setup.h int mlx5e_xsk_redirect_rqt_to_drop(struct mlx5e_priv *priv, u16 ix); ix 15 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/tx.c u16 ix; ix 20 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/tx.c if (unlikely(!mlx5e_qid_get_ch_if_in_group(params, qid, MLX5E_RQ_GROUP_XSK, &ix))) ix 23 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/tx.c c = priv->channels.c[ix]; ix 72 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c static int mlx5e_xsk_add_umem(struct mlx5e_xsk *xsk, struct xdp_umem *umem, u16 ix) ix 80 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c xsk->umems[ix] = umem; ix 84 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c static void mlx5e_xsk_remove_umem(struct mlx5e_xsk *xsk, u16 ix) ix 86 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c xsk->umems[ix] = NULL; ix 103 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c struct xdp_umem *umem, u16 ix) ix 110 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c if (unlikely(mlx5e_xsk_get_umem(&priv->channels.params, &priv->xsk, ix))) ix 120 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c err = mlx5e_xsk_add_umem(&priv->xsk, umem, ix); ix 138 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c c = priv->channels.c[ix]; ix 150 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c err = mlx5e_xsk_redirect_rqt_to_channel(priv, priv->channels.c[ix]); ix 161 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c mlx5e_xsk_remove_umem(&priv->xsk, ix); ix 180 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c static int mlx5e_xsk_disable_locked(struct mlx5e_priv *priv, u16 ix) ix 183 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c &priv->xsk, ix); ix 196 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c c = priv->channels.c[ix]; ix 197 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c mlx5e_xsk_redirect_rqt_to_drop(priv, ix); ix 202 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c mlx5e_xsk_remove_umem(&priv->xsk, ix); ix 209 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c u16 ix) ix 214 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c err = mlx5e_xsk_enable_locked(priv, umem, ix); ix 220 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c static int mlx5e_xsk_disable_umem(struct mlx5e_priv *priv, u16 ix) ix 225 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c err = mlx5e_xsk_disable_locked(priv, ix); ix 235 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c u16 ix; ix 237 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c if (unlikely(!mlx5e_qid_get_ch_if_in_group(params, qid, MLX5E_RQ_GROUP_XSK, &ix))) ix 240 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c return umem ? mlx5e_xsk_enable_umem(priv, umem, ix) : ix 241 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.c mlx5e_xsk_disable_umem(priv, ix); ix 10 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.h struct mlx5e_xsk *xsk, u16 ix) ix 15 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.h if (unlikely(ix >= params->num_channels)) ix 18 drivers/net/ethernet/mellanox/mlx5/core/en/xsk/umem.h return xsk->umems[ix]; ix 223 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c int ix = 0; ix 280 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c MLX5_SET_CFG(in, start_flow_index, ix); ix 281 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c ix += MLX5E_ARFS_GROUP1_SIZE; ix 282 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c MLX5_SET_CFG(in, end_flow_index, ix - 1); ix 289 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c MLX5_SET_CFG(in, start_flow_index, ix); ix 290 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c ix += MLX5E_ARFS_GROUP2_SIZE; ix 291 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c MLX5_SET_CFG(in, end_flow_index, ix - 1); ix 80 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c int ix = mlx5e_hash_l2(addr); ix 83 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c hlist_for_each_entry(hn, &hash[ix], hlist) ix 101 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c hlist_add_head(&hn->hlist, &hash[ix]); ix 912 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c int ix = 0; ix 935 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, start_flow_index, ix); ix 936 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ix += MLX5E_TTC_GROUP1_SIZE; ix 937 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, end_flow_index, ix - 1); ix 945 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, start_flow_index, ix); ix 946 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ix += MLX5E_TTC_GROUP2_SIZE; ix 947 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, end_flow_index, ix - 1); ix 955 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, start_flow_index, ix); ix 956 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ix += MLX5E_TTC_GROUP3_SIZE; ix 957 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, end_flow_index, ix - 1); ix 1053 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c int ix = 0; ix 1072 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, start_flow_index, ix); ix 1073 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ix += MLX5E_INNER_TTC_GROUP1_SIZE; ix 1074 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, end_flow_index, ix - 1); ix 1082 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, start_flow_index, ix); ix 1083 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ix += MLX5E_INNER_TTC_GROUP2_SIZE; ix 1084 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, end_flow_index, ix - 1); ix 1092 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, start_flow_index, ix); ix 1093 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ix += MLX5E_INNER_TTC_GROUP3_SIZE; ix 1094 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, end_flow_index, ix - 1); ix 1286 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c int ix = 0; ix 1305 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, start_flow_index, ix); ix 1306 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ix += MLX5E_L2_GROUP1_SIZE; ix 1307 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, end_flow_index, ix - 1); ix 1316 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, start_flow_index, ix); ix 1317 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ix += MLX5E_L2_GROUP2_SIZE; ix 1318 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, end_flow_index, ix - 1); ix 1327 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, start_flow_index, ix); ix 1328 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ix += MLX5E_L2_GROUP3_SIZE; ix 1329 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, end_flow_index, ix - 1); ix 1399 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c int ix = 0; ix 1406 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, start_flow_index, ix); ix 1407 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ix += MLX5E_VLAN_GROUP0_SIZE; ix 1408 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, end_flow_index, ix - 1); ix 1418 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, start_flow_index, ix); ix 1419 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ix += MLX5E_VLAN_GROUP1_SIZE; ix 1420 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, end_flow_index, ix - 1); ix 1429 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, start_flow_index, ix); ix 1430 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ix += MLX5E_VLAN_GROUP2_SIZE; ix 1431 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, end_flow_index, ix - 1); ix 1440 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, start_flow_index, ix); ix 1441 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ix += MLX5E_VLAN_GROUP3_SIZE; ix 1442 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c MLX5_SET_CFG(in, end_flow_index, ix - 1); ix 422 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c u16 ix; ix 424 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c mlx5e_qid_get_ch_and_group(params, fs->ring_cookie, &ix, &group); ix 434 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c dst->tir_num = tir[ix].tirn; ix 399 drivers/net/ethernet/mellanox/mlx5/core/en_main.c rq->ix = c->ix; ix 406 drivers/net/ethernet/mellanox/mlx5/core/en_main.c rq->stats = &c->priv->channel_stats[c->ix].xskrq; ix 408 drivers/net/ethernet/mellanox/mlx5/core/en_main.c rq->stats = &c->priv->channel_stats[c->ix].rq; ix 418 drivers/net/ethernet/mellanox/mlx5/core/en_main.c rq_xdp_ix = rq->ix; ix 821 drivers/net/ethernet/mellanox/mlx5/core/en_main.c c->ix, rq->rqn, mlx5e_rqwq_get_cur_sz(rq), min_wqes); ix 1009 drivers/net/ethernet/mellanox/mlx5/core/en_main.c &c->priv->channel_stats[c->ix].xsksq : ix 1011 drivers/net/ethernet/mellanox/mlx5/core/en_main.c &c->priv->channel_stats[c->ix].xdpsq : ix 1012 drivers/net/ethernet/mellanox/mlx5/core/en_main.c &c->priv->channel_stats[c->ix].rq_xdpsq; ix 1147 drivers/net/ethernet/mellanox/mlx5/core/en_main.c sq->ch_ix = c->ix; ix 1152 drivers/net/ethernet/mellanox/mlx5/core/en_main.c sq->stats = &c->priv->channel_stats[c->ix].sq[tc]; ix 1582 drivers/net/ethernet/mellanox/mlx5/core/en_main.c param->eq_ix = c->ix; ix 1719 drivers/net/ethernet/mellanox/mlx5/core/en_main.c int txq_ix = c->ix + tc * params->num_channels; ix 1834 drivers/net/ethernet/mellanox/mlx5/core/en_main.c for (irq = c->ix; irq < num_comp_vectors; irq += params->num_channels) { ix 1955 drivers/net/ethernet/mellanox/mlx5/core/en_main.c static u8 mlx5e_enumerate_lag_port(struct mlx5_core_dev *mdev, int ix) ix 1959 drivers/net/ethernet/mellanox/mlx5/core/en_main.c return (ix + port_aff_bias) % mlx5e_get_num_lag_ports(mdev); ix 1962 drivers/net/ethernet/mellanox/mlx5/core/en_main.c static int mlx5e_open_channel(struct mlx5e_priv *priv, int ix, ix 1968 drivers/net/ethernet/mellanox/mlx5/core/en_main.c int cpu = cpumask_first(mlx5_comp_irq_get_affinity_mask(priv->mdev, ix)); ix 1976 drivers/net/ethernet/mellanox/mlx5/core/en_main.c err = mlx5_vector2eqn(priv->mdev, ix, &eqn, &irq); ix 1987 drivers/net/ethernet/mellanox/mlx5/core/en_main.c c->ix = ix; ix 1994 drivers/net/ethernet/mellanox/mlx5/core/en_main.c c->stats = &priv->channel_stats[ix].ch; ix 1996 drivers/net/ethernet/mellanox/mlx5/core/en_main.c c->lag_port = mlx5e_enumerate_lag_port(priv->mdev, ix); ix 2040 drivers/net/ethernet/mellanox/mlx5/core/en_main.c netif_set_xps_queue(c->netdev, c->xps_cpumask, c->ix); ix 2485 drivers/net/ethernet/mellanox/mlx5/core/en_main.c int ix; ix 2487 drivers/net/ethernet/mellanox/mlx5/core/en_main.c for (ix = 0; ix < priv->max_nch; ix++) { ix 2488 drivers/net/ethernet/mellanox/mlx5/core/en_main.c err = mlx5e_create_rqt(priv, 1 /*size */, &tirs[ix].rqt); ix 2497 drivers/net/ethernet/mellanox/mlx5/core/en_main.c for (ix--; ix >= 0; ix--) ix 2498 drivers/net/ethernet/mellanox/mlx5/core/en_main.c mlx5e_destroy_rqt(priv, &tirs[ix].rqt); ix 2538 drivers/net/ethernet/mellanox/mlx5/core/en_main.c int ix = i; ix 2541 drivers/net/ethernet/mellanox/mlx5/core/en_main.c ix = mlx5e_bits_invert(i, ilog2(sz)); ix 2543 drivers/net/ethernet/mellanox/mlx5/core/en_main.c ix = priv->rss_params.indirection_rqt[ix]; ix 2544 drivers/net/ethernet/mellanox/mlx5/core/en_main.c rqn = rrp.rss.channels->c[ix]->rq.rqn; ix 2577 drivers/net/ethernet/mellanox/mlx5/core/en_main.c static u32 mlx5e_get_direct_rqn(struct mlx5e_priv *priv, int ix, ix 2583 drivers/net/ethernet/mellanox/mlx5/core/en_main.c if (ix >= rrp.rss.channels->num) ix 2586 drivers/net/ethernet/mellanox/mlx5/core/en_main.c return rrp.rss.channels->c[ix]->rq.rqn; ix 2593 drivers/net/ethernet/mellanox/mlx5/core/en_main.c int ix; ix 2601 drivers/net/ethernet/mellanox/mlx5/core/en_main.c for (ix = 0; ix < priv->max_nch; ix++) { ix 2605 drivers/net/ethernet/mellanox/mlx5/core/en_main.c .rqn = mlx5e_get_direct_rqn(priv, ix, rrp) ix 2610 drivers/net/ethernet/mellanox/mlx5/core/en_main.c if (!priv->direct_tir[ix].rqt.enabled) ix 2613 drivers/net/ethernet/mellanox/mlx5/core/en_main.c rqtn = priv->direct_tir[ix].rqt.rqtn; ix 2784 drivers/net/ethernet/mellanox/mlx5/core/en_main.c int ix; ix 2803 drivers/net/ethernet/mellanox/mlx5/core/en_main.c for (ix = 0; ix < priv->max_nch; ix++) { ix 2804 drivers/net/ethernet/mellanox/mlx5/core/en_main.c err = mlx5_core_modify_tir(mdev, priv->direct_tir[ix].tirn, ix 3379 drivers/net/ethernet/mellanox/mlx5/core/en_main.c int ix; ix 3386 drivers/net/ethernet/mellanox/mlx5/core/en_main.c for (ix = 0; ix < priv->max_nch; ix++) { ix 3388 drivers/net/ethernet/mellanox/mlx5/core/en_main.c tir = &tirs[ix]; ix 3400 drivers/net/ethernet/mellanox/mlx5/core/en_main.c for (ix--; ix >= 0; ix--) ix 3401 drivers/net/ethernet/mellanox/mlx5/core/en_main.c mlx5e_destroy_tir(priv->mdev, &tirs[ix]); ix 3886 drivers/net/ethernet/mellanox/mlx5/core/en_main.c u16 ix; ix 3888 drivers/net/ethernet/mellanox/mlx5/core/en_main.c for (ix = 0; ix < chs->params.num_channels; ix++) { ix 3889 drivers/net/ethernet/mellanox/mlx5/core/en_main.c struct xdp_umem *umem = mlx5e_xsk_get_umem(&chs->params, chs->params.xsk, ix); ix 3910 drivers/net/ethernet/mellanox/mlx5/core/en_main.c new_params->sw_mtu, ix, max_mtu); ix 330 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c static inline struct mlx5e_wqe_frag_info *get_frag(struct mlx5e_rq *rq, u16 ix) ix 332 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c return &rq->wqe.frags[ix << rq->wqe.info.log_num_frags]; ix 336 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c u16 ix) ix 338 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c struct mlx5e_wqe_frag_info *frag = get_frag(rq, ix); ix 370 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c void mlx5e_dealloc_rx_wqe(struct mlx5e_rq *rq, u16 ix) ix 372 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c struct mlx5e_wqe_frag_info *wi = get_frag(rq, ix); ix 377 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c static int mlx5e_alloc_rx_wqes(struct mlx5e_rq *rq, u16 ix, u8 wqe_bulk) ix 391 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c struct mlx5e_rx_wqe_cyc *wqe = mlx5_wq_cyc_get_wqe(wq, ix + i); ix 393 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c err = mlx5e_alloc_rx_wqe(rq, wqe, ix + i); ix 402 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c mlx5e_dealloc_rx_wqe(rq, ix + i); ix 485 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c static int mlx5e_alloc_rx_mpwqe(struct mlx5e_rq *rq, u16 ix) ix 487 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c struct mlx5e_mpw_info *wi = &rq->mpwqe.info[ix]; ix 492 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c u16 xlt_offset = ix << (MLX5E_LOG_ALIGNED_MPWQE_PPW - 1); ix 549 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c void mlx5e_dealloc_rx_mpwqe(struct mlx5e_rq *rq, u16 ix) ix 551 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c struct mlx5e_mpw_info *wi = &rq->mpwqe.info[ix]; ix 1006 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c skb_record_rx_queue(skb, rq->ix); ix 1463 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c stats = &priv->channel_stats[rq->ix].rq; ix 1495 drivers/net/ethernet/mellanox/mlx5/core/en_rx.c skb_record_rx_queue(skb, rq->ix); ix 492 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c int i, ix, sz = MLX5E_INDIR_RQT_SIZE; ix 498 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c ix = i; ix 500 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c ix = mlx5e_bits_invert(i, ilog2(sz)); ix 501 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c ix = indirection_rqt[ix]; ix 502 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c rqn = hp->pair->rqn[ix]; ix 1053 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c int table_size, ix, err = 0, i; ix 1134 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c ix = nvports * MAX_SQ_NVPORTS + MAX_PF_SQ; ix 1136 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, ix - 1); ix 1163 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, ix); ix 1165 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c ix + esw->total_vports - 1); ix 1166 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c ix += esw->total_vports; ix 1186 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, ix); ix 1188 drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c ix + MLX5_ESW_MISS_FLOWS); ix 103 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c unsigned int ix; ix 115 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c ix = conn->qp.rq.pc & (conn->qp.rq.size - 1); ix 116 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c data = mlx5_wq_cyc_get_wqe(&conn->qp.wq.rq, ix); ix 122 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c conn->qp.rq.bufs[ix] = buf; ix 146 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c unsigned int ix, sgi; ix 149 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c ix = conn->qp.sq.pc & (conn->qp.sq.size - 1); ix 151 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c ctrl = mlx5_wq_cyc_get_wqe(&conn->qp.wq.sq, ix); ix 171 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c conn->qp.sq.bufs[ix] = buf; ix 254 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c int ix, err; ix 256 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c ix = be16_to_cpu(cqe->wqe_counter) & (conn->qp.rq.size - 1); ix 257 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c buf = conn->qp.rq.bufs[ix]; ix 258 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c conn->qp.rq.bufs[ix] = NULL; ix 295 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c int ix; ix 299 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c ix = be16_to_cpu(cqe->wqe_counter) & (conn->qp.sq.size - 1); ix 300 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c buf = conn->qp.sq.bufs[ix]; ix 301 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c conn->qp.sq.bufs[ix] = NULL; ix 625 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c int ix; ix 627 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c for (ix = 0; ix < conn->qp.rq.size; ix++) { ix 628 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c if (!conn->qp.rq.bufs[ix]) ix 630 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c mlx5_fpga_conn_unmap_buf(conn, conn->qp.rq.bufs[ix]); ix 631 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c kfree(conn->qp.rq.bufs[ix]); ix 632 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c conn->qp.rq.bufs[ix] = NULL; ix 639 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c int ix; ix 641 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c for (ix = 0; ix < conn->qp.sq.size; ix++) { ix 642 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c buf = conn->qp.sq.bufs[ix]; ix 645 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c conn->qp.sq.bufs[ix] = NULL; ix 82 drivers/net/ethernet/mellanox/mlx5/core/lib/eq.h struct cpumask *mlx5_eq_comp_cpumask(struct mlx5_core_dev *dev, int ix); ix 80 drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.c static int alloc_l2table_index(struct mlx5_mpfs *l2table, u32 *ix) ix 84 drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.c *ix = find_first_zero_bit(l2table->bitmap, l2table->size); ix 85 drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.c if (*ix >= l2table->size) ix 88 drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.c __set_bit(*ix, l2table->bitmap); ix 93 drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.c static void free_l2table_index(struct mlx5_mpfs *l2table, u32 ix) ix 95 drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.c __clear_bit(ix, l2table->bitmap); ix 53 drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.h int ix = MLX5_L2_ADDR_HASH(mac); \ ix 57 drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.h hlist_for_each_entry(ptr, &(hash)[ix], node.hlist) \ ix 68 drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.h int ix = MLX5_L2_ADDR_HASH(mac); \ ix 74 drivers/net/ethernet/mellanox/mlx5/core/lib/mpfs.h hlist_add_head(&ptr->node.hlist, &(hash)[ix]);\ ix 155 drivers/net/ethernet/mellanox/mlx5/core/wq.h static inline void *mlx5_wq_cyc_get_wqe(struct mlx5_wq_cyc *wq, u16 ix) ix 157 drivers/net/ethernet/mellanox/mlx5/core/wq.h return mlx5_frag_buf_get_wqe(&wq->fbc, ix); ix 160 drivers/net/ethernet/mellanox/mlx5/core/wq.h static inline u16 mlx5_wq_cyc_get_contig_wqebbs(struct mlx5_wq_cyc *wq, u16 ix) ix 162 drivers/net/ethernet/mellanox/mlx5/core/wq.h return mlx5_frag_buf_get_idx_last_contig_stride(&wq->fbc, ix) - ix + 1; ix 183 drivers/net/ethernet/mellanox/mlx5/core/wq.h static inline struct mlx5_cqe64 *mlx5_cqwq_get_wqe(struct mlx5_cqwq *wq, u32 ix) ix 185 drivers/net/ethernet/mellanox/mlx5/core/wq.h struct mlx5_cqe64 *cqe = mlx5_frag_buf_get_wqe(&wq->fbc, ix); ix 244 drivers/net/ethernet/mellanox/mlx5/core/wq.h static inline void *mlx5_wq_ll_get_wqe(struct mlx5_wq_ll *wq, u16 ix) ix 246 drivers/net/ethernet/mellanox/mlx5/core/wq.h return mlx5_frag_buf_get_wqe(&wq->fbc, ix); ix 249 drivers/net/ethernet/mellanox/mlx5/core/wq.h static inline u16 mlx5_wq_ll_get_wqe_next_ix(struct mlx5_wq_ll *wq, u16 ix) ix 251 drivers/net/ethernet/mellanox/mlx5/core/wq.h struct mlx5_wqe_srq_next_seg *wqe = mlx5_wq_ll_get_wqe(wq, ix); ix 263 drivers/net/ethernet/mellanox/mlx5/core/wq.h static inline void mlx5_wq_ll_pop(struct mlx5_wq_ll *wq, __be16 ix, ix 266 drivers/net/ethernet/mellanox/mlx5/core/wq.h *wq->tail_next = ix; ix 103 drivers/net/ethernet/mscc/ocelot_ace.c static void vcap_cmd(struct ocelot *oc, u16 ix, int cmd, int sel) ix 106 drivers/net/ethernet/mscc/ocelot_ace.c S2_CORE_UPDATE_CTRL_UPDATE_ADDR(ix) | ix 109 drivers/net/ethernet/mscc/ocelot_ace.c if ((sel & VCAP_SEL_ENTRY) && ix >= vcap_is2.entry_count) ix 190 drivers/net/ethernet/mscc/ocelot_ace.c static void is2_data_get(struct vcap_data *data, int ix) ix 195 drivers/net/ethernet/mscc/ocelot_ace.c col = (ix % 2); ix 329 drivers/net/ethernet/mscc/ocelot_ace.c static void is2_entry_set(struct ocelot *ocelot, int ix, ix 336 drivers/net/ethernet/mscc/ocelot_ace.c int row = (ix / 2); ix 347 drivers/net/ethernet/mscc/ocelot_ace.c is2_data_get(&data, ix); ix 577 drivers/net/ethernet/mscc/ocelot_ace.c static void is2_entry_get(struct ocelot_ace_rule *rule, int ix) ix 581 drivers/net/ethernet/mscc/ocelot_ace.c int row = (ix / 2); ix 587 drivers/net/ethernet/mscc/ocelot_ace.c is2_data_get(&data, ix); ix 104 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c static const char *cmdstr(enum gelic_eurus_command ix) ix 106 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c switch (ix) { ix 135 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c static inline const char *cmdstr(enum gelic_eurus_command ix) ix 1008 drivers/net/wireless/ath/ath9k/ar9003_calib.c int im, ix, iy, temp; ix 1011 drivers/net/wireless/ath/ath9k/ar9003_calib.c for (ix = 0; ix < MAXIQCAL - 1; ix++) { ix 1012 drivers/net/wireless/ath/ath9k/ar9003_calib.c for (iy = ix + 1; iy <= MAXIQCAL - 1; iy++) { ix 1014 drivers/net/wireless/ath/ath9k/ar9003_calib.c coeff->mag_coeff[i][im][ix]) { ix 1015 drivers/net/wireless/ath/ath9k/ar9003_calib.c temp = coeff->mag_coeff[i][im][ix]; ix 1016 drivers/net/wireless/ath/ath9k/ar9003_calib.c coeff->mag_coeff[i][im][ix] = ix 1021 drivers/net/wireless/ath/ath9k/ar9003_calib.c coeff->phs_coeff[i][im][ix]) { ix 1022 drivers/net/wireless/ath/ath9k/ar9003_calib.c temp = coeff->phs_coeff[i][im][ix]; ix 1023 drivers/net/wireless/ath/ath9k/ar9003_calib.c coeff->phs_coeff[i][im][ix] = ix 723 drivers/net/wireless/marvell/mwifiex/util.c int ix; ix 727 drivers/net/wireless/marvell/mwifiex/util.c for (ix = 0; ix < MWIFIEX_MAX_AC_RX_RATES; ix++) ix 728 drivers/net/wireless/marvell/mwifiex/util.c atomic_set(&phist_data->rx_rate[ix], 0); ix 729 drivers/net/wireless/marvell/mwifiex/util.c for (ix = 0; ix < MWIFIEX_MAX_SNR; ix++) ix 730 drivers/net/wireless/marvell/mwifiex/util.c atomic_set(&phist_data->snr[ix], 0); ix 731 drivers/net/wireless/marvell/mwifiex/util.c for (ix = 0; ix < MWIFIEX_MAX_NOISE_FLR; ix++) ix 732 drivers/net/wireless/marvell/mwifiex/util.c atomic_set(&phist_data->noise_flr[ix], 0); ix 733 drivers/net/wireless/marvell/mwifiex/util.c for (ix = 0; ix < MWIFIEX_MAX_SIG_STRENGTH; ix++) ix 734 drivers/net/wireless/marvell/mwifiex/util.c atomic_set(&phist_data->sig_str[ix], 0); ix 175 drivers/s390/char/con3215.c int len, count, ix, lines; ix 200 drivers/s390/char/con3215.c ix = req->start; ix 201 drivers/s390/char/con3215.c while (lines < RAW3215_MAX_NEWLINE && ix != raw->head) { ix 202 drivers/s390/char/con3215.c if (raw->buffer[ix] == 0x15) ix 204 drivers/s390/char/con3215.c ix = (ix + 1) & (RAW3215_BUFFER_SIZE - 1); ix 206 drivers/s390/char/con3215.c len = ((ix - 1 - req->start) & (RAW3215_BUFFER_SIZE - 1)) + 1; ix 213 drivers/s390/char/con3215.c req->delayable = (ix == raw->head) && (len < RAW3215_MIN_WRITE); ix 215 drivers/s390/char/con3215.c ix = req->start; ix 222 drivers/s390/char/con3215.c (__u32) __pa(raw->buffer + ix); ix 224 drivers/s390/char/con3215.c if (ix + count > RAW3215_BUFFER_SIZE) ix 225 drivers/s390/char/con3215.c count = RAW3215_BUFFER_SIZE - ix; ix 228 drivers/s390/char/con3215.c ix = (ix + count) & (RAW3215_BUFFER_SIZE - 1); ix 471 drivers/s390/char/con3215.c int ix; ix 475 drivers/s390/char/con3215.c ix = (raw->head - raw->count) & (RAW3215_BUFFER_SIZE - 1); ix 477 drivers/s390/char/con3215.c ch = raw->buffer[ix]; ix 478 drivers/s390/char/con3215.c ix = (ix + 1) & (RAW3215_BUFFER_SIZE - 1); ix 483 drivers/s390/char/con3215.c raw->head = ix; ix 1448 drivers/s390/char/tty3270.c tty3270_getpar(struct tty3270 *tp, int ix) ix 1450 drivers/s390/char/tty3270.c return (tp->esc_par[ix] > 0) ? tp->esc_par[ix] : 1; ix 1855 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_host *ix; ix 1880 drivers/staging/media/soc_camera/soc_camera.c list_for_each_entry(ix, &hosts, list) { ix 1881 drivers/staging/media/soc_camera/soc_camera.c if (ix->nr == ici->nr) { ix 1957 drivers/staging/media/soc_camera/soc_camera.c struct soc_camera_device *ix; ix 1964 drivers/staging/media/soc_camera/soc_camera.c list_for_each_entry(ix, &devices, list) { ix 1965 drivers/staging/media/soc_camera/soc_camera.c if (ix->iface == icd->iface && ix->devnum == i) { ix 511 drivers/staging/wilc1000/wilc_spi.c int ix; ix 514 drivers/staging/wilc1000/wilc_spi.c for (ix = 0; (rix < len2) && (ix < sz); ) ix 515 drivers/staging/wilc1000/wilc_spi.c b[ix++] = rb[rix++]; ix 517 drivers/staging/wilc1000/wilc_spi.c sz -= ix; ix 522 drivers/staging/wilc1000/wilc_spi.c if (sz <= (DATA_PKT_SZ - ix)) ix 525 drivers/staging/wilc1000/wilc_spi.c nbytes = DATA_PKT_SZ - ix; ix 530 drivers/staging/wilc1000/wilc_spi.c if (wilc_spi_rx(wilc, &b[ix], nbytes)) { ix 545 drivers/staging/wilc1000/wilc_spi.c ix += nbytes; ix 587 drivers/staging/wilc1000/wilc_spi.c if (wilc_spi_rx(wilc, &b[ix], nbytes)) { ix 604 drivers/staging/wilc1000/wilc_spi.c ix += nbytes; ix 615 drivers/staging/wilc1000/wilc_spi.c int ix, nbytes; ix 622 drivers/staging/wilc1000/wilc_spi.c ix = 0; ix 629 drivers/staging/wilc1000/wilc_spi.c if (ix == 0) ix 651 drivers/staging/wilc1000/wilc_spi.c if (wilc_spi_tx(wilc, &b[ix], nbytes)) { ix 672 drivers/staging/wilc1000/wilc_spi.c ix += nbytes; ix 153 drivers/usb/core/devices.c int ix; ix 155 drivers/usb/core/devices.c for (ix = 0; clas_info[ix].class != -1; ix++) ix 156 drivers/usb/core/devices.c if (clas_info[ix].class == class) ix 158 drivers/usb/core/devices.c return clas_info[ix].class_name; ix 1753 drivers/video/fbdev/intelfb/intelfbhw.c int dat, ix, iy, iw; ix 1812 drivers/video/fbdev/intelfb/intelfbhw.c ix = iy = 0; ix 1818 drivers/video/fbdev/intelfb/intelfbhw.c if (ix != iw || i == 0) ix 1819 drivers/video/fbdev/intelfb/intelfbhw.c dat |= cdat[iy*iw + ix++] << (i+j*2)*8; ix 1821 drivers/video/fbdev/intelfb/intelfbhw.c if (ix == iw && iy != (h-1)) { ix 1822 drivers/video/fbdev/intelfb/intelfbhw.c ix = 0; ix 453 drivers/video/fbdev/omap2/omapfb/dss/dss.c int b, ix, pos; ix 482 drivers/video/fbdev/omap2/omapfb/dss/dss.c ix = channel == OMAP_DSS_CHANNEL_LCD ? 0 : ix 484 drivers/video/fbdev/omap2/omapfb/dss/dss.c dss.lcd_clk_source[ix] = clk_src; ix 500 drivers/video/fbdev/omap2/omapfb/dss/dss.c int ix = channel == OMAP_DSS_CHANNEL_LCD ? 0 : ix 502 drivers/video/fbdev/omap2/omapfb/dss/dss.c return dss.lcd_clk_source[ix]; ix 235 fs/ext4/ext4_extents.h static inline ext4_fsblk_t ext4_idx_pblock(struct ext4_extent_idx *ix) ix 239 fs/ext4/ext4_extents.h block = le32_to_cpu(ix->ei_leaf_lo); ix 240 fs/ext4/ext4_extents.h block |= ((ext4_fsblk_t) le16_to_cpu(ix->ei_leaf_hi) << 31) << 1; ix 262 fs/ext4/ext4_extents.h static inline void ext4_idx_store_pblock(struct ext4_extent_idx *ix, ix 265 fs/ext4/ext4_extents.h ix->ei_leaf_lo = cpu_to_le32((unsigned long) (pb & 0xffffffff)); ix 266 fs/ext4/ext4_extents.h ix->ei_leaf_hi = cpu_to_le16((unsigned long) ((pb >> 31) >> 1) & ix 768 fs/ext4/extents.c struct ext4_extent_idx *chix, *ix; ix 771 fs/ext4/extents.c chix = ix = EXT_FIRST_INDEX(eh); ix 772 fs/ext4/extents.c for (k = 0; k < le16_to_cpu(eh->eh_entries); k++, ix++) { ix 774 fs/ext4/extents.c le32_to_cpu(ix->ei_block) <= le32_to_cpu(ix[-1].ei_block)) { ix 777 fs/ext4/extents.c ix, EXT_FIRST_INDEX(eh)); ix 779 fs/ext4/extents.c le32_to_cpu(ix->ei_block), ix 780 fs/ext4/extents.c le32_to_cpu(ix[-1].ei_block)); ix 782 fs/ext4/extents.c BUG_ON(k && le32_to_cpu(ix->ei_block) ix 783 fs/ext4/extents.c <= le32_to_cpu(ix[-1].ei_block)); ix 784 fs/ext4/extents.c if (block < le32_to_cpu(ix->ei_block)) ix 786 fs/ext4/extents.c chix = ix; ix 963 fs/ext4/extents.c struct ext4_extent_idx *ix; ix 989 fs/ext4/extents.c ix = curp->p_idx + 1; ix 993 fs/ext4/extents.c ix = curp->p_idx; ix 996 fs/ext4/extents.c len = EXT_LAST_INDEX(curp->p_hdr) - ix + 1; ix 1001 fs/ext4/extents.c logical, len, ix, ix + 1); ix 1002 fs/ext4/extents.c memmove(ix + 1, ix, len * sizeof(struct ext4_extent_idx)); ix 1005 fs/ext4/extents.c if (unlikely(ix > EXT_MAX_INDEX(curp->p_hdr))) { ix 1010 fs/ext4/extents.c ix->ei_block = cpu_to_le32(logical); ix 1011 fs/ext4/extents.c ext4_idx_store_pblock(ix, ptr); ix 1014 fs/ext4/extents.c if (unlikely(ix > EXT_LAST_INDEX(curp->p_hdr))) { ix 1447 fs/ext4/extents.c struct ext4_extent_idx *ix; ix 1475 fs/ext4/extents.c ix = path[depth].p_idx; ix 1476 fs/ext4/extents.c if (unlikely(ix != EXT_FIRST_INDEX(path[depth].p_hdr))) { ix 1479 fs/ext4/extents.c ix != NULL ? le32_to_cpu(ix->ei_block) : 0, ix 1515 fs/ext4/extents.c struct ext4_extent_idx *ix; ix 1545 fs/ext4/extents.c ix = path[depth].p_idx; ix 1546 fs/ext4/extents.c if (unlikely(ix != EXT_FIRST_INDEX(path[depth].p_hdr))) { ix 1571 fs/ext4/extents.c ix = path[depth].p_idx; ix 1572 fs/ext4/extents.c if (ix != EXT_LAST_INDEX(path[depth].p_hdr)) ix 1583 fs/ext4/extents.c ix++; ix 1584 fs/ext4/extents.c block = ext4_idx_pblock(ix); ix 1592 fs/ext4/extents.c ix = EXT_FIRST_INDEX(eh); ix 1593 fs/ext4/extents.c block = ext4_idx_pblock(ix); ix 377 fs/ext4/migrate.c struct ext4_extent_idx *ix) ix 384 fs/ext4/migrate.c block = ext4_idx_pblock(ix); ix 391 fs/ext4/migrate.c ix = EXT_FIRST_INDEX(eh); ix 392 fs/ext4/migrate.c for (i = 0; i < le16_to_cpu(eh->eh_entries); i++, ix++) { ix 393 fs/ext4/migrate.c retval = free_ext_idx(handle, inode, ix); ix 413 fs/ext4/migrate.c struct ext4_extent_idx *ix; ix 419 fs/ext4/migrate.c ix = EXT_FIRST_INDEX(eh); ix 420 fs/ext4/migrate.c for (i = 0; i < le16_to_cpu(eh->eh_entries); i++, ix++) { ix 421 fs/ext4/migrate.c retval = free_ext_idx(handle, inode, ix); ix 210 fs/hpfs/hpfs.h __le16 ix; /* index */ ix 236 fs/hpfs/hpfs.h __le16 ix; /* index */ ix 357 fs/hpfs/hpfs.h u8 ix; /* code page index (of filename), see ix 26 fs/qnx4/dir.c int ix, ino; ix 39 fs/qnx4/dir.c ix = (ctx->pos >> QNX4_DIR_ENTRY_SIZE_BITS) % QNX4_INODES_PER_BLOCK; ix 40 fs/qnx4/dir.c for (; ix < QNX4_INODES_PER_BLOCK; ix++, ctx->pos += QNX4_DIR_ENTRY_SIZE) { ix 41 fs/qnx4/dir.c offset = ix * QNX4_DIR_ENTRY_SIZE; ix 54 fs/qnx4/dir.c ino = blknum * QNX4_INODES_PER_BLOCK + ix - 1; ix 80 fs/qnx4/inode.c int ix; ix 94 fs/qnx4/inode.c ix = 0; ix 96 fs/qnx4/inode.c if ( ix == 0 ) { ix 109 fs/qnx4/inode.c block = try_extent(&xblk->xblk_xtnts[ix], &offset); ix 114 fs/qnx4/inode.c if ( ++ix >= xblk->xblk_num_xtnts ) { ix 116 fs/qnx4/inode.c ix = 0; ix 280 include/linux/dim.h struct dim_cq_moder net_dim_get_rx_moderation(u8 cq_period_mode, int ix); ix 293 include/linux/dim.h struct dim_cq_moder net_dim_get_tx_moderation(u8 cq_period_mode, int ix); ix 873 include/linux/mlx5/driver.h u32 ix) ix 877 include/linux/mlx5/driver.h ix += fbc->strides_offset; ix 878 include/linux/mlx5/driver.h frag = ix >> fbc->log_frag_strides; ix 880 include/linux/mlx5/driver.h return fbc->frags[frag].buf + ((fbc->frag_sz_m1 & ix) << fbc->log_stride); ix 884 include/linux/mlx5/driver.h mlx5_frag_buf_get_idx_last_contig_stride(struct mlx5_frag_buf_ctrl *fbc, u32 ix) ix 886 include/linux/mlx5/driver.h u32 last_frag_stride_idx = (ix + fbc->strides_offset) | fbc->frag_sz_m1; ix 1570 include/trace/events/ext4.h struct ext4_extent *ux, struct ext4_extent *ix), ix 1572 include/trace/events/ext4.h TP_ARGS(inode, map, ux, ix), ix 1595 include/trace/events/ext4.h __entry->i_lblk = le32_to_cpu(ix->ee_block); ix 1596 include/trace/events/ext4.h __entry->i_len = ext4_ext_get_actual_len(ix); ix 1597 include/trace/events/ext4.h __entry->i_pblk = ext4_ext_pblock(ix); ix 1414 include/trace/events/rxrpc.h TP_PROTO(struct rxrpc_call *call, int ix), ix 1416 include/trace/events/rxrpc.h TP_ARGS(call, ix), ix 1420 include/trace/events/rxrpc.h __field(int, ix ) ix 1426 include/trace/events/rxrpc.h __entry->ix = ix; ix 1432 include/trace/events/rxrpc.h __entry->ix, ix 65 lib/dim/net_dim.c net_dim_get_rx_moderation(u8 cq_period_mode, int ix) ix 67 lib/dim/net_dim.c struct dim_cq_moder cq_moder = rx_profile[cq_period_mode][ix]; ix 85 lib/dim/net_dim.c net_dim_get_tx_moderation(u8 cq_period_mode, int ix) ix 87 lib/dim/net_dim.c struct dim_cq_moder cq_moder = tx_profile[cq_period_mode][ix]; ix 163 net/rxrpc/call_event.c int ix; ix 188 net/rxrpc/call_event.c ix = seq & RXRPC_RXTX_BUFF_MASK; ix 189 net/rxrpc/call_event.c annotation = call->rxtx_annotations[ix]; ix 195 net/rxrpc/call_event.c skb = call->rxtx_buffer[ix]; ix 209 net/rxrpc/call_event.c call->rxtx_annotations[ix] = RXRPC_TX_ANNO_RETRANS | annotation; ix 245 net/rxrpc/call_event.c ix = seq & RXRPC_RXTX_BUFF_MASK; ix 246 net/rxrpc/call_event.c annotation = call->rxtx_annotations[ix]; ix 251 net/rxrpc/call_event.c skb = call->rxtx_buffer[ix]; ix 272 net/rxrpc/call_event.c annotation = call->rxtx_annotations[ix]; ix 280 net/rxrpc/call_event.c call->rxtx_annotations[ix] = annotation; ix 203 net/rxrpc/input.c int ix; ix 217 net/rxrpc/input.c ix = call->tx_hard_ack & RXRPC_RXTX_BUFF_MASK; ix 218 net/rxrpc/input.c skb = call->rxtx_buffer[ix]; ix 219 net/rxrpc/input.c annotation = call->rxtx_annotations[ix]; ix 221 net/rxrpc/input.c call->rxtx_buffer[ix] = NULL; ix 222 net/rxrpc/input.c call->rxtx_annotations[ix] = 0; ix 472 net/rxrpc/input.c unsigned int ix = seq & RXRPC_RXTX_BUFF_MASK; ix 509 net/rxrpc/input.c if (call->rxtx_buffer[ix]) { ix 548 net/rxrpc/input.c call->rxtx_annotations[ix] = annotation; ix 550 net/rxrpc/input.c call->rxtx_buffer[ix] = skb; ix 622 net/rxrpc/input.c int ix; ix 624 net/rxrpc/input.c for (ix = 0; ix < RXRPC_RXTX_BUFF_SIZE; ix++) { ix 625 net/rxrpc/input.c skb = call->rxtx_buffer[ix]; ix 662 net/rxrpc/input.c int ix = seq & RXRPC_RXTX_BUFF_MASK; ix 663 net/rxrpc/input.c u8 annotation = call->rxtx_annotations[ix]; ix 670 net/rxrpc/input.c call->rxtx_annotations[ix] = annotation; ix 767 net/rxrpc/input.c int ix; ix 771 net/rxrpc/input.c ix = seq & RXRPC_RXTX_BUFF_MASK; ix 772 net/rxrpc/input.c annotation = call->rxtx_annotations[ix]; ix 781 net/rxrpc/input.c call->rxtx_annotations[ix] = ix 796 net/rxrpc/input.c call->rxtx_annotations[ix] = ix 78 net/rxrpc/output.c int ix; ix 103 net/rxrpc/output.c ix = seq & RXRPC_RXTX_BUFF_MASK; ix 104 net/rxrpc/output.c if (call->rxtx_buffer[ix]) ix 182 net/rxrpc/recvmsg.c int ix; ix 191 net/rxrpc/recvmsg.c ix = hard_ack & RXRPC_RXTX_BUFF_MASK; ix 192 net/rxrpc/recvmsg.c skb = call->rxtx_buffer[ix]; ix 196 net/rxrpc/recvmsg.c subpacket = call->rxtx_annotations[ix] & RXRPC_RX_ANNO_SUBPACKET; ix 203 net/rxrpc/recvmsg.c call->rxtx_buffer[ix] = NULL; ix 204 net/rxrpc/recvmsg.c call->rxtx_annotations[ix] = 0; ix 319 net/rxrpc/recvmsg.c int ix, copy, ret = -EAGAIN, ret2; ix 342 net/rxrpc/recvmsg.c ix = seq & RXRPC_RXTX_BUFF_MASK; ix 343 net/rxrpc/recvmsg.c skb = call->rxtx_buffer[ix]; ix 355 net/rxrpc/recvmsg.c serial += call->rxtx_annotations[ix] & RXRPC_RX_ANNO_SUBPACKET; ix 365 net/rxrpc/recvmsg.c &call->rxtx_annotations[ix], ix 163 net/rxrpc/sendmsg.c static inline void rxrpc_instant_resend(struct rxrpc_call *call, int ix) ix 168 net/rxrpc/sendmsg.c call->rxtx_annotations[ix] = ix 169 net/rxrpc/sendmsg.c (call->rxtx_annotations[ix] & RXRPC_TX_ANNO_LAST) | ix 201 net/rxrpc/sendmsg.c int ret, ix; ix 216 net/rxrpc/sendmsg.c ix = seq & RXRPC_RXTX_BUFF_MASK; ix 218 net/rxrpc/sendmsg.c call->rxtx_annotations[ix] = annotation; ix 220 net/rxrpc/sendmsg.c call->rxtx_buffer[ix] = skb; ix 271 net/rxrpc/sendmsg.c rxrpc_instant_resend(call, ix);