Searched defs:idx (Results 1 - 25 of 896) sorted by relevance

1234567891011>>

/drivers/hid/
H A Dhid-primax.c28 int idx = size; local
49 while (--idx > 1) {
50 if (data[idx] < 0xE0 || data[idx] > 0xE7)
52 data[0] |= (1 << (data[idx] - 0xE0));
53 data[idx] = 0;
/drivers/staging/lustre/lustre/obdclass/
H A Dlprocfs_counters.c47 void lprocfs_counter_add(struct lprocfs_stats *stats, int idx, long amount) argument
57 LASSERTF(0 <= idx && idx < stats->ls_num,
58 "idx %d, ls_num %hu\n", idx, stats->ls_num);
66 header = &stats->ls_cnt_header[idx];
67 percpu_cntr = lprocfs_stats_counter_get(stats, smp_id, idx);
98 void lprocfs_counter_sub(struct lprocfs_stats *stats, int idx, long amount) argument
108 LASSERTF(0 <= idx && idx < stat
[all...]
/drivers/cpuidle/
H A Dcpuidle-arm64.c31 * idx: state index
37 struct cpuidle_driver *drv, int idx)
41 if (!idx) {
43 return idx;
53 ret = cpu_suspend(idx);
58 return ret ? -1 : idx;
36 arm64_enter_idle_state(struct cpuidle_device *dev, struct cpuidle_driver *drv, int idx) argument
H A Dcpuidle-big_little.c30 struct cpuidle_driver *drv, int idx);
129 * @idx: state index
135 struct cpuidle_driver *drv, int idx)
146 return idx;
134 bl_enter_powerdown(struct cpuidle_device *dev, struct cpuidle_driver *drv, int idx) argument
/drivers/gpu/drm/nouveau/core/subdev/bios/
H A DP0260.c60 nvbios_P0260Ee(struct nouveau_bios *bios, int idx, u8 *ver, u8 *len) argument
64 if (data && idx < cnt)
65 return data + hdr + (idx * *len);
70 nvbios_P0260Ep(struct nouveau_bios *bios, int idx, u8 *ver, u8 *len, argument
73 u32 data = nvbios_P0260Ee(bios, idx, ver, len);
86 nvbios_P0260Xe(struct nouveau_bios *bios, int idx, u8 *ver, u8 *xsz) argument
90 if (data && idx < xnr)
91 return data + hdr + (cnt * len) + (idx * *xsz);
96 nvbios_P0260Xp(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr, argument
99 u32 data = nvbios_P0260Xe(bios, idx, ve
[all...]
H A Dconn.c65 nvbios_connEe(struct nouveau_bios *bios, u8 idx, u8 *ver, u8 *len) argument
69 if (data && idx < cnt)
70 return data + hdr + (idx * *len);
75 nvbios_connEp(struct nouveau_bios *bios, u8 idx, u8 *ver, u8 *len, argument
78 u32 data = nvbios_connEe(bios, idx, ver, len);
H A Dfan.c57 nvbios_fan_entry(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr, argument
61 if (data && idx < *cnt)
62 return data + *hdr + (idx * (*len));
H A Di2c.c58 dcb_i2c_entry(struct nouveau_bios *bios, u8 idx, u8 *ver, u8 *len) argument
62 if (i2c && idx < cnt)
63 return i2c + hdr + (idx * *len);
68 dcb_i2c_parse(struct nouveau_bios *bios, u8 idx, struct dcb_i2c_entry *info) argument
71 u16 ent = dcb_i2c_entry(bios, idx, &ver, &len);
106 if (bios->bmp_offset && idx < 2) {
115 if (idx == 0) {
121 if (idx == 1) {
H A Dtiming.c71 nvbios_timingEe(struct nouveau_bios *bios, int idx, argument
76 if (timing && idx < *cnt) {
77 timing += *hdr + idx * (*len + (snr * ssz));
87 nvbios_timingEp(struct nouveau_bios *bios, int idx, argument
91 u16 data = nvbios_timingEe(bios, idx, ver, hdr, cnt, len), temp;
H A Dvmap.c72 nvbios_vmap_entry(struct nouveau_bios *bios, int idx, u8 *ver, u8 *len) argument
76 if (vmap && idx < cnt) {
77 vmap = vmap + hdr + (idx * *len);
84 nvbios_vmap_entry_parse(struct nouveau_bios *bios, int idx, u8 *ver, u8 *len, argument
87 u16 vmap = nvbios_vmap_entry(bios, idx, ver, len);
H A Dvolt.c105 nvbios_volt_entry(struct nouveau_bios *bios, int idx, u8 *ver, u8 *len) argument
109 if (volt && idx < cnt) {
110 volt = volt + hdr + (idx * *len);
117 nvbios_volt_entry_parse(struct nouveau_bios *bios, int idx, u8 *ver, u8 *len, argument
120 u16 volt = nvbios_volt_entry(bios, idx, ver, len);
H A Dxpio.c47 dcb_xpio_table(struct nouveau_bios *bios, u8 idx, argument
51 if (data && idx < *cnt) {
52 u16 xpio = nv_ro16(bios, data + *hdr + (idx * *len));
65 dcb_xpio_parse(struct nouveau_bios *bios, u8 idx, argument
69 u16 data = dcb_xpio_table(bios, idx, ver, hdr, cnt, len);
H A DM0205.c76 nvbios_M0205Ee(struct nouveau_bios *bios, int idx, argument
81 if (data && idx < *cnt) {
82 data = data + *hdr + idx * (*len + (snr * ssz));
92 nvbios_M0205Ep(struct nouveau_bios *bios, int idx, argument
96 u32 data = nvbios_M0205Ee(bios, idx, ver, hdr, cnt, len);
109 nvbios_M0205Se(struct nouveau_bios *bios, int ent, int idx, u8 *ver, u8 *hdr) argument
114 if (data && idx < cnt) {
115 data = data + *hdr + idx * len;
123 nvbios_M0205Sp(struct nouveau_bios *bios, int ent, int idx, u8 *ver, u8 *hdr, argument
126 u32 data = nvbios_M0205Se(bios, ent, idx, ve
[all...]
H A Dboost.c60 nvbios_boostEe(struct nouveau_bios *bios, int idx, argument
65 if (data && idx < *cnt) {
66 data = data + *hdr + (idx * (*len + (snr * ssz)));
76 nvbios_boostEp(struct nouveau_bios *bios, int idx, argument
79 u16 data = nvbios_boostEe(bios, idx, ver, hdr, cnt, len);
93 u32 data, idx = 0; local
94 while ((data = nvbios_boostEp(bios, idx++, ver, hdr, cnt, len, info))) {
102 nvbios_boostSe(struct nouveau_bios *bios, int idx, argument
105 if (data && idx < cnt) {
106 data = data + *hdr + (idx * le
114 nvbios_boostSp(struct nouveau_bios *bios, int idx, u16 data, u8 *ver, u8 *hdr, u8 cnt, u8 len, struct nvbios_boostS *info) argument
[all...]
H A Dcstep.c60 nvbios_cstepEe(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr) argument
64 if (data && idx < cnt) {
65 data = data + *hdr + (idx * len);
73 nvbios_cstepEp(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr, argument
76 u16 data = nvbios_cstepEe(bios, idx, ver, hdr);
89 u32 data, idx = 0; local
90 while ((data = nvbios_cstepEp(bios, idx++, ver, hdr, info))) {
98 nvbios_cstepXe(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr) argument
102 if (data && idx < xnr) {
103 data = data + *hdr + (cnt * len) + (idx * xs
111 nvbios_cstepXp(struct nouveau_bios *bios, int idx, u8 *ver, u8 *hdr, struct nvbios_cstepX *info) argument
[all...]
H A Dperf.c79 nvbios_perf_entry(struct nouveau_bios *bios, int idx, argument
84 if (perf && idx < *cnt) {
85 perf = perf + *hdr + (idx * (*len + (snr * ssz)));
95 nvbios_perfEp(struct nouveau_bios *bios, int idx, argument
99 u16 perf = nvbios_perf_entry(bios, idx, ver, hdr, cnt, len);
158 nvbios_perfSe(struct nouveau_bios *bios, u32 perfE, int idx, argument
162 if (idx < cnt) {
163 data = perfE + *hdr + (idx * len);
170 nvbios_perfSp(struct nouveau_bios *bios, u32 perfE, int idx, argument
174 u32 data = nvbios_perfSe(bios, perfE, idx, ve
[all...]
/drivers/gpu/drm/radeon/
H A Ddrm_buffer.c47 int idx; local
63 for (idx = 0; idx < nr_pages; ++idx) {
65 (*buf)->data[idx] =
66 kmalloc(min(PAGE_SIZE, size - idx * PAGE_SIZE),
70 if ((*buf)->data[idx] == NULL) {
73 idx + 1, size, nr_pages);
83 for (; idx >= 0; --idx)
101 int idx; local
135 int idx; local
158 int idx = drm_buffer_index(buf); local
[all...]
/drivers/infiniband/hw/amso1100/
H A Dc2_alloc.c125 u16 idx; local
134 idx = ((unsigned long) mqsp & ~PAGE_MASK) >> 1;
135 idx -= (unsigned long) &(((struct sp_chunk *) 0)->shared_ptr[0]) >> 1;
138 head->shared_ptr[idx] = head->head;
141 head->head = idx;
/drivers/isdn/i4l/
H A Disdn_audio.h24 int idx; member in struct:dtmf_state
30 unsigned int idx; member in struct:silence_state
/drivers/media/pci/cx18/
H A Dcx18-controls.c106 static int cx18_s_audio_sampling_freq(struct cx2341x_handler *cxhdl, u32 idx) argument
113 if (idx < ARRAY_SIZE(freqs))
114 cx18_call_all(cx, audio, s_clock_freq, freqs[idx]);
/drivers/nfc/st21nfca/
H A Dst21nfca_dep.h27 u32 idx; member in struct:st21nfca_dep_info
/drivers/gpu/drm/msm/mdp/mdp5/
H A Dmdp5_smp.c112 int idx = blk / 3; local
115 val = mdp5_read(mdp5_kms, REG_MDP5_SMP_ALLOC_W_REG(idx));
132 mdp5_write(mdp5_kms, REG_MDP5_SMP_ALLOC_W_REG(idx), val);
133 mdp5_write(mdp5_kms, REG_MDP5_SMP_ALLOC_R_REG(idx), val);
/drivers/input/joystick/
H A Dstinger.c54 int idx; member in struct:stinger
69 if (!stinger->idx) return;
103 if (stinger->idx < STINGER_MAX_LENGTH)
104 stinger->data[stinger->idx++] = data;
106 if (stinger->idx == 4) {
108 stinger->idx = 0;
H A Dwarrior.c54 int idx, len; member in struct:warrior
69 if (!warrior->idx) return;
104 if (warrior->idx) warrior_process_packet(warrior);
105 warrior->idx = 0;
109 if (warrior->idx < warrior->len)
110 warrior->data[warrior->idx++] = data;
112 if (warrior->idx == warrior->len) {
113 if (warrior->idx) warrior_process_packet(warrior);
114 warrior->idx = 0;
H A Dzhenhua.c70 int idx; member in struct:zhenhua
118 zhenhua->idx = 0; /* this byte starts a new packet */
119 else if (zhenhua->idx == 0)
122 if (zhenhua->idx < ZHENHUA_MAX_LENGTH)
123 zhenhua->data[zhenhua->idx++] = zhenhua_bitreverse(data);
125 if (zhenhua->idx == ZHENHUA_MAX_LENGTH) {
127 zhenhua->idx = 0;

Completed in 8245 milliseconds

1234567891011>>