/drivers/input/serio/ |
D | hp_sdc.c | 183 hp_sdc_transaction *curr; in hp_sdc_take() local 190 curr = hp_sdc.tq[hp_sdc.rcurr]; in hp_sdc_take() 193 curr->seq[curr->idx++] = status; in hp_sdc_take() 194 curr->seq[curr->idx++] = data; in hp_sdc_take() 200 if (curr->seq[curr->actidx] & HP_SDC_ACT_SEMAPHORE) in hp_sdc_take() 201 if (curr->act.semaphore) in hp_sdc_take() 202 up(curr->act.semaphore); in hp_sdc_take() 204 if (curr->seq[curr->actidx] & HP_SDC_ACT_CALLBACK) in hp_sdc_take() 205 if (curr->act.irqhook) in hp_sdc_take() 206 curr->act.irqhook(irq, dev_id, status, data); in hp_sdc_take() [all …]
|
/drivers/char/agp/ |
D | generic.c | 179 void agp_free_memory(struct agp_memory *curr) in agp_free_memory() argument 183 if (curr == NULL) in agp_free_memory() 186 if (curr->is_bound) in agp_free_memory() 187 agp_unbind_memory(curr); in agp_free_memory() 189 if (curr->type >= AGP_USER_TYPES) { in agp_free_memory() 190 agp_generic_free_by_type(curr); in agp_free_memory() 194 if (curr->type != 0) { in agp_free_memory() 195 curr->bridge->driver->free_by_type(curr); in agp_free_memory() 198 if (curr->page_count != 0) { in agp_free_memory() 199 if (curr->bridge->driver->agp_destroy_pages) { in agp_free_memory() [all …]
|
D | frontend.c | 50 struct agp_memory *curr; in agp_find_mem_by_key() local 55 curr = agp_fe.current_controller->pool; in agp_find_mem_by_key() 57 while (curr != NULL) { in agp_find_mem_by_key() 58 if (curr->key == key) in agp_find_mem_by_key() 60 curr = curr->next; in agp_find_mem_by_key() 63 DBG("key=%d -> mem=%p", key, curr); in agp_find_mem_by_key() 64 return curr; in agp_find_mem_by_key() 218 struct agp_file_private *curr; in agp_find_private() local 220 curr = agp_fe.file_priv_list; in agp_find_private() 222 while (curr != NULL) { in agp_find_private() [all …]
|
/drivers/mmc/host/ |
D | msm_sdcc.c | 71 BUG_ON(host->curr.mrq); in msmsdcc_disable_clocks() 167 BUG_ON(host->curr.data); in msmsdcc_request_end() 169 host->curr.mrq = NULL; in msmsdcc_request_end() 170 host->curr.cmd = NULL; in msmsdcc_request_end() 173 mrq->data->bytes_xfered = host->curr.data_xfered; in msmsdcc_request_end() 192 host->curr.data = NULL; in msmsdcc_stop_data() 193 host->curr.got_dataend = 0; in msmsdcc_stop_data() 213 msmsdcc_writel(host, (unsigned int)host->curr.xfer_size, in msmsdcc_dma_exec_func() 239 mrq = host->curr.mrq; in msmsdcc_dma_complete_tlet() 249 host->curr.data_xfered = host->curr.xfer_size; in msmsdcc_dma_complete_tlet() [all …]
|
/drivers/staging/tidspbridge/pmgr/ |
D | cmm.c | 325 struct cmm_mnode *curr, *tmp; in cmm_free_buf() local 343 list_for_each_entry_safe(curr, tmp, &allocator->in_use_list, link) { in cmm_free_buf() 344 if (curr->pa == (u32) buf_pa) { in cmm_free_buf() 345 list_del(&curr->link); in cmm_free_buf() 346 add_to_free_list(allocator, curr); in cmm_free_buf() 390 struct cmm_mnode *curr; in cmm_get_info() local 425 list_for_each_entry(curr, &altr->in_use_list, link) { in cmm_get_info() 578 struct cmm_mnode *curr, *tmp; in un_register_gppsm_seg() local 581 list_for_each_entry_safe(curr, tmp, &psma->free_list, link) { in un_register_gppsm_seg() 582 list_del(&curr->link); in un_register_gppsm_seg() [all …]
|
/drivers/iommu/ |
D | iova.c | 59 struct rb_node *curr; in __cached_rbnode_delete_update() local 63 curr = iovad->cached32_node; in __cached_rbnode_delete_update() 64 cached_iova = container_of(curr, struct iova, node); in __cached_rbnode_delete_update() 97 struct rb_node *prev, *curr = NULL; in __alloc_and_insert_iova_range() local 105 curr = __get_cached_rbnode(iovad, &limit_pfn); in __alloc_and_insert_iova_range() 106 prev = curr; in __alloc_and_insert_iova_range() 107 while (curr) { in __alloc_and_insert_iova_range() 108 struct iova *curr_iova = container_of(curr, struct iova, node); in __alloc_and_insert_iova_range() 123 prev = curr; in __alloc_and_insert_iova_range() 124 curr = rb_prev(curr); in __alloc_and_insert_iova_range() [all …]
|
/drivers/pci/hotplug/ |
D | ibmphp_res.c | 49 static struct bus_node * __init alloc_error_bus (struct ebda_pci_rsrc * curr, u8 busno, int flag) in alloc_error_bus() argument 53 if (!(curr) && !(flag)) { in alloc_error_bus() 67 newbus->busno = curr->bus_num; in alloc_error_bus() 72 static struct resource_node * __init alloc_resources (struct ebda_pci_rsrc * curr) in alloc_resources() argument 76 if (!curr) { in alloc_resources() 86 rs->busno = curr->bus_num; in alloc_resources() 87 rs->devfunc = curr->dev_fun; in alloc_resources() 88 rs->start = curr->start_addr; in alloc_resources() 89 rs->end = curr->end_addr; in alloc_resources() 90 rs->len = curr->end_addr - curr->start_addr + 1; in alloc_resources() [all …]
|
/drivers/hwmon/ |
D | ltc4245.c | 216 unsigned int curr; in ltc4245_get_current() local 236 curr = voltage / 50; /* sense resistor 50 mOhm */ in ltc4245_get_current() 240 curr = (voltage * 10) / 35; /* sense resistor 3.5 mOhm */ in ltc4245_get_current() 244 curr = (voltage * 10) / 25; /* sense resistor 2.5 mOhm */ in ltc4245_get_current() 248 curr = voltage / 100; /* sense resistor 100 mOhm */ in ltc4245_get_current() 253 curr = 0; in ltc4245_get_current() 257 return curr; in ltc4245_get_current() 275 const unsigned int curr = ltc4245_get_current(dev, attr->index); in ltc4245_show_current() local 277 return snprintf(buf, PAGE_SIZE, "%u\n", curr); in ltc4245_show_current() 285 const unsigned int curr = ltc4245_get_current(dev, attr->index); in ltc4245_show_power() local [all …]
|
D | ltc4215.c | 134 const unsigned int curr = voltage / 4; in ltc4215_get_current() local 136 return curr; in ltc4215_get_current() 153 const unsigned int curr = ltc4215_get_current(dev); in ltc4215_show_current() local 155 return snprintf(buf, PAGE_SIZE, "%u\n", curr); in ltc4215_show_current() 162 const unsigned int curr = ltc4215_get_current(dev); in ltc4215_show_power() local 166 const unsigned int power = abs(output_voltage * curr); in ltc4215_show_power()
|
/drivers/media/common/saa7146/ |
D | saa7146_fops.c | 78 if (NULL == q->curr) { in saa7146_buffer_queue() 79 q->curr = buf; in saa7146_buffer_queue() 97 DEB_EE("q->curr:%p\n", q->curr); in saa7146_buffer_finish() 99 BUG_ON(!q->curr); in saa7146_buffer_finish() 102 if (NULL == q->curr) { in saa7146_buffer_finish() 107 q->curr->vb.state = state; in saa7146_buffer_finish() 108 v4l2_get_timestamp(&q->curr->vb.ts); in saa7146_buffer_finish() 109 wake_up(&q->curr->vb.done); in saa7146_buffer_finish() 111 q->curr = NULL; in saa7146_buffer_finish() 130 q->curr = buf; in saa7146_buffer_next() [all …]
|
/drivers/media/pci/saa7134/ |
D | saa7134-core.c | 282 if (NULL == q->curr) { in saa7134_buffer_queue() 284 q->curr = buf; in saa7134_buffer_queue() 292 q->curr = buf; in saa7134_buffer_queue() 307 dprintk("buffer_finish %p\n",q->curr); in saa7134_buffer_finish() 310 q->curr->vb.state = state; in saa7134_buffer_finish() 311 v4l2_get_timestamp(&q->curr->vb.ts); in saa7134_buffer_finish() 312 wake_up(&q->curr->vb.done); in saa7134_buffer_finish() 313 q->curr = NULL; in saa7134_buffer_finish() 322 BUG_ON(NULL != q->curr); in saa7134_buffer_next() 333 q->curr = buf; in saa7134_buffer_next() [all …]
|
D | saa7134-vbi.c | 231 if (dev->vbi_q.curr) { in saa7134_irq_vbi_done() 235 dev->vbi_q.curr->top_seen = 1; in saa7134_irq_vbi_done() 238 if (!dev->vbi_q.curr->top_seen) in saa7134_irq_vbi_done() 241 dev->vbi_q.curr->vb.field_count = dev->vbi_fieldcount; in saa7134_irq_vbi_done()
|
/drivers/cpufreq/ |
D | cpufreq_stats.c | 53 unsigned int *curr; member 140 unsigned int cpu_num, curr; in acct_update_power() local 150 curr = powerstats->curr[stats->last_index]; in acct_update_power() 152 task->cpu_power += curr * cputime_to_usecs(cputime); in acct_update_power() 172 powerstats->curr[i]); in show_current_in_state() 371 kfree(powerstats->curr); in cpufreq_powerstats_free() 473 powerstats->curr = kzalloc(alloc_size, GFP_KERNEL); in cpufreq_powerstats_create() 474 if (!powerstats->curr) { in cpufreq_powerstats_create() 478 powerstats->freq_table = powerstats->curr + count; in cpufreq_powerstats_create() 494 powerstats->curr, count); in cpufreq_powerstats_create() [all …]
|
/drivers/pnp/ |
D | interface.c | 26 char *curr; /* current position in buffer */ member 43 res = vsnprintf(buffer->curr, buffer->len - buffer->size, fmt, args); in pnp_printf() 49 buffer->curr += res; in pnp_printf() 221 buffer->curr = buffer->buffer; in pnp_show_options() 240 ret = (buffer->curr - buf); in pnp_show_options() 264 buffer->curr = buffer->buffer; in pnp_show_current_resources() 296 ret = (buffer->curr - buf); in pnp_show_current_resources()
|
/drivers/staging/tidspbridge/dynload/ |
D | getsection.c | 90 char *xstrings, *curr, *next; in expand_sec_names() local 103 curr = xstrings; in expand_sec_names() 106 next = unpack_sec_name(dlthis, *(u32 *) &shp->name, curr); in expand_sec_names() 109 shp->name = curr; in expand_sec_names() 110 curr = next; in expand_sec_names()
|
/drivers/staging/tidspbridge/rmgr/ |
D | drv.c | 425 struct list_head *curr; in drv_get_next_dev_object() local 430 curr = (struct list_head *)hdev_obj; in drv_get_next_dev_object() 431 if (list_is_last(curr, &pdrv_obj->dev_list)) in drv_get_next_dev_object() 433 dw_next_dev_object = (u32) curr->next; in drv_get_next_dev_object() 455 struct list_head *curr; in drv_get_next_dev_extension() local 460 curr = (struct list_head *)dev_extension; in drv_get_next_dev_extension() 461 if (list_is_last(curr, &pdrv_obj->dev_node_string)) in drv_get_next_dev_extension() 463 dw_dev_extension = (u32) curr->next; in drv_get_next_dev_extension()
|
/drivers/pinctrl/mvebu/ |
D | pinctrl-mvebu.c | 213 struct mvebu_mpp_ctrl_setting *curr; in mvebu_pinconf_group_dbg_show() local 220 curr = mvebu_pinctrl_find_setting_by_val(pctl, grp, config); in mvebu_pinconf_group_dbg_show() 222 if (curr) { in mvebu_pinconf_group_dbg_show() 223 seq_printf(s, "current: %s", curr->name); in mvebu_pinconf_group_dbg_show() 224 if (curr->subname) in mvebu_pinconf_group_dbg_show() 225 seq_printf(s, "(%s)", curr->subname); in mvebu_pinconf_group_dbg_show() 226 if (curr->flags & (MVEBU_SETTING_GPO | MVEBU_SETTING_GPI)) { in mvebu_pinconf_group_dbg_show() 228 if (curr->flags & MVEBU_SETTING_GPI) in mvebu_pinconf_group_dbg_show() 230 if (curr->flags & MVEBU_SETTING_GPO) in mvebu_pinconf_group_dbg_show() 240 if (curr == &grp->settings[n]) in mvebu_pinconf_group_dbg_show()
|
/drivers/char/ipmi/ |
D | ipmi_si_intf.c | 1645 static int parse_str(struct hotmod_vals *v, int *val, char *name, char **curr) in parse_str() argument 1650 s = strchr(*curr, ','); in parse_str() 1658 if (strcmp(*curr, v[i].name) == 0) { in parse_str() 1660 *curr = s; in parse_str() 1665 printk(KERN_WARNING PFX "Invalid hotmod %s '%s'\n", name, *curr); in parse_str() 1669 static int check_hotmod_int_op(const char *curr, const char *option, in check_hotmod_int_op() argument 1674 if (strcmp(curr, name) == 0) { in check_hotmod_int_op() 1678 curr); in check_hotmod_int_op() 1685 curr); in check_hotmod_int_op() 1706 char *next, *curr, *s, *n, *o; in hotmod_handler() local [all …]
|
/drivers/acpi/ |
D | ec.c | 162 if (!ec->curr || ec->curr->done) in ec_transaction_done() 170 ec->curr->irq_count = ec->curr->wi = ec->curr->ri = 0; in start_transaction() 171 ec->curr->done = false; in start_transaction() 172 acpi_ec_write_cmd(ec, ec->curr->command); in start_transaction() 178 struct transaction *t = ec->curr; in advance_transaction() 262 ec->curr = t; in acpi_ec_transaction_unlocked() 264 if (ec->curr->command == ACPI_EC_COMMAND_QUERY) in acpi_ec_transaction_unlocked() 269 ec->curr = NULL; in acpi_ec_transaction_unlocked()
|
/drivers/net/wireless/prism54/ |
D | islpci_mgt.c | 113 u32 curr = le32_to_cpu(cb->driver_curr_frag[ISL38XX_CB_RX_MGMTQ]); in islpci_mgmt_rx_fill() local 119 while (curr - priv->index_mgmt_rx < ISL38XX_CB_MGMT_QSIZE) { in islpci_mgmt_rx_fill() 120 u32 index = curr % ISL38XX_CB_MGMT_QSIZE; in islpci_mgmt_rx_fill() 145 curr++; in islpci_mgmt_rx_fill() 151 cb->driver_curr_frag[ISL38XX_CB_RX_MGMTQ] = cpu_to_le32(curr); in islpci_mgmt_rx_fill()
|
/drivers/net/bonding/ |
D | bond_procfs.c | 59 struct slave *curr; in bond_info_show_master() local 63 curr = bond->curr_active_slave; in bond_info_show_master() 92 (curr) ? curr->dev->name : "None"); in bond_info_show_master()
|
D | bond_3ad.c | 1406 struct aggregator *curr) in ad_agg_selection_test() argument 1434 return curr; in ad_agg_selection_test() 1436 if (!curr->is_individual && best->is_individual) in ad_agg_selection_test() 1437 return curr; in ad_agg_selection_test() 1439 if (curr->is_individual && !best->is_individual) in ad_agg_selection_test() 1442 if (__agg_has_partner(curr) && !__agg_has_partner(best)) in ad_agg_selection_test() 1443 return curr; in ad_agg_selection_test() 1445 if (!__agg_has_partner(curr) && __agg_has_partner(best)) in ad_agg_selection_test() 1448 switch (__get_agg_selection_mode(curr->lag_ports)) { in ad_agg_selection_test() 1450 if (curr->num_of_ports > best->num_of_ports) in ad_agg_selection_test() [all …]
|
/drivers/power/ |
D | bq27x00_battery.c | 487 int curr; in bq27x00_battery_current() local 490 curr = bq27x00_read(di, BQ27x00_REG_AI, false); in bq27x00_battery_current() 491 if (curr < 0) { in bq27x00_battery_current() 493 return curr; in bq27x00_battery_current() 498 val->intval = (int)((s16)curr) * 1000; in bq27x00_battery_current() 503 curr = -curr; in bq27x00_battery_current() 506 val->intval = curr * 3570 / BQ27000_RS; in bq27x00_battery_current()
|
/drivers/scsi/aic7xxx/ |
D | aic79xx_osm.c | 845 if ((tinfo->curr.ppr_options & MSG_EXT_PPR_IU_REQ) != 0) { in ahd_linux_dev_reset() 1583 || (tinfo->curr.ppr_options & MSG_EXT_PPR_IU_REQ) != 0) { in ahd_linux_run_command() 1613 if ((tinfo->curr.ppr_options & MSG_EXT_PPR_IU_REQ) != 0) in ahd_linux_run_command() 1720 if (tinfo->curr.period != tinfo->goal.period in ahd_send_async() 1721 || tinfo->curr.width != tinfo->goal.width in ahd_send_async() 1722 || tinfo->curr.offset != tinfo->goal.offset in ahd_send_async() 1723 || tinfo->curr.ppr_options != tinfo->goal.ppr_options) in ahd_send_async() 1745 if (tinfo->curr.period == spi_period(starget) in ahd_send_async() 1746 && tinfo->curr.width == spi_width(starget) in ahd_send_async() 1747 && tinfo->curr.offset == spi_offset(starget) in ahd_send_async() [all …]
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_mdio.c | 39 unsigned long curr; in stmmac_mdio_busy_wait() local 43 curr = jiffies; in stmmac_mdio_busy_wait() 48 } while (!time_after_eq(curr, finish)); in stmmac_mdio_busy_wait()
|