/drivers/net/ethernet/netronome/nfp/crypto/ |
D | tls.c | 46 enum tls_offload_ctx_dir direction) in __nfp_net_tls_conn_cnt_changed() argument 51 if (direction == TLS_OFFLOAD_CTX_DIR_TX) { in __nfp_net_tls_conn_cnt_changed() 72 enum tls_offload_ctx_dir direction) in nfp_net_tls_conn_cnt_changed() argument 78 if (__nfp_net_tls_conn_cnt_changed(nn, add, direction)) { in nfp_net_tls_conn_cnt_changed() 82 __nfp_net_tls_conn_cnt_changed(nn, -add, direction); in nfp_net_tls_conn_cnt_changed() 90 nfp_net_tls_conn_add(struct nfp_net *nn, enum tls_offload_ctx_dir direction) in nfp_net_tls_conn_add() argument 92 return nfp_net_tls_conn_cnt_changed(nn, 1, direction); in nfp_net_tls_conn_add() 96 nfp_net_tls_conn_remove(struct nfp_net *nn, enum tls_offload_ctx_dir direction) in nfp_net_tls_conn_remove() argument 98 return nfp_net_tls_conn_cnt_changed(nn, -1, direction); in nfp_net_tls_conn_remove() 175 struct sock *sk, int direction) in nfp_net_tls_set_ipv4() argument [all …]
|
/drivers/char/xillybus/ |
D | xillybus_of.c | 38 int direction) in xilly_dma_sync_single_for_cpu_of() argument 40 dma_sync_single_for_cpu(ep->dev, dma_handle, size, direction); in xilly_dma_sync_single_for_cpu_of() 46 int direction) in xilly_dma_sync_single_for_device_of() argument 48 dma_sync_single_for_device(ep->dev, dma_handle, size, direction); in xilly_dma_sync_single_for_device_of() 54 int direction) in xilly_dma_sync_single_nop() argument 63 data->size, data->direction); in xilly_of_unmap() 71 int direction, in xilly_map_single_of() argument 82 addr = dma_map_single(ep->dev, ptr, size, direction); in xilly_map_single_of() 92 this->direction = direction; in xilly_map_single_of()
|
D | xillybus_pcie.c | 36 static int xilly_pci_direction(int direction) in xilly_pci_direction() argument 38 switch (direction) { in xilly_pci_direction() 51 int direction) in xilly_dma_sync_single_for_cpu_pci() argument 56 xilly_pci_direction(direction)); in xilly_dma_sync_single_for_cpu_pci() 62 int direction) in xilly_dma_sync_single_for_device_pci() argument 67 xilly_pci_direction(direction)); in xilly_dma_sync_single_for_device_pci() 75 data->size, data->direction); in xilly_pci_unmap() 89 int direction, in xilly_map_single_pci() argument 101 pci_direction = xilly_pci_direction(direction); in xilly_map_single_pci() 113 this->direction = pci_direction; in xilly_map_single_pci()
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_dcb.c | 64 int max_frame, u8 direction) in ixgbe_dcb_calculate_tc_credits() argument 85 p = &dcb_config->tc_config[i].path[direction]; in ixgbe_dcb_calculate_tc_credits() 86 bw_percent = dcb_config->bw_percentage[direction][p->bwg_id]; in ixgbe_dcb_calculate_tc_credits() 107 p = &dcb_config->tc_config[i].path[direction]; in ixgbe_dcb_calculate_tc_credits() 108 bw_percent = dcb_config->bw_percentage[direction][p->bwg_id]; in ixgbe_dcb_calculate_tc_credits() 140 if (direction == DCB_TX_CONFIG) { in ixgbe_dcb_calculate_tc_credits() 173 void ixgbe_dcb_unpack_refill(struct ixgbe_dcb_config *cfg, int direction, in ixgbe_dcb_unpack_refill() argument 180 refill[tc] = tc_config[tc].path[direction].data_credits_refill; in ixgbe_dcb_unpack_refill() 192 void ixgbe_dcb_unpack_bwgid(struct ixgbe_dcb_config *cfg, int direction, in ixgbe_dcb_unpack_bwgid() argument 199 bwgid[tc] = tc_config[tc].path[direction].bwg_id; in ixgbe_dcb_unpack_bwgid() [all …]
|
/drivers/staging/android/ion/ |
D | ion_dma_buf.c | 99 enum dma_data_direction direction) in ion_map_dma_buf() argument 107 return heap->buf_ops.map_dma_buf(attachment, direction); in ion_map_dma_buf() 112 if (!dma_map_sg(attachment->dev, table->sgl, table->nents, direction)) in ion_map_dma_buf() 120 enum dma_data_direction direction) in ion_unmap_dma_buf() argument 127 direction); in ion_unmap_dma_buf() 129 dma_unmap_sg(attachment->dev, table->sgl, table->nents, direction); in ion_unmap_dma_buf() 144 enum dma_data_direction direction) in ion_dma_buf_begin_cpu_access() argument 153 return heap->buf_ops.begin_cpu_access(dmabuf, direction); in ion_dma_buf_begin_cpu_access() 169 direction); in ion_dma_buf_begin_cpu_access() 179 enum dma_data_direction direction, in ion_dma_buf_begin_cpu_access_partial() argument [all …]
|
/drivers/dma-buf/ |
D | dma-buf.c | 356 enum dma_data_direction direction; in dma_buf_ioctl() local 371 direction = DMA_FROM_DEVICE; in dma_buf_ioctl() 374 direction = DMA_TO_DEVICE; in dma_buf_ioctl() 377 direction = DMA_BIDIRECTIONAL; in dma_buf_ioctl() 384 ret = dma_buf_end_cpu_access(dmabuf, direction); in dma_buf_ioctl() 386 ret = dma_buf_begin_cpu_access(dmabuf, direction); in dma_buf_ioctl() 743 enum dma_data_direction direction) in dma_buf_map_attachment() argument 757 if (attach->dir != direction && in dma_buf_map_attachment() 764 sg_table = attach->dmabuf->ops->map_dma_buf(attach, direction); in dma_buf_map_attachment() 770 attach->dir = direction; in dma_buf_map_attachment() [all …]
|
/drivers/gpio/ |
D | gpio-reg.c | 16 u32 direction; member 29 return r->direction & BIT(offset) ? 1 : 0; in gpio_reg_get_direction() 37 if (r->direction & BIT(offset)) in gpio_reg_direction_output() 48 return r->direction & BIT(offset) ? 0 : -ENOTSUPP; in gpio_reg_direction_input() 73 if (r->direction & mask) { in gpio_reg_get() 131 int base, int num, const char *label, u32 direction, u32 def_out, in gpio_reg_init() argument 159 r->direction = direction; in gpio_reg_init()
|
/drivers/staging/ralink-gdma/ |
D | ralink-gdma.c | 99 enum dma_transfer_direction direction; member 192 switch (config->direction) { in gdma_dma_config() 213 config->direction); in gdma_dma_config() 287 if (chan->desc->direction == DMA_MEM_TO_DEV) { in rt305x_gdma_start_transfer() 293 } else if (chan->desc->direction == DMA_DEV_TO_MEM) { in rt305x_gdma_start_transfer() 299 } else if (chan->desc->direction == DMA_MEM_TO_MEM) { in rt305x_gdma_start_transfer() 311 chan->desc->direction); in rt305x_gdma_start_transfer() 364 if (chan->desc->direction == DMA_MEM_TO_DEV) { in rt3883_gdma_start_transfer() 370 } else if (chan->desc->direction == DMA_DEV_TO_MEM) { in rt3883_gdma_start_transfer() 377 } else if (chan->desc->direction == DMA_MEM_TO_MEM) { in rt3883_gdma_start_transfer() [all …]
|
/drivers/input/ |
D | ff-memless.c | 216 static u16 ml_calculate_direction(u16 direction, u16 force, in ml_calculate_direction() argument 222 return direction; in ml_calculate_direction() 223 return (((u32)(direction >> 1) * force + in ml_calculate_direction() 254 i = new->direction * 360 / 0xffff; in ml_combine_effects() 276 effect->direction = ml_calculate_direction( in ml_combine_effects() 277 effect->direction, in ml_combine_effects() 279 new->direction, strong); in ml_combine_effects() 281 effect->direction = ml_calculate_direction( in ml_combine_effects() 282 effect->direction, in ml_combine_effects() 284 new->direction, weak); in ml_combine_effects() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | tls.c | 103 enum tls_offload_ctx_dir direction, in mlx5e_tls_add() argument 125 direction == TLS_OFFLOAD_CTX_DIR_TX); in mlx5e_tls_add() 129 if (direction == TLS_OFFLOAD_CTX_DIR_TX) { in mlx5e_tls_add() 150 enum tls_offload_ctx_dir direction) in mlx5e_tls_del() argument 155 handle = ntohl((direction == TLS_OFFLOAD_CTX_DIR_TX) ? in mlx5e_tls_del() 160 direction == TLS_OFFLOAD_CTX_DIR_TX); in mlx5e_tls_del() 165 enum tls_offload_ctx_dir direction) in mlx5e_tls_resync() argument 172 if (WARN_ON_ONCE(direction != TLS_OFFLOAD_CTX_DIR_RX)) in mlx5e_tls_resync()
|
/drivers/media/v4l2-core/ |
D | videobuf-dma-sg.c | 152 int direction, unsigned long data, unsigned long size) in videobuf_dma_init_user_locked() argument 158 dma->direction = direction; in videobuf_dma_init_user_locked() 159 switch (dma->direction) { in videobuf_dma_init_user_locked() 198 static int videobuf_dma_init_user(struct videobuf_dmabuf *dma, int direction, in videobuf_dma_init_user() argument 204 ret = videobuf_dma_init_user_locked(dma, direction, data, size); in videobuf_dma_init_user() 210 static int videobuf_dma_init_kernel(struct videobuf_dmabuf *dma, int direction, in videobuf_dma_init_kernel() argument 217 dma->direction = direction; in videobuf_dma_init_kernel() 269 static int videobuf_dma_init_overlay(struct videobuf_dmabuf *dma, int direction, in videobuf_dma_init_overlay() argument 274 dma->direction = direction; in videobuf_dma_init_overlay() 314 dma->nr_pages, dma->direction); in videobuf_dma_map() [all …]
|
/drivers/usb/gadget/udc/ |
D | mv_udc_core.c | 40 ((ep)->udc->ep0_dir) : ((ep)->direction)) 128 int i, direction; in process_ep_req() local 134 direction = index % 2; in process_ep_req() 154 if (direction) { in process_ep_req() 165 index >> 1, direction ? "SEND" : "RECV", in process_ep_req() 183 if (direction == EP_DIR_OUT) in process_ep_req() 256 u32 bit_pos, direction; in queue_dtd() local 262 direction = ep_dir(ep); in queue_dtd() 263 dqh = &(udc->ep_dqh[ep->ep_num * 2 + direction]); in queue_dtd() 264 bit_pos = 1 << (((direction == EP_DIR_OUT) ? 0 : 16) + ep->ep_num); in queue_dtd() [all …]
|
D | mv_u3d_core.c | 120 int direction, ep_num; in mv_u3d_process_ep_req() local 124 direction = index % 2; in mv_u3d_process_ep_req() 139 if (direction == MV_U3D_EP_DIR_OUT) in mv_u3d_process_ep_req() 149 direction == MV_U3D_EP_DIR_OUT)) { in mv_u3d_process_ep_req() 155 index >> 1, direction ? "SEND" : "RECV", in mv_u3d_process_ep_req() 221 u32 tmp, direction; in mv_u3d_queue_trb() local 227 direction = mv_u3d_ep_dir(ep); in mv_u3d_queue_trb() 233 ep_context = &(u3d->ep_context[ep->ep_num * 2 + direction]); in mv_u3d_queue_trb() 261 + ((direction == MV_U3D_EP_DIR_OUT) ? 0 : 1); in mv_u3d_queue_trb() 272 unsigned int direction; in mv_u3d_build_trb_one() local [all …]
|
/drivers/gpu/drm/gma500/ |
D | accel_2d.c | 170 uint32_t direction; in psb_accel_2d_copy() local 174 direction = in psb_accel_2d_copy() 177 if (direction == PSB_2D_COPYORDER_BR2TL || in psb_accel_2d_copy() 178 direction == PSB_2D_COPYORDER_TR2BL) { in psb_accel_2d_copy() 182 if (direction == PSB_2D_COPYORDER_BR2TL || in psb_accel_2d_copy() 183 direction == PSB_2D_COPYORDER_BL2TR) { in psb_accel_2d_copy() 193 PSB_2D_USE_PAT | PSB_2D_ROP3_SRCCOPY | direction; in psb_accel_2d_copy()
|
/drivers/usb/core/ |
D | endpoint.c | 133 char *direction; in direction_show() local 136 direction = "both"; in direction_show() 138 direction = "in"; in direction_show() 140 direction = "out"; in direction_show() 141 return sprintf(buf, "%s\n", direction); in direction_show() 143 static DEVICE_ATTR_RO(direction);
|
/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_mgmt.c | 121 enum mgmt_direction_type direction, in prepare_header() argument 133 HINIC_MSG_HEADER_SET(direction, DIRECTION) | in prepare_header() 196 enum mgmt_direction_type direction, in send_msg_to_mgmt() argument 205 if (direction == MGMT_RESP) { in send_msg_to_mgmt() 207 direction, cmd, resp_msg_id); in send_msg_to_mgmt() 211 direction, cmd, msg_id); in send_msg_to_mgmt() 240 enum mgmt_direction_type direction, in msg_to_mgmt_sync() argument 264 MSG_ACK, direction, resp_msg_id); in msg_to_mgmt_sync() 309 enum mgmt_direction_type direction, in msg_to_mgmt_async() argument 318 MSG_NO_ACK, direction, resp_msg_id); in msg_to_mgmt_async()
|
/drivers/dma/ |
D | dma-axi-dmac.c | 113 enum dma_transfer_direction direction; member 484 enum dma_transfer_direction direction, dma_addr_t addr, in axi_dmac_fill_linear_sg() argument 502 if (direction == DMA_DEV_TO_MEM) in axi_dmac_fill_linear_sg() 513 if (direction == DMA_DEV_TO_MEM) in axi_dmac_fill_linear_sg() 528 unsigned int sg_len, enum dma_transfer_direction direction, in axi_dmac_prep_slave_sg() argument 538 if (direction != chan->direction) in axi_dmac_prep_slave_sg() 558 dsg = axi_dmac_fill_linear_sg(chan, direction, sg_dma_address(sg), 1, in axi_dmac_prep_slave_sg() 569 size_t period_len, enum dma_transfer_direction direction, in axi_dmac_prep_dma_cyclic() argument 576 if (direction != chan->direction) in axi_dmac_prep_dma_cyclic() 593 axi_dmac_fill_linear_sg(chan, direction, buf_addr, num_periods, in axi_dmac_prep_dma_cyclic() [all …]
|
D | st_fdma.c | 346 enum dma_transfer_direction direction) in config_reqctrl() argument 353 switch (direction) { in config_reqctrl() 402 fchan->cfg.dir = direction; in config_reqctrl() 412 enum dma_transfer_direction direction) in fill_hw_node() argument 414 if (direction == DMA_MEM_TO_DEV) { in fill_hw_node() 429 size_t len, enum dma_transfer_direction direction) in st_fdma_prep_common() argument 438 if (!is_slave_direction(direction)) { in st_fdma_prep_common() 448 size_t period_len, enum dma_transfer_direction direction, in st_fdma_prep_dma_cyclic() argument 455 fchan = st_fdma_prep_common(chan, len, direction); in st_fdma_prep_dma_cyclic() 462 if (config_reqctrl(fchan, direction)) { in st_fdma_prep_dma_cyclic() [all …]
|
/drivers/staging/greybus/ |
D | gpio.c | 24 direction: 1, /* 0 = output, 1 = input */ member 112 u8 direction; in gb_gpio_get_direction_operation() local 121 direction = response.direction; in gb_gpio_get_direction_operation() 122 if (direction && direction != 1) { in gb_gpio_get_direction_operation() 124 which, direction); in gb_gpio_get_direction_operation() 126 ggc->lines[which].direction = direction ? 1 : 0; in gb_gpio_get_direction_operation() 140 ggc->lines[which].direction = 1; in gb_gpio_direction_in_operation() 155 ggc->lines[which].direction = 0; in gb_gpio_direction_out_operation() 193 if (ggc->lines[which].direction == 1) { in gb_gpio_set_value_operation() 432 return ggc->lines[which].direction ? 1 : 0; in gb_gpio_get_direction()
|
D | audio_apbridgea.c | 31 __u8 direction) in gb_audio_apbridgea_register_cport() argument 39 req.direction = direction; in gb_audio_apbridgea_register_cport() 52 __u8 direction) in gb_audio_apbridgea_unregister_cport() argument 60 req.direction = direction; in gb_audio_apbridgea_unregister_cport()
|
/drivers/staging/rtl8188eu/hal/ |
D | rf.c | 45 u8 direction; in rtl88eu_phy_rf6052_set_cck_txpower() local 89 rtl88eu_dm_txpower_track_adjust(&hal_data->odmpriv, 1, &direction, in rtl88eu_phy_rf6052_set_cck_txpower() 92 if (direction == 1) { in rtl88eu_phy_rf6052_set_cck_txpower() 96 } else if (direction == 2) { in rtl88eu_phy_rf6052_set_cck_txpower() 265 u8 direction; in rtl88eu_phy_rf6052_set_ofdm_txpower() local 272 &direction, &pwrtrac_value); in rtl88eu_phy_rf6052_set_ofdm_txpower() 279 if (direction == 1) { in rtl88eu_phy_rf6052_set_ofdm_txpower() 282 } else if (direction == 2) { in rtl88eu_phy_rf6052_set_ofdm_txpower()
|
/drivers/media/pci/ivtv/ |
D | ivtv-cards.c | 212 .gpio_init = { .direction = 0x1f01, .initial_value = 0x26f3 }, 243 .gpio_init = { .direction = 0xe380, .initial_value = 0x8290 }, 286 .gpio_init = { .direction = 0x3080, .initial_value = 0x0004 }, 328 .gpio_init = { .direction = 0x7080, .initial_value = 0x400c }, 479 .gpio_init = { .direction = 0xe080, .initial_value = 0x8000 }, 556 .gpio_init = { .direction = 0xf880, .initial_value = 0x8800 }, 588 .gpio_init = { .direction = 0xf880, .initial_value = 0x8800 }, 618 .gpio_init = { .direction = 0xf880, .initial_value = 0x8800 }, 660 .gpio_init = { .direction = 0xc301, .initial_value = 0x0200 }, 697 .gpio_init = { .direction = 0xc301, .initial_value = 0x0200 }, [all …]
|
/drivers/infiniband/core/ |
D | smi.c | 48 u8 direction, in __smi_handle_dr_smp_send() argument 57 if (!direction) { in __smi_handle_dr_smp_send() 160 u8 direction, in __smi_handle_dr_smp_recv() argument 169 if (!direction) { in __smi_handle_dr_smp_recv() 271 u8 direction, in __smi_check_forward_dr_smp() argument 275 if (!direction) { in __smi_check_forward_dr_smp()
|
/drivers/dma/sh/ |
D | shdma-base.c | 503 struct shdma_desc **first, enum dma_transfer_direction direction) in shdma_add_desc() argument 538 new->direction = direction; in shdma_add_desc() 542 if (direction == DMA_MEM_TO_MEM || direction == DMA_MEM_TO_DEV) in shdma_add_desc() 544 if (direction == DMA_MEM_TO_MEM || direction == DMA_DEV_TO_MEM) in shdma_add_desc() 562 enum dma_transfer_direction direction, unsigned long flags, bool cyclic) in shdma_prep_sg() argument 599 if (direction == DMA_DEV_TO_MEM) in shdma_prep_sg() 602 direction); in shdma_prep_sg() 606 direction); in shdma_prep_sg() 663 enum dma_transfer_direction direction, unsigned long flags, void *context) in shdma_prep_slave_sg() argument 686 direction, flags, false); in shdma_prep_slave_sg() [all …]
|
/drivers/input/misc/ |
D | twl6040-vibra.c | 41 int direction; member 121 int speed, int direction) in twl6040_vibra_code() argument 139 vibdat *= direction; in twl6040_vibra_code() 154 info->weak_speed, info->direction); in twl6040_vibra_set_effect() 160 info->strong_speed, info->direction); in twl6040_vibra_set_effect() 196 info->direction = effect->direction < EFFECT_DIR_180_DEG ? 1 : -1; in vibra_play()
|