/drivers/staging/imx-drm/ipu-v3/ |
D | ipu-dmfc.c | 101 unsigned slots; member 154 static int ipu_dmfc_setup_channel(struct dmfc_channel *dmfc, int slots, in ipu_dmfc_setup_channel() argument 162 slots, segment, dmfc->data->ipu_channel); in ipu_dmfc_setup_channel() 167 switch (slots) { in ipu_dmfc_setup_channel() 208 dmfc->slots = slots; in ipu_dmfc_setup_channel() 211 dmfc->slotmask = ((1 << slots) - 1) << segment; in ipu_dmfc_setup_channel() 219 int slots = 1; in dmfc_bandwidth_to_slots() local 221 while (slots * priv->bandwidth_per_slot < bandwidth) in dmfc_bandwidth_to_slots() 222 slots *= 2; in dmfc_bandwidth_to_slots() 224 return slots; in dmfc_bandwidth_to_slots() [all …]
|
/drivers/input/ |
D | input-mt.c | 52 mt = kzalloc(sizeof(*mt) + num_slots * sizeof(*mt->slots), GFP_KERNEL); in input_mt_init_slots() 93 input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1); in input_mt_init_slots() 142 slot = &mt->slots[mt->slot]; in input_mt_report_slot_state() 205 struct input_mt_slot *ps = &mt->slots[i]; in input_mt_report_pointer_emulation() 257 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_sync_frame() 260 input_mt_slot(dev, s - mt->slots); in input_mt_sync_frame() 326 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_matrix() 341 int *slots, int num_pos) in input_mt_set_slots() argument 346 for (p = slots; p != slots + num_pos; p++) in input_mt_set_slots() 349 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots() [all …]
|
/drivers/misc/mei/ |
D | interrupt.c | 202 static int _mei_irq_thread_close(struct mei_device *dev, s32 *slots, in _mei_irq_thread_close() argument 210 if (*slots < msg_slots) in _mei_irq_thread_close() 213 *slots -= msg_slots; in _mei_irq_thread_close() 243 static int _mei_irq_thread_read(struct mei_device *dev, s32 *slots, in _mei_irq_thread_read() argument 250 if (*slots < msg_slots) { in _mei_irq_thread_read() 256 *slots -= msg_slots; in _mei_irq_thread_read() 281 static int _mei_irq_thread_ioctl(struct mei_device *dev, s32 *slots, in _mei_irq_thread_ioctl() argument 289 if (*slots < msg_slots) { in _mei_irq_thread_ioctl() 295 *slots -= msg_slots; in _mei_irq_thread_ioctl() 321 static int mei_irq_thread_write_complete(struct mei_device *dev, s32 *slots, in mei_irq_thread_write_complete() argument [all …]
|
D | amthif.c | 446 int mei_amthif_irq_write_complete(struct mei_device *dev, s32 *slots, in mei_amthif_irq_write_complete() argument 458 if (*slots >= msg_slots) { in mei_amthif_irq_write_complete() 462 } else if (*slots == dev->hbuf_depth) { in mei_amthif_irq_write_complete() 463 msg_slots = *slots; in mei_amthif_irq_write_complete() 464 len = (*slots * sizeof(u32)) - sizeof(struct mei_msg_hdr); in mei_amthif_irq_write_complete() 474 *slots -= msg_slots; in mei_amthif_irq_write_complete() 567 int mei_amthif_irq_read(struct mei_device *dev, s32 *slots) in mei_amthif_irq_read() argument 571 if (*slots < msg_slots) in mei_amthif_irq_read() 574 *slots -= msg_slots; in mei_amthif_irq_read()
|
D | hw-me.c | 469 s32 slots; in mei_me_irq_thread_handler() local 510 slots = mei_count_full_read_slots(dev); in mei_me_irq_thread_handler() 511 while (slots > 0) { in mei_me_irq_thread_handler() 515 dev_dbg(&dev->pdev->dev, "slots =%08x\n", slots); in mei_me_irq_thread_handler() 517 rets = mei_irq_read_handler(dev, &complete_list, &slots); in mei_me_irq_thread_handler()
|
D | mei_dev.h | 478 struct mei_cl_cb *cmpl_list, s32 *slots); 505 int mei_amthif_irq_write_complete(struct mei_device *dev, s32 *slots, 512 int mei_amthif_irq_read(struct mei_device *dev, s32 *slots); 525 int mei_amthif_irq_write_complete(struct mei_device *dev, s32 *slots, 531 int mei_amthif_irq_read(struct mei_device *dev, s32 *slots);
|
/drivers/input/touchscreen/ |
D | penmount.c | 63 struct mt_slot slots[PM_MAX_MTSLOT]; member 78 pm->slots[i].active); in pm_mtevent() 79 if (pm->slots[i].active) { in pm_mtevent() 80 input_event(input, EV_ABS, ABS_MT_POSITION_X, pm->slots[i].x); in pm_mtevent() 81 input_event(input, EV_ABS, ABS_MT_POSITION_Y, pm->slots[i].y); in pm_mtevent() 141 pm->slots[slotnum].active = pm->data[0] & 0x30; in pm_parse_3000() 142 pm->slots[slotnum].x = pm->data[2] * 256 + pm->data[1]; in pm_parse_3000() 143 pm->slots[slotnum].y = pm->data[4] * 256 + pm->data[3]; in pm_parse_3000() 157 pm->slots[slotnum].active = pm->data[0] & 0x40; in pm_parse_6250() 158 pm->slots[slotnum].x = pm->data[2] * 256 + pm->data[1]; in pm_parse_6250() [all …]
|
/drivers/dma/ioat/ |
D | dca.c | 395 int slots = 0; in ioat2_dca_count_dca_slots() local 403 req = readl(iobase + global_req_table + (slots * sizeof(u32))); in ioat2_dca_count_dca_slots() 404 slots++; in ioat2_dca_count_dca_slots() 407 return slots; in ioat2_dca_count_dca_slots() 414 int slots; in ioat2_dca_init() local 430 slots = ioat2_dca_count_dca_slots(iobase, dca_offset); in ioat2_dca_init() 431 if (slots == 0) in ioat2_dca_init() 436 + (sizeof(struct ioat_dca_slot) * slots)); in ioat2_dca_init() 443 ioatdca->max_requesters = slots; in ioat2_dca_init() 591 int slots = 0; in ioat3_dca_count_dca_slots() local [all …]
|
/drivers/staging/zcache/ |
D | tmem.c | 270 memset(&objnode->slots, 0, sizeof(objnode->slots)); in tmem_objnode_alloc() 284 BUG_ON(objnode->slots[i] != NULL); in tmem_objnode_free() 323 ((*slot)->slots + in __tmem_pampd_lookup_in_obj() 384 newnode->slots[0] = obj->objnode_tree_root; in tmem_pampd_add_to_obj() 404 objnode->slots[offset] = slot; in tmem_pampd_add_to_obj() 412 slot = objnode->slots[offset]; in tmem_pampd_add_to_obj() 419 objnode->slots[offset] = pampd; in tmem_pampd_add_to_obj() 456 slot = slot->slots[offset]; in tmem_pampd_delete_from_obj() 463 pathp->objnode->slots[pathp->offset] = NULL; in tmem_pampd_delete_from_obj() 469 obj->objnode_tree_root->slots[0]) { in tmem_pampd_delete_from_obj() [all …]
|
/drivers/pci/hotplug/ |
D | ibmphp_ebda.c | 80 struct ebda_hpc_slot *slots; in alloc_ebda_hpc() local 87 slots = kcalloc(slot_count, sizeof(struct ebda_hpc_slot), GFP_KERNEL); in alloc_ebda_hpc() 88 if (!slots) in alloc_ebda_hpc() 90 controller->slots = slots; in alloc_ebda_hpc() 99 kfree(controller->slots); in alloc_ebda_hpc() 108 kfree (controller->slots); in free_ebda_hpc() 212 debug ("%s - physical slot#: %x\n", __func__, hpc_ptr->slots[index].slot_num); in print_ebda_hpc() 213 debug ("%s - pci bus# of the slot: %x\n", __func__, hpc_ptr->slots[index].slot_bus_num); in print_ebda_hpc() 214 debug ("%s - index into ctlr addr: %x\n", __func__, hpc_ptr->slots[index].ctl_index); in print_ebda_hpc() 215 debug ("%s - cap of the slot: %x\n", __func__, hpc_ptr->slots[index].slot_cap); in print_ebda_hpc() [all …]
|
D | cpci_hotplug_core.c | 58 static int slots; variable 289 slots++; in cpci_hp_register_bus() 311 if (!slots) { in cpci_hp_unregister_bus() 318 slots--; in cpci_hp_unregister_bus() 367 if (!slots) { in init_slots() 399 if (!slots) { in check_slots() 629 if (!slots) in cleanup_slots()
|
D | ibmphp_core.c | 156 if ((*cur_slot)->number == rtable->slots[loop].slot && in ibmphp_init_devno() 157 (*cur_slot)->bus == rtable->slots[loop].bus) { in ibmphp_init_devno() 160 (*cur_slot)->device = PCI_SLOT(rtable->slots[loop].devfn); in ibmphp_init_devno() 178 rtable->slots[loop].irq[0].bitmap); in ibmphp_init_devno() 180 rtable->slots[loop].irq[1].bitmap); in ibmphp_init_devno() 182 rtable->slots[loop].irq[2].bitmap); in ibmphp_init_devno() 184 rtable->slots[loop].irq[3].bitmap); in ibmphp_init_devno() 187 rtable->slots[loop].irq[0].link); in ibmphp_init_devno() 189 rtable->slots[loop].irq[1].link); in ibmphp_init_devno() 191 rtable->slots[loop].irq[2].link); in ibmphp_init_devno() [all …]
|
D | acpiphp_glue.c | 100 list_for_each_entry_safe(slot, next, &bridge->slots, node) { in free_bridge() 260 list_for_each_entry(slot, &bridge->slots, node) in register_slot() 282 list_add_tail(&slot->node, &bridge->slots); in register_slot() 416 list_for_each_entry(slot, &bridge->slots, node) { in acpiphp_bridge_handle_to_function() 472 list_for_each_entry(slot, &bridge->slots, node) { in cleanup_bridge() 886 list_for_each_entry(slot, &bridge->slots, node) { in acpiphp_check_bridge() 1189 INIT_LIST_HEAD(&bridge->slots); in acpiphp_enumerate_slots()
|
/drivers/mmc/host/ |
D | omap_hsmmc.c | 131 #define mmc_slot(host) (host->pdata->slots[host->slot_id]) 195 return !gpio_get_value_cansleep(mmc->slots[0].switch_pin); in omap_hsmmc_card_detect() 204 return gpio_get_value_cansleep(mmc->slots[0].gpio_wp); in omap_hsmmc_get_wp() 213 return !gpio_get_value_cansleep(mmc->slots[0].switch_pin); in omap_hsmmc_get_cover_state() 223 disable_irq(mmc->slots[0].card_detect_irq); in omap_hsmmc_suspend_cdirq() 232 enable_irq(mmc->slots[0].card_detect_irq); in omap_hsmmc_resume_cdirq() 395 if (gpio_is_valid(pdata->slots[0].switch_pin)) { in omap_hsmmc_gpio_init() 396 if (pdata->slots[0].cover) in omap_hsmmc_gpio_init() 397 pdata->slots[0].get_cover_state = in omap_hsmmc_gpio_init() 400 pdata->slots[0].card_detect = omap_hsmmc_card_detect; in omap_hsmmc_gpio_init() [all …]
|
D | sdhci-pci.c | 91 struct sdhci_pci_slot *slots[MAX_SLOTS]; /* Pointers to host slots */ member 569 jmicron_enable_mmc(chip->slots[i]->host, 0); in jmicron_suspend() 582 jmicron_enable_mmc(chip->slots[i]->host, 1); in jmicron_resume() 1060 slot = chip->slots[i]; in sdhci_pci_suspend() 1099 sdhci_resume_host(chip->slots[i]->host); in sdhci_pci_suspend() 1127 slot = chip->slots[i]; in sdhci_pci_resume() 1160 slot = chip->slots[i]; in sdhci_pci_runtime_suspend() 1180 sdhci_runtime_resume_host(chip->slots[i]->host); in sdhci_pci_runtime_suspend() 1202 slot = chip->slots[i]; in sdhci_pci_runtime_resume() 1419 u8 slots, first_bar; in sdhci_pci_probe() local [all …]
|
D | omap.c | 172 struct mmc_omap_slot *slots[OMAP_MMC_MAX_SLOTS]; member 292 if (host->slots[i] == NULL || host->slots[i]->mrq == NULL) in mmc_omap_release_slot() 296 new_slot = host->slots[i]; in mmc_omap_release_slot() 741 dev_info(mmc_dev(host->slots[0]->mmc), in mmc_omap_irq() 870 struct mmc_omap_slot *slot = host->slots[num]; in omap_mmc_notify_cover_event() 875 if (host->nr_slots == 0 || !host->slots[num]) in omap_mmc_notify_cover_event() 1247 slot->pdata = &host->pdata->slots[id]; in mmc_omap_new_slot() 1249 host->slots[id] = slot; in mmc_omap_new_slot() 1252 if (host->pdata->slots[id].wires >= 4) in mmc_omap_new_slot() 1378 host->features = host->pdata->slots[0].features; in mmc_omap_probe() [all …]
|
/drivers/ipack/carriers/ |
D | tpci200.c | 156 slot_irq = rcu_dereference(tpci200->slots[i].irq); in tpci200_interrupt() 182 if (tpci200->slots[dev->slot].irq == NULL) { in tpci200_free_irq() 188 slot_irq = tpci200->slots[dev->slot].irq; in tpci200_free_irq() 190 RCU_INIT_POINTER(tpci200->slots[dev->slot].irq, NULL); in tpci200_free_irq() 211 if (tpci200->slots[dev->slot].irq != NULL) { in tpci200_request_irq() 239 rcu_assign_pointer(tpci200->slots[dev->slot].irq, slot_irq); in tpci200_request_irq() 443 kfree(tpci200->slots); in tpci200_uninstall() 460 tpci200->slots = kzalloc( in tpci200_install() 462 if (tpci200->slots == NULL) in tpci200_install() 467 kfree(tpci200->slots); in tpci200_install() [all …]
|
/drivers/misc/cb710/ |
D | core.c | 77 for (nr = chip->slots; nr; ++slot, --nr) { in cb710_irq_handler() 102 int nr = chip->slots; in cb710_register_slot() 112 ++chip->slots; in cb710_register_slot() 133 --chip->slots; in cb710_register_slot() 145 int nr = chip->slots - 1; in cb710_unregister_slot() 157 --chip->slots; in cb710_unregister_slot()
|
/drivers/usb/host/ |
D | isp1760-hcd.c | 746 struct slotinfo *slots, struct isp1760_qtd *qtd, in start_bus_transfer() argument 754 WARN_ON(slots[slot].qtd); in start_bus_transfer() 755 WARN_ON(slots[slot].qh); in start_bus_transfer() 771 slots[slot].timestamp = jiffies; in start_bus_transfer() 772 slots[slot].qtd = qtd; in start_bus_transfer() 773 slots[slot].qh = qh; in start_bus_transfer() 860 struct slotinfo *slots; in enqueue_qtds() local 878 slots = priv->int_slots; in enqueue_qtds() 881 slots = priv->atl_slots; in enqueue_qtds() 886 if ((free_slot == -1) && (slots[curr_slot].qtd == NULL)) in enqueue_qtds() [all …]
|
/drivers/gpu/drm/omapdrm/ |
D | tcm.h | 73 s32 (*reserve_1d)(struct tcm *tcm, u32 slots, struct tcm_area *area); 163 static inline s32 tcm_reserve_1d(struct tcm *tcm, u32 slots, in tcm_reserve_1d() argument 168 (area == NULL || slots == 0) ? -EINVAL : in tcm_reserve_1d() 169 slots > (tcm->width * (u32) tcm->height) ? -ENOMEM : 0; in tcm_reserve_1d() 173 res = tcm->reserve_1d(tcm, slots, area); in tcm_reserve_1d()
|
/drivers/gpu/drm/nouveau/ |
D | nouveau_dma.c | 138 nv50_dma_wait(struct nouveau_channel *chan, int slots, int count) in nv50_dma_wait() argument 143 ret = nv50_dma_push_wait(chan, slots + 1); in nv50_dma_wait() 181 nouveau_dma_wait(struct nouveau_channel *chan, int slots, int size) in nouveau_dma_wait() argument 187 return nv50_dma_wait(chan, slots, size); in nouveau_dma_wait()
|
/drivers/scsi/ |
D | 53c700.c | 311 hostdata->slots = (struct NCR_700_command_slot *)(memory + SLOTS_OFFSET); in NCR_700_detect() 339 memset(hostdata->slots, 0, sizeof(struct NCR_700_command_slot) in NCR_700_detect() 342 dma_addr_t offset = (dma_addr_t)((unsigned long)&hostdata->slots[j].SG[0] in NCR_700_detect() 343 - (unsigned long)&hostdata->slots[0].SG[0]); in NCR_700_detect() 344 hostdata->slots[j].pSG = (struct NCR_700_SG_List *)((unsigned long)(pSlots + offset)); in NCR_700_detect() 346 hostdata->free_list = &hostdata->slots[j]; in NCR_700_detect() 348 hostdata->slots[j-1].ITL_forw = &hostdata->slots[j]; in NCR_700_detect() 349 hostdata->slots[j].state = NCR_700_SLOT_FREE; in NCR_700_detect() 1201 if(SG >= to32bit(&hostdata->slots[i].pSG[0]) in process_script_interrupt() 1202 && SG <= to32bit(&hostdata->slots[i].pSG[NCR_700_SG_SEGMENTS])) in process_script_interrupt() [all …]
|
/drivers/mfd/ |
D | rtsx_pcr.c | 814 if ((card_detect & SD_EXIST) && pcr->slots[RTSX_SD_CARD].card_event) in rtsx_pci_card_detect() 815 pcr->slots[RTSX_SD_CARD].card_event( in rtsx_pci_card_detect() 816 pcr->slots[RTSX_SD_CARD].p_dev); in rtsx_pci_card_detect() 817 if ((card_detect & MS_EXIST) && pcr->slots[RTSX_MS_CARD].card_event) in rtsx_pci_card_detect() 818 pcr->slots[RTSX_MS_CARD].card_event( in rtsx_pci_card_detect() 819 pcr->slots[RTSX_MS_CARD].p_dev); in rtsx_pci_card_detect() 1046 pcr->slots = kcalloc(pcr->num_slots, sizeof(struct rtsx_slot), in rtsx_pci_init_chip() 1048 if (!pcr->slots) in rtsx_pci_init_chip() 1054 kfree(pcr->slots); in rtsx_pci_init_chip() 1218 kfree(pcr->slots); in rtsx_pci_remove()
|
/drivers/net/ |
D | xen-netfront.c | 545 int slots; in xennet_start_xmit() local 560 slots = DIV_ROUND_UP(offset + len, PAGE_SIZE) + in xennet_start_xmit() 562 if (unlikely(slots > MAX_SKB_FRAGS + 1)) { in xennet_start_xmit() 564 "xennet: skb rides the rocket: %d slots\n", slots); in xennet_start_xmit() 571 (slots > 1 && !xennet_can_sg(dev)) || in xennet_start_xmit() 725 int slots = 1; in xennet_get_responses() local 769 if (cons + slots == rp) { in xennet_get_responses() 776 rx = RING_GET_RESPONSE(&np->rx, cons + slots); in xennet_get_responses() 777 skb = xennet_get_rx_skb(np, cons + slots); in xennet_get_responses() 778 ref = xennet_get_rx_ref(np, cons + slots); in xennet_get_responses() [all …]
|
/drivers/pci/ |
D | slot.c | 200 list_for_each_entry(slot, &parent->slots, list) in get_slot() 302 list_add(&slot->list, &parent->slots); in pci_create_slot() 337 list_for_each_entry(tmp, &slot->bus->slots, list) { in pci_renumber_slot()
|