Home
last modified time | relevance | path

Searched refs:ei (Results 1 – 22 of 22) sorted by relevance

/drivers/mfd/
Dhtc-egpio.c52 static inline void egpio_writew(u16 value, struct egpio_info *ei, int reg) in egpio_writew() argument
54 writew(value, ei->base_addr + (reg << ei->bus_shift)); in egpio_writew()
57 static inline u16 egpio_readw(struct egpio_info *ei, int reg) in egpio_readw() argument
59 return readw(ei->base_addr + (reg << ei->bus_shift)); in egpio_readw()
66 static inline void ack_irqs(struct egpio_info *ei) in ack_irqs() argument
68 egpio_writew(ei->ack_write, ei, ei->ack_register); in ack_irqs()
70 ei->ack_write, ei->ack_register << ei->bus_shift); in ack_irqs()
82 struct egpio_info *ei = irq_data_get_irq_chip_data(data); in egpio_mask() local
83 ei->irqs_enabled &= ~(1 << (data->irq - ei->irq_start)); in egpio_mask()
84 pr_debug("EGPIO mask %d %04x\n", data->irq, ei->irqs_enabled); in egpio_mask()
[all …]
/drivers/staging/ozwpan/
Dozeltbuf.c47 struct oz_elt_info *ei = in oz_elt_buf_term() local
50 kfree(ei); in oz_elt_buf_term()
55 struct oz_elt_info *ei = in oz_elt_buf_term() local
58 kfree(ei); in oz_elt_buf_term()
67 struct oz_elt_info *ei = 0; in oz_elt_info_alloc() local
70 ei = container_of(buf->elt_pool, struct oz_elt_info, link); in oz_elt_info_alloc()
71 buf->elt_pool = ei->link.next; in oz_elt_info_alloc()
74 if (ei->magic != OZ_ELT_INFO_MAGIC_FREE) { in oz_elt_info_alloc()
76 ei->magic); in oz_elt_info_alloc()
80 ei = kmalloc(sizeof(struct oz_elt_info), GFP_ATOMIC); in oz_elt_info_alloc()
[all …]
Dozusbsvc1.c32 static int oz_usb_submit_elt(struct oz_elt_buf *eb, struct oz_elt_info *ei, in oz_usb_submit_elt() argument
36 struct oz_elt *elt = (struct oz_elt *)ei->data; in oz_usb_submit_elt()
39 ei->app_id = OZ_APPID_USB; in oz_usb_submit_elt()
40 ei->length = elt->length + sizeof(struct oz_elt); in oz_usb_submit_elt()
48 ret = oz_queue_elt_info(eb, isoc, strid, ei); in oz_usb_submit_elt()
50 oz_elt_info_free(eb, ei); in oz_usb_submit_elt()
65 struct oz_elt_info *ei = oz_elt_info_alloc(&pd->elt_buff); in oz_usb_get_desc_req() local
74 if (ei == 0) in oz_usb_get_desc_req()
76 elt = (struct oz_elt *)ei->data; in oz_usb_get_desc_req()
87 return oz_usb_submit_elt(eb, ei, usb_ctx, 0, 0); in oz_usb_get_desc_req()
[all …]
Dozpd.c454 struct oz_elt_info *ei; in oz_build_frame() local
455 ei = container_of(e, struct oz_elt_info, link); in oz_build_frame()
456 memcpy(elt, ei->data, ei->length); in oz_build_frame()
470 struct oz_elt_info *ei; in oz_retire_frame() local
473 ei = container_of(e, struct oz_elt_info, link); in oz_retire_frame()
475 list_del_init(&ei->link); in oz_retire_frame()
476 if (ei->callback) in oz_retire_frame()
477 ei->callback(pd, ei->context); in oz_retire_frame()
479 oz_elt_info_free(&pd->elt_buff, ei); in oz_retire_frame()
578 struct oz_elt_info *ei; in oz_send_isoc_frame() local
[all …]
Dozcdev.c151 struct oz_elt_info *ei = 0; in oz_cdev_write() local
164 ei = oz_elt_info_alloc(eb); in oz_cdev_write()
165 if (ei == 0) { in oz_cdev_write()
169 elt = (struct oz_elt *)ei->data; in oz_cdev_write()
173 ei->app_id = OZ_APPID_SERIAL; in oz_cdev_write()
174 ei->length = elt->length + sizeof(struct oz_elt); in oz_cdev_write()
185 if (oz_queue_elt_info(eb, 0, 0, ei) == 0) in oz_cdev_write()
186 ei = 0; in oz_cdev_write()
191 if (ei) { in oz_cdev_write()
194 oz_elt_info_free(eb, ei); in oz_cdev_write()
Dozeltbuf.h56 void oz_elt_info_free(struct oz_elt_buf *buf, struct oz_elt_info *ei);
63 struct oz_elt_info *ei);
/drivers/mtd/tests/
Dmtd_speedtest.c74 struct erase_info ei; in erase_eraseblock() local
77 memset(&ei, 0, sizeof(struct erase_info)); in erase_eraseblock()
78 ei.mtd = mtd; in erase_eraseblock()
79 ei.addr = addr; in erase_eraseblock()
80 ei.len = mtd->erasesize; in erase_eraseblock()
82 err = mtd_erase(mtd, &ei); in erase_eraseblock()
88 if (ei.state == MTD_ERASE_FAILED) { in erase_eraseblock()
100 struct erase_info ei; in multiblock_erase() local
103 memset(&ei, 0, sizeof(struct erase_info)); in multiblock_erase()
104 ei.mtd = mtd; in multiblock_erase()
[all …]
Dmtd_stresstest.c107 struct erase_info ei; in erase_eraseblock() local
110 memset(&ei, 0, sizeof(struct erase_info)); in erase_eraseblock()
111 ei.mtd = mtd; in erase_eraseblock()
112 ei.addr = addr; in erase_eraseblock()
113 ei.len = mtd->erasesize; in erase_eraseblock()
115 err = mtd_erase(mtd, &ei); in erase_eraseblock()
121 if (unlikely(ei.state == MTD_ERASE_FAILED)) { in erase_eraseblock()
Dmtd_subpagetest.c75 struct erase_info ei; in erase_eraseblock() local
78 memset(&ei, 0, sizeof(struct erase_info)); in erase_eraseblock()
79 ei.mtd = mtd; in erase_eraseblock()
80 ei.addr = addr; in erase_eraseblock()
81 ei.len = mtd->erasesize; in erase_eraseblock()
83 err = mtd_erase(mtd, &ei); in erase_eraseblock()
89 if (ei.state == MTD_ERASE_FAILED) { in erase_eraseblock()
Dmtd_torturetest.c100 struct erase_info ei; in erase_eraseblock() local
103 memset(&ei, 0, sizeof(struct erase_info)); in erase_eraseblock()
104 ei.mtd = mtd; in erase_eraseblock()
105 ei.addr = addr; in erase_eraseblock()
106 ei.len = mtd->erasesize; in erase_eraseblock()
108 err = mtd_erase(mtd, &ei); in erase_eraseblock()
114 if (ei.state == MTD_ERASE_FAILED) { in erase_eraseblock()
Dmtd_pagetest.c72 struct erase_info ei; in erase_eraseblock() local
75 memset(&ei, 0, sizeof(struct erase_info)); in erase_eraseblock()
76 ei.mtd = mtd; in erase_eraseblock()
77 ei.addr = addr; in erase_eraseblock()
78 ei.len = mtd->erasesize; in erase_eraseblock()
80 err = mtd_erase(mtd, &ei); in erase_eraseblock()
86 if (ei.state == MTD_ERASE_FAILED) { in erase_eraseblock()
Dmtd_oobtest.c73 struct erase_info ei; in erase_eraseblock() local
76 memset(&ei, 0, sizeof(struct erase_info)); in erase_eraseblock()
77 ei.mtd = mtd; in erase_eraseblock()
78 ei.addr = addr; in erase_eraseblock()
79 ei.len = mtd->erasesize; in erase_eraseblock()
81 err = mtd_erase(mtd, &ei); in erase_eraseblock()
87 if (ei.state == MTD_ERASE_FAILED) { in erase_eraseblock()
/drivers/block/
Dcciss_scsi.c728 ErrorInfo_struct *ei; in complete_scsi_command() local
730 ei = c->err_info; in complete_scsi_command()
749 cmd->result |= (ei->ScsiStatus); in complete_scsi_command()
754 memcpy(cmd->sense_buffer, ei->SenseInfo, in complete_scsi_command()
755 ei->SenseLen > SCSI_SENSE_BUFFERSIZE ? in complete_scsi_command()
757 ei->SenseLen); in complete_scsi_command()
758 scsi_set_resid(cmd, ei->ResidualCnt); in complete_scsi_command()
760 if(ei->CommandStatus != 0) in complete_scsi_command()
762 switch(ei->CommandStatus) in complete_scsi_command()
766 if (!ei->ScsiStatus) { in complete_scsi_command()
[all …]
/drivers/mtd/ubi/
Dio.c326 static void erase_callback(struct erase_info *ei) in erase_callback() argument
328 wake_up_interruptible((wait_queue_head_t *)ei->priv); in erase_callback()
343 struct erase_info ei; in do_sync_erase() local
356 memset(&ei, 0, sizeof(struct erase_info)); in do_sync_erase()
358 ei.mtd = ubi->mtd; in do_sync_erase()
359 ei.addr = (loff_t)pnum * ubi->peb_size; in do_sync_erase()
360 ei.len = ubi->peb_size; in do_sync_erase()
361 ei.callback = erase_callback; in do_sync_erase()
362 ei.priv = (unsigned long)&wq; in do_sync_erase()
364 err = mtd_erase(ubi->mtd, &ei); in do_sync_erase()
[all …]
/drivers/scsi/
Dhpsa.c1131 struct ErrorInfo *ei; in complete_scsi_command() local
1138 ei = cp->err_info; in complete_scsi_command()
1148 cmd->result |= ei->ScsiStatus; in complete_scsi_command()
1151 if (SCSI_SENSE_BUFFERSIZE < sizeof(ei->SenseInfo)) in complete_scsi_command()
1154 sense_data_size = sizeof(ei->SenseInfo); in complete_scsi_command()
1155 if (ei->SenseLen < sense_data_size) in complete_scsi_command()
1156 sense_data_size = ei->SenseLen; in complete_scsi_command()
1158 memcpy(cmd->sense_buffer, ei->SenseInfo, sense_data_size); in complete_scsi_command()
1159 scsi_set_resid(cmd, ei->ResidualCnt); in complete_scsi_command()
1161 if (ei->CommandStatus == 0) { in complete_scsi_command()
[all …]
/drivers/net/ethernet/intel/igbvf/
Dnetdev.c1550 adapter->ei->init_ops(&adapter->hw); in igbvf_sw_init()
2606 const struct igbvf_info *ei = igbvf_info_tbl[ent->driver_data]; in igbvf_probe() local
2652 adapter->ei = ei; in igbvf_probe()
2653 adapter->pba = ei->pba; in igbvf_probe()
2654 adapter->flags = ei->flags; in igbvf_probe()
2656 adapter->hw.mac.type = ei->mac; in igbvf_probe()
2674 if (ei->get_variants) { in igbvf_probe()
2675 err = ei->get_variants(adapter); in igbvf_probe()
Digbvf.h186 const struct igbvf_info *ei; member
/drivers/net/ethernet/8390/
Dne2k-pci.c638 struct ei_device *ei = netdev_priv(dev); in ne2k_pci_get_drvinfo() local
639 struct pci_dev *pci_dev = (struct pci_dev *) ei->priv; in ne2k_pci_get_drvinfo()
/drivers/net/ethernet/intel/e1000e/
Dnetdev.c6077 const struct e1000_info *ei = e1000_info_tbl[ent->driver_data]; in e1000_probe() local
6086 if (ei->flags2 & FLAG2_DISABLE_ASPM_L0S) in e1000_probe()
6088 if (ei->flags2 & FLAG2_DISABLE_ASPM_L1) in e1000_probe()
6144 adapter->ei = ei; in e1000_probe()
6145 adapter->pba = ei->pba; in e1000_probe()
6146 adapter->flags = ei->flags; in e1000_probe()
6147 adapter->flags2 = ei->flags2; in e1000_probe()
6149 adapter->hw.mac.type = ei->mac; in e1000_probe()
6150 adapter->max_hw_frame_size = ei->max_hw_frame_size; in e1000_probe()
6189 memcpy(&hw->mac.ops, ei->mac_ops, sizeof(hw->mac.ops)); in e1000_probe()
[all …]
De1000.h288 const struct e1000_info *ei; member
/drivers/net/wireless/brcm80211/brcmsmac/phy/
Dphy_lcn.c3493 u8 di0, dq0, ei, eq, fi, fq; in wlc_lcnphy_get_cc() local
3511 wlc_lcnphy_get_radio_loft(pi, &ei, &eq, &fi, &fq); in wlc_lcnphy_get_cc()
3512 cc.re = (u16) ei; in wlc_lcnphy_get_cc()
3516 wlc_lcnphy_get_radio_loft(pi, &ei, &eq, &fi, &fq); in wlc_lcnphy_get_cc()
/drivers/net/ethernet/intel/igb/
Digb_main.c1852 const struct e1000_info *ei = igb_info_tbl[ent->driver_data]; in igb_probe() local
1941 memcpy(&hw->mac.ops, ei->mac_ops, sizeof(hw->mac.ops)); in igb_probe()
1942 memcpy(&hw->phy.ops, ei->phy_ops, sizeof(hw->phy.ops)); in igb_probe()
1943 memcpy(&hw->nvm.ops, ei->nvm_ops, sizeof(hw->nvm.ops)); in igb_probe()
1945 err = ei->get_invariants(hw); in igb_probe()