/drivers/mfd/ |
D | htc-egpio.c | 52 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/ |
D | ozeltbuf.c | 47 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 …]
|
D | ozusbsvc1.c | 32 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 …]
|
D | ozpd.c | 454 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 …]
|
D | ozcdev.c | 151 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()
|
D | ozeltbuf.h | 56 void oz_elt_info_free(struct oz_elt_buf *buf, struct oz_elt_info *ei); 63 struct oz_elt_info *ei);
|
/drivers/mtd/tests/ |
D | mtd_speedtest.c | 74 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 …]
|
D | mtd_stresstest.c | 107 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()
|
D | mtd_subpagetest.c | 75 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()
|
D | mtd_torturetest.c | 100 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()
|
D | mtd_pagetest.c | 72 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()
|
D | mtd_oobtest.c | 73 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/ |
D | cciss_scsi.c | 728 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/ |
D | io.c | 326 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/ |
D | hpsa.c | 1131 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/ |
D | netdev.c | 1550 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()
|
D | igbvf.h | 186 const struct igbvf_info *ei; member
|
/drivers/net/ethernet/8390/ |
D | ne2k-pci.c | 638 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/ |
D | netdev.c | 6077 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 …]
|
D | e1000.h | 288 const struct e1000_info *ei; member
|
/drivers/net/wireless/brcm80211/brcmsmac/phy/ |
D | phy_lcn.c | 3493 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/ |
D | igb_main.c | 1852 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()
|