Home
last modified time | relevance | path

Searched refs:elm (Results 1 – 10 of 10) sorted by relevance

/drivers/net/can/
Dcan327.c119 static inline void can327_uart_side_failure(struct can327 *elm);
121 static void can327_send(struct can327 *elm, const void *buf, size_t len) in can327_send() argument
125 lockdep_assert_held(&elm->lock); in can327_send()
127 if (elm->uart_side_failure) in can327_send()
130 memcpy(elm->txbuf, buf, len); in can327_send()
140 set_bit(TTY_DO_WRITE_WAKEUP, &elm->tty->flags); in can327_send()
141 written = elm->tty->ops->write(elm->tty, elm->txbuf, len); in can327_send()
143 netdev_err(elm->dev, "Failed to write to tty %s.\n", in can327_send()
144 elm->tty->name); in can327_send()
145 can327_uart_side_failure(elm); in can327_send()
[all …]
/drivers/scsi/aic7xxx/
Dqueue.h136 #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \ argument
137 SLIST_NEXT((elm), field) = SLIST_NEXT((slistelm), field); \
138 SLIST_NEXT((slistelm), field) = (elm); \
141 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument
142 SLIST_NEXT((elm), field) = SLIST_FIRST((head)); \
143 SLIST_FIRST((head)) = (elm); \
146 #define SLIST_NEXT(elm, field) ((elm)->field.sle_next) argument
148 #define SLIST_REMOVE(head, elm, type, field) do { \ argument
149 if (SLIST_FIRST((head)) == (elm)) { \
154 while (SLIST_NEXT(curelm, field) != (elm)) \
[all …]
/drivers/iommu/iommufd/
Dio_pagetable.c241 struct iopt_pages_list *elm; in iopt_alloc_area_pages() local
245 list_for_each_entry(elm, pages_list, next) { in iopt_alloc_area_pages()
246 elm->area = iopt_area_alloc(); in iopt_alloc_area_pages()
247 if (!elm->area) in iopt_alloc_area_pages()
259 elm = list_first_entry(pages_list, struct iopt_pages_list, in iopt_alloc_area_pages()
263 (uintptr_t)elm->pages->uptr + elm->start_byte, length); in iopt_alloc_area_pages()
282 list_for_each_entry(elm, pages_list, next) { in iopt_alloc_area_pages()
283 rc = iopt_insert_area(iopt, elm->area, elm->pages, iova, in iopt_alloc_area_pages()
284 elm->start_byte, elm->length, iommu_prot); in iopt_alloc_area_pages()
287 iova += elm->length; in iopt_alloc_area_pages()
[all …]
Dioas.c88 struct iommu_iova_range elm = { in iommufd_ioas_iova_ranges() local
93 if (copy_to_user(&ranges[cmd->num_iovas], &elm, in iommufd_ioas_iova_ranges()
94 sizeof(elm))) { in iommufd_ioas_iova_ranges()
/drivers/staging/media/atomisp/pci/isp/kernels/s3a/s3a_1.0/
Dia_css_s3a.host.c334 int out_width, out_height, chunk, rest, kmax, y, x, k, elm_start, elm, ofs; in ia_css_s3a_vmem_decode() local
359 elm = elm_start + x * sizeof(*output) / sizeof(int32_t); in ia_css_s3a_vmem_decode()
360 for (k = 0; k < kmax; k++, elm++) { in ia_css_s3a_vmem_decode()
362 hi[elm + chunk * 0], lo[elm + chunk * 0]); in ia_css_s3a_vmem_decode()
364 hi[elm + chunk * 1], lo[elm + chunk * 1]); in ia_css_s3a_vmem_decode()
366 hi[elm + chunk * 2], lo[elm + chunk * 2]); in ia_css_s3a_vmem_decode()
368 hi[elm + chunk * 3], lo[elm + chunk * 3]); in ia_css_s3a_vmem_decode()
370 hi[elm + chunk * 4], lo[elm + chunk * 4]); in ia_css_s3a_vmem_decode()
372 hi[elm + chunk * 5], lo[elm + chunk * 5]); in ia_css_s3a_vmem_decode()
374 hi[elm + chunk * 6], lo[elm + chunk * 6]); in ia_css_s3a_vmem_decode()
[all …]
/drivers/infiniband/core/
Duverbs_uapi.c18 void *elm; in uapi_add_elm() local
24 elm = kzalloc(alloc_size, GFP_KERNEL); in uapi_add_elm()
25 if (!elm) in uapi_add_elm()
27 rc = radix_tree_insert(&uapi->radix, key, elm); in uapi_add_elm()
29 kfree(elm); in uapi_add_elm()
33 return elm; in uapi_add_elm()
39 void *elm; in uapi_add_get_elm() local
41 elm = uapi_add_elm(uapi, key, alloc_size); in uapi_add_get_elm()
42 if (!IS_ERR(elm)) { in uapi_add_get_elm()
44 return elm; in uapi_add_get_elm()
[all …]
/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_opp_csc_v.c680 const struct out_csc_color_matrix *elm; in dce110_opp_v_set_csc_default() local
693 elm = &global_color_matrix[i]; in dce110_opp_v_set_csc_default()
694 if (elm->color_space != default_adjust->out_color_space) in dce110_opp_v_set_csc_default()
699 program_color_matrix_v(xfm_dce, elm, option); in dce110_opp_v_set_csc_default()
/drivers/gpu/drm/amd/display/dc/dce/
Ddce_transform.c1373 const struct out_csc_color_matrix *elm; in dce110_opp_set_csc_default() local
1387 elm = &global_color_matrix[i]; in dce110_opp_set_csc_default()
1388 if (elm->color_space != default_adjust->out_color_space) in dce110_opp_set_csc_default()
1392 program_color_matrix(xfm_dce, elm, option); in dce110_opp_set_csc_default()
/drivers/soc/ti/
Dk3-ringacc.c114 int (*push_tail)(struct k3_ring *ring, void *elm);
115 int (*push_head)(struct k3_ring *ring, void *elm);
116 int (*pop_tail)(struct k3_ring *ring, void *elm);
117 int (*pop_head)(struct k3_ring *ring, void *elm);
/drivers/net/wireless/realtek/rtw89/
Dfw.c392 const struct rtw89_fw_element_hdr *elm, in __rtw89_fw_recognize_from_elm() argument
399 fw_suit->data = elm->u.common.contents; in __rtw89_fw_recognize_from_elm()
400 fw_suit->size = le32_to_cpu(elm->size); in __rtw89_fw_recognize_from_elm()
550 const struct rtw89_fw_element_hdr *elm, in rtw89_build_phy_tbl_from_elm() argument
564 switch (le32_to_cpu(elm->id)) { in rtw89_build_phy_tbl_from_elm()
576 idx = elm->u.reg2.idx; in rtw89_build_phy_tbl_from_elm()
590 n_regs = le32_to_cpu(elm->size) / sizeof(tbl->regs[0]); in rtw89_build_phy_tbl_from_elm()
596 regs[i].addr = le32_to_cpu(elm->u.reg2.regs[i].addr); in rtw89_build_phy_tbl_from_elm()
597 regs[i].data = le32_to_cpu(elm->u.reg2.regs[i].data); in rtw89_build_phy_tbl_from_elm()
612 const struct rtw89_fw_element_hdr *elm, const void *data);