Searched refs:cmd_head (Results 1 – 10 of 10) sorted by relevance
/linux-4.1.27/drivers/target/ |
D | target_core_user.c | 237 u32 cmd_head; in is_ring_space_avail() local 242 cmd_head = mb->cmd_head % udev->cmdr_size; /* UAM */ in is_ring_space_avail() 248 if (head_to_end(cmd_head, udev->cmdr_size) >= cmd_size) in is_ring_space_avail() 251 cmd_needed = cmd_size + head_to_end(cmd_head, udev->cmdr_size); in is_ring_space_avail() 253 space = spc_free(cmd_head, udev->cmdr_last_cleaned, udev->cmdr_size); in is_ring_space_avail() 255 pr_debug("no cmd space: %u %u %u\n", cmd_head, in is_ring_space_avail() 281 uint32_t cmd_head; in tcmu_queue_cmd_ring() local 305 cmd_head = mb->cmd_head % udev->cmdr_size; /* UAM */ in tcmu_queue_cmd_ring() 330 cmd_head = mb->cmd_head % udev->cmdr_size; /* UAM */ in tcmu_queue_cmd_ring() 334 if (head_to_end(cmd_head, udev->cmdr_size) < command_size) { in tcmu_queue_cmd_ring() [all …]
|
/linux-4.1.27/drivers/net/ethernet/i825xx/ |
D | lib82596.c | 321 struct i596_cmd *cmd_head; member 424 cmd = lp->cmd_head; in i596_display_data() 573 lp->cmd_head = NULL; in init_i596_mem() 801 while (lp->cmd_head != NULL) { in i596_cleanup_cmd() 802 ptr = lp->cmd_head; in i596_cleanup_cmd() 803 lp->cmd_head = ptr->v_next; in i596_cleanup_cmd() 874 lp->cmd_head)); in i596_add_cmd() 884 if (lp->cmd_head != NULL) { in i596_add_cmd() 889 lp->cmd_head = cmd; in i596_add_cmd() 1156 while (lp->cmd_head != NULL) { in i596_interrupt() [all …]
|
D | 82596.c | 329 struct i596_cmd *cmd_head; member 475 cmd = lp->cmd_head; in i596_display_data() 669 lp->cmd_head = lp->scb.cmd = I596_NULL; in init_i596_mem() 880 while (lp->cmd_head != I596_NULL) { in i596_cleanup_cmd() 881 ptr = lp->cmd_head; in i596_cleanup_cmd() 882 lp->cmd_head = ptr->v_next; in i596_cleanup_cmd() 950 if (lp->cmd_head != I596_NULL) { in i596_add_cmd() 954 lp->cmd_head = cmd; in i596_add_cmd() 1283 while ((lp->cmd_head != I596_NULL) && (lp->cmd_head->status & STAT_C)) { in i596_interrupt() 1284 ptr = lp->cmd_head; in i596_interrupt() [all …]
|
/linux-4.1.27/drivers/net/ethernet/tile/ |
D | tilepro.c | 1742 unsigned int cmd_head, cmd_tail, cmd_next; in tile_net_tx_tso() local 1785 cmd_head = eq->cmd_head; in tile_net_tx_tso() 1791 if (cmd_tail < cmd_head && cmd_next >= cmd_head) in tile_net_tx_tso() 1795 if (cmd_next == cmd_head) in tile_net_tx_tso() 1873 unsigned int cmd_head, cmd_tail, cmd_next; in tile_net_tx() local 1965 cmd_head = eq->cmd_head; in tile_net_tx() 1974 if (cmd_tail < cmd_head && cmd_next >= cmd_head) in tile_net_tx() 1978 if (cmd_next == cmd_head) in tile_net_tx()
|
/linux-4.1.27/kernel/debug/kdb/ |
D | kdb_main.c | 812 static unsigned int cmd_head, cmd_tail; variable 1098 if (cmd_head == cmd_tail) in handle_ctrl_cmd() 1107 if (cmdptr != cmd_head) in handle_ctrl_cmd() 1287 *(cmd_hist[cmd_head]) = '\0'; in kdb_local() 1305 if (cmdptr == cmd_head) { in kdb_local() 1306 strncpy(cmd_hist[cmd_head], cmd_cur, in kdb_local() 1308 *(cmd_hist[cmd_head] + in kdb_local() 1309 strlen(cmd_hist[cmd_head])-1) = '\0'; in kdb_local() 1316 strncpy(cmd_hist[cmd_head], cmd_cur, in kdb_local() 1320 cmd_head = (cmd_head+1) % KDB_CMD_HISTORY_COUNT; in kdb_local() [all …]
|
/linux-4.1.27/include/uapi/linux/ |
D | target_core_user.h | 55 __u32 cmd_head; member
|
/linux-4.1.27/Documentation/target/ |
D | tcmu-design.txt | 125 cmd_head - Modified by the kernel to indicate when a command has been 133 mailbox.cmd_head by the size of the command, modulo cmdr_size, and 136 signals the kernel via a 4-byte write(). When cmd_head equals 323 /* Process events from cmd ring until we catch up with cmd_head */ 324 while (ent != (void *)mb + mb->cmdr_off + mb->cmd_head) {
|
/linux-4.1.27/drivers/input/mouse/ |
D | cyapa_gen5.c | 1867 struct gen5_app_cmd_head *cmd_head; in cyapa_gen5_read_idac_data() local 1938 cmd_head = (struct gen5_app_cmd_head *)cmd; in cyapa_gen5_read_idac_data() 1939 put_unaligned_le16(GEN5_OUTPUT_REPORT_ADDR, &cmd_head->addr); in cyapa_gen5_read_idac_data() 1940 put_unaligned_le16(sizeof(cmd) - 2, &cmd_head->length); in cyapa_gen5_read_idac_data() 1941 cmd_head->report_id = GEN5_APP_CMD_REPORT_ID; in cyapa_gen5_read_idac_data() 1942 cmd_head->cmd_code = cmd_code; in cyapa_gen5_read_idac_data() 1949 put_unaligned_le16(offset, &cmd_head->parameter_data[0]); in cyapa_gen5_read_idac_data() 1950 put_unaligned_le16(read_len, &cmd_head->parameter_data[2]); in cyapa_gen5_read_idac_data() 1951 cmd_head->parameter_data[4] = idac_data_type; in cyapa_gen5_read_idac_data()
|
/linux-4.1.27/arch/tile/include/hv/ |
D | drv_xgbe_intf.h | 532 volatile unsigned int cmd_head; member
|
/linux-4.1.27/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_fd.c | 184 void *cmd_head = pcan_usb_fd_cmd_buffer(dev); in pcan_usb_fd_send_cmd() local 197 cmd_len = cmd_tail - cmd_head; in pcan_usb_fd_send_cmd() 203 packet_ptr = cmd_head; in pcan_usb_fd_send_cmd()
|