/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 | 167 void agp_free_memory(struct agp_memory *curr) in agp_free_memory() argument 171 if (curr == NULL) in agp_free_memory() 174 if (curr->is_bound) in agp_free_memory() 175 agp_unbind_memory(curr); in agp_free_memory() 177 if (curr->type >= AGP_USER_TYPES) { in agp_free_memory() 178 agp_generic_free_by_type(curr); in agp_free_memory() 182 if (curr->type != 0) { in agp_free_memory() 183 curr->bridge->driver->free_by_type(curr); in agp_free_memory() 186 if (curr->page_count != 0) { in agp_free_memory() 187 if (curr->bridge->driver->agp_destroy_pages) { in agp_free_memory() [all …]
|
D | frontend.c | 49 struct agp_memory *curr; in agp_find_mem_by_key() local 54 curr = agp_fe.current_controller->pool; in agp_find_mem_by_key() 56 while (curr != NULL) { in agp_find_mem_by_key() 57 if (curr->key == key) in agp_find_mem_by_key() 59 curr = curr->next; in agp_find_mem_by_key() 62 DBG("key=%d -> mem=%p", key, curr); in agp_find_mem_by_key() 63 return curr; in agp_find_mem_by_key() 217 struct agp_file_private *curr; in agp_find_private() local 219 curr = agp_fe.file_priv_list; in agp_find_private() 221 while (curr != NULL) { in agp_find_private() [all …]
|
/drivers/staging/greybus/ |
D | audio_topology.c | 992 struct gb_audio_control *curr; in gbaudio_tplg_create_widget() local 1015 curr = w->ctl; in gbaudio_tplg_create_widget() 1018 curr); in gbaudio_tplg_create_widget() 1022 curr->name, curr->iface); in gbaudio_tplg_create_widget() 1032 control->id = curr->id; in gbaudio_tplg_create_widget() 1033 control->name = curr->name; in gbaudio_tplg_create_widget() 1036 if (curr->info.type == GB_AUDIO_CTL_ELEM_TYPE_ENUMERATED) { in gbaudio_tplg_create_widget() 1038 &curr->info.value.enumerated; in gbaudio_tplg_create_widget() 1050 curr = (void *)curr + csize; in gbaudio_tplg_create_widget() 1150 struct gb_audio_control *curr; in gbaudio_tplg_process_kcontrols() local [all …]
|
/drivers/dma/ |
D | img-mdc-dma.c | 265 struct mdc_hw_list_desc *curr, *next; in mdc_list_desc_free() local 268 curr = mdesc->list; in mdc_list_desc_free() 270 while (curr) { in mdc_list_desc_free() 271 next = curr->next_desc; in mdc_list_desc_free() 272 next_phys = curr->node_addr; in mdc_list_desc_free() 273 dma_pool_free(mdma->desc_pool, curr, curr_phys); in mdc_list_desc_free() 274 curr = next; in mdc_list_desc_free() 294 struct mdc_hw_list_desc *curr, *prev = NULL; in mdc_prep_dma_memcpy() local 309 curr = dma_pool_alloc(mdma->desc_pool, GFP_NOWAIT, &curr_phys); in mdc_prep_dma_memcpy() 310 if (!curr) in mdc_prep_dma_memcpy() [all …]
|
/drivers/misc/mic/scif/ |
D | scif_rma_list.c | 30 struct scif_window *curr = NULL; in scif_insert_tcw() local 37 curr = list_entry(head->prev, struct scif_window, list); in scif_insert_tcw() 38 if (curr->va_for_temp < window->va_for_temp) { in scif_insert_tcw() 44 curr = list_entry(item, struct scif_window, list); in scif_insert_tcw() 45 if (curr->va_for_temp > window->va_for_temp) in scif_insert_tcw() 47 prev = curr; in scif_insert_tcw() 60 struct scif_window *curr = NULL, *prev = NULL; in scif_insert_window() local 65 curr = list_entry(item, struct scif_window, list); in scif_insert_window() 66 if (curr->offset > window->offset) in scif_insert_window() 68 prev = curr; in scif_insert_window()
|
/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 | 214 unsigned int curr; in ltc4245_get_current() local 234 curr = voltage / 50; /* sense resistor 50 mOhm */ in ltc4245_get_current() 238 curr = (voltage * 10) / 35; /* sense resistor 3.5 mOhm */ in ltc4245_get_current() 242 curr = (voltage * 10) / 25; /* sense resistor 2.5 mOhm */ in ltc4245_get_current() 246 curr = voltage / 100; /* sense resistor 100 mOhm */ in ltc4245_get_current() 251 curr = 0; in ltc4245_get_current() 255 return curr; in ltc4245_get_current() 320 unsigned long curr; in ltc4245_read_power() local 326 curr = ltc4245_get_current(dev, ltc4245_curr_regs[channel]); in ltc4245_read_power() 328 *val = abs(curr * voltage); in ltc4245_read_power()
|
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/scsi/esas2r/ |
D | esas2r_io.c | 222 if (unlikely(sgc->sge.a64.curr > sgc->sge.a64.limit)) { in esas2r_build_sg_list_sge() 237 sgelen = (u8)((u8 *)sgc->sge.a64.curr in esas2r_build_sg_list_sge() 247 sgc->sge.a64.curr = in esas2r_build_sg_list_sge() 306 sgc->sge.a64.last = sgc->sge.a64.curr; in esas2r_build_sg_list_sge() 309 sgc->sge.a64.curr->length = cpu_to_le32(SGE_ADDR_64 | len); in esas2r_build_sg_list_sge() 310 sgc->sge.a64.curr->address = cpu_to_le32(addr); in esas2r_build_sg_list_sge() 311 sgc->sge.a64.curr++; in esas2r_build_sg_list_sge() 336 ((u8 *)(sgc->sge.a64.curr) - in esas2r_build_sg_list_sge() 418 sgc->sge.prd.curr->ctl_len = cpu_to_le32( in esas2r_build_prd_iblk() 420 sgc->sge.prd.curr->address = cpu_to_le64(addr); in esas2r_build_prd_iblk() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_rx_am.c | 189 static int mlx5e_am_stats_compare(struct mlx5e_rx_am_stats *curr, in mlx5e_am_stats_compare() argument 193 return curr->bpms ? MLX5E_AM_STATS_BETTER : in mlx5e_am_stats_compare() 196 if (IS_SIGNIFICANT_DIFF(curr->bpms, prev->bpms)) in mlx5e_am_stats_compare() 197 return (curr->bpms > prev->bpms) ? MLX5E_AM_STATS_BETTER : in mlx5e_am_stats_compare() 200 if (IS_SIGNIFICANT_DIFF(curr->ppms, prev->ppms)) in mlx5e_am_stats_compare() 201 return (curr->ppms > prev->ppms) ? MLX5E_AM_STATS_BETTER : in mlx5e_am_stats_compare() 204 if (IS_SIGNIFICANT_DIFF(curr->epms, prev->epms)) in mlx5e_am_stats_compare() 205 return (curr->epms < prev->epms) ? MLX5E_AM_STATS_BETTER : in mlx5e_am_stats_compare()
|
/drivers/net/wireless/st/cw1200/ |
D | scan.c | 112 priv->scan.curr = priv->scan.begin; in cw1200_hw_scan() 140 bool first_run = (priv->scan.begin == priv->scan.curr && in cw1200_scan_work() 169 if (!priv->scan.req || (priv->scan.curr == priv->scan.end)) { in cw1200_scan_work() 199 struct ieee80211_channel *first = *priv->scan.curr; in cw1200_scan_work() 200 for (it = priv->scan.curr + 1, i = 1; in cw1200_scan_work() 222 scan.num_channels = it - priv->scan.curr; in cw1200_scan_work() 234 sizeof(struct wsm_scan_ch) * (it - priv->scan.curr), in cw1200_scan_work() 241 scan.ch[i].number = priv->scan.curr[i]->hw_value; in cw1200_scan_work() 242 if (priv->scan.curr[i]->flags & IEEE80211_CHAN_NO_IR) { in cw1200_scan_work() 260 priv->scan.curr = it; in cw1200_scan_work() [all …]
|
/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/auxdisplay/ |
D | img-ascii-lcd.c | 64 char curr[] __aligned(8); member 76 val = *((u64 *)&ctx->curr[0]); in boston_update() 79 val = *((u32 *)&ctx->curr[0]); in boston_update() 81 val = *((u32 *)&ctx->curr[4]); in boston_update() 104 ctx->offset + (i * 8), ctx->curr[i]); in malta_update() 202 ctx->curr[i]); in sead3_update() 241 ctx->curr[i] = ctx->message[ch]; in img_ascii_lcd_scroll()
|
/drivers/iommu/ |
D | iova.c | 84 struct rb_node *curr; in __cached_rbnode_delete_update() local 88 curr = iovad->cached32_node; in __cached_rbnode_delete_update() 89 cached_iova = container_of(curr, struct iova, node); in __cached_rbnode_delete_update() 117 struct rb_node *prev, *curr = NULL; in __alloc_and_insert_iova_range() local 125 curr = __get_cached_rbnode(iovad, &limit_pfn); in __alloc_and_insert_iova_range() 126 prev = curr; in __alloc_and_insert_iova_range() 127 while (curr) { in __alloc_and_insert_iova_range() 128 struct iova *curr_iova = container_of(curr, struct iova, node); in __alloc_and_insert_iova_range() 143 prev = curr; in __alloc_and_insert_iova_range() 144 curr = rb_prev(curr); in __alloc_and_insert_iova_range() [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 options_show() 240 ret = (buffer->curr - buf); in options_show() 264 buffer->curr = buffer->buffer; in resources_show() 296 ret = (buffer->curr - buf); in resources_show()
|
/drivers/pinctrl/mvebu/ |
D | pinctrl-mvebu.c | 177 struct mvebu_mpp_ctrl_setting *curr; in mvebu_pinconf_group_dbg_show() local 184 curr = mvebu_pinctrl_find_setting_by_val(pctl, grp, config); in mvebu_pinconf_group_dbg_show() 186 if (curr) { in mvebu_pinconf_group_dbg_show() 187 seq_printf(s, "current: %s", curr->name); in mvebu_pinconf_group_dbg_show() 188 if (curr->subname) in mvebu_pinconf_group_dbg_show() 189 seq_printf(s, "(%s)", curr->subname); in mvebu_pinconf_group_dbg_show() 190 if (curr->flags & (MVEBU_SETTING_GPO | MVEBU_SETTING_GPI)) { in mvebu_pinconf_group_dbg_show() 192 if (curr->flags & MVEBU_SETTING_GPI) in mvebu_pinconf_group_dbg_show() 194 if (curr->flags & MVEBU_SETTING_GPO) in mvebu_pinconf_group_dbg_show() 204 if (curr == &grp->settings[n]) in mvebu_pinconf_group_dbg_show()
|
/drivers/net/wireless/marvell/mwifiex/ |
D | uap_event.c | 30 u8 *curr; in mwifiex_check_uap_capabilties() local 39 curr = event->data; in mwifiex_check_uap_capabilties() 47 tlv_hdr = (struct mwifiex_ie_types_data *)curr; in mwifiex_check_uap_capabilties() 66 wmm_param_ie = (void *)(curr + 2); in mwifiex_check_uap_capabilties() 84 curr += (tlv_len + sizeof(tlv_hdr->header)); in mwifiex_check_uap_capabilties()
|
/drivers/media/pci/saa7134/ |
D | saa7134-core.c | 286 if (NULL == q->curr) { in saa7134_buffer_queue() 288 q->curr = buf; in saa7134_buffer_queue() 295 q->curr = buf; in saa7134_buffer_queue() 309 core_dbg("buffer_finish %p\n", q->curr); in saa7134_buffer_finish() 312 q->curr->vb2.vb2_buf.timestamp = ktime_get_ns(); in saa7134_buffer_finish() 313 q->curr->vb2.sequence = q->seq_nr++; in saa7134_buffer_finish() 314 vb2_buffer_done(&q->curr->vb2.vb2_buf, state); in saa7134_buffer_finish() 315 q->curr = NULL; in saa7134_buffer_finish() 324 BUG_ON(NULL != q->curr); in saa7134_buffer_next() 334 q->curr = buf; in saa7134_buffer_next() [all …]
|
D | saa7134-ts.c | 86 dmaq->curr = NULL; in saa7134_ts_buffer_init() 155 if (dmaq->curr) { in saa7134_ts_start_streaming() 156 vb2_buffer_done(&dmaq->curr->vb2.vb2_buf, in saa7134_ts_start_streaming() 158 dmaq->curr = NULL; in saa7134_ts_start_streaming() 327 if (dev->ts_q.curr) { in saa7134_irq_ts_done()
|
D | saa7134-vbi.c | 167 dmaq->curr = NULL; in buffer_init() 209 if (dev->vbi_q.curr) { in saa7134_irq_vbi_done() 212 dev->vbi_q.curr->top_seen = 1; in saa7134_irq_vbi_done() 215 if (!dev->vbi_q.curr->top_seen) in saa7134_irq_vbi_done()
|
/drivers/staging/lustre/lustre/fld/ |
D | fld_cache.c | 216 struct list_head *curr; in fld_cache_shrink() local 222 curr = cache->fci_lru.prev; in fld_cache_shrink() 225 cache->fci_cache_size && curr != &cache->fci_lru) { in fld_cache_shrink() 226 flde = list_entry(curr, struct fld_cache_entry, fce_lru); in fld_cache_shrink() 227 curr = curr->prev; in fld_cache_shrink()
|
/drivers/acpi/ |
D | ec.c | 589 (ec->curr && ec->curr->command == ACPI_EC_COMMAND_QUERY)) in acpi_ec_guard_event() 601 if (ec->curr && (ec->curr->flags & ACPI_EC_COMMAND_POLL)) in ec_transaction_polled() 613 if (ec->curr && (ec->curr->flags & ACPI_EC_COMMAND_COMPLETE)) in ec_transaction_completed() 621 ec->curr->flags |= flag; in ec_transaction_transition() 622 if (ec->curr->command == ACPI_EC_COMMAND_QUERY) { in ec_transaction_transition() 650 t = ec->curr; in advance_transaction() 729 ec->curr->irq_count = ec->curr->wi = ec->curr->ri = 0; in start_transaction() 730 ec->curr->flags = 0; in start_transaction() 806 ec->curr = t; in acpi_ec_transaction_unlocked() 817 ec->curr = NULL; in acpi_ec_transaction_unlocked() [all …]
|
/drivers/char/ipmi/ |
D | ipmi_si_intf.c | 1760 char **curr) in parse_str() argument 1765 s = strchr(*curr, ','); in parse_str() 1773 if (strcmp(*curr, v[i].name) == 0) { in parse_str() 1775 *curr = s; in parse_str() 1780 printk(KERN_WARNING PFX "Invalid hotmod %s '%s'\n", name, *curr); in parse_str() 1784 static int check_hotmod_int_op(const char *curr, const char *option, in check_hotmod_int_op() argument 1789 if (strcmp(curr, name) == 0) { in check_hotmod_int_op() 1793 curr); in check_hotmod_int_op() 1800 curr); in check_hotmod_int_op() 1821 char *next, *curr, *s, *n, *o; in hotmod_handler() local [all …]
|
/drivers/net/ethernet/sun/ |
D | sunvnet_common.c | 1195 struct sk_buff *curr = segs; in vnet_handle_offloads() local 1198 curr->next = NULL; in vnet_handle_offloads() 1199 if (port->tso && curr->len > dev->mtu) { in vnet_handle_offloads() 1200 skb_shinfo(curr)->gso_size = gso_size; in vnet_handle_offloads() 1201 skb_shinfo(curr)->gso_type = gso_type; in vnet_handle_offloads() 1202 skb_shinfo(curr)->gso_segs = in vnet_handle_offloads() 1203 DIV_ROUND_UP(curr->len - hlen, gso_size); in vnet_handle_offloads() 1205 skb_shinfo(curr)->gso_size = 0; in vnet_handle_offloads() 1208 skb_push(curr, maclen); in vnet_handle_offloads() 1209 skb_reset_mac_header(curr); in vnet_handle_offloads() [all …]
|