/linux-master/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | devlink_linecard.sh | 39 local lc=$1 41 devlink lc show $DEVLINK_DEV lc $lc -j | jq -e -r ".[][][].state" 46 local lc=$1 50 busywait "$timeout" until_lc_state_is_not "$state" lc_state_get "$lc" 55 local lc=$1 59 busywait "$timeout" until_lc_state_is "$state" lc_state_get "$lc" 73 local lc=$1 75 devlink port -j | jq -e -r ".[][] | select(.lc [all...] |
/linux-master/lib/ |
H A D | lru_cache.c | 29 BUG_ON(!lc); \ 30 BUG_ON(!lc->nr_elements); \ 31 BUG_ON(test_and_set_bit(__LC_PARANOIA, &lc->flags)); \ 35 clear_bit_unlock(__LC_PARANOIA, &lc->flags); \ 38 /* BUG() if e is not one of the elements tracked by lc */ 39 #define PARANOIA_LC_ELEMENT(lc, e) do { \ 40 struct lru_cache *lc_ = (lc); \ 51 * Because of PARANOIA_ENTRY() above abusing lc->flags as well, 53 * return 0 == cmpxchg(&lc->flags, 0, LC_LOCKED); 55 int lc_try_lock(struct lru_cache *lc) argument 83 struct lru_cache *lc; local 150 lc_free_by_index(struct lru_cache *lc, unsigned i) argument 164 lc_destroy(struct lru_cache *lc) argument 183 lc_reset(struct lru_cache *lc) argument 219 lc_seq_printf_stats(struct seq_file *seq, struct lru_cache *lc) argument 233 lc_hash_slot(struct lru_cache *lc, unsigned int enr) argument 239 __lc_find(struct lru_cache *lc, unsigned int enr, bool include_changing) argument 270 lc_find(struct lru_cache *lc, unsigned int enr) argument 285 lc_is_used(struct lru_cache *lc, unsigned int enr) argument 299 lc_del(struct lru_cache *lc, struct lc_element *e) argument 311 lc_prepare_for_change(struct lru_cache *lc, unsigned new_number) argument 335 lc_unused_element_available(struct lru_cache *lc) argument 351 __lc_get(struct lru_cache *lc, unsigned int enr, unsigned int flags) argument 470 lc_get(struct lru_cache *lc, unsigned int enr) argument 490 lc_get_cumulative(struct lru_cache *lc, unsigned int enr) argument 511 lc_try_get(struct lru_cache *lc, unsigned int enr) argument 524 lc_committed(struct lru_cache *lc) argument 549 lc_put(struct lru_cache *lc, struct lc_element *e) argument 569 lc_element_by_index(struct lru_cache *lc, unsigned i) argument 586 lc_seq_dump_details(struct seq_file *seq, struct lru_cache *lc, char *utext, void (*detail) (struct seq_file *, struct lc_element *)) argument [all...] |
/linux-master/drivers/md/ |
H A D | dm-log.c | 299 static int rw_header(struct log_c *lc, enum req_op op) argument 301 lc->io_req.bi_opf = op; 303 return dm_io(&lc->io_req, 1, &lc->header_location, NULL, IOPRIO_DEFAULT); 306 static int flush_header(struct log_c *lc) argument 309 .bdev = lc->header_location.bdev, 314 lc->io_req.bi_opf = REQ_OP_WRITE | REQ_PREFLUSH; 316 return dm_io(&lc->io_req, 1, &null_location, NULL, IOPRIO_DEFAULT); 374 struct log_c *lc; local 405 lc 524 destroy_log_context(struct log_c *lc) argument 533 struct log_c *lc = log->context; local 572 struct log_c *lc = log->context; local 580 fail_log_device(struct log_c *lc) argument 593 struct log_c *lc = log->context; local 655 struct log_c *lc = log->context; local 662 struct log_c *lc = log->context; local 670 struct log_c *lc = log->context; local 677 struct log_c *lc = log->context; local 691 struct log_c *lc = log->context; local 730 struct log_c *lc = log->context; local 737 struct log_c *lc = log->context; local 745 struct log_c *lc = log->context; local 768 struct log_c *lc = log->context; local 782 struct log_c *lc = log->context; local 797 struct log_c *lc = log->context; local 822 struct log_c *lc = log->context; local [all...] |
H A D | dm-log-userspace-base.c | 85 static int userspace_do_request(struct log_c *lc, const char *uuid, argument 97 r = dm_consult_userspace(uuid, lc->luid, request_type, data, 108 r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_CTR, 109 lc->usr_argv_str, 110 strlen(lc->usr_argv_str) + 1, 116 r = dm_consult_userspace(uuid, lc->luid, DM_ULOG_RESUME, NULL, 160 struct log_c *lc = container_of(work, struct log_c, flush_log_work.work); local 162 atomic_set(&lc->sched_flush, 0); 164 r = userspace_do_request(lc, lc 197 struct log_c *lc = NULL; local 329 struct log_c *lc = log->context; local 354 struct log_c *lc = log->context; local 365 struct log_c *lc = log->context; local 382 struct log_c *lc = log->context; local 393 struct log_c *lc = log->context; local 412 struct log_c *lc = log->context; local 440 struct log_c *lc = log->context; local 465 flush_one_by_one(struct log_c *lc, struct list_head *flush_list) argument 482 flush_by_group(struct log_c *lc, struct list_head *flush_list, int flush_with_payload) argument 565 struct log_c *lc = log->context; local 650 struct log_c *lc = log->context; local 677 struct log_c *lc = log->context; local 711 struct log_c *lc = log->context; local 737 struct log_c *lc = log->context; local 768 struct log_c *lc = log->context; local 794 struct log_c *lc = log->context; local 834 struct log_c *lc = log->context; local [all...] |
H A D | dm-log-writes.c | 138 static inline sector_t bio_to_dev_sectors(struct log_writes_c *lc, argument 141 return sectors >> (lc->sectorshift - SECTOR_SHIFT); 144 static inline sector_t dev_to_bio_sectors(struct log_writes_c *lc, argument 147 return sectors << (lc->sectorshift - SECTOR_SHIFT); 150 static void put_pending_block(struct log_writes_c *lc) argument 152 if (atomic_dec_and_test(&lc->pending_blocks)) { 154 if (waitqueue_active(&lc->wait)) 155 wake_up(&lc->wait); 159 static void put_io_block(struct log_writes_c *lc) argument 161 if (atomic_dec_and_test(&lc 170 struct log_writes_c *lc = bio->bi_private; local 188 struct log_writes_c *lc = bio->bi_private; local 198 free_pending_block(struct log_writes_c *lc, struct pending_block *block) argument 212 write_metadata(struct log_writes_c *lc, void *entry, size_t entrylen, void *data, size_t datalen, sector_t sector) argument 258 write_inline_data(struct log_writes_c *lc, void *entry, size_t entrylen, void *data, size_t datalen, sector_t sector) argument 318 log_one_block(struct log_writes_c *lc, struct pending_block *block, sector_t sector) argument 401 log_super(struct log_writes_c *lc) argument 425 logdev_last_sector(struct log_writes_c *lc) argument 432 struct log_writes_c *lc = arg; local 508 struct log_writes_c *lc; local 584 log_mark(struct log_writes_c *lc, char *data) argument 613 struct log_writes_c *lc = ti->private; local 638 struct log_writes_c *lc = ti->private; local 645 struct log_writes_c *lc = ti->private; local 769 struct log_writes_c *lc = ti->private; local 800 struct log_writes_c *lc = ti->private; local 823 struct log_writes_c *lc = ti->private; local 839 struct log_writes_c *lc = ti->private; local 852 struct log_writes_c *lc = ti->private; local 869 struct log_writes_c *lc = ti->private; local 886 struct log_writes_c *lc = ti->private; local [all...] |
H A D | dm-linear.c | 32 struct linear_c *lc; local 42 lc = kmalloc(sizeof(*lc), GFP_KERNEL); 43 if (lc == NULL) { 53 lc->start = tmp; 55 ret = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &lc->dev); 65 ti->private = lc; 69 kfree(lc); 75 struct linear_c *lc = ti->private; local 77 dm_put_device(ti, lc 83 struct linear_c *lc = ti->private; local 90 struct linear_c *lc = ti->private; local 101 struct linear_c *lc = ti->private; local 123 struct linear_c *lc = ti->private; local 140 struct linear_c *lc = ti->private; local 153 struct linear_c *lc = ti->private; local 161 struct linear_c *lc = ti->private; local [all...] |
/linux-master/include/linux/ |
H A D | lru_cache.h | 241 extern void lc_reset(struct lru_cache *lc); 242 extern void lc_destroy(struct lru_cache *lc); 243 extern void lc_del(struct lru_cache *lc, struct lc_element *element); 245 extern struct lc_element *lc_get_cumulative(struct lru_cache *lc, unsigned int enr); 246 extern struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr); 247 extern struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr); 248 extern struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr); 249 extern unsigned int lc_put(struct lru_cache *lc, struct lc_element *e); 250 extern void lc_committed(struct lru_cache *lc); 253 extern void lc_seq_printf_stats(struct seq_file *seq, struct lru_cache *lc); 266 lc_try_lock_for_transaction(struct lru_cache *lc) argument 286 lc_unlock(struct lru_cache *lc) argument [all...] |
/linux-master/net/rds/ |
H A D | loop.c | 137 struct rds_loop_connection *lc; local 140 lc = kzalloc(sizeof(struct rds_loop_connection), gfp); 141 if (!lc) 144 INIT_LIST_HEAD(&lc->loop_node); 145 lc->conn = conn; 146 conn->c_transport_data = lc; 149 list_add_tail(&lc->loop_node, &loop_conns); 157 struct rds_loop_connection *lc = arg; local 160 rdsdebug("lc %p\n", lc); 179 struct rds_loop_connection *lc, *_lc; local 198 struct rds_loop_connection *lc, *_lc; local [all...] |
/linux-master/arch/s390/include/asm/ |
H A D | abs_lowcore.h | 11 int abs_lowcore_map(int cpu, struct lowcore *lc, bool alloc); 22 static inline void put_abs_lowcore(struct lowcore *lc) argument
|
/linux-master/arch/s390/kernel/ |
H A D | smp.c | 198 struct lowcore *lc; local 200 lc = (struct lowcore *) __get_free_pages(GFP_KERNEL | GFP_DMA, LC_ORDER); 204 if (!lc || !nodat_stack || !async_stack || !mcck_stack) 206 memcpy(lc, &S390_lowcore, 512); 207 memset((char *) lc + 512, 0, sizeof(*lc) - 512); 208 lc->async_stack = async_stack + STACK_INIT_OFFSET; 209 lc->nodat_stack = nodat_stack + STACK_INIT_OFFSET; 210 lc->mcck_stack = mcck_stack + STACK_INIT_OFFSET; 211 lc 238 struct lowcore *lc; local 258 struct lowcore *lc, *abs_lc; local 284 struct lowcore *lc; local 303 struct lowcore *lc; local 329 struct lowcore *lc, *abs_lc; local 407 struct lowcore *lc = lowcore_ptr[0]; local 576 struct lowcore *lc; local [all...] |
H A D | setup.c | 398 struct lowcore *lc, *abs_lc; local 404 lc = memblock_alloc_low(sizeof(*lc), sizeof(*lc)); 405 if (!lc) 407 __func__, sizeof(*lc), sizeof(*lc)); 409 lc->restart_psw.mask = PSW_KERNEL_BITS & ~PSW_MASK_DAT; 410 lc->restart_psw.addr = __pa(restart_int_handler); 411 lc [all...] |
H A D | abs_lowcore.c | 8 int abs_lowcore_map(int cpu, struct lowcore *lc, bool alloc) argument 11 unsigned long phys = __pa(lc);
|
/linux-master/fs/affs/ |
H A D | symlink.c | 22 char lc; local 32 lc = 0; 47 lc = '/'; 50 if (c == '/' && lc == '/' && i < 1020) { /* parent dir */ 55 lc = c;
|
/linux-master/tools/testing/selftests/powerpc/papr_vpd/ |
H A D | papr_vpd.c | 32 struct papr_location_code lc = { .str = "", }; local 42 fd = ioctl(devfd, PAPR_VPD_IOC_CREATE_HANDLE, &lc); 71 struct papr_location_code lc = { .str = "", }; local 80 fd = ioctl(devfd, PAPR_VPD_IOC_CREATE_HANDLE, &lc); 112 struct papr_location_code lc = {}; local 124 memset(lc.str, 'x', ARRAY_SIZE(lc.str)); 127 fd = ioctl(devfd, PAPR_VPD_IOC_CREATE_HANDLE, &lc); 157 struct papr_location_code lc = { .str = "", }; local 166 fd = ioctl(devfd, PAPR_VPD_IOC_CREATE_HANDLE, &lc); 180 struct papr_location_code lc = { .str = "", }; local 214 get_system_loc_code(struct papr_location_code *lc) argument 261 struct papr_location_code lc; local [all...] |
/linux-master/drivers/accessibility/speakup/ |
H A D | genmap.c | 75 lc++; 130 for (lc = 1; lc <= max_key_used; lc++) { 131 kp = key_data[lc]; 151 for (lc = 1; lc <= max_key_used; lc++) { 152 kp = key_data[lc]; 155 printf("\n\t%d,", lc); [all...] |
H A D | utils.h | 28 int lc; variable 43 lc = 0; 50 fprintf(stderr, "error: file %s line %d\n", filename, lc);
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | setget_sockopt.c | 142 static int bpf_test_socket_sockopt(__u32 i, struct loop_ctx *lc) argument 154 return bpf_test_sockopt_flip(lc->ctx, lc->sk, t, SOL_SOCKET); 156 return bpf_test_sockopt_int(lc->ctx, lc->sk, t, SOL_SOCKET); 159 static int bpf_test_ip_sockopt(__u32 i, struct loop_ctx *lc) argument 171 return bpf_test_sockopt_flip(lc->ctx, lc->sk, t, IPPROTO_IP); 173 return bpf_test_sockopt_int(lc->ctx, lc 176 bpf_test_ipv6_sockopt(__u32 i, struct loop_ctx *lc) argument 193 bpf_test_tcp_sockopt(__u32 i, struct loop_ctx *lc) argument 246 struct loop_ctx lc = { .ctx = ctx, .sk = sk, }; local [all...] |
/linux-master/drivers/platform/mellanox/ |
H A D | Makefile | 11 obj-$(CONFIG_MLXREG_LC) += mlxreg-lc.o
|
/linux-master/drivers/net/ethernet/chelsio/cxgb/ |
H A D | subr.c | 145 struct link_config *lc = &adapter->port[port_id].link_config; local 149 lc->speed = speed < 0 ? SPEED_INVALID : speed; 150 lc->duplex = duplex < 0 ? DUPLEX_INVALID : duplex; 151 if (!(lc->requested_fc & PAUSE_AUTONEG)) 152 fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); 154 if (link_ok && speed >= 0 && lc->autoneg == AUTONEG_ENABLE) { 159 lc->fc = (unsigned char)fc; 626 int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc) argument 628 unsigned int fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); 630 if (lc 1047 init_link_config(struct link_config *lc, const struct board_info *bi) argument [all...] |
/linux-master/fs/ocfs2/ |
H A D | stack_user.c | 803 struct ocfs2_live_connection *lc = conn->cc_private; local 804 complete(&lc->oc_sync_wait); 811 struct ocfs2_live_connection *lc = conn->cc_private; local 820 wait_for_completion(&lc->oc_sync_wait); 835 struct ocfs2_live_connection *lc = conn->cc_private; local 846 wait_for_completion(&lc->oc_sync_wait); 862 struct ocfs2_live_connection *lc = conn->cc_private; local 864 &lc->oc_version_lksb, VERSION_LOCK); 869 struct ocfs2_live_connection *lc = conn->cc_private; local 870 return sync_unlock(conn, &lc 887 struct ocfs2_live_connection *lc = conn->cc_private; local 940 struct ocfs2_live_connection *lc = conn->cc_private; local 972 struct ocfs2_live_connection *lc; local 1052 struct ocfs2_live_connection *lc = conn->cc_private; local [all...] |
/linux-master/arch/powerpc/kernel/ |
H A D | io.c | 126 u32 lc = c; local 127 lc |= lc << 8; 128 lc |= lc << 16; 137 *((volatile u32 *)p) = lc;
|
/linux-master/arch/s390/mm/ |
H A D | maccess.c | 132 phys_addr_t lc; local 136 lc = virt_to_phys(lowcore_ptr[cpu]); 137 if (addr > lc + sizeof(struct lowcore) - 1 || addr < lc)
|
/linux-master/drivers/thunderbolt/ |
H A D | Makefile | 5 thunderbolt-objs += domain.o dma_port.o icm.o property.o xdomain.o lc.o tmu.o usb4.o
|
/linux-master/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | t4vf_hw.c | 449 * @lc: structure holding the link state 456 static void init_link_config(struct link_config *lc, argument 460 lc->pcaps = pcaps; 461 lc->lpacaps = 0; 462 lc->speed_caps = 0; 463 lc->speed = 0; 464 lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX; 469 lc->auto_fec = fwcap_to_cc_fec(acaps); 470 lc 1917 struct link_config *lc = &pi->link_cfg; local [all...] |
/linux-master/drivers/usb/serial/ |
H A D | xr_serial.c | 756 struct usb_cdc_line_coding *lc; local 759 lc = kzalloc(sizeof(*lc), GFP_KERNEL); 760 if (!lc) 764 lc->dwDTERate = cpu_to_le32(tty->termios.c_ospeed); 766 lc->dwDTERate = cpu_to_le32(9600); 769 lc->bCharFormat = USB_CDC_2_STOP_BITS; 771 lc->bCharFormat = USB_CDC_1_STOP_BITS; 776 lc->bParityType = USB_CDC_MARK_PARITY; 778 lc [all...] |