Home
last modified time | relevance | path

Searched refs:i (Results 1 – 23 of 23) sorted by relevance

/dev/gpio_i2c/
A Dgpio_i2c.c43 spin_cycles(i->qcd); in send_start()
45 spin_cycles(i->hcd); in send_start()
51 spin_cycles(i->qcd); in send_stop()
58 send_start(i); in send_restart()
71 send_nack(i); in send_ack()
139 send_start(i); in gpio_i2c_tx_common()
153 send_stop(i); in gpio_i2c_tx_common()
171 send_start(i); in gpio_i2c_rx_common()
187 send_ack(i); in gpio_i2c_rx_common()
190 send_nack(i); in gpio_i2c_rx_common()
[all …]
/dev/gpio/
A Ddebug.c33 for (unsigned i = 0; i < countof(gpio_flag_labels); i++) { in get_flag_value() local
34 if (!strcmp(str, gpio_flag_labels[i].label)) { in get_flag_value()
35 return gpio_flag_labels[i].id; in get_flag_value()
59 for (int i = 3; i < argc; i++) { in cmd_gpio() local
60 flags |= get_flag_value(argv[i].str); in cmd_gpio()
68 for (unsigned int i = 0; i < countof(gpio_flag_labels); i++) { in cmd_gpio() local
69 printf("%s ", gpio_flag_labels[i].label); in cmd_gpio()
/dev/bus/pci/bus_mgr/
A Ddevice.cpp119 for (size_t i = 0; i < indent; i++) { in dump() local
130 for (size_t i = 0; i < indent + 1; i++) { in dump() local
349 for (size_t i=0; i < num_bars; i++) { in load_bars() local
350 bars_[i] = {}; in load_bars()
368 bars_[i].valid = (bars_[i].size != 0); in load_bars()
385 bars_[i].valid = (bars_[i].size != 0); in load_bars()
397 bars_[i].addr |= (uint64_t)config_.type0.base_addresses[i + 1] << 32; in load_bars()
414 bars_[i].valid = (bars_[i].size != 0); in load_bars()
417 i++; in load_bars()
445 for (auto i = 0; i < 6; i++) { in compute_bar_sizes() local
[all …]
A Dbus_mgr.cpp338 for (size_t i = 0; i < count; i++) { in pci_dump_bars() local
339 if (bar[i].valid) { in pci_dump_bars()
340 pci_dump_bar(bar + i, i); in pci_dump_bars()
A Dbridge.cpp170 for (size_t i = 0; i < indent; i++) { in dump() local
190 for (size_t i = 0; i < indent + 1; i++) { in dump() local
A Dbus.cpp266 for (size_t i = 0; i < indent; i++) { in dump() local
/dev/net/smc91c96/
A Dsmc91c96.c30 int i; in smc91c96_init() local
45 for (i=0; i < 6; i++) { in smc91c96_init()
46 mac_addr[i] = *SMC_REG8(SMC_IAR0 + i); in smc91c96_init()
/dev/usb/
A Dusb.c131 uint i; in usb_add_string() local
141 for (i = 0; i < len; i++) { in usb_add_string()
142 strbuf[i + 1] = (uint16_t)string[i]; in usb_add_string()
146 for (i = 0; i < MAX_STRINGS; i++) { in usb_add_string()
147 if (usb.strings[i].id == 0) { in usb_add_string()
148 usb.strings[i].string.desc = strbuf; in usb_add_string()
149 usb.strings[i].string.len = len * 2 + 2; in usb_add_string()
150 usb.strings[i].id = id; in usb_add_string()
255 uint i; in usbc_callback() local
258 for (i = 0; i < MAX_STRINGS; i++) { in usbc_callback()
[all …]
/dev/virtio/
A Dvirtio.c92 … for (uint i = ring->last_used; i != (cur_idx & ring->num_mask); i = (i + 1) & ring->num_mask) { in virtio_mmio_irq() local
93 LTRACEF("looking at idx %u\n", i); in virtio_mmio_irq()
132 for (uint i = 0; i < count; i++) { in virtio_mmio_detect() local
134 struct virtio_device *dev = &devices[i]; in virtio_mmio_detect()
136 dev->index = i; in virtio_mmio_detect()
137 dev->irq = irqs[i]; in virtio_mmio_detect()
139 mask_interrupt(irqs[i]); in virtio_mmio_detect()
256 return i; in virtio_alloc_desc()
282 last_index = i; in virtio_alloc_desc_chain()
364 for (uint i = 0; i < len; i++) { in virtio_alloc_ring() local
[all …]
/dev/keys/
A Dgpio_keypad.c143 int i; in gpio_keypad_init() local
160 for (i = 0; i < kpinfo->noutputs; i++) { in gpio_keypad_init()
161 gpio_set(kpinfo->output_gpios[i], output_val); in gpio_keypad_init()
162 gpio_config(kpinfo->output_gpios[i], output_cfg); in gpio_keypad_init()
164 for (i = 0; i < kpinfo->ninputs; i++) in gpio_keypad_init()
165 gpio_config(kpinfo->input_gpios[i], GPIO_INPUT); in gpio_keypad_init()
/dev/net/pcnet/
A Dpcnet.c132 int i; in pcnet_init() local
154 for (i=0; i < 6; i++) in pcnet_init()
155 state->padr[i] = inp(state->base + i); in pcnet_init()
216 for (i=0; i < state->rd_count; i++) { in pcnet_init()
222 state->rd[i].ones = 0xf; in pcnet_init()
223 state->rd[i].own = 1; in pcnet_init()
276 unsigned i; in pcnet_read_pci_config() local
286 for (i=0; i < countof(config.type0.base_addresses); i++) { in pcnet_read_pci_config()
288 LTRACEF(" BAR %d I/O REG: %04x\n", i, config.type0.base_addresses[i] & ~0x3); in pcnet_read_pci_config()
432 for (int i=0; i < state->td_count; i++) in pcnet_service_tx()
[all …]
/dev/virtio/net/
A Dvirtio-net.c225 for (uint i = 0; i < RX_RING_SIZE - 1; i++) { in virtio_net_start() local
238 uint16_t i; in virtio_net_queue_tx_pktbuf() local
276 ndev->pending_tx_packet[i] = p; in virtio_net_queue_tx_pktbuf()
291 virtio_submit_chain(vdev, RING_TX, i); in virtio_net_queue_tx_pktbuf()
341 uint16_t i; in virtio_net_queue_rx() local
347 ndev->pending_rx_packet[i] = p; in virtio_net_queue_rx()
355 virtio_submit_chain(vdev, RING_RX, i); in virtio_net_queue_rx()
373 uint16_t i = e->id; in virtio_net_irq_driver_callback() local
385 virtio_free_desc(dev, ring, i); in virtio_net_irq_driver_callback()
390 ndev->pending_rx_packet[i] = NULL; in virtio_net_irq_driver_callback()
[all …]
/dev/usb/class/cdcserial/
A Dcdcserial.c126 for (int i = 0; i < MAX_USB_ENDPOINT_PAIRS; i++) { in usb_register_cb() local
127 if ((0x1 << i) & chan->registered_bulk_eps_in) { in usb_register_cb()
128 usbc_setup_endpoint(i, USB_IN, 0x40, USB_BULK); in usb_register_cb()
130 if ((0x1 << i) & chan->registered_bulk_eps_out) { in usb_register_cb()
131 usbc_setup_endpoint(i, USB_OUT, 0x40, USB_BULK); in usb_register_cb()
133 if ((0x1 << i) & chan->registered_intr_eps_in) { in usb_register_cb()
134 usbc_setup_endpoint(i, USB_IN, 0x40, USB_INTR); in usb_register_cb()
136 if ((0x1 << i) & chan->registered_intr_eps_out) { in usb_register_cb()
137 usbc_setup_endpoint(i, USB_OUT, 0x40, USB_INTR); in usb_register_cb()
/dev/bus/pci/
A Ddebug.cpp90 unsigned int i; in pci_config() local
117 for (i=0; i < 6; i+=2) { in pci_config()
118 printf("bar%d=%08x bar%d=%08x\n", i, config.type0.base_addresses[i], in pci_config()
119 i+1, config.type0.base_addresses[i+1]); in pci_config()
124 for (i=0; i < 2; i+=2) { in pci_config()
125 printf("bar%d=%08x bar%d=%08x\n", i, config.type1.base_addresses[i], in pci_config()
126 i+1, config.type1.base_addresses[i+1]); in pci_config()
/dev/interrupt/riscv_plic/
A Dplic.c97 for (size_t i = 1; i < num_irqs; i++) { in plic_early_init() local
98 *REG32(PLIC_ENABLE(i, riscv_current_hart())) &= ~(1 << (i % 32)); in plic_early_init()
99 *REG32(PLIC_PRIORITY(i)) = 1; in plic_early_init()
/dev/interrupt/arm_gic/
A Darm_gic.c257 int i; in arm_gic_init() local
259 for (i = 0; i < MAX_INT; i+= 32) { in arm_gic_init()
266 for (i = 32; i < MAX_INT; i += 4) { in arm_gic_init()
267 gicreg_write32(0, GICD_ITARGETSR(i / 4), gicd_itargetsr[i / 4]); in arm_gic_init()
272 for (i = 32; i < MAX_INT; i++) { in arm_gic_init()
285 for (i = 32; i < MAX_INT; i += 32) { in arm_gic_init()
286 u_int reg = i / 32; in arm_gic_init()
545 u_int i, j; in update_fiq_targets() local
552 for (i = 0; i < BITMAP_NUM_WORDS(MAX_INT); i++) { in update_fiq_targets()
553 mask = enabled_fiq_mask[i]; in update_fiq_targets()
[all …]
/dev/usb/class/bulktest/
A Dbulktest.c53 for (uint i = 0; i < sizeof(buf); i++) { in queue_tx() local
54 buf[i] = ~i; in queue_tx()
/dev/virtio/gpu/
A Dvirtio-gpu.c70 uint16_t i; in send_command_response() local
94 virtio_submit_chain(gdev->dev, 0, i); in send_command_response()
136 for (uint i = 0; i < VIRTIO_GPU_MAX_SCANOUTS; i++) { in get_display_info() local
137 if (info->pmodes[i].enabled) { in get_display_info()
138 LTRACEF("%u: x %u y %u w %u h %u flags 0x%x\n", i, in get_display_info()
139 … info->pmodes[i].r.x, info->pmodes[i].r.y, info->pmodes[i].r.width, info->pmodes[i].r.height, in get_display_info()
140 info->pmodes[i].flags); in get_display_info()
144 gdev->pmode_id = i; in get_display_info()
475 uint16_t i = e->id; in virtio_gpu_irq_driver_callback() local
489 virtio_free_desc(dev, ring, i); in virtio_gpu_irq_driver_callback()
[all …]
/dev/bus/pci/backend/
A Dbios32.cpp82 uint i; in find_pci_bios_info() local
89 for (i=0; i < sizeof(pci_bios_info); i++) { in find_pci_bios_info()
90 sum += b[i]; in find_pci_bios_info()
/dev/virtio/9p/
A Dvirtio-9p.c84 for (int i = 0; i < p9dev->config->tag_len; ++i) { in virtio_9p_init() local
85 printf("%c", p9dev->config->tag[i]); in virtio_9p_init()
A Dprotocol.c286 for (int i = 0; i < tmsg->msg.twalk.nwname; i++) { in p9_proto_twalk() local
287 if ((ret = pdu_writestr(&req->tc, tmsg->msg.twalk.wname[i])) != NO_ERROR) in p9_proto_twalk()
299 for (int i = 0; i < rmsg->msg.rwalk.nwqid; i++) { in p9_proto_rwalk() local
300 rmsg->msg.rwalk.qid[i] = pdu_readqid(&req->rc); in p9_proto_rwalk()
302 rmsg->msg.rwalk.qid[i].type, rmsg->msg.rwalk.qid[i].version, in p9_proto_rwalk()
303 rmsg->msg.rwalk.qid[i].path); in p9_proto_rwalk()
/dev/virtio/block/
A Dvirtio-block.c272 uint16_t i = e->id; in virtio_block_irq_driver_callback() local
275 struct vring_desc *desc = virtio_desc_index_to_desc(dev, ring, i); in virtio_block_irq_driver_callback()
286 virtio_free_desc(dev, ring, i); in virtio_block_irq_driver_callback()
290 i = next; in virtio_block_irq_driver_callback()
311 uint16_t i; in virtio_block_do_txn() local
316 desc = virtio_alloc_desc_chain(dev, 0, 3, &i); in virtio_block_do_txn()
317 LTRACEF("after alloc chain desc %p, i %u\n", desc, i); in virtio_block_do_txn()
321 struct virtio_block_txn *txn = &bdev->txns[i]; in virtio_block_do_txn()
423 virtio_submit_chain(dev, 0, i); in virtio_block_do_txn()
/dev/net/e1000/
A De1000.cpp469 for (size_t i = 0; i < rxring_len - 1; i++) { in init_device() local
475 pktbuf_add_buffer(pkt, rx_buf_ + i * rxbuffer_len, rxbuffer_len, 0, 0, nullptr, nullptr); in init_device()
545 for (size_t i = 0; ; i++) { in e1000_init() local
547 status_t err = pci_bus_mgr_find_device(&loc, id.id, 0x8086, i); in e1000_init()

Completed in 933 milliseconds