Home
last modified time | relevance | path

Searched refs:k (Results 1 – 25 of 417) sorted by relevance

12345678910>>...17

/drivers/md/bcache/
Dextents.c32 i->k = bkey_next(i->k); in sort_key_next()
34 if (i->k == i->end) in sort_key_next()
41 int64_t c = bkey_cmp(l.k, r.k); in bch_key_sort_cmp()
43 return c ? c > 0 : l.k < r.k; in bch_key_sort_cmp()
46 static bool __ptr_invalid(struct cache_set *c, const struct bkey *k) in __ptr_invalid() argument
50 for (i = 0; i < KEY_PTRS(k); i++) in __ptr_invalid()
51 if (ptr_available(c, k, i)) { in __ptr_invalid()
52 struct cache *ca = PTR_CACHE(c, k, i); in __ptr_invalid()
53 size_t bucket = PTR_BUCKET_NR(c, k, i); in __ptr_invalid()
54 size_t r = bucket_remainder(c, PTR_OFFSET(k, i)); in __ptr_invalid()
[all …]
Dbset.c21 struct bkey *k, *next; in bch_dump_bset() local
23 for (k = i->start; k < bset_bkey_last(i); k = next) { in bch_dump_bset()
24 next = bkey_next(k); in bch_dump_bset()
27 (unsigned) ((u64 *) k - i->d), i->keys); in bch_dump_bset()
30 b->ops->key_dump(b, k); in bch_dump_bset()
32 printk("%llu:%llu\n", KEY_INODE(k), KEY_OFFSET(k)); in bch_dump_bset()
35 bkey_cmp(k, b->ops->is_extents ? in bch_dump_bset()
56 struct bkey *k; in __bch_count_data() local
59 for_each_key(b, k, &iter) in __bch_count_data()
60 ret += KEY_SIZE(k); in __bch_count_data()
[all …]
Dbset.h236 static inline bool bkey_written(struct btree_keys *b, struct bkey *k) in bkey_written() argument
238 return !b->last_set_unwritten || k < b->set[b->nsets].data->start; in bkey_written()
251 #define __set_bytes(i, k) (sizeof(*(i)) + (k) * sizeof(uint64_t)) argument
254 #define __set_blocks(i, k, block_bytes) \ argument
255 DIV_ROUND_UP(__set_bytes(i, k), block_bytes)
311 struct bkey *k, *end; member
338 #define for_each_key_filter(b, k, iter, filter) \ argument
340 ((k) = bch_btree_iter_next_filter((iter), (b), filter));)
342 #define for_each_key(b, k, iter) \ argument
344 ((k) = bch_btree_iter_next(iter));)
[all …]
Dbtree.c93 #define PTR_HASH(c, k) \ argument
94 (((k)->ptr[0] >> c->bucket_bits) | PTR_GEN(k, 0))
178 void bkey_put(struct cache_set *c, struct bkey *k) in bkey_put() argument
182 for (i = 0; i < KEY_PTRS(k); i++) in bkey_put()
183 if (ptr_available(c, k, i)) in bkey_put()
184 atomic_dec_bug(&PTR_BUCKET(c, k, i)->pin); in bkey_put()
390 BKEY_PADDED(key) k; in do_btree_node_write()
419 bkey_copy(&k.key, &b->key); in do_btree_node_write()
420 SET_PTR_OFFSET(&k.key, 0, PTR_OFFSET(&k.key, 0) + in do_btree_node_write()
432 bch_submit_bbio(b->bio, b->c, &k.key, 0); in do_btree_node_write()
[all …]
/drivers/block/paride/
Depat.c99 { int k, ph, a, b; in epat_read_block() local
105 for(k=0;k<count;k++) { in epat_read_block()
106 if (k == count-1) w0(0xfd); in epat_read_block()
110 buf[k] = j44(a,b); in epat_read_block()
118 for(k=0;k<count;k++) { in epat_read_block()
119 if (k == count-1) w0(0xfd); in epat_read_block()
122 buf[k] = j53(a,b); in epat_read_block()
130 for(k=0;k<count-1;k++) { in epat_read_block()
132 buf[k] = r0(); in epat_read_block()
140 for(k=0;k<count-1;k++) buf[k] = r4(); in epat_read_block()
[all …]
Depia.c138 { int k, ph, a, b; in epia_read_block() local
144 for (k=0;k<count;k++) { in epia_read_block()
147 buf[k] = j44(a,b); in epia_read_block()
156 for (k=0;k<count;k++) { in epia_read_block()
159 buf[k] = j53(a,b); in epia_read_block()
167 for (k=0;k<count;k++) { in epia_read_block()
169 buf[k] = r0(); in epia_read_block()
177 for (k=0;k<count;k++) buf[k] = r4(); in epia_read_block()
183 for (k=0;k<count/2;k++) ((u16 *)buf)[k] = r4w(); in epia_read_block()
189 for (k=0;k<count/4;k++) ((u32 *)buf)[k] = r4l(); in epia_read_block()
[all …]
Dfriq.c79 { int h, l, k, ph; in friq_read_block_int() local
84 for (k=0;k<count;k++) { in friq_read_block_int()
87 buf[k] = j44(l,h); in friq_read_block_int()
95 for (k=0;k<count;k++) { in friq_read_block_int()
97 buf[k] = r0(); in friq_read_block_int()
104 for (k=0;k<count-2;k++) buf[k] = r4(); in friq_read_block_int()
112 for (k=0;k<(count/2)-1;k++) ((u16 *)buf)[k] = r4w(); in friq_read_block_int()
120 for (k=0;k<(count/4)-1;k++) ((u32 *)buf)[k] = r4l(); in friq_read_block_int()
139 { int k; in friq_write_block() local
145 for (k=0;k<count;k++) { in friq_write_block()
[all …]
Dfrpw.c76 { int h, l, k, ph; in frpw_read_block_int() local
81 for (k=0;k<count;k++) { in frpw_read_block_int()
84 buf[k] = j44(l,h); in frpw_read_block_int()
92 for (k=0;k<count;k++) { in frpw_read_block_int()
94 buf[k] = r0(); in frpw_read_block_int()
101 for (k=0;k<count;k++) buf[k] = r4(); in frpw_read_block_int()
107 for (k=0;k<count-2;k++) buf[k] = r4(); in frpw_read_block_int()
115 for (k=0;k<(count/2)-1;k++) ((u16 *)buf)[k] = r4w(); in frpw_read_block_int()
123 for (k=0;k<(count/4)-1;k++) ((u32 *)buf)[k] = r4l(); in frpw_read_block_int()
142 { int k; in frpw_write_block() local
[all …]
Ddstr.c117 { int k, a, b; in dstr_read_block() local
125 case 0: for (k=0;k<count;k++) { in dstr_read_block()
128 buf[k] = j44(a,b); in dstr_read_block()
133 for (k=0;k<count;k++) { in dstr_read_block()
134 w2(0x26); buf[k] = r0(); w2(0x24); in dstr_read_block()
140 for (k=0;k<count;k++) buf[k] = r4(); in dstr_read_block()
145 for (k=0;k<count/2;k++) ((u16 *)buf)[k] = r4w(); in dstr_read_block()
150 for (k=0;k<count/4;k++) ((u32 *)buf)[k] = r4l(); in dstr_read_block()
159 { int k; in dstr_write_block() local
168 case 1: for (k=0;k<count;k++) { in dstr_write_block()
[all …]
Dkbic.c136 { int k, a, b; in kbic_read_block() local
141 for (k=0;k<count/2;k++) { in kbic_read_block()
144 buf[2*k] = j44(a,b); in kbic_read_block()
147 buf[2*k+1] = j44(a,b); in kbic_read_block()
153 for (k=0;k<count/4;k++) { in kbic_read_block()
156 w0(8); buf[4*k] = j53(r12w()); in kbic_read_block()
157 w0(0xb8); buf[4*k+1] = j53(r12w()); in kbic_read_block()
159 buf[4*k+3] = j53(r12w()); in kbic_read_block()
160 w0(8); buf[4*k+2] = j53(r12w()); in kbic_read_block()
166 for (k=0;k<count/2;k++) { in kbic_read_block()
[all …]
Don26.c188 { int k, a, b; in on26_read_block() local
194 for (k=0;k<count;k++) { in on26_read_block()
197 buf[k] = j44(a,b); in on26_read_block()
204 for (k=0;k<count/2;k++) { in on26_read_block()
205 w2(0x26); buf[2*k] = r0(); in on26_read_block()
206 w2(0x24); buf[2*k+1] = r0(); in on26_read_block()
214 for (k=0;k<count;k++) buf[k] = r4(); in on26_read_block()
221 for (k=0;k<count/2;k++) ((u16 *)buf)[k] = r4w(); in on26_read_block()
228 for (k=0;k<count/4;k++) ((u32 *)buf)[k] = r4l(); in on26_read_block()
237 { int k; in on26_write_block() local
[all …]
Dfit3.c97 { int k, a, b, c, d; in fit3_read_block() local
102 for (k=0;k<count/2;k++) { in fit3_read_block()
107 buf[2*k ] = j44(a,b); in fit3_read_block()
108 buf[2*k+1] = j44(c,d); in fit3_read_block()
115 for (k=0;k<count/2;k++) { in fit3_read_block()
118 buf[2*k ] = a; in fit3_read_block()
119 buf[2*k+1] = b; in fit3_read_block()
127 for (k=0;k<count;k++) buf[k] = r4(); in fit3_read_block()
136 { int k; in fit3_write_block() local
142 for (k=0;k<count/2;k++) { in fit3_write_block()
[all …]
Daten.c72 { int k, a, b, c, d; in aten_read_block() local
77 for (k=0;k<count/2;k++) { in aten_read_block()
81 buf[2*k] = j44(c,d); in aten_read_block()
82 buf[2*k+1] = j44(a,b); in aten_read_block()
88 for (k=0;k<count/2;k++) { in aten_read_block()
91 buf[2*k] = b; buf[2*k+1] = a; in aten_read_block()
100 { int k; in aten_write_block() local
103 for (k=0;k<count/2;k++) { in aten_write_block()
104 w0(buf[2*k+1]); w2(0xe); w2(6); in aten_write_block()
105 w0(buf[2*k]); w2(7); w2(6); in aten_write_block()
Dcomm.c151 { int k; in comm_write_block() local
157 for (k=0;k<count;k++) { in comm_write_block()
158 w2(5); w0(buf[k^1]); w2(7); in comm_write_block()
164 for (k=0;k<count;k++) w4(buf[k^1]); in comm_write_block()
168 for (k=0;k<count/2;k++) w4w(pi_swab16(buf,k)); in comm_write_block()
172 for (k=0;k<count/4;k++) w4l(pi_swab32(buf,k)); in comm_write_block()
/drivers/net/ethernet/neterion/vxge/
Dvxge-ethtool.c210 int j, k; in vxge_get_ethtool_stats() local
276 for (k = 0; k < vdev->no_of_vpath; k++) { in vxge_get_ethtool_stats()
279 vpath = &vdev->vpaths[k]; in vxge_get_ethtool_stats()
353 for (k = 0; k < vdev->max_config_port; k++) { in vxge_get_ethtool_stats()
354 *ptr++ = xmac_stats->aggr_stats[k].tx_frms; in vxge_get_ethtool_stats()
355 *ptr++ = xmac_stats->aggr_stats[k].tx_data_octets; in vxge_get_ethtool_stats()
356 *ptr++ = xmac_stats->aggr_stats[k].tx_mcast_frms; in vxge_get_ethtool_stats()
357 *ptr++ = xmac_stats->aggr_stats[k].tx_bcast_frms; in vxge_get_ethtool_stats()
358 *ptr++ = xmac_stats->aggr_stats[k].tx_discarded_frms; in vxge_get_ethtool_stats()
359 *ptr++ = xmac_stats->aggr_stats[k].tx_errored_frms; in vxge_get_ethtool_stats()
[all …]
/drivers/irqchip/
Dirq-renesas-intc-irqpin.c314 int k; in intc_irqpin_shared_irq_handler() local
316 for (k = 0; k < 8; k++) { in intc_irqpin_shared_irq_handler()
317 if (reg_source & BIT(7 - k)) { in intc_irqpin_shared_irq_handler()
318 if (BIT(k) & p->shared_irq_mask) in intc_irqpin_shared_irq_handler()
321 status |= intc_irqpin_irq_handler(irq, &p->irq[k]); in intc_irqpin_shared_irq_handler()
362 int k; in intc_irqpin_probe() local
395 for (k = 0; k < INTC_IRQPIN_REG_NR; k++) { in intc_irqpin_probe()
396 io[k] = platform_get_resource(pdev, IORESOURCE_MEM, k); in intc_irqpin_probe()
397 if (!io[k]) { in intc_irqpin_probe()
405 for (k = 0; k < INTC_IRQPIN_MAX; k++) { in intc_irqpin_probe()
[all …]
/drivers/staging/wlan-ng/
Dp80211wep.c154 u32 i, j, k, crc, keylen; in wep_decrypt() local
201 for (k = 0; k < len; k++) { in wep_decrypt()
205 buf[k] ^= s[(s[i] + s[j]) & 0xff]; in wep_decrypt()
206 crc = wep_crc32_table[(crc ^ buf[k]) & 0xff] ^ (crc >> 8); in wep_decrypt()
216 for (k = 0; k < 4; k++) { in wep_decrypt()
220 if ((c_crc[k] ^ s[(s[i] + s[j]) & 0xff]) != icv[k]) in wep_decrypt()
221 return -(4 | (k << 4)); /* ICV mismatch */ in wep_decrypt()
231 u32 i, j, k, crc, keylen; in wep_encrypt() local
278 for (k = 0; k < len; k++) { in wep_encrypt()
279 crc = wep_crc32_table[(crc ^ buf[k]) & 0xff] ^ (crc >> 8); in wep_encrypt()
[all …]
/drivers/spi/
Dspi-sh-msiof.c214 int k; in sh_msiof_modify_ctr_wait() local
221 for (k = 100; k > 0; k--) { in sh_msiof_modify_ctr_wait()
228 return k > 0 ? 0 : -ETIMEDOUT; in sh_msiof_modify_ctr_wait()
263 size_t k; in sh_msiof_spi_set_clk_regs() local
270 for (k = 0; k < ARRAY_SIZE(sh_msiof_spi_clk_table); k++) { in sh_msiof_spi_set_clk_regs()
271 if (sh_msiof_spi_clk_table[k].div >= div) in sh_msiof_spi_set_clk_regs()
275 k = min_t(int, k, ARRAY_SIZE(sh_msiof_spi_clk_table) - 1); in sh_msiof_spi_set_clk_regs()
277 sh_msiof_write(p, TSCR, sh_msiof_spi_clk_table[k].scr); in sh_msiof_spi_set_clk_regs()
279 sh_msiof_write(p, RSCR, sh_msiof_spi_clk_table[k].scr); in sh_msiof_spi_set_clk_regs()
342 int k; in sh_msiof_spi_write_fifo_8() local
[all …]
/drivers/net/ethernet/ibm/ehea/
Dehea_ethtool.c231 int i, k, tmp; in ehea_get_ethtool_stats() local
242 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats()
243 tmp += port->port_res[k].p_stats.poll_receive_errors; in ehea_get_ethtool_stats()
246 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats()
247 tmp += port->port_res[k].p_stats.err_tcp_cksum; in ehea_get_ethtool_stats()
250 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats()
251 tmp += port->port_res[k].p_stats.err_ip_cksum; in ehea_get_ethtool_stats()
254 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats()
255 tmp += port->port_res[k].p_stats.err_frame_crc; in ehea_get_ethtool_stats()
258 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats()
[all …]
/drivers/input/joystick/
Dtmdc.c150 int i[2], j[2], t[2], p, k; in tmdc_read_packet() local
154 for (k = 0; k < 2; k++) { in tmdc_read_packet()
155 t[k] = gameport_time(gameport, TMDC_MAX_START); in tmdc_read_packet()
156 i[k] = j[k] = 0; in tmdc_read_packet()
168 for (k = 0, v = w, u = x; k < 2; k++, v >>= 2, u >>= 2) { in tmdc_read_packet()
170 if (t[k] <= 0 || i[k] >= TMDC_MAX_LENGTH) continue; in tmdc_read_packet()
171 t[k] = p; in tmdc_read_packet()
172 if (j[k] == 0) { /* Start bit */ in tmdc_read_packet()
173 if (~v & 1) t[k] = 0; in tmdc_read_packet()
174 data[k][i[k]] = 0; j[k]++; continue; in tmdc_read_packet()
[all …]
/drivers/sh/intc/
Dcore.c184 unsigned int i, k, smp; in register_intc_controller() local
211 for (k = 0; k < d->nr_windows; k++) { in register_intc_controller()
212 res = desc->resource + k; in register_intc_controller()
214 d->window[k].phys = res->start; in register_intc_controller()
215 d->window[k].size = resource_size(res); in register_intc_controller()
216 d->window[k].virt = ioremap_nocache(res->start, in register_intc_controller()
218 if (!d->window[k].virt) in register_intc_controller()
242 k = 0; in register_intc_controller()
247 k += save_reg(d, k, hw->mask_regs[i].set_reg, smp); in register_intc_controller()
248 k += save_reg(d, k, hw->mask_regs[i].clr_reg, smp); in register_intc_controller()
[all …]
/drivers/hwmon/
Dads1015.c168 int k; in ads1015_remove() local
171 for (k = 0; k < ADS1015_CHANNELS; ++k) in ads1015_remove()
172 device_remove_file(&client->dev, &ads1015_in[k].dev_attr); in ads1015_remove()
236 unsigned int k; in ads1015_get_channels_config() local
253 for (k = 0; k < ADS1015_CHANNELS; ++k) { in ads1015_get_channels_config()
254 data->channel_data[k].enabled = true; in ads1015_get_channels_config()
255 data->channel_data[k].pga = ADS1015_DEFAULT_PGA; in ads1015_get_channels_config()
256 data->channel_data[k].data_rate = ADS1015_DEFAULT_DATA_RATE; in ads1015_get_channels_config()
265 unsigned int k; in ads1015_probe() local
277 for (k = 0; k < ADS1015_CHANNELS; ++k) { in ads1015_probe()
[all …]
/drivers/scsi/aic7xxx/
Daic7xxx_93cx6.c159 u_int k = 0; in ahc_read_seeprom() local
167 for (k = start_addr; k < count + start_addr; k++) { in ahc_read_seeprom()
177 if ((k & (1 << i)) != 0) in ahc_read_seeprom()
183 if ((k & (1 << i)) != 0) in ahc_read_seeprom()
204 buf[k - start_addr] = v; in ahc_read_seeprom()
211 for (k = 0; k < count; k = k + 1) { in ahc_read_seeprom()
212 if (((k % 8) == 0) && (k != 0)) { in ahc_read_seeprom()
215 printk(KERN_CONT " 0x%x", buf[k]); in ahc_read_seeprom()
233 int i, k; in ahc_write_seeprom() local
253 for (k = start_addr; k < count + start_addr; k++) { in ahc_write_seeprom()
[all …]
/drivers/staging/iio/Documentation/
Dgeneric_buffer.c99 int k; in process_scan() local
100 for (k = 0; k < num_channels; k++) in process_scan()
101 switch (channels[k].bytes) { in process_scan()
104 print2byte(*(uint16_t *)(data + channels[k].location), in process_scan()
105 &channels[k]); in process_scan()
108 if (!channels[k].is_signed) { in process_scan()
110 (data + channels[k].location); in process_scan()
112 channels[k].offset)* in process_scan()
113 channels[k].scale); in process_scan()
118 if (channels[k].is_signed) { in process_scan()
[all …]
/drivers/scsi/
Datp870u.c55 unsigned long adrcnt, k; in atp870u_intr_handle() local
90 for (k=0; k < 1000; k++) { in atp870u_intr_handle()
149 k = dev->id[c][target_id].last_len; in atp870u_intr_handle()
150 k -= adrcnt; in atp870u_intr_handle()
151 dev->id[c][target_id].tran_len = k; in atp870u_intr_handle()
206 k = dev->id[c][target_id].last_len; in atp870u_intr_handle()
207 k -= adrcnt; in atp870u_intr_handle()
208 dev->id[c][target_id].tran_len = k; in atp870u_intr_handle()
249 k = dev->id[c][target_id].last_len; in atp870u_intr_handle()
250 k -= adrcnt; in atp870u_intr_handle()
[all …]

12345678910>>...17