Home
last modified time | relevance | path

Searched refs:elem (Results 1 – 25 of 44) sorted by relevance

12

/drivers/staging/rdma/amso1100/
Dc2.c116 struct c2_element *elem; in c2_tx_ring_alloc() local
119 tx_ring->start = kmalloc(sizeof(*elem) * tx_ring->count, GFP_KERNEL); in c2_tx_ring_alloc()
123 elem = tx_ring->start; in c2_tx_ring_alloc()
126 for (i = 0; i < tx_ring->count; i++, elem++, tx_desc++, txp_desc++) { in c2_tx_ring_alloc()
137 elem->skb = NULL; in c2_tx_ring_alloc()
138 elem->ht_desc = tx_desc; in c2_tx_ring_alloc()
139 elem->hw_desc = txp_desc; in c2_tx_ring_alloc()
142 elem->next = tx_ring->start; in c2_tx_ring_alloc()
145 elem->next = elem + 1; in c2_tx_ring_alloc()
165 struct c2_element *elem; in c2_rx_ring_alloc() local
[all …]
/drivers/isdn/mISDN/
Ddsp_pipeline.c41 struct mISDN_dsp_element *elem; member
46 struct mISDN_dsp_element *elem; member
59 struct mISDN_dsp_element *elem = dev_get_drvdata(dev); in attr_show_args() local
64 for (i = 0; i < elem->num_args; i++) in attr_show_args()
66 elem->args[i].name, in attr_show_args()
67 elem->args[i].def ? "Default: " : "", in attr_show_args()
68 elem->args[i].def ? elem->args[i].def : "", in attr_show_args()
69 elem->args[i].def ? "\n" : "", in attr_show_args()
70 elem->args[i].desc); in attr_show_args()
88 int mISDN_dsp_element_register(struct mISDN_dsp_element *elem) in mISDN_dsp_element_register() argument
[all …]
/drivers/scsi/
Dch.c220 ch_elem_to_typecode(scsi_changer *ch, u_int elem) in ch_elem_to_typecode() argument
225 if (elem >= ch->firsts[i] && in ch_elem_to_typecode()
226 elem < ch->firsts[i] + in ch_elem_to_typecode()
234 ch_read_element_status(scsi_changer *ch, u_int elem, char *data) in ch_read_element_status() argument
249 ch_elem_to_typecode(ch,elem); in ch_read_element_status()
250 cmd[2] = (elem >> 8) & 0xff; in ch_read_element_status()
251 cmd[3] = elem & 0xff; in ch_read_element_status()
256 if (((buffer[16] << 8) | buffer[17]) != elem) { in ch_read_element_status()
258 elem,(buffer[16] << 8) | buffer[17]); in ch_read_element_status()
269 DPRINTK("READ ELEMENT STATUS for element 0x%x failed\n",elem); in ch_read_element_status()
[all …]
/drivers/scsi/csiostor/
Dcsio_defs.h47 #define CSIO_INC_STATS(elem, val) ((elem)->stats.val++) argument
48 #define CSIO_DEC_STATS(elem, val) ((elem)->stats.val--) argument
72 #define csio_list_next(elem) (((struct list_head *)(elem))->next) argument
73 #define csio_list_prev(elem) (((struct list_head *)(elem))->prev) argument
/drivers/scsi/sym53c8xx_2/
Dsym_misc.h134 struct sym_quehead *elem = head->flink; in sym_remque_head() local
136 if (elem != head) in sym_remque_head()
137 __sym_que_del(head, elem->flink); in sym_remque_head()
139 elem = NULL; in sym_remque_head()
140 return elem; in sym_remque_head()
147 struct sym_quehead *elem = head->blink; in sym_remque_tail() local
149 if (elem != head) in sym_remque_tail()
150 __sym_que_del(elem->blink, head); in sym_remque_tail()
152 elem = 0; in sym_remque_tail()
153 return elem; in sym_remque_tail()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sp.c80 struct bnx2x_exeq_elem *elem) in bnx2x_exe_queue_free_elem() argument
83 kfree(elem); in bnx2x_exe_queue_free_elem()
88 struct bnx2x_exeq_elem *elem; in bnx2x_exe_queue_length() local
93 list_for_each_entry(elem, &o->exe_queue, link) in bnx2x_exe_queue_length()
113 struct bnx2x_exeq_elem *elem, in bnx2x_exe_queue_add() argument
122 rc = o->optimize(bp, o->owner, elem); in bnx2x_exe_queue_add()
127 rc = o->validate(bp, o->owner, elem); in bnx2x_exe_queue_add()
135 list_add_tail(&elem->link, &o->exe_queue); in bnx2x_exe_queue_add()
142 bnx2x_exe_queue_free_elem(bp, elem); in bnx2x_exe_queue_add()
153 struct bnx2x_exeq_elem *elem; in __bnx2x_exe_queue_reset_pending() local
[all …]
Dbnx2x_sp.h165 union event_ring_elem *elem; member
172 struct bnx2x_exeq_elem *elem);
176 struct bnx2x_exeq_elem *elem);
183 struct bnx2x_exeq_elem *elem);
190 struct bnx2x_exeq_elem *elem);
374 struct bnx2x_exeq_elem *elem, int rule_idx,
Dbnx2x_sriov.c1679 union event_ring_elem *elem) in bnx2x_vf_handle_classification_eqe() argument
1687 switch (elem->message.data.eth_event.echo >> BNX2X_SWCID_SHIFT) { in bnx2x_vf_handle_classification_eqe()
1689 rc = vfq->mac_obj.complete(bp, &vfq->mac_obj, elem, in bnx2x_vf_handle_classification_eqe()
1693 rc = vfq->vlan_obj.complete(bp, &vfq->vlan_obj, elem, in bnx2x_vf_handle_classification_eqe()
1698 elem->message.data.eth_event.echo); in bnx2x_vf_handle_classification_eqe()
1741 int bnx2x_iov_eq_sp_event(struct bnx2x *bp, union event_ring_elem *elem) in bnx2x_iov_eq_sp_event() argument
1754 opcode = elem->message.opcode; in bnx2x_iov_eq_sp_event()
1759 elem->message.data.cfc_del_event.cid); in bnx2x_iov_eq_sp_event()
1766 cid = (elem->message.data.eth_event.echo & in bnx2x_iov_eq_sp_event()
1771 abs_vfid = elem->message.data.vf_flr_event.vf_id; in bnx2x_iov_eq_sp_event()
[all …]
/drivers/misc/cxl/
Dnative.c318 ((u64)be32_to_cpu(ctx->elem->common.pid) << 32) | in slb_invalid()
319 be32_to_cpu(ctx->elem->lpid)); in slb_invalid()
343 ctx->elem->software_state = cpu_to_be32(pe_state); in do_process_element_cmd()
401 if (!(ctx->elem->software_state & cpu_to_be32(CXL_PE_SOFTWARE_STATE_V))) in terminate_process_element()
413 ctx->elem->software_state = 0; /* Remove Valid bit */ in terminate_process_element()
524 ctx->elem->ctxtime = 0; /* disable */ in attach_afu_directed()
525 ctx->elem->lpid = cpu_to_be32(mfspr(SPRN_LPID)); in attach_afu_directed()
526 ctx->elem->haurp = 0; /* disable */ in attach_afu_directed()
527 ctx->elem->sdr = cpu_to_be64(mfspr(SPRN_SDR1)); in attach_afu_directed()
532 ctx->elem->common.tid = 0; in attach_afu_directed()
[all …]
/drivers/net/ethernet/qlogic/qed/
Dqed_spq.c132 p_ent->elem.hdr.cid, in qed_spq_fill_entry()
133 p_ent->elem.hdr.cmd_id, in qed_spq_fill_entry()
134 p_ent->elem.hdr.protocol_id, in qed_spq_fill_entry()
135 p_ent->elem.data_ptr.hi, in qed_spq_fill_entry()
136 p_ent->elem.data_ptr.lo, in qed_spq_fill_entry()
198 struct slow_path_element *elem; in qed_spq_hw_post() local
201 p_ent->elem.hdr.echo = cpu_to_le16(echo); in qed_spq_hw_post()
202 elem = qed_chain_produce(p_chain); in qed_spq_hw_post()
203 if (!elem) { in qed_spq_hw_post()
208 *elem = p_ent->elem; /* struct assignment */ in qed_spq_hw_post()
[all …]
Dqed_sp_commands.c46 p_ent->elem.hdr.cid = cpu_to_le32(opaque_cid); in qed_sp_init_request()
47 p_ent->elem.hdr.cmd_id = cmd; in qed_sp_init_request()
48 p_ent->elem.hdr.protocol_id = protocol; in qed_sp_init_request()
Dqed_sp.h89 struct slow_path_element elem; member
/drivers/net/ethernet/sun/
Dsunqe.c417 int elem = qep->rx_new; in qe_rx() local
420 this = &rxbase[elem]; in qe_rx()
424 &qbufs->rx_buf[elem & (RX_RING_SIZE - 1)][0]; in qe_rx()
426 qebuf_offset(rx_buf, (elem & (RX_RING_SIZE - 1))); in qe_rx()
428 &rxbase[(elem+RX_RING_SIZE)&(RX_RING_MAXSIZE-1)]; in qe_rx()
454 elem = NEXT_RX(elem); in qe_rx()
455 this = &rxbase[elem]; in qe_rx()
457 qep->rx_new = elem; in qe_rx()
533 int elem = qep->tx_old; in qe_tx_reclaim() local
535 while (elem != qep->tx_new) { in qe_tx_reclaim()
[all …]
Dsunbmac.c760 int elem; in bigmac_tx() local
764 elem = bp->tx_old; in bigmac_tx()
765 DTX(("bigmac_tx: tx_old[%d] ", elem)); in bigmac_tx()
766 while (elem != bp->tx_new) { in bigmac_tx()
768 struct be_txd *this = &txbase[elem]; in bigmac_tx()
775 skb = bp->tx_skbs[elem]; in bigmac_tx()
783 bp->tx_skbs[elem] = NULL; in bigmac_tx()
786 elem = NEXT_TX(elem); in bigmac_tx()
788 DTX((" DONE, tx_old=%d\n", elem)); in bigmac_tx()
789 bp->tx_old = elem; in bigmac_tx()
[all …]
Dsunqe.h308 #define qib_offset(mem, elem) \ argument
309 ((__u32)((unsigned long)(&(((struct qe_init_block *)0)->mem[elem]))))
330 #define qebuf_offset(mem, elem) \ argument
331 ((__u32)((unsigned long)(&(((struct sunqe_buffers *)0)->mem[elem][0]))))
Dsunhme.c1924 int elem; in happy_meal_tx() local
1926 elem = hp->tx_old; in happy_meal_tx()
1928 while (elem != hp->tx_new) { in happy_meal_tx()
1933 TXD(("[%d]", elem)); in happy_meal_tx()
1934 this = &txbase[elem]; in happy_meal_tx()
1938 skb = hp->tx_skbs[elem]; in happy_meal_tx()
1942 last = elem + skb_shinfo(skb)->nr_frags; in happy_meal_tx()
1948 hp->tx_skbs[elem] = NULL; in happy_meal_tx()
1961 elem = NEXT_TX(elem); in happy_meal_tx()
1962 this = &txbase[elem]; in happy_meal_tx()
[all …]
Dsunbmac.h272 #define bib_offset(mem, elem) \ argument
273 ((__u32)((unsigned long)(&(((struct bmac_init_block *)0)->mem[elem]))))
Dsunhme.h379 #define hblock_offset(mem, elem) \ argument
380 ((__u32)((unsigned long)(&(((struct hmeal_init_block *)0)->mem[elem]))))
/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_acpi.c66 union acpi_object *elem; in asus_acpi_get_sensor_info() local
69 elem = &(cpm->package.elements[i]); in asus_acpi_get_sensor_info()
70 for (j = 0; j < elem->package.count; ++j) { in asus_acpi_get_sensor_info()
73 sub_elem = &(elem->package.elements[j]); in asus_acpi_get_sensor_info()
/drivers/net/wireless/ath/ath9k/
Ddebug.h199 #define PR(str, elem) \ argument
202 TXSTATS[PR_QNUM(IEEE80211_AC_BE)].elem,\
203 TXSTATS[PR_QNUM(IEEE80211_AC_BK)].elem,\
204 TXSTATS[PR_QNUM(IEEE80211_AC_VI)].elem,\
205 TXSTATS[PR_QNUM(IEEE80211_AC_VO)].elem); \
Ddebug.c1235 #define AWDATA(elem) \ argument
1237 data[i++] = sc->debug.stats.txstats[PR_QNUM(IEEE80211_AC_BE)].elem; \
1238 data[i++] = sc->debug.stats.txstats[PR_QNUM(IEEE80211_AC_BK)].elem; \
1239 data[i++] = sc->debug.stats.txstats[PR_QNUM(IEEE80211_AC_VI)].elem; \
1240 data[i++] = sc->debug.stats.txstats[PR_QNUM(IEEE80211_AC_VO)].elem; \
1243 #define AWDATA_RX(elem) \ argument
1245 data[i++] = sc->debug.stats.rxstats.elem; \
/drivers/net/ethernet/mellanox/mlxsw/
Dpci.c128 char *elem; /* pointer to actual dma mapped element mem chunk */ member
233 return mlxsw_pci_queue_elem_info_get(q, elem_index)->elem; in mlxsw_pci_queue_elem_get()
245 char *elem; in mlxsw_pci_queue_sw_elem_get() local
249 elem = elem_info->elem; in mlxsw_pci_queue_sw_elem_get()
250 owner_bit = get_elem_owner_func(elem); in mlxsw_pci_queue_sw_elem_get()
255 return elem; in mlxsw_pci_queue_sw_elem_get()
461 char *wqe = elem_info->elem; in mlxsw_pci_rdq_skb_alloc()
492 wqe = elem_info->elem; in mlxsw_pci_rdq_skb_free()
591 char *elem = mlxsw_pci_queue_elem_get(q, i); in mlxsw_pci_cq_init() local
593 mlxsw_pci_cqe_owner_set(elem, 1); in mlxsw_pci_cq_init()
[all …]
/drivers/block/
Dcciss_scsi.c111 struct cciss_scsi_cmd_stack_elem_t **elem; member
150 c = stk->elem[stk->top]; in scsi_cmd_alloc()
193 stk->elem[stk->top] = (struct cciss_scsi_cmd_stack_elem_t *) c; in scsi_cmd_free()
223 stk->elem = kmalloc(sizeof(stk->elem[0]) * stk->nelems, GFP_KERNEL); in scsi_cmd_stack_setup()
224 if (!stk->elem) { in scsi_cmd_stack_setup()
230 stk->elem[i] = &stk->pool[i]; in scsi_cmd_stack_setup()
231 stk->elem[i]->busaddr = (__u32) (stk->cmd_pool_handle + in scsi_cmd_stack_setup()
233 stk->elem[i]->cmdindex = i; in scsi_cmd_stack_setup()
258 kfree(stk->elem); in scsi_cmd_stack_free()
259 stk->elem = NULL; in scsi_cmd_stack_free()
/drivers/cdrom/
Dgdrom.c591 struct list_head *elem, *next; in gdrom_readdisk_dma() local
603 list_for_each_safe(elem, next, &gdrom_deferred) { in gdrom_readdisk_dma()
604 req = list_entry(elem, struct request, queuelist); in gdrom_readdisk_dma()
/drivers/mailbox/
Domap-mailbox.c98 struct list_head elem; member
484 list_for_each_entry(mdev, &omap_mbox_devices, elem) { in omap_mbox_request_channel()
537 list_add(&mdev->elem, &omap_mbox_devices); in omap_mbox_register()
559 list_del(&mdev->elem); in omap_mbox_unregister()

12