| /linux/net/ceph/ |
| H A 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 …]
|
| H A D | messenger_v2.c | 108 static int ceph_tcp_recv(struct ceph_connection *con) in ceph_tcp_recv() argument 112 dout("%s con %p %s %zu\n", __func__, con, in ceph_tcp_recv() 113 iov_iter_is_discard(&con->v2.in_iter) ? "discard" : "need", in ceph_tcp_recv() 114 iov_iter_count(&con->v2.in_iter)); in ceph_tcp_recv() 115 ret = do_recvmsg(con->sock, &con->v2.in_iter); in ceph_tcp_recv() 116 dout("%s con %p ret %d left %zu\n", __func__, con, ret, in ceph_tcp_recv() 117 iov_iter_count(&con->v2.in_iter)); in ceph_tcp_recv() 195 static int ceph_tcp_send(struct ceph_connection *con) in ceph_tcp_send() argument 199 dout("%s con %p have %zu try_sendpage %d\n", __func__, con, in ceph_tcp_send() 200 iov_iter_count(&con->v2.out_iter), con->v2.out_iter_sendpage); in ceph_tcp_send() [all …]
|
| H A 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/drivers/usb/typec/ucsi/ |
| H A D | ucsi.c | 264 struct ucsi_connector *con; member 271 struct ucsi_connector *con = uwork->con; in ucsi_poll_worker() local 274 mutex_lock(&con->lock); in ucsi_poll_worker() 276 if (!con->partner) { in ucsi_poll_worker() 278 mutex_unlock(&con->lock); in ucsi_poll_worker() 283 ret = uwork->cb(con); in ucsi_poll_worker() 286 queue_delayed_work(con->wq, &uwork->work, uwork->delay); in ucsi_poll_worker() 292 mutex_unlock(&con->lock); in ucsi_poll_worker() 295 static int ucsi_partner_task(struct ucsi_connector *con, in ucsi_partner_task() argument 301 if (!con->partner) in ucsi_partner_task() [all …]
|
| H A D | displayport.c | 20 struct ucsi_connector *con; member 51 struct ucsi *ucsi = dp->con->ucsi; in ucsi_displayport_enter() 57 if (!ucsi_con_mutex_lock(dp->con)) in ucsi_displayport_enter() 69 command = UCSI_GET_CURRENT_CAM | UCSI_CONNECTOR_NUMBER(dp->con->num); in ucsi_displayport_enter() 78 ret = dp->con->port_altmode[cur] == alt ? 0 : -EBUSY; in ucsi_displayport_enter() 104 ucsi_con_mutex_unlock(dp->con); in ucsi_displayport_enter() 116 if (!ucsi_con_mutex_lock(dp->con)) in ucsi_displayport_exit() 128 command = UCSI_CMD_SET_NEW_CAM(dp->con->num, 0, dp->offset, 0); in ucsi_displayport_exit() 129 ret = ucsi_send_command(dp->con->ucsi, command, NULL, 0); in ucsi_displayport_exit() 149 ucsi_con_mutex_unlock(dp->con); in ucsi_displayport_exit() [all …]
|
| H A D | trace.h | 42 TP_PROTO(int port, struct ucsi_connector *con), 43 TP_ARGS(port, con), 57 __entry->change = UCSI_CONSTAT(con, CHANGE); 58 __entry->opmode = UCSI_CONSTAT(con, PWR_OPMODE); 59 __entry->connected = UCSI_CONSTAT(con, CONNECTED); 60 __entry->pwr_dir = UCSI_CONSTAT(con, PWR_DIR); 61 __entry->partner_flags = UCSI_CONSTAT(con, PARTNER_FLAGS); 62 __entry->partner_type = UCSI_CONSTAT(con, PARTNER_TYPE); 63 __entry->request_data_obj = UCSI_CONSTAT(con, RDO); 64 __entry->bc_status = UCSI_CONSTAT(con, BC_STATUS); [all …]
|
| /linux/net/tipc/ |
| H A 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/fs/dlm/ |
| H A D | lowcomms.c | 134 struct connection *con; member 215 static void lowcomms_queue_swork(struct connection *con) in lowcomms_queue_swork() argument 217 assert_spin_locked(&con->writequeue_lock); in lowcomms_queue_swork() 219 if (!test_bit(CF_IO_STOP, &con->flags) && in lowcomms_queue_swork() 220 !test_bit(CF_APP_LIMITED, &con->flags) && in lowcomms_queue_swork() 221 !test_and_set_bit(CF_SEND_PENDING, &con->flags)) in lowcomms_queue_swork() 222 queue_work(io_workqueue, &con->swork); in lowcomms_queue_swork() 225 static void lowcomms_queue_rwork(struct connection *con) in lowcomms_queue_rwork() argument 228 WARN_ON_ONCE(!lockdep_sock_is_held(con->sock->sk)); in lowcomms_queue_rwork() 231 if (!test_bit(CF_IO_STOP, &con->flags) && in lowcomms_queue_rwork() [all …]
|
| /linux/kernel/printk/ |
| H A D | nbcon.c | 133 static inline void nbcon_state_set(struct console *con, struct nbcon_state *new) in nbcon_state_set() argument 135 atomic_set(&ACCESS_PRIVATE(con, nbcon_state), new->atom); in nbcon_state_set() 143 static inline void nbcon_state_read(struct console *con, struct nbcon_state *state) in nbcon_state_read() argument 145 state->atom = atomic_read(&ACCESS_PRIVATE(con, nbcon_state)); in nbcon_state_read() 156 static inline bool nbcon_state_try_cmpxchg(struct console *con, struct nbcon_state *cur, in nbcon_state_try_cmpxchg() argument 159 return atomic_try_cmpxchg(&ACCESS_PRIVATE(con, nbcon_state), &cur->atom, new->atom); in nbcon_state_try_cmpxchg() 168 u64 nbcon_seq_read(struct console *con) in nbcon_seq_read() argument 170 unsigned long nbcon_seq = atomic_long_read(&ACCESS_PRIVATE(con, nbcon_seq)); in nbcon_seq_read() 183 void nbcon_seq_force(struct console *con, u64 seq) in nbcon_seq_force() argument 193 atomic_long_set(&ACCESS_PRIVATE(con, nbcon_seq), __u64seq_to_ulseq(valid_seq)); in nbcon_seq_force() [all …]
|
| H A D | internal.h | 17 #define con_printk(lvl, con, fmt, ...) \ argument 19 (con->flags & CON_NBCON) ? "" : "legacy ", \ 20 (con->flags & CON_BOOT) ? "boot" : "", \ 21 con->name, con->index, ##__VA_ARGS__) 102 u64 nbcon_seq_read(struct console *con); 103 void nbcon_seq_force(struct console *con, u64 seq); 104 bool nbcon_alloc(struct console *con); 105 void nbcon_free(struct console *con); 108 bool nbcon_legacy_emit_next_record(struct console *con, bool *handover, 110 bool nbcon_kthread_create(struct console *con); [all …]
|
| /linux/tools/perf/util/ |
| H A D | bpf_lock_contention.c | 37 static void check_slab_cache_iter(struct lock_contention *con) in check_slab_cache_iter() argument 43 con->btf = btf__load_vmlinux_btf(); in check_slab_cache_iter() 44 if (con->btf == NULL) { in check_slab_cache_iter() 49 ret = btf__find_by_name_kind(con->btf, "bpf_iter__kmem_cache", BTF_KIND_STRUCT); in check_slab_cache_iter() 58 bpf_map__set_max_entries(skel->maps.slab_caches, con->map_nr_entries); in check_slab_cache_iter() 111 static void init_numa_data(struct lock_contention *con) in init_numa_data() argument 120 if (!con->btf) in init_numa_data() 128 ret = btf__find_by_name_kind(con->btf, "zone", BTF_KIND_STRUCT); in init_numa_data() 134 ret = btf__resolve_size(con->btf, ret); in init_numa_data() 142 sym = machine__find_kernel_symbol_by_name(con->machine, in init_numa_data() [all …]
|
| /linux/include/linux/ceph/ |
| H A D | messenger.h | 31 void (*dispatch) (struct ceph_connection *con, struct ceph_msg *m); 35 struct ceph_connection *con, 37 int (*add_authorizer_challenge)(struct ceph_connection *con, 40 int (*verify_authorizer_reply) (struct ceph_connection *con); 41 int (*invalidate_authorizer)(struct ceph_connection *con); 44 void (*fault) (struct ceph_connection *con); 48 void (*peer_reset) (struct ceph_connection *con); 50 struct ceph_msg * (*alloc_msg) (struct ceph_connection *con, 60 int (*get_auth_request)(struct ceph_connection *con, 63 int (*handle_auth_reply_more)(struct ceph_connection *con, [all …]
|
| /linux/drivers/infiniband/ulp/rtrs/ |
| H A 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 …]
|
| /linux/arch/arm/mach-s3c/ |
| H A 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/fs/proc/ |
| H A D | consoles.c | 30 struct console *con = v; in show_console_dev() local 34 if (con->device) { in show_console_dev() 44 driver = con->device(con, &index); in show_console_dev() 54 flags[a] = (con->flags & con_flags[a].flag) ? in show_console_dev() 59 seq_printf(m, "%s%d", con->name, con->index); in show_console_dev() 61 seq_printf(m, "%c%c%c (%s)", con->read ? 'R' : '-', in show_console_dev() 62 ((con->flags & CON_NBCON) || con->write) ? 'W' : '-', in show_console_dev() 63 con->unblank ? 'U' : '-', flags); in show_console_dev() 74 struct console *con; in c_start() local 83 for_each_console(con) in c_start() [all …]
|
| /linux/tools/perf/scripts/python/ |
| H A 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/drivers/media/pci/bt8xx/ |
| H A 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/drivers/net/ethernet/qlogic/qed/ |
| H A 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 …]
|
| H A 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/tools/perf/tests/shell/ |
| H A D | lock_contention.sh | 67 if ! perf lock con -b true > /dev/null 2>&1 ; then 73 perf lock con -a -b -E 1 -q -- perf bench sched messaging -p > /dev/null 2> ${result} 105 if ! perf lock con -b true > /dev/null 2>&1 ; then 110 perf lock con -a -b -t -E 1 -q -- perf bench sched messaging -p > /dev/null 2> ${result} 128 if ! perf lock con -b true > /dev/null 2>&1 ; then 133 perf lock con -a -b -l -E 1 -q -- perf bench sched messaging -p > /dev/null 2> ${result} 145 if ! perf lock con -b true > /dev/null 2>&1 ; then 151 perf lock con -a -b --lock-cgroup -E 1 -q -- perf bench sched messaging -p > /dev/null 2> ${result} 169 if ! perf lock con -b true > /dev/null 2>&1 ; then 173 perf lock con -a -b -Y spinlock -q -- perf bench sched messaging -p > /dev/null 2> ${result} [all …]
|
| /linux/drivers/usb/typec/ |
| H A D | port-mapper.c | 20 return component_bind_all(dev, &port->con); in typec_aggregate_bind() 27 component_unbind_all(dev, &port->con); in typec_aggregate_unbind() 79 int typec_link_ports(struct typec_port *con) in typec_link_ports() argument 81 struct each_port_arg arg = { .port = con, .match = NULL }; in typec_link_ports() 83 if (!has_acpi_companion(&con->dev)) in typec_link_ports() 101 return component_master_add_with_match(&con->dev, &typec_aggregate_ops, arg.match); in typec_link_ports() 104 void typec_unlink_ports(struct typec_port *con) in typec_unlink_ports() argument 106 if (has_acpi_companion(&con->dev)) in typec_unlink_ports() 107 component_master_del(&con->dev, &typec_aggregate_ops); in typec_unlink_ports()
|
| /linux/drivers/gpu/drm/clients/ |
| H A D | drm_log.c | 57 struct console con; member 68 static struct drm_log *console_to_drm_log(struct console *con) in console_to_drm_log() argument 70 return container_of(con, struct drm_log, con); in console_to_drm_log() 310 unregister_console(&dlog->con); in drm_log_client_unregister() 345 console_suspend(&dlog->con); in drm_log_client_suspend() 354 console_resume(&dlog->con); in drm_log_client_resume() 369 static void drm_log_write_thread(struct console *con, struct nbcon_write_context *wctxt) in drm_log_write_thread() argument 371 struct drm_log *dlog = console_to_drm_log(con); in drm_log_write_thread() 386 static void drm_log_lock(struct console *con, unsigned long *flags) in drm_log_lock() argument 388 struct drm_log *dlog = console_to_drm_log(con); in drm_log_lock() [all …]
|
| /linux/drivers/tty/serial/ |
| H A D | kgdboc.c | 49 static int (*earlycon_orig_exit)(struct console *con); 482 struct console *con; in kgdboc_earlycon_pre_exp_handler() local 498 for_each_console_srcu(con) { in kgdboc_earlycon_pre_exp_handler() 499 if (con == kgdboc_earlycon_io_ops.cons) in kgdboc_earlycon_pre_exp_handler() 503 if (con) in kgdboc_earlycon_pre_exp_handler() 510 static int kgdboc_earlycon_deferred_exit(struct console *con) in kgdboc_earlycon_deferred_exit() argument 519 con->exit = earlycon_orig_exit; in kgdboc_earlycon_deferred_exit() 561 struct console *con; in kgdboc_earlycon_init() local 578 for_each_console(con) { in kgdboc_earlycon_init() 579 if (con->write && con->read && in kgdboc_earlycon_init() [all …]
|
| /linux/sound/soc/samsung/ |
| H A D | spdif.c | 74 * @saved_con: Backup con reg. in suspend. 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 in spdif_hw_params() 285 u32 con, clkcon; spdif_shutdown() local 302 u32 con = spdif->saved_con; spdif_suspend() local [all...] |
| /linux/arch/um/kernel/ |
| H A D | kmsg_dump.c | 16 struct console *con; in kmsg_dumper_stdout() local 27 for_each_console_srcu(con) { in kmsg_dumper_stdout() 33 if (strcmp(con->name, "ttynull") != 0 && in kmsg_dumper_stdout() 34 console_is_usable(con, console_srcu_read_flags(con), true)) { in kmsg_dumper_stdout() 39 if (con) in kmsg_dumper_stdout()
|