/linux-6.6.21/net/ceph/ |
D | messenger_v1.c | 110 static void con_out_kvec_reset(struct ceph_connection *con) in con_out_kvec_reset() argument 112 BUG_ON(con->v1.out_skip); in con_out_kvec_reset() 114 con->v1.out_kvec_left = 0; in con_out_kvec_reset() 115 con->v1.out_kvec_bytes = 0; in con_out_kvec_reset() 116 con->v1.out_kvec_cur = &con->v1.out_kvec[0]; in con_out_kvec_reset() 119 static void con_out_kvec_add(struct ceph_connection *con, in con_out_kvec_add() argument 122 int index = con->v1.out_kvec_left; in con_out_kvec_add() 124 BUG_ON(con->v1.out_skip); in con_out_kvec_add() 125 BUG_ON(index >= ARRAY_SIZE(con->v1.out_kvec)); in con_out_kvec_add() 127 con->v1.out_kvec[index].iov_len = size; in con_out_kvec_add() [all …]
|
D | messenger_v2.c | 109 static int ceph_tcp_recv(struct ceph_connection *con) in ceph_tcp_recv() argument 113 dout("%s con %p %s %zu\n", __func__, con, in ceph_tcp_recv() 114 iov_iter_is_discard(&con->v2.in_iter) ? "discard" : "need", in ceph_tcp_recv() 115 iov_iter_count(&con->v2.in_iter)); in ceph_tcp_recv() 116 ret = do_recvmsg(con->sock, &con->v2.in_iter); in ceph_tcp_recv() 117 dout("%s con %p ret %d left %zu\n", __func__, con, ret, in ceph_tcp_recv() 118 iov_iter_count(&con->v2.in_iter)); in ceph_tcp_recv() 196 static int ceph_tcp_send(struct ceph_connection *con) in ceph_tcp_send() argument 200 dout("%s con %p have %zu try_sendpage %d\n", __func__, con, in ceph_tcp_send() 201 iov_iter_count(&con->v2.out_iter), con->v2.out_iter_sendpage); in ceph_tcp_send() [all …]
|
D | messenger.c | 100 void ceph_con_flag_clear(struct ceph_connection *con, unsigned long con_flag) in ceph_con_flag_clear() argument 104 clear_bit(con_flag, &con->flags); in ceph_con_flag_clear() 107 void ceph_con_flag_set(struct ceph_connection *con, unsigned long con_flag) in ceph_con_flag_set() argument 111 set_bit(con_flag, &con->flags); in ceph_con_flag_set() 114 bool ceph_con_flag_test(struct ceph_connection *con, unsigned long con_flag) in ceph_con_flag_test() argument 118 return test_bit(con_flag, &con->flags); in ceph_con_flag_test() 121 bool ceph_con_flag_test_and_clear(struct ceph_connection *con, in ceph_con_flag_test_and_clear() argument 126 return test_and_clear_bit(con_flag, &con->flags); in ceph_con_flag_test_and_clear() 129 bool ceph_con_flag_test_and_set(struct ceph_connection *con, in ceph_con_flag_test_and_set() argument 134 return test_and_set_bit(con_flag, &con->flags); in ceph_con_flag_test_and_set() [all …]
|
/linux-6.6.21/drivers/usb/typec/ucsi/ |
D | ucsi.c | 196 struct ucsi_connector *con; member 203 struct ucsi_connector *con = uwork->con; in ucsi_poll_worker() local 206 mutex_lock(&con->lock); in ucsi_poll_worker() 208 if (!con->partner) { in ucsi_poll_worker() 210 mutex_unlock(&con->lock); in ucsi_poll_worker() 215 ret = uwork->cb(con); in ucsi_poll_worker() 218 queue_delayed_work(con->wq, &uwork->work, uwork->delay); in ucsi_poll_worker() 224 mutex_unlock(&con->lock); in ucsi_poll_worker() 227 static int ucsi_partner_task(struct ucsi_connector *con, in ucsi_partner_task() argument 233 if (!con->partner) in ucsi_partner_task() [all …]
|
D | psy.c | 33 static int ucsi_psy_get_scope(struct ucsi_connector *con, in ucsi_psy_get_scope() argument 37 struct device *dev = con->ucsi->dev; in ucsi_psy_get_scope() 44 if (con->ucsi->cap.attributes & mask) in ucsi_psy_get_scope() 53 static int ucsi_psy_get_online(struct ucsi_connector *con, in ucsi_psy_get_online() argument 57 if (con->status.flags & UCSI_CONSTAT_CONNECTED && in ucsi_psy_get_online() 58 (con->status.flags & UCSI_CONSTAT_PWR_DIR) == TYPEC_SINK) in ucsi_psy_get_online() 63 static int ucsi_psy_get_voltage_min(struct ucsi_connector *con, in ucsi_psy_get_voltage_min() argument 68 switch (UCSI_CONSTAT_PWR_OPMODE(con->status.flags)) { in ucsi_psy_get_voltage_min() 70 pdo = con->src_pdos[0]; in ucsi_psy_get_voltage_min() 86 static int ucsi_psy_get_voltage_max(struct ucsi_connector *con, in ucsi_psy_get_voltage_max() argument [all …]
|
D | displayport.c | 20 struct ucsi_connector *con; member 51 struct ucsi *ucsi = dp->con->ucsi; in ucsi_displayport_enter() 57 mutex_lock(&dp->con->lock); in ucsi_displayport_enter() 68 command = UCSI_GET_CURRENT_CAM | UCSI_CONNECTOR_NUMBER(dp->con->num); in ucsi_displayport_enter() 77 ret = dp->con->port_altmode[cur] == alt ? 0 : -EBUSY; in ucsi_displayport_enter() 103 mutex_unlock(&dp->con->lock); in ucsi_displayport_enter() 115 mutex_lock(&dp->con->lock); in ucsi_displayport_exit() 126 command = UCSI_CMD_SET_NEW_CAM(dp->con->num, 0, dp->offset, 0); in ucsi_displayport_exit() 127 ret = ucsi_send_command(dp->con->ucsi, command, NULL, 0); in ucsi_displayport_exit() 147 mutex_unlock(&dp->con->lock); in ucsi_displayport_exit() [all …]
|
/linux-6.6.21/net/tipc/ |
D | topsrv.c | 117 static void tipc_conn_delete_sub(struct tipc_conn *con, struct tipc_subscr *s); 119 static bool connected(struct tipc_conn *con) in connected() argument 121 return con && test_bit(CF_CONNECTED, &con->flags); in connected() 126 struct tipc_conn *con = container_of(kref, struct tipc_conn, kref); in tipc_conn_kref_release() local 127 struct tipc_topsrv *s = con->server; in tipc_conn_kref_release() 131 idr_remove(&s->conn_idr, con->conid); in tipc_conn_kref_release() 134 if (con->sock) in tipc_conn_kref_release() 135 sock_release(con->sock); in tipc_conn_kref_release() 137 spin_lock_bh(&con->outqueue_lock); in tipc_conn_kref_release() 138 list_for_each_entry_safe(e, safe, &con->outqueue, list) { in tipc_conn_kref_release() [all …]
|
/linux-6.6.21/fs/dlm/ |
D | lowcomms.c | 133 struct connection *con; member 163 int (*connect)(struct connection *con, struct socket *sock, 212 static void lowcomms_queue_swork(struct connection *con) in lowcomms_queue_swork() argument 214 assert_spin_locked(&con->writequeue_lock); in lowcomms_queue_swork() 216 if (!test_bit(CF_IO_STOP, &con->flags) && in lowcomms_queue_swork() 217 !test_bit(CF_APP_LIMITED, &con->flags) && in lowcomms_queue_swork() 218 !test_and_set_bit(CF_SEND_PENDING, &con->flags)) in lowcomms_queue_swork() 219 queue_work(io_workqueue, &con->swork); in lowcomms_queue_swork() 222 static void lowcomms_queue_rwork(struct connection *con) in lowcomms_queue_rwork() argument 225 WARN_ON_ONCE(!lockdep_sock_is_held(con->sock->sk)); in lowcomms_queue_rwork() [all …]
|
/linux-6.6.21/tools/perf/util/ |
D | bpf_lock_contention.c | 20 int lock_contention_prepare(struct lock_contention *con) in lock_contention_prepare() argument 24 struct evlist *evlist = con->evlist; in lock_contention_prepare() 25 struct target *target = con->target; in lock_contention_prepare() 33 bpf_map__set_value_size(skel->maps.stacks, con->max_stack * sizeof(u64)); in lock_contention_prepare() 34 bpf_map__set_max_entries(skel->maps.lock_stat, con->map_nr_entries); in lock_contention_prepare() 35 bpf_map__set_max_entries(skel->maps.tstamp, con->map_nr_entries); in lock_contention_prepare() 37 if (con->aggr_mode == LOCK_AGGR_TASK) in lock_contention_prepare() 38 bpf_map__set_max_entries(skel->maps.task_data, con->map_nr_entries); in lock_contention_prepare() 42 if (con->save_callstack) in lock_contention_prepare() 43 bpf_map__set_max_entries(skel->maps.stacks, con->map_nr_entries); in lock_contention_prepare() [all …]
|
/linux-6.6.21/include/linux/ceph/ |
D | messenger.h | 30 void (*dispatch) (struct ceph_connection *con, struct ceph_msg *m); 34 struct ceph_connection *con, 36 int (*add_authorizer_challenge)(struct ceph_connection *con, 39 int (*verify_authorizer_reply) (struct ceph_connection *con); 40 int (*invalidate_authorizer)(struct ceph_connection *con); 43 void (*fault) (struct ceph_connection *con); 47 void (*peer_reset) (struct ceph_connection *con); 49 struct ceph_msg * (*alloc_msg) (struct ceph_connection *con, 59 int (*get_auth_request)(struct ceph_connection *con, 62 int (*handle_auth_reply_more)(struct ceph_connection *con, [all …]
|
/linux-6.6.21/drivers/infiniband/ulp/rtrs/ |
D | rtrs.c | 72 int rtrs_iu_post_recv(struct rtrs_con *con, struct rtrs_iu *iu) in rtrs_iu_post_recv() argument 74 struct rtrs_path *path = con->path; in rtrs_iu_post_recv() 83 rtrs_wrn(con->path, in rtrs_iu_post_recv() 93 return ib_post_recv(con->qp, &wr, NULL); in rtrs_iu_post_recv() 97 int rtrs_post_recv_empty(struct rtrs_con *con, struct ib_cqe *cqe) in rtrs_post_recv_empty() argument 105 return ib_post_recv(con->qp, &wr, NULL); in rtrs_post_recv_empty() 128 int rtrs_iu_post_send(struct rtrs_con *con, struct rtrs_iu *iu, size_t size, in rtrs_iu_post_send() argument 131 struct rtrs_path *path = con->path; in rtrs_iu_post_send() 150 return rtrs_post_send(con->qp, head, &wr, NULL); in rtrs_iu_post_send() 154 int rtrs_iu_post_rdma_write_imm(struct rtrs_con *con, struct rtrs_iu *iu, in rtrs_iu_post_rdma_write_imm() argument [all …]
|
D | rtrs-clt.c | 188 return to_clt_con(clt_path->s.con[id]); in rtrs_permit_to_clt_con() 307 static void rtrs_rdma_error_recovery(struct rtrs_clt_con *con) in rtrs_rdma_error_recovery() argument 309 struct rtrs_clt_path *clt_path = to_clt_path(con->c.path); in rtrs_rdma_error_recovery() 331 struct rtrs_clt_con *con = to_clt_con(wc->qp->qp_context); in rtrs_clt_fast_reg_done() local 334 rtrs_err(con->c.path, "Failed IB_WR_REG_MR: %s\n", in rtrs_clt_fast_reg_done() 336 rtrs_rdma_error_recovery(con); in rtrs_clt_fast_reg_done() 351 struct rtrs_clt_con *con = to_clt_con(wc->qp->qp_context); in rtrs_clt_inv_rkey_done() local 354 rtrs_err(con->c.path, "Failed IB_WR_LOCAL_INV: %s\n", in rtrs_clt_inv_rkey_done() 356 rtrs_rdma_error_recovery(con); in rtrs_clt_inv_rkey_done() 368 struct rtrs_clt_con *con = req->con; in rtrs_inv_rkey() local [all …]
|
D | rtrs-srv.c | 179 struct rtrs_srv_con *con = to_srv_con(wc->qp->qp_context); in rtrs_srv_reg_mr_done() local 180 struct rtrs_path *s = con->c.path; in rtrs_srv_reg_mr_done() 197 struct rtrs_path *s = id->con->c.path; in rdma_write_sg() 268 flags = (atomic_inc_return(&id->con->c.wr_cnt) % s->signal_interval) ? in rdma_write_sg() 320 err = ib_post_send(id->con->c.qp, &id->tx_wr.wr, NULL); in rdma_write_sg() 338 static int send_io_resp_imm(struct rtrs_srv_con *con, struct rtrs_srv_op *id, in send_io_resp_imm() argument 341 struct rtrs_path *s = con->c.path; in send_io_resp_imm() 396 flags = (atomic_inc_return(&con->c.wr_cnt) % s->signal_interval) ? in send_io_resp_imm() 438 err = ib_post_send(id->con->c.qp, wr, NULL); in send_io_resp_imm() 483 struct rtrs_srv_con *con; in rtrs_srv_resp_rdma() local [all …]
|
/linux-6.6.21/arch/arm/mach-s3c/ |
D | gpio-samsung.c | 73 u32 con; in samsung_gpio_setcfg_2bit() local 83 con = __raw_readl(reg); in samsung_gpio_setcfg_2bit() 84 con &= ~(0x3 << shift); in samsung_gpio_setcfg_2bit() 85 con |= cfg; in samsung_gpio_setcfg_2bit() 86 __raw_writel(con, reg); in samsung_gpio_setcfg_2bit() 104 u32 con; in samsung_gpio_getcfg_2bit() local 106 con = __raw_readl(chip->base); in samsung_gpio_getcfg_2bit() 107 con >>= off * 2; in samsung_gpio_getcfg_2bit() 108 con &= 3; in samsung_gpio_getcfg_2bit() 111 return S3C_GPIO_SPECIAL(con); in samsung_gpio_getcfg_2bit() [all …]
|
/linux-6.6.21/fs/proc/ |
D | consoles.c | 29 struct console *con = v; in show_console_dev() local 33 if (con->device) { in show_console_dev() 43 driver = con->device(con, &index); in show_console_dev() 53 flags[a] = (con->flags & con_flags[a].flag) ? in show_console_dev() 58 seq_printf(m, "%s%d", con->name, con->index); in show_console_dev() 60 seq_printf(m, "%c%c%c (%s)", con->read ? 'R' : '-', in show_console_dev() 61 con->write ? 'W' : '-', con->unblank ? 'U' : '-', in show_console_dev() 72 struct console *con; in c_start() local 81 for_each_console(con) in c_start() 85 return con; in c_start() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ras.c | 126 static bool amdgpu_ras_check_bad_page_unlock(struct amdgpu_ras *con, 641 struct amdgpu_ras *con = amdgpu_ras_get_context(adev); in amdgpu_ras_create_obj() local 644 if (!adev->ras_enabled || !con) in amdgpu_ras_create_obj() 654 obj = &con->objs[AMDGPU_RAS_BLOCK__LAST + head->sub_block_index]; in amdgpu_ras_create_obj() 656 obj = &con->objs[head->block]; in amdgpu_ras_create_obj() 664 list_add(&obj->node, &con->head); in amdgpu_ras_create_obj() 674 struct amdgpu_ras *con = amdgpu_ras_get_context(adev); in amdgpu_ras_find_obj() local 678 if (!adev->ras_enabled || !con) in amdgpu_ras_find_obj() 689 obj = &con->objs[AMDGPU_RAS_BLOCK__LAST + head->sub_block_index]; in amdgpu_ras_find_obj() 691 obj = &con->objs[head->block]; in amdgpu_ras_find_obj() [all …]
|
/linux-6.6.21/tools/perf/scripts/python/ |
D | event_analyzing_sample.py | 38 con = sqlite3.connect("/dev/shm/perf.db") variable 39 con.isolation_level = None 48 con.execute(""" 55 con.execute(""" 97 con.execute("insert into gen_events values(?, ?, ?, ?)", 102 con.execute("insert into pebs_ll values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", 111 con.close() 126 count = con.execute("select count(*) from gen_events") 135 …commq = con.execute("select comm, count(comm) from gen_events group by comm order by -count(comm)") 142 …symbolq = con.execute("select symbol, count(symbol) from gen_events group by symbol order by -coun… [all …]
|
/linux-6.6.21/drivers/media/pci/bt8xx/ |
D | bttv-audio-hook.c | 57 unsigned int con; in gvbctv3pci_audio() local 74 con = 0x000; in gvbctv3pci_audio() 77 con = 0x300; in gvbctv3pci_audio() 80 con = 0x200; in gvbctv3pci_audio() 83 gpio_bits(0x300, con); in gvbctv3pci_audio() 88 unsigned int val, con; in gvbctv5pci_audio() local 97 con = 0x300; in gvbctv5pci_audio() 100 con = 0x100; in gvbctv5pci_audio() 103 con = 0x000; in gvbctv5pci_audio() 106 if (con != (val & 0x300)) { in gvbctv5pci_audio() [all …]
|
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/ |
D | qed_nvmetcp.c | 256 if (hash_con->con->icid == handle) in qed_nvmetcp_get_hash() 260 if (!hash_con || hash_con->con->icid != handle) in qed_nvmetcp_get_hash() 620 &hash_con->con); in qed_nvmetcp_acquire_conn() 629 *handle = hash_con->con->icid; in qed_nvmetcp_acquire_conn() 630 *fw_cid = hash_con->con->fw_cid; in qed_nvmetcp_acquire_conn() 652 qed_nvmetcp_release_connection(QED_AFFIN_HWFN(cdev), hash_con->con); in qed_nvmetcp_release_conn() 662 struct qed_nvmetcp_conn *con; in qed_nvmetcp_offload_conn() local 673 con = hash_con->con; in qed_nvmetcp_offload_conn() 676 con->layer_code = NVMETCP_SLOW_PATH_LAYER_CODE; in qed_nvmetcp_offload_conn() 677 con->sq_pbl_addr = conn_info->sq_pbl_addr; in qed_nvmetcp_offload_conn() [all …]
|
D | qed_iscsi.c | 1030 struct qed_iscsi_conn *con; member 1069 if (hash_con->con->icid == handle) in qed_iscsi_get_hash() 1073 if (!hash_con || (hash_con->con->icid != handle)) in qed_iscsi_get_hash() 1168 &hash_con->con); in qed_iscsi_acquire_conn() 1176 *handle = hash_con->con->icid; in qed_iscsi_acquire_conn() 1177 *fw_cid = hash_con->con->fw_cid; in qed_iscsi_acquire_conn() 1199 qed_iscsi_release_connection(QED_AFFIN_HWFN(cdev), hash_con->con); in qed_iscsi_release_conn() 1210 struct qed_iscsi_conn *con; in qed_iscsi_offload_conn() local 1220 con = hash_con->con; in qed_iscsi_offload_conn() 1222 ether_addr_copy(con->local_mac, conn_info->src.mac); in qed_iscsi_offload_conn() [all …]
|
/linux-6.6.21/tools/perf/tests/shell/ |
D | lock_contention.sh | 54 if ! perf lock con -b true > /dev/null 2>&1 ; then 60 perf lock con -a -b -E 1 -q -- perf bench sched messaging > /dev/null 2> ${result} 90 if ! perf lock con -b true > /dev/null 2>&1 ; then 95 perf lock con -a -b -t -E 1 -q -- perf bench sched messaging > /dev/null 2> ${result} 113 if ! perf lock con -b true > /dev/null 2>&1 ; then 118 perf lock con -a -b -l -E 1 -q -- perf bench sched messaging > /dev/null 2> ${result} 136 if ! perf lock con -b true > /dev/null 2>&1 ; then 140 perf lock con -a -b -Y spinlock -q -- perf bench sched messaging > /dev/null 2> ${result} 168 if ! perf lock con -b true > /dev/null 2>&1 ; then 172 perf lock con -a -b -L tasklist_lock -q -- perf bench sched messaging > /dev/null 2> ${result} [all …]
|
/linux-6.6.21/drivers/tty/serial/ |
D | kgdboc.c | 48 static int (*earlycon_orig_exit)(struct console *con); 462 struct console *con; in kgdboc_earlycon_pre_exp_handler() local 478 for_each_console_srcu(con) { in kgdboc_earlycon_pre_exp_handler() 479 if (con == kgdboc_earlycon_io_ops.cons) in kgdboc_earlycon_pre_exp_handler() 483 if (con) in kgdboc_earlycon_pre_exp_handler() 490 static int kgdboc_earlycon_deferred_exit(struct console *con) in kgdboc_earlycon_deferred_exit() argument 499 con->exit = earlycon_orig_exit; in kgdboc_earlycon_deferred_exit() 541 struct console *con; in kgdboc_earlycon_init() local 558 for_each_console(con) { in kgdboc_earlycon_init() 559 if (con->write && con->read && in kgdboc_earlycon_init() [all …]
|
/linux-6.6.21/include/linux/ |
D | console.h | 250 static inline short console_srcu_read_flags(const struct console *con) in console_srcu_read_flags() argument 260 return data_race(READ_ONCE(con->flags)); in console_srcu_read_flags() 273 static inline void console_srcu_write_flags(struct console *con, short flags) in console_srcu_write_flags() argument 278 WRITE_ONCE(con->flags, flags); in console_srcu_write_flags() 282 static inline bool console_is_registered_locked(const struct console *con) in console_is_registered_locked() argument 285 return !hlist_unhashed(&con->node); in console_is_registered_locked() 299 static inline bool console_is_registered(const struct console *con) in console_is_registered() argument 304 ret = console_is_registered_locked(con); in console_is_registered() 319 #define for_each_console_srcu(con) \ argument 320 hlist_for_each_entry_srcu(con, &console_list, node, \ [all …]
|
/linux-6.6.21/drivers/usb/typec/ |
D | port-mapper.c | 55 int typec_link_ports(struct typec_port *con) in typec_link_ports() argument 57 struct each_port_arg arg = { .port = con, .match = NULL }; in typec_link_ports() 59 if (!has_acpi_companion(&con->dev)) in typec_link_ports() 77 return component_master_add_with_match(&con->dev, &typec_aggregate_ops, arg.match); in typec_link_ports() 80 void typec_unlink_ports(struct typec_port *con) in typec_unlink_ports() argument 82 if (has_acpi_companion(&con->dev)) in typec_unlink_ports() 83 component_master_del(&con->dev, &typec_aggregate_ops); in typec_unlink_ports()
|
/linux-6.6.21/sound/soc/samsung/ |
D | spdif.c | 184 u32 con, clkcon, cstas; in spdif_hw_params() local 201 con = readl(regs + CON) & CON_MASK; in spdif_hw_params() 205 con &= ~CON_FIFO_TH_MASK; in spdif_hw_params() 206 con |= (0x7 << CON_FIFO_TH_SHIFT); in spdif_hw_params() 207 con |= CON_USERDATA_23RDBIT; in spdif_hw_params() 208 con |= CON_PCM_DATA; in spdif_hw_params() 210 con &= ~CON_PCM_MASK; in spdif_hw_params() 213 con |= CON_PCM_16BIT; in spdif_hw_params() 230 con &= ~CON_MCLKDIV_MASK; in spdif_hw_params() 233 con |= CON_MCLKDIV_256FS; in spdif_hw_params() [all …]
|